/* Lumora homepage v2 · the 31 Oct sections in the storybook's look (paper, ink, brick, mustard; Literata + Caveat).
   Tokens = the look-dev book's :root. Every reveal is a >= 1 s eased ramp on the clock; nothing changes in one frame. */

/* WOFF2, Latin subset (3 Nov): the same variable fonts, every glyph, axis, kerning and ligature the site uses kept
   (tools/.venv pyftsubset; see REPORT.md). The TTFs stay as the fallback for old browsers. */
@font-face { font-family: "Literata"; src: url("../vendor/fonts/Literata-latin.woff2") format("woff2"), url("../vendor/fonts/Literata.ttf") format("truetype"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../vendor/fonts/Caveat-latin.woff2") format("woff2"), url("../vendor/fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* the book's tokens */
  --paper: #FBF6EA;
  --paper-2: #F3EAD6;
  --white: #FFFFFF;
  --ink: #1B1D24;
  --ink-2: #454856;
  --brick: #9A3B25;
  --mustard: #EDB549;
  --teal: #1F4D57;
  --sky-bottom: #FBE3B0;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --mono: "Courier Prime", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(27,29,36,.06), 0 10px 28px -12px rgba(60,38,20,.35);
  /* the sections' page and rules */
  --page: #F4ECDB;           /* the calm paper the sections sit on */
  --rule: rgba(27,29,36,.14); /* ink rules (the old gold hairlines) */
  --ink-3: #6A6C78;          /* fine print: 5.0:1 on --page */
  --shadow-lg: 0 1px 0 rgba(27,29,36,.06), 0 22px 44px -22px rgba(60,38,20,.42);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.16,.84,.24,1);  /* fast start, long soft landing: a 1 s ramp that still feels quick */
  --ease-io: cubic-bezier(.45,0,.25,1);
  --ramp: 1.1s;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 18px/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(237,181,73,.45); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
main { overflow-x: clip; }
.container { width: min(var(--container), 100% - 2 * var(--pad)); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(80px, 9vw, 136px) 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -.012em; }
.display { font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
h2.display { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.2rem); }
/* section labels: Caveat in brick, like the book's notes */
.eyebrow { display: inline-block; font: 700 clamp(1.45rem, 1.25rem + .6vw, 1.7rem)/1.1 var(--hand); color: var(--brick); letter-spacing: 0; }
.lede { font-size: clamp(1.04rem, .98rem + .3vw, 1.16rem); color: var(--ink-2); max-width: 60ch; }
.serif-lede { font-weight: 600; font-size: clamp(1.2rem, 1.04rem + .6vw, 1.5rem); line-height: 1.35; color: var(--teal); letter-spacing: -.01em; }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { margin: .3em 0 .45em; }
.section-head .lede { margin: 0 auto; }
p { margin: 0 0 1em; }

/* ---------- buttons (the book's): ink-edged paper, mustard only for the primary ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 2px solid var(--ink); font: 700 17px/1.1 var(--serif); text-decoration: none; cursor: pointer; color: var(--ink); background: var(--white); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-gold { background: var(--mustard); }
.btn-plain { background: var(--white); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn .ic, .btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brick); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-size: 1rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }

/* ---------- paper cards (the old glass) ---------- */
.card { position: relative; background: var(--paper) var(--grain); border-radius: 18px; box-shadow: var(--shadow); }
/* bullets: a small brick dot (the old gold stars) */
ul.stars { list-style: none; padding: 0; margin: 18px 0 0; }
ul.stars li { position: relative; padding-left: 24px; margin: 10px 0; color: var(--ink-2); line-height: 1.55; }
ul.stars li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; }
.divider::before, .divider::after { content: ""; height: 2px; width: min(200px, 28vw); background: var(--ink); border-radius: 2px; opacity: .85; }
.divider i { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }
.placeholder { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1.5px dashed var(--brick); color: var(--brick); background: rgba(154,59,37,.05); font-size: .92em; }
.fine { font-size: .86rem; color: var(--ink-3); margin: 16px 0 0; line-height: 1.5; }
/* film frames and photos: white die-cut borders, like the book's cut-outs */
.diecut, .path-media, .gitem .ph, .polaroid, .phone { background: var(--white); box-shadow: var(--shadow-lg); }

/* ---------- header (the book's floating pieces) ---------- */
.top { position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 14px clamp(14px, 3vw, 32px); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: var(--paper); border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.top-cta { margin-left: auto; }
.nav-links { margin-left: auto; display: flex; gap: 4px; padding: 5px; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow); }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links + .menu-btn + .top-cta { margin-left: 0; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: var(--shadow); font: 700 16px/1 var(--serif); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
/* during the book only the logo pill and Enroll show; the nav eases in after it (and back out above it) */
.js .nav-links, .js .menu-btn { opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 1.2s var(--ease-io), transform 1.2s var(--ease-io), visibility 0s linear 1.2s; }
.js.after-book .nav-links, .js.after-book .menu-btn { opacity: 1; visibility: visible; transform: none; transition: opacity 1.2s var(--ease-io), transform 1.2s var(--ease-io), visibility 0s; }
.menu-sheet { position: fixed; z-index: 39; top: 70px; left: 12px; right: 12px; display: none; flex-direction: column; gap: 2px; padding: 10px; background: var(--paper) var(--grain); border-radius: 18px; box-shadow: var(--shadow-lg); }
.menu-sheet a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-size: 18px; font-weight: 600; text-decoration: none; }
.menu-sheet a:not(.btn):hover { background: var(--paper-2); }
.menu-sheet .btn { margin: 8px 4px 4px; }

