/* ───────────────────────────────────────────────────────────
   LOAMWISE — riso print shop over a linocut meadow.
   Two plates (ink + orange) that never quite register,
   paper grain on everything, rubber-stamp UI.
   ─────────────────────────────────────────────────────────── */

:root {
  --ink: #16213a;
  --ink-2: rgba(22,33,58,.66);
  --cream: #f1ddbf;
  --paper: #efdbbd;
  --paper-2: #e3d1b0;
  --paper-3: #d8c39e;
  --sky: #1b91b3;
  --sky-d: #0a668b;
  --orange: #eb7e38;
  --orange-2: #f28737;
  --green: #637452;
  --night: #060a2d;
  --plum: #613d38;

  --serif: "Fraunces", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.2,.8,.2,1);
  --snap: cubic-bezier(.7,0,.2,1);
  --gut: clamp(16px, 3vw, 40px);
  --scroll-length: 1150vh;
  --mis: .045em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.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: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.55; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--orange); outline-offset: 3px; }

/* ── film + grain ───────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--sky); 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: linear-gradient(180deg, rgba(239,219,189,0) 40%, rgba(239,219,189,.22)); }
[data-mode="video"] .film__veil { opacity: 1; }

.grain { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09  0 0 0 0 .13  0 0 0 0 .23  0 0 0 1.6 -.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 250; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 18px; transition: clip-path .9s var(--snap) .1s, visibility 0s 1s; clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__ring { position: relative; width: 96px; height: 96px; }
.loader__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: var(--paper-3); stroke-width: 3; }
.loader__fill { stroke: var(--orange) !important; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s; }
.loader__sun { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--sky); box-shadow: 4px 3px 0 var(--orange); animation: bob 1.6s ease-in-out infinite; }
.loader__mark { font-family: var(--serif); font-weight: 900; font-size: 34px; letter-spacing: .02em; text-shadow: 3px 2px 0 var(--orange); font-variation-settings: "SOFT" 100; }
.loader__meta { color: var(--ink-2); }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ── mode-switch plates ─────────────────────────────────── */
.plates { position: fixed; inset: 0; z-index: 190; pointer-events: none; overflow: hidden; }
.plate { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .42s var(--snap); }
.plate--o { background: var(--orange); transition-delay: .06s; }
.plate--b { background: var(--sky); transition-delay: .12s; }
.plate--c { background: var(--paper); transition-delay: .18s;
  background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(99,116,82,.22) 46px 70px); }
:root.is-switching .plate { transform: scaleY(1); transform-origin: 50% 0%; transition-duration: .24s; }
:root.is-switching .plate--o { transition-delay: 0s; }
:root.is-switching .plate--b { transition-delay: .03s; }
:root.is-switching .plate--c { transition-delay: .06s; }
.plates__stamp { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--ink); text-align: center; transform: scale(2.2) rotate(-40deg); opacity: 0; transition: transform .3s var(--snap), opacity .25s; }
.plates__stamp::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed var(--ink); }
.plates__stamp b { font-family: var(--serif); font-weight: 900; font-size: 64px; line-height: .9; text-shadow: 4px 3px 0 var(--orange); }
:root.is-switching .plates__stamp { transform: scale(1) rotate(-12deg); opacity: 1; transition-delay: .12s; }

