:root {
  --bg: #07111f;
  --bg-deep: #04101e;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --text: #f7f8fb;
  --muted: #cbd2dd;
  --line: rgba(255, 255, 255, 0.13);
  --line-gold: rgba(215, 181, 109, 0.27);
  --gold: #d7b56d;
  --gold-dark: #bd984f;
  --max: 1160px;
  --radius: 20px;
  --font-sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
}

html {
  scroll-padding-top: 106px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

section[id] {
  scroll-margin-top: 106px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.topbar {
  padding: 8px 24px;
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  padding: 8px 0;
}

.brand {
  gap: 13px;
}

.brand img {
  height: 48px;
  border-radius: 0;
}

.brand-title {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.nav-links {
  gap: 22px;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: #111;
  background: var(--gold);
  font-weight: 800;
}

.nav-cta:hover {
  background: var(--gold-dark);
  color: #111;
}

section {
  padding: 48px 0;
}

.hero {
  padding: 82px 0 66px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-weight: 780;
  letter-spacing: -0.05em;
}

.section-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-copy,
.lead,
.panel p,
.card p,
.keynote-card p,
.engagement-card p {
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 15px;
  font-size: 0.75rem;
  letter-spacing: 0.19em;
}

.button,
button {
  min-height: 48px;
  padding: 13px 21px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.panel,
.hero-visual,
.hero-card,
.quote,
.card,
.keynote-card,
.testimonial-card,
.engagement-card,
.chapter-card,
.book-visual {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.quote p,
.quote-inline p {
  font-family: var(--font-editorial);
  font-weight: 400;
}

.hero-photo,
.about-photo img,
.engagement-photo,
.book-showcase img {
  background: #0b1727;
}

.footer {
  padding: 24px 0 38px;
  font-size: 0.86rem;
}

.footer-line {
  align-items: flex-start;
}

.footer-brand-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 13px;
  text-align: right;
}

.footer a {
  color: var(--text);
}

.footer a:hover {
  color: var(--gold);
}

.fine-print a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fine-print a:hover {
  color: var(--gold);
}

/* Homepage refinements */
body.home-page .hero-grid {
  gap: 58px;
}

body.home-page .hero-highlight {
  max-width: 680px;
}

body.home-page .about-author {
  align-items: stretch;
}

body.home-page .about-author .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.home-page .certification-band {
  grid-template-columns: 112px minmax(260px, 1fr) auto;
  gap: 24px;
  padding: 20px 0;
}

body.home-page .glg-logo {
  width: 112px;
}

/* Speaking page refinements */
body.speaking-page h1 {
  max-width: 680px;
  font-size: clamp(3.5rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}

body.speaking-page .hero-grid {
  gap: 56px;
}

body.speaking-page .keynote-grid {
  gap: 22px;
}

body.speaking-page .keynote-card {
  padding: 30px 34px;
}

body.speaking-page .takeaways {
  gap: 8px;
  margin-top: 18px;
}

body.speaking-page .testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.speaking-page .testimonial-card {
  min-height: 250px;
}

body.speaking-page .testimonial-card blockquote {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 400;
}

body.speaking-page .inquiry-intro {
  max-width: 760px;
}

body.speaking-page .next-steps {
  padding: 0;
  list-style: none;
}

body.speaking-page .form-field label {
  color: var(--text);
}

body.speaking-page input,
body.speaking-page select,
body.speaking-page textarea {
  border-color: rgba(255, 255, 255, 0.17);
}

/* Book page refinements */
body.book-page .hero-grid {
  gap: 54px;
}

body.book-page .book-showcase img {
  filter: saturate(0.94) contrast(1.03);
}

body.book-page .chapter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.book-page .chapter-card {
  min-height: 146px;
  padding: 18px;
}

body.book-page .part-section + .part-section {
  margin-top: 22px;
}

/* Privacy page */
body.privacy-page main {
  min-height: 70vh;
}

.privacy-hero {
  padding: 78px 0 34px;
}

.privacy-content {
  max-width: 840px;
  padding-bottom: 80px;
}

.privacy-content h2 {
  margin: 42px 0 12px;
  font-size: 1.55rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
}

.privacy-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .topbar {
    padding: 7px 18px;
  }

  .nav {
    gap: 10px;
  }

  .nav-links {
    gap: 18px;
    overflow-x: auto;
    padding: 5px 1px 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    border: 0;
    padding: 7px 0;
    background: transparent;
  }

  .nav-links .nav-cta {
    padding: 8px 13px;
    border: 1px solid var(--line-gold);
    background: var(--gold);
  }

  body.book-page .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.speaking-page .testimonial-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .certification-band {
    grid-template-columns: 104px 1fr;
  }

  body.home-page .glg-logo {
    width: 104px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 36px, var(--max));
  }

  .topbar {
    padding-inline: 0;
  }

  .nav {
    min-height: 0;
  }

  .brand img {
    height: 42px;
  }

  .brand-title {
    font-size: 0.82rem;
  }

  .brand-subtitle {
    font-size: 0.61rem;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.8rem;
  }

  section {
    padding: 38px 0;
  }

  .hero {
    padding: 58px 0 46px;
  }

  .section-title {
    font-size: 2rem;
  }

  .panel,
  .card,
  .quote,
  body.speaking-page .keynote-card {
    padding: 24px;
  }

  body.speaking-page h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  body.book-page .chapter-grid {
    grid-template-columns: 1fr;
  }

  body.book-page .chapter-card {
    min-height: 0;
  }

  .footer-brand-note {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