/* ---------- the hero: the pop-up storybook (look-dev round 3's styles, one page) ---------- */
/* a long section, a sticky stage, native scroll; the engine sets the real height (100vh + intro + page 4 + outro) */
.story { position: relative; height: 550vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the poster under the book (3 Nov): the book's first frame, 160 px wide (fallback/poster-*), blurred and inlined so it
   paints with the CSS. The live canvas fades in over it with a 1.2 s ramp once the engine has drawn, so the hero is
   never an empty page while three.js loads. Blurred because the camera framing follows the window's shape, so a sharp
   still would show a seam in the fade. */
.js .stage::before { content: ""; position: absolute; inset: -48px; background: #F3C697 url("data:image/webp;base64,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") center / cover no-repeat; filter: blur(14px); }
@media (max-width: 760px) { .js .stage::before { background-image: url("data:image/webp;base64,UklGRgIFAABXRUJQVlA4IPYEAAAwGACdASpaAMMAPp1MoEylpCMiJJXZcLATiWNu3VzX5uHCOFbt9D23Q57D0sbydvQ+Q43dFHTrVNLiV0zbQ4vqzd0I3Jd5oJtRpF2/v1lgv//JCjM71L6xPDneJbzbAabpULV4A/eA5J/UP+EYl5kZwq+K5pEYs95lZaO0kDIwbXBDgP0eUSGSWG0ZoPp4OXyybsqnBubfRbuK3hsBOgPuh28Wm//52eZv/rbkymDbHPgPsN0PTVtTl9s4m5K6wwsZojO11M3VhROAAP71ch/ur6/+Y+d+4nWjrKXe2tKPBhXJ4+Dkivb73yB3MPd0dZ9LW9Dp4vZWAwkN6XwQvHk8HTwonzjNFwtr+/IpO4wgRZ6w4mImC/+m0txP8xm/IZRT/05r3gGXXWq/nYteToz5KeivgLaumv+d8B69o4exlo95ig1HrR9UfWHSlwO4iMHfZn4ewuqEFBKHEp1cTifhE9sB3frxPXZTA7kwOw9PdrncRG2xhWHh13n52ZdelcoGpCXSCtWXqxukMmRiTQEscQGKqirtCRCho2FTOFzMHTQfjZ4fBejxyYpk0icDZwnsTOe+IRJFElRaW7LJrZKWgczUzXsIVqNwO4epf5if0IAEQ8i0nSfegIfMS+SrDFxZ/hcYhQf4vEz//jV6ThKd1lIGuKRDepqBt8Fm9d36ZOlWGiU8Cey8MyKkBcmagDwZ3BU61TzMQO1WuBn6Lo+OWWY88oRU9fl4nc97BpF+iDES6fAkzpiO1zC/BHGgXVUXX4kRVsx6mfdXGdTXJU9zOtfNCM7P+PjO9O14EWhdNoh/9P1v2BTKC8ucizLLptpz8w+qx/3CO4VN8FtTa5USxJql7v899ccab8pLMkIu3JTT+tRBJMmtI6+K6f6LbdktxSxZAVKXHWsKoea+Apmi7jpRaA9ZgmbgHptAy3CxNqP5M4yj10NzdIVgnsyVIfJt/s1azsJgBcfk+rs0jAiHvjZMy/T20o0lPhEP3PL7LGxRmekDgQ4NpUzhYJkI0Wza6NY+tIfnLJ914Oh44rGtMTViZpCEFPLP5iFhRv1kZiX4+ER25/KzvKJUqMtJCPRch6OBK0y3HnxFJM8GTz6qdYntXy98kmw1KDhemkJdQuKJwu2swgscMJFDLoD8b9+0OTuLjjOHCZhOONn8zCn8NDN9qAIMkpPNfJGQ5PvjPXaPwMiCCLYTy3x/HgdDVwAnchabJbbG+LKUZbKbwwdkppimH511ojkJl50oX9BPN+BOA9y5mu55KLQX3Ka6v8aOkuKrdRCU2LM7H6a2SiRHVqa9FoL5z2ICYUD9aUPYF5uc8YHmKxeKQS1zFjGSQDq9Y++VudOUEqGNwrbtEhJ/S8P2gYoPyvBn8D2Cnvm/t4HGHRG+ao4CJ5m2E9atKnMRzMhDUZCBNxsGeqAv8TaYKlG8fdohEbsMZLa281NeLQ0MhxP4bQxoC83j6pTNKB0ePRutLGW29+8h/MwEl9DsCkI9uKMYEgg1DuFwU3e44n0UOUUEYFt+9c+Wt6sz6FGMMw7lp3php4sguIHBNLA1+FTZuu4JEILH+RWrVsd/8Z3Fn/wyhg11yyJzQziwnJVCbImmSgSs9XbsTXconRgAUI82zV010L1OwraNZ6Iokq7TJ62lmh8N5s6UStsiX0r+wApQ/Oi6LHw9mTH5vxiPQk0AAAAA"); } }
.js #gl { opacity: 0; transition: opacity 1.2s var(--ease-io); }
.js.gl-ready #gl { opacity: 1; }
.rm .stage::before, .nogl .stage::before, .cap .stage::before { content: none; }
.cap #gl { opacity: 1; transition: none; }
#wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#wires path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
#wires circle { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
/* the cover's card (the engine fades it with a 1 s ramp as the cover starts to open) */
.hero { position: absolute; z-index: 5; left: clamp(20px, 5.5vw, 96px); top: 50%; width: min(520px, 40vw); transform: translateY(-50%); background: var(--paper); border-radius: 18px; padding: 34px 36px 30px; box-shadow: var(--shadow); will-change: transform, opacity; }
.hero .kick { margin: 0 0 6px; font: 700 26px/1.1 var(--hand); color: var(--brick); }
.hero h1 { margin: 0 0 14px; font-weight: 800; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
.hero .sub { margin: 0 0 22px; color: var(--ink-2); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 16px; color: var(--ink-2); }
.hint svg { width: 18px; height: 18px; }
/* the director's-notes card (beat 7), joined to the pads pack by a thin line; its opacity is the engine's ramps */
.note { position: absolute; z-index: 4; width: min(340px, 25vw); background: var(--white); border-radius: 16px; padding: 18px 22px 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px); will-change: opacity, transform; }
.note .n-kick { margin: 0; font: 700 22px/1.15 var(--hand); color: var(--brick); }
.note h2 { margin: 2px 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.note p { margin: 0 0 10px; font-size: 18px; }
.note .lbl { display: block; font-weight: 700; font-size: 16px; color: var(--ink-2); margin-bottom: 2px; }
.note .prompt { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; font: 400 15px/1.5 var(--mono); color: var(--ink); }
.note .prompt .lbl { font-family: var(--serif); }
.note details { margin: 0 0 10px; }
.note summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink-2); list-style: none; display: none; }
.note summary::-webkit-details-marker { display: none; }
.note .sfx { margin: 0; }
/* one page: no pager (the engine still builds it, hidden) */
.pager { display: none !important; }
.skipstory { position: absolute; z-index: 6; right: clamp(16px, 2.5vw, 32px); bottom: 20px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.skipstory:hover { text-decoration: underline; }
/* the hand-off: the outro has already eased the sky to the page's paper (#F4ECDB, the engine's "paper" palette), so the
   stage leaves on paper with no edge; a short paper band with clouds, then the sections rise. Explicit paper behind
   everything below the book: the engine paints body with the sky's bottom colour while the story plays. */
.handoff { position: relative; height: 34vh; min-height: 220px; background: var(--page); }
.site, .foot { background-color: var(--page); }
/* reduced motion and no WebGL (the engine's static book): the card, then the finished page as a still beside its note */
.rm .story { height: auto !important; }
.rm .stage { position: relative; height: auto; overflow: visible; display: block; padding: 96px var(--pad) 24px; }
.rm #gl, .rm #wires, .rm .skipstory { display: none; }
.rm .hero { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; width: min(760px, 100%); margin: 0 auto 32px; }
.rm .hint { display: none; }
.rmpage { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; max-width: 1200px; margin: 0 auto; }
.rmpage picture { display: block; }
.rmpage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; border: 8px solid var(--white); box-shadow: var(--shadow-lg); background: var(--paper-2); }
.rm .note { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto; width: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none; }
.rm .note summary { display: none; }
.rm .note details .prompt { display: block; }
.rm .handoff { height: clamp(120px, 16vw, 220px); min-height: 0; } /* exactly the clouds' height: they stay below the still */
.clouds { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(120px, 16vw, 220px); pointer-events: none; }
.clouds svg { width: 100%; height: 100%; }
.site { position: relative; }

/* ---------- proof numbers ---------- */
.proof { padding: 0 0 8px; }
.proof-band { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); align-items: center; padding: 24px 22px; }
.proof-id { display: flex; align-items: center; gap: 16px; padding: 6px 18px; }
.proof-id img { width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow); object-fit: cover; box-sizing: content-box; }
.proof-id b { display: block; font-weight: 800; letter-spacing: .08em; font-size: .95rem; }
.proof-id span { display: block; font-size: .9rem; color: var(--ink-2); }
.stat { text-align: center; padding: 6px 12px; position: relative; }
.stat::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1.5px; background: var(--rule); }
.stat-num { font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; font: 700 1.3rem/1.1 var(--hand); color: var(--brick); }
.proof-note { margin: 16px 0 0; text-align: center; font-size: .88rem; color: var(--ink-3); }