/* ── HUD ────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; color: var(--cream); transition: color .5s; }
:root.is-light .hud { color: var(--ink); }
.hud__br { position: absolute; width: 18px; height: 18px; border: 0 solid currentColor; opacity: .8; }
.hud__br--tl { left: 14px; top: 76px; border-width: 1.5px 0 0 1.5px; }
.hud__br--tr { right: 14px; top: 76px; border-width: 1.5px 1.5px 0 0; }
.hud__br--bl { left: 14px; bottom: 14px; border-width: 0 0 1.5px 1.5px; }
.hud__br--br { right: 14px; bottom: 14px; border-width: 0 1.5px 1.5px 0; }
.hud__side { position: absolute; top: 50%; display: flex; gap: 22px; font-size: 10px; white-space: nowrap; opacity: .85; }
.hud__side--l { left: 22px; transform-origin: 0 0; transform: rotate(-90deg) translate(-50%, 0) translateX(calc(var(--p, 0) * 120px)); }
.hud__side--r { right: 22px; transform-origin: 100% 0; transform: rotate(90deg) translate(50%, 0) translateX(calc(var(--p, 0) * -120px)); }
.hud__side b { font-weight: 500; }
.hud__fig { display: none; position: absolute; right: 40px; top: 86px; align-items: baseline; gap: 6px; }
.hud__fig b { font-family: var(--serif); font-weight: 800; font-size: 30px; letter-spacing: 0; }
[data-mode="video"] .hud { color: var(--ink); }
[data-mode="video"] .hud__side span, [data-mode="video"] .hud__fig { background: var(--paper); padding: 1px 6px; }

/* ── header ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 var(--gut); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--paper); padding: 5px 14px 5px 7px; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--orange); }
.mark__glyph { width: 30px; height: 30px; }
.g-o { fill: var(--orange); } .g-b { fill: var(--sky); mix-blend-mode: multiply; } .g-i { fill: var(--ink); } .g-l { stroke: var(--ink); stroke-width: 2; fill: none; }
.mark__txt { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: .03em; font-variation-settings: "SOFT" 100; }
.chrome__nav { display: flex; gap: 2px; margin-left: auto; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.chrome__nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 6px 13px; border-radius: 999px; transition: background .3s, color .3s; }
.chrome__nav a:hover { background: var(--ink); color: var(--cream); }

/* the switch — sun knob becomes a moon */
.switch { --mag: translate(0,0); transform: var(--mag); display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--sky); transition: box-shadow .3s; }
.switch:hover { box-shadow: 5px 4px 0 var(--sky); }
.switch__txt { font-size: 10.5px; }
.switch__track { position: relative; width: 58px; height: 28px; border-radius: 999px; background: var(--sky); border: 1.5px solid var(--ink); overflow: hidden; transition: background .5s var(--ease); }
.switch__track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(22,33,58,.16) 5px 6px); }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; z-index: 1; transform: translateX(30px); transition: transform .55s cubic-bezier(.5,1.6,.4,1); }
.switch__sun, .switch__moon { position: absolute; inset: 0; border-radius: 50%; transition: transform .55s var(--ease), opacity .3s; }
.switch__sun { background: var(--cream); box-shadow: 2px 1px 0 var(--orange), 0 0 0 3px rgba(241,221,191,.35); }
.switch__moon { background: var(--cream); opacity: 0; transform: scale(.4);
  -webkit-mask: radial-gradient(circle at 70% 35%, transparent 44%, #000 46%); mask: radial-gradient(circle at 70% 35%, transparent 44%, #000 46%); }
.switch[aria-checked="false"] .switch__track { background: var(--night); }
.switch[aria-checked="false"] .switch__knob { transform: translateX(0); }
.switch[aria-checked="false"] .switch__sun { opacity: 0; transform: scale(.3) rotate(90deg); }
.switch[aria-checked="false"] .switch__moon { opacity: 1; transform: none; }
.switch__roll, .dock__roll { position: relative; display: inline-block; height: 1.55em; overflow: hidden; width: 3.2ch; font-weight: 500; }
.switch__roll span, .dock__roll span { display: block; transition: transform .5s var(--ease); }
[aria-checked="false"] > .switch__roll span, [aria-checked="false"] > .dock__roll span { transform: translateY(-100%); }

.tin { --mag: translate(0,0); transform: var(--mag); display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; background: var(--ink); color: var(--cream); border-radius: 999px; box-shadow: 3px 3px 0 var(--orange); }
.tin__n { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--mono); font-size: 12px; }
.tin.is-bump .tin__n { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45) rotate(-12deg); } }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.navPanel { position: fixed; z-index: 55; top: 0; left: 0; right: 0; padding: 84px var(--gut) 28px; background: var(--paper); border-bottom: 2px solid var(--ink); display: grid; gap: 4px; transform: translateY(-102%); transition: transform .6s var(--snap); }
.navPanel a { font-family: var(--serif); font-weight: 800; font-size: 34px; text-decoration: none; }
.navPanel.is-open { transform: none; }

