/* ───────────────────────────────────────────────────────────
   THREADFALL — palette sampled off the film's own pixels
   f0150 navy cloth #152854, flower red #a70322, leaf #1f653f,
   French knot gold #dbb05c, lilac #876384, torn paper #ece8e0;
   f0420 neon halo #f46bb4. The film is a collage: a torn B&W
   face on navy with embroidery growing along the tear, then an
   all-stitch meadow. Interface language: running-stitch borders,
   cross-stitch X marks, torn-paper edges, hoop rings.
   ─────────────────────────────────────────────────────────── */

:root {
  --navy:   #152854;
  --navy-2: #0f1f45;
  --navy-3: #0a1633;
  --red:    #e0242f;
  --red-2:  #a70322;
  --green:  #1f653f;
  --green-2:#2f8a57;
  --gold:   #dbb05c;
  --lilac:  #876384;
  --pink:   #f46bb4;
  --paper:  #ece8e0;
  --paper-2:#d9d3c7;
  --ink:    #0b1330;

  --display: "Limelight", "Didot", serif;
  --cond:    "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans:    "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;

  --fg:   var(--paper);
  --fg-2: rgba(236,232,224,.68);
  --line: rgba(236,232,224,.26);

  --gut:  clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.22,1,.36,1);
  --snap: cubic-bezier(.7,0,.3,1);
  --scroll-length: 1150vh;
  --p: 0;

  /* a single cross stitch, and a running stitch, as tiles */
  --x-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%23e0242f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --x-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%23ece8e0' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --x-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%230b1330' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --x-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%232f8a57' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root.is-light { --fg: var(--ink); --fg-2: rgba(11,19,48,.7); --line: rgba(11,19,48,.3); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--navy-3); color: var(--paper);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--paper); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--paper); }
em { font-style: normal; }

/* ── stitch primitives ──────────────────────────────────── */
.stitched { position: relative; }
.stitched::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none; border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, var(--red) 0 7px, transparent 7px 12px) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--red) 0 7px, transparent 7px 12px) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--red) 0 7px, transparent 7px 12px) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--red) 0 7px, transparent 7px 12px) 100% 0 / 2px 100% no-repeat;
  opacity: .85;
}
.stitched::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--x-red) 0 0 / 14px no-repeat, var(--x-red) 100% 0 / 14px no-repeat,
              var(--x-red) 0 100% / 14px no-repeat, var(--x-red) 100% 100% / 14px no-repeat;
}
.xrow { height: 14px; background: var(--x-red) 0 50% / 14px repeat-x; }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--navy); transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__hoop { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 6px #b98d57, inset 0 0 0 8px #7a5a33, 0 0 0 2px #7a5a33; background: var(--paper); }
.loader__hoop svg { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); transform: rotate(-90deg); }
.loader__hoop circle { fill: none; stroke-width: 2.4; }
.loader__track { stroke: rgba(11,19,48,.14); stroke-dasharray: 3 3; }
.loader__fill { stroke: var(--red); stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s linear; }
.loader__x { color: var(--red); font: 700 34px/1 var(--sans); animation: pulse 1.2s var(--ease) infinite; }
.loader__mark { font-family: var(--display); font-size: 34px; color: var(--red); letter-spacing: .04em; }
.loader__meta { color: var(--fg-2); }
@keyframes pulse { 50% { transform: scale(.8) rotate(45deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── mode switch: tear + seam + neon halo ───────────────── */
.tear { position: fixed; inset: 0; z-index: 190; pointer-events: none; visibility: hidden; transition: visibility 0s .6s; }
.tear__a, .tear__b { position: absolute; left: -2%; right: -2%; height: 54%; background: var(--navy-2);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 6px);
  transition: transform .5s var(--snap); }
.tear__a { top: 0; transform: translate3d(0,-104%,0);
  clip-path: polygon(0 0,100% 0,100% 94%,96% 97%,92% 93%,87% 98%,83% 95%,78% 99%,73% 94%,69% 97%,64% 93%,59% 98%,55% 95%,50% 99%,45% 94%,41% 97%,36% 93%,31% 98%,27% 95%,22% 99%,17% 94%,13% 97%,8% 93%,4% 98%,0 95%); }
.tear__b { bottom: 0; transform: translate3d(0,104%,0);
  clip-path: polygon(0 5%,4% 2%,8% 7%,13% 3%,17% 6%,22% 1%,27% 5%,31% 2%,36% 7%,41% 3%,45% 6%,50% 1%,55% 5%,59% 2%,64% 7%,69% 3%,73% 6%,78% 1%,83% 5%,87% 2%,92% 7%,96% 3%,100% 6%,100% 100%,0 100%); }
.tear__seam { position: absolute; left: 0; top: calc(50% - 20px); width: 100%; height: 40px; overflow: visible; }
.tear__seam path { fill: none; stroke: var(--red); stroke-width: 5; stroke-dasharray: 18 10; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
.tear__halo { position: absolute; left: 50%; top: 50%; width: 44vmin; height: 44vmin; margin: -22vmin 0 0 -22vmin; border-radius: 50%;
  border: 3px solid var(--pink); box-shadow: 0 0 22px 4px var(--pink), inset 0 0 22px 2px var(--pink), 0 0 0 9px rgba(219,176,92,.0);
  transform: scale(.2); opacity: 0; transition: transform .6s var(--ease), opacity .5s; }
:root.is-switching .tear { visibility: visible; transition: none; }
:root.is-switching .tear__a, :root.is-switching .tear__b { transform: none; transition-duration: .24s; }
:root.is-switching .tear__seam path { opacity: 1; animation: sew .3s linear infinite; }
:root.is-switching .tear__halo { transform: scale(1); opacity: 1; transition-duration: .26s; }
@keyframes sew { to { stroke-dashoffset: -28; } }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--navy); overflow: hidden; }
.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(120% 90% at 50% 50%, rgba(10,22,51,.25), rgba(10,22,51,.72)); }
[data-mode="video"] .film__veil { opacity: 1; }
[data-mode="scrub"] .film__veil { opacity: .35; background: linear-gradient(180deg, rgba(10,22,51,.55), transparent 16%, transparent 80%, rgba(10,22,51,.6)); }
:root.is-light .film__veil { opacity: 0; }
.film__grain { position: absolute; inset: -50%; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(4%,-4%)} 60%{transform:translate(-3%,-2%)} 80%{transform:translate(3%,4%)} 100%{transform:translate(0,0)} }