/* ---------- see how one story is made (the film in a phone frame + the 8 beats) ---------- */
.studio { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); padding: clamp(18px, 3vw, 40px); align-items: start; }
.player { position: relative; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; border: 8px solid var(--white); background: #2A2620; }
.phone video, .phone .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.phone .ph-img { opacity: 0; transition: opacity 1.1s var(--ease-io); }
.player.noVideo .ph-img { opacity: 1; }
.ph-badge { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; align-items: center; padding: 3px 12px 4px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); font: 700 1.15rem/1.1 var(--hand); color: var(--brick); }
.ph-badge i { display: none; }
.ph-badge span { text-transform: lowercase; }
.ph-badge span::first-letter { text-transform: uppercase; }
.ph-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: transparent; border: 0; padding: 0; cursor: pointer; opacity: 0; transition: opacity 1.1s var(--ease-io); }
.ph-play span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.ph-play svg { width: 26px; height: 26px; margin-left: 4px; }
.player.paused .ph-play { opacity: 1; }
.ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.time { font-family: var(--mono); font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sound-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; white-space: nowrap; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--white); cursor: pointer; color: var(--ink-2); font-size: .9rem; transition: border-color 1s var(--ease-io), color 1s var(--ease-io); }
.sound-btn:hover, .sound-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.sound-btn svg { width: 16px; height: 16px; }

.ep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.ep-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); }
.ep-title { font-weight: 700; font-size: clamp(1.25rem, 1.04rem + .7vw, 1.6rem); line-height: 1.25; margin: 4px 0 0; width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: .84rem; color: var(--ink-2); background: var(--paper-2); }

.tl-wrap { margin: 24px 0 8px; }
.tl { display: flex; gap: 6px; height: 90px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.seg { position: relative; flex: var(--w, 1) 1 0; min-width: 0; border-radius: 10px; overflow: hidden; border: 3px solid var(--white); padding: 0; cursor: pointer; background: var(--paper-2); box-shadow: 0 4px 12px -6px rgba(60,38,20,.45); transition: border-color 1s var(--ease-io), box-shadow 1s var(--ease-io); }
.seg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; opacity: .55; filter: saturate(.7); transition: opacity 1s var(--ease-io), filter 1s var(--ease-io); pointer-events: none; }
.seg:hover img { opacity: .85; }
.seg.on { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.seg.on img { opacity: 1; filter: none; }
.seg .num { position: absolute; left: 5px; top: 4px; padding: 0 6px; border-radius: 6px; background: var(--paper); font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--ink); pointer-events: none; }
.seg .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.55); pointer-events: none; }
.seg .fill i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--brick); }
.tl-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }

/* the beat panel: beats cross-fade over 1 s (site.js); its height is the tallest beat's, so nothing jumps */
.beat { margin-top: 22px; display: grid; }
.beat > .beat-in { grid-area: 1 / 1; }
.xf-out { opacity: 0 !important; transition: opacity 1s var(--ease-io) !important; }
.xf-new { opacity: 0; }
.xf-in { opacity: 1; transition: opacity 1.1s var(--ease-io); }
.beat-k { font: 700 1.5rem/1.1 var(--hand); color: var(--brick); text-transform: lowercase; }
.beat-k::first-letter, .spark-meta::first-letter, .path-tag::first-letter, .storybadge b::first-letter, .ribbon::first-letter { text-transform: uppercase; }
.beat-title { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.1rem); margin: .18em 0 .32em; }
.beat-text { font-size: 1.05rem; margin: 0; max-width: 56ch; }
.beat-why { margin: 12px 0 0; font-weight: 600; font-size: 1.06rem; line-height: 1.45; color: var(--teal); }
.beat-why b { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 2px; }
.beat-cards { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.card-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.card-label svg { width: 15px; height: 15px; color: var(--brick); }
/* the prompt slip (the book's .prompt) */
.prompt { margin: 0; font: 400 .84rem/1.65 var(--mono); color: var(--ink); background: var(--paper-2); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; }
.prompt .dim { color: var(--ink-3); }
.prompt .k { color: var(--brick); font-weight: 700; }
.sfx { background: var(--white); border-radius: 12px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--rule); }
.sfx-name { font-weight: 700; font-size: 1rem; line-height: 1.4; margin: 0; }
.sfx-sub { font-size: .84rem; color: var(--ink-3); margin: 10px 0 2px; }
.term { display: inline-block; font-family: var(--mono); font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); margin: 6px 6px 0 0; }
.wavebars { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 16px; }
.wavebars i { flex: 1; max-width: 4px; border-radius: 2px; background: var(--ink); opacity: .7; height: calc(var(--h) * 1%); }
.beat-nav { display: flex; gap: 10px; margin-top: 20px; }
.studio-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 26px; padding-top: 18px; border-top: 1.5px solid var(--rule); font-size: .95rem; color: var(--ink-2); }
.studio-foot strong { color: var(--ink); font-weight: 700; }

/* ---------- two paths ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.path { display: flex; flex-direction: column; min-width: 0; }
.path-media { position: relative; aspect-ratio: 16 / 10; margin: 14px 14px 0; border: 7px solid var(--white); border-radius: 14px; overflow: hidden; }
.path-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.path-tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-block; padding: 2px 14px 4px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); font: 700 1.3rem/1.2 var(--hand); color: var(--brick); text-transform: lowercase; }
.path-tag i { display: none; }
.path-body { padding: 24px clamp(22px, 3vw, 34px) 30px; display: flex; flex-direction: column; flex: 1; }
.path h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; }
.path-body > p { margin: 12px 0 0; color: var(--ink-2); }
.path ul { flex: 1; }
.path-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- parents ---------- */
.parents-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.parents h2 { margin: .3em 0 .45em; }
.parents .serif-lede { margin: 0 0 16px; }
.parents-grid > div > p:not(.serif-lede) { color: var(--ink-2); }
.occasions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.occ { padding: 18px 20px 18px; }
.occ .oi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); color: var(--brick); }
.occ .oi svg { width: 19px; height: 19px; }
.occ h3 { font-size: 1.12rem; margin: 12px 0 4px; }
.occ p { font-size: .95rem; margin: 0; line-height: 1.5; color: var(--ink-2); }
.photos { position: relative; height: clamp(420px, 46vw, 600px); }
.polaroid { position: absolute; margin: 0; padding: 12px 12px 46px; border-radius: 6px; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 1.45rem/1.2 var(--hand); color: var(--ink); }
.polaroid.p1 { width: min(286px, 56%); left: 0; top: 4%; transform: rotate(-5deg); }
.polaroid.p2 { width: min(276px, 54%); right: 0; top: 24%; transform: rotate(4deg); }
.photo-moon { position: absolute; right: 6%; top: -2%; width: 96px; height: 96px; color: var(--mustard); filter: drop-shadow(0 6px 10px rgba(60,38,20,.25)); }
.storybadge { position: absolute; left: 0; bottom: 2%; z-index: 2; max-width: 250px; padding: 14px 18px 16px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-lg); }
.storybadge b { display: block; font: 700 1.35rem/1.1 var(--hand); color: var(--brick); text-transform: lowercase; margin-bottom: 4px; }
.storybadge span { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }

/* the story spark (a paper worksheet) */
.spark { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); margin-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.spark-form { padding: clamp(24px, 3vw, 38px); border-right: 1.5px solid var(--rule); }
.spark-form h3 { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.65rem); margin: .25em 0 .35em; }
.spark-form > p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; font-size: .76rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 10px; }
.input { width: 100%; height: 52px; border-radius: 12px; background: var(--white); border: 2px solid var(--ink); color: var(--ink); font: 600 1.05rem var(--serif); padding: 0 14px; outline: none; }
.input::placeholder { color: var(--ink-3); }
.input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-block; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--rule); font-size: .95rem; color: var(--ink-2); cursor: pointer; transition: background-color 1s var(--ease-io), border-color 1s var(--ease-io), color 1s var(--ease-io); }
.pill span:hover { border-color: var(--ink); color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.spark-form .btn { margin-top: 26px; }
.spark-out { padding: clamp(24px, 3vw, 38px); background: var(--white); min-width: 0; display: grid; }
.spark-out > .sp { grid-area: 1 / 1; min-width: 0; }
.spark-out > .spark-note { grid-row: 2; }
.spark-meta { font: 700 1.35rem/1.1 var(--hand); color: var(--brick); text-transform: lowercase; }
.spark-title { font-size: clamp(1.25rem, 1.02rem + .9vw, 1.65rem); line-height: 1.25; margin: .3em 0 0; }
.spark-beats { list-style: none; margin: 16px 0 0; padding: 0; }
.spark-beats li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1.5px solid var(--rule); font-size: .97rem; line-height: 1.5; color: var(--ink-2); }
.spark-beats li b { display: block; font-family: var(--mono); font-weight: 700; font-size: .78rem; color: var(--brick); padding-top: 3px; }
.spark-beats li small { display: block; font-family: var(--serif); font-size: .64rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); margin-top: 2px; }
.spark-note { font-size: .86rem; color: var(--ink-3); margin: 16px 0 0; line-height: 1.55; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gcol { display: flex; flex-direction: column; gap: 18px; }
.gcol:nth-child(2n) { margin-top: 56px; }
.gitem { position: relative; margin: 0; }
.gitem img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 7px solid var(--white); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-lg); }
.gitem figcaption { margin-top: 8px; text-align: center; font: 700 1.3rem/1.15 var(--hand); color: var(--ink); }

/* ---------- Chapter 0 free (the lesson card: the book cover's teal cloth, a mustard play button) ---------- */
.free-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(18px, 2.6vw, 34px); }
.lesson { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; border: 8px solid var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--teal); box-shadow: var(--shadow-lg); }
.lesson::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--mustard); border-radius: 8px; opacity: .85; pointer-events: none; }
.lesson-badge { position: absolute; left: 22px; top: 22px; z-index: 1; padding: 4px 12px; border-radius: 10px; background: var(--paper); font: 700 1.25rem/1.15 var(--hand); color: var(--brick); }
.lesson-badge i { display: none; }
.lesson-soon { position: absolute; right: 22px; top: 22px; z-index: 1; padding: 5px 11px; border-radius: 999px; border: 1.5px dashed var(--paper); color: var(--paper); font-size: .84rem; font-weight: 600; }
.lesson-num { position: absolute; left: 6%; bottom: -.12em; font-weight: 800; font-size: clamp(5rem, 9vw, 8.5rem); line-height: 1; color: rgba(251,246,234,.14); pointer-events: none; }
.lesson-play { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); padding: 0; cursor: pointer; color: var(--ink); background: var(--mustard); box-shadow: 0 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.lesson-play:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.lesson-play svg { width: 28px; height: 28px; margin-left: 4px; }
.lesson-k { position: relative; margin-top: 16px; font: 700 1.7rem/1.1 var(--hand); color: var(--paper); }
/* the real player (3 Nov): the same white die-cut frame around the video, nothing drawn over the picture */
.lesson.lesson-video { display: block; aspect-ratio: auto; padding: 0; background: var(--ink); }
.lesson.lesson-video::before { content: none; }
.lesson-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.free-copy h2 { margin: .25em 0 .3em; }
.free-copy .serif-lede { margin: 0 0 14px; }
.free-copy .lede { margin-bottom: 0; }
.free-copy ul.stars { margin: 18px 0 4px; }
.free-copy .cta-row { gap: 14px 26px; }
.free-tag { display: inline-block; margin-left: 8px; font: 700 1.25rem/1 var(--hand); color: var(--brick); }
.mod.is-free { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.mod-free { margin: 0 24px 22px 96px; }
.free-nudge { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 30px auto 0; font-size: 1.02rem; color: var(--ink-2); }
.free-nudge p, .free-nudge { text-align: center; }

/* ---------- curriculum (paper accordion) ---------- */
.curr { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(36px, 5vw, 84px); align-items: start; }
.curr-intro { position: sticky; top: calc(var(--nav-h) + 30px); }
.curr-intro h2 { margin: .3em 0 .45em; }
.curr-intro .lede { margin-bottom: 0; }
.curr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 30px; }
.fact { padding: 14px 12px; text-align: center; }
.fact b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.fact span { display: block; font: 700 1.2rem/1.15 var(--hand); color: var(--brick); margin-top: 4px; }
.mods { display: flex; flex-direction: column; gap: 12px; }
.mod { border-radius: 16px; overflow: hidden; }
.mod-btn { width: 100%; display: grid; grid-template-columns: 62px minmax(0, 1fr) 32px; align-items: center; gap: 12px; padding: 18px 22px; background: none; border: 0; text-align: left; cursor: pointer; position: relative; z-index: 1; }
.mod-num { font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--brick); }
.mod-title { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.bonus-note { margin: clamp(28px, 4vw, 44px) 0 16px; font-size: 1rem; color: var(--ink-2); }
.mod-tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; border: 1.5px dashed var(--brick); color: var(--brick); font-size: .78rem; font-weight: 700; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }
.mod-sum { display: block; font-size: .97rem; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.mod-plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); color: var(--ink); transition: transform 1s var(--ease), background-color 1s var(--ease-io), color 1s var(--ease-io); }
.mod-plus svg { width: 14px; height: 14px; }
.open > .mod-btn .mod-plus, .qa.open .mod-plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1s var(--ease); }
.open > .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; min-height: 0; visibility: hidden; opacity: 0; transition: opacity 1s var(--ease-io), visibility 0s linear 1s; }
.open > .acc-body > div { visibility: visible; opacity: 1; transition: opacity 1.1s var(--ease-io), visibility 0s; }
/* without JS every chapter and answer is simply open */
.no-js .acc-body { grid-template-rows: 1fr; }
.no-js .acc-body > div { visibility: visible; opacity: 1; }
.mod ul.stars { margin: 0; padding: 0 24px 22px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; }
.mod ul.stars li { font-size: .97rem; margin: 7px 0; }
.mod.featured .mod-btn::after { content: "Case study"; position: absolute; right: 66px; top: 50%; transform: translateY(-50%); font: 700 1.25rem/1 var(--hand); color: var(--brick); }