/* ── dock ───────────────────────────────────────────────── */
.dock { --mag: translate(0,0); position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%) var(--mag); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; background: var(--ink); color: var(--cream); border-radius: 999px; box-shadow: 4px 4px 0 var(--orange); }
.dock__ink { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); position: relative; overflow: hidden; }
.dock__ink::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cream); transition: transform .6s var(--ease); }
.dock__ink::after { content: ""; position: absolute; inset: 0; border: 1.5px dashed var(--ink); border-radius: 50%; animation: spin 7s linear infinite; }
.dock[aria-checked="false"] .dock__ink { background: var(--sky-d); }
.dock[aria-checked="false"] .dock__ink::before { transform: translate(5px,-4px) scale(.8); }
.dock__txt { font-size: 11px; }
.dock__roll { color: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── chapter dial ───────────────────────────────────────── */
.dial { position: fixed; z-index: 45; left: calc(var(--gut) + 18px); bottom: 26px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.dial__face { position: relative; width: 86px; height: 86px; }
.dial__face svg { width: 100%; height: 100%; overflow: visible; }
.dial__rim { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.dial__q { stroke: var(--ink); stroke-width: .8; opacity: .35; transition: opacity .5s; }
.dial__q--day { fill: var(--sky); } .dial__q--dusk { fill: var(--orange); } .dial__q--night { fill: var(--night); } .dial__q--dawn { fill: var(--paper-3); }
.dial[data-sky="day"] .dial__q--day, .dial[data-sky="dusk"] .dial__q--dusk, .dial[data-sky="night"] .dial__q--night, .dial[data-sky="dawn"] .dial__q--dawn { opacity: 1; }
.dial__hub { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.dial__txt { font-family: var(--mono); font-size: 6.2px; letter-spacing: .1em; fill: var(--ink); }
.dial__hand { position: absolute; inset: 0; transform: rotate(var(--dial, 0deg)); transition: transform .12s linear; }
.dial__hand i { position: absolute; left: 50%; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); box-shadow: 2px 1px 0 var(--orange); }
.dial__n { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: 1px; }
.dial__n b { font-family: var(--serif); font-weight: 900; font-size: 25px; line-height: 1; }
.dial__n span { font-family: var(--mono); font-size: 9px; }
.dial__meta { display: grid; gap: 2px; background: var(--paper); border: 1.5px solid var(--ink); padding: 6px 10px; box-shadow: 3px 3px 0 var(--sky); }
.dial__name { font-weight: 500; color: var(--ink); }
.dial__sub { color: var(--ink-2); font-size: 10px; }
.dial.is-roll .dial__meta span, .dial.is-roll .dial__n b { animation: roll .6s var(--ease); }
@keyframes roll { 0% { transform: translateY(70%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* below the film the chrome steps back onto paper */
.hud, .dial { transition: opacity .5s var(--ease), transform .5s var(--ease), color .5s; }
:root.is-paper .hud, :root.is-paper .dial { opacity: 0; transform: translateY(12px); }
.dock { transition: left .6s var(--snap), box-shadow .3s; }
:root.is-paper .dock { left: calc(100% - 118px); }
@media (max-width: 760px) { :root.is-paper .dock { left: auto; } }

/* ── rail ───────────────────────────────────────────────── */
.rail { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(22,33,58,.18); }
.rail__fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, var(--ink) 10px 12px); transform-origin: 0 0; transform: scaleX(0); }
.rail__ticks i { position: absolute; top: -4px; width: 1.5px; height: 9px; background: var(--ink); }
[data-mode="video"] .rail__ticks { display: none; }

/* ── stage / modes ──────────────────────────────────────── */
.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; overflow: hidden; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
[data-mode="scrub"] .lay { position: absolute; inset: 0; }
[data-mode="scrub"] .beat:not(.is-live) .z { pointer-events: none !important; }
[data-mode="video"] .beats { position: relative; overflow-x: clip; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; }

.lay { padding: 104px calc(var(--gut) + 44px) 132px; display: grid; gap: 18px 48px;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "tl tr" "ml mr" "bl br"; }
.lay--centre { grid-template-columns: 1fr; grid-template-rows: 1fr; grid-template-areas: "c"; place-items: center; }
.z { min-width: 0; max-width: min(40ch, 100%); pointer-events: auto; color: var(--ink); position: relative; }
.z--tl, .z--tr { max-width: min(600px, 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--bl { grid-area: bl; align-self: end; justify-self: start; max-width: min(760px, 100%); }
.z--br { grid-area: br; align-self: end; justify-self: end; text-align: right; }
.z--c { grid-area: c; text-align: center; max-width: min(900px, 100%); display: grid; justify-items: center; gap: 18px; }
.z--tr .row, .z--br .row { justify-content: flex-end; }
.beat--hero .z--bl { padding-bottom: 36px; }
.beat--fin .z--bl, .beat--scatter .z--bl { padding-bottom: 36px; }

[data-mode="scrub"] .z--tl, [data-mode="scrub"] .z--bl { transform: translate3d(0, calc(var(--t, 0) * -18px), 0); }
[data-mode="scrub"] .z--tr, [data-mode="scrub"] .z--br { transform: translate3d(0, calc(var(--t, 0) * 18px), 0); }
[data-mode="scrub"] .z--c { transform: translate3d(0, calc(var(--t, 0) * -10px), 0) scale(calc(1 + var(--t, 0) * .02)); }

/* night beats: cream ink */
.beat--night .z { color: var(--cream); }
.beat--night .tag { color: rgba(241,221,191,.8); }
.beat--night .riso { text-shadow: var(--mis) calc(var(--mis) * .7) 0 var(--orange); }
.beat--night .riso em { color: var(--orange-2); }

/* video mode: every zone is a printed card */
[data-mode="video"] .beat .z { background: var(--paper); color: var(--ink); padding: 22px 24px; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--orange);
  clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) calc(var(--zi, 0) * 120ms + 80ms); }
[data-mode="video"] .beat .z:nth-child(2) { --zi: 1; box-shadow: 6px 6px 0 var(--sky); }
[data-mode="video"] .beat .z:nth-child(3) { --zi: 2; }
[data-mode="video"] .beat.is-in .z { clip-path: inset(-10px -10px -10px -10px); }
[data-mode="video"] .beat--night .tag { color: var(--ink-2); }
[data-mode="video"] .beat--night .riso { text-shadow: var(--mis) calc(var(--mis) * .7) 0 var(--orange); }
[data-mode="video"] .beat--night .riso em { color: var(--sky-d); }
[data-mode="video"] .beat .ticket { box-shadow: none; border: 0; padding: 0; background: none; }
[data-mode="video"] .halo { display: none; }

/* ── type ───────────────────────────────────────────────── */
.riso { text-shadow: var(--mis) calc(var(--mis) * .7) 0 rgba(235,126,56,.9); }
.display { font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 10.6vw, 176px); line-height: .86; letter-spacing: -.035em; margin: 0 0 18px; font-variation-settings: "SOFT" 100, "opsz" 144; }
.display--fin { font-size: clamp(54px, 8.4vw, 136px); max-width: 11ch; }
.shout { font-family: var(--serif); font-weight: 900; font-size: clamp(80px, 16vw, 260px); line-height: .82; letter-spacing: -.045em; margin: 0; font-variation-settings: "SOFT" 100, "opsz" 144; }
.shout--sm { font-size: clamp(52px, 8.6vw, 140px); max-width: 12ch; }
.h2 { font-family: var(--serif); font-weight: 850; font-size: clamp(42px, 5.6vw, 92px); line-height: .92; letter-spacing: -.03em; margin: 0 0 18px; font-variation-settings: "SOFT" 100, "opsz" 120; }
.h2 em, .display em { font-style: italic; font-weight: 500; color: var(--sky-d); }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; margin: 0 0 20px; max-width: 46ch; }
.manifesto { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; margin: 0; max-width: 20ch; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-2); }
.tag::before { content: ""; width: 18px; height: 0; border-top: 1.5px dotted currentColor; }
.z--tr .tag, .z--br .tag { flex-direction: row-reverse; }
.note { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* split text */
.ln { display: block; overflow: hidden; padding: 0 .08em .08em 0; margin-bottom: -.08em; }
.ln > i { display: block; font-style: inherit; transform: translate3d(0, 110%, 0) rotate(2deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease) calc(var(--li, 0) * 110ms + 80ms); }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .06em 0; margin: 0 -.06em -.06em 0; }
.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) * 38ms + 60ms); }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wd > i { display: inline-block; font-style: inherit; opacity: 0; transition: transform .9s var(--ease) calc(var(--wi, 0) * 28ms + 220ms), opacity .6s calc(var(--wi, 0) * 28ms + 220ms); }
.wd:nth-child(3n+1) > i { transform: translate3d(0, 105%, 0); }
.wd:nth-child(3n+2) > i { transform: translate3d(-50%, 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, .foot.is-in) :is(.ln, .ch, .wd) > i { transform: none; opacity: 1; }
/* riso plates drift into register as a heading lands */
.riso { transition: text-shadow 1.2s var(--ease) .3s; }
.beat:not(.is-live):not(.is-in) .riso, [data-reveal]:not(.is-in) .riso { text-shadow: .16em .1em 0 rgba(235,126,56,0); }

/* small bits */
.beat .tag, .beat .lede, .beat .row, .beat .note, .beat .cue, .beat .stats li, .beat .spec, .beat .bigstat, .beat .leader, .beat .ticket {
  opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 300ms); }
