/* Pathways to Management. Tokens first, then foundation, then sections. */

@font-face { font-family: 'Bebas Neue'; src: url('../fonts/bebas-neue.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* Grounds: the client's purples, by altitude */
  --c-base: #0d001f;
  --c-ground: #1c0852;
  --c-ground-2: #2e0f6e;
  --c-summit: #4a1d9e;
  --c-bg: var(--c-ground);           /* tweened on <html> as sections enter */
  --c-ink: #ffffff;
  --c-muted: #d9ccf5;
  --c-line: rgb(255 255 255 / 0.18);
  --c-gold: #fbbf24;
  --c-on-gold: #1c0852;

  --f-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --f-voice: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;

  --t-mega: clamp(4.4rem, 0.9rem + 15vw, 15.5rem);
  --t-xl: clamp(3rem, 1.5rem + 6.2vw, 7.5rem);
  --t-l: clamp(2rem, 1.35rem + 2.7vw, 3.9rem);
  --t-m: clamp(1.3rem, 1.05rem + 0.9vw, 1.85rem);
  --t-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.8125rem;

  --u: clamp(0.5rem, 0.35rem + 0.6vw, 1rem);
  --gutter: clamp(1.25rem, 0.6rem + 2vw, 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.215, 0.61, 0.355, 1);

  --z-header: 50;
  --z-float: 40;
  --z-menu: 60;
}

/* ---------- Foundation ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  background: var(--c-bg);
  color: var(--c-ink);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body {
  min-height: 100dvh;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--c-gold); color: var(--c-on-gold); }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }
#main:focus { outline: none; }
.skip-link {
  position: fixed; left: var(--gutter); top: var(--gutter); z-index: 100;
  padding: 0.7em 1.1em; background: var(--c-gold); color: var(--c-on-gold); font-weight: 600;
  translate: 0 -200%;
}
.skip-link:focus-visible { translate: 0 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* Reveal gating: only hidden when motion runs */
.motion [data-split], .motion [data-reveal]:not([data-reveal='lift']) { visibility: hidden; }
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--gutter);
}

/* Sections paint their own ground without motion; with motion, <html> carries it */
[data-ground] { position: relative; background: var(--ground); }
.motion [data-ground] { background: transparent; }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--f-display);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.voice { font-family: var(--f-voice); font-style: italic; font-weight: 400; }
.label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.num { font-variant-numeric: tabular-nums; }
.inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.3s var(--ease-soft), text-decoration-color 0.3s;
}
@media (hover: hover) { .inline-link:hover { text-decoration-thickness: 3px; text-decoration-color: var(--c-gold); } }
.inline-link:focus-visible { text-decoration-thickness: 3px; text-decoration-color: var(--c-gold); }