/* ── HUD ────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: var(--fg-2); transition: color .4s, opacity .5s; }
:root.is-paper .hud, :root.is-paper .chapter { opacity: 0; }
.hud__br { position: absolute; width: 22px; height: 22px; background: var(--x-red) 50% 50% / 14px no-repeat; }
.hud__br::before, .hud__br::after { content: ""; position: absolute; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); }
.hud__br--tl { left: calc(var(--gut) - 4px); top: 76px; } .hud__br--tr { right: calc(var(--gut) - 4px); top: 76px; }
.hud__br--bl { left: calc(var(--gut) - 4px); bottom: 34px; } .hud__br--br { right: calc(var(--gut) - 4px); bottom: 34px; }
.hud__br::before { width: 28px; height: 1px; top: 11px; }
.hud__br--tl::before, .hud__br--bl::before { left: 24px; } .hud__br--tr::before, .hud__br--br::before { right: 24px; }
.hud__cross { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px;
  transform: translate3d(calc((var(--p) - .5) * 120px), calc((var(--p) - .5) * -60px), 0) rotate(calc(var(--p) * 360deg)); opacity: .5; }
.hud__cross i { position: absolute; inset: 0; background: var(--x-red) 50% 50% / 30px no-repeat; }
[data-mode="video"] .hud__cross { opacity: .18; }
.hud__side { position: absolute; top: 50%; display: flex; gap: 26px; white-space: nowrap; }
.hud__side--l { left: calc(var(--gut) - 2px); transform-origin: 0 0; transform: rotate(-90deg) translate3d(-50%, 0, 0) translateX(calc(var(--p) * -80px)); }
.hud__side--r { right: calc(var(--gut) - 2px); flex-direction: column; gap: 6px; text-align: right; transform: translate3d(0, calc(-50% + var(--p) * 60px), 0); transition: opacity .4s; }
[data-mode="scrub"][data-beat="6"] .hud__side--r { opacity: 0; }
.hud__side b { color: var(--fg); font-weight: 500; }
.hud__fig { position: absolute; right: calc(var(--gut) + 36px); top: 88px; display: flex; gap: 6px; align-items: baseline; }
.hud__fig b { font: 400 30px/1 var(--display); color: var(--red); letter-spacing: 0; }

/* ── header ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 66px; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 22px; color: var(--fg); transition: color .4s, background .4s; }
.chrome::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 2px; opacity: .45;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 11px); }
:root.is-paper .chrome { background: rgba(10,22,51,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--paper); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark__x { width: 26px; height: 26px; }
.mark__x path { stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; fill: none; stroke-dasharray: 10; stroke-dashoffset: 10; animation: stitchIn .5s var(--ease) forwards; }
.mark__x path:nth-child(2) { animation-delay: .1s } .mark__x path:nth-child(3) { animation-delay: .2s } .mark__x path:nth-child(4) { animation-delay: .3s } .mark__x path:nth-child(5) { animation-delay: .4s }
.mark:hover .mark__x { animation: spin 1.4s var(--ease); }
@keyframes stitchIn { to { stroke-dashoffset: 0; } }
.mark__txt { font: 400 23px/1 var(--display); color: var(--red); letter-spacing: .05em; text-shadow: 0 1px 0 var(--navy-3), 0 0 12px rgba(10,22,51,.6); }
:root.is-light .mark__txt { color: var(--red-2); }
.chrome__nav { display: flex; gap: 26px; }
.chrome__nav a { position: relative; text-decoration: none; font: 400 17px/1 var(--cond); letter-spacing: .08em; padding: 6px 0; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
  background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 8px); }
.chrome__nav a:hover::after { transform: scaleX(1); }

/* the switch: a needle-eye knob sewing along a stitched track */
.switch { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 4px; transform: var(--mag, none); }
.switch__txt { color: var(--fg-2); }
.switch__track { position: relative; width: 62px; height: 30px; border-radius: 30px; background: var(--navy-3); box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 0 var(--pink); transition: box-shadow .4s, background .4s; overflow: hidden; }
.switch__stitch { position: absolute; left: 10px; right: 10px; top: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 9px); animation: stitchMove 1s linear infinite; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: grid; place-items: center;
  transform: translateX(32px); transition: transform .55s cubic-bezier(.5,1.6,.4,1), background .3s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch__knob i { width: 12px; height: 12px; background: var(--x-paper) 50% 50% / 12px no-repeat; transition: transform .55s var(--ease); }
.switch[aria-checked="false"] .switch__knob i { background-image: var(--x-ink); transform: rotate(-90deg); }
.switch[aria-checked="true"] .switch__track { box-shadow: inset 0 0 0 1.5px var(--red), 0 0 14px 1px rgba(244,107,180,.5); }
.switch[aria-checked="false"] .switch__knob { transform: none; background: var(--paper-2); }
.switch[aria-checked="false"] .switch__stitch { animation: none; opacity: .3; }
.switch__roll, .pill__roll { position: relative; height: 1.3em; overflow: hidden; display: inline-flex; flex-direction: column; min-width: 3.2ch; }
.switch__roll span, .pill__roll span { display: block; line-height: 1.3em; transition: transform .5s cubic-bezier(.5,1.6,.4,1); }
[aria-checked="false"] > .switch__roll span, [aria-checked="false"] > .pill__roll span { transform: translateY(-100%); }
.switch__roll span:first-child, .pill__roll span:first-child { color: var(--red); font-weight: 500; }
:root.is-light .switch__track { background: var(--paper); }
@keyframes stitchMove { to { background-position: 9px 0; } }