.beat .tag { clip-path: inset(0 100% 0 0); transform: none; transition: clip-path .9s var(--ease) .1s, opacity .3s .1s; }
.z--tr .tag, .z--br .tag { clip-path: inset(0 0 0 100%); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.tag, .lede, .row, .note, .cue, .stats li, .spec, .bigstat, .leader, .ticket) { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.beat .leader:nth-child(2) { --d: 1; } .beat .leader:nth-child(3) { --d: 2; }

/* scrub-mode readability over busy frames: paper slips behind ledes & stats */
[data-mode="scrub"] .beat:not(.beat--night) .lede, [data-mode="scrub"] .beat .note { background: rgba(239,219,189,.9); padding: 10px 14px; box-shadow: 3px 3px 0 rgba(22,33,58,.9); }
[data-mode="scrub"] .beat--night .lede { background: rgba(6,10,45,.55); padding: 10px 14px; }
[data-mode="scrub"] .beat .tag { background: var(--paper); padding: 3px 8px; color: var(--ink); }
[data-mode="scrub"] .beat--night .tag { background: var(--night); color: var(--cream); }

[data-mode="scrub"] .beat--geese .h2 { background: rgba(6,10,45,.72); padding: 8px 14px 12px; display: inline-block; box-shadow: 4px 4px 0 var(--orange); }
[data-mode="scrub"] .beat--geese .h2 em { color: var(--cream); }

/* buttons: rubber stamps */
.btn { --mag: translate(0,0); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 4px; transform: var(--mag); transition: box-shadow .3s var(--ease), background .3s, color .3s; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn { isolation: isolate; }
.btn:hover::after { transform: none; }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--orange); }
.btn--ink:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--sky); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--paper:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn--wide { width: 100%; }
.btn:active { box-shadow: 0 0 0 var(--ink); transform: var(--mag) translate(3px, 3px); }

/* ticket (beat 1) */
.ticket { display: inline-grid; gap: 6px; background: var(--paper); border: 1.5px solid var(--ink); padding: 14px 16px 12px; text-align: left; box-shadow: 5px 5px 0 var(--sky); transform-origin: 100% 0; }
.beat.is-live .ticket { animation: stampIn .8s var(--ease) .4s both; }
.ticket b { font-family: var(--serif); font-size: 26px; font-weight: 800; line-height: 1; }
@keyframes stampIn { 0% { transform: scale(1.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(.97) rotate(2deg); opacity: 1; } 100% { transform: rotate(2deg); } }
.barcode { display: block; height: 26px; width: 140px; 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); }

.cue { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); padding: 4px 10px; }
.cue i { width: 10px; height: 16px; border: 1.5px solid currentColor; border-radius: 6px; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 4px; margin-left: -1px; background: currentColor; animation: cue 1.6s infinite; }
@keyframes cue { 60% { transform: translateY(5px); opacity: 0; } }

.bigstat { display: inline-flex; align-items: flex-end; gap: 14px; text-align: left; }
.bigstat b { font-family: var(--serif); font-weight: 900; font-size: clamp(72px, 9vw, 150px); line-height: .8; letter-spacing: -.04em; text-shadow: .04em .03em 0 var(--sky); }
.beat--night .bigstat b { text-shadow: .04em .03em 0 var(--orange); }
.bigstat .mono { padding-bottom: 8px; }
[data-mode="scrub"] .beat:not(.beat--night) .bigstat .mono { background: var(--paper); padding: 4px 8px; margin-bottom: 6px; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; text-align: left; background: rgba(239,219,189,.92); border: 1.5px solid var(--ink); padding: 8px 14px; box-shadow: 4px 4px 0 var(--sky); }
.stats b { font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1; min-width: 2.6ch; }
.stats small { font-size: 16px; margin-left: 2px; }

.spec { margin: 0; display: grid; gap: 6px; background: rgba(239,219,189,.92); border: 1.5px solid var(--ink); padding: 12px 14px; min-width: 280px; box-shadow: 4px 4px 0 var(--ink); }
.spec div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--ink-2); padding-bottom: 4px; }
.spec div:last-child { border: 0; }
.spec dd { margin: 0; font-weight: 500; }

