@font-face { font-family: Rubik; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/rubik-light.ttf') format('truetype'); }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/rubik-regular.ttf') format('truetype'); }
@font-face { font-family: Rubik; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/rubik-bold.ttf') format('truetype'); }

:root {
  color-scheme: light;
  font-family: Rubik, ui-rounded, system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.5;

  --gl-bg: #fffaf7;
  --gl-bg-alt: #fdefe9;
  --gl-surface: #ffffff;
  --gl-ink: #101c28;
  --gl-ink-muted: #5b6573;
  --gl-ink-subtle: #f7dfd8;
  --gl-accent: #c4443e;
  --gl-accent-ink: #ffffff;
  --gl-line: #efe2dc;
  --gl-radius: 1.5rem;
  --gl-radius-lg: 2rem;
  --ok: #13804a;

  --tint-salmon: #fdefe9;
  --tint-mint: #e6f6ee;
  --tint-sky: #e8f1fb;
  --tint-butter: #fff4d6;
  --tint-lilac: #f0ebfb;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 700ms;

  color: var(--gl-ink);
  background: var(--gl-bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--gl-bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gl-accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid #1469d2; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { font-size: 1.125rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.section-shell { width: min(100% - 2rem, 40rem); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: -10000px; top: 0; z-index: 100;
  padding: 0.75rem 1rem; background: var(--gl-ink); color: #fff; border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ---------- Sticky pill nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0.75rem 1rem 0;
}
.site-nav-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; max-width: 100%;
  background: var(--gl-surface); border: 1px solid var(--gl-line);
  border-radius: 999px; padding: 0.5rem 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(16, 28, 40, 0.3);
}
.site-nav-wordmark { font-weight: 700; text-decoration: none; color: var(--gl-ink); font-size: 0.95rem; }
.site-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; min-width: 0; }
.site-nav-links a { text-decoration: none; color: var(--gl-ink-muted); font-size: 0.85rem; font-weight: 500; }
.site-nav-links a:hover { color: var(--gl-accent); }

