/* ───────────────────────────────────────────────────────────
   STUDWORK — interface for a macro film of toy bricks on a
   white seamless sweep. Palette sampled from the frames:
   warm paper wall, brick red, royal blue, yellow, green, the
   chrome ball, and ink for everything we draw on top.
   The subject sits dead centre; the lit wall (upper-left) and
   the floor (bottom) carry the type. HUD furniture everywhere
   else is drawn like an architect's sheet.
   ─────────────────────────────────────────────────────────── */

:root {
  --paper:   #e9e6e1;
  --paper-2: #dcd7cf;
  --paper-3: #f4f2ee;
  --wall:    #e5d6c4;
  --ink:     #1a1a1a;
  --ink-2:   #3a3836;
  --mute:    #6f6a64;
  --red:     #b3121b;
  --red-d:   #831f1a;
  --blue:    #1f4fa0;
  --blue-d:  #1f3f76;
  --yellow:  #f5b21e;
  --green:   #1c6a3a;
  --chrome:  #a3a8ad;
  --line:    rgba(26,26,26,.18);

  --disp:  "Archivo Black", "Arial Black", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans:  "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --gut:   clamp(16px, 4vw, 64px);
  --top:   clamp(84px, 11vh, 108px);
  --bot:   clamp(112px, 15vh, 138px);
  --ease:  cubic-bezier(.22,1,.36,1);
  --click: cubic-bezier(.34,1.7,.52,1);
  --scroll-length: 1200vh;

  /* cover-fit stretch of the 16:9 film, set by motion.js */
  --kx: 1; --ky: 1;
  --p: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.skip { position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; font-size: 13px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--paper); transition: opacity .7s var(--ease) .1s, visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__stack { display: grid; justify-items: center; gap: 3px; }
.loader__stack i { width: 44px; height: 16px; background: var(--red); border-radius: 2px; position: relative; animation: stackIn 1.6s var(--click) infinite both; }
.loader__stack i::before, .loader__stack i::after { content: ""; position: absolute; top: -5px; width: 12px; height: 5px; background: inherit; border-radius: 2px 2px 0 0; }
.loader__stack i::before { left: 7px; } .loader__stack i::after { right: 7px; }
.loader__stack i:nth-child(1) { background: var(--yellow); animation-delay: .45s; }
.loader__stack i:nth-child(2) { background: var(--blue); animation-delay: .3s; }
.loader__stack i:nth-child(3) { background: var(--green); animation-delay: .15s; }
@keyframes stackIn { 0% { transform: translateY(-60px); opacity: 0; } 25%, 80% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.loader__word { font-family: var(--disp); font-size: 28px; letter-spacing: .02em; }
.loader__bar { width: 180px; height: 3px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s linear; }
.loader__meta { display: flex; justify-content: space-between; width: 180px; color: var(--mute); }

/* ── the snap (mode switch flash) ───────────────────────── */
.snap { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; visibility: hidden; background: #fbfaf8;
  transition: opacity .55s var(--ease), visibility 0s .55s; display: grid; place-items: center; }
.snap__grid { position: absolute; inset: -4%; opacity: .9;
  background:
    radial-gradient(circle at 50% 50%, rgba(179,18,27,.22) 0 7px, transparent 7.5px) 0 0 / 40px 40px,
    linear-gradient(rgba(26,26,26,.09) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(26,26,26,.09) 1px, transparent 1px) 0 0 / 40px 40px;
  transform: scale(1.14); transition: transform .5s var(--click); }
.snap__word { position: relative; font-family: var(--disp); font-size: clamp(60px, 14vw, 220px); color: var(--red); letter-spacing: -.02em; transform: scale(.6) translateY(20px); transition: transform .45s var(--click); }
:root.is-switching .snap { opacity: 1; visibility: visible; transition: opacity .1s linear, visibility 0s; }
:root.is-switching .snap__grid { transform: scale(1); transition: transform .26s var(--click); }
:root.is-switching .snap__word { transform: none; transition: transform .26s var(--click); }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--paper); }
.film canvas, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__grade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(233,230,225,.55) 0%, rgba(233,230,225,0) 16%, rgba(233,230,225,0) 84%, rgba(233,230,225,.5) 100%); }
[data-mode="scrub"] .film__video { display: none; }
[data-mode="video"] .film canvas { display: none; }
/* the playing film is not synced to the copy: veil the reading side, drop the pointers */
[data-mode="video"] .film__grade { background:
  linear-gradient(90deg, rgba(233,230,225,.82) 0%, rgba(233,230,225,.55) 34%, rgba(233,230,225,0) 62%),
  linear-gradient(180deg, rgba(233,230,225,.55) 0%, rgba(233,230,225,0) 16%, rgba(233,230,225,0) 80%, rgba(233,230,225,.6) 100%); }
[data-mode="video"] .callout, [data-mode="video"] .tip, [data-mode="video"] .elev { display: none; }