.leader { display: flex; align-items: baseline; gap: 10px; min-width: 280px; background: rgba(239,219,189,.92); padding: 5px 10px; margin-top: 6px; }
.leader i { flex: 1; border-bottom: 1.5px dotted currentColor; transform: translateY(-3px); }
.leader b { font-weight: 500; }

/* whiteout stamp */
.bigstamp { position: relative; width: min(300px, 62vw); aspect-ratio: 1; color: var(--orange); transform: rotate(-14deg) scale(1.6); opacity: 0; transition: transform .7s cubic-bezier(.5,1.7,.4,1) .15s, opacity .3s .15s; }
.bigstamp svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; }
.bigstamp text { fill: currentColor; stroke: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; }
.bigstamp b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 3vw, 34px); line-height: .95; color: var(--ink); text-shadow: 3px 2px 0 var(--orange); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .bigstamp { transform: rotate(-14deg) scale(1); opacity: 1; }

/* dusk halo pinned on the sun */
.halo { position: absolute; left: 50%; top: 50%; width: 36vmin; height: 36vmin; margin: -18vmin; border-radius: 50%; pointer-events: none; }
.halo::before, .halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--ink); opacity: .6; animation: spin 30s linear infinite; }
.halo::after { inset: -22%; border-style: dotted; opacity: .45; animation-duration: 50s; animation-direction: reverse; }
.halo__l { position: absolute; left: 100%; top: 12%; white-space: nowrap; padding-left: 26px; }
.halo__l::before { content: ""; position: absolute; left: -12px; top: 50%; width: 34px; border-top: 1.5px dotted currentColor; }
.beat.is-live .halo { animation: haloIn 1.2s var(--ease) both; }
@keyframes haloIn { 0% { transform: scale(.4); opacity: 0; } }
@keyframes slowspin { to { transform: rotate(346deg); } }

/* ── page (below the film) ──────────────────────────────── */
.page { position: relative; z-index: 30; background: var(--paper); border-top: 2px solid var(--ink); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: radial-gradient(circle at 7px 14px, var(--paper) 6px, transparent 6.5px) 0 0/14px 14px repeat-x; }

.marquee { overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--orange); padding: 14px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marq 36s linear infinite; transform: skewX(var(--skew, 0deg)); }
.marquee span { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; text-shadow: 3px 2px 0 var(--sky); white-space: nowrap; }
.marquee i { font-style: normal; font-size: 36px; align-self: center; color: var(--ink); }
.marquee__track { will-change: transform; }
@keyframes marq { to { translate: -50% 0; } }

.sec { position: relative; padding: clamp(80px, 11vw, 150px) var(--gut); max-width: 1380px; margin: 0 auto; }
.sec__head { max-width: 780px; margin-bottom: 42px; }
.sec + .sec { border-top: 1.5px dashed var(--ink-2); }
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* seeds */
.tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent; transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.chip:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--ink); }
.chip.is-on { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--orange); }
.chips--sm .chip { height: 34px; font-size: 13px; }
.field { display: inline-flex; align-items: center; gap: 10px; }
.field input, .field select { height: 40px; border: 1.5px solid var(--ink); background: var(--cream); padding: 0 14px; border-radius: 4px; min-width: 0; }
.field--search { flex: 1 1 220px; }
.field--search input { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); background: var(--cream); display: grid; place-items: center; margin: 0; flex: none; }
.check input:checked { background: var(--orange); }
.check input:checked::after { content: "✕"; font-size: 12px; color: var(--ink); }
.count { color: var(--ink-2); margin: 0 0 22px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.packet { --rx: 0deg; --ry: 0deg; position: relative; background: var(--cream); border: 1.5px solid var(--ink); padding: 0 0 16px; display: grid; gap: 10px; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s; box-shadow: 5px 5px 0 var(--ink); animation: packIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.packet:hover { box-shadow: 9px 9px 0 var(--orange); }
.packet::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -8px; height: 8px; background: radial-gradient(circle at 5px 8px, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, var(--cream) 6px) 0 0/10px 8px repeat-x; }
@keyframes packIn { 0% { opacity: 0; transform: translateY(24px) rotate(-2deg); } }
.packet__art { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--c1, var(--sky)); }
.packet__art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(22,33,58,.08) 14px 22px); }
.packet__art svg { position: relative; width: 108px; height: 108px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: none; }
.packet__art svg.off { position: absolute; stroke: var(--c2, var(--orange)); transform: translate(5px, 4px); stroke-width: 2.6; opacity: .9; }
.packet__art svg use { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms + 200ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.packet__no { position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; background: var(--cream); padding: 2px 6px; border: 1px solid var(--ink); }
.packet__days { position: absolute; top: 10px; right: 12px; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--cream); display: grid; place-content: center; text-align: center; font-family: var(--mono); font-size: 9px; line-height: 1.1; transform: rotate(8deg); }
.packet__days b { font-family: var(--serif); font-size: 18px; }
.packet__body { padding: 0 16px; display: grid; gap: 4px; }
.packet h3 { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.02; margin: 0; }
.packet p { margin: 0; font-size: 14px; color: var(--ink-2); }
.sow { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 8px; }
.sow i { height: 14px; border: 1px solid var(--ink-2); font-style: normal; font-family: var(--mono); font-size: 7.5px; display: grid; place-items: center; color: var(--ink-2); }
.sow i.on { background: var(--green); color: var(--cream); border-color: var(--green); }
.sow i.now { outline: 1.5px solid var(--orange); outline-offset: 1px; }
.packet__foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 0; }
.packet__price { font-family: var(--serif); font-weight: 800; font-size: 22px; }
.add { height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); transition: background .3s, color .3s; }
.add:hover { background: var(--ink); color: var(--cream); }
.add.is-added { background: var(--orange); }
.empty { padding: 40px 0; }

