/* ───────────────────────────────────────────────────────────
   BONE & BLOOM — a scrapbook interface.
   Palette sampled from the film's frames:
   paper #c6b49b→#efe5d2, grass #22310c/#385b35, rose flower
   #d4507a, heart #e08c84, marigold #f2b233, night #1f3566,
   sunset #f87538, sky #9fe0d0, cover #6c583f.
   Beat zones are placed in FILM coordinates (1920x1080, cover
   fit) through --s, so copy lands in the empty paper around
   the photo on any viewport.
   ─────────────────────────────────────────────────────────── */

:root {
  --paper: #efe5d2;
  --paper-2: #e6d8bf;
  --paper-3: #d8c6a5;
  --kraft: #c6b49b;
  --bone: #f6f1e4;
  --ink: #2b2118;
  --ink-2: #5a4a3a;
  --ink-3: #8a7862;
  --rose: #d4507a;
  --rose-2: #b93a63;
  --blush: #e08c84;
  --gold: #f2b233;
  --sunset: #f87538;
  --grass: #22310c;
  --grass-2: #385b35;
  --sage: #b9c79c;
  --night: #1f3566;
  --night-2: #16264a;
  --sky: #9fe0d0;
  --cover: #6c583f;

  --f-display: 'Big Shoulders Display', 'Oswald', Impact, sans-serif;
  --f-script: 'Caveat', 'Marck Script', cursive;
  --f-script-2: 'Marck Script', 'Caveat', cursive;
  --f-body: 'Lora', Georgia, serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --s: max(calc(100vw / 1920), calc(100vh / 1080));
  --scroll-length: 1150vh;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --hud: var(--bone);
  --torn: polygon(0% 3%, 4% 0%, 9% 2%, 15% 0%, 22% 3%, 28% 1%, 35% 2%, 41% 0%, 48% 3%, 55% 1%, 61% 2%, 68% 0%, 74% 3%, 81% 1%, 88% 2%, 94% 0%, 100% 2%, 99% 20%, 100% 40%, 98% 60%, 100% 80%, 99% 98%, 93% 100%, 86% 97%, 79% 100%, 72% 98%, 65% 100%, 58% 97%, 51% 100%, 44% 98%, 37% 100%, 30% 97%, 23% 100%, 16% 98%, 9% 100%, 3% 97%, 0% 100%, 1% 80%, 0% 60%, 2% 40%, 0% 20%);
  color-scheme: light;
}
:root.is-light, [data-mode="video"] { --hud: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.script { font-family: var(--f-script); font-weight: 700; letter-spacing: 0; }
.display { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .86; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--rose); outline-offset: 3px; }
.small { font-size: 13px; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ── loader ───────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 95; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 40%, #3a5a22 0%, var(--grass) 70%); color: var(--bone);
  transition: opacity .7s ease .15s, visibility 0s linear .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__wreath { position: relative; width: 96px; height: 96px; }
.loader__wreath > svg:first-child { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__track { fill: none; stroke: rgba(246,241,228,.18); stroke-width: 2; stroke-dasharray: 2 4; }
.loader__fill { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s; }
.loader__heart { position: absolute; inset: 30px; fill: var(--rose); animation: beat 1.1s ease-in-out infinite; }
.loader__mark { font-family: var(--f-display); font-weight: 900; font-size: 34px; letter-spacing: .06em; text-transform: uppercase; }
.loader__mark span { font-family: var(--f-script); color: var(--gold); text-transform: none; font-size: 40px; }
.loader__meta { font-size: 10px; letter-spacing: .24em; opacity: .7; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }

/* ── switch transition ───────────────────────────────── */
.xfade { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.xfade__page {
  position: absolute; inset: -2% -4% -2% -2%; background: var(--paper);
  background-image: radial-gradient(circle at 20% 30%, rgba(108,88,63,.08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(108,88,63,.1), transparent 45%);
  clip-path: polygon(0 0, 96% 0, 98% 8%, 95% 17%, 99% 26%, 96% 36%, 98% 47%, 95% 58%, 99% 69%, 96% 80%, 98% 90%, 96% 100%, 0 100%);
  transform: translate3d(-104%, 0, 0);
  transition: transform .55s var(--ease-io) .08s;
}
.xfade__heart { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; fill: var(--rose); transform: scale(0) rotate(-12deg); transition: transform .4s var(--ease-io); }
.xfade__note { position: absolute; left: 50%; top: calc(50% + 78px); transform: translateX(-50%); font-size: 30px; color: var(--ink-2); opacity: 0; transition: opacity .2s; white-space: nowrap; }
:root.is-switching .xfade__page { transform: translate3d(0, 0, 0); transition-duration: .26s; transition-delay: 0s; }
:root.is-switching .xfade__heart { transform: scale(1) rotate(0deg); transition-duration: .3s; animation: beat .9s .2s ease-in-out; }
:root.is-switching .xfade__note { opacity: 1; transition-delay: .08s; }

/* ── film ─────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--grass); }
.film canvas, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-mode="scrub"] .film video { display: none; }
[data-mode="video"] .film canvas { display: none; }
.film__veil { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; background: radial-gradient(90% 80% at 50% 50%, rgba(239,229,210,.25), rgba(239,229,210,.55)); }
[data-mode="video"] .film__veil { opacity: 1; }
.film__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── HUD ──────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; color: var(--hud); transition: color .4s, opacity .4s; }
:root.is-paper .hud { opacity: 0; }
.hud__br { position: absolute; width: 22px; height: 22px; border: 0 solid currentColor; opacity: .75; }
.hud__br--tl { left: 14px; top: 72px; border-width: 1.5px 0 0 1.5px; }
.hud__br--tr { right: 14px; top: 72px; border-width: 1.5px 1.5px 0 0; }
.hud__br--bl { left: 14px; bottom: 14px; border-width: 0 0 1.5px 1.5px; }
.hud__br--br { right: 14px; bottom: 14px; border-width: 0 1.5px 1.5px 0; }
.hud__side { position: absolute; top: 50%; display: flex; gap: 18px; font-size: 9.5px; letter-spacing: .22em; white-space: nowrap; opacity: .8; }
.hud__side--l { left: 22px; transform: translate(-50%, -50%) rotate(-90deg) translateY(calc(var(--p, 0) * 40px)); transform-origin: center; margin-left: 8px; }
.hud__side--r { right: 22px; transform: translate(50%, -50%) rotate(90deg); margin-right: 8px; }
.hud__side b { font-weight: 500; }
.hud__side .dot { color: var(--rose); }
.hud__fig { position: absolute; left: 30px; top: 92px; display: flex; align-items: baseline; gap: 8px; transform: translate3d(0, calc(var(--p, 0) * -24px), 0); }
.hud__fig span { font-size: 10px; letter-spacing: .2em; opacity: .8; }
.hud__fig b { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; }
.hud__fig em { font-size: 24px; font-style: normal; color: var(--rose); transform: rotate(-4deg); }
:root:not(.is-light)[data-mode="scrub"] .hud__fig em { color: var(--gold); }
.hud__stamp { position: absolute; right: 34px; top: 92px; width: 84px; height: 84px; color: var(--rose); opacity: .85; transform: rotate(calc(var(--p, 0) * 540deg)); }
.hud__stamp svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.hud__stamp text { fill: currentColor; stroke: none; font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .12em; }
.hud__stamp b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-script); font-size: 22px; transform: rotate(calc(var(--p, 0) * -540deg)); }
[data-mode="video"] .hud__side--r { opacity: .4; }

/* ── header ───────────────────────────────────────────── */
.chrome {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
}
.mark, .chrome__nav, .switch, .burger {
  background: rgba(239,229,210,.92); color: var(--ink);
  box-shadow: 0 1px 0 rgba(43,33,24,.08), 0 6px 18px -8px rgba(43,33,24,.35);
}
.mark { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 7px 14px 7px 10px; border-radius: 3px; clip-path: polygon(0 4%, 20% 0, 50% 3%, 80% 0, 100% 5%, 99% 50%, 100% 96%, 70% 100%, 40% 97%, 10% 100%, 0 95%, 1% 50%); transform: rotate(-1.2deg); }
.mark__heart { width: 26px; height: 26px; fill: var(--rose); animation: beat 2.4s ease-in-out infinite; }
.mark__heart circle { fill: var(--ink); }
.mark__txt { font-family: var(--f-display); font-weight: 900; font-size: 21px; letter-spacing: .08em; }
.mark__txt i { font-family: var(--f-script); font-style: normal; color: var(--rose); font-size: 26px; margin: 0 3px; letter-spacing: 0; }
.chrome__nav { margin-left: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.chrome__nav a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .25s, color .25s; }
.chrome__nav a:hover { background: var(--ink); color: var(--bone); }

.switch {
  display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 6px 8px 6px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.switch__track { position: relative; width: 58px; height: 30px; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--sage) 0 6px, #c9d5ae 6px 12px); box-shadow: inset 0 1px 3px rgba(43,33,24,.35); transition: background .4s; }
.switch__knob { position: absolute; top: 3px; left: 31px; width: 24px; height: 24px; border-radius: 50%; background: var(--bone); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(43,33,24,.35); transition: left .45s var(--ease), transform .45s var(--ease); }
.switch__knob svg { width: 15px; height: 15px; fill: var(--rose); transition: fill .3s, transform .45s var(--ease); }
.switch__roll, .pill__roll { position: relative; display: block; height: 14px; width: 28px; overflow: hidden; font-weight: 500; }
.switch__roll span, .pill__roll span { display: block; height: 14px; line-height: 14px; transition: transform .45s var(--ease); }
[data-mode="video"] .switch__track { background: repeating-linear-gradient(-45deg, var(--paper-3) 0 6px, var(--kraft) 6px 12px); }
[data-mode="video"] .switch__knob { left: 3px; transform: rotate(-200deg); }
[data-mode="video"] .switch__knob svg { fill: var(--ink-3); }
[data-mode="video"] :is(.switch__roll, .pill__roll) span { transform: translateY(-14px); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.navPanel { position: fixed; inset: 0; z-index: 38; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 6px; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-io); visibility: hidden; }
.navPanel.is-open { clip-path: inset(0); visibility: visible; }
.navPanel a { font-family: var(--f-display); font-weight: 900; font-size: 48px; text-transform: uppercase; text-decoration: none; line-height: 1.05; }

/* ── floating dock ────────────────────────────────────── */
.pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border: 0; cursor: pointer; background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; border-radius: 4px;
  box-shadow: 0 10px 26px -10px rgba(43,33,24,.55), 0 1px 0 rgba(43,33,24,.1); transform: rotate(-2deg);
  transition: transform .4s var(--ease), background .3s;
}
.pill:hover { transform: rotate(0deg) scale(1.04); }
.pill__tape { position: absolute; left: 50%; top: -9px; width: 54px; height: 16px; margin-left: -27px; background: rgba(212,80,122,.55); transform: rotate(3deg); }
.pill__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); transition: background .3s, transform .5s var(--ease); }
.pill__icon svg { width: 15px; height: 15px; fill: var(--bone); animation: beat 1.6s ease-in-out infinite; }
[data-mode="video"] .pill__icon { background: var(--ink-3); transform: rotate(-180deg); }
[data-mode="video"] .pill__icon svg { animation: none; }

/* ── chapter + rail ───────────────────────────────────── */
.chapter { position: fixed; left: 26px; bottom: 20px; z-index: 22; display: flex; align-items: baseline; gap: 10px; color: var(--hud); transition: color .4s, opacity .4s; pointer-events: none; }
:root.is-paper .chapter { opacity: 0; }
.chapter__n { font-size: 11px; letter-spacing: .14em; }
.chapter__n b { font-family: var(--f-display); font-size: 26px; font-weight: 800; }
.chapter__name { font-size: 24px; }
.chapter.is-roll .chapter__name, .chapter.is-roll b { animation: roll .6s var(--ease); }
@keyframes roll { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.rail { position: fixed; left: 0; right: 0; bottom: 0; height: 4px; z-index: 44; background: rgba(43,33,24,.12); }
.rail__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--rose)); }
.rail__ticks i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--rose); }
[data-mode="video"] .rail__ticks { display: none; }