/* ── HUD ────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: var(--ink); }
.hud__grid { position: absolute; inset: 0; opacity: var(--grid, 0);
  background:
    linear-gradient(rgba(31,79,160,.28) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(31,79,160,.28) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(31,79,160,.12) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(31,79,160,.12) 1px, transparent 1px) 0 0 / 12px 12px;
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, transparent 20%, #000 75%); mask: radial-gradient(70% 70% at 50% 50%, transparent 20%, #000 75%); }
.hud__br { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); opacity: .7; }
.hud__br--tl { top: 74px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.hud__br--tr { top: 74px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.hud__br--bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.hud__br--br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }
.hud__side { position: absolute; top: 50%; white-space: nowrap; color: var(--ink-2); opacity: .75; font-size: 9.5px; }
.hud__side--l { left: 20px; transform: translate(-50%, -50%) rotate(-90deg) translateY(50%); transform-origin: 50% 50%; left: 26px; }
.hud__side--r { right: 26px; transform: translate(50%, -50%) rotate(90deg) translateY(50%); }
.hud__tc { position: absolute; top: 84px; right: 46px; display: grid; justify-items: end; gap: 2px; color: var(--ink-2); }
.hud__tc b { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.hud__tc b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.hud__scale { position: absolute; left: 46px; bottom: 30px; display: grid; grid-template-columns: auto auto; gap: 3px 10px; color: var(--ink-2); align-items: center; }
.hud__ticks { grid-column: 1 / -1; display: flex; width: 120px; height: 7px; border: 1px solid var(--ink); border-top: 0; }
.hud__ticks i { flex: 1; border-right: 1px solid var(--ink); }
.hud__ticks i:nth-child(odd) { background: var(--ink); }
.hud__scale span:last-child { grid-column: 2; }
.hud__par { position: absolute; color: var(--ink-2); opacity: .55; will-change: transform; }
.hud__par--a { top: 34vh; left: 14vw; transform: translate3d(0, calc(var(--p) * -120vh), 0); }
.hud__par--b { top: 70vh; right: 16vw; transform: translate3d(0, calc(var(--p) * -60vh), 0); }
.hud__par--c { top: 18vh; left: 62vw; transform: translate3d(0, calc(var(--p) * 30vh), 0); }
.hud__par--a::before, .hud__par--b::before { content: "+"; font-size: 18px; display: inline-block; margin-right: 6px; vertical-align: -3px; }

/* ── chrome ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 22px; padding: 14px var(--gut); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.chrome.is-solid { background: rgba(233,230,225,.94); box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark__brick { position: relative; width: 26px; height: 14px; background: var(--red); border-radius: 2px; margin-top: 4px; transition: transform .5s var(--click); }
.mark__brick i { position: absolute; top: -4px; width: 7px; height: 4px; background: var(--red); border-radius: 1.5px 1.5px 0 0; }
.mark__brick i:first-child { left: 3.5px; } .mark__brick i:last-child { right: 3.5px; }
.mark:hover .mark__brick { transform: translateY(-4px) rotate(-8deg); }
.mark__word { font-family: var(--disp); font-size: 19px; letter-spacing: .01em; }
.chrome__nav { margin-left: auto; display: flex; gap: 22px; }
.chrome__nav a { font-size: 13px; font-weight: 500; text-decoration: none; position: relative; padding: 4px 0; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.chrome__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.burger { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.burger span + span { margin-top: 6px; }
.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; inset: 0; z-index: 59; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
.navPanel.is-open { clip-path: inset(0); }
.navPanel a { font-family: var(--disp); font-size: clamp(40px, 12vw, 72px); line-height: 1.05; text-decoration: none; }
.navPanel a:hover { color: var(--red); }

/* ── the brick switch ───────────────────────────────────── */
.bswitch { --w: 58px; --h: 26px; --kw: 26px; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.bswitch__plate { position: relative; width: var(--w); height: var(--h); border-radius: 5px; flex: none;
  background-color: #9e9993;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.28) 0 3px, rgba(0,0,0,.18) 3.2px 4px, transparent 4.4px);
  background-size: 10px 10px; background-position: 1px 1px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), inset 0 0 0 1.5px var(--ink);
  transition: background-color .35s var(--ease); }
.bswitch[aria-checked="true"] .bswitch__plate { background-color: var(--red); }
.bswitch__knob { position: absolute; left: 3px; bottom: 3px; width: var(--kw); height: calc(var(--h) - 10px); background: var(--yellow); border-radius: 2px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.16), 0 0 0 1.5px var(--ink), 0 3px 0 rgba(0,0,0,.25);
  transform: translateX(0); transition: transform .5s var(--click), background-color .3s; }
