/* =========================================================
   AV PORTFOLIO — V3
   "The wonderfully weird work of …"
   Sci-fi graphic design (Marathon) × game-show broadcast (THE FINALS)
   × hacker-collective chaos accents (Watch Dogs 2)
   × mixed-media title lettering (Gumball title card).
   ========================================================= */

:root {
  /* base */
  --void: #060607;
  --ink: #0c0c0d;
  --panel: #111215;
  --panel-2: #181a1e;
  --line: rgba(var(--fg-rgb), .14);
  --white: #f5f5f0;
  --bone: #ece6d9;
  --dim: #7d8088;
  /* accents — primary acid, broadcast red, glitch magenta/cyan, riso blue */
  --acid: #c8ff00;
  --red: #ff3b1f;
  --mag: #ff2bd6;
  --cyan: #22e4ff;
  --blue: #4152ff;
  --orange: #ff5a1f;
  --yellow: #ffd23f;
  /* theme tokens (light mode overrides them at the end of this file) */
  --on-acc: #060607;   /* text on bright fills (acid / cyan / yellow) — dark in both themes */
  --on-hot: #f5f5f0;   /* text on red / magenta fills — light in both themes */
  --on-acid: #060607;  /* text on the main accent fill (acid in dark, riso blue in light) */
  --acid-rgb: 200, 255, 0;
  --fg-rgb: 245, 245, 240;  /* page text colour as r,g,b (for see-through lines, grids, textures) */
  --bg-rgb: 6, 6, 7;        /* page background as r,g,b */
  --acid-fg: var(--acid); --cyan-fg: var(--cyan); --yellow-fg: var(--yellow); --mag-fg: var(--mag); /* accents used as TEXT */
  --hover-bg: #24272d;
  --slot-num: #3a3d44;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-cond: "Anton", "Impact", sans-serif;
  --f-ui: "Chakra Petch", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-pixel: "Silkscreen", "VT323", monospace;
  --f-term: "VT323", ui-monospace, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --pad-x: calc(var(--gutter) + 12px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --skew: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.reduce-motion { scroll-behavior: auto; }
body {
  margin: 0; background: var(--void); color: var(--white);
  font-family: var(--f-ui); font-size: 16px; line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
::selection { background: var(--acid); color: var(--on-acid); }
code { font-family: var(--f-mono); color: var(--acid-fg); }
.acid { color: var(--acid-fg); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.blink { animation: blink 1s steps(2) infinite; }
.blink-soft { animation: blink-soft 2.4s infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes blink-soft { 0%, 80%, 100% { opacity: 1; } 85%, 95% { opacity: .2; } }
@keyframes spin { to { transform: rotate(360deg); } }
html.has-xhair, html.has-xhair * { cursor: none !important; }

/* ---------- global layers ---------- */
.fx-scan { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.fx-scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22vh; top: -22vh;
  background: linear-gradient(transparent, rgba(var(--acid-rgb), .03), transparent);
  animation: roll 8s linear infinite;
}
@keyframes roll { to { transform: translateY(130vh); } }
.fx-noise {
  position: fixed; inset: -6%; z-index: 8999; pointer-events: none; opacity: .055; /* just big enough for the ±3 % jitter (was -50% = 4× the screen: ~19 MB of graphics memory) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noise .4s steps(3) infinite;
}
@keyframes noise { 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

/* HUD frame */
.hud { position: fixed; inset: 0; z-index: 700; pointer-events: none; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.hud__corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--acid); }
.hud__corner--tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.hud__corner--tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.hud__corner--bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.hud__corner--br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
.hud__side { position: absolute; top: 50%; white-space: nowrap; }
.hud__side--l { left: 14px; transform: translateY(-50%) rotate(-90deg) translateX(-50%); transform-origin: left top; }
.hud__side--r { right: 14px; transform: translateY(-50%) rotate(90deg) translateX(50%); transform-origin: right top; }
.hud__coords { position: absolute; left: 34px; bottom: 12px; }
.hud__scroll { position: absolute; right: 34px; bottom: 12px; color: var(--acid-fg); }
@media (max-width: 760px) { .hud__side { display: none; } }

/* crosshair cursor */
.xhair { position: fixed; inset: 0; z-index: 9700; /* above pop-ups + the admin window, below the theme stinger */ pointer-events: none; display: none; }
html.has-xhair .xhair { display: block; }
.xhair__h, .xhair__v { position: fixed; background: rgba(var(--acid-rgb), .16); }
.xhair__h { left: 0; right: 0; height: 1px; }
.xhair__v { top: 0; bottom: 0; width: 1px; }
.xhair__box {
  position: fixed; top: 0; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1.5px solid var(--acid);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), border-color .2s, background-color .2s, border-radius .3s;
}
.xhair__label {
  position: fixed; top: 0; left: 0; margin: 18px 0 0 18px; padding: 2px 6px;
  font: 700 10px var(--f-mono); letter-spacing: .1em; background: var(--acid); color: var(--on-acid);
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.xhair.is-target .xhair__box { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: var(--mag); background: rgba(255,43,214,.12); }
.xhair.is-target .xhair__label { opacity: 1; }
.xhair.is-sticker .xhair__box { border-radius: 50%; border-color: var(--yellow); background: rgba(255,210,63,.12); }
.xhair.is-down .xhair__box { width: 14px; height: 14px; margin: -7px 0 0 -7px; }

/* small UI atoms */
.lbl { font-family: var(--f-mono); font-size: 10px; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chip-skew, .btn-skew {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--acid); color: var(--on-acid); clip-path: var(--skew);
  transition: background-color .2s, color .2s, transform .3s var(--spring);
}
.btn-skew:hover { background: var(--mag); color: var(--on-hot); transform: translateY(-2px); }
.btn-skew--ghost { background: var(--panel-2); color: var(--white); }
.btn-skew--ghost:hover { background: var(--white); color: var(--void); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px var(--pad-x);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.nav-dither { position: absolute; left: 0; top: 0; width: 100%; height: 240%; z-index: -1; image-rendering: pixelated; pointer-events: none; }
.nav a { text-decoration: none; }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.nav__brand sup { font-family: var(--f-mono); font-size: 9px; padding: 1px 4px; background: var(--mag); color: var(--on-hot); vertical-align: top; }
.nav__dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid transparent; transition: border-color .2s, background-color .2s, color .2s; }
.nav__links a b { font-weight: 400; color: var(--acid-fg); font-size: 10px; }
.nav__links a:hover { background: var(--acid); color: var(--on-acid); }
.nav__links a:hover b { color: var(--on-acid); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__clock { color: var(--acid-fg); }
.nav__versions { display: inline-flex; border: 1px solid var(--line); }
.nav__versions a, .nav__versions span { padding: 5px 8px; font-size: 11px; }
.nav__versions a:hover { background: var(--white); color: var(--void); }
.nav__versions .is-current { background: var(--acid); color: var(--on-acid); font-weight: 700; }
@media (max-width: 1100px) { .nav__links a b, .nav__clock { display: none; } }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; padding: 12px var(--gutter); row-gap: 8px; }
  .nav__links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav__links a { padding: 4px 6px; }
  .nav__brand sup { display: none; }
  .nav__right { gap: 6px; }
  .nav__motion, .nav__versions a, .nav__versions span { padding: 4px 6px; font-size: 10px; }
  .hero { padding-top: 136px; }
}

/* ---------- phones + tablets: menu button + full-screen menu (app.js adds .is-burger) ---------- */
.nav__burger { display: none; }
.is-burger .nav { flex-wrap: nowrap; padding: 12px var(--gutter); }
.is-burger .nav__links, .is-burger .nav .nav__motion, .is-burger .nav__clock, .is-burger .nav__versions { display: none; }
.is-burger .hero { padding-top: 92px; }
.is-burger .nav__right { gap: 8px; }
.is-burger .nav__burger {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); background: rgba(var(--bg-rgb), .6); color: var(--white);
  font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav__burger-ico { position: relative; width: 18px; height: 12px; flex: none; }
.is-burger .nav__brand { min-width: 0; }
.is-burger .nav__right { flex: none; }
/* narrow phones: icon-only button, so the bar never overflows */
@media (max-width: 440px) {
  .is-burger .nav__burger { width: 38px; padding: 0; justify-content: center; }
  .nav__burger-txt { display: none; }
  .is-burger .nav__brand { font-size: 16px; }
}
.nav__burger-ico i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: top .25s var(--ease-out), transform .3s var(--spring), opacity .2s, right .25s; }
.nav__burger-ico i:nth-child(1) { top: 0; }
.nav__burger-ico i:nth-child(2) { top: 5px; right: 5px; }
.nav__burger-ico i:nth-child(3) { top: 10px; right: 9px; }
.menu-open .nav__burger { background: var(--acid); border-color: var(--acid); color: var(--on-acid); }
.menu-open .nav__burger-ico i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .nav__burger-ico i:nth-child(2) { opacity: 0; }
.menu-open .nav__burger-ico i:nth-child(3) { top: 5px; right: 0; transform: rotate(-45deg); }

.navmenu {
  position: fixed; inset: 0; z-index: 790; display: none; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 124px var(--gutter) max(26px, env(safe-area-inset-bottom)); overflow-y: auto;
  background: radial-gradient(circle, rgba(var(--acid-rgb), .09) 1px, transparent 1.6px) 0 0 / 14px 14px, var(--void);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .45s var(--ease-out), visibility 0s .45s;
}
.is-burger .navmenu { display: flex; }
.menu-open .navmenu { visibility: visible; clip-path: inset(0); transition: clip-path .45s var(--ease-out); }
.navmenu__links { list-style: none; margin: 0; padding: 0; }
.navmenu__links a {
  position: relative; display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; isolation: isolate;
  border-bottom: 1px solid var(--line); color: var(--white); text-decoration: none;
  font: 900 clamp(24px, 7.4vw, 60px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.01em;
  opacity: 0; transform: translateX(-28px) rotate(-2deg);
  transition: opacity .3s, transform .5s var(--ease-out), color .15s;
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.menu-open .navmenu__links a { opacity: 1; transform: none; }
.navmenu__links a b { font: 400 12px/1 var(--f-mono); color: var(--acid-fg); letter-spacing: .1em; }
.navmenu__links a i { margin-left: auto; font: 400 clamp(18px, 4vw, 28px)/1 var(--f-mono); font-style: normal; color: var(--acid-fg); }
.navmenu__links a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.navmenu__links li:nth-child(3n+2) a::before { background: var(--mag); }
.navmenu__links li:nth-child(3n) a::before { background: var(--cyan); }
.navmenu__links a:hover, .navmenu__links a:focus-visible, .navmenu__links a:active { color: var(--on-acc); outline: none; }
.navmenu__links a:hover::before, .navmenu__links a:focus-visible::before, .navmenu__links a:active::before { transform: scaleX(1); }
.navmenu__links a:hover b, .navmenu__links a:hover i, .navmenu__links a:active b, .navmenu__links a:active i,
.navmenu__links a:focus-visible b, .navmenu__links a:focus-visible i { color: var(--on-acc); }
.navmenu__foot { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-mono); }
.navmenu__foot .nav__motion { padding: 10px 14px; font-size: 12px; color: var(--white); }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding: clamp(80px, 10vw, 150px) var(--pad-x) clamp(40px, 6vw, 80px); }
.sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec__meta { display: flex; align-items: flex-start; gap: 12px; }
.sec__id { font-family: var(--f-mono); color: var(--acid-fg); font-size: 13px; }
.sec__title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 6.4vw, 104px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.sec__line { flex: 1; min-width: 40px; height: 1px; background: repeating-linear-gradient(90deg, var(--dim) 0 6px, transparent 6px 10px); }
.sec__note { font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* light "studio" section */
.sec--bone { background: var(--bone); color: var(--ink); }
.sec--bone .lbl, .sec--bone .sec__note { color: #6d685f; }
.sec--bone .sec__id { color: var(--red); }
.sec--bone .sec__line { background: repeating-linear-gradient(90deg, #8f8a80 0 6px, transparent 6px 10px); }

/* =========================================================
   GUMBALL LETTERING (js/gumball.js)
   ========================================================= */
.gl-word { display: inline-flex; flex-wrap: nowrap; align-items: center; }
.gl-space { display: inline-block; flex: none; width: .3em; height: 1em; }
.gl { position: relative; display: inline-block; flex: none; height: 1em; }
.gl__body { position: absolute; inset: 0; transform-origin: 50% 85%; will-change: transform; }
.gl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gl.is-moshing .gl__svg { filter: url(#gb-mosh-a); }
.gl.is-moshing.is-mosh-b .gl__svg { filter: url(#gb-mosh-b); }
.gl.is-waiting .gl__body { opacity: 0; }
.gl.is-flicker .gl__body { animation: flicker .6s steps(1) 1; }
@keyframes flicker { 0% { opacity: 1; } 10% { opacity: .2; } 20% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 60% { opacity: .5; } 70% { opacity: 1; } }

/* cartoon "poof" when a letter changes material */
.poof { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.poof i {
  position: absolute; left: 0; top: 0; width: var(--s, 10px); height: var(--s, 10px); margin: calc(var(--s, 10px) / -2);
  background: var(--c, #fff); border-radius: 50%;
  animation: poof .6s var(--ease-out) forwards;
}
.poof i.star { border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes poof { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(90deg); opacity: 0; } }

/* hover lettering on headings / titles */
.gbh .gl { cursor: inherit; }
.gbh .gl__body { transform-origin: 50% 60%; transition: transform .45s var(--spring), opacity .2s; }
.gbh .gl.is-mat .gl__body { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
.gbh .gl.flip-out .gl__body { transform: scaleY(0); opacity: .3; transition: transform .14s cubic-bezier(.5, 0, .75, 0), opacity .14s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 2vh;
  padding: 92px var(--pad-x) 30px;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { /* vignette + subtle colour wash */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(var(--bg-rgb), .85) 100%),
    radial-gradient(ellipse at 15% 20%, rgba(255,43,214,.10), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(var(--acid-rgb), .08), transparent 45%);
}
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__num {
  position: absolute; left: var(--pad-x); bottom: 14vh; font-family: var(--f-cond); font-size: clamp(160px, 34vw, 520px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb), .09); letter-spacing: -.04em;
}
.reg { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(var(--fg-rgb), .25); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; background: rgba(var(--fg-rgb), .25); }
.reg::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.reg::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.reg--tl { left: calc(var(--pad-x) + 4px); top: 150px; }
.reg--tr { right: calc(var(--pad-x) + 4px); top: 150px; }
.hero__side { position: absolute; right: calc(var(--pad-x) - 6px); top: 50%; transform: translateY(-50%) rotate(90deg) translateX(50%); transform-origin: right top; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); white-space: nowrap; }

.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.term { margin: 0; font-family: var(--f-term); font-size: clamp(19px, 1.8vw, 26px); color: var(--white); }
.term__prompt { color: var(--acid-fg); }
.caret { color: var(--acid-fg); animation: blink 1s steps(2) infinite; }
.live { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; }
.live__bug { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; background: var(--red); color: var(--on-hot); font-weight: 700; clip-path: var(--skew); }
.live__bug i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-hot); animation: blink 1s steps(2) infinite; }
.live__ep { color: var(--dim); }

/* title block */
.title { margin: 0; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; user-select: none; position: relative; z-index: 2; font-weight: 400; }
.title__top { position: relative; display: inline-block; padding-top: 2.3em; font-size: var(--l1-fs, clamp(16px, 2.6vw, 40px)); }
.title__rainbow { position: absolute; left: 50%; top: 0; width: 116%; height: auto; transform: translateX(-50%); z-index: -1; overflow: visible; }
.title__rainbow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .title__rainbow path { stroke-dashoffset: 1; }
.js .title.is-built .title__rainbow path { animation: draw 1.1s var(--ease-out) forwards; }
.title__rainbow path:nth-child(2) { animation-delay: .06s !important; } .title__rainbow path:nth-child(3) { animation-delay: .12s !important; }
.title__rainbow path:nth-child(4) { animation-delay: .18s !important; } .title__rainbow path:nth-child(5) { animation-delay: .24s !important; }
.title__rainbow path:nth-child(6) { animation-delay: .3s !important; } .title__rainbow path:nth-child(7) { animation-delay: .36s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.title__clouds { transform-box: fill-box; }
.js .title:not(.is-built) .title__clouds { opacity: 0; }
.title.is-built .title__clouds { animation: cloud-pop .6s var(--spring) .9s both; transform-origin: center; }
@keyframes cloud-pop { from { opacity: 0; transform: scale(.4); } }
.title__line1, .title__name { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.title__line1 { font-family: var(--f-cond); }
.title__name { font-size: var(--name-fs, clamp(64px, 14vw, 240px)); font-family: var(--f-cond); line-height: 1; margin-top: .04em; row-gap: .04em; }
.title .gl { cursor: grab; touch-action: none; }
.title .gl:active { cursor: grabbing; }
.title .gl-space { width: .26em; }
/* before the engine is ready: hide the raw text (safety: reveal after 3s anyway) */
.js .title:not(.is-built) .title__line1, .js .title:not(.is-built) .title__name { visibility: hidden; animation: show-anyway 0s 3s forwards; }
@keyframes show-anyway { to { visibility: visible; } }

.hero__foot { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 24px 48px; align-items: end; padding-bottom: 22px; }
/* the "I make … / inspired by …" lines: big enough to read, and above the title's letters when they overlap */
.hero__lede {
  position: relative; z-index: 3; margin: 0; max-width: 34ch;
  font-size: clamp(21px, 2.15vw, 34px); line-height: 1.25; font-weight: 600;
  text-shadow: 0 0 14px var(--void), 0 0 4px var(--void), 0 2px 0 var(--void);
}
/* scrolling words: the size lives on the window itself, so one step (1.25em) is exactly one word tall
   (it used to be set on each word, which made every step 0.125em short — words crept down) */
.rotator { display: inline-flex; flex-direction: column; height: 1.25em; overflow: hidden; overflow: clip; vertical-align: baseline; font-size: 1.1em; }
.rotator__track { display: flex; flex-direction: column; transition: transform .8s var(--ease); }
.rotator__track span { flex: none; height: 1.25em; line-height: 1.25em; font-family: var(--f-serif); font-style: italic; color: var(--acid-fg); white-space: nowrap; }
.score { display: flex; gap: 22px; margin: 0; }
.score div { padding-left: 0; }
.score dt { font-family: var(--f-mono); font-size: 10px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.score dd { margin: 0; }
.led { font-family: var(--f-pixel); font-size: clamp(22px, 2.4vw, 34px); color: #ffb000; text-shadow: 0 0 8px rgba(255,176,0,.6); letter-spacing: .06em; }
.led--acid { color: var(--acid-fg); text-shadow: 0 0 8px rgba(var(--acid-rgb), .6); }
.badge { position: relative; width: clamp(100px, 9vw, 130px); aspect-ratio: 1; flex: none; display: grid; place-items: center; text-decoration: none; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge__ring text { font-family: var(--f-mono); font-size: 15px; fill: var(--white); letter-spacing: .1em; text-transform: uppercase; }
.badge__arrow { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--acid); color: var(--on-acid); display: grid; place-items: center; font-size: 22px; font-weight: 700; transition: transform .5s var(--spring), background-color .3s; }
.badge:hover .badge__arrow { transform: scale(1.18) rotate(-20deg); background: var(--mag); color: var(--on-hot); }
.hazard { margin: 0 calc(var(--pad-x) * -1); overflow: hidden; background: repeating-linear-gradient(-45deg, var(--acid) 0 14px, var(--on-acc) 14px 28px); padding: 6px 0; }
.hazard__track { display: inline-flex; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hazard__track span { background: var(--on-acc); color: var(--acid); padding: 3px 14px; margin-right: 40px; }
@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; }
  .badge { display: none; }
  .hero__side { display: none; }
}

/* ---------- CROSSING BANDS ---------- */
.bands { position: relative; height: clamp(150px, 17vw, 240px); margin: 1vw 0; overflow: hidden; }
.band {
  position: absolute; left: -5%; right: -5%; top: 50%; padding: .5em 0; white-space: nowrap; overflow: hidden;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 3.6vw, 56px); line-height: 1; text-transform: uppercase;
  transition: transform .6s var(--spring), opacity .4s, filter .4s; cursor: grab; touch-action: pan-y;
}
.band.is-grab { cursor: grabbing; }
.band--acid { background: var(--acid); color: var(--on-acid); transform: translateY(-50%) rotate(-3.5deg); z-index: 2; }
.band--mag { background: var(--mag); color: var(--on-hot); transform: translateY(-50%) rotate(2.5deg); }
.band--acid:hover { transform: translateY(-50%) rotate(-1.5deg) scale(1.04); z-index: 3; }
.band--mag:hover { transform: translateY(-50%) rotate(1deg) scale(1.04); z-index: 3; }
.bands:hover .band:not(:hover) { opacity: .45; filter: saturate(.5); }
.band__track { display: inline-flex; will-change: transform; }
.band__chunk { display: inline-flex; align-items: center; }
.band__w { display: inline-block; padding: .05em .2em; margin: 0 .04em; transition: background-color .25s, color .25s, transform .45s var(--spring); }
.band__w.is-it { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: lowercase; font-size: 1.15em; }
.band__w:hover { transform: rotate(-4deg) scale(1.12); }
.band--acid .band__w:hover { background: var(--on-acc); color: var(--acid); }
.band--mag .band__w:hover { background: var(--on-hot); color: var(--mag-fg); }
.band__w.is-link { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; text-decoration-color: transparent; transition: text-decoration-color .25s, background-color .25s, color .25s, transform .45s var(--spring); }
.band:hover .band__w.is-link { text-decoration-color: currentColor; }
.band__sep { display: inline-block; padding: 0 .25em; font-family: var(--f-pixel); font-size: .7em; transition: transform 1.2s var(--ease-out); }
.band:hover .band__sep { transform: rotate(180deg); }

/* ---------- FILTERS (skewed broadcast chips) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  padding: 7px 16px; background: var(--panel-2); color: var(--dim);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: var(--skew); transition: color .2s, background-color .2s;
}
.filter b { color: var(--acid-fg); font-weight: 400; margin-left: 4px; }
.filter:hover { color: var(--white); background: var(--hover-bg); }
.filter.is-active { background: var(--acid); color: var(--on-acid); font-weight: 700; }
.filter.is-active b { color: var(--on-acid); }

/* ---------- ARCHIVE (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 15vw, 230px); grid-auto-flow: dense; gap: 12px; transition: opacity .2s; }
.bento.is-switching { opacity: 0; }
.file {
  grid-column: span var(--w, 4); grid-row: span var(--h, 1);
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: inherit; display: block; isolation: isolate;
  transition: border-color .2s;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); } .file { grid-column: span 6; } .file.is-small { grid-column: span 3; } }
@media (max-width: 560px) { .file, .file.is-small { grid-column: span 6; grid-row: span 1; } }
/* reveal: an accent-coloured shutter wipes off the tile (no clip-path on the observed element —
   Chrome counts a target's own clip-path, which would stop IntersectionObserver from ever firing) */
.file::before { content: ""; position: absolute; inset: -1px; z-index: 6; pointer-events: none; background: var(--accent, var(--acid)); transform: scaleX(0); transform-origin: right; transition: transform .75s var(--ease); }
.js .file:not(.is-in)::before { transform: scaleX(1); transform-origin: left; transition: none; }
.file__art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; image-rendering: pixelated; transition: transform .8s var(--ease-out); }
.file__art::before, .file__art::after { content: ""; position: absolute; inset: 0; background: inherit; opacity: 0; mix-blend-mode: screen; } /* inherits size + position, so crops line up */
.file:hover .file__art { transform: scale(1.05); }
.file:hover .file__art::before { opacity: .7; transform: translateX(-6px); filter: hue-rotate(90deg); animation: slice .4s steps(3) infinite; }
.file:hover .file__art::after { opacity: .7; transform: translateX(6px); filter: hue-rotate(-90deg); animation: slice .35s steps(3) infinite reverse; }
@keyframes slice { 0% { clip-path: inset(10% 0 60% 0); } 33% { clip-path: inset(50% 0 30% 0); } 66% { clip-path: inset(75% 0 5% 0); } 100% { clip-path: inset(30% 0 50% 0); } }
.file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity .3s; }
.file.is-previewing video { opacity: 1; }
.file__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,6,7,.94), rgba(6,6,7,.08) 62%); }
.file__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(6,6,7,.78); border-bottom: 1px solid var(--line); }
.file__cat { padding: 2px 10px; background: var(--accent, var(--acid)); color: var(--on-accent, var(--on-acid)); font-weight: 700; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.file__num { position: absolute; right: 8px; bottom: -.12em; font-family: var(--f-cond); font-size: clamp(70px, 9vw, 140px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb), .28); pointer-events: none; z-index: -1; }
.file__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.file__title { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 30px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.file.is-tall .file__title { font-size: clamp(26px, 3vw, 52px); }
.file__meta { font-family: var(--f-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; }
.file__open { position: absolute; top: 42px; right: 10px; padding: 4px 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; font-weight: 700; background: var(--accent, var(--acid)); color: var(--on-accent, var(--on-acid)); transform: translateX(130%); transition: transform .35s var(--ease-out); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.file:hover .file__open, .file:focus-visible .file__open { transform: none; }
.file::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(var(--acid-rgb), .18), transparent); opacity: 0; }
.file:hover::after { opacity: 1; animation: sweep .9s var(--ease) 1; }
@keyframes sweep { to { top: 100%; } }
.file:hover { border-color: var(--accent, var(--acid)); }
.file__corner { position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent, var(--acid)); opacity: 0; transition: opacity .2s; }
.file:hover .file__corner { opacity: 1; }
.file__corner--tl { top: 3px; left: 3px; border-top-width: 2px; border-left-width: 2px; }
.file__corner--br { bottom: 3px; right: 3px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- REEL (bone studio) ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); gap: 20px; }
@media (max-width: 960px) { .feed { grid-template-columns: 1fr; } }
.cam { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 12px 12px 0 var(--ink), -6px -6px 0 var(--acid); color: var(--white); }
.cam video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; text-align: center; padding: 1rem;
  background: linear-gradient(90deg, var(--bone) 0 14.3%, var(--acid) 14.3% 28.6%, var(--cyan) 28.6% 42.9%, #3ccf6e 42.9% 57.2%, var(--mag) 57.2% 71.5%, var(--red) 71.5% 85.8%, var(--blue) 85.8%);
}
.cam__empty > * { background: var(--void); color: var(--white); padding: 6px 12px; }
.cam__empty-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 6vw, 78px); line-height: 1; }
.cam__empty:not([hidden]) ~ .cam__play, .cam__empty:not([hidden]) ~ .cam__controls, .cam__empty:not([hidden]) ~ .cam__lower { display: none; }
.cam__hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-shadow: 0 0 4px #000; }
.cam__br { position: absolute; width: 26px; height: 26px; border: 0 solid var(--white); }
.cam__br--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.cam__br--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.cam__br--bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.cam__br--br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.cam__cross { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; opacity: .45; background: linear-gradient(var(--white), var(--white)) center / 1px 100% no-repeat, linear-gradient(var(--white), var(--white)) center / 100% 1px no-repeat; }
.cam__rec { position: absolute; top: 22px; left: 50px; display: inline-flex; align-items: center; gap: 6px; }
.cam__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cam.is-playing .cam__rec i { animation: blink 1s steps(2) infinite; }
.cam__label { position: absolute; top: 22px; right: 50px; color: var(--acid-fg); }
.cam__tc { position: absolute; top: 44px; left: 50px; font-size: 12px; }
.cam__lower { position: absolute; left: 30px; bottom: 64px; display: flex; align-items: stretch; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: opacity .3s; }
.cam__lower-tag { padding: 6px 12px; background: var(--red); color: var(--on-hot); font-weight: 700; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.cam__lower-title { padding: 6px 16px; background: var(--white); color: var(--ink); font-weight: 700; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); margin-left: -4px; }
.cam.is-playing.is-idle .cam__lower { opacity: 0; }
.cam__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 14px 26px; background: var(--acid); color: var(--on-acid); font-family: var(--f-mono); font-weight: 700; letter-spacing: .14em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color .2s, transform .3s var(--spring);
}
.cam__play:hover { background: var(--mag); color: var(--on-hot); transform: translate(-50%, -50%) scale(1.06); }
.cam.is-playing .cam__play { opacity: 0; pointer-events: none; }
.cam__controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(0deg, rgba(6,6,7,.92), transparent); font-family: var(--f-mono); font-size: 11px; transition: transform .35s var(--ease), opacity .35s; }
.cam.is-playing.is-idle .cam__controls { transform: translateY(100%); opacity: 0; }
.pc { min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid rgba(var(--fg-rgb), .3); font-family: var(--f-mono); font-size: 11px; transition: background-color .2s, color .2s; }
.pc:hover { background: var(--acid); color: var(--on-acid); border-color: var(--acid); }
.pc-time { white-space: nowrap; min-width: 9ch; }
.pc-seek, .pc-vol { -webkit-appearance: none; appearance: none; background: transparent; height: 16px; }
.pc-seek { flex: 1; min-width: 60px; }
.pc-vol { width: 70px; }
@media (max-width: 520px) { .pc-vol { display: none; } }
.pc-seek::-webkit-slider-runnable-track, .pc-vol::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--acid) var(--p, 0%), rgba(var(--fg-rgb), .25) var(--p, 0%)); }
.pc-seek::-moz-range-track, .pc-vol::-moz-range-track { height: 4px; background: linear-gradient(90deg, var(--acid) var(--p, 0%), rgba(var(--fg-rgb), .25) var(--p, 0%)); }
.pc-seek::-webkit-slider-thumb, .pc-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 14px; margin-top: -5px; background: var(--white); }
.pc-seek::-moz-range-thumb, .pc-vol::-moz-range-thumb { width: 8px; height: 14px; border: 0; border-radius: 0; background: var(--white); }
.channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.channel {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-align: left;
  transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.channel:hover { background: var(--ink); color: var(--bone); transform: translateX(6px); }
/* reel list thumbnails (thumb: in data.js) */
.channel.has-thumb { grid-template-columns: auto auto 1fr auto; padding-block: 10px; }
.channel__thumb { width: 72px; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: 1.5px solid currentColor; }
.channel__ch { font-family: var(--f-pixel); font-size: 12px; color: var(--red); }
.channel__title { font-family: var(--f-display); font-weight: 800; font-size: 15px; text-transform: uppercase; line-height: 1.1; }
.channel__len { font-family: var(--f-mono); font-size: 11px; opacity: .7; }
.channel.is-active { background: var(--red); color: var(--on-hot); border-color: var(--red); }
.channel.is-active .channel__ch { color: var(--on-hot); }
.channel.is-active .channel__ch::after { content: " ●"; animation: blink 1s steps(2) infinite; }

/* ---------- PROFILE ---------- */
.dossier { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.8fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .dossier { grid-template-columns: 1fr; } }
.idcard { background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.idcard__strip { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--red); color: var(--on-hot); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.idcard__strip b { font-family: var(--f-cond); font-size: 30px; line-height: 1; letter-spacing: 0; font-weight: 400; }
.idcard__photo { display: block; width: calc(100% - 28px); margin: 14px; aspect-ratio: 4 / 5; image-rendering: pixelated; background: var(--panel-2); }
.idcard__fields { margin: 0 14px 14px; display: grid; gap: 8px; }
.idcard__fields div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.idcard__fields dt { font-family: var(--f-mono); font-size: 10px; color: var(--dim); letter-spacing: .12em; padding-top: 3px; }
.idcard__fields dd { margin: 0; font-weight: 700; font-size: 14px; }
.barcode { display: flex; flex-direction: column; gap: 4px; margin: 0 14px 14px; }
.barcode span { display: block; height: 30px; background: repeating-linear-gradient(90deg, var(--white) 0 2px, transparent 2px 4px, var(--white) 4px 5px, transparent 5px 8px, var(--white) 8px 11px, transparent 11px 12px, var(--white) 12px 13px, transparent 13px 17px); }
.barcode small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.terminal { background: #07080a; border: 1px solid var(--line); font-family: var(--f-term); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.terminal__bar i { width: 10px; height: 10px; }
.terminal__bar i:nth-child(1) { background: var(--mag); } .terminal__bar i:nth-child(2) { background: var(--acid); } .terminal__bar i:nth-child(3) { background: var(--cyan); }
.terminal__bar span { margin-left: 8px; }
.terminal__body { padding: 16px 18px 20px; }
.terminal__body p { margin: 0 0 10px; }
.typeblock { color: var(--white); min-height: 6em; white-space: pre-line; } /* \n in the bio = new line */
.meters { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.meters li { display: grid; grid-template-columns: 9ch 1fr; align-items: center; gap: 12px; }
.meters .bar { display: flex; gap: 4px; }
.meters .bar i { flex: 1; max-width: 46px; height: 14px; border: 1px solid var(--acid); }
.meters .bar i.on { background: var(--acid); }
.js .meters .bar i.on { background: transparent; transition: background-color .2s; }
.js .meters.is-in .bar i.on { background: var(--acid); }
.sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; padding: 16px; border: 1px dashed var(--line); }
.sponsors__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.sponsors__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sponsors__list li { padding: 7px 14px; background: var(--panel-2); font-family: var(--f-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; clip-path: var(--skew); transition: background-color .2s, color .2s, transform .3s var(--spring); }
.sponsors__list li:nth-child(4n+1):hover { background: var(--acid); color: var(--on-acid); }
.sponsors__list li:nth-child(4n+2):hover { background: var(--mag); }
.sponsors__list li:nth-child(4n+3):hover { background: var(--cyan); color: var(--on-acc); }
.sponsors__list li:nth-child(4n):hover { background: var(--red); }
.sponsors__list li:hover { transform: rotate(-3deg) scale(1.06); }

/* ---------- STICKERS ---------- */
#sticker-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 650; }
.stk { position: absolute; top: 0; left: 0; width: var(--w, 120px); user-select: none; -webkit-user-select: none; touch-action: none; filter: drop-shadow(3px 5px 0 rgba(0,0,0,.45)); }
.stk__inner { position: relative; transition: transform .25s var(--spring); }
.stk__svg { display: block; width: 100%; height: auto; overflow: visible; }
.stk canvas { display: block; width: 100%; height: auto; }
.stk:hover .stk__inner { transform: scale(1.06) rotate(-2deg); }
.stk.is-dragging { filter: drop-shadow(14px 20px 8px rgba(0,0,0,.5)); z-index: 5; }
.stk.is-dragging .stk__inner { transform: scale(1.12); }
.stk__tag {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1));
  padding: 3px 8px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--void); color: var(--acid-fg); border: 1px solid var(--acid);
  opacity: 0; transition: opacity .2s;
}
.stk:hover .stk__tag, .stk.is-ping .stk__tag { opacity: 1; }
.stk.is-ping .stk__inner { animation: ping 1s var(--ease-out) infinite; }
@keyframes ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(4deg); } }
/* hand-drawn: line boil (3 noise seeds) */
.stk--hand .stk__boil { animation: st-boil .45s steps(1) infinite; }
@keyframes st-boil { 0% { filter: url(#st-hand-1); } 33% { filter: url(#st-hand-2); } 66% { filter: url(#st-hand-3); } }
.stk--hand.is-off .stk__boil, .reduce-motion .stk--hand .stk__boil { animation: none; filter: url(#st-hand-1); }
/* hacked / ascii */
.stk--ascii { filter: none; }
.stk--ascii canvas { filter: drop-shadow(0 0 3px rgba(255,43,214,.9)) drop-shadow(0 0 10px rgba(255,43,214,.35)); }
/* rare holo foil (normal style only) */
.stk__foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .6;
  background: linear-gradient(115deg, transparent 18%, #ff8fc8 32%, #22e4ff 44%, #c8ff00 56%, #ffd23f 68%, transparent 82%);
  background-size: 300% 300%; background-position: var(--hx, 30%) var(--hy, 30%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: foil 5s linear infinite;
}
@keyframes foil { 50% { background-position: 100% 100%; } }
.stk.is-peeling .stk__inner { animation: peel .7s var(--ease); }
@keyframes peel {
  0% { transform: perspective(600px) rotateX(0) rotateY(0); }
  35% { transform: perspective(600px) rotateX(35deg) rotateY(-30deg) translate(-6px, -10px) scale(1.05); }
  65% { transform: perspective(600px) rotateX(-12deg) rotateY(12deg) translateY(-24px) scale(1.12); }
  100% { transform: perspective(600px) rotateX(0) rotateY(0) scale(1); }
}
.stk.is-new .stk__inner { animation: slap .5s var(--spring); }
@keyframes slap { from { transform: scale(2.2) rotate(18deg); opacity: 0; } }

/* the case */
.case-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .case-wrap { grid-template-columns: 1fr; } }
.case {
  position: relative; border-radius: 26px; padding: 46px clamp(14px, 2.4vw, 30px) clamp(14px, 2.4vw, 30px);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.06), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 2px, transparent 2px 7px),
    #16181c;
  border: 2px solid #262930;
  box-shadow: inset 0 0 0 7px #0e0f12, inset 0 3px 30px rgba(0,0,0,.65), 0 30px 60px rgba(0,0,0,.45);
}
.case__screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5b606b, #23262c); box-shadow: inset 0 0 0 1px #0a0b0d; }
.case__screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; margin-top: -.75px; background: #0a0b0d; transform: rotate(35deg); }
.case__screw--tl { top: 16px; left: 16px; } .case__screw--tr { top: 16px; right: 16px; }
.case__screw--bl { bottom: 16px; left: 16px; } .case__screw--br { bottom: 16px; right: 16px; }
.case__plate { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 3px 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: #8a8f99; background: #0e0f12; border: 1px solid #262930; white-space: nowrap; max-width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; }
.case__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 12vw, 150px), 1fr)); gap: 4px; }
.slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.slot .stk { position: relative; width: 86%; transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--rot, 0deg)); z-index: 1; touch-action: pan-y; }
.slot .stk:hover { z-index: 4; }
.case__ui { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.case__stats div { padding: 10px; background: var(--panel); border: 1px solid var(--line); }
.case__stats dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: var(--dim); }
.case__stats dd { margin: 0; font-family: var(--f-pixel); font-size: 22px; }
.case__stats div:nth-child(1) dd { color: var(--white); } .case__stats div:nth-child(2) dd { color: var(--yellow-fg); } .case__stats div:nth-child(3) dd { color: var(--mag-fg); }
.case__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.case__help { margin: 0; font-family: var(--f-mono); font-size: 11px; color: var(--dim); line-height: 1.5; }
.case__legend-title { margin: 6px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--acid-fg); }
.case__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.case__legend button { padding: 5px 9px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--white); transition: border-color .2s, background-color .2s, color .2s; }
.case__legend button:hover, .case__legend button:focus-visible { border-color: var(--acid); background: var(--acid); color: var(--on-acid); }