/* ---------- Buttons: a fill rises one step, the label rolls up ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  font-size: var(--t-s);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid currentColor;
  transition: color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft);
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.55s var(--ease-out);
}
.btn__roll { display: inline-grid; overflow: clip; line-height: 1.2; }
.btn__roll > span { grid-area: 1 / 1; transition: translate 0.55s var(--ease-out); }
.btn__roll > span + span { translate: 0 110%; }
.btn__icon { width: 1.05em; height: 1.05em; flex-shrink: 0; transition: translate 0.45s var(--ease-out); }

.btn--gold { --fill: var(--c-ink); background: var(--c-gold); color: var(--c-on-gold); border-color: var(--c-gold); }
.btn--line { --fill: var(--c-gold); color: var(--c-ink); border-color: rgb(255 255 255 / 0.55); }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: var(--t-xs); }

.btn:is(:focus-visible, :active)::before { clip-path: inset(0 0 0 0); }
.btn:is(:focus-visible, :active) .btn__roll > span { translate: 0 -110%; }
.btn:is(:focus-visible, :active) .btn__roll > span + span { translate: 0 0; }
.btn--line:is(:focus-visible, :active) { color: var(--c-on-gold); border-color: var(--c-gold); }
.btn--gold:is(:focus-visible, :active) { border-color: var(--c-ink); }
@media (hover: hover) {
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover .btn__roll > span { translate: 0 -110%; }
  .btn:hover .btn__roll > span + span { translate: 0 0; }
  .btn:hover .btn__icon { translate: 0 -2px; }
  .btn--line:hover { color: var(--c-on-gold); border-color: var(--c-gold); }
  .btn--gold:hover { border-color: var(--c-ink); }
}
.btn:active { scale: 0.98; }

/* Text link with a travelling arrow */
.go {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 2.75rem;
  font-size: var(--t-s); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(currentColor 0 0) left calc(100% - 0.55rem) / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.go__arrow { width: 1em; height: 1em; transition: translate 0.45s var(--ease-out); }
@media (hover: hover) {
  .go:hover { background-size: 100% 1px; color: var(--c-gold); }
  .go:hover .go__arrow { translate: 4px 0; }
  .go--down:hover .go__arrow { translate: 0 4px; }
}
.go:focus-visible { background-size: 100% 1px; color: var(--c-gold); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--gutter);
  transition: translate 0.6s var(--ease-out), background-color 0.4s;
}
html.is-scrolled .header { background: var(--c-bg); box-shadow: 0 1px 0 var(--c-line); }
.header__name {
  font-size: var(--t-s); font-weight: 600; letter-spacing: 0.02em; display: inline-block; padding-block: 0.8rem;
  background: linear-gradient(var(--c-gold) 0 0) left calc(100% - 0.6rem) / 0% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
@media (hover: hover) { a.header__name:hover { background-size: 100% 1px; } }
a.header__name:focus-visible { background-size: 100% 1px; }
.header__suffix { color: var(--c-muted); font-weight: 400; }
.header__last { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__list { display: flex; gap: clamp(1rem, 1.8vw, 1.9rem); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: var(--t-s); font-weight: 500;
  background: linear-gradient(var(--c-gold) 0 0) left calc(100% - 0.6rem) / 0% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
@media (hover: hover) { .nav__link:hover { background-size: 100% 1px; } }
.nav__link:focus-visible, .nav__link[aria-current='true'] { background-size: 100% 1px; }
.menu-btn { display: none; min-height: 2.75rem; padding-inline: 0.25rem; font-size: var(--t-s); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: grid; align-content: space-between;
  padding: 1.1rem var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  background: var(--c-base);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__list { display: grid; gap: 0.2rem; }
.menu__link { display: block; font-family: var(--f-display); font-size: clamp(3rem, 14vw, 5rem); line-height: 1; padding-block: 0.1em; }
.menu__link span { display: inline-block; translate: 0 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: clamp(6rem, 12vh, 8.5rem);
  padding-bottom: calc(var(--u) * 4);
  align-content: end;
  row-gap: calc(var(--u) * 2.5);
  overflow: clip;
}
.hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__by { grid-column: 1 / -1; position: relative; }
.hero__title { grid-column: 1 / 9; grid-row: 2; position: relative; font-size: clamp(4rem, 0.5rem + 11.6vw, 13rem); margin-left: -0.04em; }
.hero__title .line { display: block; }
.hero__title .indent { padding-left: 1.6em; }
.hero__cover {
  grid-column: 9 / 13; grid-row: 2 / 4; align-self: center; justify-self: end; margin-bottom: 2rem;
  position: relative; width: min(100%, 22rem);
}
.hero__quote { grid-column: 1 / 6; grid-row: 3; position: relative; font-size: var(--t-m); line-height: 1.35; color: var(--c-muted); }
.hero__quote::before { content: '\201C'; position: absolute; translate: -0.5em 0; }
.hero__actions { grid-column: 6 / 9; grid-row: 3; align-self: end; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }

/* The cover: a real object that lifts one step */
.cover { display: block; position: relative; }
.cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  rotate: 3deg;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.25), 0 30px 50px -18px rgb(0 0 0 / 0.65), 0 60px 90px -40px rgb(0 0 0 / 0.5);
  transition: rotate 0.7s var(--ease-out), translate 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.cover__tag {
  position: absolute; left: 0; bottom: -2.6rem;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-gold);
}
@media (hover: hover) {
  .cover:hover img { rotate: 0deg; translate: 0 -10px; box-shadow: 0 2px 0 rgb(0 0 0 / 0.25), 0 44px 60px -18px rgb(0 0 0 / 0.7), 0 80px 100px -40px rgb(0 0 0 / 0.5); }
}
.cover:focus-visible img { rotate: 0deg; translate: 0 -10px; }

/* ---------- About ---------- */
.about { padding-block: clamp(6rem, 14vh, 11rem); row-gap: calc(var(--u) * 4); }
.about__portrait { grid-column: 1 / 4; align-self: start; position: relative; }
.about__portrait img { width: min(100%, 15rem); aspect-ratio: 336 / 353; }
.about__portrait figcaption { margin-top: 1rem; font-size: var(--t-xs); color: var(--c-muted); max-width: 15rem; }
.about__statement { grid-column: 5 / 13; font-size: var(--t-l); line-height: 1.12; }
.about__bio { grid-column: 5 / 9; display: grid; gap: 1.1rem; color: var(--c-muted); max-width: 36rem; }
.about__bio strong { color: var(--c-ink); font-weight: 500; }
.creds { grid-column: 10 / 13; display: grid; gap: 1.4rem; align-content: start; }
.creds dt { margin-bottom: 0.25rem; }
.creds dd { font-size: var(--t-s); line-height: 1.45; }

/* ---------- Ten steps (signature) ---------- */
.steps { padding-block: clamp(5rem, 12vh, 9rem) clamp(6rem, 14vh, 10rem); }
.steps__head { grid-column: 4 / 13; margin-bottom: calc(var(--u) * 6); }
.steps__title { font-size: var(--t-xl); }
.steps__intro { margin-top: 1.4rem; max-width: 34rem; color: var(--c-muted); }
.steps__body { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.trail { grid-column: 1 / 4; position: relative; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail__ahead { stroke: rgb(255 255 255 / 0.4); stroke-width: 2; stroke-dasharray: 3 10; stroke-linecap: round; fill: none; }
.trail__walked { stroke: var(--c-gold); stroke-width: 2; fill: none; stroke-linecap: round; }
.trail__point { fill: var(--c-ground-2); stroke: rgb(255 255 255 / 0.5); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.trail__point.is-reached { fill: var(--c-gold); stroke: var(--c-gold); }
.trail__walker { fill: var(--c-ink); }
.trail__walker-ring { fill: none; stroke: var(--c-ink); stroke-width: 1; opacity: 0.5; }

.step-list { grid-column: 4 / 13; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(1.6rem, 3.5vh, 2.6rem);
  border-top: 1px solid var(--c-line);
}
.step:last-child { border-bottom: 1px solid var(--c-line); }
.step__n { font-size: var(--t-s); font-weight: 600; color: var(--c-gold); }
.step__title { font-family: var(--f-display); font-size: var(--t-l); line-height: 0.95; }
.step__text { color: var(--c-muted); max-width: 30rem; }
.step--summit .step__title { color: var(--c-gold); }

.steps__end { grid-column: 4 / 13; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; margin-top: calc(var(--u) * 5); }
.steps__end p { font-size: var(--t-m); max-width: 28rem; }

.readout {
  position: fixed; left: var(--gutter); bottom: calc(var(--gutter) * 0.75); z-index: var(--z-float);
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.55rem 0.9rem;
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em;
  background: var(--c-base); border: 1px solid var(--c-line);
  opacity: 0; translate: 0 120%;
  transition: opacity 0.4s, translate 0.6s var(--ease-out);
  pointer-events: none;
}
.readout.is-on { opacity: 1; translate: 0 0; }
html:not(.motion) .readout { display: none; }
.readout__n { color: var(--c-gold); font-weight: 600; }
.readout__t { color: var(--c-muted); }

/* ---------- The book ---------- */
.book { padding-block: clamp(6rem, 14vh, 11rem); row-gap: calc(var(--u) * 4); align-items: center; }
.book__cover { grid-column: 1 / 6; position: relative; padding-bottom: 3rem; }
.book__cover .cover { width: min(100%, 30rem); }
.book__info { grid-column: 7 / 13; }
.book__title { font-size: var(--t-xl); }
.book__quote { margin-top: 1.6rem; font-size: var(--t-m); line-height: 1.35; max-width: 32rem; }
.book__text { margin-top: 1.4rem; color: var(--c-muted); max-width: 36rem; }
.book__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.facts { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.2rem 1rem 0 0; }
.facts dd { font-family: var(--f-display); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; color: var(--c-gold); }
.facts dt { margin-top: 0.4rem; }
.facts__link { display: inline-flex; align-items: center; gap: 0.15em; text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 2px; transition: color 0.3s; }
.facts__link .go__arrow { width: 0.5em; height: 0.5em; }
@media (hover: hover) { .facts__link:hover { color: var(--c-ink); } .facts__link:hover .go__arrow { translate: 3px -3px; } }
.facts__link:focus-visible { color: var(--c-ink); }

/* ---------- Trailer ---------- */
.trailer { padding-block: clamp(5rem, 12vh, 9rem); row-gap: calc(var(--u) * 3); }
.trailer__head { grid-column: 1 / 8; }
.trailer__title { font-size: var(--t-xl); }
.trailer__frame { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: clip; }
.trailer__frame video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(0deg, rgb(13 0 31 / 0.7), rgb(13 0 31 / 0) 55%);
  transition: opacity 0.5s;
}
.play.is-hidden { opacity: 0; pointer-events: none; }
.play__chip {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.4rem 0.9rem 1rem;
  background: var(--c-gold); color: var(--c-on-gold);
  font-size: var(--t-s); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: translate 0.5s var(--ease-out), background-color 0.4s;
}
.play__chip svg { width: 1.6rem; height: 1.6rem; }
@media (hover: hover) { .play:hover .play__chip { translate: 0 -6px; background: var(--c-ink); } }
.play:focus-visible { outline-offset: -6px; }
.play:focus-visible .play__chip { translate: 0 -6px; background: var(--c-ink); }
.trailer__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; }
.trailer__foot p { color: var(--c-muted); max-width: 34rem; }

/* ---------- Speaking (index list) ---------- */
.speaking { padding-block: clamp(6rem, 14vh, 10rem); }
.speaking__head { grid-column: 1 / 8; margin-bottom: calc(var(--u) * 5); }
.speaking__title { font-size: var(--t-xl); }
.speaking__intro { margin-top: 1.2rem; color: var(--c-muted); max-width: 32rem; }
.offers { grid-column: 1 / -1; }
.offer {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: baseline; padding-block: clamp(1.6rem, 4vh, 2.8rem);
  border-top: 1px solid var(--c-line);
}
.offer:last-child { border-bottom: 1px solid var(--c-line); }
.offer__title { grid-column: 1 / 6; font-family: var(--f-display); font-size: var(--t-l); line-height: 0.95; transition: translate 0.5s var(--ease-out); }
.offer__text { grid-column: 6 / 11; color: var(--c-muted); }
.offer__go { grid-column: 11 / 13; justify-self: end; }
@media (hover: hover) { .offer:hover .offer__title { translate: 0.4rem 0; } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(6rem, 14vh, 10rem); row-gap: calc(var(--u) * 4); }
.contact__info { grid-column: 1 / 6; }
.contact__title { font-size: var(--t-xl); }
.contact__text { margin-top: 1.4rem; color: var(--c-muted); max-width: 30rem; }
.contact__mail { display: inline-block; margin-top: 2rem; padding-block: 0.35rem; font-family: var(--f-voice); font-style: italic; font-size: var(--t-m); word-break: break-word; }
.contact__lines { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.contact__lines dd { margin-top: 0.2rem; }
.contact__lines a { display: inline-block; padding-block: 0.3rem; }
.form { grid-column: 7 / 13; display: grid; gap: 1.4rem; align-content: start; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem;
  padding: 0.75rem 0;
  background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 0; outline: none;
  transition: border-color 0.3s;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; }
.field option { background: var(--c-ground); color: var(--c-ink); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field :is(input, select, textarea):focus-visible { border-bottom: 2px solid var(--c-gold); outline: none; }
.form__note { font-size: var(--t-xs); color: var(--c-muted); }
.form__status { font-size: var(--t-s); min-height: 1.5em; color: var(--c-gold); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(5rem, 12vh, 8rem) calc(var(--gutter) + env(safe-area-inset-bottom)); row-gap: calc(var(--u) * 5); }
.footer__big { grid-column: 1 / -1; font-size: clamp(4rem, 0.5rem + 14.2vw, 15rem); margin-left: -0.04em; }
.footer__cta { grid-column: 1 / 8; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.footer__cta p { color: var(--c-muted); max-width: 26rem; }
.footer__small {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--c-line);
  font-size: var(--t-xs); color: var(--c-muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 2rem; transition: color 0.3s; }
@media (hover: hover) { .footer__links a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.2em; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; align-content: center; row-gap: calc(var(--u) * 3); padding-block: 8rem 4rem; overflow: clip; }
.lost__trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lost__title { grid-column: 1 / -1; position: relative; font-size: var(--t-mega); }
.lost__text { grid-column: 1 / 7; position: relative; font-size: var(--t-m); line-height: 1.35; color: var(--c-muted); }
.lost__actions { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

/* ---------- Popup: the book, one step closer ---------- */
.popup {
  margin: auto; padding: 0; border: 1px solid var(--c-line);
  width: min(100% - 2rem, 46rem); max-height: calc(100dvh - 2rem);
  background: var(--c-summit); color: var(--c-ink);
  opacity: 0; translate: 0 28px;
  transition: opacity 0.5s var(--ease-out), translate 0.7s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.popup[open] { opacity: 1; translate: 0 0; }
@starting-style { .popup[open] { opacity: 0; translate: 0 28px; } }
.popup::backdrop { background: rgb(13 0 31 / 0.78); opacity: 0; transition: opacity 0.5s var(--ease-soft), overlay 0.5s allow-discrete, display 0.5s allow-discrete; }
.popup[open]::backdrop { opacity: 1; }
@starting-style { .popup[open]::backdrop { opacity: 0; } }
.popup__inner {
  position: relative; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); overflow: auto; max-height: inherit;
}
.popup__close {
  position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; color: var(--c-muted); transition: color 0.3s;
}
.popup__close svg { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) { .popup__close:hover { color: var(--c-gold); } }
.popup__body { display: grid; gap: 1rem; justify-items: start; }
.popup__title { font-size: var(--t-l); }
.popup__text { font-size: var(--t-m); line-height: 1.35; color: var(--c-muted); }
.popup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.popup__later { min-height: 2.75rem; font-size: var(--t-s); color: var(--c-muted); text-decoration: underline; text-underline-offset: 0.22em; }
@media (hover: hover) { .popup__later:hover { color: var(--c-ink); } }
html:has(.popup[open]) { overflow: hidden; }

/* ---------- Admin: login page and the logged-in bar ---------- */
.login { min-height: 100svh; align-content: center; row-gap: calc(var(--u) * 4); padding-block: 8rem 4rem; }
.login__head { grid-column: 1 / 7; display: grid; gap: 1rem; }
.login__title { font-size: var(--t-xl); }
.login__form { grid-column: 7 / 12; display: grid; gap: 1.4rem; align-content: start; }

.adminbar {
  position: fixed; inset: 0 0 auto; z-index: calc(var(--z-header) + 1);
  height: var(--admin-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--c-gold); color: var(--c-on-gold);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.adminbar[hidden] { display: none; }
.adminbar__who { display: inline-flex; align-items: center; gap: 0.6em; }
.adminbar__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.adminbar__out {
  min-height: 2rem; padding: 0.3rem 0.9rem; border: 1px solid currentColor;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
@media (hover: hover) { .adminbar__out:hover { background: var(--c-on-gold); color: var(--c-gold); } }
.adminbar__out:focus-visible { outline-color: var(--c-on-gold); outline-offset: 2px; }
html.is-admin { --admin-h: 2.75rem; }
html.is-admin .header { top: var(--admin-h); }
html.is-admin .hero { padding-top: calc(clamp(6rem, 12vh, 8.5rem) + var(--admin-h)); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero__quote { grid-column: 1 / 9; }
  .hero__actions { grid-column: 1 / 9; grid-row: 4; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
  .about__portrait { grid-column: 1 / 5; }
  .about__statement { grid-column: 5 / 13; }
  .about__bio { grid-column: 1 / 8; }
  .creds { grid-column: 8 / 13; }
  .book__cover { grid-column: 1 / 6; }
  .book__info { grid-column: 6 / 13; }
  .contact__info, .form { grid-column: 1 / -1; }
  .login__head, .login__form { grid-column: 1 / -1; }
  .step { grid-template-columns: 3.5rem minmax(0, 1fr); row-gap: 0.7rem; }
  .step__text { grid-column: 2; }
}

@media (max-width: 767px) {
  .header { padding-block: 0.6rem; }
  .header__name { font-size: var(--t-xs); max-width: 9rem; line-height: 1.25; }
  .header__suffix { display: none; }
  .nav { gap: 0.9rem; }
  .hero { align-content: start; padding-top: 5.5rem; row-gap: 1.6rem; }
  .hero__by { grid-row: 1; }
  .hero__title { grid-row: 2; font-size: clamp(4rem, 21vw, 7rem); }
  .hero__title .indent { padding-left: 0.9em; }
  .hero__cover { grid-column: 7 / 13; grid-row: 3; justify-self: end; width: 100%; margin-bottom: 2.5rem; }
  .hero__quote { grid-column: 1 / 7; grid-row: 3; align-self: center; font-size: 1.15rem; }
  .hero__actions { grid-column: 1 / -1; grid-row: 4; flex-direction: column; align-items: stretch; }
  .hero__title { grid-column: 1 / -1; }
  .hero__actions .btn { width: 100%; }

  .about__portrait { grid-column: 1 / 7; }
  .about__statement { grid-column: 1 / -1; }
  .about__bio, .creds { grid-column: 1 / -1; }

  .steps__head { grid-column: 1 / -1; padding-left: 3.25rem; }
  .steps__body { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.75rem; }
  .trail { grid-column: 1; }
  .step-list { grid-column: 2; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__text { grid-column: 1; }
  .steps__end { grid-column: 1 / -1; padding-left: 3.25rem; }
  .steps__end .btn { width: 100%; }

  .book__cover { grid-column: 2 / 12; }
  .book__info { grid-column: 1 / -1; }
  .book__actions .btn { width: 100%; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .trailer__head { grid-column: 1 / -1; }
  .trailer__frame { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .trailer__foot .btn { width: 100%; }

  .speaking__head { grid-column: 1 / -1; }
  .offer { row-gap: 0.7rem; }
  .offer__title, .offer__text, .offer__go { grid-column: 1 / -1; justify-self: start; }

  .footer__cta { grid-column: 1 / -1; }
  .footer__cta .btn { width: 100%; }
  .lost__text { grid-column: 1 / -1; }
  .readout { display: none; }

  .popup__inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 3rem; }
  .popup__cover { width: 8.5rem; }
  .popup__actions { width: 100%; }
  .popup__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn__roll > span { translate: none !important; }
  .btn__roll > span + span { visibility: hidden; }
}
