/* ==========================================================================
   The Travel Field Guide — landing site
   Palette and type are lifted from the book itself (Georgia + Rubik; night,
   forest, paper, sage, gold, terracotta).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/rubik-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/rubik-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/rubik-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/gelasio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/gelasio-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/gelasio-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --night-deep: #061a12;
  --night: #0a2419;
  --night-soft: #0c2b1f;
  --forest: #163d32;
  --forest-2: #1f4d3f;
  --paper: #f7f3e8;
  --paper-2: #fbf8f0;
  --paper-3: #efe9d9;
  --sage: #e8ebdd;
  --sage-2: #d9dfcf;
  --line: #d6d4c4;
  --ink: #12261f;
  --ink-soft: #4a5f56;
  --ink-mute: #7c8a83;
  --gold: #c79531;
  --gold-2: #e1b45c;
  --gold-3: #f2d18a;
  --terracotta: #aa522f;
  --terracotta-2: #c4663f;
  --cream: #f3ecd9;
  --cream-soft: rgba(243, 236, 217, 0.72);
  --cream-mute: rgba(243, 236, 217, 0.5);
  --moon: #f6d38a;
  --sea: #6f9a93;

  --font-display: Georgia, "Gelasio", "Times New Roman", serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vh, 9rem);
  --nav-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
main { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.kicker {
  font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
}
.eyebrow {
  font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 1rem;
}
.eyebrow--cream { color: var(--gold-2); }
.eyebrow--gold { color: var(--gold-2); }
.label {
  font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
}
.label--gold { color: var(--gold-2); }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.h2--cream { color: var(--cream); }
.h3 {
  font-family: var(--font-display);
  font-size: 1.55rem; line-height: 1.2; color: var(--ink); margin: 2.2rem 0 .9rem;
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--center { text-align: center; }
.section-head--center .h2, .section-head--center .section-head__sub { margin-inline: auto; }
.section-head__sub {
  margin-top: 1.2rem; max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 4px; border: 1.5px solid transparent;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--night-deep); box-shadow: 0 10px 30px -12px rgba(199, 149, 49, .6); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--cream-mute); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(243, 236, 217, .08); border-color: var(--cream); }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--forest-2); }
.btn--pill { border-radius: 999px; padding: .7rem 1.3rem; font-size: .88rem; }
.linkbtn {
  background: none; border: 0; padding: 0; color: var(--ink-soft); font-size: .92rem;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.linkbtn:hover { color: var(--terracotta); text-decoration-color: currentColor; }

/* ---------- Fixed atmosphere ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  --sky-a: #061a12; --sky-b: #0c2b1f;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 100%);
}
.sky__glow {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(246, 211, 138, .10), transparent 65%);
  opacity: var(--night-amt, 1);
  transition: opacity .3s;
}
.sky__moon {
  position: absolute; left: 46%; top: 8%; width: clamp(90px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff4d1, var(--moon) 55%, #d9a94f 100%);
  box-shadow: 0 0 60px 18px rgba(246, 211, 138, .22), 0 0 160px 60px rgba(246, 211, 138, .10);
  opacity: 0; transform: translateY(40vh);
}
.stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--cream);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(8, 30, 21, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-paper { color: var(--ink); }
.nav.is-paper::before { background: rgba(247, 243, 232, .82); }
.nav__brand {
  font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.nav__title {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s; text-align: center;
}
.nav.is-scrolled .nav__title { opacity: .9; transform: none; }
.nav__cta { justify-self: end; border-color: var(--cream-mute); color: var(--cream); background: rgba(6, 26, 18, .25); }
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--night-deep); }
.nav.is-paper .nav__cta { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.nav.is-paper .nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--night-deep); }

/* ---------- Side rail ---------- */
.rail {
  position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
}
.rail a { position: relative; width: 10px; height: 10px; display: block; }
.rail a::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--cream-mute);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.rail a span {
  position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; white-space: nowrap;
  color: var(--cream); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.rail a:hover span { opacity: 1; transform: translate(0, -50%); }
.rail a.is-active::before { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.rail.is-paper a::before { border-color: rgba(18, 38, 31, .4); }
.rail.is-paper a.is-active::before { background: var(--terracotta); border-color: var(--terracotta); }
.rail.is-paper a span { color: var(--ink); }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- Birds (offset-path glides) ---------- */
.bird {
  position: absolute; width: 30px; height: 20px; fill: var(--cream); opacity: .85; pointer-events: none;
  offset-rotate: auto; offset-anchor: 50% 50%;
  animation: fly var(--dur, 34s) linear infinite; animation-delay: var(--delay, 0s);
}
.bird use { fill: inherit; }
@keyframes fly {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: var(--op, .85); }
  94% { opacity: var(--op, .85); }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: calc(var(--nav-h) + clamp(2rem, 7vh, 5rem));
}
.hero__copy { position: relative; z-index: 3; max-width: 46rem; }
.hero__kicker { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }
.hero__title {
  font-family: var(--font-display); font-size: clamp(3.2rem, 8.6vw, 7.2rem); line-height: .98; letter-spacing: -.01em;
  color: var(--cream); margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.reveal { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal > span { display: block; }
.hero__tag { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--cream); font-weight: 400; margin-bottom: 1.6rem; text-shadow: 0 1px 12px rgba(6, 26, 18, .5); }
.hero__label { margin-bottom: 1.2rem; }
.hero__lede { color: var(--cream); opacity: .88; max-width: 34rem; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(6, 26, 18, .6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scene {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62vh; z-index: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 86%, transparent 100%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform-origin: center bottom; }
.hero__scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(6, 26, 18, .72) 0%, rgba(6, 26, 18, .42) 34%, rgba(6, 26, 18, 0) 58%);
}
.hero__birds { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.bird--1 { left: -5%; top: 12%; --dur: 36s; --delay: -6s; width: 46px; height: 31px;
  offset-path: path("M0 0 C 300 -60, 600 60, 900 -20 S 1500 30, 1900 -40"); }
.bird--2 { left: -6%; top: 22%; --dur: 44s; --delay: -20s; width: 30px; height: 20px; --op: .7;
  offset-path: path("M0 0 C 250 80, 700 -40, 1000 40 S 1600 -30, 2000 20"); }
.bird--3 { left: 30%; top: 8%; --dur: 40s; --delay: -31s; width: 36px; height: 24px; --op: .75;
  offset-path: path("M0 0 C 200 50, 500 -30, 800 30 S 1200 -20, 1600 10"); }
.hero__cue {
  position: absolute; left: var(--gutter); bottom: 2rem; z-index: 3;
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--cream-soft);
}
.hero__cue-line { display: block; width: 1px; height: 54px; background: linear-gradient(to bottom, transparent, var(--gold-2)); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 2. The question ---------- */
.question {
  position: relative; color: var(--cream);
  padding: clamp(6rem, 20vh, 12rem) 0 clamp(6rem, 18vh, 11rem);
}
.question__inner { max-width: 52rem; }
.question__quote {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.005em;
  text-wrap: balance; text-shadow: 0 1px 14px rgba(6, 26, 18, .35);
}
.question__body { margin-top: 2.2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 40rem; color: inherit; text-shadow: 0 1px 10px rgba(6, 26, 18, .35); }
[data-words] .w { display: inline-block; will-change: opacity, transform; }

/* ---------- Paper pages ---------- */
.page { position: relative; background: var(--paper); color: var(--ink); padding: var(--section-y) 0; }
.page--sage { background: var(--sage); }
.pace::before {
  content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(247, 243, 232, 0), var(--paper));
}

/* ---------- 3. Human pace ---------- */
.pace { padding-top: clamp(2rem, 6vh, 4rem); }
.pace__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pace__art { margin: 0; }
.pace__art img { border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(18, 38, 31, .45); clip-path: inset(0 round 4px); }
.pace__art figcaption { margin-top: .8rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.pace__text p + p { margin-top: 1rem; }
.pace__text .h2 { margin-bottom: 1.4rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.pace__text p { color: var(--ink-soft); }

/* ---------- 4. The route ---------- */
.route__map { position: relative; margin-top: 1rem; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.route__line { stroke: var(--terracotta); stroke-width: 2.5; stroke-dasharray: 7 9; stroke-linecap: round; }
.route__line--faint { stroke: var(--ink); opacity: .13; }
.route__list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 3rem); }
.wp { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: start; }
.wp__dot {
  grid-column: 2; justify-self: center; margin-top: 1.7rem;
  width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--terracotta);
  position: relative; transition: background-color .3s, transform .3s;
}
.wp__dot::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--terracotta);
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease-out);
}
.wp.is-on .wp__dot { background: var(--terracotta); transform: scale(1.15); }
.wp.is-on .wp__dot::after { opacity: .55; transform: scale(1); }
.wp__card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem 1.8rem 1.7rem;
  box-shadow: 0 20px 40px -32px rgba(18, 38, 31, .5);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.wp__card:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -30px rgba(18, 38, 31, .55); }