/* ---------- INFLUENCES DB ---------- */
.db { border-top: 1px solid var(--line); font-family: var(--f-mono); }
.db__row { display: grid; grid-template-columns: 4ch minmax(0, 2.3fr) 9ch 6ch minmax(0, 2fr); gap: 16px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 13px; position: relative; isolation: isolate; transition: color .15s; }
.db__row--head { font-size: 10px; letter-spacing: .14em; color: var(--dim); padding-block: 10px; }
.db__row:not(.db__row--head)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.db__row:not(.db__row--head):nth-child(3n+2)::before { background: var(--mag); }
.db__row:not(.db__row--head):nth-child(3n)::before { background: var(--cyan); }
.db__row:not(.db__row--head):hover::before { transform: scaleX(1); }
.db__row:not(.db__row--head):hover { color: var(--on-acc); }
.db__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(16px, 1.9vw, 28px); text-transform: uppercase; line-height: 1.05; }
.db__type { color: var(--cyan-fg); }
.db__row:hover .db__type, .db__row:hover .db__note { color: inherit; }
.db__note { color: var(--dim); font-family: var(--f-ui); font-size: 14px; }
@media (max-width: 760px) {
  .db__row { grid-template-columns: 3ch 1fr auto; }
  .db__row > :nth-child(4) { display: none; }
  .db__note { grid-column: 2 / -1; }
  .db__row--head { display: none; }
}