.bagBtn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border: 0; background: var(--red); color: var(--paper); font: 400 17px/1 var(--cond); letter-spacing: .08em; clip-path: polygon(0 12%, 4% 0, 100% 0, 100% 88%, 96% 100%, 0 100%); transform: var(--mag, none); }
.bagBtn__n { min-width: 24px; height: 24px; display: grid; place-items: center; background: var(--paper); color: var(--red); font: 500 12px/1 var(--mono); }
.bagBtn.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.15) rotate(-4deg); } }
.burger { display: none; width: 40px; height: 36px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px); transition: transform .4s var(--ease); }
.burger span:first-child { top: 13px; } .burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.navPanel { position: fixed; top: 66px; left: 0; right: 0; z-index: 59; background: var(--navy-2); padding: 18px var(--gut) 26px; display: none; flex-direction: column; gap: 6px; }
.navPanel a { font: 400 38px/1.1 var(--cond); text-decoration: none; letter-spacing: .03em; }
.navPanel.is-open { display: flex; }

/* floating dock */
.pill { position: fixed; right: var(--gut); bottom: 46px; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px;
  border: 0; border-radius: 40px; background: var(--navy-3); color: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(224,36,47,.8); transform: var(--mag, none); }
.pill::before { content: ""; position: absolute; inset: 4px; border-radius: 40px; pointer-events: none; border: 1.5px dashed rgba(236,232,224,.28); }
.pill__spool { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: grid; place-items: center; position: relative;
  box-shadow: 0 0 0 0 rgba(244,107,180,.6); animation: halo 2s var(--ease) infinite; }
.pill__spool i { width: 14px; height: 14px; border-radius: 50%; background: repeating-linear-gradient(0deg, var(--paper) 0 1.5px, var(--red-2) 1.5px 3px); animation: spin 3s linear infinite; }
.pill[aria-checked="false"] .pill__spool { background: var(--paper-2); animation: none; }
.pill[aria-checked="false"] .pill__spool i { animation-play-state: paused; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(244,107,180,.6); } 80%,100% { box-shadow: 0 0 0 12px rgba(244,107,180,0); } }

.chapter { position: fixed; left: var(--gut); bottom: 44px; z-index: 50; display: flex; align-items: baseline; gap: 12px; color: var(--fg-2); pointer-events: none; transition: color .4s, opacity .5s; }
.chapter__n b { font: 400 26px/1 var(--display); color: var(--red); letter-spacing: 0; }
.chapter__name { color: var(--fg); }
.chapter.is-roll .chapter__name, .chapter.is-roll .chapter__n b { animation: roll .6s var(--ease); }
@keyframes roll { from { transform: translateY(80%); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0); } }
.rail { position: fixed; left: var(--gut); right: var(--gut); bottom: 22px; z-index: 50; height: 6px; pointer-events: none; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; opacity: .35; background: repeating-linear-gradient(90deg, var(--fg) 0 5px, transparent 5px 9px); }
.rail__fill { position: absolute; inset: 1px 0; transform-origin: 0 50%; transform: scaleX(0); background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 9px); }
.rail__ticks i { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; background: var(--x-red) 50% 50% / 10px no-repeat; }
[data-mode="video"] .rail__ticks, [data-mode="video"] .chapter__n { display: none; }

/* ── stage + beats ─────────────────────────────────────── */
.stage { position: relative; z-index: 20; }
[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="video"] .beats { position: relative; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; }
[data-mode="video"] .beat + .beat::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 14px; background: var(--x-red) 0 50% / 14px repeat-x; opacity: .5; }

.lay { padding: 96px calc(var(--gut) + 34px) 100px; display: grid; gap: 18px 40px;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "tl tr" "ml mr" "bl br"; }
.z { min-width: 0; max-width: min(40ch, 100%); pointer-events: auto; color: var(--paper); }
.z--tl, .z--tr { max-width: min(560px, 100%); }
.z--tl { grid-area: tl; align-self: start; justify-self: start; }
.z--tr { grid-area: tr; align-self: start; justify-self: end; text-align: right; }
.z--ml { grid-area: ml; align-self: center; justify-self: start; }
.z--mr { grid-area: mr; align-self: center; justify-self: end; }
.z--bl { grid-area: bl; align-self: end; justify-self: start; }
.z--br { grid-area: br; align-self: end; justify-self: end; text-align: right; }
.z--tr .row, .z--br .row { justify-content: flex-end; }
[data-mode="scrub"] .z--tl, [data-mode="scrub"] .z--bl { transform: translate3d(0, calc(var(--t, 0) * -16px), 0); }
[data-mode="scrub"] .z--tr, [data-mode="scrub"] .z--br { transform: translate3d(0, calc(var(--t, 0) * 16px), 0); }
[data-mode="scrub"] .flank { transform: translate3d(calc(var(--t, 0) * -40px), 0, 0); }
[data-mode="scrub"] .flank--r { transform: translate3d(calc(var(--t, 0) * 40px), 0, 0); }

/* panels: navy aida cloth with a running-stitch edge */
.panel, [data-mode="video"] .z:not(.flank):not(.z--hero) {
  position: relative; background: rgba(10,22,51,.86); padding: 22px 24px; color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 5px);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 1s var(--ease) .1s; }
.panel::before, [data-mode="video"] .z:not(.flank):not(.z--hero)::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px) 0 0 / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px) 0 100% / 100% 1.5px no-repeat,
    repeating-linear-gradient(180deg, var(--red) 0 6px, transparent 6px 10px) 0 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--red) 0 6px, transparent 6px 10px) 100% 0 / 1.5px 100% no-repeat; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .panel,