.bswitch__knob i { position: absolute; top: -5px; width: 7px; height: 5px; background: inherit; border-radius: 2px 2px 0 0; box-shadow: 0 0 0 1.5px var(--ink); }
.bswitch__knob i:first-child { left: 4px; } .bswitch__knob i:last-child { right: 4px; }
.bswitch[aria-checked="true"] .bswitch__knob { transform: translateX(calc(var(--w) - var(--kw) - 6px)); background: var(--paper-3); }
.bswitch:active .bswitch__knob { transform: translateX(var(--kx-now, 0)) scale(.92, .82); transition-duration: .12s; }
.bswitch[aria-checked="true"]:active .bswitch__knob { transform: translateX(calc(var(--w) - var(--kw) - 6px)) scale(.92, .82); }
.bswitch__txt { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bswitch__roll { position: relative; display: inline-block; height: 1.45em; line-height: 1.45em; overflow: hidden; min-width: 3.3ch; padding: 0 5px; border: 1.5px solid var(--ink); border-radius: 3px; }
.bswitch__roll b { display: block; font-weight: 700; text-align: center; transition: transform .5s var(--click); }
.bswitch[aria-checked="true"] .bswitch__roll { background: var(--ink); color: var(--paper); }
.bswitch[aria-checked="false"] .bswitch__roll b { transform: translateY(-100%); }
.bswitch__k { display: inline-block; }
.bswitch__k.is-roll { animation: roll .5s var(--click); }
@keyframes roll { 0% { transform: translateY(0); opacity: 1; } 35% { transform: translateY(-90%); opacity: 0; } 36% { transform: translateY(90%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dock .bswitch { transform: var(--mag, translate(0,0)); }
.bswitch--lg { --w: 78px; --h: 34px; --kw: 36px; }
.bswitch--lg .bswitch__knob i { width: 9px; height: 6px; top: -6px; left: 6px; }
.bswitch--lg .bswitch__knob i:last-child { left: auto; right: 6px; }
.bswitch--lg .bswitch__txt { font-size: 12px; }
.bswitch:hover .bswitch__plate { box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(179,18,27,.15); }

.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: 15px; }
.linkbtn:hover { color: var(--red); }

/* ── dock + rail ────────────────────────────────────────── */
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 18px;
  background: rgba(244,242,238,.92); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink);
  transform: translateX(-50%); transition: transform .5s var(--click); }
.dock:hover { transform: translateX(-50%) translateY(-2px); }
.dock__ch { display: flex; align-items: baseline; gap: 3px; color: var(--mute); min-width: 170px; }
.dock__ch b { font-family: var(--disp); font-size: 20px; color: var(--ink); letter-spacing: 0; display: inline-block; }
.dock__ch b.is-flip { animation: roll .5s var(--click); }
.dock__ch em { margin-left: 10px; font-size: 18px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; height: 5px; background: rgba(26,26,26,.1); }
.rail > span { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.rail__marks i { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--ink); }

/* ── buttons ────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; padding: 12px 18px; border-radius: 6px; border: 1.5px solid var(--ink);
  transform: var(--mag, translate(0,0)); box-shadow: 0 4px 0 var(--ink); transition: box-shadow .2s var(--ease), background .3s var(--ease), color .3s; }
.btn:hover { box-shadow: 0 6px 0 var(--ink); }
.btn:active { box-shadow: 0 1px 0 var(--ink); translate: 0 3px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); }
.btn--line { background: var(--paper-3); color: var(--ink); }
.btn--line:hover { background: var(--yellow); }
.btn--lg { padding: 15px 22px; font-size: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ── the stage, two layouts ─────────────────────────────── */
.stage { position: relative; z-index: 10; }
.overlays { pointer-events: none; }
.beat { --t: 0; }
.beat > * { pointer-events: none; }
.beat a, .beat button { pointer-events: auto; }

[data-mode="scrub"] .stage__spacer { height: var(--scroll-length); }
[data-mode="scrub"] .overlays { position: fixed; inset: 0; z-index: 20; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }

[data-mode="video"] .stage__spacer { height: 0; }
[data-mode="video"] .overlays { position: relative; z-index: 20; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; opacity: 1; visibility: visible; overflow-x: clip; }
/* each flowing section wipes up over the film as it arrives */
[data-mode="video"] .beat .lay { clip-path: inset(18% 0 0 0); opacity: .001; transition: clip-path 1s var(--ease), opacity .6s var(--ease); }
[data-mode="video"] .beat.is-live .lay { clip-path: inset(0); opacity: 1; }
[data-mode="video"] .beat::before { content: attr(data-ch); position: absolute; top: 50%; right: var(--gut); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); writing-mode: vertical-rl; transform: translateY(-50%); }
[data-mode="video"] .beat + .beat { border-top: 1px dashed var(--line); }

.lay { position: absolute; inset: 0; padding: var(--top) var(--gut) var(--bot); }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; }
.z { position: absolute; display: flex; flex-direction: column; min-width: 0; }
.z--top { top: var(--top); left: var(--gut); right: var(--gut); align-items: flex-start; }
.z--tl  { top: var(--top); left: var(--gut); max-width: min(36vw, 560px); align-items: flex-start; }
.z--tr  { top: var(--top); right: var(--gut); max-width: min(34vw, 480px); align-items: flex-end; text-align: right; }
.z--bl  { bottom: var(--bot); left: var(--gut); max-width: min(36vw, 520px); align-items: flex-start; }
.z--br  { bottom: var(--bot); right: calc(var(--gut) + 18px); max-width: min(34vw, 480px); align-items: flex-end; text-align: right; }
.lay--center { display: grid; place-content: center; justify-items: center; text-align: center; }

/* the film's subject, mapped through the cover crop */
.fx { --x: 50; --y: 50; left: calc(50% + (var(--x) - 50) * 1% * var(--kx)); top: calc(50% + (var(--y) - 50) * 1% * var(--ky)); }

/* ── type ───────────────────────────────────────────────── */
.mega { font-family: var(--disp); font-weight: 400; font-size: clamp(46px, 8.2vw, 150px); line-height: .9; letter-spacing: -.035em; margin: 18px 0 0; }
.mega em { font-size: 1.14em; letter-spacing: -.02em; color: var(--red); line-height: .8; }
.mega--end { font-size: clamp(46px, 7.6vw, 136px); }
.h1 { font-family: var(--disp); font-weight: 400; font-size: clamp(38px, 6vw, 96px); line-height: .92; letter-spacing: -.03em; margin: 0; }
.h1 em, .h2 em { color: var(--red); font-size: 1.1em; letter-spacing: -.015em; }
.h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 3.5vw, 56px); line-height: .96; letter-spacing: -.028em; margin: 0; }
.h2--xl { font-size: clamp(54px, 9vw, 160px); line-height: .86; text-shadow: 0 0 24px rgba(244,242,238,.9), 0 0 6px rgba(244,242,238,.8); }
.lede { font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.55; color: var(--ink-2); margin: 16px 0 0; max-width: 42ch; }
.lede--sm { font-size: 14.5px; margin-top: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 0; border-top: 1.5px dotted var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 100px; background: rgba(244,242,238,.8); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(179,18,27,.6); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(179,18,27,0); } 100% { box-shadow: 0 0 0 0 rgba(179,18,27,0); } }

/* split text — letters drop and click in like bricks */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform: translate3d(0, -0.9em, 0) rotate(var(--rr, -6deg)); opacity: 0;
  transition: transform .75s var(--click), opacity .25s linear; transition-delay: calc(var(--i) * 28ms); }
.is-live .ch { transform: none; opacity: 1; }
:root:not(.is-revealed) .is-live .ch { opacity: 0; transform: translate3d(0, -0.9em, 0) rotate(var(--rr, -6deg)); }
:root:not(.is-revealed) .is-live .ln > i { transform: translate3d(0, 108%, 0); }
/* line masks */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > i { display: block; font-style: normal; transform: translate3d(0, 108%, 0); transition: transform .9s var(--ease); transition-delay: calc(var(--li) * 90ms + 60ms); }
.is-live .ln > i { transform: none; }