/* ── stage & beats ────────────────────────────────────── */
.stage { position: relative; z-index: 5; overflow-x: clip; }
[data-mode="scrub"] .stage__spacer { height: var(--scroll-length); }
[data-mode="video"] .stage__spacer { height: 0; }
[data-mode="scrub"] .beats { position: fixed; inset: 0; pointer-events: none; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
[data-mode="scrub"] .lay { position: absolute; inset: 0; }
[data-mode="scrub"] .beat.is-live :is(a, button) { pointer-events: auto; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 5vw; padding: 120px 7vw 90px; }

/* zones in film coordinates (scrub) */
[data-mode="scrub"] .z { position: absolute; }
[data-mode="scrub"] .z--foot {
  left: calc(50vw - 500 * var(--s)); right: max(16px, calc(50vw - 510 * var(--s)));
  top: calc(50vh + 332 * var(--s)); bottom: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  --band: calc(50vh - 332 * var(--s));
  translate: calc(var(--t, 0) * -22px) 0;
}
[data-mode="scrub"] .z--foot .h2 { font-size: clamp(34px, calc(var(--band) * .52), 116px); white-space: nowrap; }
[data-mode="scrub"] .z--side {
  left: min(calc(50vw + 482 * var(--s)), calc(100vw - 300px)); width: min(330px, calc(100vw - 48px - min(calc(50vw + 482 * var(--s)), calc(100vw - 300px))));
  bottom: calc(50vh - 318 * var(--s));
  translate: 0 calc(var(--t, 0) * 18px);
}
[data-mode="scrub"] .z--card {
  left: max(28px, calc(50vw - 880 * var(--s))); bottom: max(84px, calc(50vh - 470 * var(--s)));
  width: min(560px, 46vw);
  translate: 0 calc(var(--t, 0) * -16px);
}
[data-mode="scrub"] .card-note--bind { width: min(460px, 40vw); }
[data-mode="scrub"] .z--cue { right: 34px; bottom: 90px; }
[data-mode="scrub"] .z--leader {
  left: calc(50vw + 150 * var(--s)); top: calc(50vh + 10 * var(--s)); width: calc(340 * var(--s)); height: 1px;
}

/* headline + kicker */
.h2 { margin: 0; font-size: clamp(44px, 7vw, 110px); color: var(--ink); }
.kick { display: inline-block; font-size: clamp(22px, 2vw, 30px); color: var(--rose-2); transform: rotate(-3deg) translateX(-18px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; line-height: 1; margin-bottom: 4px; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .kick { opacity: 1; transform: rotate(-3deg); transition-delay: .12s; }

/* split masks */
.ch, .wd, .ln { display: inline-block; overflow: hidden; vertical-align: top; }
.ch { padding: .06em 0 .02em; margin: -.06em 0 -.02em; }
.ch > i, .wd > i, .ln > i { display: inline-block; font-style: inherit; will-change: transform; }
.ch > i { transform: translate3d(0, 108%, 0) rotate(8deg); transition: transform .8s var(--ease); transition-delay: calc(var(--ci, 0) * 26ms + 60ms); }
.ch:nth-child(even) > i { transform: translate3d(0, -108%, 0) rotate(-6deg); }
.wd > i { transform: translate3d(0, 105%, 0); opacity: 0; transition: transform .7s var(--ease), opacity .5s; transition-delay: calc(var(--wi, 0) * 16ms + 200ms); }
.ln > i { transform: translate3d(0, 105%, 0); transition: transform .9s var(--ease); }
.ln:nth-child(2) > i { transition-delay: .09s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in, [data-reveal].is-in) :is(.ch, .wd, .ln) > i { transform: none; opacity: 1; }
/* a fading scrub beat retracts fast */
[data-mode="scrub"] .beat:not(.is-live) :is(.ch, .wd, .ln) > i { transition-duration: .35s; transition-delay: 0s; }

/* taped paper cards */
.card-note {
  position: relative; background: var(--bone); color: var(--ink); padding: 22px 22px 20px;
  background-image: linear-gradient(transparent 27px, rgba(31,53,102,.07) 28px), radial-gradient(circle at 15% 10%, rgba(198,180,155,.35), transparent 60%);
  background-size: 100% 28px, 100% 100%;
  box-shadow: 0 18px 40px -18px rgba(43,33,24,.55), 0 2px 0 rgba(43,33,24,.06);
  clip-path: var(--torn);
  rotate: var(--rot, -1.5deg);
}
.beat .card-note { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease) .05s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .card-note { clip-path: var(--torn); }
.z--side.card-note { --rot: 2deg; font-size: 14px; line-height: 1.5; }
.z--side p { margin: 8px 0 0; }
.card-note--hero { --rot: -2deg; padding: 28px 30px 26px; }
.card-note--bind { --rot: 1.5deg; }
.card-note--night { background-color: #f1ede3; }
.card-note--quote blockquote { margin: 10px 0 6px; font-size: 25px; line-height: 1.12; color: var(--night); }
.card-note .sig { font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin: 6px 0 0; }
.tape { position: absolute; width: 86px; height: 22px; background: rgba(242,178,51,.55); z-index: 2; mix-blend-mode: multiply; transform: scaleX(0); transition: transform .5s var(--ease) .5s; }
.tape--c { left: 50%; top: 4px; margin-left: -43px; rotate: -3deg; }
.tape--l { left: 18px; top: 4px; rotate: -6deg; }
.tape--r { right: 18px; top: 4px; rotate: 5deg; }
.tape--rose { background: rgba(212,80,122,.45); }
.tape--gold { background: rgba(242,178,51,.6); }
.tape--sage { background: rgba(185,199,156,.8); }
.card-note .tape, :is(.beat.is-live, [data-mode="video"] .beat.is-in) .tape, .is-in .tape { transform: scaleX(1); }
.beat .tape { transform: scaleX(0); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .tape { transform: scaleX(1); }

.hero-title { margin: 8px 0 0; font-size: clamp(56px, 7.4vw, 124px); line-height: .82; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .12em; color: var(--ink); }
.hero-title .ln > i { transform: none; }
.hero-title .amp { font-size: .8em; color: var(--rose); text-transform: none; line-height: .7; transform: rotate(-8deg) scale(0); transition: transform .8s var(--ease) .35s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .hero-title .amp { transform: rotate(-8deg) scale(1); }
.hand { font-size: 24px; line-height: 1.1; color: var(--rose-2); margin: 6px 0 0; }
.hand--xl { font-size: clamp(26px, 2.4vw, 38px); }
.lede { margin: 10px 0 0; font-size: 15.5px; max-width: 44ch; color: var(--ink-2); }
.h2--card { font-size: clamp(46px, 5.6vw, 96px); margin-top: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.spec { display: grid; gap: 4px; margin: 12px 0 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.spec div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted rgba(43,33,24,.3); padding-bottom: 3px; }
.spec dt { color: var(--ink-3); } .spec dd { margin: 0; }
.big { margin: 6px 0 0 !important; font-size: 44px; line-height: 1; }
.big b { font-family: var(--f-display); font-weight: 900; }
.stats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats b { display: block; font-family: var(--f-display); font-size: 54px; line-height: .9; color: var(--rose-2); }
.stats span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stampmini { display: inline-block; margin-top: 12px; padding: 5px 9px; border: 1.5px solid var(--rose); color: var(--rose); font-size: 9.5px; letter-spacing: .18em; transform: rotate(-6deg) scale(1.6); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .9s, opacity .2s .9s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .stampmini { transform: rotate(-6deg) scale(1); opacity: 1; }
.sun { position: absolute; right: -14px; bottom: -14px; width: 64px; height: 64px; }
.sun i { position: absolute; inset: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(242,178,51,.25), 0 0 30px 8px rgba(242,178,51,.45); }
.sun::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(var(--gold) 0 6deg, transparent 6deg 30deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 42%, #000 44%, #000 70%, transparent 72%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cue { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); }
.cue i { width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.z--leader i { position: absolute; inset: 0; border-top: 1.5px dotted var(--ink); clip-path: inset(0 0 0 100%); transition: clip-path 1s var(--ease) .4s; }
.z--leader i::before { content: ""; position: absolute; left: -6px; top: -7px; width: 12px; height: 12px; border: 1.5px solid var(--rose); border-radius: 50%; }
.z--leader span { position: absolute; left: 14px; top: -24px; padding: 3px 6px; background: var(--bone); white-space: nowrap; font-size: 9.5px; letter-spacing: .18em; color: var(--ink-2); opacity: 0; transition: opacity .4s 1s; }
.beat.is-live .z--leader i { clip-path: inset(0); }
.beat.is-live .z--leader span { opacity: 1; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rose); transform: translate3d(0, 101%, 0); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bone); border-color: var(--rose); }
.btn--fill { background: var(--ink); color: var(--bone); }
.btn--line { background: transparent; color: var(--ink); }
.btn--block { width: 100%; }

/* video-mode beats: flow + paper chips */
[data-mode="video"] .z { position: relative; }
[data-mode="video"] .z--foot { padding: 26px 32px 30px; background: var(--bone); clip-path: var(--torn); box-shadow: 0 18px 40px -18px rgba(43,33,24,.5); max-width: 640px; transform: translate3d(-40px, 0, 0); opacity: 0; transition: transform 1s var(--ease), opacity .6s; }
[data-mode="video"] .beat.is-in .z--foot { transform: none; opacity: 1; }
[data-mode="video"] .z--foot .h2 { font-size: clamp(46px, 6.4vw, 104px); }
[data-mode="video"] .z--side { width: min(340px, 100%); }
[data-mode="video"] .z--card { width: min(620px, 100%); }
[data-mode="video"] .z--cue, [data-mode="video"] .z--leader { display: none; }
[data-mode="video"] .beat--book .lay { justify-content: flex-start; }
[data-mode="video"] .beat:nth-child(even) .lay { flex-direction: row-reverse; }
[data-mode="video"] .beat .card-note { transform: translate3d(0, 50px, 0); transition: clip-path .9s var(--ease) .15s, transform 1s var(--ease) .15s; }
[data-mode="video"] .beat.is-in .card-note { transform: none; }

/* ── page ─────────────────────────────────────────────── */
.page {
  position: relative; z-index: 10; overflow-x: clip; background: var(--paper);
  background-image: radial-gradient(circle at 12% 8%, rgba(198,180,155,.35), transparent 30%), radial-gradient(circle at 90% 40%, rgba(198,180,155,.3), transparent 35%);
  box-shadow: 0 -30px 60px -20px rgba(34,49,12,.5);
}
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: var(--paper); clip-path: polygon(0 60%, 3% 20%, 7% 55%, 11% 10%, 15% 50%, 19% 25%, 24% 60%, 28% 15%, 33% 55%, 37% 30%, 42% 65%, 46% 20%, 51% 50%, 55% 10%, 60% 45%, 64% 25%, 69% 60%, 73% 15%, 78% 55%, 82% 30%, 87% 60%, 91% 20%, 95% 50%, 100% 25%, 100% 100%, 0 100%); }

.marquee { overflow: hidden; background: var(--rose); color: var(--bone); padding: 14px 0; transform: skewX(var(--skew, 0deg)) rotate(-1deg) scaleX(1.03); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--f-script); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); white-space: nowrap; padding-right: .6em; line-height: 1.1; }
.marquee__track i { font-style: normal; color: var(--gold); margin: 0 .3em; }

.sec { position: relative; padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 72px); }
.sec--kraft { background: var(--paper-3); background-image: repeating-linear-gradient(90deg, rgba(108,88,63,.045) 0 2px, transparent 2px 7px); }
.sec--paper { background: var(--paper-2); }
.sec__head { position: relative; max-width: none; margin-bottom: clamp(36px, 5vw, 64px); padding-right: min(34vw, 380px); }
.sec__fig { position: absolute; right: 0; top: 10px; width: min(30vw, 320px); background: var(--bone); padding: 16px 16px 12px; box-shadow: 0 16px 34px -18px rgba(43,33,24,.45); rotate: 2.5deg; }
.sec__fig svg { width: 100%; height: auto; display: block; }
.sec__fig path, .sec__fig circle, .sec__fig line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.sec__fig .acc { stroke: var(--rose); }
.is-in .sec__fig :is(path, circle, line) { stroke-dashoffset: 0; }
.sec__fig figcaption { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-top: 1px dotted rgba(43,33,24,.35); padding-top: 8px; margin-top: 8px; }
.sec__fig .tape { transform: scaleX(1); }
.sec__title { margin: 10px 0 0; font-size: clamp(54px, 9vw, 150px); }
.sec__title .ln { display: block; }
.sec__title em { font-style: normal; font-family: var(--f-script); color: var(--rose); text-transform: none; font-weight: 700; font-size: .78em; letter-spacing: 0; }
.sec__lede { max-width: 52ch; font-size: 17px; color: var(--ink-2); margin: 18px 0 0; }
[data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .8s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sec__head[data-reveal], .fan__copy { opacity: 1; transform: none; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s, transform .3s var(--ease); }
.chip sup { font-size: 9px; margin-left: 2px; color: var(--rose); }
.chip:hover { transform: translateY(-2px) rotate(-1deg); }
.chip.is-on { background: var(--ink); color: var(--bone); }
.chip.is-on sup { color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.card { position: relative; perspective: 900px; transition: opacity .35s, transform .5s var(--ease); }
.card.is-out { opacity: 0; transform: scale(.9) rotate(-4deg); }
.card[hidden] { display: none; }
.card__art {
  background: #fbf8f1; padding: 12px 12px 16px; box-shadow: 0 16px 34px -16px rgba(43,33,24,.5);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d;
}
.card:hover .card__art { --tilt: 0deg; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__cap { font-family: var(--f-script); font-size: 26px; font-weight: 700; margin: 10px 0 0; line-height: 1; }
.card__meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card__meta b { color: var(--rose-2); font-weight: 500; }
.card .tape { transform: scaleX(1); left: 50%; margin-left: -43px; top: -8px; }
.card__kind { position: absolute; right: 18px; top: 22px; z-index: 3; background: var(--ink); color: var(--bone); font-family: var(--f-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; }
.card { opacity: 0; transform: translate3d(0, 50px, 0) rotate(3deg); }
.card.is-in { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 70ms); }
.card.is-in.is-out { opacity: 0; transform: scale(.9) rotate(-4deg); transition-delay: 0s; }

/* polaroid fan */
.fan { position: relative; height: 300vh; background: var(--grass); color: var(--bone); background-image: radial-gradient(90% 70% at 70% 50%, #3d6224, var(--grass) 70%); }
.fan__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; align-items: center; padding: 0 clamp(20px, 5vw, 72px); }
.fan__copy { position: relative; z-index: 30; }
.fan__copy .tag, .fan__copy .sec__lede { color: rgba(246,241,228,.78); }
.fan__copy .sec__title { color: var(--bone); }
.fan__copy .sec__title em { color: var(--gold); }
.fan__deck { position: relative; height: min(70vh, 560px); --f: 0; }
.pol { position: absolute; left: 50%; top: 50%; width: clamp(140px, 14vw, 220px); margin: 0; background: #fbf8f1; padding: 10px 10px 40px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.55); transform-origin: 50% 140%;
  transform: translate(-50%, -50%) translate3d(calc(var(--d) * var(--f) * 5.6vw), calc(var(--ad) * var(--f) * 22px), 0) rotate(calc(var(--d) * var(--f) * 8deg + var(--r0) * (1 - var(--f)))); transition: box-shadow .3s; z-index: calc(10 - var(--ad)); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 22px; color: var(--ink); }
.pol:hover { z-index: 20; box-shadow: 0 30px 60px -14px rgba(0,0,0,.7); }

/* builder */
.builder { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.builder__form fieldset { border: 0; border-top: 1.5px dashed rgba(43,33,24,.3); margin: 0; padding: 22px 0; }
.builder__form legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 0 10px 0 0; display: flex; gap: 12px; align-items: baseline; }
.builder__form legend output { font-family: var(--f-display); font-size: 34px; font-weight: 900; color: var(--rose-2); letter-spacing: 0; }
.hint { font-size: 10.5px; color: var(--ink-3); margin: 8px 0 0; letter-spacing: .08em; }
input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
input[type="range"]::-moz-range-track { height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--rose); border: 3px solid var(--bone); box-shadow: 0 3px 8px rgba(43,33,24,.4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--rose); border: 3px solid var(--bone); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; background: rgba(246,241,228,.6); border: 1.5px solid transparent; cursor: pointer; transition: border-color .25s, transform .3s var(--ease), background .25s; }
.opts--3 .opt { grid-template-columns: 1fr; }
.opt:hover { transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--bone); transform: rotate(-.8deg); }
.opt:has(input:focus-visible) { outline: 2px dashed var(--rose); outline-offset: 2px; }
.opt b { font-weight: 500; font-size: 15px; }
.opt em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); grid-column: 2; }
.opts--3 .opt em { grid-column: 1; }
.sw { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(43,33,24,.15); }
.sw--flower { background: radial-gradient(circle at 35% 35%, var(--rose) 0 4px, transparent 5px), radial-gradient(circle at 65% 60%, var(--gold) 0 4px, transparent 5px), radial-gradient(circle at 40% 70%, var(--sage) 0 3px, transparent 4px), var(--c); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 10px; }
.chk { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.chk input { position: absolute; opacity: 0; }
.chk > span { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ink); background: var(--bone); display: grid; place-items: center; transition: background .2s; }
.chk > span::after { content: "♥"; color: var(--bone); font-size: 13px; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.chk input:checked + span { background: var(--rose); border-color: var(--rose); }
.chk input:checked + span::after { transform: scale(1); }
.chk input:focus-visible + span { outline: 2px dashed var(--rose); outline-offset: 2px; }
.chk em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); margin-left: auto; }
.field, .fld input, .fld select, .fld textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 10px 2px; font-size: 16px; font-family: var(--f-body); border-radius: 0; }
.field:focus, .fld :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--rose); background: rgba(212,80,122,.05); }