[data-mode="video"] .beat.is-in .z:not(.flank):not(.z--hero) { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* split text */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > i { display: block; font-style: inherit; transform: translate3d(0, 110%, 0); transition: transform 1s var(--ease) calc(var(--li, 0) * 90ms + 80ms); }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .06em; margin-bottom: -.06em; }
.ch > i { display: inline-block; font-style: inherit; transform: translate3d(0, 115%, 0) rotate(12deg); transform-origin: 0 100%; transition: transform .95s var(--ease) calc(var(--ci, 0) * 45ms + 60ms); }
.ch:nth-child(even) > i { transform: translate3d(0, -115%, 0) rotate(-12deg); }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wd > i { display: inline-block; font-style: inherit; opacity: 0; transition: transform .9s var(--ease) calc(var(--wi, 0) * 40ms + 150ms), opacity .6s calc(var(--wi, 0) * 40ms + 150ms); }
.wd:nth-child(3n+1) > i { transform: translate3d(0, 105%, 0); }
.wd:nth-child(3n+2) > i { transform: translate3d(-60%, 0, 0); }
.wd:nth-child(3n)   > i { transform: translate3d(0, -105%, 0); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in, [data-reveal].is-in) :is(.ln, .ch, .wd) > i { transform: none; opacity: 1; }

.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--fg-2); }
.tag::before { content: ""; width: 12px; height: 12px; background: var(--x-red) 50% 50% / 12px no-repeat; }
.beat .tag { color: rgba(236,232,224,.8); }
.beat :is(.lede, .row, .spec, .note, .cue, .stats li, .bigno, .kicker, .barcode, .leader, .stamp, .fly, .livecard__top, .livecard__vs) {
  opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + 260ms); }
.beat .tag { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .1s; }
.beat .stats li:nth-child(2), .beat .leader:nth-child(2) { --d: 1; }
.beat .stats li:nth-child(3), .beat .leader:nth-child(3) { --d: 2; }
.beat .leader:nth-child(4) { --d: 3; }
.beat .row { --d: 2; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.tag, .lede, .row, .spec, .note, .cue, .stats li, .bigno, .kicker, .barcode, .leader, .fly, .livecard__top, .livecard__vs) { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ── type ───────────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 400; line-height: .86; color: var(--red); letter-spacing: .01em; margin: 0; text-transform: uppercase;
  text-shadow: 0 2px 0 var(--navy-3), 0 0 30px rgba(10,22,51,.55); }
.h2 { font: 400 clamp(40px, 5vw, 78px)/.92 var(--cond); margin: 0; letter-spacing: .01em; text-transform: uppercase; color: var(--paper); }
.h2 em { font-family: var(--display); color: var(--red); text-transform: none; font-size: .86em; letter-spacing: 0; }
.h2--xl { font-size: clamp(48px, 6.4vw, 104px); }
.h2--ink { color: var(--ink); }
.lede { font-size: 16.5px; line-height: 1.5; margin: 0 0 18px; max-width: 42ch; color: var(--paper); }
.lede em { color: var(--red); font-family: var(--display); }
.kicker { font: 400 24px/1.2 var(--cond); letter-spacing: .03em; margin: 0; max-width: 24ch; }
.note { color: var(--fg-2); margin: 10px 0 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.beat--hero .lay { grid-template-areas: "tl tr" "hero hero" "bl br"; }
.z--hero { grid-area: hero; justify-self: end; align-self: center; max-width: none; text-align: right; font-size: clamp(76px, 12.2vw, 210px); }
.display__a, .display__b { display: block; }
.display__b { color: var(--paper); -webkit-text-stroke: 0; margin-right: .06em; }
[data-mode="scrub"] .z--hero .display__a { transform: translate3d(calc(var(--t, 0) * -30px), 0, 0); }
[data-mode="scrub"] .z--hero .display__b { transform: translate3d(calc(var(--t, 0) * 30px), 0, 0); }
.beat--fin .display--fin { font-size: clamp(56px, 8.6vw, 150px); max-width: 9ch; }
.flank { font-size: clamp(90px, 15vw, 260px); max-width: none; }
.beat--poppy .flank { color: var(--paper); text-shadow: 0 0 24px rgba(244,107,180,.65), 0 3px 0 var(--red-2); }
.beat--poppy .flank--r { color: var(--red); text-shadow: 0 0 24px rgba(244,107,180,.8), 0 3px 0 var(--navy-3); }

.spec { display: grid; gap: 4px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 22px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.spec dt { color: var(--fg-2); } .spec dd { margin: 0; color: var(--paper); }
.spec--row { grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 18px; }
.spec--row div { flex-direction: column; gap: 3px; }
.cue { display: inline-flex; gap: 10px; align-items: center; color: var(--fg-2); }
.cue i { width: 2px; height: 36px; background: repeating-linear-gradient(180deg, var(--red) 0 5px, transparent 5px 8px); animation: drip 1.4s linear infinite; }
@keyframes drip { to { background-position: 0 8px; } }

.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: flex; align-items: baseline; gap: 14px; }
.stats b { font: 400 54px/1 var(--display); color: var(--red); min-width: 2.4ch; }
.stats--row { grid-auto-flow: column; gap: 26px; }
.stats--row li { flex-direction: column; gap: 4px; align-items: flex-end; }
.stats span.mono { color: var(--fg-2); }
.bigno { display: block; font: 400 clamp(90px, 12vw, 190px)/.85 var(--display); color: var(--red-2); }
.bigno small { font-size: .3em; margin-left: .1em; }
.beat--light .note { color: rgba(11,19,48,.7); }
.beat--light .tag { color: rgba(11,19,48,.72) !important; }
[data-mode="video"] .beat--light .h2--ink { color: var(--paper); }
[data-mode="video"] .beat--light .note, [data-mode="video"] .beat--light .tag { color: var(--fg-2) !important; }

.leader { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-width: min(360px, 70vw); }
.leader span { white-space: nowrap; }
.leader i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 8px); }
.leader b { color: var(--red); font-weight: 500; }