/* ---------- the Lumora AI Director (a paper window with folder tabs) ---------- */
.director { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.director h2 { margin: .3em 0 .3em; }
.director .serif-lede { margin: 0 0 16px; }
.director > div > p:not(.serif-lede) { color: var(--ink-2); }
.dir-steps { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 22px; padding-top: 14px; border-top: 1.5px solid var(--rule); font: 700 1.4rem/1.3 var(--hand); color: var(--brick); }
.dir-steps span:not(:last-child)::after { content: "·"; margin: 0 .45em; color: var(--ink-3); }
.dir-visual { position: relative; }
.window { border-radius: 18px; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1.5px solid var(--rule); }
.win-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.win-title { font-size: .9rem; color: var(--ink-2); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title b { color: var(--ink); font-weight: 800; }
.tabs { display: flex; gap: 6px; padding: 14px 14px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: transparent; border: 1.5px solid transparent; color: var(--ink-2); cursor: pointer; transition: background-color 1s var(--ease-io), border-color 1s var(--ease-io), color 1s var(--ease-io); }
.tab:hover { color: var(--ink); border-color: var(--rule); }
.tab[aria-selected="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.win-body { margin: 14px; padding: 14px 18px 18px; height: 360px; overflow: auto; border-radius: 12px; background: var(--paper-2); scrollbar-width: thin; scrollbar-color: rgba(27,29,36,.3) transparent; display: grid; }
.win-body > [role="tabpanel"] { grid-area: 1 / 1; min-width: 0; }
.win-body > [role="tabpanel"].off { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease-io), visibility 0s linear 1s; }
.win-body > [role="tabpanel"].on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease-io), visibility 0s; }
.win-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.win-body td { padding: 8px 8px 8px 0; border-top: 1.5px solid var(--rule); vertical-align: top; line-height: 1.5; color: var(--ink); }
.win-body tr:first-child td { border-top: 0; }
.win-body td:first-child { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--brick); white-space: nowrap; width: 1%; padding-right: 14px; }
.win-body pre { margin: 0; font: 400 .82rem/1.65 var(--mono); white-space: pre-wrap; color: var(--ink); }
.win-body pre .k { color: var(--brick); font-weight: 700; }
.win-body pre .dim { color: var(--ink-3); }
.win-src { padding: 0 20px 16px; font-size: .84rem; color: var(--ink-3); }
.bonus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 7vw, 92px); }
.bonus { padding: 22px 22px 22px; }
.bonus .bi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); color: var(--brick); }
.bonus .bi svg { width: 20px; height: 20px; }
.bonus h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.bonus p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- the real workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; border-top: 2px dashed rgba(27,29,36,.35); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .n { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--brick); position: relative; z-index: 1; }
.step .n svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.12rem; margin: 18px 0 6px; }
.step p { margin: 0; font-size: .97rem; line-height: 1.5; color: var(--ink-2); }
.step .tool { display: inline-block; margin-top: 10px; font: 700 1.15rem/1.15 var(--hand); color: var(--brick); }
.screens { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 40px); margin-top: clamp(56px, 6vw, 84px); }
.screen { margin: 0; width: clamp(150px, 17vw, 214px); text-align: center; }
.screen .shot { border-radius: 24px; overflow: hidden; border: 7px solid var(--white); box-shadow: var(--shadow-lg); background: var(--white); }
.screen:nth-child(1) .shot { transform: rotate(-3deg) translateY(10px); }
.screen:nth-child(3) .shot { transform: rotate(3deg) translateY(10px); }
.screen figcaption { margin-top: 20px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.screen figcaption b { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--brick); margin-bottom: 4px; }
.screen .shot-ph { position: relative; aspect-ratio: 400 / 832; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 16px; text-align: center; border-radius: 17px; background: var(--paper-2); }
.screen .shot-ph::before { content: ""; position: absolute; top: 12px; left: 50%; width: 30%; height: 5px; border-radius: 5px; transform: translateX(-50%); background: rgba(27,29,36,.15); }
.shot-ph .ph-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); color: var(--brick); }
.shot-ph .ph-ic svg { width: 22px; height: 22px; }
.shot-ph b { font: 700 1.35rem/1.1 var(--hand); color: var(--brick); }
.shot-ph span:not(.ph-ic) { font-size: .88rem; line-height: 1.45; color: var(--ink-2); max-width: 15ch; }
.shot-ph i { display: block; width: 72%; height: 7px; border-radius: 7px; background: rgba(27,29,36,.1); }
.shot-ph i:nth-of-type(1) { margin-top: 16px; }
.shot-ph i:nth-of-type(2) { width: 54%; }
.shot-ph i:nth-of-type(3) { width: 63%; }
.tools-note { text-align: center; font-size: .86rem; color: var(--ink-3); margin: 34px auto 0; max-width: 640px; }

/* ---------- who it's for ---------- */
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.who-card { padding: clamp(26px, 3vw, 40px); }
.who-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.who-card h3 span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--ink); }
.who-card h3 svg { width: 16px; height: 16px; }
.yes h3 span { background: var(--ink); color: var(--paper); }
.no h3 span { background: var(--white); color: var(--ink-2); }
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { position: relative; padding: 12px 0 12px 30px; border-top: 1.5px solid var(--rule); line-height: 1.5; color: var(--ink-2); }
.list li:first-child { border-top: 0; }
.list li::before { position: absolute; left: 2px; top: 12px; font-weight: 800; }
.yes .list li::before { content: "✓"; color: var(--teal); }
.no .list li::before { content: "✕"; color: var(--ink-3); font-size: .85em; top: 13px; }
.no { background-color: var(--paper-2); }

