/* One notebook, top to bottom: each section is one of the app's papers (dotted, lined, blackboard, grid), ending on the back cover. */
:root {
  color-scheme: dark;
  --desk: #161514;
  --chalk: #F4EFE6;
  --chalk-dim: rgba(244, 239, 230, .64);
  --coral: #F26B4E;
  --ink: #1F1D1B;
  --ink-dim: rgba(31, 29, 27, .62);
  --paper: #FBF8F2;
  --cream: #F3ECDF;
  --label: #F3E9D2;
  --board: #1E2A25;
  --leather: #6E2A25;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--desk); color: var(--chalk); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
section { position: relative; }

/* ---------- papers (same set as in the app) ---------- */
.paper-dots { background: var(--desk) radial-gradient(rgba(244,239,230,.1) 1.2px, transparent 1.3px) 0 0 / 22px 22px; }
.paper-lined {
  background-color: var(--cream); color: var(--ink);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(70, 110, 160, .16) 35px 36px);
}
.paper-board { background: var(--board) radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.05), transparent 60%); }
.paper-grid {
  background-color: var(--paper); color: var(--ink);
  background-image: linear-gradient(rgba(31,29,27,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,27,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- top bar ---------- */
.bar { position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(22,21,20,.7); border: 1px solid rgba(244,239,230,.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .45s var(--ease); white-space: nowrap; width: max-content; }
.bar.away { transform: translate(-50%, -90px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--chalk-dim); transition: color .2s; }
.bar nav a:hover { color: var(--chalk); }
.bar nav a.bar-cta { background: var(--chalk); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 600; }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].pre { opacity: 0; transform: translateY(22px); }
[data-reveal].pre.in { opacity: 1; transform: none; }

/* ---------- App Store button ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 13px; border: 1px solid rgba(255,255,255,.25); transition: transform .25s var(--pop); }
.store:hover { transform: translateY(-2px) scale(1.03); }
.store svg { width: 22px; height: 26px; }
.store span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 500; }

/* ================= 1. HERO ================= */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: 120px max(20px, calc((100vw - 1240px) / 2)) 90px; min-height: 92vh; }
.hero h1 { font-size: clamp(52px, 7.2vw, 108px); line-height: .9; }
.scrawl { position: relative; display: inline-block; color: var(--coral); }
.scrawl svg { position: absolute; left: 0; bottom: -.1em; width: 100%; height: .22em; overflow: visible; }
.scrawl path { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--chalk-dim); max-width: 31em; margin: 30px 0 34px; }
.lede.dark { color: var(--ink-dim); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.aside { font-size: 14px; color: var(--chalk-dim); }

/* the page stack */
@property --s { syntax: "<length>"; inherits: true; initial-value: 0px; }
.stack-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stack { --W: min(390px, 80vw); position: relative; user-select: none; -webkit-user-select: none; cursor: pointer; width: var(--W); aspect-ratio: 3 / 4.1; }
.leaf { position: absolute; inset: 0; --s: 0px; filter: drop-shadow(0 26px 40px rgba(0,0,0,.55)); transform: rotate(var(--tilt, 0deg)) translate(var(--off, 0px), var(--off, 0px)); transition: transform .6s var(--ease); }
.leaf .sheet { position: absolute; inset: 0; overflow: hidden; border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s)), calc(100% - var(--s)) 100%, 0 100%); }
.leaf .flap { position: absolute; right: 0; bottom: 0; width: var(--s); height: var(--s); pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(135deg, #d9d2c4 0%, #f3eee4 45%, #fffdf8 58%, #cfc7b8 100%); }
.leaf .grab { position: absolute; right: 0; bottom: 0; width: 30%; height: 24%; cursor: grab; touch-action: none; z-index: 5; }
.leaf.idle { animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { --s: 24px; } 50% { --s: 54px; } }
.leaf.leaving { transition: transform .7s var(--ease), opacity .5s .3s; opacity: 0; transform: rotate(-14deg) translate(-40%, -6%); }

.sheet.p-dark { background: #232120 radial-gradient(rgba(244,239,230,.13) 1px, transparent 1.1px) 0 0 / 15px 15px; color: var(--chalk); }
.sheet.p-cream { background: #F4EDE0 radial-gradient(rgba(31,29,27,.13) 1px, transparent 1.1px) 0 0 / 15px 15px; color: var(--ink); }
.sheet.p-kraft { background: #B98D5F radial-gradient(rgba(60,35,10,.14) 1px, transparent 1.1px) 0 0 / 15px 15px; color: var(--ink); }
.sheet .t { position: absolute; top: 5%; width: 100%; text-align: center; font-family: var(--hand); font-weight: 700; font-size: calc(var(--W) * .1); }
.sheet .t::after { content: ""; display: block; width: 38%; height: 3px; margin: 0 auto; background: var(--coral); border-radius: 2px; }
.pic { position: absolute; background: var(--paper); padding: 4% 4% 13%; box-shadow: 0 6px 16px rgba(0,0,0,.35); transform: rotate(var(--r, 0deg)); }
.pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pic.wide img { aspect-ratio: 4 / 3; }
.pic .tp { position: absolute; left: 30%; top: -5%; width: 40%; height: 9%; background: rgba(242,107,78,.85); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 45%); }
.sheet .note { position: absolute; font-family: var(--hand); font-size: calc(var(--W) * .068); line-height: 1.05; }
.sheet .lived { position: absolute; border: 2px solid var(--coral); color: var(--coral); border-radius: 3px; padding: 2px 8px; text-align: center;
  font: 700 calc(var(--W) * .036)/1.2 "Courier New", monospace; letter-spacing: .1em; transform: rotate(-7deg); }
.hint { margin: 0; font-family: var(--hand); font-size: 22px; color: var(--chalk-dim); align-self: flex-end; margin-right: 6%; }
.hint-arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-4px, -4px); } }

/* ================= 2. TRY IT ================= */
.try { padding: clamp(90px, 10vw, 140px) max(20px, 4vw); }
.try-head { max-width: 1180px; margin: 0 auto 48px; }
.kicker { font-family: var(--hand); font-size: 28px; color: var(--coral); margin: 0 0 4px; transform: rotate(-2deg); display: inline-block; }
.try h2 { font-size: clamp(48px, 7vw, 104px); line-height: .9; }
.try .lede { margin: 20px 0 0; }
.studio { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.canvas-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.canvas { position: relative; width: min(520px, 100%); aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 30px 60px rgba(31,29,27,.28); }
.canvas-foot { margin: 0; font-size: 13px; color: var(--ink-dim); }
.paper-p-dots { background: #232120 radial-gradient(rgba(244,239,230,.13) 1.1px, transparent 1.2px) 0 0 / 18px 18px; --cap: var(--chalk); }
.paper-p-lined { background: var(--paper) repeating-linear-gradient(transparent 0 27px, rgba(70,110,160,.2) 27px 28px); --cap: #2a4d8f; }
.paper-p-grid { background-color: var(--paper); background-image: linear-gradient(rgba(31,29,27,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,27,.09) 1px, transparent 1px); background-size: 22px 22px; --cap: var(--ink); }
.paper-p-kraft { background: #B98D5F radial-gradient(rgba(60,35,10,.14) 1px, transparent 1.1px) 0 0 / 16px 16px; --cap: var(--ink); }
.paper-p-board { background: #263330 radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%); --cap: #f5f1e8; }
.paper-p-cream { background: #F4EDE0; --cap: var(--ink); }

.item { position: absolute; left: var(--x); top: var(--y); width: var(--w); cursor: grab; touch-action: none;
  transform: translate(-50%, -50%) rotate(var(--rot)); }
.item.dragging { cursor: grabbing; }
.item.fly { transition: left .8s var(--ease), top .8s var(--ease), transform .8s var(--pop), width .5s var(--ease); }
.item .frame { position: relative; transition: padding .4s var(--ease), background-color .4s, border-radius .4s; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.item .media { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; transition: border-radius .4s; }
.item[data-shape="wide"] .media { aspect-ratio: 4 / 3; }
.item .tape { position: absolute; z-index: 2; width: 46%; height: 13%; left: 27%; top: -6%; background: rgba(242,107,78,.85); opacity: 0; transition: opacity .3s;
  clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 45%); }
.item .holes { height: 0; opacity: 0; background: radial-gradient(circle, #f4efe6 0 35%, transparent 38%) 0 50% / 14px 10px repeat-x; transition: height .4s, opacity .3s; }
.f-polaroid .frame { background-color: var(--paper); padding: 5% 5% 16%; }
.f-tape .frame { padding: 0; } .f-tape .tape { opacity: 1; }
.f-film .frame { background-color: #141312; padding: 0 5%; } .f-film .holes { height: 14px; opacity: 1; }
.f-border .frame { background-color: #fff; padding: 4%; }
.f-rounded .frame { padding: 0; border-radius: 14px; overflow: hidden; }
.f-circle .frame { background-color: var(--paper); padding: 3%; border-radius: 50%; } .f-circle .media { border-radius: 50%; aspect-ratio: 1 !important; }
.f-stamp .frame { background-color: var(--paper); padding: 7%; box-shadow: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, transparent 96%, #000) -6px -6px / 12px 12px round border-box;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, transparent 96%, #000) -6px -6px / 12px 12px round border-box; }
.item .h { position: absolute; width: 26px; height: 26px; background: var(--coral); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--pop); z-index: 3; touch-action: none; pointer-events: none; }
.item .h.rot { right: -13px; top: -13px; border-radius: 50%; cursor: alias; }
.item .h.size { right: -13px; bottom: -13px; border-radius: 6px; cursor: nwse-resize; }
.item.sel { z-index: 20; }
.item.sel .frame { outline: 2px dashed rgba(242,107,78,.95); outline-offset: 6px; }
.item.sel .h { opacity: 1; transform: none; pointer-events: auto; }
.item.f-stamp.sel .frame { outline: none; }
.cv-caption { position: absolute; left: 0; right: 0; bottom: 5%; margin: 0; text-align: center; font-family: var(--hand); font-size: clamp(28px, 4.2vw, 42px); color: var(--cap); pointer-events: none; transform: rotate(-2deg); z-index: 15; transition: color .4s; }
.cv-caption.typing::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -.1em; background: currentColor; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cv-stamp { position: absolute; right: 7%; bottom: 17%; z-index: 16; border: 3px solid #D9472B; color: #D9472B; border-radius: 4px; padding: 3px 12px; text-align: center; font-family: "Courier New", monospace; letter-spacing: .12em; pointer-events: none; opacity: 0; }
.cv-stamp b { display: block; font-size: 22px; } .cv-stamp span { font-size: 12px; font-weight: 700; }
.cv-stamp.hit { animation: thump .5s forwards; }
@keyframes thump { 0% { opacity: 0; transform: scale(2.6) rotate(-18deg); } 55% { opacity: 1; transform: scale(.9) rotate(-8deg); } 75% { transform: scale(1.06) rotate(-8deg); } 100% { opacity: .92; transform: scale(1) rotate(-8deg); } }
.canvas.jolt { animation: jolt .28s .26s; }
@keyframes jolt { 40% { transform: translate(1px, 3px); } 70% { transform: translate(-1px, -1px); } }

.tools { display: flex; flex-direction: column; gap: 28px; padding-top: 6px; min-width: 0; }
.tool { display: flex; flex-direction: column; gap: 10px; }
.tool.row { flex-direction: row; flex-wrap: wrap; }
.tool-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1.5px solid rgba(31,29,27,.2); background: rgba(255,255,255,.55); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--pop); }
.seg button:hover { transform: translateY(-2px); }
.seg button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hands button { font-size: 20px; padding: 4px 12px; line-height: 1.3; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px 10px; padding-bottom: 16px; }
.swatches button { width: 54px; height: 54px; border-radius: 12px; border: 2px solid rgba(31,29,27,.15); cursor: pointer; position: relative; transition: transform .2s var(--pop), border-color .2s; }
.swatches button:hover { transform: translateY(-3px) rotate(-3deg); }
.swatches button.on { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(242,107,78,.3); }
.swatches button span { position: absolute; left: -6px; right: -6px; bottom: -19px; font-size: 11px; color: var(--ink-dim); }
#capInput { border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 6px 2px; font-family: var(--hand); font-size: 30px; color: var(--ink); outline: none; width: 100%; }
#capInput:focus { border-color: var(--coral); }
.btn { border: 0; border-radius: 999px; padding: 13px 20px; background: #C8462B; color: #fff; font-weight: 600; cursor: pointer; transition: transform .2s var(--pop), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(242,107,78,.35); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(31,29,27,.3); }

/* ================= 3. FLIP-THROUGH ================= */
.flip { height: 340vh; }
.flip-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flip-head { position: absolute; top: clamp(84px, 12vh, 120px); left: max(20px, 5vw); right: max(20px, 5vw); display: flex; justify-content: space-between; align-items: end; gap: 12px 20px; z-index: 2; }
.flip-head h2 { font-size: clamp(30px, min(5vw, 8vh), 72px); line-height: .92; color: #f5f1e8; }
.flip-head p { margin: 0; font-family: var(--hand); font-size: 26px; color: rgba(245,241,232,.6); }
.flip-track { position: absolute; left: 0; bottom: clamp(70px, 9vh, 100px); display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 64px); padding: 0 50vw; will-change: transform; }
.shot { flex: 0 0 auto; width: clamp(110px, min(18vw, calc((100svh - 400px) * .42)), 250px); margin: 0; transform: rotate(var(--r)) scale(var(--k, .9)); }
.shot img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.5); border: 6px solid #0c0c0c; }
.shot figcaption { margin-top: 12px; text-align: center; font-family: var(--hand); font-size: clamp(17px, 3vh, 23px); line-height: 1.1; color: #f5f1e8; opacity: var(--o, .35); text-wrap: balance; }
.flip-progress { position: absolute; left: max(20px, 5vw); right: max(20px, 5vw); bottom: 34px; height: 2px; background: rgba(245,241,232,.12); }
.flip-progress span { display: block; height: 100%; width: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }

/* ================= 4. CONTENTS ================= */
.contents { padding: clamp(100px, 11vw, 160px) max(20px, 4vw); }
.contents-inner { max-width: 860px; margin: 0 auto; }
.hand-title { font-family: var(--hand); font-weight: 700; font-size: clamp(64px, 9vw, 120px); letter-spacing: 0; line-height: 1; color: var(--ink); }
.toc { list-style: none; padding: 0; margin: 36px 0 0; }
.toc li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-radius: 6px; transition: padding .3s var(--ease), background .3s; }
.toc li:hover { padding-left: 12px; padding-right: 12px; background: rgba(242,107,78,.08); }
.toc .what { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.3vw, 28px); letter-spacing: -.02em; color: var(--ink); min-width: 0; }
.toc .what small { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--ink-dim); margin-top: 4px; }
.toc .dots { flex: 1; min-width: 16px; border-bottom: 3px dotted rgba(31,29,27,.35); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.toc .pg { font-family: var(--hand); font-size: 30px; color: var(--coral); opacity: 0; transform: scale(1.8) rotate(-12deg); transition: opacity .3s, transform .45s var(--pop); transition-delay: calc(var(--d, 0s) + .6s); min-width: 1.4em; text-align: right; }
.toc li.in .dots { transform: scaleX(1); }
.toc li.in .pg { opacity: 1; transform: none; }
.toc-note { margin: 36px 0 0; font-family: var(--hand); font-size: 26px; color: var(--ink); transform: rotate(-1deg); }
.toc-peek { position: fixed; z-index: 30; left: 0; top: 0; width: 170px; aspect-ratio: 1; object-fit: cover; border: 8px solid #fff; border-bottom-width: 28px; box-shadow: 0 16px 30px rgba(0,0,0,.3); pointer-events: none; opacity: 0;
  transform: translate(var(--px, 0), var(--py, 0)) rotate(4deg) scale(.8); transition: opacity .2s, transform .18s var(--ease); }
.toc-peek.on { opacity: 1; transform: translate(var(--px, 0), var(--py, 0)) rotate(4deg) scale(1); }

/* ================= 5. BACK COVER ================= */
.cover-back { background-color: var(--leather); background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px), radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%); background-size: 6px 6px, auto;
  padding: clamp(110px, 13vw, 180px) max(20px, 4vw) 0; overflow: hidden; }
.elastic { position: absolute; top: 0; bottom: 0; right: 12%; width: 34px; background: var(--coral); box-shadow: inset 4px 0 6px rgba(0,0,0,.25), 6px 0 14px rgba(0,0,0,.25); transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--pop); }
.elastic.in { transform: scaleY(1); }
.end-label { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; background: var(--label); color: var(--ink); padding: clamp(28px, 4vw, 48px); transform: rotate(-1.5deg); box-shadow: 0 20px 40px rgba(0,0,0,.35); text-align: center; }
.end-label.pre { transform: rotate(-1.5deg) translateY(22px); }
.end-label.pre.in { transform: rotate(-1.5deg); }
.end-label h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: .95; }
.end-label p { color: var(--ink-dim); line-height: 1.5; margin: 16px auto 28px; max-width: 30em; }
.foot { position: relative; z-index: 1; margin: clamp(90px, 10vw, 140px) auto 0; padding: 28px 0 32px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; font-size: 14px; color: rgba(244,239,230,.75); max-width: 1180px; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--chalk); }
.foot small { flex-basis: 100%; opacity: .6; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 44px; min-height: 0; }
  .stack { --W: min(330px, 78vw); }
  .studio { grid-template-columns: 1fr; }
  .flip-head { flex-direction: column; align-items: start; }
  .bar { gap: 14px; } .bar nav a:not(.bar-cta) { display: none; }
  .elastic { right: 6%; width: 24px; }
}
@media (pointer: coarse) { .toc-peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.toc .what h3 { font: inherit; letter-spacing: inherit; margin: 0; }

/* ================= 5. FAQ ================= */
.faq { padding: clamp(100px, 11vw, 160px) max(20px, 4vw); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: .95; }
.faq-list { margin-top: 40px; border-top: 1px solid rgba(244,239,230,.14); }
.faq details { border-bottom: 1px solid rgba(244,239,230,.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--hand); font-size: 40px; line-height: 1; color: var(--coral); transition: transform .35s var(--pop); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.02em; }
.faq details p { margin: 0; padding: 0 48px 26px 0; color: var(--chalk-dim); line-height: 1.6; max-width: 40em; }
.faq details[open] p { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-more { margin: 30px 0 0; color: var(--chalk-dim); line-height: 1.6; }
.faq-more a { color: var(--chalk); text-underline-offset: 3px; }