/* share configurator */
.config { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
.config__opts { display: grid; gap: 28px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 12px; color: var(--ink-2); }
.opt__row { display: grid; gap: 12px; }
.opt__row--3 { grid-template-columns: repeat(3, 1fr); }
.opt__row--2 { grid-template-columns: repeat(2, 1fr); }
.card-radio, .addon { position: relative; cursor: pointer; }
.card-radio input, .addon input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.card-radio > span { display: grid; gap: 4px; padding: 16px; border: 1.5px solid var(--ink); background: var(--cream); transition: transform .35s var(--ease), box-shadow .35s, background .3s; height: 100%; }
.card-radio b { font-family: var(--serif); font-size: 24px; font-weight: 800; }
.card-radio em { font-style: normal; color: var(--ink-2); font-size: 10px; }
.card-radio strong { font-family: var(--serif); font-size: 30px; font-weight: 900; margin-top: 8px; }
.card-radio input:checked + span { background: var(--sky); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px,-2px); }
.card-radio input:checked + span em { color: var(--ink); }
.card-radio input:focus-visible + span, .addon input:focus-visible + span, .seg input:focus-visible + span { outline: 2px dashed var(--orange); outline-offset: 3px; }
.addon > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ink); background: var(--cream); transition: background .3s, box-shadow .3s; }
.addon > span::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--ink); flex: none; order: -1; transition: background .3s; }
.addon b { flex: 1; font-weight: 500; }
.addon input:checked + span { background: var(--paper-2); box-shadow: 4px 4px 0 var(--orange); }
.addon input:checked + span::before { background: var(--orange); box-shadow: inset 0 0 0 3px var(--cream); }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--ink); background: var(--cream); padding: 4px; border-radius: 999px; }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 42px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: color .35s; text-align: center; padding: 0 8px; }
.seg input:checked + span { color: var(--cream); }
.seg__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); box-shadow: 3px 2px 0 var(--orange); width: var(--w, 33%); transform: translateX(var(--x, 0)); transition: transform .5s cubic-bezier(.5,1.4,.4,1), width .4s; }
.hint { margin: 10px 0 0; color: var(--ink-2); }
.range { display: grid; gap: 10px; margin-bottom: 14px; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; background: repeating-linear-gradient(90deg, var(--green) 0 12px, var(--paper-2) 12px 16px); border: 1.5px solid var(--ink); border-radius: 999px; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: grab; }
.range input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); }

.receipt { position: sticky; top: 90px; background: var(--cream); border: 1.5px solid var(--ink); padding: 20px; display: grid; gap: 16px; box-shadow: 8px 8px 0 var(--sky);
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) -8px 0/16px 100% repeat-x; mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) -8px 0/16px 100%; }
.receipt__head { display: flex; justify-content: space-between; border-bottom: 1.5px dashed var(--ink); padding-bottom: 10px; }
.crate { height: 90px; border: 1.5px solid var(--ink); position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, var(--paper-2) 0 22px, var(--paper-3) 22px 24px); }
.crate__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 4px; padding: 6px; }
.crate__fill span { width: 30px; height: 30px; animation: drop .6s cubic-bezier(.5,1.6,.4,1) both; }
.crate__fill svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 3; }
@keyframes drop { 0% { transform: translateY(-120px) rotate(-30deg); } }
.receipt__lines { margin: 0; display: grid; gap: 6px; }
.receipt__lines div { display: flex; justify-content: space-between; gap: 12px; }
.receipt__lines dd { margin: 0; text-align: right; font-weight: 500; }
.receipt__tot { display: grid; gap: 6px; border-top: 1.5px dashed var(--ink); padding-top: 12px; }
.receipt__tot div { display: flex; justify-content: space-between; align-items: baseline; }
.receipt__tot b { font-family: var(--serif); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.receipt__tot .is-big b { font-size: 44px; text-shadow: 3px 2px 0 var(--orange); }
.receipt__tot b.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: .2; } }
.receipt__ok { background: var(--green); color: var(--cream); padding: 10px 12px; margin: 0; animation: roll .6s var(--ease); }