.wp:nth-child(odd) .wp__card { grid-column: 1; grid-row: 1; }
.wp:nth-child(even) .wp__card { grid-column: 3; grid-row: 1; }
.wp:nth-child(odd) .wp__dot, .wp:nth-child(even) .wp__dot { grid-row: 1; }
.wp__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: .8rem; }
.wp__pages { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.wp__title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; margin-bottom: .6rem; }
.wp__tag { color: var(--ink-soft); margin-bottom: 1rem; }
.wp__chapters { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.2rem; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .9rem; }
.wp__chapters li { padding-left: .9rem; position: relative; }
.wp__chapters li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- 5. Thirty minutes ---------- */
.thirty__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.thirty__sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.clock { position: relative; width: 168px; margin-top: 2.4rem; }
.clock__svg { width: 100%; height: auto; transform: rotate(-90deg); }
.clock__track { fill: none; stroke: var(--sage-2); stroke-width: 6; }
.clock__fill { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.clock__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.clock__time { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.clock__unit { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-top: .3rem; font-weight: 700; }
.steps { display: flex; flex-direction: column; gap: 1.1rem; padding-top: .5rem; }
.step {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem 1.8rem;
  opacity: .5; transform: scale(.985); transition: opacity .45s, transform .5s var(--ease-out), border-color .4s;
}
.step.is-active { opacity: 1; transform: none; border-color: var(--gold); }
.step__time { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); font-variant-numeric: tabular-nums; margin-bottom: .5rem; transition: color .3s; }
.step.is-active .step__time { color: var(--terracotta); }
.step__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .6rem; }
.step p:last-child { color: var(--ink-soft); }
.finish { margin-top: clamp(4rem, 10vh, 7rem); border-top: 1px solid var(--sage-2); padding-top: clamp(2.5rem, 6vh, 4rem); }
.finish__sentence {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.5; max-width: 54rem; text-wrap: pretty;
}
.blank {
  color: var(--forest); border-bottom: 2px solid var(--terracotta); padding: 0 .15em; white-space: nowrap;
  font-style: italic; position: relative;
}
.blank.is-typing::after { content: ""; display: inline-block; width: 2px; height: .9em; background: var(--terracotta); vertical-align: -.1em; margin-left: 2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.finish__note { margin-top: 1.4rem; color: var(--ink-mute); font-size: .92rem; }

/* ---------- 6. Field notes (horizontal deck) ---------- */
.notes { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; }
.notes__track {
  display: flex; align-items: center; gap: clamp(1.4rem, 2.2vw, 2.2rem);
  width: max-content; height: 100vh; padding: 0 clamp(2rem, 6vw, 6rem);
}
.notes__intro { width: min(34rem, 40vw); flex: 0 0 auto; padding-right: clamp(1rem, 4vw, 4rem); }
.notes__intro .h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.notes__hint { margin-top: 1.4rem; color: var(--cream-soft); }
.notes__hint-touch { display: none; }
.note {
  flex: 0 0 auto; width: 22.5rem; background: var(--paper); color: var(--ink); border-radius: 3px;
  padding: 1.8rem 1.9rem 2rem; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6), 0 2px 0 rgba(255, 255, 255, .5) inset;
  transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease-out), box-shadow .5s;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(18, 38, 31, .045) 31px 32px);
  background-position: 0 4.9rem;
}
.note:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .7); }
.note__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: 1rem; }
.note__meta span:last-child { color: var(--ink-mute); text-align: right; }
.note__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; margin-bottom: .8rem; }
.note p:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.notes__end { flex: 0 0 auto; width: min(28rem, 60vw); padding-left: clamp(1rem, 3vw, 3rem); }
.notes__end-text { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.3; margin-bottom: 1.6rem; }