.builder__preview { position: sticky; top: 90px; background: var(--bone); padding: 26px; box-shadow: 0 24px 50px -24px rgba(43,33,24,.6); rotate: 1deg; }
.book3d { position: relative; height: 230px; perspective: 900px; display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.book3d__cover { position: relative; z-index: 2; width: 180px; height: 210px; border-radius: 3px 8px 8px 3px; background: var(--bc, var(--sage)); transform: rotateY(-24deg) rotateX(6deg); box-shadow: 10px 14px 24px -8px rgba(43,33,24,.5), inset 8px 0 0 rgba(0,0,0,.12); display: grid; place-items: center; transition: background .5s, transform .6s var(--ease); overflow: hidden; }
.book3d:hover .book3d__cover { transform: rotateY(-8deg) rotateX(2deg); }
.book3d__heart { font-size: 44px; color: var(--bh, var(--rose)); transition: color .4s; }
.book3d__names { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 22px; color: var(--bn, var(--ink)); padding: 0 8px; }
.book3d__flowers { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(circle at 25% 25%, var(--rose) 0 7px, transparent 8px), radial-gradient(circle at 75% 20%, var(--gold) 0 6px, transparent 7px), radial-gradient(circle at 20% 70%, var(--gold) 0 5px, transparent 6px), radial-gradient(circle at 80% 72%, var(--rose) 0 6px, transparent 7px), radial-gradient(circle at 60% 88%, #8a64b8 0 4px, transparent 5px); }
.book3d[data-cover="leather"] { --bc: #6c3a2a; --bh: var(--gold); --bn: var(--gold); }
.book3d[data-cover="velvet"] { --bc: linear-gradient(135deg, #d4507a, #a83a60); --bh: var(--bone); --bn: var(--bone); }
.book3d[data-cover="meadow"] { --bc: var(--paper); }
.book3d[data-cover="meadow"] .book3d__flowers { opacity: 1; }
.book3d[data-gilt="1"] .book3d__pages { background: repeating-linear-gradient(0deg, var(--gold) 0 2px, #e4c87a 2px 3px); }
.book3d__pages { position: relative; z-index: 1; height: 196px; width: var(--pw, 18px); margin-left: -6px; background: repeating-linear-gradient(0deg, #fbf8f1 0 2px, #e0d5c0 2px 3px); transform: rotateY(-24deg) skewY(-6deg); transform-origin: left; transition: width .4s var(--ease); }
.book3d__spine { display: none; }
.receipt { margin: 0; display: grid; gap: 6px; font-size: 12px; }
.receipt div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted rgba(43,33,24,.3); padding-bottom: 5px; animation: roll .4s var(--ease); }
.receipt dt { color: var(--ink-2); } .receipt dd { margin: 0; }
.total { display: grid; margin: 18px 0; }
.total > .mono { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.total b { font-size: clamp(64px, 7vw, 100px); color: var(--ink); line-height: .9; }
.total .hand { margin: 0; }

/* timeline */
.tl { position: relative; max-width: 1080px; margin: 0 auto; }
.tl__line { position: absolute; left: 50%; top: 0; width: 20px; height: 100%; margin-left: -10px; overflow: visible; }
.tl__line path { fill: none; stroke: var(--rose); stroke-width: 2.2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.tl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 80px); }
.tl__item { position: relative; width: calc(50% - 50px); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--bone); padding: 22px 24px; box-shadow: 0 16px 34px -18px rgba(43,33,24,.45); rotate: -1deg; }
.tl__item:nth-child(even) { margin-left: auto; rotate: 1.2deg; }
.tl__item::after { content: ""; position: absolute; top: 34px; right: -58px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rose); }
.tl__item:nth-child(even)::after { right: auto; left: -58px; }
.tl__yr { font-size: 78px; color: var(--rose-2); line-height: .8; }
.tl__item h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
.tl__item p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.tl__note { position: absolute; right: 16px; top: -18px; font-size: 24px; color: var(--rose); rotate: 4deg; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(60px, 8vw, 110px); border-top: 1.5px solid var(--ink); padding-top: 26px; }
.counts b { display: block; font-size: clamp(54px, 7vw, 104px); line-height: .9; }
.counts span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* order */
.order { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.order__pol { position: relative; width: min(340px, 80%); margin-top: 34px; rotate: -4deg; background: #fbf8f1; padding: 12px 12px 48px; box-shadow: 0 20px 40px -18px rgba(43,33,24,.55); }
.order__pol img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.order__pol figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 24px; }
.order__form { background-image: radial-gradient(circle at 15% 10%, rgba(198,180,155,.35), transparent 60%); --rot: .6deg; padding: 36px clamp(22px, 3vw, 40px) 32px; display: grid; gap: 16px; background-size: 100% 36px, 100% 100%; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 2px; }
.fld > span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.fld textarea { resize: vertical; min-height: 100px; }
.err { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--rose-2); min-height: 14px; letter-spacing: .04em; }
.fld.is-bad :is(input, select, textarea) { border-bottom-color: var(--rose-2); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.chk--consent { font-size: 14px; }
.build-note { font-size: 11px; background: rgba(242,178,51,.2); padding: 8px 10px; margin: 0; }
.order__form .btn { justify-self: start; }
.sent { --rot: -1deg; padding: 44px 36px; text-align: left; grid-column: 2; animation: pop .7s var(--ease); }
.sent[hidden] { display: none; }
@keyframes pop { from { transform: translateY(30px) rotate(-4deg); opacity: 0; } }
.sent h3 { margin: 0; font-size: clamp(44px, 5vw, 72px); }
.sent__stamp { float: right; border: 2px solid var(--rose); color: var(--rose); padding: 10px 12px; text-align: center; font-size: 10px; letter-spacing: .2em; transform: rotate(10deg); animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.sent__stamp b { font-size: 14px; }
@keyframes stamp { from { transform: rotate(10deg) scale(2.4); opacity: 0; } }

/* faq */
.faq { max-width: 920px; }
.qa { border-top: 1.5px solid var(--ink); }
.qa:last-child { border-bottom: 1.5px solid var(--ink); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.8vw, 38px); text-transform: uppercase; transition: color .25s, padding .35s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--rose-2); padding-left: 10px; }
.qa summary i { flex: none; position: relative; width: 26px; height: 26px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa[open] summary i::before { transform: rotate(180deg); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 0 24px; max-width: 64ch; color: var(--ink-2); font-size: 16.5px; }

/* footer */
.foot { background: var(--night); color: var(--bone); padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 72px) 28px; overflow: hidden; position: relative; }
.foot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff8, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff6, transparent), radial-gradient(2px 2px at 70% 30%, #fff9, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #fff6, transparent), radial-gradient(1px 1px at 50% 15%, #fff8, transparent), radial-gradient(1.5px 1.5px at 62% 80%, #fff5, transparent); }
.foot__top { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.foot__note { --rot: -2deg; max-width: 460px; }
.news { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.news input { flex: 1 1 180px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 10px 2px; font-size: 16px; }
.news input:focus { outline: none; border-bottom-color: var(--rose); }
.news .err { flex-basis: 100%; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__cols h4 { margin: 0 0 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.foot__cols a { display: block; text-decoration: none; padding: 3px 0; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.foot__cols a:hover { opacity: 1; transform: translateX(6px); color: var(--blush); }
.foot__cols p { margin: 0; opacity: .85; }
.foot__big { position: relative; display: flex; justify-content: center; align-items: center; gap: .08em; margin: clamp(50px, 7vw, 90px) 0 20px; font-size: clamp(64px, 16.5vw, 300px); line-height: .8; white-space: nowrap; }
.foot__big em { font-family: var(--f-script); font-style: normal; color: var(--rose); text-transform: none; font-size: .7em; }
.foot__big span { background: linear-gradient(180deg, var(--bone) 55%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; border-top: 1px solid rgba(246,241,228,.2); padding-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 76px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: var(--bone); padding: 12px 18px; font-size: 11px; letter-spacing: .12em; border-radius: 4px; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* cursor */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; }
.cur--dot { width: 12px; height: 12px; background: var(--rose); clip-path: path('M6 11S0 7.4 0 3.6a3 3 0 0 1 6-.6 3 3 0 0 1 6 .6C12 7.4 6 11 6 11z'); }
.cur--ring { width: 38px; height: 38px; border: 1.5px dashed var(--ink-2); border-radius: 50%; display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cur--ring.is-on { width: 58px; height: 58px; border-color: var(--rose); border-style: solid; }
.cur--ring.is-lg { width: 84px; height: 84px; background: rgba(212,80,122,.9); border-color: transparent; }
.cur--ring.is-down { width: 30px; height: 30px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { font-family: var(--f-script); font-weight: 700; font-size: 22px; color: var(--bone); }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .chrome__nav { display: none; }
  .burger { display: block; }
  .switch { margin-left: auto; }
}
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  [data-mode="video"] .hide-sm:not(.z--cue):not(.z--leader) { display: block !important; }
  .chrome { height: 56px; padding: 0 10px; gap: 8px; }
  .mark { padding: 6px 10px 6px 8px; }
  .mark__txt { font-size: 17px; }
  .switch { padding: 5px 6px 5px 10px; gap: 6px; }
  .switch__txt { display: none; }
  .hud__side, .hud__stamp, .hud__br--tl, .hud__br--tr { display: none; }
  .hud__fig { left: 16px; top: 66px; }
  .hud__fig b { font-size: 22px; }
  .hud__fig em { font-size: 19px; }
  .chapter { display: none; }
  .pill { top: 66px; bottom: auto; right: 12px; padding: 7px 12px 7px 7px; font-size: 9.5px; }
  .pill__icon { width: 22px; height: 22px; }
  :root.is-paper .pill { opacity: 0; pointer-events: none; transform: translateY(-10px); }
  [data-mode="scrub"] .z--foot { left: 16px; right: 16px; top: calc(50vh + 330 * var(--s)); bottom: 8px; }
  [data-mode="scrub"] .z--foot .h2 { white-space: normal; font-size: min(11.5vw, calc(var(--band) * .45)); }
  [data-mode="scrub"] .z--card { left: 12px; right: 12px; width: auto; bottom: 16px; }
  .card-note--hero { padding: 22px 20px 20px; }
  .beat--hero .lede { display: none; }
  .hero-title { font-size: 17vw; }
  .h2--card { font-size: 13vw; }
  [data-mode="video"] .lay, [data-mode="video"] .beat:nth-child(even) .lay { flex-direction: column; align-items: stretch; justify-content: center; padding: 110px 16px 60px; gap: 22px; }
  [data-mode="video"] .z--foot { padding: 20px 20px 24px; }
  [data-mode="video"] .z--foot .h2 { font-size: 13vw; }
  [data-mode="video"] .z--side { width: auto; }
  .fan__pin { grid-template-columns: 1fr; align-content: center; gap: 20px; padding-top: 70px; }
  .fan__deck { height: 48vh; }
  .pol { width: 38vw; transform: translate(-50%, -50%) translate3d(calc(var(--d) * var(--f) * 12vw), calc(var(--ad) * var(--f) * 18px), 0) rotate(calc(var(--d) * var(--f) * 9deg + var(--r0) * (1 - var(--f)))); }
  .builder, .order, .foot__top { grid-template-columns: 1fr; }
  .sec__head { padding-right: 0; }
  .sec__fig { display: none; }
  .builder__preview { position: relative; top: 0; }
  .opts--3, .checks { grid-template-columns: 1fr; }
  .sent { grid-column: 1; }
  .tl__line { left: 18px; }
  .tl__item, .tl__item:nth-child(even) { width: auto; margin-left: 44px; }
  .tl__item::after, .tl__item:nth-child(even)::after { left: -36px; right: auto; }
  .tl__yr { font-size: 56px; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .f2 { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .opts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .card { opacity: 1; transform: none; }
}