/* soil ledger */
.ledger { background: var(--cream); border: 1.5px solid var(--ink); padding: clamp(16px, 3vw, 30px); box-shadow: 8px 8px 0 var(--green); }
.ledger__ctl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--ink); }
.tab { padding: 10px 16px; font-weight: 500; font-size: 14px; border-right: 1.5px solid var(--ink); transition: background .3s, color .3s; }
.tab:last-child { border-right: 0; }
.tab.is-on { background: var(--green); color: var(--cream); }
.chart { position: relative; }
#chart { width: 100%; height: auto; display: block; overflow: visible; }
#chart .grid-l { stroke: var(--ink); stroke-opacity: .18; stroke-dasharray: 2 4; }
#chart .ax { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
#chart .area { fill: var(--orange); opacity: .28; transition: opacity .4s; }
#chart .ln-o { fill: none; stroke: var(--orange); stroke-width: 5; transform: translate(4px, 3px); }
#chart .ln-i { fill: none; stroke: var(--ink); stroke-width: 2.6; }
#chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
#chart .pt { fill: var(--cream); stroke: var(--ink); stroke-width: 2; cursor: pointer; transition: r .2s; animation: packIn .5s var(--ease) both; }
#chart .pt:hover, #chart .pt.is-hot { r: 9; fill: var(--orange); }
.chart__tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--cream); padding: 6px 10px; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.kpi { border-top: 1.5px solid var(--ink); padding-top: 8px; display: grid; gap: 2px; }
.kpi b { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .kpi__u { font-size: clamp(20px, 2vw, 28px); }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.book { display: grid; gap: 24px; }
.cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.day { position: relative; display: grid; gap: 2px; padding: 10px 8px; border: 1.5px solid var(--ink); background: var(--cream); text-align: center; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day b { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; }
.day span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.day em { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--green); }
.day:hover { transform: translateY(-3px); }
.day:has(input:checked) { background: var(--orange); box-shadow: 4px 4px 0 var(--ink); }
.day:has(input:focus-visible) { outline: 2px dashed var(--sky-d); outline-offset: 3px; }
.day.is-full { opacity: .45; cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--cream) 0 6px, var(--paper-2) 6px 8px); }
.day.is-full em { color: var(--plum); }
.book__row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: end; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); height: 46px; background: var(--cream); }
.stepper button { width: 42px; height: 100%; font-size: 20px; }
.stepper button:hover { background: var(--ink); color: var(--cream); }
.stepper output { min-width: 34px; text-align: center; font-size: 15px; }
.field--txt { display: grid; gap: 6px; align-items: start; position: relative; }
.field--txt input { width: 100%; height: 46px; }
.field--txt input.is-bad { border-color: #b3402a; box-shadow: 3px 3px 0 #b3402a; }
.err { color: #b3402a; font-style: normal; min-height: 1.2em; font-size: 10px; }
.seg--slots span { height: 46px; }
.pass { position: sticky; top: 90px; display: grid; gap: 12px; }
.pass__card { position: relative; background: var(--cream); border: 1.5px solid var(--ink); padding: 16px; display: grid; gap: 12px; transform: rotate(2deg); box-shadow: 8px 8px 0 var(--orange); transition: transform .6s var(--ease); }
.pass:hover .pass__card { transform: rotate(0); }
.pass__top { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px dashed var(--ink); padding-bottom: 8px; }
.pass__top b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.pass__img { border: 1.5px solid var(--ink); overflow: hidden; aspect-ratio: 4/3; }
.pass__img img { width: 100%; height: 100%; object-fit: cover; }
.pass__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.pass__meta dt { color: var(--ink-2); font-size: 9.5px; }
.pass__meta dd { margin: 0; font-weight: 500; font-size: 12px; word-break: break-word; }
.pass__stamp { position: absolute; right: 18px; top: 46%; width: 130px; height: 130px; border-radius: 50%; border: 3px double #b3402a; color: #b3402a; display: grid; place-content: center; text-align: center; transform: rotate(-18deg) scale(2.2); opacity: 0; transition: transform .5s cubic-bezier(.5,1.8,.4,1), opacity .2s; }
.pass__stamp b { font-family: var(--serif); font-size: 28px; font-weight: 900; }
.pass__stamp span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; }
.pass.is-booked .pass__stamp { opacity: .92; transform: rotate(-18deg) scale(1); }
.pass__msg { margin: 0; color: var(--ink-2); }
.pass.is-booked .pass__msg { color: var(--green); }

/* prints */
.sec--prints { max-width: none; overflow: hidden; }
.prints { display: flex; justify-content: center; gap: clamp(10px, 2vw, 28px); flex-wrap: wrap; }
.print { --rx: 0deg; --ry: 0deg; margin: 0; width: clamp(150px, 17vw, 240px); background: var(--cream); padding: 10px 10px 34px; border: 1px solid rgba(22,33,58,.4); box-shadow: 0 16px 30px -18px rgba(22,33,58,.6); transform: perspective(800px) rotate(var(--r)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); position: relative; }
.print:hover { transform: perspective(800px) rotate(0deg) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px) scale(1.04); z-index: 2; }
.print::before { content: ""; position: absolute; left: 50%; top: -10px; width: 60px; height: 20px; margin-left: -30px; background: rgba(235,126,56,.6); transform: rotate(-4deg); }
.print img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.print figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 10px; }