/* ---------- CONTACT: game-show sign board ---------- */
.contact { padding-inline: 0; overflow: hidden; }
.contact .sec__head, .contact .contact__row { padding-inline: var(--pad-x); }
.neon-board { position: relative; padding-block: 3vw 3vw; background: radial-gradient(ellipse at 30% 40%, rgba(255,184,77,.06), transparent 60%), radial-gradient(ellipse at 70% 75%, rgba(255,43,214,.08), transparent 60%); }
.board__round { position: absolute; left: var(--pad-x); top: 0; z-index: 2; padding: 6px 14px; background: var(--red); color: var(--on-hot); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; clip-path: var(--skew); }
.neon-open {
  position: absolute; right: var(--pad-x); top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 2px solid #3fe0ff; border-radius: 10px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #d8faff; text-shadow: 0 0 6px #3fe0ff, 0 0 16px #3fe0ff;
  box-shadow: 0 0 10px rgba(63,224,255,.6), inset 0 0 10px rgba(63,224,255,.4);
  animation: open-buzz 4.3s infinite;
}
.neon-open i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes open-buzz { 0%, 91%, 95%, 100% { opacity: 1; } 92%, 94% { opacity: .25; } 93% { opacity: .8; } }
.kline { font-family: var(--f-cond); font-size: clamp(84px, 18vw, 320px); line-height: .84; text-transform: uppercase; white-space: nowrap; will-change: transform; user-select: none; padding-top: .1em; }
.kline .ch { display: inline-block; transition: transform .35s var(--ease-out); }
.kline--bulbs .ch {
  color: transparent;
  background: radial-gradient(circle, #fff7df 0 22%, #ffc35a 34%, rgba(255,140,40,.25) 50%, transparent 58%) 0 0 / .066em .066em, linear-gradient(rgba(255,170,70,.16), rgba(255,170,70,.16));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 .04em rgba(255,170,60,.9)) drop-shadow(0 0 .14em rgba(255,120,30,.45));
  animation: chase .5s steps(2) infinite;
  transition: transform .35s var(--ease-out), opacity .08s, filter .08s;
}
@keyframes chase { to { background-position: .066em 0, 0 0; } }
.kline--bulbs .ch.is-off { background-image: radial-gradient(circle, #4a4136 0 26%, #2a241d 40%, transparent 58%), linear-gradient(rgba(255,170,70,.05), rgba(255,170,70,.05)); filter: none; animation: none; }
.kline--neon { padding-left: 12vw; }
.kline--neon .ch { color: transparent; -webkit-text-stroke: .022em #ffe3f0; filter: drop-shadow(0 0 .015em #ff7fbf) drop-shadow(0 0 .05em #ff3b8f) drop-shadow(0 0 .14em rgba(255,40,120,.7)); transition: transform .35s var(--ease-out), opacity .06s; }
.kline--neon .ch.is-off { -webkit-text-stroke-color: #4a2f3d; filter: none; }
.kline .ch.is-dim { opacity: .55; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(30px, 4vw, 60px); }
.copy { display: inline-flex; align-items: center; border: 1px solid var(--acid); font-family: var(--f-mono); font-size: clamp(15px, 1.6vw, 22px); transition: transform .3s var(--spring); }
.copy__addr { padding: 16px 20px; }
.copy__btn { padding: 16px 18px; background: var(--acid); color: var(--on-acid); font-weight: 700; transition: background-color .2s; }
.copy:hover .copy__btn { background: var(--mag); color: var(--on-hot); }
.copy.is-copied .copy__btn { background: var(--cyan); color: var(--on-acc); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 13px; }
.socials a { display: inline-block; padding: 8px 10px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--mag); color: var(--mag-fg); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 28px var(--pad-x) 44px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.footer a { text-decoration: none; color: var(--acid-fg); }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; padding: var(--gutter); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(var(--bg-rgb), .88); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: min(1040px, 100%); max-height: 90vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--accent, var(--acid)); animation: boot .45s steps(6); }
@keyframes boot { 0% { clip-path: inset(49% 0 49% 0); } 50% { clip-path: inset(30% 0 30% 0); } 100% { clip-path: inset(0); } }
.modal__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--accent, var(--acid)); color: var(--on-accent, var(--on-acid)); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.modal__close { font-family: var(--f-mono); font-weight: 700; }
.modal__close:hover { color: var(--white); }
.modal__media { aspect-ratio: 16 / 9; background: #000 center / cover; image-rendering: pixelated; }
.modal__media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal__body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 40px; padding: clamp(20px, 3vw, 36px); }
@media (max-width: 700px) { .modal__body { grid-template-columns: 1fr; } }
.modal__cat { font-family: var(--f-mono); font-size: 12px; color: var(--accent, var(--acid)); letter-spacing: .1em; }
.modal__title { margin: 8px 0 6px; font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4.5vw, 60px); line-height: .95; text-transform: uppercase; }
.modal__meta { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.modal__desc { margin: 0; font-size: 18px; }

/* ---------- motion off (system setting or MOTION toggle) ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
.reduce-motion .js .title__rainbow path, html.reduce-motion .title__rainbow path { stroke-dashoffset: 0; }

/* =========================================================
   V5 — v3 identity + sticker book, new section order,
   overlapping lettering, sharp contact panel
   ========================================================= */

/* rollers: only the hovered band reacts — the other one no longer fades */
.bands:hover .band:not(:hover) { opacity: 1; filter: none; }

/* title without the rainbow */
.title__top { padding-top: 0; margin-bottom: .12em; }

/* lettering: every letter overlaps its neighbours, collage-style (fit() in gumball.js uses the same numbers) */
.title__name .gl { margin-right: -.17em; }
.title__line1 .gl { margin-right: -.11em; }
.title .gl-word .gl:last-child { margin-right: 0; }
.title .gl.is-hot { z-index: 20 !important; }

/* hover indicator on the big letters: HUD corner brackets + CLICK tag */
.gl__hint { position: absolute; inset: -.03em -.01em; pointer-events: none; opacity: 0; z-index: 3; }
.gl__hint i { position: absolute; width: .12em; height: .12em; border: 0 solid var(--acid); }
.gl__hint i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.gl__hint i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.gl__hint i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.gl__hint i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.gl__hint b { position: absolute; left: 50%; top: -5px; transform: translate(-50%, -100%); padding: 2px 6px; background: var(--acid); color: var(--on-acid); font: 700 10px/1.25 var(--f-mono); letter-spacing: .14em; white-space: nowrap; }
.gl.is-hot .gl__hint { opacity: 1; }
.gl.is-hot .gl__hint i { animation: hint-in .3s steps(3); }
@keyframes hint-in { from { transform: scale(2.4); opacity: 0; } }

/* nav: sticker book button */
.nav__book { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; transition: border-color .2s, color .2s, background-color .2s; }
.nav__book:hover { border-color: var(--yellow); color: var(--yellow-fg); }
.nav__book-ico { width: 12px; height: 12px; background: var(--yellow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.nav__book.is-bump { animation: book-bump .45s steps(4); }
@keyframes book-bump { 30% { transform: translateY(-3px) rotate(-4deg); background: var(--yellow); color: var(--on-acc); } 70% { transform: translateY(1px) rotate(3deg); } }
@media (max-width: 1100px) { .nav__versions a { display: none; } }

/* stickers (collectible) */
.stk__px { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.stk--pixel:hover .stk__px { filter: drop-shadow(-2px 0 0 rgba(255,43,214,.85)) drop-shadow(2px 0 0 rgba(34,228,255,.85)); }
.stk-mini, .book__big { position: relative; }
.stk-mini svg, .stk-mini canvas, .book__big svg, .book__big canvas { display: block; width: 100%; height: auto; }
.stk__flat { display: block; }
.stk-mini img, .book__big img { display: block; width: 100%; height: auto; }
/* image stickers keep their own shape inside a fixed box (tall ones don't stretch the grid) */
.book__slot:has(.stk__img, .stk__px) .stk-mini { position: absolute; inset: 10%; width: auto; }
.book__big:has(.stk__img, .stk__px) { height: min(40vh, 300px); }
:is(.book__slot .stk-mini, .book__big) > :is(.stk__img, .stk__flat, canvas), :is(.book__slot .stk-mini, .book__big) > .stk__flat > img { width: 100%; height: 100%; object-fit: contain; }
:is(.book__slot .stk-mini, .book__big) .stk__foil { -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.stk-mini .stk__boil, .book__big .stk__boil { filter: url(#st-hand-1); }

/* sticker book window — sharp HUD window, closed by default */
.book {
  position: fixed; right: 26px; bottom: 32px; z-index: 8000; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--acid);
  box-shadow: 8px 8px 0 rgba(var(--acid-rgb), .18), 0 30px 60px rgba(0,0,0,.6);
  animation: boot .45s steps(6);
}
.book__bar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; background: var(--acid); color: var(--on-acid); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; cursor: grab; user-select: none; touch-action: none; }
.book__bar:active { cursor: grabbing; }
.book__count { margin-left: auto; }
.book__x { padding: 2px 6px; font-family: var(--f-mono); font-weight: 700; font-size: 12px; color: var(--on-acid); }
.book__x:hover { background: var(--on-acc); color: var(--acid); }
.book__body { padding: 12px 14px; overflow-y: auto; }
.book__hint { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--dim); }
.book__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.book__slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed var(--line); background: rgba(var(--fg-rgb), .02); transition: border-color .2s, background-color .2s, transform .25s var(--spring); }
.book__slot span { font-family: var(--f-pixel); font-size: 12px; color: var(--slot-num); }
.book__slot.is-got { border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.book__slot.is-got:hover { border-color: var(--acid); transform: rotate(-3deg) scale(1.04); }
.book__slot .stk-mini { width: 80%; }
.book__slot.is-fresh { animation: fresh .6s steps(5); }
@keyframes fresh { 0% { transform: scale(.3) rotate(-25deg); filter: invert(1); } 60% { transform: scale(1.15) rotate(6deg); } }
.book__detail { display: grid; gap: 10px; justify-items: center; text-align: center; padding-bottom: 4px; }
.book__big { width: 60%; }
.book__name { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.book__meta { margin: 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--acid-fg); text-transform: uppercase; }
.book__note { margin: 0; font-size: 14px; color: var(--dim); max-width: 30ch; }
.book__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.book__acts button { padding: 6px 12px; background: var(--panel-2); color: var(--white); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; clip-path: var(--skew); transition: background-color .2s, color .2s; }
.book__acts button:hover { background: var(--acid); color: var(--on-acid); }
.book__foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.book__prog { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, rgba(var(--fg-rgb), .08) 0 calc(100% / 19 - 2px), transparent calc(100% / 19 - 2px) calc(100% / 19)); }
.book__prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--acid) 0 12px, #a6d400 12px 14px); transition: width .5s steps(6); }
.book__reset { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.book__reset:hover { color: var(--red); }
.book__stamp { position: absolute; right: 16px; top: 46px; padding: 4px 10px; border: 2px solid var(--mag); color: var(--mag-fg); font-family: var(--f-display); font-weight: 900; font-size: 14px; letter-spacing: .06em; transform: rotate(-10deg); pointer-events: none; }

/* toasts + confetti */
.toasts { position: fixed; left: 50%; bottom: 34px; z-index: 8500; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--void); border: 1px solid var(--acid); box-shadow: 6px 6px 0 rgba(var(--acid-rgb), .2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; animation: boot .35s steps(5); }
.toast b { color: var(--acid-fg); }
.toast__ico { width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); color: var(--on-acc); font-size: 12px; font-weight: 900; }
.toast.is-out { animation: toast-out .3s steps(4) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
.confetti { position: fixed; inset: 0; z-index: 8600; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; background: var(--c); animation: fall var(--d, 2.4s) var(--ease-out) forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 110vh) rotate(var(--rot, 540deg)); } }

/* contact — big living lettering + sharp channel panel */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 0 var(--pad-x); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
.title--contact { align-items: flex-start; align-self: auto; text-align: left; width: 100%; margin-bottom: 18px; }
.title--contact .title__name { justify-content: flex-start; margin-top: 0; }
.contact__lede { margin: 0 0 26px; max-width: 42ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--white); opacity: .85; }
.chanpanel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.chanpanel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 38%; height: 3px; background: var(--acid); }
.chanpanel__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.chanpanel__live { display: inline-flex; align-items: center; gap: 8px; padding: 3px 9px; border: 1.5px solid #3fe0ff; color: #d8faff; text-shadow: 0 0 6px #3fe0ff; box-shadow: 0 0 8px rgba(63,224,255,.5), inset 0 0 6px rgba(63,224,255,.35); animation: open-buzz 4.3s infinite; }
.chanpanel__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes open-buzz { 0%, 91%, 95%, 100% { opacity: 1; } 92%, 94% { opacity: .25; } 93% { opacity: .8; } }
.chan { position: relative; display: grid; grid-template-columns: 4ch 10ch minmax(0, 1fr) 2ch; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; isolation: isolate; text-decoration: none; transition: color .15s; }
.chan:last-child { border-bottom: 0; }
.chan b { font-family: var(--f-pixel); font-weight: 400; color: var(--acid-fg); }
.chan span { letter-spacing: .12em; color: var(--dim); }
.chan em { font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: clamp(13px, 1.2vw, 16px); text-transform: uppercase; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan i { font-style: normal; font-weight: 700; text-align: right; transition: transform .3s var(--spring); }
a.chan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
a.chan:nth-of-type(even)::before { background: var(--mag); }
a.chan:hover::before { transform: scaleX(1); }
a.chan:hover, a.chan:hover span, a.chan:hover em, a.chan:hover b { color: var(--on-acc); }
a.chan:hover i { transform: translate(3px, -3px); }
.chan--static em.acid { color: var(--acid-fg); }

/* footer: sticker counter */
.footer__book { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.footer__book b { color: var(--yellow-fg); }
.footer__book:hover { color: var(--white); }

/* =========================================================
   V5.1 — readable hover lettering, influence scenes
   ========================================================= */

/* hover lettering: material letters grow past their slots so they overlap like the title,
   and get a dark die-cut outline + hard shadow — readable on the light reel section and
   on the acid / magenta / cyan row fills (the fills themselves stay as they are) */
.gbh .gl.is-mat .gl__body { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)) scale(1.16); }
.gbh .gl.is-mat .gl__svg {
  --ol: max(1.5px, .03em);
  filter:
    drop-shadow(var(--ol) 0 0 var(--ink)) drop-shadow(calc(var(--ol) * -1) 0 0 var(--ink))
    drop-shadow(0 var(--ol) 0 var(--ink)) drop-shadow(0 calc(var(--ol) * -1) 0 var(--ink))
    drop-shadow(calc(var(--ol) * 1.4) calc(var(--ol) * 1.6) 0 var(--ink));
}

/* influences: a mini screen per row playing an original cartoon loop (js/scenes.js) */
/* only once the CLIP column exists (app.js adds .has-clips to .db after building the scenes) */
.db.has-clips .db__row { grid-template-columns: 4ch 132px minmax(0, 2.3fr) 9ch 6ch minmax(0, 2fr); padding-block: 10px; }
.db__clip { display: block; }
@media (max-width: 760px) {
  /* phones: # | clip | title / type / takeaway stacked, so long titles never run into the type */
  .db.has-clips .db__row { grid-template-columns: 3ch 88px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; }
  .db.has-clips .db__row > :nth-child(1), .db.has-clips .db__clip { grid-row: 1 / span 3; }
  .db.has-clips .db__title, .db.has-clips .db__type, .db.has-clips .db__note { grid-column: 3; }
  .db.has-clips .db__row > :nth-child(4) { display: block; font-size: 10px; letter-spacing: .12em; }  /* type */
  .db.has-clips .db__row > :nth-child(5) { display: none; }   /* year */
}

@property --st { syntax: "*"; inherits: false; }
@property --sd { syntax: "*"; inherits: false; }
@property --sa { syntax: "*"; inherits: false; }
@property --sx0 { syntax: "*"; inherits: false; }
@property --sx1 { syntax: "*"; inherits: false; }
@property --sy0 { syntax: "*"; inherits: false; }
@property --sy1 { syntax: "*"; inherits: false; }
@property --srx { syntax: "*"; inherits: false; }
@property --sry { syntax: "*"; inherits: false; }

.scene { position: relative; display: block; width: 132px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
@media (max-width: 760px) { .scene { width: 88px; } }
.scene svg { display: block; width: 100%; height: 100%; }
.scene::before { content: attr(data-ch); position: absolute; left: 4px; top: 3px; z-index: 1; font: 700 7px/1 var(--f-mono); letter-spacing: .1em; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0,0,0,.4)); }
.db__row:hover .scene { border-color: var(--on-acc); box-shadow: 3px 3px 0 var(--on-acc); }