.live { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 500; }
.live i { width: 9px; height: 9px; background: var(--x-red) 50% 50% / 12px no-repeat; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.livecard { min-width: min(380px, 100%); text-align: left; }
.livecard__top { display: flex; justify-content: space-between; gap: 18px; color: var(--fg-2); margin-bottom: 10px; }
.livecard__vs { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 44px/1 var(--cond); }
.livecard__score { font-family: var(--display); color: var(--red); font-size: 40px; }
.livecard .leader { min-width: 0; margin: 8px 0 14px; }

.stamp { position: relative; width: 132px; height: 132px; margin-left: auto; color: var(--red); transform: rotate(-40deg) scale(.7); opacity: 0; transition: transform 1.1s cubic-bezier(.5,1.6,.4,1) .3s, opacity .4s .3s; }
.stamp svg { width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
.stamp circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 4; }
.stamp text { font: 500 8.6px var(--mono); letter-spacing: .14em; fill: var(--paper); }
.stamp b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 400 17px/1 var(--cond); letter-spacing: .06em; color: var(--paper); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .stamp { transform: rotate(-12deg) scale(1); opacity: 1; }

.fly { width: 140px; height: auto; margin-bottom: 8px; }
.fly .draw { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 6 4; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .fly .draw { animation: sew 1.2s linear infinite; }

.release { max-width: 440px; }
.barcode { display: inline-flex; gap: 2px; height: 34px; align-items: stretch; }
.barcode i { width: 2px; background: var(--paper); }
.barcode i:nth-child(3n) { width: 1px; } .barcode i:nth-child(5n) { width: 3px; } .barcode i:nth-child(7n) { background: transparent; }

/* ── buttons ────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0;
  font: 400 19px/1 var(--cond); letter-spacing: .08em; text-decoration: none; transform: var(--mag, none); overflow: hidden; isolation: isolate; }
.btn--fill { background: var(--red); color: var(--paper); }
.btn--fill::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(236,232,224,.6); pointer-events: none; }
.btn--line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn--fill::before { background: var(--navy-3); }
.btn:hover::before { transform: none; }
.btn--line:hover { color: var(--navy-3); }
.btn--sm { height: 40px; font-size: 16px; padding: 0 16px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ── page sections ─────────────────────────────────────── */
.page { position: relative; z-index: 25; background: var(--navy-3);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 6px); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: var(--navy-3);
  clip-path: polygon(0 60%,3% 30%,6% 70%,9% 20%,12% 55%,15% 35%,18% 75%,21% 25%,24% 60%,27% 40%,30% 80%,33% 30%,36% 55%,39% 20%,42% 65%,45% 35%,48% 70%,51% 25%,54% 60%,57% 30%,60% 75%,63% 35%,66% 55%,69% 20%,72% 65%,75% 40%,78% 70%,81% 25%,84% 55%,87% 30%,90% 70%,93% 35%,96% 60%,100% 30%,100% 100%,0 100%); }
.sec { padding: clamp(80px, 10vw, 150px) var(--gut); max-width: 1440px; margin: 0 auto; }
.sec__head { display: grid; gap: 4px; margin-bottom: 40px; }
.h2--sec { font-size: clamp(56px, 8vw, 128px); }
.sec__lede { max-width: 52ch; color: var(--fg-2); margin: 14px 0 0; font-size: 16.5px; }
[data-reveal] .tag { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .1s; }
[data-reveal].is-in .tag { clip-path: inset(0); }

.sponsors { padding: 26px 0; border-bottom: 2px dashed rgba(224,36,47,.5); overflow: hidden; background: var(--red); color: var(--paper); }
.marquee { overflow: hidden; transform: skewX(var(--skew, 0deg)); }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marq 36s linear infinite; }
.marquee__track span { font: 400 clamp(30px, 3.6vw, 52px)/1 var(--display); white-space: nowrap; }
.marquee__track span:nth-child(4n+3) { font-family: var(--cond); letter-spacing: .06em; }
.marquee__track i { font-style: normal; color: var(--navy-3); font-size: 26px; }
.sponsors:hover .marquee__track { animation-duration: 70s; }
@keyframes marq { to { transform: translateX(-50%); } }

/* PLAYING NOW */
.now { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 36px; }
.now__card, .now__next { background: var(--navy); padding: 30px 32px; }
.now__top { display: flex; justify-content: space-between; gap: 14px; color: var(--fg-2); flex-wrap: wrap; }
.now__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 26px 0; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 400 26px/1 var(--cond); letter-spacing: .04em; }
.team__crest { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; font: 400 24px/1 var(--display); color: var(--paper);
  background: var(--green); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 7px var(--gold); }