/* ---------- 7. Decision lab ---------- */
.lab__panel { background: var(--sage); border-radius: 6px; padding: clamp(1.2rem, 3vw, 2.4rem); max-width: 60rem; margin-inline: auto; }
.lab__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.tab {
  border: 1.5px solid var(--sage-2); background: transparent; color: var(--ink-soft); border-radius: 999px;
  padding: .55rem 1rem; font-size: .86rem; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s;
}
.tab[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--forest); color: var(--ink); }
.lab__stage { background: var(--paper-2); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 22rem; }
.scn__num { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: .6rem; }
.scn__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin-bottom: .9rem; }
.scn__sit { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.5rem; font-size: 1.06rem; }
.scn__opts { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.opt {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: 1rem; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 4px; padding: .9rem 1.1rem; color: var(--ink);
  transition: border-color .25s, background-color .25s, transform .4s var(--ease-out), opacity .4s;
}
.opt:hover { border-color: var(--forest); transform: translateX(4px); }
.opt__key { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--sage); font-weight: 700; font-size: .9rem; color: var(--forest); }
.opt__mark { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: 0; transition: opacity .3s; }
.scn.is-answered .opt { cursor: default; }
.scn.is-answered .opt:hover { transform: none; }
.scn.is-answered .opt.is-strong { border-color: var(--gold); background: #fdf6e3; }
.scn.is-answered .opt.is-strong .opt__key { background: var(--gold); color: var(--night-deep); }
.scn.is-answered .opt.is-strong .opt__mark { opacity: 1; color: var(--gold); }
.scn.is-answered .opt:not(.is-strong) { opacity: .5; }
.scn.is-answered .opt.is-chosen:not(.is-strong) { opacity: 1; border-color: var(--terracotta); }
.scn.is-answered .opt.is-chosen:not(.is-strong) .opt__mark { opacity: 1; color: var(--terracotta); }
.verdict { border-top: 1px solid var(--line); padding-top: 1.3rem; display: grid; gap: .9rem; }
.verdict[hidden] { display: none; }
.verdict__head { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.verdict__head--soft { color: var(--terracotta); }
.verdict__text { color: var(--ink); max-width: 62ch; }
.verdict__next { display: grid; grid-template-columns: auto 1fr; gap: .8rem; color: var(--ink-soft); max-width: 66ch; }
.verdict__next strong { color: var(--forest); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .25rem; white-space: nowrap; }

/* ---------- 8. What's inside ---------- */
.inside__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.inside__book { display: grid; place-items: center; min-height: 420px; perspective: 1600px; }
.book { position: relative; width: min(320px, 66vw); aspect-ratio: 1200 / 1760; --ry: -26deg; --rx: 5deg; }
.book__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform .8s var(--ease-out);
  animation: float 6.5s ease-in-out infinite;
}
.book__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 40px 70px -30px rgba(6, 26, 18, .7), 0 0 0 1px rgba(0, 0, 0, .15);
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 6%); }
.book__cover::after { content: ""; }
.book__pages {
  position: absolute; top: 1.5%; bottom: 1.5%; left: 5%; right: -5%; border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(90deg, #efe8d6 0 1px, #fbf7ec 1px 3px);
  transform: translateZ(-18px); box-shadow: 0 30px 60px -30px rgba(6, 26, 18, .5);
}
.book__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 24px; background: linear-gradient(90deg, #0b2119, #163d32);
  transform-origin: left center; transform: rotateY(-90deg) translateZ(0) translateX(-12px); border-radius: 3px 0 0 3px; }
.book__shadow { position: absolute; left: 6%; right: -6%; bottom: -12%; height: 10%; border-radius: 50%; background: rgba(6, 26, 18, .45); filter: blur(18px); animation: floatShadow 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes floatShadow { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(.9); opacity: .3; } }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.2rem 2.6rem; margin: 1.6rem 0 .6rem; }
.stat { display: grid; gap: .1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat dd { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.ways { display: grid; gap: .8rem; color: var(--ink-soft); }
.ways li { padding-left: 1.1rem; position: relative; }
.ways li::before { content: "•"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.ways strong { color: var(--ink); font-weight: 500; }
.livelayer { margin-top: 2rem; background: var(--sage); border-radius: 4px; padding: 1.3rem 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.livelayer__title { font-weight: 700; color: var(--ink); margin-bottom: .4rem; font-size: 1rem; }

/* ---------- 8b. About Rocky ---------- */
.rocky__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.polaroid {
  position: relative; margin: 0; justify-self: center; width: min(360px, 78vw);
  background: #fbf8f0; padding: 4.5% 4.5% 0; border-radius: 3px;
  box-shadow: 0 30px 60px -28px rgba(18, 38, 31, .55), 0 1px 0 rgba(255, 255, 255, .8) inset;
  transform: rotate(var(--tilt, -2.2deg)); transition: transform .6s var(--ease-out), box-shadow .6s;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 40px 70px -28px rgba(18, 38, 31, .6); }
.polaroid__tape {
  position: absolute; left: 50%; top: -14px; width: 120px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(225, 180, 92, .38); border: 1px solid rgba(199, 149, 49, .25); backdrop-filter: blur(1px);
}
.polaroid__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sage-2); position: relative; }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .6;
  background: linear-gradient(160deg, rgba(22, 61, 50, .5), rgba(199, 149, 49, .3));
}
.polaroid__caption {
  font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--ink-soft);
  padding: 1.1rem .3rem 1.25rem; text-align: center;
}
.rocky__text .h2 { margin-bottom: 1.4rem; font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 24ch; }
.rocky__bio { display: grid; gap: 1rem; color: var(--ink-soft); max-width: 60ch; }
.profile { margin: 1.8rem 0 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.1rem 1.4rem 1.2rem; max-width: 40rem; }
.profile__head { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: .5rem; }
.profile__row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.profile__row dt { font-weight: 700; color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .2rem; }
.profile__row dd { margin: 0; color: var(--ink-soft); }
.rocky__link { display: inline-block; margin-top: 1.4rem; color: var(--forest); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }
.rocky__link:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ---------- 9. Notice the wild ---------- */
.wild { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; color: var(--cream); padding: clamp(4rem, 12vh, 8rem) 0; background: var(--night); }
.wild__scene { position: absolute; inset: 0; z-index: 0; }
.wild__img { width: 100%; height: 118%; object-fit: cover; object-position: center 45%; transform: translateY(-10%); }
.wild__evening { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 18, .05) 0%, rgba(6, 26, 18, .55) 55%, rgba(6, 26, 18, .96) 100%); opacity: .35; }
.wild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(to bottom, rgba(10, 36, 25, 0), var(--night)); z-index: 1; pointer-events: none; }
.wild__copy { position: relative; z-index: 2; max-width: 40rem; background: rgba(8, 30, 21, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 4px; border: 1px solid rgba(243, 236, 217, .12); }
.wild__quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; text-wrap: balance; }
.wild__body { margin-top: 1.1rem; color: var(--cream-soft); max-width: 50ch; }
.bird--w1 { left: 45%; top: 14%; --dur: 30s; --delay: -4s; width: 30px; height: 20px; --op: .8; offset-path: path("M0 0 C 200 -40, 400 40, 700 -30 S 1100 20, 1500 -30"); }
.bird--w2 { left: 55%; top: 22%; --dur: 38s; --delay: -18s; width: 22px; height: 15px; --op: .65; offset-path: path("M0 0 C 150 60, 500 -20, 800 30 S 1300 -30, 1600 10"); }
.bird--w3 { left: 38%; top: 9%; --dur: 46s; --delay: -30s; width: 36px; height: 24px; --op: .75; offset-path: path("M0 0 C 300 30, 600 -50, 1000 10 S 1400 40, 1800 -20"); }