/* ---------- your guide ---------- */
.guide { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.orb-wrap { position: relative; max-width: 380px; margin: 0 auto; width: 100%; }
.orb { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid var(--white); box-shadow: var(--shadow-lg); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.guide h2 { margin: .3em 0 .45em; }
.guide .lede { max-width: none; }
.guide-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gstat { padding: 14px 18px; min-width: 150px; }
.gstat b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.gstat span { display: block; font: 700 1.2rem/1.15 var(--hand); color: var(--brick); margin-top: 2px; }
#guide { padding-bottom: clamp(30px, 5vw, 70px); }

/* ---------- pricing (three level paper cards; the recommended one inked, no podium) ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: stretch; max-width: 520px; margin: 0 auto; }
.plan { padding: 32px clamp(22px, 2.4vw, 32px) 30px; display: flex; flex-direction: column; }
.plan.best { box-shadow: var(--shadow-lg), inset 0 0 0 2.5px var(--ink); }
.ribbon { display: block; margin: -8px 0 4px; font: 700 1.45rem/1.1 var(--hand); color: var(--brick); text-transform: lowercase; }
.plan-name { font-weight: 800; letter-spacing: .12em; font-size: .92rem; color: var(--ink-2); }
.price { display: flex; align-items: flex-start; gap: 4px; margin: 14px 0 4px; }
.price .cur { font-size: 1.5rem; font-weight: 700; margin-top: 8px; color: var(--ink-2); }
.price .amt { font-size: clamp(3rem, 2.4rem + 1.6vw, 3.8rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.plan-desc { color: var(--ink-2); font-size: 1rem; margin: 8px 0 0; }
.plan ul.stars { flex: 1; margin-top: 20px; padding-top: 16px; border-top: 1.5px solid var(--rule); }
.plan ul.stars li { font-size: .97rem; margin: 9px 0; }
.plan ul.stars li.plus { color: var(--ink); font-weight: 700; }
.plan .btn { width: 100%; margin-top: 24px; }
.promise { display: flex; gap: 24px; align-items: center; max-width: 860px; margin: clamp(40px, 5vw, 60px) auto 0; padding: 24px 30px; }
.seal { width: 82px; height: 82px; flex: none; color: var(--brick); }
.promise h3 { font-size: 1.3rem; }
.promise p { margin: 6px 0 0; }
.pricing-fine { text-align: center; font-size: .88rem; color: var(--ink-3); margin: 26px auto 0; max-width: 720px; }

/* ---------- FAQ (paper accordion) ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.qa { border-bottom: 1.5px solid var(--rule); }
.qa:first-child { border-top: 1.5px solid var(--rule); }
.qa-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; background: none; border: 0; color: var(--ink); font: 700 1.1rem/1.4 var(--serif); text-align: left; cursor: pointer; }
.qa-btn .mod-plus { flex: none; }
.qa .acc-body p { margin: 0 50px 22px 4px; max-width: 70ch; color: var(--ink-2); }
.qa .acc-body a { color: var(--brick); font-weight: 700; }

/* ---------- the final call ---------- */
.final { text-align: center; padding: clamp(96px, 11vw, 160px) 0 clamp(170px, 18vw, 250px); overflow: clip; }
.final .emblem { width: clamp(110px, 12vw, 150px); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto 30px; border-radius: 50%; border: 8px solid var(--white); box-shadow: var(--shadow-lg); box-sizing: content-box; }
.final h2 { max-width: 16em; margin: 0 auto .4em; }
.final .serif-lede { max-width: 30em; margin: 0 auto; }
.final .cta-row { justify-content: center; }
.clouds-final { height: clamp(110px, 14vw, 200px); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 44px 0 56px; font-size: .95rem; color: var(--ink-2); background: var(--paper-2); border-top: 1.5px solid var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.foot-brand { box-shadow: none; background: var(--paper); padding-right: 18px; }
.foot-brand img { width: 40px; height: 40px; }
.brand-word { display: block; font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--ink); text-transform: lowercase; }
.brand-word::first-letter { text-transform: uppercase; }
.brand-sub { display: block; font: 700 1.1rem/1.1 var(--hand); color: var(--brick); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-self: center; }
.foot-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { width: 100%; margin: 0; font-size: .84rem; line-height: 1.6; color: var(--ink-3); max-width: 900px; }

/* ---------- toast (the book's) ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 16px; max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity 1s var(--ease-io), transform 1.1s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveals: a gentle 1.2 s rise on the clock, only when JS runs ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease-io), transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 8px 11px; }
}
@media (max-width: 1020px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .flow::before { display: none; }
  .studio { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .beat-cards { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gcol:nth-child(5) { display: none; }
  .proof-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-id { grid-column: 1 / -1; justify-content: center; padding-bottom: 18px; margin-bottom: 12px; border-bottom: 1.5px solid var(--rule); }
  .proof-band .stat:nth-child(2)::before { display: none; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .menu-sheet { display: flex; left: auto; width: min(340px, calc(100vw - 24px)); right: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 1s var(--ease), transform 1s var(--ease), visibility 0s linear 1s; }
  .menu-open .menu-sheet { opacity: 1; visibility: visible; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease), visibility 0s; }
}
@media (max-width: 900px) {
  .parents-grid, .curr, .director, .guide { grid-template-columns: minmax(0, 1fr); }
  .paths, .who { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .curr-intro { position: static; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .player { width: min(310px, 82%); margin: 0 auto; }
  .spark { grid-template-columns: minmax(0, 1fr); }
  .spark-form { border-right: 0; border-bottom: 1.5px solid var(--rule); }
  .photos { height: auto; display: flex; justify-content: center; padding: 24px 0 10px; }
  .photos .polaroid { position: relative; left: auto; right: auto; top: auto; width: min(46%, 240px); }
  .photos .p1 { margin-right: -24px; z-index: 1; }
  .photos .p2 { margin-top: 44px; }
  .photo-moon { width: 64px; height: 64px; right: 2%; top: -4%; }
  .storybadge { left: 50%; bottom: -8px; transform: translateX(-50%); width: max-content; max-width: 86%; }
  .free-card { grid-template-columns: minmax(0, 1fr); }
  .orb-wrap { max-width: min(280px, 72%); }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; --pad: 16px; }
  body { font-size: 17px; }
  .top { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 18px; padding-right: 14px; }
  .brand img { width: 32px; height: 32px; }
  .menu-btn { padding: 0 14px; }
  .menu-sheet { top: 62px; left: 12px; right: 12px; width: auto; }
  .hero { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; transform: none; padding: 20px 20px 18px; border-radius: 16px; }
  .hero .kick { font-size: 23px; }
  .hero h1 { font-size: 27px; margin-bottom: 10px; }
  .hero .sub { margin-bottom: 16px; font-size: 17px; line-height: 1.55; }
  .hero .ctas { gap: 10px; }
  .hero .ctas .btn { flex: 1 1 auto; min-height: 48px; padding: 0 14px; font-size: 16px; }
  .hint { margin-top: 12px; }
  .note { left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px; width: auto; padding: 14px 18px 16px; }
  .note h2 { font-size: 23px; margin-bottom: 6px; }
  .note .n-kick { font-size: 21px; }
  .note p { margin-bottom: 8px; font-size: 17px; }
  .note summary { display: block; }
  .note details:not([open]) .prompt { display: none; }
  .note summary::before { content: "▸ "; }
  .note details[open] summary::before { content: "▾ "; }
  .skipstory { bottom: auto; top: 112px; right: 16px; font-size: 14px; padding: 6px 12px; }
  .handoff { height: 26vh; min-height: 160px; }
  .rm .stage { padding-top: 80px; }
  .rmpage { grid-template-columns: minmax(0, 1fr); }
  .rmpage img { aspect-ratio: 3 / 4; border-width: 6px; }
  .section-head { text-align: left; }
  .cta-row .btn { flex: 1 1 100%; }
  .proof-band { padding: 18px 6px; }
  .proof-id { padding: 4px 6px 16px; }
  .stat { padding: 4px 4px; }
  .stat-label { font-size: 1.1rem; }
  .studio { padding: 16px 14px 22px; }
  .tl { height: 74px; gap: 4px; }
  .seg { flex: 1 1 0; border-width: 2px; border-radius: 8px; }
  .seg .num { left: 3px; top: 3px; font-size: .62rem; padding: 0 4px; }
  .occasions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .occ { padding: 14px 14px; }
  .occ h3 { font-size: 1.02rem; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 14px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gcol, .gcol:nth-child(5) { display: contents; }
  .gitem { flex: 0 0 58%; scroll-snap-align: center; }
  .curr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-btn { grid-template-columns: 40px minmax(0, 1fr) 32px; padding: 16px 14px; gap: 10px; }
  .mod-num { font-size: 1.35rem; }
  .mod ul.stars { grid-template-columns: minmax(0, 1fr); padding: 0 16px 18px 64px; }
  .mod-free { margin: 0 16px 18px 64px; }
  .mod.featured .mod-btn::after { display: none; }
  .win-body { margin: 10px; padding: 12px 14px 16px; }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow .step:last-child { grid-column: 1 / -1; }
  .screens { gap: 10px; }
  .screen { width: 31%; }
  .screen .shot { border-radius: 16px; border-width: 5px; }
  .screen .shot-ph { gap: 8px; padding: 20px 6px; border-radius: 11px; }
  .shot-ph .ph-ic { width: 38px; height: 38px; }
  .shot-ph .ph-ic svg { width: 17px; height: 17px; }
  .shot-ph b { font-size: 1.1rem; }
  .shot-ph span:not(.ph-ic) { font-size: .72rem; }
  .shot-ph i { height: 5px; }
  .shot-ph i:nth-of-type(1) { margin-top: 8px; }
  .screen figcaption { font-size: .78rem; }
  .lesson { border-width: 6px; aspect-ratio: 4 / 3; padding-top: 34px; }
  .lesson::before { inset: 8px; }
  .lesson-badge { left: 14px; top: 14px; font-size: 1.05rem; padding: 2px 9px; }
  .lesson-soon { right: 14px; top: 14px; font-size: .72rem; padding: 3px 8px; }
  .lesson-play { width: 64px; height: 64px; }
  .lesson-play svg { width: 22px; height: 22px; }
  .lesson-k { margin-top: 10px; font-size: 1.35rem; }
  .bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .promise { flex-direction: column; text-align: center; padding: 24px 20px; }
  .qa .acc-body p { margin-right: 4px; }
  .foot { padding-bottom: 40px; }
}
@media (max-width: 400px) {
  .proof-id img { width: 48px; height: 48px; }
  .stat-num { font-size: 1.6rem; }
  .btn { padding: 0 18px; }
  .ctrl { gap: 8px; }
  .sound-btn { padding: 0 12px; }
  .top .btn { padding: 0 14px; }
  .brand { padding-right: 12px; }
}
@media (max-width: 760px) and (max-height: 700px) { .hero h1 { font-size: 24px; } .hero .sub { display: none; } }
@media (max-width: 350px) {
  .occasions { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { padding: 0 10px; }
}

/* ---------- reduced motion: every state at once, nothing eased ---------- */
/* (.reduce, not .rm: the book also sets .rm for its still when there is no WebGL, and then the page keeps its ramps) */
.reduce .rv, .reduce .nav-links, .reduce .menu-btn { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}