.team__crest--tf { background: var(--red); }
.now__score { text-align: center; }
.now__score b { display: block; font: 400 clamp(46px, 5vw, 76px)/1 var(--display); color: var(--red); }
.now__score .mono { color: var(--fg-2); }
.now__maps { display: flex; gap: 8px; flex-wrap: wrap; }
.now__maps span { padding: 7px 10px; border: 1px dashed var(--line); }
.now__maps .is-won { border-color: var(--green-2); color: var(--green-2); }
.now__maps .is-on { border-color: var(--red); color: var(--paper); background: rgba(224,36,47,.18); }
.now__next { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.now__next > .mono { color: var(--fg-2); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.count div { background: var(--navy-3); padding: 12px 6px 10px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.count b { display: block; font: 400 clamp(38px, 4vw, 58px)/1 var(--cond); color: var(--paper); font-variant-numeric: tabular-nums; }
.count b.is-tick { animation: tick .4s var(--ease); }
@keyframes tick { from { transform: translateY(-30%); opacity: .2; color: var(--red); } }
.count .mono { color: var(--fg-2); }
.now__opp { margin: 0; font: 400 24px/1.1 var(--cond); letter-spacing: .04em; }
[data-remind].is-on { background: var(--green); box-shadow: none; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { height: 38px; padding: 0 16px; border: 1.5px dashed var(--line); background: none; color: var(--fg-2); font: 400 16px/1 var(--cond); letter-spacing: .08em; transition: .3s var(--ease); }
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip.is-on { background: var(--red); color: var(--paper); border-style: solid; border-color: var(--red); }

.fixtures { list-style: none; margin: 0; padding: 0; }
.fx { display: grid; grid-template-columns: 110px 130px 1fr 1fr 90px 110px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1.5px dashed var(--line);
  animation: fxIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes fxIn { from { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.fx__date b { display: block; font: 400 30px/1 var(--cond); }
.fx__date span, .fx__div, .fx__ev { color: var(--fg-2); }
.fx__opp { font: 400 26px/1 var(--cond); letter-spacing: .03em; }
.fx__opp small { font-family: var(--mono); font-size: 10px; color: var(--fg-2); margin-right: 8px; letter-spacing: .1em; }
.fx__time { font: 500 14px/1 var(--mono); }
.fx__st { justify-self: end; padding: 6px 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; border: 1.5px solid currentColor; }
.fx__st--live { color: var(--red); animation: blink 1s steps(2) infinite; }
.fx__st--w { color: var(--green-2); } .fx__st--l { color: var(--lilac); } .fx__st--up { color: var(--gold); }

/* ROSTER */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { perspective: 1000px; opacity: 0; transform: translateY(40px) rotate(var(--rot, 0deg)); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.card.is-in { opacity: 1; transform: rotate(var(--rot, 0deg)); }
.card.is-out { display: none; }
.card__in { position: relative; aspect-ratio: 3 / 4.1; transform-style: preserve-3d; transition: transform .8s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); cursor: pointer; }
.card.is-flip .card__in { transform: rotateY(180deg); }
.card__f, .card__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); color: var(--ink); padding: 12px; display: flex; flex-direction: column; }
.card__f img { width: 100%; flex: 1; min-height: 0; object-fit: cover; filter: none; }
.card__f::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(167,3,34,.6); pointer-events: none; }
.card__num { position: absolute; top: 18px; right: 18px; font: 400 40px/1 var(--display); color: var(--paper); text-shadow: 0 2px 0 var(--red-2); }
.card__meta { display: flex; justify-content: space-between; align-items: end; gap: 8px; padding-top: 10px; }
.card__h { font: 400 32px/.9 var(--cond); letter-spacing: .02em; }
.card__meta .mono { color: rgba(11,19,48,.6); font-size: 9.5px; }
.card__b { transform: rotateY(180deg); background: var(--navy); color: var(--paper); padding: 22px; gap: 12px; }
.card__b::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--red); pointer-events: none; }
.card__b h4 { margin: 0; font: 400 36px/1 var(--display); color: var(--red); }
.card__b p { margin: 0; font-size: 13.5px; color: var(--fg-2); }
.bar { display: grid; gap: 5px; }
.bar div { display: flex; justify-content: space-between; }
.bar span.mono { color: var(--fg-2); }
.bar i { display: block; height: 10px; background: var(--x-red) 0 50% / 10px repeat-x; width: calc(var(--v) * 1%); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) .35s; }
.card.is-flip .bar i { transform: scaleX(1); }
.card__sig { margin-top: auto; }

/* DROP */
.shop { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prod { position: relative; background: var(--navy); border: 0; padding: 10px 10px 14px; text-align: left; color: var(--paper); display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), box-shadow .3s; }
.prod:hover { transform: translateY(-4px); }
.prod.is-on { box-shadow: 0 0 0 2px var(--red), 0 0 24px rgba(244,107,180,.28); }
.prod__art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.prod__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover .prod__art img { transform: scale(1.07) rotate(-1.5deg); }
.prod__tag { position: absolute; left: 8px; top: 8px; background: var(--red); color: var(--paper); padding: 4px 7px; }
.prod__tag--low { background: var(--gold); color: var(--ink); }
.prod__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prod__n { font: 400 21px/1 var(--cond); letter-spacing: .03em; }
.prod__p { font: 500 13px/1 var(--mono); color: var(--red); }
.config { position: sticky; top: 86px; background: var(--navy); display: grid; grid-template-columns: 1fr; }
.config__art { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--paper); margin: 16px 16px 0; }
.config__art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.config__art.is-swap img { opacity: 0; }
.config__tint { position: absolute; inset: 0; mix-blend-mode: color; opacity: 0; transition: background .5s, opacity .5s; }
.config__body { padding: 18px 24px 26px; display: grid; gap: 12px; }
.config__sku { color: var(--fg-2); }
.config__name { margin: 0; font: 400 40px/.95 var(--cond); letter-spacing: .02em; }
.config__desc { margin: 0; color: var(--fg-2); font-size: 14px; }
.opt { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt legend { color: var(--fg-2); margin-bottom: 8px; padding: 0; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 1.5px var(--line); position: relative; transition: transform .3s cubic-bezier(.5,1.6,.4,1); }
.sw::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.55); }
.sw.is-on { box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 2.5px var(--red); transform: scale(1.12); }
.sz { min-width: 48px; height: 40px; border: 1.5px dashed var(--line); background: none; font: 500 12px/1 var(--mono); position: relative; }
.sz.is-on { background: var(--paper); color: var(--navy-3); border-style: solid; border-color: var(--paper); }
.sz[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty .mono { color: var(--fg-2); margin-right: 6px; }
.qty button { width: 34px; height: 34px; border: 1.5px dashed var(--line); background: none; font-size: 18px; }
.qty output { min-width: 2ch; text-align: center; font: 400 26px/1 var(--cond); }
.config__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.config__price { font: 400 44px/1 var(--display); color: var(--red); }
.config__price.is-tick { animation: tick .4s var(--ease); }
.config__stock { margin: 0; color: var(--gold); }

/* NEWSLETTER */
.letter__in { background: var(--red); color: var(--paper); padding: clamp(32px, 5vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.letter__in::before { background:
    repeating-linear-gradient(90deg, var(--paper) 0 7px, transparent 7px 12px) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--paper) 0 7px, transparent 7px 12px) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--paper) 0 7px, transparent 7px 12px) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--paper) 0 7px, transparent 7px 12px) 100% 0 / 2px 100% no-repeat; }