/* faq */
.faq { display: grid; gap: 0; border-top: 1.5px solid var(--ink); max-width: 980px; }
.qa { border-bottom: 1.5px solid var(--ink); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 60px 1fr 40px; align-items: center; gap: 12px; padding: 22px 0; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 18px; transition: transform .5s var(--ease), background .3s; }
.qa[open] summary::after { transform: rotate(135deg); background: var(--orange); }
.qa summary:hover { color: var(--sky-d); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa__a > p { overflow: hidden; margin: 0; padding-left: 72px; max-width: 70ch; font-size: 17px; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { padding-bottom: 24px; }

/* footer */
.foot { position: relative; background: var(--ink); color: var(--cream); padding: 80px var(--gut) 90px; overflow: hidden; }
.foot__big { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 15.4vw, 270px); line-height: .8; letter-spacing: -.04em; white-space: nowrap; text-shadow: .035em .025em 0 var(--orange); font-variation-settings: "SOFT" 100, "opsz" 144; margin-bottom: 56px; text-align: center; }
.foot .tag { color: rgba(241,221,191,.7); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 36px; border-top: 1.5px dashed rgba(241,221,191,.4); padding-top: 32px; }
.foot__grid p { margin: 0; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot nav a { text-decoration: none; width: fit-content; background: linear-gradient(var(--orange), var(--orange)) 0 100%/0 2px no-repeat; transition: background-size .4s var(--ease); }
.foot nav a:hover { background-size: 100% 2px; }
.news { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-content: start; }
.news .tag { grid-column: 1 / -1; }
.news input { background: transparent; color: var(--cream); border-color: var(--cream); width: 100%; }
.news .err { grid-column: 1 / -1; }
.news .err.is-ok { color: var(--orange); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; color: rgba(241,221,191,.7); }
.foot__base a { text-decoration: none; }

/* drawer */
.drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); border-left: 2px solid var(--ink); padding: 22px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; transform: translateX(104%); transition: transform .6s var(--snap); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head h3 { margin: 0; font-size: 13px; }
.drawer__x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 22px; }
.drawer__list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 10px; align-content: start; }
.drawer__list li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; background: var(--cream); border: 1.5px solid var(--ink); padding: 8px; animation: roll .5s var(--ease); }
.drawer__list svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.4; background: var(--c1); }
.drawer__list b { font-family: var(--serif); font-size: 17px; }
.drawer__list button { width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; }
.drawer__list .emptyTin { grid-template-columns: 1fr; text-align: center; padding: 30px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.drawer__foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--ink); padding-top: 12px; }
.drawer__foot b { font-family: var(--serif); font-size: 32px; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(22,33,58,.4); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }

/* ── cursor ─────────────────────────────────────────────── */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--dot { width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--ink); box-shadow: 2px 1px 0 var(--orange); }
.cur--ring { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .3s, opacity .3s, border-color .3s; }
.cur--ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--orange); transform: translate(3px, 2px); opacity: .9; }
.cur--ring.is-on { width: 58px; height: 58px; background: rgba(235,126,56,.2); }
.cur--ring.is-lg { width: 84px; height: 84px; background: var(--orange); border-color: var(--ink); }
.cur--ring.is-lg::after { border-color: var(--sky); }
.cur--ring.is-down { width: 26px; height: 26px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
:root:not(.is-light)[data-mode="scrub"] .cur--ring:not(.is-lg) { border-color: var(--cream); }
:root:not(.is-light)[data-mode="scrub"] .cur--dot { background: var(--cream); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .chrome__nav { display: none; }
  .burger { display: block; }
  .config, .visit { grid-template-columns: 1fr; }
  .receipt, .pass { position: relative; top: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .news { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .chrome { gap: 8px; height: 60px; }
  .mark { padding: 4px 10px 4px 5px; }
  .mark__txt { font-size: 15px; }
  .mark__glyph { width: 24px; height: 24px; }
  .switch { height: 38px; padding: 0 5px 0 5px; gap: 6px; margin-left: auto; }
  .switch__txt { display: none; }
  .switch__roll { width: 3.4ch; }
  .tin { height: 38px; padding: 0 4px 0 10px; }
  .tin__l { display: none; }
  .burger { width: 38px; height: 38px; }
  .burger span:first-child { top: 14px; } .burger span:last-child { top: 21px; }
  .hud__side, .hud__fig { display: none; }
  .hud__br--tl, .hud__br--tr { top: 68px; }
  .lay { padding: 84px 20px 150px; gap: 12px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "tl" "tr" "." "bl" "br"; }
  .lay--centre { grid-template-rows: 1fr; grid-template-areas: "c"; }
  .z--tr, .z--br { justify-self: start; text-align: left; }
  .z--tr .row, .z--br .row { justify-content: flex-start; }
  .z--tr .tag, .z--br .tag { flex-direction: row; }
  .z--tr .tag, .z--br .tag { clip-path: inset(0 100% 0 0); }
  .display { font-size: clamp(56px, 17vw, 90px); }
  .shout { font-size: clamp(64px, 22vw, 120px); }
  .shout--sm { font-size: clamp(42px, 12vw, 64px); }
  .h2 { font-size: clamp(38px, 11vw, 56px); }
  .bigstat b { font-size: 72px; }
  .stats b { font-size: 34px; }
  .spec, .leader { min-width: 0; }
  .lede { font-size: 15px; }
  [data-mode="scrub"] .beat .h2, [data-mode="scrub"] .beat .display { background: rgba(239,219,189,.86); padding: 4px 8px 6px; }
  [data-mode="scrub"] .beat--night .h2, [data-mode="scrub"] .beat--night .shout { background: rgba(6,10,45,.6); }
  [data-mode="video"] .beat .z { padding: 16px; }
  .beat--hero .z--bl, .beat--fin .z--bl, .beat--scatter .z--bl { padding-bottom: 0; }
  .halo { width: 50vmin; height: 50vmin; margin: -25vmin; }
  .halo__l { display: none; }
  .dial { left: 12px; bottom: 16px; gap: 8px; }
  .dial__face { width: 62px; height: 62px; }
  .dial__n b { font-size: 19px; }
  .dial__meta { display: none; }
  .dock { left: auto; right: 12px; bottom: 16px; transform: var(--mag); height: 40px; padding: 0 12px 0 6px; }
  .dock__txt { font-size: 10px; }
  .opt__row--3 { grid-template-columns: 1fr; }
  .opt__row--2 { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(3, 1fr); }
  .book__row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .qa summary { grid-template-columns: 44px 1fr 36px; }
  .qa__a > p { padding-left: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 8px; font-size: 13px; }
  .seg span { font-size: 12.5px; padding: 0 4px; }
  .receipt { box-shadow: 5px 5px 0 var(--sky); }
}

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