/* animated parts pivot on their own box; specific pivots are set per class or inline */
.scene [class] { transform-box: fill-box; transform-origin: 50% 50%; }
.scene .o { stroke: #0c0c0d; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.scene .o1 { stroke: #0c0c0d; stroke-width: 1px; stroke-linejoin: round; stroke-linecap: round; }
/* only scenes on screen animate; motion off = each scene's still key pose */
.scene:not(.is-live) * { animation-play-state: paused !important; }
.reduce-motion .scene * { animation: none !important; }

/* shared moves (timing via --st, delay --sd, amount --sa) */
.scene .bob { animation: sc-bob var(--st, 1.6s) ease-in-out var(--sd, 0s) infinite; }
.scene .jit { animation: sc-bob var(--st, .3s) steps(2) var(--sd, 0s) infinite; }
.scene .hop { transform-origin: 50% 100%; animation: sc-hop var(--st, 1.4s) ease-in-out var(--sd, 0s) infinite; }
.scene .sway { animation: sc-sway var(--st, 2s) ease-in-out var(--sd, 0s) infinite; }
.scene .spin { animation: sc-spin var(--st, 2s) linear var(--sd, 0s) infinite; }
.scene .blink { animation: sc-blink var(--st, 3.2s) linear var(--sd, 0s) infinite; }
.scene .blinkdot { animation: sc-dot var(--st, 1s) linear var(--sd, 0s) infinite; }
.scene .flick { animation: sc-flick var(--st, 2.4s) steps(1) var(--sd, 0s) infinite; }
.scene .pulse { animation: sc-pulse var(--st, 1.6s) ease-in-out var(--sd, 0s) infinite; }
.scene .move { animation: sc-move var(--st, 6s) linear var(--sd, 0s) infinite; }
.scene .ox { animation: sc-ox var(--st, 3s) ease-in-out var(--sd, 0s) infinite alternate; }
.scene .oy { animation: sc-oy var(--st, 3s) ease-in-out var(--sd, 0s) infinite alternate; }
.scene .face { animation: sc-face calc(var(--st, 3s) * 2) linear var(--sd, 0s) infinite; }
.scene .twinkle { animation: sc-twinkle var(--st, 1.8s) ease-in-out var(--sd, 0s) infinite; }
.scene .flap { animation: sc-flap var(--st, .4s) ease-in-out var(--sd, 0s) infinite; }
.scene .flapx { animation: sc-flapx var(--st, .3s) ease-in-out var(--sd, 0s) infinite; }
.scene .rotor { animation: sc-rotor .12s linear infinite; }
.scene .legs { animation: sc-legs var(--st, .3s) linear var(--sd, 0s) infinite; }
.scene .pop { animation: sc-pop var(--st, 2.4s) ease-out var(--sd, 0s) infinite; }
@keyframes sc-bob { 50% { transform: translateY(var(--sa, -2px)); } }
@keyframes sc-hop { 0%, 62%, 100% { transform: translateY(0) scale(1, 1); } 8% { transform: translateY(0) scale(1.14, .84); } 30% { transform: translateY(var(--sa, -12px)) scale(.92, 1.1); } 52% { transform: translateY(0) scale(1.1, .88); } }
@keyframes sc-sway { 0%, 100% { transform: rotate(calc(var(--sa, 6deg) * -1)); } 50% { transform: rotate(var(--sa, 6deg)); } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes sc-dot { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes sc-flick { 0%, 100% { opacity: 1; } 10% { opacity: .3; } 14% { opacity: .9; } 40% { opacity: .55; } 44% { opacity: 1; } 72% { opacity: .75; } }
@keyframes sc-pulse { 50% { transform: scale(var(--sa, 1.2)); opacity: .8; } }
@keyframes sc-move { from { transform: translate(var(--sx0, 0px), var(--sy0, 0px)); } to { transform: translate(var(--sx1, 0px), var(--sy1, 0px)); } }
@keyframes sc-ox { from { transform: translateX(calc(var(--srx, 20px) * -1)); } to { transform: translateX(var(--srx, 20px)); } }
@keyframes sc-oy { from { transform: translateY(calc(var(--sry, 6px) * -1)); } to { transform: translateY(var(--sry, 6px)); } }
@keyframes sc-face { 0%, 49.9% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
@keyframes sc-twinkle { 0%, 100% { transform: scale(.3) rotate(0deg); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes sc-flap { 50% { transform: scaleY(.2); } }
@keyframes sc-flapx { 50% { transform: scaleX(.25); } }
@keyframes sc-rotor { 50% { transform: scaleX(.15); } }
@keyframes sc-legs { 0%, 49.9% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
@keyframes sc-pop { 0% { transform: translateY(0) scale(0); opacity: 0; } 10% { transform: translateY(0) scale(1.2); opacity: 1; } 22% { transform: translateY(0) scale(1); opacity: 1; } 70% { transform: translateY(-3px) scale(1); opacity: 1; } 100% { transform: translateY(-6px) scale(1); opacity: 0; } }

/* per-scene moves — the plain (un-animated) styles are each scene's still key pose */
/* Mutafukaz */
.scene .mf-flip { transform-origin: 50% 55%; animation: mf-flip 2.6s ease-in-out infinite; }
@keyframes mf-flip { 0% { transform: translateY(0) rotate(0deg) scale(1, 1); } 10% { transform: translateY(0) rotate(0deg) scale(1.12, .86); } 32% { transform: translateY(-26px) rotate(-180deg) scale(1, 1); } 52% { transform: translateY(0) rotate(-360deg) scale(1.1, .9); } 60%, 100% { transform: translateY(0) rotate(-360deg) scale(1, 1); } }
/* The Creator */
.scene .cr-scan { transform-origin: 50% 0%; animation: cr-scan 4.6s ease-in-out infinite; }
@keyframes cr-scan { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-24deg); } }
/* The Wild Robot */
.scene .wr-walk { transform-origin: 50% 100%; animation: wr-walk 1s ease-in-out infinite; }
@keyframes wr-walk { 0%, 100% { transform: translateY(0) rotate(-3deg); } 25%, 75% { transform: translateY(-1.5px) rotate(0deg); } 50% { transform: translateY(0) rotate(3deg); } }
.scene .wr-arm { --sa: 10deg; transform-origin: 50% 0%; animation: sc-sway 1s ease-in-out var(--sd, 0s) infinite; }
/* Death Stranding */
.scene .ds-stack { transform-origin: 50% 100%; animation: ds-sway 2.2s ease-in-out infinite; }
@keyframes ds-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } }
/* Life is Strange */
.scene .ls-beam { transform-origin: 0% 50%; animation: ls-beam 3.4s linear infinite; }
@keyframes ls-beam { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
/* Into the Spider-Verse */
.scene .sv-swing { transform-origin: 50% 0%; animation: sv-swing 2.6s ease-in-out infinite; }
@keyframes sv-swing { 0%, 100% { transform: rotate(34deg); } 50% { transform: rotate(-34deg); } }
/* NFS Unbound */
.scene .nf-puff { opacity: 0; animation: nf-puff 1s ease-out var(--sd, 0s) infinite; }
@keyframes nf-puff { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 100% { transform: translate(-48px, -7px) scale(1.7); opacity: 0; } }
.scene .nf-wing { transform-origin: 100% 100%; animation: nf-wing .5s ease-in-out infinite; }
@keyframes nf-wing { 50% { transform: rotate(14deg); } }
/* The Amazing World of Gumball */
.scene .gb-shake { transform-origin: 50% 100%; animation: gb-shake 2.6s ease-in-out infinite; }
@keyframes gb-shake { 0%, 4%, 16%, 100% { transform: rotate(0deg); } 7% { transform: rotate(-3deg); } 10% { transform: rotate(3deg); } 13% { transform: rotate(-2deg); } }
.scene .gb-eye { animation: gb-eye 2.6s ease-in-out var(--sd, 0s) infinite; }
@keyframes gb-eye { 0%, 100% { transform: translate(0, 0); } 8% { transform: translate(1.4px, 1px); } 12% { transform: translate(-1px, 1.5px); } 18% { transform: translate(.6px, -.8px); } 40% { transform: translate(1.5px, 1.4px); } 70% { transform: translate(1.8px, 1.6px); } }
.scene .gb-ball { animation: gb-ball 2.6s linear infinite; }
@keyframes gb-ball {
  0%, 14% { transform: translate(0, 0) scale(0); }
  18% { transform: translate(3px, 0) scale(1); animation-timing-function: ease-in; }
  28% { transform: translate(10px, 6.5px) scale(1); animation-timing-function: ease-out; }
  38% { transform: translate(20px, -3px) scale(1); animation-timing-function: ease-in; }
  48% { transform: translate(30px, 6.5px) scale(1); animation-timing-function: ease-out; }
  55% { transform: translate(38px, 2px) scale(1); animation-timing-function: ease-in; }
  62% { transform: translate(46px, 6.5px) scale(1); }
  100% { transform: translate(92px, 6.5px) scale(1); }
}
/* Gravity Falls */
.scene .gf-light { transform-origin: 0% 56%; animation: gf-light 3.4s ease-in-out infinite; }
@keyframes gf-light { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } }
/* Godzilla */
.scene .gz-body { transform-origin: 50% 100%; animation: gz-body 4s ease-in-out infinite; }
@keyframes gz-body { 0%, 28%, 100% { transform: rotate(0deg); } 36% { transform: rotate(-6deg); } 44%, 76% { transform: rotate(2deg); } 86% { transform: rotate(0deg); } }
.scene .gz-beam { transform-origin: 50% 100%; animation: gz-beam 4s linear infinite; }
@keyframes gz-beam { 0%, 38% { transform: scaleY(0); opacity: 0; } 43% { transform: scaleY(1); opacity: 1; } 76% { transform: scaleY(1); opacity: 1; } 84%, 100% { transform: scaleY(1); opacity: 0; } }
.scene .gz-plate { animation: gz-plate 4s linear infinite; }
@keyframes gz-plate { 0%, 8% { fill: #a9b3a2; } 36%, 78% { fill: #bff3ff; } 90%, 100% { fill: #a9b3a2; } }
.scene .gz-flash { animation: gz-flash 4s linear infinite; }
@keyframes gz-flash { 0%, 40% { opacity: 0; } 43% { opacity: .22; } 50%, 100% { opacity: 0; } }
.scene .gz-search { --sa: 14deg; transform-origin: 50% 100%; animation: sc-sway 4.4s ease-in-out var(--sd, 0s) infinite; }
/* Titanfall 2 */
.scene .tf-drop { transform-origin: 50% 100%; animation: tf-drop 3.6s linear infinite; }
@keyframes tf-drop {
  0% { transform: translateY(-112px) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, 1, .5); }
  14% { transform: translateY(0) scale(1.14, .82); animation-timing-function: ease-out; }
  20% { transform: translateY(0) scale(.95, 1.05); }
  26%, 84% { transform: translateY(0) scale(1, 1); opacity: 1; }
  92%, 100% { transform: translateY(0) scale(1, 1); opacity: 0; }
}
.scene .tf-dust { animation: tf-dust 3.6s ease-out infinite; }
@keyframes tf-dust { 0%, 13% { transform: scale(.2, .2); opacity: 0; } 15% { transform: scale(.5, .6); opacity: .95; } 42%, 100% { transform: scale(1.5, 1.2); opacity: 0; } }
.scene .tf-run { animation: tf-run 2s linear infinite; }
@keyframes tf-run { 0% { transform: translate(-14px, 2px); opacity: 0; } 8% { opacity: 1; } 66% { transform: translate(28px, -2px); opacity: 1; } 82% { transform: translate(40px, -12px); opacity: 1; } 100% { transform: translate(54px, -4px); opacity: 0; } }
/* Pacific Rim */
.scene .pr-punch { transform: translateX(26px); animation: pr-punch 2.4s ease-in-out infinite; }
@keyframes pr-punch { 0%, 28% { transform: translateX(0); } 36% { transform: translateX(-4px); } 44%, 62% { transform: translateX(26px); } 80%, 100% { transform: translateX(0); } }
.scene .pr-flame { transform-origin: 100% 50%; animation: pr-flame 2.4s linear infinite; }
@keyframes pr-flame { 0%, 36% { transform: scaleX(0); } 40% { transform: scaleX(1.6); } 58% { transform: scaleX(1); } 64%, 100% { transform: scaleX(0); } }
.scene .pr-hit { animation: pr-hit 2.4s ease-out infinite; }
@keyframes pr-hit { 0%, 43% { transform: scale(0); opacity: 0; } 46% { transform: scale(1.3); opacity: 1; } 60%, 100% { transform: scale(1.7); opacity: 0; } }
.scene .pr-kaiju { transform-origin: 50% 100%; animation: pr-kaiju 2.4s ease-in-out infinite; }
@keyframes pr-kaiju { 0%, 44%, 100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(5px) rotate(8deg); } 70% { transform: translateX(1px) rotate(1deg); } }
/* Life is Strange 2 */
.scene .l2-howl { transform-origin: 30% 100%; animation: l2-howl 4s ease-in-out infinite; }
@keyframes l2-howl { 0%, 20%, 80%, 100% { transform: rotate(6deg); } 30%, 70% { transform: rotate(-4deg); } }
/* Life is Strange: True Colors */
.scene .tc-aura { animation: tc-aura 6s ease-in-out infinite; }
@keyframes tc-aura { 0%, 100% { fill: #ffd23f; transform: scale(1.1); } 25% { fill: #ff3b30; transform: scale(1.18); } 50% { fill: #3d7bff; transform: scale(.95); } 75% { fill: #a86bff; transform: scale(1.04); } }
.scene .tc-word { animation: tc-word 6s steps(1) var(--sd, 0s) infinite; }
@keyframes tc-word { 0%, 12.4% { opacity: 1; } 12.5%, 87.4% { opacity: 0; } 87.5%, 100% { opacity: 1; } }
.scene .tc-p { animation: tc-p 2.8s ease-out var(--sd, 0s) infinite; }
@keyframes tc-p { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-22px); opacity: 0; } }
/* Steven Universe */
.scene .su-bubble { animation: su-bubble 3.2s ease-out infinite; }
@keyframes su-bubble { 0% { transform: scale(.1); opacity: 0; } 14% { transform: scale(1.08); opacity: 1; } 22%, 72% { transform: scale(1); opacity: 1; } 78% { transform: scale(1.1); opacity: .6; } 84%, 100% { transform: scale(1.22); opacity: 0; } }
/* Arcane */
.scene .ar-hex { animation: ar-hex 3.6s ease-in-out infinite; }
@keyframes ar-hex { 0%, 50%, 100% { transform: translateY(0) scaleX(1); } 25% { transform: translateY(-2px) scaleX(.5); } 75% { transform: translateY(2px) scaleX(.5); } }
/* Cyberpunk: Edgerunners */
.scene .ce-dash { animation: ce-dash 2.6s cubic-bezier(.6, 0, .4, 1) var(--sd, 0s) infinite; }
@keyframes ce-dash { 0% { transform: translateX(-30px); } 64%, 100% { transform: translateX(190px); } }
/* Lockwood & Co. */
.scene .lw-lunge { animation: lw-lunge 2.6s ease-in-out infinite; }
@keyframes lw-lunge { 0%, 38%, 100% { transform: translateX(0); } 46%, 60% { transform: translateX(10px); } 72% { transform: translateX(0); } }
.scene .lw-ghost { animation: lw-ghost 2.6s linear infinite; }
@keyframes lw-ghost { 0%, 44%, 100% { transform: translateX(0); opacity: 1; } 48% { transform: translateX(6px); opacity: .3; } 52% { opacity: .9; } 56% { opacity: .35; } 64% { transform: translateX(3px); opacity: 1; } 80% { transform: translateX(0); } }
/* The Hunger Games */
.scene .hg-chute { transform: translateY(30px); animation: hg-chute 9s linear infinite; }
@keyframes hg-chute { 0% { transform: translateY(-24px); opacity: 0; } 8%, 86% { opacity: 1; } 100% { transform: translateY(76px); opacity: 0; } }
.scene .hg-sing { transform-origin: 30% 70%; animation: hg-sing 3.2s ease-in-out infinite; }
@keyframes hg-sing { 0%, 46%, 100% { transform: rotate(0deg); } 6%, 30% { transform: rotate(-14deg); } 18% { transform: rotate(-6deg); } }
.scene .hg-note { animation: hg-note 3.2s ease-out var(--sd, 0s) infinite; }
@keyframes hg-note { 0% { transform: translateY(4px); opacity: 0; } 6% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-4px); opacity: 1; } 56%, 100% { transform: translateY(-7px); opacity: 0; } }
/* James Lee */
.scene .jl-fighter { animation: jl-fighter 3s ease-in-out infinite; }
@keyframes jl-fighter { 0%, 48% { transform: translateX(0); } 53%, 70% { transform: translateX(46px); } 100% { transform: translateX(0); } }
.scene .jl-aura { transform-origin: 50% 100%; animation: jl-aura 3s linear infinite; }
@keyframes jl-aura { 0% { transform: scale(.8, .7); opacity: .5; } 10% { transform: scale(1.05, 1.1); opacity: .95; } 14% { transform: scale(.95, 1); opacity: .7; } 22% { transform: scale(1.1, 1.15); opacity: 1; } 28% { transform: scale(1, 1.02); opacity: .75; } 36% { transform: scale(1.15, 1.2); opacity: 1; } 44% { transform: scale(1.05, 1.1); opacity: .8; } 50%, 100% { transform: scale(1.3, 1.3); opacity: 0; } }
.scene .jl-smear { animation: jl-smear 3s linear infinite; }
@keyframes jl-smear { 0%, 49% { opacity: 0; } 51% { opacity: 1; } 58%, 100% { opacity: 0; } }
.scene .jl-flash { animation: jl-flash 3s linear infinite; }
@keyframes jl-flash { 0%, 52% { opacity: 0; } 53% { opacity: .9; } 55% { opacity: .2; } 56% { opacity: .7; } 60%, 100% { opacity: 0; } }
.scene .jl-hit { animation: jl-hit 3s ease-out infinite; }
@keyframes jl-hit { 0%, 52% { transform: scale(0) rotate(0deg); opacity: 0; } 54% { transform: scale(1.3) rotate(10deg); opacity: 1; } 68%, 100% { transform: scale(1.6) rotate(20deg); opacity: 0; } }
.scene .jl-load { transform-origin: 0% 50%; animation: jl-load 3s steps(9) infinite; }
@keyframes jl-load { 0% { transform: scaleX(0); } 90%, 100% { transform: scaleX(1); } }
/* Krugsten — keyframes are generated in scenes.js (one pose per drawing, on twos) */
.scene .kr-ball { transform-origin: 50% 100%; animation: kr-ball 2.4s steps(1, end) infinite; }

/* content.js options */
.idcard__photo.is-real { image-rendering: auto; object-fit: cover; }   /* profile.card.photo */
.nav__motion, .nav__book { text-transform: uppercase; }                 /* buttons don't inherit the nav's capitals */

/* highlight: true / highlight: "pink" (colour set by text.js as --hl) */
.is-hl.is-hl { color: var(--hl, var(--acid)); }
.led.is-hl { text-shadow: 0 0 8px color-mix(in srgb, var(--hl, var(--acid)) 60%, transparent); }
/* contact badge colour (contact.badge.color → --neon) */
.chanpanel__live { --neon: #3fe0ff; border-color: var(--neon); color: color-mix(in srgb, var(--neon) 30%, #ffffff); text-shadow: 0 0 6px var(--neon); box-shadow: 0 0 8px color-mix(in srgb, var(--neon) 50%, transparent), inset 0 0 6px color-mix(in srgb, var(--neon) 35%, transparent); }

/* blocks switched off in content.js: the neighbours take the space */
.feed:has(> .channels[hidden]) { grid-template-columns: 1fr; }
.dossier:has(> [hidden]) { grid-template-columns: 1fr; }
.contact__grid:has(> [hidden]) { grid-template-columns: 1fr; }
/* project card + influence screen details switched off in content.js */
.archive.no-filelabel .file__bar > span:first-child { visibility: hidden; }
.archive.no-category .file__cat { display: none; }
.archive.no-number .file__num { display: none; }
.archive.no-meta .file__meta { display: none; }
.db.no-ch .scene::before { display: none; }

/* =========================================================
   ARCHIVE — pages, flowing boxes (dynamic / gallery), fit, glitch
   ========================================================= */
/* the mosaic: js/mosaic.js computes every box's exact spot */
.archive { position: relative; display: block; min-height: 120px; transition: opacity .2s; }
.archive.is-switching { opacity: 0; }
.archive > .file { position: absolute; }
.archive.is-animated > .file, .archive.is-animated > .filler { transition: border-color .2s, left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.file__art { background-position: var(--focus, 50% 50%); }
.file video { object-position: var(--focus, 50% 50%); }
/* crop: the script places the picture + hover video exactly (crop + focus) */
.file.is-framed .file__art { background-repeat: no-repeat; }
.file.is-framed video { inset: auto; max-width: none; object-fit: fill; }
/* smaller boxes get compact labels */
.file.is-small .file__title { font-size: clamp(15px, 1.25vw, 20px); }
.file.is-small .file__num { font-size: 72px; }
.file.is-small .file__body { padding: 10px; }
.file.is-tiny .file__meta, .file.is-tiny .file__num, .file.is-tiny .file__open { display: none; }
.file.is-tiny .file__bar { padding: 5px 7px; font-size: 9px; }
.file.is-tiny .file__body { padding: 8px; }
.file.is-tiny .file__title { font-size: 14px; }

/* filler boxes: gaps the layout can't close (work.fillers in content.js) */
.filler { position: absolute; z-index: 650; overflow: hidden; pointer-events: none; border: 1px solid var(--line); background: var(--panel) center / cover no-repeat; }
.filler::before { content: ""; position: absolute; inset: 0; }
.filler--stripes::before { background: repeating-linear-gradient(-45deg, rgba(var(--acid-rgb), .45) 0 9px, transparent 9px 18px); }
.filler--dots::before { background: radial-gradient(circle, rgba(var(--fg-rgb), .3) 1.2px, transparent 1.7px) 0 0 / 8px 8px; }
.filler--grid::before { background: linear-gradient(rgba(var(--fg-rgb), .13) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, rgba(var(--fg-rgb), .13) 1px, transparent 1px) 0 0 / 14px 14px; }
.filler--bars::before { opacity: .5; background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 14.28% 28.57%, #00c0c0 28.57% 42.85%, #00c000 42.85% 57.14%, #c000c0 57.14% 71.42%, #c00000 71.42% 85.71%, #0000c0 85.71%); }
.filler--static::before { opacity: .45; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.filler--scan::before { background: repeating-linear-gradient(0deg, rgba(34,228,255,.22) 0 2px, transparent 2px 6px); }
.filler--pink::before { background: radial-gradient(circle, rgba(255,43,214,.5) 1.4px, transparent 2px) 0 0 / 9px 9px; }
.filler--tex::before { display: none; }
.filler.is-strip { border: 0; background: repeating-linear-gradient(-45deg, var(--acid) 0 8px, var(--void) 8px 16px); }
.filler.is-strip::before { display: none; }
.filler__label { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%) rotate(-3deg); padding: 3px 9px; background: var(--void); color: var(--acid-fg); font: 700 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
/* real pictures stay smooth; only the generated placeholder art is pixelated */
.file__art { image-rendering: auto; }
.file__art.is-dither { image-rendering: pixelated; }
/* fit: "contain" — the whole picture, with a blurred copy filling the box behind it */
.file.is-contain .file__art, .file.is-contain .file__art::before, .file.is-contain .file__art::after { background-size: contain; background-repeat: no-repeat; }
.file__fill { position: absolute; inset: -24px; z-index: -3; background: center / cover no-repeat; filter: blur(18px) brightness(.45) saturate(1.2); }
.file.is-contain video { object-fit: contain; background: #000; }
/* glitch: false — no colour-split glitch or light sweep on hover */
.file.no-glitch:hover .file__art::before, .file.no-glitch:hover .file__art::after { animation: none; opacity: 0; }
.file.no-glitch::after { display: none; }

/* scanlines + grain stay on the page, but never on top of your work */
.fx-scan { z-index: 600; }
.fx-noise { z-index: 599; }
.cam, .file { z-index: 650; }
.idcard__photo.is-real { position: relative; z-index: 650; }
#sticker-layer { z-index: 660; }

/* page buttons under the archive */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.pager button { padding: 7px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--white); text-transform: uppercase; clip-path: var(--skew); transition: background-color .2s, color .2s; }
.pager button:hover:not(:disabled) { background: var(--white); color: var(--void); }
.pager button.is-active { background: var(--acid); color: var(--on-acid); font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager__label { margin-left: 10px; color: var(--dim); font-size: 11px; text-transform: uppercase; }

/* pop-up: your work exactly as uploaded — whole picture, real shape, no pixelation */
.modal__media { aspect-ratio: auto; display: grid; place-items: center; background: #000; image-rendering: auto; }
.modal__media.is-art { aspect-ratio: 16 / 9; background: #000 center / cover; image-rendering: pixelated; }
.modal__media video { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #000; }
.modal__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
/* pop-up: software tags */
.modal__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.modal__tools-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.modal__tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.modal__tools-list li { padding: 5px 11px; background: var(--panel-2); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; clip-path: var(--skew); }
.modal__tools-list li:first-child { background: var(--accent, var(--acid)); color: var(--on-accent, var(--on-acid)); border-color: transparent; }
.chan em.acid { color: var(--acid-fg); }                                    /* contact channel highlight */

/* =========================================================
   YOUTUBE (archive pop-up + reel player), PROFILE VIDEO, HOVER CLIPS
   ========================================================= */
.modal__yt { position: relative; display: block; width: min(100%, calc(72vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; }
.modal__yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
a.modal__yt span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; background: var(--acid); color: var(--on-acid); font: 700 13px/1 var(--f-mono); letter-spacing: .14em; white-space: nowrap; }
a.modal__yt:hover span { background: var(--mag); color: var(--on-hot); }
.modal__yt-link { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent, var(--acid)); text-decoration: none; border-bottom: 1px solid currentColor; }
.modal__yt-link:hover { color: var(--white); }
.modal__yt-link[hidden] { display: none; }
/* reel player: YouTube thumbnail, then YouTube's own player and controls */
.cam__yt { position: absolute; inset: 0; background: #000 center / cover no-repeat; cursor: pointer; }
.cam__yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cam.is-yt .cam__controls { display: none; }
.cam.is-yt-on .cam__hud, .cam.is-yt-on .cam__lower { display: none; }
.cam.is-yt-on .cam__yt { cursor: auto; }
/* profile: a video / frozen GIF fills the photo box like a picture */
video.idcard__photo, canvas.idcard__photo.is-real { object-fit: cover; height: auto; }

/* influences, clipMode "hover": the screen that pops out of the cursor */
.scene-float { position: fixed; left: 0; top: 0; z-index: 850; pointer-events: none; will-change: transform; }
.scene-float__box {
  width: clamp(200px, 19vw, 300px); background: #000; border: 2px solid var(--white);
  box-shadow: 6px 6px 0 var(--sf-c, var(--acid)), 6px 6px 0 2px var(--void);
  opacity: 0; transform: scale(.25) rotate(-4deg);
  transition: opacity .14s linear, transform .3s var(--spring);
}
.scene-float.is-on .scene-float__box { opacity: 1; transform: rotate(var(--sf-rot, -1.5deg)); }
.scene-float .scene { width: 100%; border: 0; }
.scene-float .scene::before { font-size: 9px; left: 7px; top: 6px; }
.scene-float.no-ch .scene::before { display: none; }
/* your own gif / video per influence (gif: in data.js) */
.scene.is-media > img, .scene.is-media > video, .scene.is-media > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-float .scene.is-media { aspect-ratio: auto; min-height: 60px; }   /* hover screen: the gif's own shape */
.scene-float .scene.is-media > img, .scene-float .scene.is-media > video, .scene-float .scene.is-media > canvas { height: auto; max-height: 55vh; }

/* ---------- hidden stickers (stickers.js HIDE): tucked into things you open ---------- */
.stk--spot { z-index: 6; cursor: pointer; }
.stk--spot[data-corner="tl"] { top: 12px; left: 12px; }
.stk--spot[data-corner="tr"] { top: 12px; left: auto; right: 12px; }
.stk--spot[data-corner="bl"] { top: auto; bottom: 12px; left: 12px; }
.stk--spot[data-corner="br"] { top: auto; bottom: 12px; left: auto; right: 12px; }
.modal__box > .stk--spot { top: auto; left: auto; bottom: 14px; right: 18px; }
.stk--spot-row { top: calc(50% - 26px); left: auto; right: 6px; }
.db__row:has(> .stk--spot) { z-index: 3; }
.cam > .stk--spot { top: 64px; }
.cam > .stk--spot[data-corner="tl"] { left: 28px; } .cam > .stk--spot[data-corner="tr"] { right: 28px; }


/* =========================================================
   LIGHT MODE — html[data-theme="light"] (THEME button in the nav; first visit follows the system setting)
   Same layout and accents, on warm paper instead of the void. Things that are physically dark
   (video player, screens, TV case, archive cards over their pictures) stay dark: see "dark islands".
   ========================================================= */
html[data-theme="light"] {
  color-scheme: light;
  --void: #f3f0e8;           /* page */
  --panel: #fbfaf6;
  --panel-2: #e9e5db;
  --line: rgba(17, 17, 20, .16);
  --white: #121214;          /* text */
  --bone: #e2d8c3;
  --dim: #62656d;
  --fg-rgb: 17, 17, 20;
  --bg-rgb: 243, 240, 232;
  --acid-fg: #4a7400;  --cyan-fg: #00788c;  --yellow-fg: #9a6c00;  --mag-fg: #c2008f;
  --hover-bg: #ddd8cc;
  --slot-num: #a9a49a;
}
html[data-theme="light"] body { background-color: var(--void); }
/* dark islands: these keep the dark palette in light mode */
html[data-theme="light"] :is(.cam, .scene, .scene-float, .file, .case, .terminal, .modal__media, .filler.is-strip) {
  --void: #060607; --panel: #111215; --panel-2: #181a1e; --line: rgba(245, 245, 240, .14);
  --white: #f5f5f0; --dim: #7d8088; --fg-rgb: 245, 245, 240; --bg-rgb: 6, 6, 7;
  --acid-fg: var(--acid); --cyan-fg: var(--cyan); --yellow-fg: var(--yellow); --mag-fg: var(--mag);
}
html[data-theme="light"] .file { color: var(--white); }  /* card text sits on the dark picture shade */
html[data-theme="light"] .terminal { color: var(--white); }
html[data-theme="light"] .chanpanel__live { color: color-mix(in srgb, var(--neon, #3fe0ff) 55%, #0b1a20); text-shadow: none; background: color-mix(in srgb, var(--neon, #3fe0ff) 12%, transparent); }
/* global layers: lighter scanlines, softer grain */
html[data-theme="light"] .fx-scan { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .028) 0 1px, transparent 1px 3px); }
html[data-theme="light"] .fx-scan::after { background: linear-gradient(transparent, rgba(80, 110, 0, .04), transparent); }
html[data-theme="light"] .fx-noise { opacity: .07; mix-blend-mode: multiply; }
/* shadows read as printed ink on paper */
html[data-theme="light"] .book, html[data-theme="light"] .toast { box-shadow: 6px 6px 0 rgba(17, 17, 20, .18), 0 24px 50px rgba(17, 17, 20, .18); }
html[data-theme="light"] .stk { filter: drop-shadow(3px 5px 0 rgba(17, 17, 20, .22)); }
html[data-theme="light"] .stk.is-dragging { filter: drop-shadow(14px 20px 8px rgba(17, 17, 20, .28)); }
html[data-theme="light"] .nav__brand, html[data-theme="light"] .nav { color: var(--white); }
/* the "bone" section turns into the dark contrast band (it's the light one in dark mode) */
html[data-theme="light"] .sec--bone {
  background: #15161a; color: #f5f5f0;
  --void: #060607; --panel: #111215; --panel-2: #181a1e; --line: rgba(245, 245, 240, .14);
  --white: #f5f5f0; --dim: #8a8d95; --fg-rgb: 245, 245, 240; --bg-rgb: 21, 22, 26;
  --acid-fg: var(--acid); --cyan-fg: var(--cyan); --yellow-fg: var(--yellow); --mag-fg: var(--mag); --hover-bg: #24272d; --ink: #f5f5f0;
}
html[data-theme="light"] .sec--bone .lbl, html[data-theme="light"] .sec--bone .sec__note { color: #9a958b; }
html[data-theme="light"] .sec--bone .cam { --ink: #000; }
/* theme switch: a short cross-fade (not when motion is off) */

/* ---------- THEME + MOTION switches (nav + phone menu) ---------- */
.nav__motion {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 3px 0 9px;
  border: 1.5px solid rgba(var(--fg-rgb), .42); background: var(--panel-2); color: var(--white);
  font: 700 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nav__motion:hover, .nav__motion:focus-visible { border-color: var(--acid); box-shadow: 3px 3px 0 var(--acid); transform: translate(-1px, -1px); }
.nav__motion:active { transform: none; box-shadow: none; }
.nav__motion b { display: inline-block; min-width: 4.4em; padding: 6px 7px; text-align: center; background: var(--acid); color: var(--on-acid); font-weight: 800; }
.nav__motion[aria-pressed="false"] b { background: var(--red); color: var(--on-hot); }
.nav__theme b, .nav__theme[aria-pressed="false"] b { background: var(--white); color: var(--void); }
.nav__ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__theme .ico-sun, html[data-theme="light"] .nav__theme .ico-moon { display: none; }
html[data-theme="light"] .nav__theme .ico-sun { display: inline; }
.nav__motion[aria-pressed="false"] .nav__ico { opacity: .5; }
@media (max-width: 1180px) { .nav__motion > span { display: none; } }  /* tight nav: icon + state only */
.navmenu__foot .nav__motion { height: 44px; padding: 0 4px 0 12px; font-size: 13px; color: var(--white); }
.navmenu__foot .nav__motion > span { display: inline; }


/* ---------- LIGHT MODE accent: riso blue instead of acid (warm paper + riso inks) ---------- */
html[data-theme="light"] {
  --acid: #2f45ff; --acid-rgb: 47, 69, 255; --acid-fg: #2338e6; --on-acid: #f7f5ef;
  --cyan: #00b8d9; --cyan-fg: #00788c; --yellow: #ffc21a;
}
/* dark islands keep acid */
html[data-theme="light"] :is(.cam, .scene, .scene-float, .file, .case, .terminal, .modal__media, .sec--bone) { --acid: #c8ff00; --acid-rgb: 200, 255, 0; --on-acid: #060607; --cyan: #22e4ff; --yellow: #ffd23f; }
/* rows / menu links / channels whose hover fill is the first (accent) colour get light text */
html[data-theme="light"] .db__row:not(.db__row--head):nth-child(3n+1):hover,
html[data-theme="light"] .navmenu__links li:nth-child(3n+1) a:is(:hover, :focus-visible, :active),
html[data-theme="light"] .navmenu__links li:nth-child(3n+1) a:is(:hover, :focus-visible, :active) :is(b, i),
html[data-theme="light"] a.chan:nth-of-type(odd):hover, html[data-theme="light"] a.chan:nth-of-type(odd):hover :is(span, em, b) { color: var(--on-acid); }
/* hazard tape in riso: blue + paper */
html[data-theme="light"] .hazard { background: repeating-linear-gradient(-45deg, var(--acid) 0 14px, var(--void) 14px 28px); }
html[data-theme="light"] .hazard__track span { background: var(--acid); color: var(--on-acid); }
html[data-theme="light"] .filler.is-strip { background: repeating-linear-gradient(-45deg, #c8ff00 0 8px, #060607 8px 16px); }

/* light mode: the mixed-media lettering gets a printed drop shadow so it lifts off the paper.
   Per letter (not on the whole title) so letters that move or swap don't repaint the rest. */
html[data-theme="light"] :is(#title, #contact-title) .gl__body,
html[data-theme="light"] .gbh .gl.is-mat .gl__body {
  filter: drop-shadow(.025em .035em 0 rgba(17, 17, 20, .82)); /* one sharp shadow only: a blurred second one redrew every frame and cost ~25 % of the frame rate on phones */
}

/* ---------- WD2 loaders / stingers (js/loaders.js) ---------- */
.loader.is-open { background: transparent !important; }
.wd-stinger { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 99990; pointer-events: none; }
.wd-hud { position: fixed; left: clamp(18px, 4vw, 56px); top: clamp(18px, 6vh, 64px); z-index: 99996; pointer-events: none;
  display: flex; align-items: center; gap: 12px; font: 400 clamp(16px, 1.6vw, 24px)/1 Silkscreen, VT323, monospace; letter-spacing: .06em;
  opacity: 0; transition: opacity .08s steps(2); }
.wd-hud.is-on { opacity: 1; }
.wd-hud--dark { color: #e6e6e2; text-shadow: -2px 0 rgba(255, 43, 214, .55), 2px 0 rgba(34, 228, 255, .55); }
.wd-hud--light { color: #121214; text-shadow: -2px 0 rgba(255, 43, 214, .45), 2px 0 rgba(0, 184, 217, .45); }
.wd-hud__p { font-size: .7em; opacity: .7; }
.wd-hud__spin { width: 1.1em; height: 1.1em; border-radius: 50%; border: .2em dotted currentColor; animation: wd-spin .9s steps(8) infinite; }
.wd-hud__t { position: relative; font-weight: 400; animation: wd-jit 2.4s steps(1) infinite; }
@keyframes wd-spin { to { transform: rotate(360deg); } }
@keyframes wd-jit { 0%, 86%, 100% { transform: none; clip-path: none; } 88% { transform: translate(-4px, 0); clip-path: inset(0 0 55% 0); } 91% { transform: translate(5px, 1px); clip-path: inset(40% 0 0 0); } 94% { transform: translate(-2px, 0); } }
.wd-pack { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 99990; }
.loader .wd-pack { z-index: 0; }

/* ---------- phone-size navigation: bigger, easier-to-hit controls ---------- */
.is-burger .nav { padding-block: 10px; }
.is-burger .nav__burger { height: 48px; padding: 0 16px; gap: 11px; font-size: 13px; border-width: 1.5px; }
.is-burger .nav__burger-ico { width: 24px; height: 16px; }
.is-burger .nav__burger-ico i { height: 3px; }
.is-burger .nav__burger-ico i:nth-child(2) { top: 6.5px; right: 6px; }
.is-burger .nav__burger-ico i:nth-child(3) { top: 13px; right: 11px; }
.is-burger.menu-open .nav__burger-ico i:nth-child(1), .is-burger.menu-open .nav__burger-ico i:nth-child(3) { top: 6.5px; right: 0; }
.is-burger .nav .nav__book { height: 48px; padding: 0 14px; gap: 9px; font-size: 13px; border-width: 1.5px; }
.is-burger .nav .nav__book-ico { width: 16px; height: 16px; }
@media (max-width: 440px) {
  .is-burger .nav__burger { width: 48px; padding: 0; }
  .is-burger .nav .nav__book { padding: 0 11px; }
}
/* in the menu: THEME / MOTION / STICKER BOOK as big touch buttons */
.navmenu__foot { gap: 12px; }
.navmenu__foot > button { flex: 1 1 220px; justify-content: center; min-height: 58px; }
.navmenu__foot .nav__motion { height: 58px; padding: 0 6px 0 16px; font-size: 15px; gap: 10px; }
.navmenu__foot .nav__motion b { padding: 9px 11px; }
.navmenu__foot .nav__ico { width: 22px; height: 22px; }
.navmenu__foot .nav__book { height: 58px; padding: 0 18px; gap: 12px; font-size: 15px; border-width: 1.5px; color: var(--white); }
.navmenu__foot .nav__book::before { content: "STICKER BOOK"; letter-spacing: .1em; }
.navmenu__foot .nav__book .nav__book-ico { width: 18px; height: 18px; order: -1; }

/* contact channels: platform icons */
.chan { grid-template-columns: 4ch 14ch minmax(0, 1fr) 2ch; }
.chan span { display: inline-flex; align-items: center; gap: 9px; }
.chan span u { text-decoration: none; }
.chan__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--white); transition: transform .3s var(--spring); }
.chan__ico .f { fill: currentColor; stroke: none; }
.chan__ico .pulse { animation: chan-pulse 1.6s steps(6) infinite; transform-origin: center; }
@keyframes chan-pulse { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.1); } }
a.chan:hover .chan__ico { transform: rotate(-8deg) scale(1.15); color: inherit; }
@media (max-width: 520px) { .chan { grid-template-columns: 3ch 11ch minmax(0, 1fr) 2ch; gap: 8px; } }

/* ---------- pop-up: FINAL / PROCESS switch + BEFORE / AFTER slider ---------- */
.mswitch { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.mswitch__b { padding: 7px 14px; border: 1.5px solid var(--line); font: 700 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--white); text-transform: uppercase; transition: background-color .15s, color .15s, border-color .15s; }
.mswitch__b:hover:not(:disabled) { border-color: var(--accent, var(--acid)); }
.mswitch__b.is-on { background: var(--accent, var(--acid)); border-color: var(--accent, var(--acid)); color: var(--on-accent, var(--on-acid)); }
.mswitch__b:disabled { opacity: .35; cursor: not-allowed; }
.mswitch__ba { margin-left: auto; }
.ba { position: absolute; z-index: 2; overflow: hidden; pointer-events: auto; cursor: ew-resize; --x: 50%; }
.ba__media { position: absolute; left: 0; top: 0; width: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--x)) 0 0); pointer-events: none; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 34px; margin-left: -17px; cursor: ew-resize; touch-action: none; }
.ba__line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--accent, var(--acid)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.ba__line i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: var(--accent, var(--acid)); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); }
.ba__line i::before { content: "◀ ▶"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--f-mono); color: var(--on-accent, var(--on-acid)); letter-spacing: -.05em; }
.ba__tag { position: absolute; top: 10px; padding: 3px 8px; font: 700 11px/1 var(--f-mono); letter-spacing: .12em; background: rgba(0, 0, 0, .65); color: #f5f5f0; pointer-events: none; }
.ba__tag--l { left: 10px; } .ba__tag--r { right: 10px; }

/* ---------- CV download ---------- */
.cvbtn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 14px 14px; padding: 12px 16px; background: var(--acid); color: var(--on-acid); font: 800 14px/1 var(--f-mono); letter-spacing: .12em; text-decoration: none; clip-path: var(--skew); transition: background-color .15s, transform .15s; }
.cvbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cvbtn:hover { background: var(--mag); color: var(--on-hot); transform: translateY(-2px); }

/* ---------- profile: bio + sticker wall column ---------- */
.dossier__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wall { border: 1px solid var(--line); background: var(--panel); }
.wall__bar { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 700 11px/1.2 var(--f-mono); letter-spacing: .12em; color: var(--dim); }
.wall__n { color: var(--acid-fg); font-weight: 700; }
.wall__board { position: relative; aspect-ratio: 16 / 7; overflow: hidden; cursor: default;
  background: radial-gradient(circle at 30% 20%, rgba(var(--fg-rgb), .05), transparent 60%), repeating-linear-gradient(0deg, rgba(var(--fg-rgb), .035) 0 1px, transparent 1px 4px), linear-gradient(135deg, #1b1915, #121110); }
html[data-theme="light"] .wall__board { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .6), transparent 60%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 4px), linear-gradient(135deg, #d8cfbd, #c9bfac); }
.wall.is-empty .wall__board::after { content: "[ EMPTY WALL - BE THE FIRST ]"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); }
.wall.is-placing .wall__board { cursor: crosshair; outline: 2px dashed var(--acid); outline-offset: -6px; }
.wall__stk { position: absolute; width: 11%; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .35)); pointer-events: none; }
.wall__stk img { display: block; width: 100%; height: auto; }
.wall__stk.is-ghost { opacity: .7; }
.wall__stk.is-new { animation: slap .45s var(--spring); }
.wall__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.wall__hint { margin: 0; font-size: 13px; color: var(--dim); flex: 1 1 200px; }
.wall__go { padding: 9px 14px; background: var(--acid); color: var(--on-acid); font: 800 12px/1 var(--f-mono); letter-spacing: .12em; clip-path: var(--skew); }
.wall__go:disabled { opacity: .4; cursor: not-allowed; }
.wall__picks { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; }
.wall__pick { flex: none; width: 74px; padding: 4px; border: 1px solid var(--line); background: var(--panel-2); }
.wall__pick:hover { border-color: var(--acid); transform: rotate(-4deg); }
.wall__pick img { display: block; width: 100%; height: auto; }
.wall__empty { margin: 0; font-size: 13px; color: var(--dim); }

/* ---------- admin dashboard ---------- */
.adm { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(var(--bg-rgb), .8); backdrop-filter: blur(3px); }
.adm__box { width: min(760px, 100%); max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--acid); box-shadow: 8px 8px 0 rgba(var(--acid-rgb), .2); }
.adm__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--acid); color: var(--on-acid); font: 700 12px/1 var(--f-mono); letter-spacing: .1em; }
.adm__x { font-weight: 700; color: inherit; }
.adm__body { padding: 16px; font-family: var(--f-mono); font-size: 12px; }
.adm__body h4 { margin: 22px 0 8px; font: 700 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--acid-fg); }
.adm__login { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.adm__login label { display: grid; gap: 6px; flex: 1 1 220px; letter-spacing: .12em; color: var(--dim); }
.adm__login input { padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--white); font: inherit; font-size: 14px; }
.adm__login button, .adm__acts button { padding: 10px 16px; background: var(--acid); color: var(--on-acid); font-weight: 700; letter-spacing: .1em; }
.adm__msg { flex: 1 1 100%; margin: 6px 0 0; color: var(--dim); }
.adm__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.adm__tiles div { padding: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.adm__tiles b { display: block; font: 800 26px/1 var(--f-display); color: var(--white); }
.adm__tiles span { font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.adm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm__list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 5ch 5ch; gap: 10px; align-items: center; }
.adm__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.adm__l small { margin-left: 8px; color: var(--dim); }
.adm__b { height: 10px; background: rgba(var(--fg-rgb), .07); }
.adm__b i { display: block; height: 100%; background: var(--dim); }
.adm__list li.is-top .adm__b i { background: var(--acid); }
.adm__list li.is-low .adm__b i { background: var(--red); }
.adm__list b { text-align: right; color: var(--white); }
.adm__list em { font-style: normal; text-align: right; color: var(--dim); }
.adm__note { margin: 8px 0 0; color: var(--dim); line-height: 1.6; }
.adm__wall { display: flex; flex-wrap: wrap; gap: 6px; }
.adm__wall button { position: relative; width: 64px; padding: 3px; border: 1px solid var(--line); background: var(--panel-2); }
.adm__wall img { display: block; width: 100%; }
.adm__wall span { position: absolute; top: 2px; right: 4px; color: var(--red); font-weight: 700; opacity: 0; }
.adm__wall button:hover span { opacity: 1; }
.adm__wall button:hover { border-color: var(--red); }
.adm__acts { display: flex; gap: 8px; margin-top: 22px; }
#footer-owner { cursor: default; user-select: none; }


/* ---------- sound: [SFX] [MUSIC] — click = mute that one, hover = its own slider ---------- */
.sndw { display: flex; align-items: flex-end; gap: 6px; font: 700 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--white); }
.sndw--corner { position: fixed; left: clamp(14px, 2.4vw, 30px); bottom: 46px; z-index: 900; }
.is-burger .sndw--corner { display: none; }
.sndw__ch { position: relative; }
.sndw__b { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid rgba(var(--fg-rgb), .42); background: var(--panel-2); color: var(--white); transition: border-color .15s, box-shadow .15s, transform .15s, color .15s; }
.sndw__b svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sndw__b .spk { fill: currentColor; }
.sndw__b .off { opacity: .2; }
.sndw__b:hover, .sndw__b:focus-visible { border-color: var(--acid); box-shadow: 3px 3px 0 var(--acid); transform: translate(-1px, -1px); }
.sndw__ch.is-muted .sndw__b { color: var(--red); border-color: var(--red); }
.sndw__p { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 38px; background: var(--panel-2); border: 1.5px solid rgba(var(--fg-rgb), .42); white-space: nowrap; }
.sndw__p b { color: var(--dim); font-weight: 700; }
.sndw input[type="range"] { width: 110px; accent-color: var(--acid); cursor: pointer; }
.sndw__n { min-width: 4ch; text-align: right; color: var(--acid-fg); }
/* corner: only the hovered button's slider pops out, above it */
.sndw--corner .sndw__p { position: absolute; left: 0; bottom: calc(100% + 6px); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .2s var(--ease-out); }
.sndw--corner .sndw__ch:hover .sndw__p, .sndw--corner .sndw__ch:focus-within .sndw__p { opacity: 1; transform: none; pointer-events: auto; }
/* hover bridge from a button up to its slider — only for the channel you're on, so moving up from SFX
   to its slider never lands on MUSIC's bridge (which used to switch the slider to music) */
.sndw--corner .sndw__ch::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 240px; height: 50px; pointer-events: none; }
.sndw--corner .sndw__ch:hover::before { pointer-events: auto; }
.sndw--corner .sndw__ch:hover, .sndw--corner .sndw__ch:focus-within { z-index: 2; }
/* phone menu: one tidy row per channel */
.sndw--menu { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 10px; }
.sndw--menu .sndw__ch { display: flex; gap: 8px; }
.sndw--menu .sndw__b { width: 58px; height: 58px; flex: none; }
.sndw--menu .sndw__b svg { width: 26px; height: 26px; }
.sndw--menu .sndw__p { flex: 1; height: 58px; font-size: 14px; }
.sndw--menu input[type="range"] { flex: 1; width: auto; }

/* ---------- console (profile terminal) ---------- */
.terminal.is-live { cursor: text; }
/* the console only grabs the mouse wheel once you click into it — before that, scrolling moves the page */
/* capped (and scrollable) only once commands have printed something — before that the whole about text shows */
.terminal.is-live .terminal__body { overflow-y: hidden; }
.terminal.is-live.has-out .terminal__body { max-height: 520px; }
.terminal.is-live.is-typing .terminal__body { overflow-y: auto; overscroll-behavior: contain; }
.term__out { display: grid; gap: 2px; }
.term__line { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term__line.is-cmd { color: var(--acid-fg); }
.term__line.is-dim { color: var(--dim); }
.term__form { display: flex; align-items: baseline; gap: .5ch; margin: 0; }
.term__in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font: inherit; caret-color: var(--acid); padding: 0; }
.term__in::placeholder { color: var(--dim); opacity: .55; }

/* ---------- admin: complete rankings ---------- */
.adm__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--dim); letter-spacing: .12em; }
.adm__sort button { padding: 6px 10px; border: 1px solid var(--line); color: var(--white); letter-spacing: .1em; }
.adm__sort button.is-on { background: var(--acid); border-color: var(--acid); color: var(--on-acid); }
.adm__head, .adm__rank li { display: grid; grid-template-columns: 3ch minmax(0, 1.5fr) minmax(40px, 1.2fr) repeat(5, 5ch) 5ch; gap: 8px; align-items: center; }
.adm__head { margin-bottom: 4px; font-size: 10px; letter-spacing: .1em; color: var(--dim); }
.adm__head em, .adm__head b { font-style: normal; text-align: right; }
.adm__rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.adm__rank li:not(:has(em)) { grid-template-columns: 3ch minmax(0, 1.5fr) minmax(40px, 2.4fr) 5ch; }
.adm__rank li:has(em):not(:has(em:nth-of-type(4))) { grid-template-columns: 3ch minmax(0, 1.5fr) minmax(40px, 1.8fr) repeat(3, 5ch) 5ch; }
.adm__i { color: var(--dim); }
.adm__rank .adm__b { height: 10px; background: rgba(var(--fg-rgb), .07); }
.adm__rank .adm__b i { display: block; height: 100%; width: var(--w); background: color-mix(in srgb, var(--acid) calc(var(--k) * 100%), var(--dim)); }
.adm__rank em { font-style: normal; text-align: right; color: var(--dim); }
.adm__rank b { text-align: right; color: var(--white); }
@media (max-width: 640px) { .adm__head { display: none; } .adm__rank li, .adm__rank li:has(em) { grid-template-columns: 3ch minmax(0, 1fr) 5ch !important; } .adm__rank .adm__b, .adm__rank em { display: none; } }

/* =========================================================
   VHS MODE — a modern take on tape: deep indigo + warm cream, tape-label rainbow stripes,
   soft rounded "cassette" shapes, pill buttons, VT323 labels, an animated tracking band in the nav.
   (No filter on the page itself — that is what made the page grow forever before.)
   ========================================================= */
html.vhs, html.vhs[data-theme="light"], html.vhs[data-theme="dark"] {
  color-scheme: dark;
  --void: #100b1c; --ink: #07040d; --panel: #1a1230; --panel-2: #241943; --line: rgba(255, 228, 196, .16);
  --white: #fbeedd; --bone: #f3d9b8; --dim: #a99bc7; --fg-rgb: 251, 238, 221; --bg-rgb: 16, 11, 28;
  --acid: #ff9f1c; --acid-rgb: 255, 159, 28; --acid-fg: #ffb547; --on-acid: #1b0f04;
  --mag: #ff3d81; --mag-fg: #ff74a6; --cyan: #3ee6d1; --cyan-fg: #63f0de; --yellow: #ffd23f; --yellow-fg: #ffd23f;
  --red: #ff5241; --blue: #7a6bff; --orange: #ff7a3d; --on-acc: #140c22; --on-hot: #fff6ea; --hover-bg: #2c2050;
  --skew: inset(0 round 12px);
  --tape: linear-gradient(180deg, #ff5241 0 20%, #ff9f1c 20% 40%, #ffd23f 40% 60%, #3ee6d1 60% 80%, #7a6bff 80%);
}
html.vhs :is(.cam, .scene, .scene-float, .file, .case, .terminal, .modal__media, .sec--bone) {
  --acid: #ff9f1c; --acid-rgb: 255, 159, 28; --acid-fg: #ffb547; --on-acid: #1b0f04; --void: #100b1c; --white: #fbeedd; --dim: #a99bc7; --fg-rgb: 251, 238, 221; --bg-rgb: 16, 11, 28; --line: rgba(255, 228, 196, .16); --panel: #1a1230; --panel-2: #241943;
}
html.vhs body {
  background-color: var(--void);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(122, 107, 255, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 61, 129, .14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  background-attachment: fixed;
}
html.vhs .sec--bone { background: #1d1436; color: var(--white); }
/* nav: frosted indigo bar, a tape-stripe underline that shimmers, a tracking band sweeping through */
html.vhs .nav-dither { display: none; }
html.vhs .nav { background: rgba(16, 11, 28, .78); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); overflow: hidden; }
html.vhs .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--tape); background-size: 100% 100%; opacity: .95; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
html.vhs .nav::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, .09) 47%, rgba(62, 230, 209, .12) 50%, rgba(255, 61, 129, .1) 53%, transparent 60%) 0 0 / 300% 100%; animation: vhs-track 5s linear infinite; }
@keyframes vhs-track { from { background-position: 150% 0; } to { background-position: -150% 0; } }
html.vhs.reduce-motion .nav::before { animation: none; }
html.vhs .nav__brand { letter-spacing: .02em; }
html.vhs :is(.nav__links a, .lbl, .sec__id, .filter, .mswitch__b, .footer, .nav__motion, .nav__book, .chan span, .wall__bar, .adm__bar) { font-family: VT323, ui-monospace, monospace; font-size: 1.32em; letter-spacing: .06em; }
html.vhs .nav__links a { border-radius: 999px; padding-inline: 12px; }
/* pill buttons */
html.vhs :is(.nav__motion, .nav__book, .filter, .mswitch__b, .sndw__b, .sndw__p, .pager button, .channel, .wall__go, .adm__sort button) { border-radius: 999px; }
html.vhs .nav__motion b { border-radius: 999px; }
html.vhs .sndw__b { border-radius: 50%; }
/* rounded cassette panels with a soft offset shadow in tape colours */
html.vhs :is(.file, .terminal, .idcard, .chanpanel, .wall, .book, .modal__box, .adm__box, .copy, .navmenu__foot > button) { border-radius: 16px; overflow: hidden; }
html.vhs :is(.terminal, .idcard, .chanpanel, .wall) { border: 1.5px solid var(--line); box-shadow: 6px 6px 0 rgba(255, 61, 129, .28), 12px 12px 0 rgba(122, 107, 255, .18); }
html.vhs .file { box-shadow: 0 0 0 1.5px var(--line); }
html.vhs .file:hover { box-shadow: 0 0 0 2px var(--acid), 6px 6px 0 rgba(255, 61, 129, .35); }
html.vhs .cam { border-radius: 22px; box-shadow: 0 0 0 2px var(--line), 10px 10px 0 rgba(255, 159, 28, .35), -6px -6px 0 rgba(62, 230, 209, .3); }
html.vhs .terminal__bar { background: var(--tape); background-size: 100% 300%; color: var(--on-acid); }
html.vhs .terminal__bar i { border-radius: 50%; }
html.vhs .idcard__strip { background: linear-gradient(90deg, #ff5241, #ff9f1c 35%, #ffd23f 55%, #3ee6d1 80%, #7a6bff); color: var(--on-acid); }
/* section headers: tape-label underline instead of the dashed rule */
html.vhs .sec__line { height: 10px; border-radius: 999px; background: var(--tape); opacity: .9; }
html.vhs .sec__title .gl__body { filter: drop-shadow(-2px 0 0 rgba(255, 61, 129, .55)) drop-shadow(2px 0 0 rgba(62, 230, 209, .55)); }
html.vhs .band--acid { background: var(--acid); }
html.vhs .band--mag { background: var(--blue); }
html.vhs .hazard { background: repeating-linear-gradient(-45deg, var(--acid) 0 14px, var(--blue) 14px 28px); }
html.vhs .badge__arrow, html.vhs .cvbtn, html.vhs .wall__go, html.vhs .copy__btn { border-radius: 999px; }
html.vhs .fx-noise { opacity: .1; }
/* the on-screen display: pill chips like a modern VCR menu, plus a slow tracking band */
.vhs-osd { position: fixed; inset: 0; z-index: 9400; pointer-events: none; font: 400 clamp(18px, 1.9vw, 26px)/1 VT323, monospace; color: #fbeedd;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(8, 4, 16, .45)); }
.vhs-osd__chip { position: absolute; padding: 6px 14px 4px; border-radius: 999px; background: rgba(16, 11, 28, .72); border: 1.5px solid rgba(251, 238, 221, .28); backdrop-filter: blur(6px); letter-spacing: .08em; }
.vhs-osd__play { top: 92px; left: clamp(16px, 4vw, 56px); color: #3ee6d1; }
.vhs-osd__sp { top: 92px; right: clamp(16px, 4vw, 56px); }
.vhs-osd__t { bottom: 46px; right: clamp(16px, 4vw, 56px); color: #ff9f1c; }
.vhs-osd__band { position: absolute; left: 0; right: 0; top: 0; height: 12vh; background: linear-gradient(transparent, rgba(255, 255, 255, .06) 35%, rgba(122, 107, 255, .08) 55%, transparent); mix-blend-mode: screen; animation: vhs-band 7s linear infinite; will-change: transform; }
@keyframes vhs-band { from { transform: translateY(-15vh); } to { transform: translateY(105vh); } }
html.vhs.reduce-motion .vhs-osd__band { animation: none; transform: translateY(70vh); }

/* =========================================================
   HOLIDAY MODE (html.xmas — js/holiday.js): pine-night (dark) / snowy paper (light),
   berry red + gold + pine, candy-cane stripes, fairy lights, snow, your own hero art (content.js → hero.art.holiday)
   ========================================================= */
html.xmas, html.xmas[data-theme="dark"] {
  --void: #0b1712; --ink: #050b08; --panel: #10221a; --panel-2: #163024; --line: rgba(255, 240, 220, .15);
  --white: #fff6e8; --bone: #f6e7cf; --dim: #a1baab; --fg-rgb: 255, 246, 232; --bg-rgb: 11, 23, 18;
  --acid: #e8383d; --acid-rgb: 232, 56, 61; --acid-fg: #ff6f6f; --on-acid: #fff6e8;
  --mag: #ffc94d; --mag-fg: #ffd36e; --on-hot: #241304; --cyan: #7fd6ff; --cyan-fg: #93ddff;
  --yellow: #ffc94d; --yellow-fg: #ffd36e; --red: #e8383d; --blue: #2fbf71; --orange: #ff8a3d; --on-acc: #0b1712; --hover-bg: #1d3a2c;
  --candy: repeating-linear-gradient(-45deg, #e8383d 0 10px, #fff6e8 10px 20px);
}
html.xmas[data-theme="light"] {
  color-scheme: light;
  --void: #f8f3ea; --panel: #fffdf8; --panel-2: #efe6d6; --line: rgba(22, 35, 27, .16);
  --white: #16231b; --bone: #e9dcc3; --dim: #5f7366; --fg-rgb: 22, 35, 27; --bg-rgb: 248, 243, 234;
  --acid: #c8232c; --acid-rgb: 200, 35, 44; --acid-fg: #b01c25; --on-acid: #fff6e8;
  --mag: #1f8a52; --mag-fg: #1a7a48; --on-hot: #ffffff; --cyan: #2e8fd0; --cyan-fg: #1f77b3;
  --yellow: #e7a51c; --yellow-fg: #a86f00; --red: #c8232c; --blue: #1f8a52; --on-acc: #fff6e8; --hover-bg: #e3d8c4;
  --candy: repeating-linear-gradient(-45deg, #c8232c 0 10px, #fffdf8 10px 20px);
}
/* the "always dark" screens keep a dark palette, now with berry red */
html.xmas :is(.cam, .scene, .scene-float, .file, .case, .terminal, .modal__media, .sec--bone) {
  --void: #0b1712; --panel: #10221a; --panel-2: #163024; --line: rgba(255, 240, 220, .15); --white: #fff6e8; --dim: #a1baab;
  --fg-rgb: 255, 246, 232; --bg-rgb: 11, 23, 18; --acid: #e8383d; --acid-rgb: 232, 56, 61; --acid-fg: #ff6f6f; --on-acid: #fff6e8;
}
html.xmas body {
  background-color: var(--void);
  background-image: radial-gradient(ellipse 70% 45% at 50% 105%, rgba(255, 138, 61, .16), transparent 70%),
    radial-gradient(circle, rgba(var(--fg-rgb), .07) 1px, transparent 1.4px);
  background-size: auto, 22px 22px;
}
html.xmas[data-theme="light"] body { background-image: radial-gradient(ellipse 70% 45% at 50% 105%, rgba(255, 138, 61, .1), transparent 70%), radial-gradient(circle, rgba(46, 143, 208, .12) 1px, transparent 1.4px); }
html.xmas .sec--bone { background: #0f2a1e; color: #fff6e8; }
html.xmas .nav-dither { display: none; }
html.xmas .nav { background: linear-gradient(180deg, rgba(var(--bg-rgb), .95), rgba(var(--bg-rgb), .82)); backdrop-filter: blur(8px); }
html.xmas .hazard, html.xmas .filler.is-strip { background: var(--candy); }
html.xmas .band--acid { background: var(--acid); color: var(--on-acid); }
html.xmas .band--mag { background: var(--blue); color: #fff6e8; }
html.xmas :is(.nav__motion, .nav__book, .filter, .mswitch__b, .wall__go, .cvbtn, .copy__btn, .pager button) { border-radius: 8px; }
html.xmas :is(.terminal, .idcard, .chanpanel, .wall, .file, .cam, .book, .modal__box, .adm__box) { border-radius: 12px; overflow: hidden; }
/* window bars: solid berry red with white text, the candy stripe only as a thin band on top (text never sits on stripes) */
html.xmas .terminal__bar, html.xmas .idcard__strip, html.xmas .book__bar, html.xmas .adm__bar { background: var(--candy) top left / 100% 5px no-repeat, var(--acid); color: var(--on-acid); text-shadow: none; }
html.xmas .sec__title .gl__body { filter: drop-shadow(0 -3px 0 #fff6e8) drop-shadow(2px 3px 0 rgba(0, 0, 0, .35)); } /* a little snow on top of every letter */
html.xmas[data-theme="light"] .sec__title .gl__body { filter: drop-shadow(0 -3px 0 #ffffff) drop-shadow(2px 3px 0 rgba(22, 35, 27, .3)); }
/* fairy lights */
html.xmas .sec__line { position: relative; height: 1px; background: none; }
.xl-wrap { display: none; }
html.xmas .xl-wrap { display: block; position: absolute; left: 0; right: 0; pointer-events: none; }
html.xmas .xl-nav { bottom: -14px; height: 26px; }
html.xmas .sec__line .xl-wrap { top: -8px; height: 30px; }
.xl { display: block; width: 100%; height: 100%; overflow: visible; }
/* twinkle: plain opacity in two groups (no animated filters — much cheaper to paint) */
.xl__b:nth-child(odd) rect:last-child { animation: xl-twinkle 2.4s steps(1) infinite; }
.xl__b:nth-child(even) rect:last-child { animation: xl-twinkle 2.4s steps(1) -1.2s infinite; }
@keyframes xl-twinkle { 50% { opacity: .4; } }
html.reduce-motion .xl__b rect:last-child { animation: none; }
/* snow */
.xsnow { display: none; }
html.xmas .xsnow { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 640; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }

/* =========================================================
   HERO ART — your own picture / GIF / video behind the big lettering (js/hero-art.js, set in content.js → hero.art)
   ========================================================= */
.hero__art { position: absolute; left: var(--x, 50%); top: var(--y, 50%); height: var(--h, 70%); transform: translate(-50%, -50%); z-index: -1; pointer-events: none; opacity: var(--o, 1); }
.hero__art > * { display: block; height: 100%; width: auto; max-width: none; }
@media (max-width: 760px) { .hero__art { height: var(--hp, var(--h, 70%)); } }

/* =========================================================
   POP-UP GALLERY — extra photos / clips under the description (gallery: [...] in data.js);
   pointing at one shows it big next to the cursor (phones: tap)
   ========================================================= */
.modal__gallery { grid-column: 1 / -1; }
.modal__gallery[hidden] { display: none; }
.modal__gallery-label { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.modal__gallery-row { display: flex; flex-direction: column; gap: 10px; }
.gal-line { display: flex; gap: 10px; }
.gal { position: relative; min-width: 0; padding: 0; border: 1px solid var(--line); background: #000; cursor: zoom-in; overflow: hidden; transition: transform .2s var(--spring, ease), border-color .15s; }
.gal > img, .gal > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal:hover, .gal:focus-visible { transform: translateY(-3px) rotate(-1deg); border-color: var(--accent, var(--acid)); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 7px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-float { position: fixed; left: 0; top: 0; z-index: 9600; pointer-events: none; will-change: transform; }
.gal-float__box { position: relative; background: #000; border: 2px solid var(--white); box-shadow: 6px 6px 0 var(--accent, var(--acid)), 6px 6px 0 2px var(--void);
  opacity: 0; transform: scale(.3) rotate(-4deg); transform-origin: 0 100%; transition: opacity .14s linear, transform .28s var(--spring, ease); }
.gal-float.is-on .gal-float__box { opacity: 1; transform: rotate(var(--sf-rot, -1.5deg)); }
.gal-float__box > img, .gal-float__box > video { display: block; width: auto; height: auto; max-width: min(46vw, 720px); max-height: 66vh; }
.gal-float__box .gal__cap { font-size: 11px; padding: 6px 9px; white-space: normal; }
/* phones / keyboard: tapped = centred, dimmed behind, tap to close */
.gal-float.is-tap { inset: 0; display: grid; place-items: center; transform: none !important; background: rgba(0, 0, 0, .7); pointer-events: auto; }
.gal-float.is-tap:not(.is-on) { display: none; }
.gal-float.is-tap .gal-float__box > img, .gal-float.is-tap .gal-float__box > video { max-width: 92vw; max-height: 80vh; }
html.reduce-motion .gal-float__box { transition: opacity .1s linear; }

/* the song credit — shows with the MUSIC slider when you point at the MUSIC button (content.js → music.credit) */
.sndw__credit { position: absolute; left: -1.5px; bottom: calc(100% + 5px); padding: 5px 9px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; color: var(--white); background: var(--panel-2); border: 1.5px solid rgba(var(--fg-rgb), .42); pointer-events: none; }
.sndw--menu .sndw__p { position: relative; }
.sndw--menu .sndw__credit { left: 0; right: 0; white-space: normal; text-align: left; }

/* pop-up link buttons (links: in data.js — DOWNLOAD / GITHUB …) */
.modal__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal__links[hidden] { display: none; }
.modal__link { display: inline-flex; align-items: center; padding: 10px 14px; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-decoration: none; color: var(--white); border: 1.5px solid rgba(var(--fg-rgb), .42); background: var(--panel-2); transition: transform .15s, box-shadow .15s, border-color .15s; }
.modal__link.is-main { background: var(--accent, var(--acid)); color: var(--on-acid, #060607); border-color: transparent; }
.modal__link:hover, .modal__link:focus-visible { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--accent, var(--acid)); border-color: var(--accent, var(--acid)); }
.modal__link.is-main:hover, .modal__link.is-main:focus-visible { box-shadow: 3px 3px 0 var(--white); }

/* archive filters: always on their own line under the title, aligned right — the same in every browser
   (before, whether they fit next to the title depended on the window width, e.g. Edge's sidebar) */
#work .sec__head .filters { flex: 1 1 100%; justify-content: flex-end; }
@media (max-width: 700px) { #work .sec__head .filters { justify-content: flex-start; } }

/* =========================================================
   PHONE FIXES — reel player HUD + contact rows (nothing overlaps, everything fits)
   ========================================================= */
@media (max-width: 640px) {
  /* reel: small corner tags, smaller PLAY, the picture stays visible */
  .cam__hud { font-size: 9px; letter-spacing: .06em; }
  .cam__br { width: 14px; height: 14px; }
  .cam__br--tl, .cam__br--tr { top: 8px; } .cam__br--bl, .cam__br--br { bottom: 8px; }
  .cam__br--tl, .cam__br--bl { left: 8px; } .cam__br--tr, .cam__br--br { right: 8px; }
  .cam__rec { top: 12px; left: 28px; gap: 4px; }
  .cam__rec i { width: 6px; height: 6px; }
  .cam__label { top: 12px; right: 28px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
  .cam__tc { top: 26px; left: 28px; font-size: 9px; }
  .cam__cross { width: 24px; height: 24px; margin: -12px; }
  .cam__lower { left: 10px; bottom: 44px; font-size: 8.5px; max-width: calc(100% - 20px); }
  .cam__lower-tag { padding: 3px 7px; }
  .cam__lower-title { padding: 3px 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cam__play { padding: 8px 14px; font-size: 11px; letter-spacing: .1em; }
  .cam__controls { gap: 6px; padding: 6px 8px; font-size: 10px; }

  /* contact: number + icon/label on top, the value underneath at full width (wraps instead of cutting off) */
  .chanpanel__bar { flex-wrap: wrap; font-size: 10px; }
  .chanpanel__live { white-space: nowrap; font-size: 10px; padding: 3px 8px; }
  .chan { grid-template-columns: 3ch minmax(0, 1fr) 2ch; grid-template-areas: "n l a" "n v a"; gap: 4px 10px; padding: 12px; }
  .chan b { grid-area: n; align-self: start; padding-top: 2px; }
  .chan span { grid-area: l; font-size: 10px; }
  .chan em { grid-area: v; font-size: var(--chan-fs, 15px); line-height: 1.15; }
  .chan i { grid-area: a; align-self: center; }
}

/* =========================================================
   BURGER MENU — opening animation: a stepped "scan" wipe with a bright line riding the edge,
   the links glitch in one by one (RGB split + skew), the buttons at the bottom pop up last
   ========================================================= */
.navmenu { transition: clip-path .42s steps(9, end), visibility 0s .42s; }
.menu-open .navmenu { transition: clip-path .5s steps(10, end); }
.navmenu::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px; background: var(--acid); box-shadow: 0 0 14px var(--acid), 0 0 2px #fff; opacity: 0; pointer-events: none; z-index: 2; }
.menu-open .navmenu::after { animation: menu-scan .5s steps(10, end) both; }
@keyframes menu-scan { 0% { top: 0; opacity: 1; } 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.menu-open .navmenu__links a { animation: menu-link .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 70ms + 180ms); }
@keyframes menu-link {
  0% { opacity: 0; transform: translateX(-46px) skewX(-18deg); text-shadow: -6px 0 var(--mag), 6px 0 var(--cyan); clip-path: inset(0 100% 0 0); }
  35% { opacity: 1; clip-path: inset(0 30% 0 0); }
  60% { transform: translateX(8px) skewX(6deg); text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); clip-path: inset(0 0 0 0); }
  78% { transform: translateX(-3px) skewX(0); text-shadow: none; }
  100% { opacity: 1; transform: none; text-shadow: none; clip-path: inset(0 0 0 0); }
}
.navmenu__foot > * { opacity: 0; transform: translateY(16px) scale(.92); transition: opacity .2s, transform .2s; }
.menu-open .navmenu__foot > * { animation: menu-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--n, 0) * 60ms + 520ms); }
.navmenu__foot > *:nth-child(2) { --n: 1; } .navmenu__foot > *:nth-child(3) { --n: 2; } .navmenu__foot > *:nth-child(4) { --n: 3; }
@keyframes menu-pop { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
html.reduce-motion .navmenu, html.reduce-motion .menu-open .navmenu { transition: visibility 0s, clip-path 0s; }
html.reduce-motion .navmenu::after { display: none; }
html.reduce-motion .menu-open .navmenu__links a, html.reduce-motion .menu-open .navmenu__foot > * { animation: none; opacity: 1; transform: none; }

/* gallery on phones (tapped open): arrows, counter, close; zoom-in on open, slide between photos, zoom-out on close */
.gal-float__nav, .gal-float__count, .gal-float__x { display: none; }
.gal-float.is-tap { transition: background-color .22s; }
.gal-float.is-tap .gal-float__box { opacity: 1; transform: none; transition: none; }
.gal-float.is-tap .gal-float__box.in-open { animation: gal-open .34s cubic-bezier(.2, 1.3, .4, 1) both; }
.gal-float.is-tap .gal-float__box.in-next { animation: gal-next .3s cubic-bezier(.2, .9, .3, 1) both; }
.gal-float.is-tap .gal-float__box.in-prev { animation: gal-prev .3s cubic-bezier(.2, .9, .3, 1) both; }
.gal-float.is-tap.is-closing { background: rgba(0, 0, 0, 0); }
.gal-float.is-tap.is-closing .gal-float__box { animation: gal-close .22s ease-in both; }
@keyframes gal-open { from { opacity: 0; transform: scale(.82) translateY(24px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes gal-next { from { opacity: 0; transform: translateX(60px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes gal-prev { from { opacity: 0; transform: translateX(-60px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes gal-close { to { opacity: 0; transform: scale(.88) translateY(18px); } }
.gal-float.is-tap .gal-float__nav, .gal-float.is-tap .gal-float__x {
  display: grid; place-items: center; position: fixed; z-index: 2; width: 48px; height: 48px; padding: 0;
  font: 400 30px/1 var(--f-mono); color: var(--on-acid, #060607); background: var(--acid); border: 0;
  box-shadow: 3px 3px 0 #000; cursor: pointer;
}
.gal-float.is-tap .gal-float__nav { top: 50%; margin-top: -24px; }
.gal-float.is-tap .gal-float__nav.is-prev { left: 10px; }
.gal-float.is-tap .gal-float__nav.is-next { right: 10px; }
.gal-float.is-tap .gal-float__x { top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; font-size: 18px; background: var(--white); color: #060607; }
.gal-float.is-tap .gal-float__nav:active, .gal-float.is-tap .gal-float__x:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.gal-float.is-tap .gal-float__count { display: block; position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 6px 12px; font: 700 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--white); background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); }
.gal-float.is-tap.is-single .gal-float__nav, .gal-float.is-tap.is-single .gal-float__count { display: none; }
.gal-float.is-tap .gal-float__box > img, .gal-float.is-tap .gal-float__box > video { max-width: calc(100vw - 24px); }
html.reduce-motion .gal-float.is-tap .gal-float__box { animation: none !important; }

/* contact values: one line, sized to fit by js/text.js (--chan-fs); the icons follow that size; the status row wraps balanced */
a.chan em { font-size: var(--chan-fs, clamp(13px, 1.2vw, 16px)); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.chan__ico { width: clamp(15px, calc(var(--chan-fs, 15px) * 1.3), 20px); height: clamp(15px, calc(var(--chan-fs, 15px) * 1.3), 20px); }
.chan--static em { white-space: normal; overflow: visible; overflow-wrap: normal; word-break: normal; text-wrap: balance; }

/* gallery on phones v2: a full-screen vertical strip — previous photo peeking in above (▲), the photo, the next one
   peeking in below (▼), blurred + darkened; tap a peek / arrow or swipe up / down; it loops */
.gal-peek { display: none; }
.gal-float.is-tap { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .86); }
.gal-float.is-tap:not(.is-on) { display: none; }
.gal-float.is-tap .gal-peek { display: block; position: relative; flex: 0 0 15svh; width: calc(100vw - 40px); overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: #000; }
.gal-float.is-tap .gal-peek.is-prev { order: 1; }
.gal-float.is-tap .gal-float__box { order: 2; flex: 0 1 auto; }
.gal-float.is-tap .gal-peek.is-next { order: 3; }
.gal-float.is-tap .gal-peek > img, .gal-float.is-tap .gal-peek > video { display: block; width: 100%; height: 100%; object-fit: cover;
  filter: blur(3px) brightness(.42) saturate(.8); transform: scale(1.06); }
.gal-float.is-tap .gal-peek.is-prev > * { object-position: 50% 100%; } /* shows the bottom of the photo before … */
.gal-float.is-tap .gal-peek.is-next > * { object-position: 50% 0%; }   /* … and the top of the one after */
.gal-float.is-tap .gal-peek.is-prev { -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
.gal-float.is-tap .gal-peek.is-next { -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.gal-float.is-tap .gal-peek.in-anim { animation: gal-peek .35s ease-out both; }
@keyframes gal-peek { from { opacity: 0; } to { opacity: 1; } }
.gal-float.is-tap .gal-float__box > img, .gal-float.is-tap .gal-float__box > video { max-width: calc(100vw - 20px); max-height: calc(100svh - 30svh - 70px); }
.gal-float.is-tap.is-single .gal-peek { display: none; }
.gal-float.is-tap.is-single { justify-content: center; }
/* arrows sit on the peeks: ▲ at the top, ▼ at the bottom */
.gal-float.is-tap .gal-float__nav { left: 50%; margin: 0 0 0 -24px; width: 48px; height: 40px; font-size: 16px; }
.gal-float.is-tap .gal-float__nav.is-prev { top: calc(max(10px, env(safe-area-inset-top)) + 7.5svh - 20px); right: auto; }
.gal-float.is-tap .gal-float__nav.is-next { top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 7.5svh - 20px); right: auto; }
.gal-float.is-tap .gal-float__count { left: 16px; bottom: auto; top: max(16px, env(safe-area-inset-top)); transform: none; z-index: 2; }
.gal-float.is-tap .gal-float__x { z-index: 3; }
/* slide in from the direction you went: next comes up from below, previous down from above */
@keyframes gal-next { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gal-prev { from { opacity: 0; transform: translateY(-70px) scale(.96); } to { opacity: 1; transform: none; } }
.gal-float.is-tap .gal-float__nav.is-prev, .gal-float.is-tap .gal-float__nav.is-next { left: 50%; right: auto; margin: 0 0 0 -24px; }
.gal-float.is-tap { background: rgba(4, 4, 6, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* peeks fill all the space above / below the photo; the arrow sits in the middle of each */
.gal-float.is-tap { justify-content: center; }
.gal-float.is-tap .gal-peek { flex: 1 1 0; min-height: 9svh; }
.gal-peek__m { position: absolute; inset: 0; }
.gal-peek__m.in-anim { animation: gal-peek .35s ease-out both; }
.gal-float.is-tap .gal-peek__m > img, .gal-float.is-tap .gal-peek__m > video { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.42) saturate(.8); transform: scale(1.06); }
.gal-float.is-tap .gal-peek.is-prev .gal-peek__m > * { object-position: 50% 100%; }
.gal-float.is-tap .gal-peek.is-next .gal-peek__m > * { object-position: 50% 0%; }
.gal-float.is-tap .gal-peek .gal-float__nav.is-prev, .gal-float.is-tap .gal-peek .gal-float__nav.is-next {
  position: absolute; left: 50%; top: 50%; bottom: auto; margin: 0; transform: translate(-50%, -50%); }
.gal-float.is-tap .gal-peek .gal-float__nav:active { transform: translate(calc(-50% + 2px), calc(-50% + 2px)); }
.gal-float.is-tap .gal-float__box > img, .gal-float.is-tap .gal-float__box > video { max-height: calc(100svh - 18svh - 60px); }
.gal-float.is-tap .gal-peek.is-prev, .gal-float.is-tap .gal-peek.is-next { -webkit-mask: none; mask: none; }
.gal-float.is-tap .gal-peek.is-prev .gal-peek__m { -webkit-mask: linear-gradient(transparent, #000 55%); mask: linear-gradient(transparent, #000 55%); }
.gal-float.is-tap .gal-peek.is-next .gal-peek__m { -webkit-mask: linear-gradient(#000 45%, transparent); mask: linear-gradient(#000 45%, transparent); }
.gal-float.is-tap .gal-peek { border-color: transparent; background: transparent; }

/* phones: fit pop-ups to the part of the screen you can actually SEE (dvh = without the browser's address bar /
   bottom bar). vh counts the space behind those bars, which cut off the top + bottom of the pop-up in Brave. */
@supports (height: 100dvh) {
  .modal { height: 100dvh; bottom: auto; }
  .modal__box { max-height: calc(100dvh - 2 * var(--gutter, 16px)); }
  .book { max-height: min(560px, calc(100dvh - 120px)); }
  .adm__box { max-height: calc(100dvh - 32px); }
}

/* phones: the hero title as a poster — each word of the name on its own line (js/gumball.js fit() sets the sizes) */
.title .gl-space.is-break { flex: 0 0 100%; width: 100%; height: 0; }
@media (max-width: 639px) and (orientation: portrait) {
  .hero .title__name { row-gap: 0; margin-top: .1em; }
  .hero .title__name .gl-word { line-height: .92; }
  .hero .title__line1 { row-gap: .1em; }
}
/* phones: the hero's content starts below the nav's dither band (which hangs to 240 % of the nav's height) */
@media (max-width: 639px) and (orientation: portrait) {
  .hero, .is-burger .hero { padding-top: calc(var(--navbar-h, 68px) * 2.4 + 10px); }
}

/* VHS mode: the reel's channel list sits on dark purple — light text + outlines instead of black */
html.vhs .channel { color: var(--white); border-color: rgba(var(--fg-rgb), .35); }
html.vhs .channel:hover { background: var(--white); color: #1d1436; }
html.vhs .channel:hover .channel__len { color: #1d1436; }
/* the e-mail copy box: never breaks "[ COPY ]" over two lines; on phones it gets slimmer and the address shrinks to fit */
.copy { max-width: 100%; }
.copy__addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy__btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .copy { font-size: clamp(12px, 3.6vw, 15px); }
  .copy__addr { padding: 11px 12px; }
  .copy__btn { padding: 11px 12px; }
}
/* only the big title on the opening screen can be dragged; "REACH OUT!" just swaps on click (scrolling over it works) */
#contact-title .gl { cursor: pointer; touch-action: auto; }

/* reel: no crosshair over the video */
.cam__cross { display: none; }
/* fullscreen: overlays sit on the video picture itself (js sets --vl/--vt/--vw/--vh/--vb = where the picture is) */
.cam.is-fs .cam__hud { inset: auto; left: var(--vl, 0); top: var(--vt, 0); width: var(--vw, 100%); height: var(--vh, 100%); }
.cam.is-fs .cam__lower { left: calc(var(--vl, 0px) + 12px); bottom: calc(var(--vb, 0px) + 56px); }
.cam.is-fs.has-room .cam__controls { top: calc(var(--vt) + var(--vh) + 6px); bottom: auto; left: var(--vl); width: var(--vw); right: auto; background: none; }
.cam.is-fs.has-room .cam__lower { bottom: calc(var(--vb) + 12px); }

/* =========================================================
   INFLUENCES on touch screens: tap a row → a panel slides open under it with the clip (▼ = has a clip)
   ========================================================= */
.db__row.is-tap { cursor: pointer; padding-right: 34px; }
.db__row.is-tap::after { content: "▼"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 400 11px/1 var(--f-mono); color: var(--acid-fg); transition: transform .3s var(--spring, ease); }
.db__row.is-tap.is-open::after { transform: translateY(-50%) rotate(180deg); }
.db__row.is-tap.is-open::before { transform: scaleX(1); }
.db__row.is-tap.is-open { color: var(--on-acc); }
.db__row.is-tap.is-open :is(.db__type, .db__note) { color: inherit; }
.db__drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s cubic-bezier(.2, .8, .3, 1); border-bottom: 1px solid var(--line); }
.db__drop.is-open { grid-template-rows: 1fr; }
.db__drop-in { overflow: hidden; min-height: 0; }
.db__drop-box { width: min(100%, 460px); margin: 12px auto 16px; background: #000; border: 2px solid var(--white); box-shadow: 6px 6px 0 var(--sf-c, var(--acid)), 6px 6px 0 2px var(--void);
  opacity: 0; transform: translateY(-14px) scale(.96) rotate(-1deg); transition: opacity .25s .08s, transform .4s .05s var(--spring, ease); }
.db__drop.is-open .db__drop-box { opacity: 1; transform: rotate(-.6deg); }
.db__drop-box .scene { width: 100%; border: 0; }
.db__drop-box .scene.is-media { aspect-ratio: auto; min-height: 120px; }
.db__drop-box .scene.is-media > img, .db__drop-box .scene.is-media > video { height: auto; max-height: 60vh; object-fit: contain; }
html.reduce-motion .db__drop, html.reduce-motion .db__drop-box { transition: none; }

/* pop-up: quiet prev / next in the top bar — small, dim, only lights up when you look for it */
.modal__bar { gap: 12px; }
.modal__nav { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; opacity: .38; transition: opacity .2s; }
.modal__nav[hidden] { display: none; }
.modal__nav:hover, .modal__nav:focus-within { opacity: 1; }
.modal__step { background: none; border: 0; color: inherit; font: inherit; font-size: 15px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.modal__pos { min-width: 5.2ch; text-align: center; }
.modal__nav + .modal__close { margin-left: 4px; }


/* =========================================================
   HERO TITLE - two styles (toggle under the title): CLEAN (default) / PLAYFUL (the Gumball collage)
   ========================================================= */
.title-wrap { align-self: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vh, 26px); }
.title-wrap .title { align-self: auto; }
.title-wrap > [hidden] { display: none !important; }
.title-plain { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; font-weight: 400; user-select: none; }
.tp__top { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(13px, 1.9vw, 30px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: var(--dim); }
.tp__name { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 7.6vw, 150px); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; color: var(--white); margin-top: .08em; }
.title-plain .gl { cursor: pointer; }
.js .title-plain:not(.is-built) { visibility: hidden; animation: show-anyway 0s 2s forwards; }
.title-plain.is-built { animation: tp-in .7s var(--ease-out, ease) both; }
@keyframes tp-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html.reduce-motion .title-plain.is-built { animation: none; }
/* the style toggle: small and quiet, like the other switches */
.title-mode { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; border: 1px solid rgba(var(--fg-rgb), .28); background: rgba(var(--bg-rgb), .5); }
/* phones held upright: the clean name on two lines, each as wide as the screen allows */
@media (max-width: 639px) and (orientation: portrait) {
  .tp__name { font-size: 14.4vw; line-height: .95; }
  .tp__name .gl-word { display: block; }
  .tp__top { font-size: 3.9vw; max-width: 22ch; }
}
.tp__name .gl-word + .gl-word { margin-left: .22em; }
@media (max-width: 639px) and (orientation: portrait) { .tp__name .gl-word + .gl-word { margin-left: 0; } }
.tp__name .gl-word { white-space: nowrap; display: inline-flex; }
@media (max-width: 639px) and (orientation: portrait) { .tp__name { font-size: 12.4vw; } .tp__name .gl-word { display: flex; justify-content: center; } }

/* title style: a real on/off switch — CLEAN ◯── PLAYFUL (on = playful) */
.title-mode { border: 0; background: none; gap: 10px; font-size: 10px; letter-spacing: .16em; }
.title-mode__side { color: var(--dim); cursor: pointer; transition: color .2s; user-select: none; }
.title-mode:not(.is-on) .title-mode__side[data-m="clean"], .title-mode.is-on .title-mode__side[data-m="playful"] { color: var(--white); }
.title-mode__sw { position: relative; width: 46px; height: 24px; padding: 0; border-radius: 999px; border: 1.5px solid rgba(var(--fg-rgb), .45);
  background: rgba(var(--fg-rgb), .14); cursor: pointer; transition: background-color .25s, border-color .25s; }
.title-mode__knob { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background-color .25s; }
.title-mode.is-on .title-mode__sw { background: var(--acid); border-color: var(--acid); }
.title-mode.is-on .title-mode__knob { transform: translateX(22px); background: #060607; }
.title-mode__sw:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
html.reduce-motion .title-mode__knob { transition: none; }

/* clean title: letters pop in with a soft spring and fade out gently (no hard squash) */
.title-plain .gl__body { transition: transform .38s cubic-bezier(.2, .9, .3, 1.25), opacity .22s ease-out; }
.title-plain .gl.flip-out .gl__body { transform: scale(.86); opacity: 0; transition: transform .16s ease-in, opacity .16s ease-in; }
html.reduce-motion .title-plain .gl__body { transition: opacity .15s; }