.letter .h2 em { color: var(--navy-3); }
.letter .tag { color: rgba(236,232,224,.85); }
.letter .tag::before { filter: none; background: none; content: "✕"; width: auto; height: auto; color: var(--navy-3); }
.letter__copy p { max-width: 42ch; font-size: 16.5px; }
.form { position: relative; display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
.field > .mono, .field legend { color: rgba(236,232,224,.8); }
.field input:not([type="checkbox"]) { height: 52px; padding: 0 16px; border: 0; background: var(--paper); color: var(--ink); font-size: 16px; box-shadow: inset 0 -3px 0 var(--navy-3); outline: none; transition: box-shadow .3s; }
.field input:focus { box-shadow: inset 0 -3px 0 var(--navy-3), 0 0 0 3px rgba(10,22,51,.5); }
.field.is-bad input { box-shadow: inset 0 -3px 0 var(--gold), 0 0 0 2px var(--gold); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field--check { grid-auto-flow: column; justify-content: start; gap: 18px; align-items: center; flex-wrap: wrap; }
.field--check legend { float: left; width: 100%; margin-bottom: 8px; }
.field--check label { display: flex; gap: 8px; align-items: center; font: 400 19px/1 var(--cond); letter-spacing: .05em; cursor: pointer; }
.field--check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.field--check input::after { content: ""; width: 14px; height: 14px; background: var(--x-red) 50% 50% / 14px no-repeat; transform: scale(0); transition: transform .3s cubic-bezier(.5,1.6,.4,1); }
.field--check input:checked::after { transform: scale(1); }
.err { color: var(--gold); min-height: 1em; font-style: normal; }
.field--check .err { grid-column: 1 / -1; }
.form .btn--fill { background: var(--navy-3); justify-self: start; height: 54px; padding: 0 30px; }
.form .btn--fill::before { background: var(--paper); }
.form .btn--fill:hover { color: var(--navy-3); }
.form__ok { position: absolute; inset: 0; background: var(--red); display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.form__ok svg { width: 96px; height: 96px; }
.form__ok circle { fill: none; stroke: var(--paper); stroke-width: 2; stroke-dasharray: 6 4; animation: spin 10s linear infinite; transform-origin: 50% 50%; }
.form__ok path { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 46; stroke-dashoffset: 46; animation: stitchIn .7s var(--ease) .2s forwards; }
.form__ok b { font: 400 44px/1 var(--display); }

/* FAQ */
.acc { border-top: 1.5px dashed var(--line); }
.acc details { border-bottom: 1.5px dashed var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 clamp(26px, 3vw, 40px)/1 var(--cond); letter-spacing: .02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: 0 0 26px; height: 26px; background: var(--x-red) 50% 50% / 26px no-repeat; transform: rotate(45deg); transition: transform .5s cubic-bezier(.5,1.6,.4,1); }
.acc details[open] summary::after { transform: rotate(0deg); }
.acc summary:hover { color: var(--red); }
.acc p { margin: 0; padding: 0 0 26px; max-width: 64ch; color: var(--fg-2); font-size: 16px; }
.acc .acc__body { overflow: hidden; }

/* FOOTER */
.foot { position: relative; padding: 60px var(--gut) 140px; overflow: hidden; background: var(--navy); }
.foot__seam { height: 14px; background: var(--x-red) 0 50% / 14px repeat-x, var(--x-green) 7px 50% / 28px repeat-x; margin-bottom: 30px; }
.foot__big { font: 400 clamp(40px, 13.4vw, 250px)/.8 var(--display); color: var(--red); text-align: center; letter-spacing: -.01em; white-space: nowrap;
  transform: translate3d(calc(var(--fp, 0) * -40px), 0, 0); }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 50px 0 40px; }
.foot__grid .mono { display: block; color: var(--fg-2); margin-bottom: 10px; }
.foot__grid a { display: block; font: 400 24px/1.3 var(--cond); letter-spacing: .03em; text-decoration: none; }
.foot__grid a:hover { color: var(--red); }
.foot__grid p { margin: 0; color: var(--paper); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-2); padding-top: 18px; border-top: 1.5px dashed var(--line); }
.foot__base a { text-decoration: none; }

/* CART */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(5,10,25,.6); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .6s var(--snap); }
.cart.is-open { transform: none; }
.cart::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--red) 0 6px, transparent 6px 10px); }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px 30px; }
.cart__head b { font: 400 34px/1 var(--display); color: var(--red-2); }
.cart__x { width: 38px; height: 38px; border: 1.5px dashed rgba(11,19,48,.35); background: none; color: var(--ink); }
.cart__ship { padding: 0 24px 14px 30px; }
.cart__bar { height: 10px; margin-top: 8px; background: rgba(11,19,48,.1); }
.cart__bar i { display: block; height: 100%; background: var(--x-red) 0 50% / 10px repeat-x; transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.cart__list { list-style: none; margin: 0; padding: 0 24px 0 30px; flex: 1; overflow: auto; }
.cart__list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1.5px dashed rgba(11,19,48,.2); animation: fxIn .5s var(--ease); }
.cart__list img { width: 64px; height: 64px; object-fit: cover; }
.cart__list b { display: block; font: 400 21px/1 var(--cond); letter-spacing: .03em; }
.cart__list .mono { color: rgba(11,19,48,.6); font-size: 9.5px; }
.cart__q { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart__q button { width: 24px; height: 24px; border: 1px solid rgba(11,19,48,.3); background: none; color: var(--ink); padding: 0; }
.cart__rm { margin-left: 10px; border: 0; background: none; color: var(--red-2); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cart__lp { font: 500 13px var(--mono); text-align: right; }
.cart__empty { padding: 20px 30px; color: rgba(11,19,48,.6); flex: 1; }
.cart__foot { padding: 18px 24px 26px 30px; border-top: 1.5px dashed rgba(11,19,48,.3); display: grid; gap: 6px; }
.cart__foot > div { display: flex; justify-content: space-between; }
.cart__tot { font: 400 30px/1 var(--cond); margin: 6px 0 12px; }
.cart__tot b { color: var(--red-2); }
.cart__note { color: rgba(11,19,48,.6); margin: 4px 0 0; }
.cart .btn--fill::before { background: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; background: var(--paper); color: var(--ink); padding: 12px 18px; transition: .45s var(--ease); pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast::before { content: "✕ "; color: var(--red); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ── cursor: a pixel cross-stitch needle + running-stitch trail ── */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--x { width: 30px; height: 30px; }
.cur--x svg { width: 100%; height: 100%; overflow: visible; transition: transform .4s cubic-bezier(.5,1.6,.4,1); }
.cur--x .px { stroke: var(--red); stroke-width: 1.6; stroke-linecap: square; }
.cur--x .ring { opacity: 0; transition: opacity .3s; }
.cur--x.is-on svg { transform: scale(1.6) rotate(45deg); }
.cur--x.is-on .ring { opacity: 1; }
.cur--x.is-down svg { transform: scale(.8); }
.cur__l { position: absolute; left: 26px; top: 22px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--red); color: var(--paper); padding: 5px 7px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: .3s var(--ease); }
.cur--x.is-lg .cur__l { opacity: 1; transform: none; }
.cur--trail { inset: 0; width: 100vw; height: 100vh; z-index: 399; }
.cur--trail path { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; opacity: .8; }
:root.is-out .cur { opacity: 0; }

/* ── light range (white flash) ──────────────────────────── */
:root.is-light .chapter__name, :root.is-light .hud__side b { color: var(--ink); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .shop { grid-template-columns: 1fr; }
  .config { position: relative; top: 0; }
  .fx { grid-template-columns: 90px 1fr 1fr 90px; }
  .fx__div, .fx__ev { display: none; }
}
@media (max-width: 860px) {
  .chrome__nav { display: none; }
  .burger { display: block; }
  .switch__txt { display: none; }
  .hud__side, .hud__fig, .hud__cross { display: none; }
  .now { grid-template-columns: 1fr; }
  .letter__in { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .chrome { gap: 10px; height: 60px; }
  .mark__txt { font-size: 19px; }
  .mark__x { width: 20px; height: 20px; }
  .bagBtn__l { display: none; }
  .bagBtn { padding: 0 6px; }
  .navPanel { top: 60px; }
  .hud__br--tl, .hud__br--tr { top: 68px; }
  .hide-sm { display: none !important; }
  .lay { padding: 76px 16px 96px; gap: 12px;
    grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "tl" "ml" "mr" "bl" "br"; }
  .z--tr { grid-area: tl; }
  .z { justify-self: stretch !important; text-align: left !important; max-width: 100% !important; }
  .z--tr .row, .z--br .row { justify-content: flex-start; }
  .z--mr, .z--br { grid-area: auto; }
  .beat--hero .lay { grid-template-areas: "tl" "hero" "bl"; grid-template-rows: auto 1fr auto; }
  .z--hero { justify-self: start !important; font-size: clamp(56px, 17vw, 110px); text-align: left !important; }
  .display__b { margin: 0; }
  .flank { font-size: 22vw; }
  .beat--poppy .lay { grid-template-areas: "tl" "ml" "." "mr" "br"; grid-template-rows: auto auto 1fr auto auto; }
  .beat--poppy .z--mr { text-align: right !important; }
  .h2 { font-size: 44px; }
  .h2--xl { font-size: 52px; }
  .panel, [data-mode="video"] .z:not(.flank):not(.z--hero) { padding: 16px 18px; }
  .stats b { font-size: 42px; }
  .stats--row { grid-auto-flow: row; }
  .stats--row li { flex-direction: row; align-items: baseline; }
  .livecard { min-width: 0; }
  .livecard__vs { font-size: 34px; }
  .leader { min-width: 0; }
  .leader span { white-space: normal; }
  .bigno { font-size: 96px; }
  .beat--fin .display--fin { font-size: 44px; }
  .beat--light .z { background: rgba(236,232,224,.82); padding: 14px 16px; }
  [data-mode="video"] .beat--light .z { background: rgba(10,22,51,.86); }
  .pill { right: 12px; bottom: 40px; padding: 7px 12px 7px 7px; gap: 8px; }
  .pill__spool { width: 24px; height: 24px; }
  .chapter { left: 16px; bottom: 44px; }
  .chapter__name { display: none; }
  .rail { left: 16px; right: 16px; }
  .sec { padding: 72px 16px; }
  .h2--sec { font-size: 60px; }
  .now__card, .now__next { padding: 24px 20px; }
  .now__vs { gap: 8px; }
  .team__crest { width: 60px; height: 60px; font-size: 18px; }
  .team { font-size: 18px; }
  .fx { grid-template-columns: 70px 1fr auto; gap: 10px; }
  .fx__time { display: none; }
  .fx__opp { font-size: 21px; }
  .cards { gap: 10px; }
  .card__h { font-size: 24px; }
  .card__b { padding: 16px; gap: 8px; }
  .card__b h4 { font-size: 26px; }
  .card__b p { display: none; }
  .products { gap: 10px; }
  .prod__n { font-size: 18px; }
  .config__body { padding: 14px 16px 20px; }
  .config__art { margin: 12px 12px 0; }
  .field--check { grid-auto-flow: row; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .toast { bottom: 100px; width: max-content; max-width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}