/* generic reveal pieces inside a live beat / section */
.rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .6s var(--ease), transform .8s var(--click); transition-delay: var(--d, .2s); }
.is-live .rv, .is-in .rv { opacity: 1; transform: none; }
.beat .lede, .beat .row, .beat .kicker, .beat .tag { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease) .25s, transform .8s var(--ease) .25s; }
.beat.is-live .lede, .beat.is-live .row, .beat.is-live .kicker, .beat.is-live .tag { opacity: 1; transform: none; }
.beat .row { transition-delay: .4s; }

/* cards */
.card { position: relative; padding: 22px 24px 24px; border: 1.5px solid var(--ink); border-radius: 4px; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); }
.is-live .card { clip-path: inset(0 -20px -20px 0); }
.card--paper { background: rgba(244,242,238,.93); box-shadow: 6px 6px 0 rgba(26,26,26,.9); }
.card--ink { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.card--ink .lede { color: rgba(233,230,225,.86); }
.card::before, .card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--red); }
.card::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.card::after { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }

/* ── HERO ───────────────────────────────────────────────── */
.beat--hero .z--br { align-items: flex-end; gap: 22px; }
.stamp { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stamp text { font-family: var(--mono); font-size: 10.4px; letter-spacing: .14em; fill: var(--ink); }
.stamp b { font-family: var(--disp); font-size: 26px; color: var(--paper-3); background: var(--red); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.stamp--spin svg { animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cue { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.cue i { width: 1.5px; height: 44px; background: linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 100% 200%; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
[data-mode="video"] .cue span::after { content: " · film playing"; }

/* ── callouts (crosshair + dotted leader + label) ───────── */
.callout { position: absolute; width: 0; height: 0; }
.callout--one  { --x: 50; --y: 57; left: calc(50% + (var(--x) - 50) * 1% * var(--kx)); top: calc(50% + (var(--y) - 50) * 1% * var(--ky)); }
.callout--idea { --x: 50; --y: 46; left: calc(50% + (var(--x) - 50) * 1% * var(--kx)); top: calc(50% + (var(--y) - 50) * 1% * var(--ky)); }
.callout__x { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; transform: scale(.4) rotate(-45deg); opacity: 0; transition: transform .7s var(--click) .2s, opacity .3s .2s; }
.callout__x::before, .callout__x::after { content: ""; position: absolute; background: var(--red); }
.callout__x::before { left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; background: linear-gradient(var(--ink) 0 30%, transparent 30% 70%, var(--ink) 70%); }
.callout__x::after { top: 50%; left: -14px; right: -14px; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--ink) 0 30%, transparent 30% 70%, var(--ink) 70%); }
.callout__x { border: 1.5px dashed rgba(26,26,26,.55); border-radius: 50%; }
.callout__x--ring { border: 2px solid var(--paper-3); border-radius: 50%; }
.is-live .callout__x { transform: none; opacity: 1; }
.callout__lead { position: absolute; left: 34px; top: -1px; width: clamp(90px, 14vw, 220px); border-top: 2px dotted var(--ink); transform-origin: 0 50%; transform: scaleX(0) ; transition: transform .7s var(--ease) .45s; }
.callout__lead::after { content: ""; position: absolute; right: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.is-live .callout__lead { transform: scaleX(1); }
.callout__lbl { position: absolute; left: calc(clamp(90px, 14vw, 220px) + 50px); top: -16px; white-space: nowrap; line-height: 1.6; color: var(--ink-2); opacity: 0; transform: translateX(-10px); transition: opacity .5s .8s, transform .6s var(--ease) .8s; }
.callout__lbl b { color: var(--ink); font-weight: 500; }
.is-live .callout__lbl { opacity: 1; transform: none; }
.callout--one .callout__lead { left: auto; right: 34px; transform-origin: 100% 50%; }
.callout--one .callout__lead::after { right: auto; left: -4px; }
.callout--one .callout__lbl { left: auto; right: calc(clamp(90px, 14vw, 220px) + 50px); text-align: right; transform: translateX(10px); }
.is-live .callout--one .callout__lbl { transform: none; }
.callout--idea .callout__lbl { padding: 8px 10px; background: rgba(244,242,238,.94); border: 1.5px solid var(--ink); top: -26px; }

/* ── blueprint card ─────────────────────────────────────── */
.bp { margin: 0; width: min(300px, 26vw); padding: 12px 14px 14px; background: rgba(31,79,160,.94); color: #e7eefc; border-radius: 4px; box-shadow: 6px 6px 0 var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 16px 16px;
  clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease) .15s; text-align: left; }
.is-live .bp { clip-path: inset(0 -12px -12px 0); }
.bp figcaption { display: flex; justify-content: space-between; margin-bottom: 8px; color: #bcd0f5; }
.draw path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.draw path:nth-child(2) { transition-delay: .25s; } .draw path:nth-child(3) { transition-delay: .4s; }
.draw path:nth-child(4) { transition-delay: .55s; } .draw path:nth-child(5) { transition-delay: .7s; }
.draw path.dim { stroke: #9fbaf0; stroke-dasharray: 1; transition-delay: .9s; }
.is-live .draw path { stroke-dashoffset: 0; }
.bp__spec { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 8px; }
.bp__spec dt { color: #9fbaf0; font-size: 9px; } .bp__spec dd { margin: 2px 0 0; color: #fff; font-size: 12px; }

/* ── stats (stacking counters) ──────────────────────────── */
.stats { list-style: none; margin: 0; padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; background: rgba(244,242,238,.93); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }
.stats li { display: grid; gap: 4px; opacity: 0; transform: translateY(-28px); transition: opacity .3s, transform .7s var(--click); transition-delay: calc(var(--i, 0) * 110ms + .15s); }
.is-live .stats li { opacity: 1; transform: none; }
.stats b { font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats li:nth-child(1) b { color: var(--red); } .stats li:nth-child(2) b { color: var(--blue); }
.stats li:nth-child(3) b { color: var(--green); } .stats li:nth-child(4) b { color: var(--ink); }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.stats--row { grid-template-columns: repeat(3, auto); text-align: left; }

/* ── the kit (services) ─────────────────────────────────── */
.svc { position: absolute; left: var(--gut); right: calc(var(--gut) + 18px); bottom: var(--bot); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc__i { position: relative; padding: 18px 18px 20px; background: rgba(244,242,238,.95); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 0 6px 0 var(--ink);
  opacity: 0; transform: translate3d(0, -60px, 0) rotate(-3deg); transition: opacity .3s, transform .8s var(--click), box-shadow .3s; transition-delay: calc(var(--i, 0) * 120ms + .2s); pointer-events: auto; }
.svc__i::before { content: ""; position: absolute; top: -9px; left: 16px; width: 30px; height: 9px; background: var(--c); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; box-shadow: 42px 0 0 -1.5px var(--c), 42px 0 0 0 var(--ink); }
.svc__i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.is-live .svc__i { opacity: 1; transform: none; }
.svc__i:hover { box-shadow: 0 10px 0 var(--c); }
.svc__i span { color: var(--mute); }
.svc__i h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; margin: 10px 0 6px; line-height: 1; }
.svc__i p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ── polaroids ──────────────────────────────────────────── */
.polas { position: absolute; top: calc(var(--top) + 10px); right: calc(var(--gut) + 30px); display: flex; gap: 0; }
.pola { margin: 0 0 0 -30px; width: clamp(150px, 14vw, 210px); padding: 9px 9px 0; background: #fbfaf8; box-shadow: 0 16px 30px rgba(26,26,26,.25), 0 0 0 1px rgba(26,26,26,.08);
  transform: translate3d(0, -40vh, 0) rotate(calc(var(--r) * 3)); transition: transform 1s var(--click); transition-delay: calc(var(--i) * 150ms + .2s); }
.is-live .pola { transform: rotate(var(--r)); }
.pola span { display: block; aspect-ratio: 1; background-size: 340% auto; background-position: var(--bp); background-color: var(--paper-2); }
.pola figcaption { font-family: var(--serif); font-style: italic; font-size: 18px; padding: 8px 2px 12px; }

/* ── method steps ───────────────────────────────────────── */
.steps { position: absolute; right: calc(var(--gut) + 18px); top: calc(var(--top) + 6px); width: min(400px, 30vw); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: start; padding: 14px 14px 14px 12px; background: rgba(244,242,238,.94); border: 1.5px solid var(--ink); border-radius: 4px;
  opacity: 0; transform: translate3d(40px, 0, 0); transition: opacity .4s, transform .7s var(--click), background .35s, color .35s, box-shadow .35s; transition-delay: calc(var(--i, 0) * 100ms + .2s); }
.is-live .steps li { opacity: .62; transform: none; }
.steps li.is-on { opacity: 1; background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); transform: translate3d(-12px, 0, 0); transition-delay: 0s; }
[data-mode="video"] .is-live .steps li { opacity: 1; }
.steps__n { font-family: var(--disp); font-size: 26px; line-height: 1; color: var(--red); }
.steps h3 { font-family: var(--disp); font-weight: 400; font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.steps p { margin: 0; font-size: 13.5px; line-height: 1.45; opacity: .82; }
.steps__t { color: inherit; opacity: .6; }

/* ── the burst ──────────────────────────────────────────── */
.burst { --k: max(var(--t), calc(var(--t) * -1)); display: flex; font-family: var(--disp); font-weight: 400; font-size: clamp(44px, 10.5vw, 190px); letter-spacing: -.04em; line-height: 1; margin: 0; }
.burst span { display: inline-block; color: var(--ink);
  transform: translate3d(calc(var(--dx) * 1vw * var(--k) * 1.3), calc(var(--dy) * 1vh * var(--k) * 1.3), 0) rotate(calc(var(--r) * 1deg * var(--k) * 1.6)); }
.burst span:nth-child(4n+1) { color: var(--red); } .burst span:nth-child(4n+2) { color: var(--blue); }
.burst span:nth-child(4n+3) { color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); } .burst span:nth-child(4n) { color: var(--green); }
.burst__sub { font-size: clamp(20px, 2.4vw, 36px); margin: 18px 0 8px; font-family: var(--disp); letter-spacing: -.02em; }
.burst__sub em { color: var(--red); font-size: 1.15em; }
.burst__meta { color: var(--ink-2); padding: 6px 10px; background: rgba(244,242,238,.9); border: 1.5px solid var(--ink); }
[data-mode="video"] .beat--break.is-live .burst span { animation: burstIn 1.3s var(--click) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes burstIn { from { transform: translate3d(calc(var(--dx) * 1.6vw), calc(var(--dy) * 1.6vh), 0) rotate(calc(var(--r) * 2deg)); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }

/* ── the city ───────────────────────────────────────────── */
.beat--city .z--tl { max-width: min(24vw, 360px); }
.beat--city .h2 { font-size: clamp(28px, 3vw, 48px); }
.elev { position: absolute; left: calc(var(--gut) - 4px); top: 48vh; bottom: 16vh; display: none; flex-direction: column; justify-content: space-between; border-right: 1.5px solid var(--ink); padding-right: 8px; color: var(--ink-2); }
.tip { --x: 50; --y: 50; position: absolute; left: calc(50% + (var(--x) - 50) * 1% * var(--kx)); top: calc(50% + (var(--y) - 50) * 1% * var(--ky)); width: 0; height: 0; }
.tip i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-3); border: 2.5px solid var(--ink); transform: scale(0); transition: transform .6s var(--click) calc(var(--d) + .1s); }
.tip i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--paper-3); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.tip::before { content: ""; position: absolute; left: 0; bottom: 6px; height: var(--len, 70px); border-left: 2px dotted var(--ink); transform-origin: 50% 100%; transform: scaleY(0); transition: transform .6s var(--ease) calc(var(--d) + .3s); }
.tip span { position: absolute; bottom: calc(var(--len, 70px) + 6px); left: -12px; white-space: nowrap; padding: 7px 10px; background: var(--ink); color: var(--paper); border-radius: 3px; opacity: 0; transform: translateY(10px); transition: opacity .4s calc(var(--d) + .6s), transform .6s var(--click) calc(var(--d) + .6s); }
.tip span b { color: var(--yellow); font-weight: 500; }
.is-live .tip i { transform: scale(1); } .is-live .tip::before { transform: scaleY(1); } .is-live .tip span { opacity: 1; transform: none; }
.tip--a { --x: 38; --y: 26; --d: .1s; --len: 60px; }
.tip--b { --x: 50; --y: 26; --d: .3s; --len: 104px; }
.tip--b span { left: 14px; }
.tip--c { --x: 75.5; --y: 44; --d: .5s; --len: 110px; }
.tip--c span { left: auto; right: -12px; }

/* ── awards ─────────────────────────────────────────────── */
.beat--tower .z--bl { flex-direction: row; align-items: flex-end; gap: 24px; max-width: none; }
.awards { list-style: none; margin: 0; padding: 0; width: min(400px, 34vw); border-top: 1.5px solid var(--ink); text-align: left; }
.awards li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 6px 11px 0; border-bottom: 1.5px solid var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .2s); background: rgba(233,230,225,.6); }
.is-live .awards li { clip-path: inset(0); }
.awards b { font-weight: 600; font-size: 15px; } .awards em { color: var(--red); font-size: 18px; } .awards span { color: var(--mute); }
.stamp--flat { width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: grid; place-content: center; text-align: center; gap: 2px; transform: rotate(-14deg) scale(1.8); opacity: 0; transition: transform .5s var(--click) .8s, opacity .2s .8s; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--red); }
.stamp--flat b { font-family: var(--disp); font-size: 26px; background: none; width: auto; height: auto; color: var(--red); box-shadow: none; }
.stamp--flat span { font-size: 8.5px; }
.is-live .stamp--flat { opacity: 1; transform: rotate(-14deg); }

/* ── end ────────────────────────────────────────────────── */
.barcode { width: 190px; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.barcode--sm { width: 120px; height: 28px; }
.barcode__n { margin-top: 6px; color: var(--ink-2); }
.beat--end .z--br { align-items: flex-end; }

/* ── below the film ─────────────────────────────────────── */
.after { position: relative; z-index: 30; background: var(--paper); }
.marquee { overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--yellow); padding: 14px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--disp); font-size: clamp(34px, 6vw, 84px); line-height: 1; letter-spacing: -.03em; padding: 0 .35em; white-space: nowrap; }
.marquee__track em { color: var(--red); }
.marquee__track i { align-self: center; width: .8em; height: .42em; font-size: clamp(34px, 6vw, 84px); background: var(--red); border-radius: 3px; position: relative; flex: none; box-shadow: inset 0 -.06em 0 rgba(0,0,0,.2); }
.marquee__track i::before, .marquee__track i::after { content: ""; position: absolute; top: -.1em; width: .2em; height: .1em; background: var(--red); border-radius: 2px 2px 0 0; }
.marquee__track i::before { left: .1em; } .marquee__track i::after { right: .1em; }

.sec { position: relative; padding: clamp(80px, 12vw, 160px) var(--gut); }
.sec__head { display: grid; gap: 4px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head .h1 { max-width: 16ch; }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .kicker { color: rgba(233,230,225,.7); } .sec--ink .kicker::before { border-color: var(--paper); }

/* reveal-on-enter for the static sections (motion.js adds .is-live) */
.sec__head .kicker, .filters, .addr { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease) .2s, transform .8s var(--ease) .2s; }
.sec__head.is-live .kicker, .sec__head.is-live .filters, .sec__head.is-live .addr { opacity: 1; transform: none; }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 100px; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s, transform .4s var(--click); }
.chip:hover { transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; perspective: 1200px; }
.grid__count { margin-top: 22px; color: var(--mute); }
.pj { position: relative; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper-3); overflow: hidden; cursor: pointer; box-shadow: 0 6px 0 var(--ink);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s, opacity .4s; animation: pjIn .8s var(--click) backwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes pjIn { from { opacity: 0; transform: translateY(60px) rotate(-2deg); } }
.pj:hover { box-shadow: 0 10px 0 var(--c); }
.pj__art { position: relative; aspect-ratio: 4 / 3; background-color: #f7f6f3;
  background-image: linear-gradient(rgba(31,79,160,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(31,79,160,.12) 1px, transparent 1px); background-size: 18px 18px; border-bottom: 1.5px solid var(--ink); }
.pj__art svg { position: absolute; inset: 10% 8% 0; width: 84%; height: 90%; }
.pj__art svg .b { fill: var(--c); stroke: var(--ink); stroke-width: 1.4; }
.pj__art svg .win { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; }
.pj__art svg .g { stroke: var(--ink); stroke-width: 1.4; }
.pj__art svg rect.b, .pj__art svg path.b { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--click); transition-delay: calc(var(--j) * 40ms); }
.pj:hover .pj__art svg .b { transform: translateY(-6px); }
.pj__meta { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: var(--ink-2); }
.pj__body { padding: 16px 18px 18px; }
.pj__body h3 { font-family: var(--disp); font-weight: 400; font-size: 24px; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.pj__body p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.pj__reveal { position: absolute; inset: 0; background: var(--ink); color: var(--paper); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; clip-path: circle(0 at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s var(--ease); }
.pj:hover .pj__reveal, .pj:focus-visible .pj__reveal { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.pj__reveal h3 { font-family: var(--disp); font-weight: 400; font-size: 28px; margin: 0; line-height: 1; }
.pj__reveal p { margin: 0; font-size: 14.5px; color: rgba(233,230,225,.8); }
.pj__reveal dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid rgba(233,230,225,.25); padding-top: 12px; }
.pj__reveal dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,230,225,.55); }
.pj__reveal dd { margin: 3px 0 0; font-family: var(--disp); font-size: 20px; color: var(--c2, var(--yellow)); }
.pj.is-out { display: none; }