/* ---------- 10. Get your copy ---------- */
.get { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; padding: clamp(5rem, 14vh, 9rem) 0 clamp(5rem, 12vh, 8rem); color: var(--cream); }
.get__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.get__text { position: relative; }
.get__lede { margin-top: 1.4rem; color: var(--cream-soft); font-size: 1.1rem; max-width: 34rem; }
.get__list { margin-top: 1.6rem; display: grid; gap: .55rem; color: var(--cream-soft); font-size: .97rem; }
.get__list li { padding-left: 1.4rem; position: relative; }
.get__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.bird--g1 { left: 62%; top: -18%; --dur: 40s; --delay: -12s; width: 32px; height: 21px; --op: .7; offset-path: path("M0 0 C 200 -60, 400 30, 700 -40 S 1100 10, 1500 -50"); }

.pass { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(243, 236, 217, .08); }
.pass__band { display: flex; justify-content: space-between; background: var(--forest); color: var(--cream); padding: .8rem 1.6rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.pass__form { position: relative; padding: 1.8rem 1.8rem 1.6rem; min-height: 21rem; }
.pass__form.is-hidden { display: none; }
.pstep { display: none; }
.pstep.is-active { display: block; }
.pstep__count { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: .9rem; }
.pstep__q { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; margin-bottom: 1.2rem; }
.field input {
  width: 100%; font: inherit; font-size: 1.12rem; padding: .95rem 1.1rem; border-radius: 4px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(199, 149, 49, .28); }
.field input[aria-invalid="true"] { border-color: var(--terracotta); }
.field__error { min-height: 1.4rem; margin-top: .5rem; color: var(--terracotta); font-size: .9rem; }
.pstep__actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: .6rem; }
.pstep__hint { font-size: .85rem; color: var(--ink-mute); }
.btn--send { position: relative; }
.btn--send .btn__busy { display: none; }
.pass__form.is-sending .btn--send .btn__label { display: none; }
.pass__form.is-sending .btn--send .btn__busy { display: inline; }
.pass__form.is-sending .btn--send { pointer-events: none; opacity: .85; }
.pass__fine { margin-top: 1.4rem; font-size: .8rem; color: var(--ink-mute); line-height: 1.5; }
.courier { position: absolute; left: 2.2rem; bottom: 4.6rem; width: 34px; height: 24px; opacity: 0; pointer-events: none; }
.courier__bird { width: 34px; height: 24px; fill: var(--forest); }
.courier__letter { position: absolute; left: 11px; top: 16px; width: 12px; height: 9px; background: var(--cream); border: 1px solid var(--gold); border-radius: 1px; }
.courier__letter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-bottom: 1px solid var(--gold); clip-path: polygon(0 0, 50% 100%, 100% 0); background: var(--gold-2); }
.pass__form.is-sending .courier { opacity: 1; offset-path: path("M0 0 C 90 -30, 170 -110, 280 -150 S 430 -230, 560 -320"); offset-rotate: auto; animation: courier 1.7s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes courier { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.pdone { position: relative; padding: 2rem 1.8rem 1.8rem; min-height: 21rem; }
.pdone[hidden] { display: none; }
.pdone__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: .9rem; max-width: 14ch; }
.pdone__body { color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.2rem; }
.pdone__demo { font-size: .82rem; color: var(--ink-mute); background: var(--sage); border-radius: 4px; padding: .6rem .8rem; margin-bottom: 1rem; }
.pdone__demo code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; }
.stamp {
  position: absolute; right: 1.4rem; top: 1.6rem; transform: rotate(-11deg); transform-origin: center;
  border: 3px solid var(--terracotta); border-radius: 6px; padding: .35rem .9rem .45rem; color: var(--terracotta);
  text-align: center; mix-blend-mode: multiply; filter: url(#ink); opacity: .92; pointer-events: none;
}
.stamp__big { display: block; font-weight: 700; font-size: 1.7rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.stamp__small { display: block; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: .25rem; white-space: nowrap; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; background: var(--night-deep); color: var(--cream-soft); padding: 3.5rem 0 2.6rem; border-top: 1px solid rgba(243, 236, 217, .08); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 2rem; align-items: start; }
.foot__brand { font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.foot__tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: .5rem; color: var(--cream); }
.foot__links { display: grid; gap: .4rem; }
.foot__links a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(243, 236, 217, .25); transition: border-color .25s; }
.foot__links a:hover { border-color: var(--gold-2); }
.foot__legal { font-size: .82rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pace__grid, .thirty__grid, .inside__grid, .get__grid, .rocky__grid { grid-template-columns: 1fr; }
  .thirty__sticky { position: static; }
  .clock { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 900px) {
  .notes__track { width: auto; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5rem var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .notes__track::-webkit-scrollbar { display: none; }
  .notes__intro, .note, .notes__end { scroll-snap-align: center; }
  .notes__intro { width: min(30rem, 84vw); padding-right: 0; }
  .note { width: min(22rem, 82vw); }
  .notes__end { width: min(24rem, 82vw); padding-left: 0; }
  .notes__hint-desktop { display: none; }
  .notes__hint-touch { display: inline; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__title { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__scene { height: 46vh; }
  .hero__img { object-position: 42% 40%; }
  .hero__lede { font-size: .98rem; }
  .hero__cue { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .wp { grid-template-columns: 44px 1fr; }
  .wp__dot { grid-column: 1; margin-top: 1.5rem; }
  .wp:nth-child(odd) .wp__card, .wp:nth-child(even) .wp__card { grid-column: 2; }
  .wp__chapters { grid-template-columns: 1fr; }
  .wp__card { padding: 1.3rem 1.3rem 1.4rem; }
  .step { padding: 1.3rem 1.3rem; }
  .lab__stage { padding: 1.2rem; min-height: 0; }
  .opt { grid-template-columns: 2rem 1fr; padding: .8rem .9rem; }
  .opt__mark { grid-column: 2; }
  .verdict__next { grid-template-columns: 1fr; gap: .3rem; }
  .pass__form, .pdone { padding: 1.4rem 1.2rem; }
  .stamp { right: .8rem; top: 1rem; transform: rotate(-11deg) scale(.85); }
  .foot__grid { grid-template-columns: 1fr; }
  .profile__row { grid-template-columns: 1fr; gap: .15rem; }
  .nav__cta { padding: .6rem 1rem; font-size: .8rem; }
  .sky__moon { left: 72%; top: 3%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bird, .hero__cue-line, .book__inner, .book__shadow, .courier { animation: none !important; }
  .blank.is-typing::after { animation: none; }
  .btn, .note, .wp__card, .step, .opt { transition: none; }
  .stars { display: none; }
  /* The notes deck becomes an ordinary side-scrolling shelf instead of a pinned scene. */
  .notes__track { width: auto; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5rem var(--gutter); }
  .notes__intro, .note, .notes__end { scroll-snap-align: center; }
  .notes__hint-desktop { display: none; }
  .notes__hint-touch { display: inline; }
}