html.js .site-nav {
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
html.js .site-nav.is-visible,
html.js .site-nav:focus-within { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 640px) {
  .site-nav-inner { gap: 0.9rem; padding: 0.45rem 0.9rem; }
  .site-nav-links { gap: 0.75rem; }
}

/* ---------- Loader curtain (JS-only, generated content, no DOM node) ---------- */
html.loading { overflow: hidden; }
html.loading::before,
html.curtain-exit::before {
  content: "IC Photo";
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--gl-accent); color: var(--gl-accent-ink);
  font: 700 1.75rem/1 Rubik, ui-rounded, system-ui, sans-serif;
  letter-spacing: -0.02em;
  transform: translateY(0);
  transition: transform 500ms var(--ease);
}
html.curtain-exit::before { transform: translateY(-100%); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-block: 5rem 6rem; position: relative; overflow-x: clip; }
.hero-inner {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 3rem;
  width: min(100% - 2rem, 72rem); margin-inline: auto;
}
.hero-title { font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; }
.hero-title a { text-decoration: none; color: var(--gl-accent); }
.reveal-line {
  display: block; overflow: hidden;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.reveal-line-inner { display: block; transform: none; transition: transform var(--dur-3) var(--ease); }
html.js .hero:not(.is-revealed) .reveal-line-inner { transform: translateY(110%); transition: none; }
html.js .hero.is-revealed .reveal-line-inner { transform: none; }
html.js .hero.is-revealed .reveal-line:nth-of-type(1) .reveal-line-inner { transition-delay: 0ms; }
html.js .hero.is-revealed .reveal-line:nth-of-type(2) .reveal-line-inner { transition-delay: 130ms; }

.hero-intro { font-size: 1.25rem; color: var(--gl-ink-muted); margin-block: 1.25rem 1.75rem; max-width: 30ch; }
.reveal-word { display: inline-block; opacity: 1; transform: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
html.js .hero:not(.is-revealed) .reveal-word { opacity: 0; transform: translateY(0.4em); transition: none; }
html.js .hero.is-revealed .reveal-word { opacity: 1; transform: none; }
html.js .hero.is-revealed .reveal-word:nth-child(1) { transition-delay: 260ms; }
html.js .hero.is-revealed .reveal-word:nth-child(2) { transition-delay: 305ms; }
html.js .hero.is-revealed .reveal-word:nth-child(3) { transition-delay: 350ms; }
html.js .hero.is-revealed .reveal-word:nth-child(4) { transition-delay: 395ms; }
html.js .hero.is-revealed .reveal-word:nth-child(5) { transition-delay: 440ms; }
html.js .hero.is-revealed .reveal-word:nth-child(6) { transition-delay: 485ms; }
html.js .hero.is-revealed .reveal-word:nth-child(7) { transition-delay: 530ms; }
html.js .hero.is-revealed .reveal-word:nth-child(8) { transition-delay: 575ms; }
html.js .hero.is-revealed .reveal-word:nth-child(9) { transition-delay: 620ms; }
html.js .hero.is-revealed .reveal-word:nth-child(10) { transition-delay: 665ms; }
html.js .hero.is-revealed .reveal-word:nth-child(11) { transition-delay: 710ms; }

.hero-extra {
  opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
html.js .hero:not(.is-revealed) .hero-extra { opacity: 0; transform: translateY(0.75rem); transition: none; }
html.js .hero.is-revealed .hero-extra { opacity: 1; transform: none; transition-delay: 640ms; }

.app-store-link { display: inline-block; width: 11rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-inline-start: 1rem; text-decoration: none; color: var(--gl-ink); font-weight: 500; font-size: 0.95rem; }
.chevron-glyph { font-size: 1.1rem; line-height: 1; }

.ledger {
  display: flex; gap: 1.75rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--gl-line);
}
.ledger li { display: flex; flex-direction: column; gap: 0.15rem; }
.ledger strong { font-size: 2rem; font-weight: 700; }
.ledger span { font-size: 0.85rem; color: var(--gl-ink-muted); }

.hero-art { position: relative; }

/*
 * Ghost backdrop words: painted behind foreground content everywhere they appear.
 * A negative z-index on an `isolation: isolate` ancestor is the only reliable way to do
 * this — a positioned descendant with z-index: 0 actually paints ABOVE normal in-flow
 * siblings (guides/pill etc. in the normal painting order), which is what made these
 * look like they were colliding with / scrambling the real text.
 */
.ghost {
  position: absolute; display: block; font-weight: 700; color: var(--gl-ink-subtle);
  line-height: 1; white-space: nowrap; z-index: -1; pointer-events: none; user-select: none;
}
/* Sits inside the plate, behind Charlie, like a studio backdrop slogan. */
.ghost-hero {
  top: 6%; left: 50%; transform: translateX(-50%) rotate(-4deg); z-index: 0;
  font-size: clamp(3.5rem, 8vw, 8rem); color: #f6d3ca;
}
.turn-canvas, .hero-plate-fallback { position: relative; z-index: 1; }

.hero-plate {
  position: relative; z-index: 1;
  height: clamp(24rem, 74vh, 42rem); width: auto; margin-inline: auto;
  aspect-ratio: 1 / 1.15; border-radius: var(--gl-radius-lg); background: var(--gl-bg-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.turn-canvas, .hero-plate-fallback { width: 78%; height: 78%; object-fit: contain; }
html.js .hero-plate.is-ready .hero-plate-fallback { display: none; }

/* ---------- Promo video ---------- */
.promo { width: min(100% - 2rem, 60rem); margin-inline: auto; padding-block: 4rem 2rem; }
.promo-heading { padding-bottom: 2rem; }
.promo-frame { position: relative; }
.promo-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--gl-line); border-radius: var(--gl-radius);
  background: var(--gl-surface); box-shadow: 0 1.5rem 4rem rgb(196 68 62 / 12%);
}
.promo-play {
  position: absolute; inset: 0; margin: auto;
  width: clamp(3.5rem, 9vw, 5.5rem); height: clamp(3.5rem, 9vw, 5.5rem);
  border: 0; border-radius: 50%; background: var(--gl-accent);
  box-shadow: 0 0.8rem 2rem rgb(196 68 62 / 30%); cursor: pointer;
}
.promo-play[hidden] { display: none; }
.promo-play span {
  display: block; width: 0; height: 0; margin-inline: auto; transform: translateX(12%);
  border-block: 0.8em solid transparent; border-left: 1.3em solid var(--gl-accent-ink);
  font-size: clamp(0.8rem, 2vw, 1.25rem);
}
.promo-play:hover { background: #a8362f; }
.promo-bar {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.8rem 1.5rem; margin-top: 1rem;
}
.promo-controls { display: flex; gap: 0.5rem; }
.promo-controls[hidden] { display: none; }
.promo-controls button {
  min-height: 2.75rem; padding: 0.45rem 1.1rem;
  border: 1px solid var(--gl-line); border-radius: 999px;
  background: var(--gl-surface); color: var(--gl-ink);
  font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.promo-controls button:hover { border-color: var(--gl-accent); color: var(--gl-accent); }

/* ---------- Feature story ---------- */
/* overflow-x: clip (not hidden) is used defensively throughout: it clips horizontal
   bleed without creating a new scroll container, so it can't break position: sticky
   on descendants such as .story-stage or the reviews .card stack. */
.story { padding-block: 6rem; background: var(--gl-bg); overflow-x: clip; }
.story-heading { position: relative; isolation: isolate; text-align: center; margin-bottom: 3rem; overflow-x: clip; }
.story-heading h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; position: relative; }
.story-heading p { margin-top: 0.5rem; color: var(--gl-ink-muted); font-size: 1.25rem; position: relative; }
.ghost-story {
  top: -2.5rem; left: 50%; transform: translate(-50%, 0);
  font-size: clamp(4rem, 13vw, 8rem);
}

.story-runway { position: relative; }

/* Pinned stage: hidden by default (no-JS / reduced motion) */
.story-stage { display: none; }
html.js:not(.reduced) .story-stage {
  display: flex; position: sticky; top: 0; height: 100svh;
  align-items: center; justify-content: center; gap: 3rem;
  flex-wrap: wrap; padding-block: 2rem;
  background: var(--chapter-tint, var(--tint-salmon));
  transition: background-color var(--dur-3) var(--ease);
}
.stage-frame { position: relative; flex: none; }
.stage-card {
  position: relative; height: min(62vh, 38rem); width: auto; aspect-ratio: 400 / 514;
  border-radius: var(--gl-radius); background: var(--gl-surface);
  box-shadow: 0 30px 60px -30px rgba(16, 28, 40, 0.35);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.stage-charlie, .static-card-charlie { width: 82%; height: auto; position: relative; z-index: 1; }

@keyframes card-snap {
  0% { transform: scale(1); }
  55% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
.story-stage[data-active-chapter="2"] .stage-card { animation: card-snap 420ms var(--ease) 1; }

/* Props paint above Charlie as overlay UI. */
.prop { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 2; }
.story-stage[data-active-chapter="1"] .prop-guides { opacity: 1; }
.story-stage[data-active-chapter="2"] .prop-crop { opacity: 1; }
.story-stage[data-active-chapter="3"] .prop-timer { opacity: 1; }
.story-stage[data-active-chapter="4"] .prop-print { opacity: 1; }
/* The sheet is wider than the portrait card, so let it break out of the card's bounds. */
.story-stage[data-active-chapter="4"] .stage-card { overflow: visible; background: transparent; box-shadow: none; }
.story-stage[data-active-chapter="4"] .stage-charlie { opacity: 0; }
.story-stage[data-active-chapter="5"] .prop-share { opacity: 1; }

/* Chapter 1: Live Feedback */
.story-stage[data-active-chapter="1"] .stage-charlie {
  transform:
    translate(calc((1 - var(--t, 1)) * -14%), calc((1 - var(--t, 1)) * 8%))
    rotate(calc((1 - var(--t, 1)) * -9deg));
  transition: none;
}
.guide-bar { position: absolute; left: 14%; right: 14%; height: 3px; border-radius: 999px; }
.guide-bar--eyes { top: 34%; }
.guide-bar--mouth { top: 62%; }
.guide-bar--accent { background: var(--gl-accent); opacity: min(calc(var(--t, 1) * 4), 1); }
.guide-bar--ok { background: var(--ok); opacity: clamp(0, calc((var(--t, 1) - 0.7) * 3.4), 1); }
.guide-outline {
  position: absolute; left: 22%; right: 22%; top: 14%; bottom: 10%;
  border: 2px dashed currentColor; border-radius: 46% 46% 40% 40% / 52% 52% 30% 30%;
}
.guide-outline--accent { color: var(--gl-accent); opacity: min(calc(var(--t, 1) * 4), 1); }
.guide-outline--ok { color: var(--ok); opacity: clamp(0, calc((var(--t, 1) - 0.7) * 3.4), 1); }
.guide-pill {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  background: var(--ok); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap;
  opacity: clamp(0, calc((var(--t, 1) - 0.75) * 4), 1);
}

/* Chapter 2: Post-Processing */
.crop-mark { position: absolute; width: 1.4rem; height: 1.4rem; border-color: var(--gl-ink); }
.crop-mark--tl { top: 0.5rem; left: 0.5rem; border-top: 3px solid; border-left: 3px solid; transform: translate(calc((1 - var(--t, 1)) * -1.4rem), calc((1 - var(--t, 1)) * -1.4rem)); }
.crop-mark--tr { top: 0.5rem; right: 0.5rem; border-top: 3px solid; border-right: 3px solid; transform: translate(calc((1 - var(--t, 1)) * 1.4rem), calc((1 - var(--t, 1)) * -1.4rem)); }
.crop-mark--bl { bottom: 0.5rem; left: 0.5rem; border-bottom: 3px solid; border-left: 3px solid; transform: translate(calc((1 - var(--t, 1)) * -1.4rem), calc((1 - var(--t, 1)) * 1.4rem)); }
.crop-mark--br { bottom: 0.5rem; right: 0.5rem; border-bottom: 3px solid; border-right: 3px solid; transform: translate(calc((1 - var(--t, 1)) * 1.4rem), calc((1 - var(--t, 1)) * 1.4rem)); }
.crop-label {
  /* Kept inside the card (not translated outside it) so it can never cause horizontal
     overflow — this label previously sat beside the card via translateX(100%), which
     pushed it past the viewport edge whenever the card sat near a layout boundary. */
  position: absolute; right: 0.6rem; bottom: 8%; transform: none;
  background: rgba(255, 255, 255, 0.85); padding: 0.15rem 0.45rem; border-radius: 0.3rem;
  font-size: 0.75rem; font-weight: 700; color: var(--gl-ink-muted); white-space: nowrap;
  opacity: clamp(0, calc((var(--t, 1) - 0.55) * 2.4), 1);
}

/* Chapter 3: Self-Timer */
.timer-count {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 1.6em; height: 1.6em;
  border-radius: 50%; background: var(--gl-ink); color: white;
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; z-index: 2;
}
.timer-caption {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  padding: 0.4rem 0.75rem; border-radius: 2rem; background: white;
  font-size: 0.7rem; font-weight: 600; color: var(--gl-ink-muted); white-space: nowrap; z-index: 2;
}

/* Chapter 4: Print Sheet — a landscape 4R sheet (6:4), wider than the single card */
.prop-print {
  /* Anchored to the card's right edge so the wider sheet grows away from the copy. */
  position: absolute; inset: auto; right: 0; top: 50%; transform: translateY(-50%);
  width: min(160%, 38vw); aspect-ratio: 6 / 4;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 0.5rem; padding: 1rem; background: #fff; border-radius: 0.6rem;
  box-shadow: 0 30px 60px -24px rgba(16, 28, 40, 0.4);
}
.print-copy {
  position: relative; border-radius: 0.3rem; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  opacity: 1; transform: scale(1);
}
.print-copy::before, .print-copy::after {
  content: ""; position: absolute; width: 0.5rem; height: 0.5rem;
  border-color: var(--gl-ink-muted); pointer-events: none;
}
.print-copy::before { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; }
.print-copy::after { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; }
.print-copy img { width: 72%; height: auto; }
html.js:not(.reduced) .story-stage .print-copy { opacity: 0; transform: scale(0.7); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
html.js:not(.reduced) .story-stage[data-active-chapter="4"] .print-copy { opacity: 1; transform: scale(1); }
.story-stage .print-copy:nth-child(1) { transition-delay: 0ms; }
.story-stage .print-copy:nth-child(2) { transition-delay: 60ms; }
.story-stage .print-copy:nth-child(3) { transition-delay: 120ms; }
.story-stage .print-copy:nth-child(4) { transition-delay: 180ms; }
.story-stage .print-copy:nth-child(5) { transition-delay: 240ms; }
.story-stage .print-copy:nth-child(6) { transition-delay: 300ms; }
.chapter-card.static-card--print {
  width: 100%; max-width: 28rem; height: auto; aspect-ratio: 6 / 4;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 0.5rem; padding: 1rem; background: #fff;
}

/* Chapter 5: Share */
.story-stage[data-active-chapter="5"] .stage-card {
  transform:
    translate(calc(var(--t, 1) * 22%), calc(var(--t, 1) * -18%))
    rotate(calc(var(--t, 1) * 14deg));
  opacity: calc(1 - var(--t, 1) * 0.1);
}
.speed-line {
  position: absolute; height: 2px; background: var(--gl-ink-muted); border-radius: 999px;
  opacity: clamp(0, calc((var(--t, 1) - 0.1) * 5), 1);
}
.speed-line--1 { top: 30%; left: -14%; width: 22%; transform: rotate(-24deg); }
.speed-line--2 { top: 45%; left: -18%; width: 26%; transform: rotate(-24deg); }
.speed-line--3 { top: 60%; left: -12%; width: 18%; transform: rotate(-24deg); }

.share-row { display: flex; gap: 0.9rem; justify-content: center; }
.share-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: var(--gl-surface); color: var(--gl-ink); box-shadow: 0 8px 20px -12px rgba(16, 28, 40, 0.4);
}
/*
 * Discrete pop-in on chapter entry (not tied continuously to --t): reaching this
 * chapter should always land the icons at full opacity, rather than depending on
 * scrolling to exactly t = 1.
 */
html.js:not(.reduced) .story-stage .share-row .share-icon {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
html.js:not(.reduced) .story-stage[data-active-chapter="5"] .share-row .share-icon { opacity: 1; transform: none; }
.story-stage .share-row .share-icon:nth-child(1) { transition-delay: 0ms; }
.story-stage .share-row .share-icon:nth-child(2) { transition-delay: 80ms; }
.story-stage .share-row .share-icon:nth-child(3) { transition-delay: 160ms; }
.static-card--share .share-row { margin-top: 0.75rem; }
.static-card--share .share-icon { width: 2.5rem; height: 2.5rem; }

/* Stage copy cross-fade */
.stage-copy { display: grid; position: relative; width: min(32rem, 40vw); max-width: min(32rem, 40vw); flex: 0 0 auto; }
.stage-copy-panel {
  grid-area: 1 / 1; position: relative; visibility: hidden; opacity: 0; transform: translateY(0.5rem);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.stage-copy-panel h3 { font-size: 2rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.stage-copy-panel p { color: var(--gl-ink-muted); font-size: 1.25rem; max-width: 34ch; }
.story-stage[data-active-chapter="1"] .stage-copy-panel[data-chapter="1"],
.story-stage[data-active-chapter="2"] .stage-copy-panel[data-chapter="2"],
.story-stage[data-active-chapter="3"] .stage-copy-panel[data-chapter="3"],
.story-stage[data-active-chapter="4"] .stage-copy-panel[data-chapter="4"],
.story-stage[data-active-chapter="5"] .stage-copy-panel[data-chapter="5"] {
  opacity: 1; transform: none; visibility: visible;
}

/* Progress rail */
.story-rail { display: none; }
html.js:not(.reduced) .story-rail {
  display: flex; position: sticky; top: calc(50% + 15rem); z-index: 2;
  justify-content: center; gap: 0.5rem; height: 0;
}
.story-rail li { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--gl-line); }
.story-rail li[aria-current="step"] { background: var(--gl-accent); }

/* Chapters (scroll spacers + no-JS content) */
.story-chapters .chapter {
  display: grid; grid-template-columns: minmax(14rem, 18rem) min(32rem, 40vw);
  align-items: center; justify-content: center; gap: 2.5rem;
  min-height: 92vh; padding: 3rem 1rem;
  width: min(100% - 2rem, 64rem); margin-inline: auto;
}
@media (prefers-reduced-motion: no-preference) and (width > 23.4375em) and (height > 46.25em) {
  html.js:not(.reduced) .story-chapters .chapter > * {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
.chapter-card {
  position: relative; width: min(78vw, 18rem); aspect-ratio: 400 / 514; margin-inline: auto;
  border-radius: var(--gl-radius); background: var(--gl-surface);
  box-shadow: 0 20px 40px -26px rgba(16, 28, 40, 0.3);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.chapter-copy { width: min(32rem, 40vw); min-width: 0; overflow-wrap: anywhere; }
.chapter-copy h3 { font-size: 2rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.chapter-copy p { color: var(--gl-ink-muted); font-size: 1.25rem; }
.static-card--share { flex-direction: column; justify-content: center; }
.static-card--share .static-card-charlie { width: 60%; margin-bottom: 0.5rem; transform: rotate(-6deg); }

.free-note {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem; text-align: left;
  font-size: 2.5rem; line-height: 1.15; opacity: 1; transform: none;
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
html.js .free-note:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
.free-note-charlie { width: 11.25rem; flex: none; }
.free-note strong { font-weight: 700; }

.chevron { display: block; width: fit-content; margin: 1rem auto 0; font-size: 2.5rem; line-height: 1; text-decoration: none; color: var(--gl-ink-muted); }

/* ---------- Reviews (cards-almanac port) ---------- */
.reviews {
  --accent: var(--gl-accent);
  position: relative; padding-block: 4rem 6rem; overflow-x: clip;
  background: radial-gradient(120% 80% at 50% -8%, var(--gl-surface) 0%, var(--gl-bg) 60%), var(--gl-bg);
}
.intro { position: relative; isolation: isolate; max-width: 40rem; margin: 0 auto; text-align: center; padding: 2rem 0 2.5rem; overflow-x: clip; }
.ghost-reviews { top: -3rem; left: 50%; transform: translate(-50%, 0); font-size: clamp(4rem, 14vw, 8.5rem); }
.intro-eyebrow { position: relative; font: 600 0.8rem/1 Rubik, ui-rounded, system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gl-accent); margin-bottom: 1rem; }
.intro h2 { position: relative; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.intro-sub { position: relative; margin: 0.9rem auto 0; max-width: 30ch; color: var(--gl-ink-muted); font-size: 1.25rem; }

.stack { width: min(84vw, 60rem); margin: 0 auto; }
.card {
  position: sticky; top: var(--top, 12vh);
  margin: 0 0 46vh;
  background: var(--gl-surface); border-radius: var(--gl-radius-lg);
  border: 1px solid var(--gl-line);
  box-shadow: 0 1px 2px rgba(16, 28, 40, 0.06), 0 40px 80px -34px rgba(16, 28, 40, 0.35);
  padding: clamp(0.9rem, 1.4vw, 1.25rem);
  display: grid; grid-template-columns: minmax(11rem, 42%) 1fr; grid-template-rows: 1fr auto;
  gap: clamp(1rem, 1.6vw, 1.6rem);
  min-height: clamp(19rem, 46vh, 30rem);
  transform-origin: 50% 0; will-change: transform;
}
.card:last-child { margin-bottom: 0; }

.card__media { grid-column: 1; grid-row: 1 / span 2; position: relative; border-radius: 1.1rem; overflow: hidden; min-height: 13rem; }
.card__cover { position: absolute; inset: 0; transform-origin: center; transform: scale(1.12); transition: transform 1.15s var(--ease); }
.card--salmon .card__cover { background: radial-gradient(120% 120% at 20% 15%, #ffffff 0%, var(--tint-salmon) 55%, #f7d9cd 100%); }
.card--mint .card__cover { background: radial-gradient(120% 120% at 20% 15%, #ffffff 0%, var(--tint-mint) 55%, #cdeedd 100%); }
.card--sky .card__cover { background: radial-gradient(120% 120% at 20% 15%, #ffffff 0%, var(--tint-sky) 55%, #cfe2f7 100%); }
.card--butter .card__cover { background: radial-gradient(120% 120% at 20% 15%, #ffffff 0%, var(--tint-butter) 55%, #ffe9a8 100%); }
.card--lilac .card__cover { background: radial-gradient(120% 120% at 20% 15%, #ffffff 0%, var(--tint-lilac) 55%, #ddd0f2 100%); }
.card__charlie {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(1.12);
  width: 68%; height: auto; transform-origin: center bottom;
  transition: transform 1.15s var(--ease);
}
html.js .card.-in .card__cover,
html.js .card.-in .card__charlie { transform: translateX(-50%) scale(1); }
html.js .card.-in .card__cover { transform: scale(1); }

.card__body { grid-column: 2; grid-row: 1; padding: 0.5rem 0.5rem 0 0; display: flex; flex-direction: column; }
.card__date { margin: 0 0 1rem; }
.stars { color: var(--gl-accent); letter-spacing: 0.1em; }
.card__text { margin: 0; max-width: 42ch; font-size: clamp(1.125rem, 1.4vw, 1.5rem); line-height: 1.45; color: var(--gl-ink); }
.card__aside { display: block; margin-top: 0.4rem; color: var(--gl-ink-muted); font-size: 0.8rem; }

.card__foot { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.5rem; }
.card__tag { padding: 0.5rem 0.9rem; border-radius: 999px; font: 600 0.8rem/1 inherit; color: var(--gl-ink); background: var(--gl-bg-alt); }
.card__source { font-size: 0.8rem; color: var(--gl-ink-muted); }

.card__date, .card__text, .card__foot {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.65s var(--ease);
}
html.js .card__date, html.js .card__text, html.js .card__foot { opacity: 0; transform: translateY(1.25rem); }
html.js .card.-in .card__date { opacity: 1; transform: none; transition-delay: 0.12s; }
html.js .card.-in .card__text { opacity: 1; transform: none; transition-delay: 0.2s; }
html.js .card.-in .card__foot { opacity: 1; transform: none; transition-delay: 0.3s; }

.tail { height: 60vh; }

@media (max-width: 900px) {
  .stack { width: 88vw; }
  .card { min-height: clamp(17rem, 42vh, 26rem); }
}
@media (max-width: 640px) {
  .stack { width: 92vw; }
  .card {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    min-height: 0; gap: 0.8rem; padding: 0.75rem; border-radius: 1.25rem;
  }
  .card__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; min-height: 0; }
  .card__body { grid-column: 1; grid-row: 2; padding: 0.2rem 0.25rem 0; }
  .card__foot { grid-column: 1; grid-row: 3; padding: 0 0.25rem; }
  .card__text { font-size: 0.98rem; max-width: none; }
}

/* ---------- About ---------- */
.about { padding-block: 5rem; background: var(--gl-bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-card {
  background: var(--gl-surface); border-radius: var(--gl-radius); padding: 2.5rem;
  border: 1px solid var(--gl-line);
}
.about-card img { margin-bottom: 1.25rem; }
.about-card h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.about-card p { color: var(--gl-ink-muted); font-size: 1.125rem; }
.about a { color: var(--gl-accent); }

/* ---------- Download CTA ---------- */
.cta { padding-block: 6rem 0; text-align: center; overflow-x: clip; }
.cta-top h2 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; max-width: 22ch; margin-inline: auto; margin-bottom: 2rem; letter-spacing: -0.02em; }
.cta-top .app-store-link { display: inline-block; width: 12rem; margin-inline: auto; }
.cta-band {
  position: relative; margin-top: 4.5rem; padding-top: 6rem;
  background: var(--gl-bg-alt); overflow: hidden;
}
.cta-charlie {
  position: relative; z-index: 1; width: 13rem; margin: 0 auto;
  opacity: 1; transform: translateY(0);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
html.js .cta-band:not(.is-in) .cta-charlie { opacity: 0; transform: translateY(2rem); }
.cta-wordmark {
  font-size: clamp(5rem, 22vw, 22rem); font-weight: 700; line-height: 0.85;
  color: var(--gl-ink-subtle); white-space: nowrap; text-align: center;
  margin: -0.5rem -5vw -0.12em;
}

/* ---------- Footer ---------- */
footer { background: var(--gl-ink); color: #fff; padding-block: 3rem; text-align: center; font-size: 0.85rem; }
.footer-grid { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.5rem; display: grid; gap: 0.75rem; }
footer a { color: #f3c9c6; }
footer address { font-style: normal; }
.footer-links { margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 56.25em) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; margin-inline: auto; }
  .hero-plate { height: auto; width: min(80vw, 22rem); }
  .hero-extra { display: flex; flex-direction: column; align-items: center; }
  .text-link { margin-inline-start: 0; margin-top: 0.75rem; }
  .ledger { justify-content: center; }

  /* Pinned stage: stack the card above the copy, both full-width and capped in size. */
  html.js:not(.reduced) .story-stage { flex-direction: column; flex-wrap: nowrap; gap: 1.5rem; padding-block: 1.5rem; }
  .stage-card { height: min(42vh, 22rem); }
  .stage-copy { width: min(28rem, 88vw); max-width: min(28rem, 88vw); text-align: center; }
  .prop-print { width: 92%; right: auto; left: 50%; transform: translate(-50%, -50%); }

  .story-chapters .chapter { grid-template-columns: 1fr; text-align: center; width: min(100% - 2rem, 30rem); }
  .chapter-copy { order: 2; width: 100%; }
  .chapter-card { order: 1; }

  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 2rem, 30rem); }
  .promo { padding-block: 3rem 1rem; }
  .promo-video { border-radius: 0.9rem; }
  .promo-bar { flex-direction: column-reverse; align-items: stretch; }
  .promo-controls { justify-content: center; }
  .free-note { flex-direction: column; text-align: center; font-size: 2rem; }
  .hero-title { font-size: clamp(2.75rem, 12vw, 4rem); }
  .ghost-hero { font-size: clamp(3rem, 16vw, 5rem); }
  .ghost-story { font-size: clamp(3rem, 20vw, 6rem); top: -1.5rem; }
  .ghost-reviews { font-size: clamp(3rem, 20vw, 6rem); top: -1.5rem; }
  .cta-wordmark { font-size: clamp(3.5rem, 26vw, 9rem); }
  /* The stacked phone stage has no free band for the rail, and the ghost word
     crowds the two-line heading. */
  html.js:not(.reduced) .story-rail { display: none; }
  .ghost-story { display: none; }
}

/* Font-relative thresholds also account for enlarged browser default text.
   Let the existing static chapters flow naturally rather than clipping copy. */
@media (max-width: 23.4375em), (max-height: 46.25em) {
  html.js:not(.reduced) .story-stage, html.js:not(.reduced) .story-rail { display: none; }
}

/* ---------- Reduced motion: static end-states everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  html.loading::before { display: none; }
  html.js .site-nav { opacity: 1; transform: none; pointer-events: auto; transition: none; }

  html.js .hero .reveal-line-inner,
  html.js .hero .reveal-word,
  html.js .hero .hero-extra {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }

  html.js .hero-plate.is-ready .hero-plate-fallback { display: block !important; }
  .turn-canvas { display: none !important; }

  .story-stage { display: none !important; }
  .story-rail { display: none !important; }
  /*
   * No override needed here for .story-chapters .chapter's children: the sr-only
   * clipping rule (`html.js:not(.reduced) .story-chapters .chapter > *`) already
   * excludes .reduced via :not(), so chapters render in their normal, visible
   * layout automatically. An earlier version of this rule forced position/width/
   * height back with !important "to be safe", which instead broke every prop's
   * containing block (they're absolutely positioned relative to .chapter-card)
   * and made guide lines/crop marks stretch across the whole page.
   */

  html.js .free-note { opacity: 1 !important; transform: none !important; transition: none !important; }

  .card__cover, .card__charlie { transform: translateX(-50%) scale(1) !important; transition: none !important; }
  .card__media .card__cover { transform: scale(1) !important; }
  html.js .card__date, html.js .card__text, html.js .card__foot {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }

  html.js .cta-band .cta-charlie { opacity: 1 !important; transform: none !important; transition: none !important; }
}