/* configurator */
.cfg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cfg__form { display: grid; gap: 30px; }
.cfg fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 14px; color: rgba(233,230,225,.7); padding: 0; }
.cfg legend output { color: var(--yellow); font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 13px 18px; border: 1.5px solid rgba(233,230,225,.5); border-radius: 6px; font-weight: 500; transition: background .3s, color .3s, transform .45s var(--click), box-shadow .3s; }
.seg label:hover span { border-color: var(--paper); }
.seg input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 4px 0 var(--red); transform: translateY(-3px); }
.seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--fill, 20%), rgba(233,230,225,.2) 0); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--fill, 20%), rgba(233,230,225,.2) 0); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 22px; margin-top: -7px; border-radius: 3px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 18px; border-radius: 3px; background: var(--yellow); border: 2px solid var(--ink); }
.range__ticks { display: flex; justify-content: space-between; margin-top: 8px; color: rgba(233,230,225,.5); }
.cfg__out { position: relative; padding: 26px; border: 1.5px solid var(--paper); border-radius: 8px; background: #232220; box-shadow: 8px 8px 0 var(--red); display: grid; gap: 20px; }
.cfg__fee span { color: rgba(233,230,225,.6); }
.cfg__fee b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; margin: 8px 0 6px; font-variant-numeric: tabular-nums; color: var(--paper); }
.cfg__fee b.is-bump { animation: bump .45s var(--click); }
@keyframes bump { 30% { transform: translateY(-6px) scale(1.03); color: var(--yellow); } }
.cfg__fee small { color: rgba(233,230,225,.5); }
.cfg__nums { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid rgba(233,230,225,.2); padding-top: 16px; }
.cfg__nums dt { color: rgba(233,230,225,.55); font-size: 9.5px; }
.cfg__nums dd { margin: 4px 0 0; font-family: var(--disp); font-size: clamp(20px, 2vw, 28px); font-variant-numeric: tabular-nums; }
.cfg__pile { display: flex; flex-wrap: wrap-reverse; gap: 7px 3px; min-height: 96px; align-content: flex-start; padding-top: 6px; }
.cfg__pile i { position: relative; width: 22px; height: 11px; border-radius: 2px; background: var(--c); animation: drop .55s var(--click) both; animation-delay: calc(var(--i) * 12ms); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.cfg__pile i::before, .cfg__pile i::after { content: ""; position: absolute; top: -3px; width: 6px; height: 3px; background: inherit; border-radius: 1px 1px 0 0; }
.cfg__pile i::before { left: 3px; } .cfg__pile i::after { right: 3px; }
@keyframes drop { from { transform: translateY(-70px) rotate(-20deg); opacity: 0; } 50% { opacity: 1; } }

/* FAQ */
.sec--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 1.5px solid var(--ink); }
.faq__i { border-bottom: 1.5px solid var(--ink); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; }
.faq__q:hover span { color: var(--red); }
.faq__q i { position: relative; flex: none; width: 34px; height: 20px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper-3); transition: background .3s, transform .5s var(--click); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .45s var(--click); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i { background: var(--red); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] i::before, .faq__q[aria-expanded="true"] i::after { background: #fff; }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0 0 22px; max-width: 60ch; color: var(--ink-2); }
.faq__i.is-open .faq__a { grid-template-rows: 1fr; }

/* contact */
.sec--contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; background: var(--paper-2); }
.addr { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.addr b { display: inline-block; min-width: 110px; color: var(--ink); }
.form { position: relative; display: grid; gap: 18px; padding: clamp(20px, 3vw, 34px); background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld span { color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; font-size: 15px; transition: box-shadow .25s, border-color .25s; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; box-shadow: 0 4px 0 var(--red); }
.fld.is-bad input, .fld.is-bad select, .fld.is-bad textarea { border-color: var(--red); background: #fff4f3; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fld__err { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--red); min-height: 1em; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__brief { color: var(--mute); margin: 0; max-width: 40ch; line-height: 1.6; }
.form__ok { position: absolute; inset: 0; z-index: 2; border-radius: 7px; background: var(--red); color: #fff; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px; animation: okIn .7s var(--ease) both; }
.form__ok[hidden] { display: none; }
@keyframes okIn { from { clip-path: circle(0 at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }
.form__ok h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 4vw, 54px); margin: 6px 0 0; letter-spacing: -.03em; }
.form__ok p { margin: 0; max-width: 34ch; }
.form__ok .btn { margin-top: 10px; }
.form__okBrick { position: relative; width: 70px; height: 32px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; animation: okBrick .9s var(--click) .2s both; }
.form__okBrick i { position: absolute; top: -10px; width: 18px; height: 10px; background: var(--yellow); border: 2px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; }
.form__okBrick i:first-child { left: 8px; } .form__okBrick i:last-child { right: 8px; }
@keyframes okBrick { from { transform: translateY(-120px) rotate(-30deg); } }

/* footer */
.foot { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px) var(--gut) 90px; overflow: hidden; }
.foot__word { font-family: var(--disp); font-size: clamp(48px, 13.4vw, 260px); line-height: .9; letter-spacing: -.04em; text-align: center; white-space: nowrap;
  background: radial-gradient(circle, var(--red) 0 38%, transparent 42%) 0 0 / clamp(6px, .9vw, 14px) clamp(6px, .9vw, 14px); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(179,18,27,.55); animation: studs 10s linear infinite; }
@keyframes studs { to { background-position: 180px 0; } }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 28px; margin-top: clamp(30px, 5vw, 70px); border-top: 1px solid rgba(233,230,225,.2); padding-top: 30px; }
.foot__cols > div { display: grid; gap: 8px; align-content: start; }
.foot__cols .mono { color: rgba(233,230,225,.5); margin-bottom: 4px; }
.foot__cols a { text-decoration: none; font-size: 15px; } .foot__cols a:hover { color: var(--yellow); }
.foot__bar { justify-items: end; text-align: right; }
.foot__bar .barcode { background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 8px, var(--paper) 8px 11px, transparent 11px 12px); }

/* ── stud cursor ────────────────────────────────────────── */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .pj { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cur--ring { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: width .35s var(--click), height .35s var(--click), background .3s, border-color .3s; }
.cur--ring::before { content: ""; width: 60%; height: 60%; border-radius: 50%; border: 1.5px dashed rgba(26,26,26,.5); transition: opacity .3s; animation: spin 6s linear infinite; }
.cur--ring.is-on { width: 54px; height: 54px; background: rgba(245,178,30,.35); border-color: var(--ink); }
.cur--ring.is-lg { width: 76px; height: 76px; background: var(--yellow); }
.cur--ring.is-lg::before { opacity: 0; }
.cur--ring.is-down { width: 26px; height: 26px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { position: absolute; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* ── responsive ─────────────────────────────────────────── */
@media (min-width: 1100px) { .elev { display: flex; } }
@media (max-width: 1100px) {
  .chrome__nav { display: none; }
  .steps { width: min(360px, 38vw); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .beat--kit .z--tl { max-width: 50vw; }
}
@media (max-width: 760px) {
  :root { --top: 76px; --bot: 96px; }
  .chrome { gap: 10px; padding: 10px 16px; }
  .chrome__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .chrome .bswitch { order: 2; }
  .chrome .bswitch .bswitch__k { display: none; }
  .mark__word { font-size: 17px; }
  .hud__side, .hud__par, .hud__scale, .hud__br--tl, .hud__br--tr { display: none; }
  .hud__tc { display: none; }
  .burger { order: 3; }
  .dock { left: 12px; right: 12px; bottom: 14px; transform: none; justify-content: space-between; padding: 7px 8px 7px 14px; gap: 10px; }
  .dock:hover { transform: none; }
  .dock__ch { min-width: 0; }
  .dock__ch em { font-size: 15px; margin-left: 6px; }
  .dock .bswitch__k { display: none; }

  /* both layouts: top zone and bottom zone, subject in the middle */
  .lay { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: var(--top) 16px var(--bot); }
  .z, .svc, .steps, .polas { position: relative; inset: auto; max-width: 100%; width: 100%; }
  .z--tr, .z--br { align-items: flex-start; text-align: left; right: auto; }
  .mega { font-size: 11.4vw; }
  .mega--end { font-size: 12vw; }
  .h2 { font-size: 8.4vw; }
  .h2--xl { font-size: 17vw; }
  .lede { font-size: 14.5px; margin-top: 10px; }
  .row { gap: 10px; margin-top: 14px; }
  .btn--lg { padding: 13px 16px; font-size: 11px; }
  .card { padding: 16px 16px 18px; }
  .stamp--spin { display: none; }
  .beat--hero .z--br { align-items: flex-start; }
  .beat--hero .lay, .beat--end .lay { justify-content: flex-start; }
  .beat--hero .z--bl, .beat--end .z--bl { margin-top: auto; }
  .callout__lead { width: 48px; }
  .callout__lbl { left: 92px; font-size: 9px; }
  .callout--one .callout__lbl, .callout--idea .callout__lbl { left: 50%; right: auto; top: 44px; text-align: center; transform: translateX(-50%); }
  .is-live .callout__lbl { transform: translateX(-50%); }
  .callout--one .callout__lead, .callout--idea .callout__lead { display: none; }
  .bp { width: 100%; max-width: 280px; }
  .beat--one .z--br { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px; }
  .stats b { font-size: 28px; }
  .stats--row { grid-template-columns: repeat(3, auto); }
  .svc { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc__i { padding: 12px 12px 12px; }
  .svc__i p { display: none; }
  .svc__i h3 { font-size: 16px; margin: 6px 0 0; }
  .beat--kit .z--tl { max-width: 100%; }
  .polas { display: none; }
  .steps { gap: 6px; }
  .steps li { grid-template-columns: 34px 1fr; padding: 10px; }
  .steps li p { display: none; }
  .steps__t { display: none; }
  .steps__n { font-size: 20px; }
  .steps h3 { font-size: 16px; margin: 0; }
  .beat--city .z--tl { max-width: 100%; }
  .beat--city .lede { display: none; }
  .tip { display: none; }
  .awards { min-width: 0; width: 100%; }
  .awards li { grid-template-columns: 40px 1fr auto; padding: 8px 0; }
  .awards b { font-size: 13.5px; }
  .stamp--flat { display: none; }
  .beat--tower .z--bl { width: 100%; }
  .barcode { width: 130px; height: 30px; }
  [data-mode="video"] .beat::before { display: none; }
  /* scrub: fewer elements so the fixed viewport never overflows */
  [data-mode="scrub"] .beat--walk .steps li:not(.is-on) { display: none; }
  [data-mode="scrub"] .beat--walk .steps li.is-on { transform: none; }
  [data-mode="scrub"] .beat--rain .stats li:nth-child(n+3) { display: none; }

  .cfg, .sec--split, .sec--contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__bar { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .cfg__nums { grid-template-columns: 1fr 1fr 1fr; }
  .seg span { padding: 11px 13px; font-size: 14px; }
}

/* ── reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .burst span { transform: none !important; }
  html { scroll-behavior: auto; }
}
