/* =========================================================
   Kizaru — "Engraved Ink" theme
   Palette: signal red / ink black / paper — with cyan, green & yellow accents
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e2120c;
  --red-deep: #c70d0a;
  --ink: #0a0909;
  --paper: #f2ede3;
  --yellow: #f2cf1d;
  --cyan: #3fb2e8;
  --green: #5ccc4a;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* optical size 14 keeps Bodoni's hairlines solid at poster sizes (96 makes A, N, Z lose strokes) */
  --opsz: "opsz" 14;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 2vw, 28px);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clicking empty space never leaves a selection bar or a tap flash; real text stays selectable */
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
p, li, .contact__mail, .legal { -webkit-user-select: text; user-select: text; }
.hero p, .hero li, .gate p, .hold, .chip, .caption, .burst { -webkit-user-select: none; user-select: none; }

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas { display: block; }
ul, ol { list-style: none; }
b { font-weight: 600; }

:focus { outline: none; }
:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 4px; }
/* mouse & touch users never see the keyboard focus ring (it returns as soon as Tab is pressed) */
.pointer-nav :focus-visible { outline: none; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  /* open dialogs sit in the top layer, above the custom cursor, so give them the system one back */
  html.has-cursor dialog[open], html.has-cursor dialog[open] * { cursor: auto !important; }
  html.has-cursor dialog[open] button, html.has-cursor dialog[open] a { cursor: pointer !important; }
}

/* ---------- type helpers ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.serif-i {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  font-variation-settings: var(--opsz);
}

/* split text — no clipping, so italics, descenders and shadows always render in full */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; perspective: 600px; }
.ch-in { display: inline-block; transform-origin: 50% 90%; will-change: transform, opacity; }

/* ---------- global layers ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#three { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#three[data-layer="front"] { z-index: 3; }
#three[data-layer="top"] { z-index: 45; }
main { position: relative; z-index: 2; }

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 70; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- chips / notes (the "paper label" UI) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 11px;
  /* transform is NOT transitioned: magnetic buttons are moved by GSAP */
  transition: box-shadow .35s var(--ease-out), background .25s, color .25s;
}
a.chip:hover, button.chip:hover { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }

.note {
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 13px 15px 14px;
  font-size: 13.5px; line-height: 1.5;
  max-width: 290px;
}
.note__k { opacity: .55; margin-bottom: 8px; }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); border: 1.5px solid var(--ink); margin-right: 7px; vertical-align: 1px;
  animation: pulse 1.6s var(--ease-io) infinite;
}
@keyframes pulse { 50% { transform: scale(.55); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; will-change: transform; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__ball {
  position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), opacity .25s, scale .3s var(--ease-out), background .25s;
  box-shadow: 2px 2px 0 var(--ink);
}
.cursor__label { font-size: 9px; letter-spacing: .1em; opacity: 0; transition: opacity .15s; color: var(--ink); white-space: nowrap; }
.cursor.is-label .cursor__ball { width: 60px; height: 60px; }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .08s; }
.cursor.is-hidden .cursor__ball { opacity: 0; }
.cursor.is-down .cursor__ball { scale: .8; background: var(--yellow); }

/* ---------- hold button ---------- */
.hold {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hold svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.hold__track { fill: none; stroke: rgba(10, 9, 9, .25); stroke-width: 2; }
.hold__bar { fill: none; stroke: var(--ink); stroke-width: 5; stroke-dasharray: 351.86; stroke-dashoffset: 351.86; stroke-linecap: butt; }
.hold__dot {
  position: absolute; inset: 18px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .45s var(--ease-out), background .25s;
  pointer-events: none;
}
.hold__main { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hold__sub { font-size: 8.5px; opacity: .6; }
.hold:hover .hold__dot { transform: scale(1.06); }
.hold.is-holding .hold__dot { transform: scale(.9); background: var(--yellow); }
.hold--sm { width: 112px; height: 112px; }
.hold--sm .hold__dot { inset: 15px; }

/* ---------- GATE ---------- */
.gate { position: fixed; inset: 0; z-index: 40; color: var(--ink); --sun: min(150px, 24vmin); }
.gate__ui { position: absolute; inset: 0; }
.gate__row { position: absolute; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gate__row--top { top: var(--gutter); }
.gate__row--bot { bottom: var(--gutter); }
.gate__row--bot > span { opacity: .7; }
.gate__kicker, .gate__name { position: absolute; left: 0; right: 0; text-align: center; }
.gate__kicker { top: calc(50% - var(--sun) - 84px); font-size: 26px; }
.gate__name {
  top: calc(50% + var(--sun) + 54px);
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 52px); letter-spacing: 0; line-height: 1;
  font-variation-settings: var(--opsz);
}
.gate .hold { position: absolute; left: 50%; top: 50%; margin: -66px 0 0 -66px; z-index: 2; }
html.js .gate .hold { visibility: hidden; }
.gate__hint {
  position: absolute; left: 50%; top: calc(50% + 82px); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 5px 9px; white-space: nowrap;
}
html.js .gate__hint { visibility: hidden; }
.gate__skip { padding: 6px 10px; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--gutter); pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud__logo {
  font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: .02em; text-transform: uppercase;
  padding: 5px 11px 6px; font-variation-settings: var(--opsz);
}
.hud__mid { gap: 10px; }
.hud__roll { display: inline-block; overflow: hidden; height: 1.3em; }
.hud__roll > span { display: inline-block; }
.hud__roll--label { min-width: 84px; }
.hud__line { width: 28px; height: 1.5px; background: var(--ink); }
.hud__right { display: flex; gap: 12px; align-items: center; }
.hud__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); border: 1px solid var(--ink); animation: pulse 1.4s var(--ease-io) infinite; }
.hud__menu { min-width: 74px; justify-content: center; }

/* ---------- MENU ---------- */
.menu { position: fixed; inset: 0; z-index: 46; visibility: hidden; pointer-events: none; }
.menu.is-open { pointer-events: auto; }
.menu__bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(92deg, transparent 0 23px, rgba(10, 9, 9, .55) 23px 25px),
    var(--red-deep);
  clip-path: circle(0% at 94% 4%);
}
.menu__sun {
  position: absolute; right: 7vw; top: 50%; width: min(38vw, 60vh); aspect-ratio: 1; margin-top: calc(min(38vw, 60vh) / -2);
  border-radius: 50%; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink);
  background:
    radial-gradient(circle at 34% 30%, transparent 0 38%, rgba(10, 9, 9, .55) 75%),
    repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 8px),
    var(--red);
}
.menu__list { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; }
.menu__list li { overflow: hidden; padding: 0 .3em .1em 0; }
.menu__a {
  display: inline-flex; align-items: baseline; gap: 22px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 8.2vh, 96px); line-height: .98; letter-spacing: 0;
  color: var(--paper); text-shadow: .045em .045em 0 var(--ink);
  font-variation-settings: var(--opsz);
}
.menu__num { color: var(--paper); text-shadow: none; transform: translateY(-1.6em); opacity: .8; }
.menu__txt { display: inline-block; transition: transform .6s var(--ease-out), color .3s; }
.menu__a:hover .menu__txt { transform: translateX(2.2vw); color: var(--yellow); }
.menu__foot { position: absolute; left: 8vw; right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--paper); }
.menu__foot a:hover { color: var(--yellow); }

/* ---------- shared section titles ---------- */
.sec-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(52px, 9vw, 150px); line-height: .88; letter-spacing: -.01em;
  color: var(--paper); text-shadow: .04em .04em 0 var(--ink);
  font-variation-settings: var(--opsz);
}
.sec-title em, .work__title em { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.sec-title--dark { color: var(--ink); text-shadow: .04em .04em 0 var(--red); }

/* ---------- 01 HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 110px var(--gutter) 110px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hero__ui { position: absolute; inset: 0; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.note--tl { position: absolute; top: 92px; left: var(--gutter); }
.note--tr { position: absolute; top: 92px; right: var(--gutter); max-width: 250px; }

.hero__title {
  position: relative; text-align: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(76px, 17.5vw, 320px); line-height: .82; letter-spacing: 0;
  color: var(--paper); font-variation-settings: var(--opsz);
}
.hero__line { display: block; }
.hero__line .ch-in { text-shadow: .035em .035em 0 var(--ink); }
.hero__kicker {
  display: block; font-size: clamp(20px, 2.4vw, 38px); line-height: 1;
  margin-bottom: 1.2em; color: var(--paper); text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 0;
}

.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.hero__roles { display: flex; flex-wrap: wrap; gap: 6px; max-width: 46%; }
.hero__roles li { background: var(--ink); color: var(--paper); padding: 5px 8px; }
.hero__hint { background: var(--paper); color: var(--ink); padding: 6px 10px; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.hero__scroll { display: flex; align-items: center; gap: 10px; color: var(--paper); text-shadow: 1px 1px 0 var(--ink); }
.hero__scroll-line { position: relative; width: 1.5px; height: 46px; background: rgba(242, 237, 227, .35); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- 02 ABOUT / MANIFESTO ---------- */
.manifesto { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.manifesto .note--ml { position: absolute; left: var(--gutter); top: 50%; margin-top: -90px; }
.manifesto .note--mr { position: absolute; right: var(--gutter); top: 50%; margin-top: -90px; }
.stats { display: grid; gap: 8px; }
.stats li { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid rgba(10, 9, 9, .15); padding-top: 7px; }
.stats b { flex: none; white-space: nowrap; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; min-width: 72px; font-variation-settings: var(--opsz); font-variant-numeric: tabular-nums; }
.stats .mono { font-size: 9.5px; opacity: .65; }
.manifesto__cap { position: absolute; left: 0; right: 0; bottom: calc(var(--gutter) + 6px); text-align: center; color: var(--ink); }
.manifesto__big {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(46px, 9.5vw, 160px); line-height: .9; letter-spacing: -.01em;
  color: var(--paper); text-shadow: .04em .04em 0 var(--ink); pointer-events: none;
  font-variation-settings: var(--opsz);
}
.manifesto__big .ln { display: block; overflow: hidden; padding: 0 .25em .16em; }
.manifesto__big .ln > span { display: inline-block; }
.manifesto__big .serif-i { font-weight: 400; text-transform: lowercase; font-size: 1.05em; }

/* ---------- WORK / SERVICES ---------- */
.work { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.work__track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center; gap: clamp(40px, 6vw, 110px);
  padding: 0 8vw; will-change: transform;
}
.work__head { flex: 0 0 auto; width: min(36vw, 560px); }
.work__kick { color: var(--paper); margin-bottom: 18px; text-shadow: 1px 1px 0 var(--ink); }
.work__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(60px, 9.5vw, 168px); line-height: .86; letter-spacing: -.01em;
  color: var(--paper); text-shadow: .04em .04em 0 var(--ink);
  font-variation-settings: var(--opsz);
}
.work__lead { margin-top: 28px; }

.plate { position: relative; }
.work__track > .plate { flex: 0 0 auto; width: min(42vw, 640px); perspective: 1400px; }
.work__track > .plate:nth-child(odd) { margin-top: -7vh; }
.work__track > .plate:nth-child(even) { margin-top: 9vh; }
.work__track > .plate--eyes { width: min(56vw, 880px); margin-top: 0 !important; }
.plate__link { display: block; transform-style: preserve-3d; will-change: transform; }
.plate__media {
  position: relative; aspect-ratio: 4 / 3; max-height: 56vh;
  border: 2px solid var(--ink); background: var(--ink);
  box-shadow: 9px 9px 0 var(--ink); overflow: hidden;
}
.plate__media canvas { width: 100%; height: 100%; }
.plate__num { position: absolute; top: 12px; left: 12px; padding: 4px 8px; box-shadow: 2px 2px 0 var(--ink); }
.plate__meta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-top: 0; box-shadow: 9px 9px 0 var(--ink);
  padding: 14px 16px 16px;
}
.plate__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 36px); line-height: .95; letter-spacing: 0; max-width: 14ch;
  font-variation-settings: var(--opsz);
}
.plate__desc { font-size: 13.5px; margin-top: 6px; max-width: 34ch; opacity: .8; }
.plate__tags { text-align: right; font-size: 9.5px; opacity: .7; white-space: nowrap; }
.plate__link:hover .plate__meta { background: var(--yellow); }
.plate__meta { transition: background .3s; }

.plate__media--eyes { aspect-ratio: 3 / 1; max-height: none; background: var(--paper); }

.work__end { flex: 0 0 auto; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-right: 4vw; }
.work__end .serif-i { font-size: clamp(32px, 3.6vw, 58px); color: var(--paper); text-shadow: 3px 3px 0 var(--ink); max-width: 12ch; }
.work__bar { position: absolute; left: 8vw; right: 8vw; bottom: calc(var(--gutter) + 6px); height: 3px; background: rgba(10, 9, 9, .6); }
.work__bar span { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ---------- STORY (manga page) ---------- */
.manga { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.manga__page {
  position: absolute; inset: 92px max(var(--gutter), 5vw) 46px;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: .9fr 1.25fr; gap: 16px;
}
.panel { position: relative; min-height: 0; }
.panel .plate__media {
  width: 100%; height: 100%; aspect-ratio: auto; max-height: none;
  border: 3px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink);
}
.panel--wide { grid-column: 1 / -1; }
.caption {
  position: absolute; z-index: 2; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); padding: 6px 10px; box-shadow: 3px 3px 0 var(--ink); max-width: 80%;
}
.caption--tl { top: -12px; left: 18px; }
.caption--bl { bottom: -12px; left: 18px; }
.burst {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.burst__num {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: var(--opsz);
  font-size: clamp(80px, 13vh, 170px); line-height: .8; color: var(--paper);
  text-shadow: .05em .05em 0 var(--ink); font-variant-numeric: tabular-nums;
}
.burst__word {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(30px, 5vh, 62px); line-height: 1; color: var(--ink); margin-top: .1em;
}
.burst__sub { margin-top: 10px; background: var(--ink); color: var(--paper); padding: 4px 8px; }

/* ---------- SHOWREEL ---------- */
.reel { position: relative; padding: 20vh var(--gutter) 18vh; display: flex; flex-direction: column; align-items: center; gap: 7vh; }
.reel__head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.plate--reel { width: min(1180px, 100%); will-change: transform, clip-path; }
.reel__media { aspect-ratio: 16 / 9; max-height: none; border-width: 3px; box-shadow: 14px 14px 0 var(--ink); }
.reel__corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--paper); pointer-events: none; filter: drop-shadow(1px 1px 0 var(--ink)); }
.reel__corner--tl { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; }
.reel__corner--tr { top: 16px; right: 16px; border-top-width: 3px; border-right-width: 3px; }
.reel__corner--bl { bottom: 16px; left: 16px; border-bottom-width: 3px; border-left-width: 3px; }
.reel__corner--br { bottom: 16px; right: 16px; border-bottom-width: 3px; border-right-width: 3px; }
.reel__rec, .reel__tc, .reel__label {
  position: absolute; background: var(--ink); color: var(--paper); padding: 4px 8px; pointer-events: none;
}
.reel__rec { top: 22px; left: 58px; display: flex; align-items: center; gap: 7px; }
.reel__rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
.reel__tc { top: 22px; right: 58px; font-variant-numeric: tabular-nums; }
.reel__label { left: 58px; bottom: 22px; }
.reel__title {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(56px, 10vw, 170px); letter-spacing: .02em; color: var(--paper); text-shadow: .045em .045em 0 var(--ink);
}

/* ---------- WORKS (the archive) ---------- */
.works { position: relative; padding: 24vh var(--gutter) 18vh; }
.works__head { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.works__lead {
  max-width: 460px; background: var(--paper); color: var(--ink); padding: 8px 12px;
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.works__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.works__filter {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(16px, 1.5vw, 22px); line-height: 1; letter-spacing: .01em;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 14px 9px; transition: background .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.works__filter sup { font-family: var(--f-mono); font-size: 10px; font-weight: 500; vertical-align: top; margin-left: 4px; opacity: .7; }
.works__filter:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.works__filter.is-on { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.works__grid {
  max-width: 1240px; margin: 7vh auto 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.2vw, 30px);
}
.works__item.is-hidden { display: none; }
.works__card {
  display: block; width: 100%; text-align: left; padding: 0; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.works__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-bottom: 2px solid var(--ink); }
.works__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out), filter .6s; }
.works__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 11px 13px 12px; }
.works__code { font-size: 10px; letter-spacing: .06em; background: var(--ink); color: var(--paper); padding: 3px 6px; }
.works__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.05; letter-spacing: .01em;
}
.works__go { font-size: 14px; transition: transform .45s var(--ease-out); }
/* hover: the plate lifts, the shot zooms gently */
@media (hover: hover) {
  /* in keeping with the page, shots sit as red-and-black duotones until you look at them */
  .works__img::after {
    content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply;
    opacity: .74; transition: opacity .6s; pointer-events: none;
  }
  .works__img img { filter: grayscale(1) contrast(1.22) brightness(1.02); }
  .works__card:hover .works__img::after, .works__card:focus-visible .works__img::after { opacity: 0; }
  .works__card:hover .works__img img, .works__card:focus-visible .works__img img { filter: none; transform: scale(1.045); }
  .works__card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
  .works__card:hover .works__go { transform: translate(3px, -3px); }
  .works__card:hover .works__meta { background: var(--yellow); }
}
.works__meta { transition: background .3s; }
.works__more { display: flex; justify-content: center; margin-top: 7vh; }
.works__btn {
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--red);
  padding: 12px 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.works__btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--red); }
.works__more[hidden] { display: none; }

/* the viewer */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10, 9, 9, .94); color: var(--paper); overflow: hidden; touch-action: none;
}
.lb::backdrop { background: transparent; }
.lb__frame {
  position: absolute; inset: 64px 84px 40px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lb__img {
  display: block; max-width: 100%; max-height: calc(100% - 52px); width: auto; height: auto;
  border: 2px solid var(--paper); box-shadow: 12px 12px 0 var(--red); background: #1a1817;
  touch-action: pan-y; user-select: none; -webkit-user-drag: none;
}
.lb__bar { display: flex; align-items: baseline; gap: 14px; max-width: 100%; }
.lb__code { font-size: 11px; background: var(--paper); color: var(--ink); padding: 3px 7px; }
.lb__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(16px, 2vw, 26px); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb__count { font-size: 11px; opacity: .7; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--red);
  font-size: 20px; display: grid; place-items: center; transition: transform .3s var(--ease-out), background .25s;
}
.lb__nav:hover { background: var(--yellow); }
.lb__nav--prev { left: 18px; } .lb__nav--next { right: 18px; }
.lb__nav--prev:hover { transform: translate(-3px, -50%); } .lb__nav--next:hover { transform: translate(3px, -50%); }
.lb__close { position: absolute; top: 16px; right: 16px; padding: 7px 11px; }

/* ---------- SKILLS ---------- */
.toolkit { position: relative; padding: 24vh var(--gutter) 22vh; overflow-x: clip; }
.toolkit__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.toolkit__lead {
  max-width: 420px; background: var(--paper); color: var(--ink); padding: 8px 12px;
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
/* the bar (3D renders into these boxes): a cabinet of bottles, a black gap, then a full-width red
   stage where the hand pours into the glass standing on a white counter */
.bar { position: relative; margin: 8vh auto 0; }
.bar__cabinet { position: relative; max-width: 980px; height: min(66vh, 640px); min-height: 440px; margin: 0 auto; }
.bar__ceil, .bar__plank {
  position: absolute; left: 0; right: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(10, 9, 9, .55) 0 1.5px, transparent 1.5px 5px), var(--paper);
  border: 2px solid var(--ink);
}
.bar__ceil { top: 0; height: 22px; box-shadow: 0 7px 0 rgba(10, 9, 9, .85); }
.bar__plank { bottom: 0; height: 24px; box-shadow: 0 8px 0 var(--ink); }
.bar__shelf {
  position: absolute; left: 0; right: 0; top: 22px; bottom: 24px;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(30px, 7vw, 120px);
}
.bar__slot { position: relative; width: clamp(84px, 9.5vw, 136px); height: 90%; background: none; border: 0; z-index: 2; }
.bar__tag {
  position: absolute; left: 50%; bottom: -66px; transform: translateX(-50%); white-space: nowrap;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 7px; font-size: 9.5px; transition: background .25s, color .25s;
}
.bar__slot:hover .bar__tag { background: var(--yellow); }
.bar__slot.is-active .bar__tag { background: var(--ink); color: var(--paper); }
/* the chosen bottle has been lifted away: say where it went */
.bar__slot::after {
  content: "In hand ↓"; position: absolute; left: 50%; bottom: 34%; transform: translate(-50%, 8px);
  font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: var(--paper); border: 1.5px dashed var(--ink); padding: 6px 8px;
  opacity: 0; transition: opacity .4s .5s, transform .5s .5s var(--ease-out); pointer-events: none;
}
.bar__slot.is-active::after { opacity: 1; transform: translate(-50%, 0); }
.bar__band { height: clamp(48px, 9vh, 90px); margin: 92px calc(-1 * var(--gutter)) 0; background: var(--ink); }
.bar__stage {
  position: relative; margin: 0 calc(-1 * var(--gutter));
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px; background: var(--red);
}
/* with WebGL the red is drawn in 3D behind the hand, so the DOM stays clear */
.bar.has-3d .bar__stage { background: transparent; }
.bar__counter {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background: repeating-linear-gradient(0deg, rgba(10, 9, 9, .5) 0 1.5px, transparent 1.5px 6px), var(--paper);
  border-top: 3px solid var(--ink); box-shadow: 0 -8px 0 rgba(10, 9, 9, .28);
}
.bar__glass { position: absolute; left: 54%; bottom: 18%; width: 30vh; height: 40%; transform: translateX(-50%); }
.bar__pour {
  position: absolute; left: calc(54% + 20vh); bottom: 40%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bar__status {
  background: var(--ink); color: var(--paper); padding: 4px 8px; font-size: 9.5px; white-space: nowrap;
}

.vessels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 72px); max-width: 1180px; margin: 10vh auto 0;
}
.vessel__card {
  position: relative; width: 100%;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 16px 10px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.vessel__card.is-active { transform: translateY(-10px); box-shadow: 10px 12px 0 var(--ink); }
.vessel__card.is-active .mono i { animation: pulse 1.2s var(--ease-io) infinite; }
.vessel__card .mono { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vessel__card .mono i { width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 50%; }
.vessel__card li { border-top: 1px solid rgba(10, 9, 9, .14); padding: 7px 0; font-size: 14px; }

/* ---------- PRICING ---------- */
.exp { position: relative; padding: 24vh var(--gutter) 14vh; overflow-x: clip; }
.exp__head { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.exp__list { max-width: 1200px; margin: 9vh auto 0; display: grid; gap: 10px; perspective: 900px; }
.exp__row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 150px 1.6fr 1fr 60px; align-items: center; gap: 22px;
  padding: 24px 24px; background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(10, 9, 9, .55);
  transition: color .35s;
}
.exp__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.exp__row:hover { color: var(--ink); }
.exp__row:hover::before { transform: scaleX(1); }
.exp__yr { opacity: .7; }
.exp__role {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2.3vw, 34px); line-height: .95; letter-spacing: 0; font-variation-settings: var(--opsz);
}
.exp__co { font-size: 15px; opacity: .85; }
.exp__loc { text-align: right; color: var(--red); font-size: 16px; }

.deal {
  max-width: 1200px; margin: 9vh auto 0;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch;
}
.price-card, .terms-card {
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink); padding: 22px 24px 24px;
}
.price-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price-card__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 40px); line-height: .95; letter-spacing: 0; font-variation-settings: var(--opsz);
}
.price-card__price {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 9vw, 150px); line-height: .88;
  letter-spacing: -.02em; color: var(--red); text-shadow: .03em .03em 0 var(--ink); font-variation-settings: var(--opsz);
  font-variant-numeric: tabular-nums;
}
.price-card__price b { font-weight: 900; }
.price-card__price .mono { font-size: 11px; color: var(--ink); text-shadow: none; margin-top: 1.4em; letter-spacing: .08em; }
.price-card__note { max-width: 40ch; opacity: .8; margin-bottom: 6px; }
.terms-card ol { list-style: none; counter-reset: t; display: grid; gap: 0; }
.terms-card li {
  counter-increment: t; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline;
  border-top: 1px solid rgba(10, 9, 9, .15); padding: 14px 0; font-size: 15px;
}
.terms-card li::before { content: "0" counter(t); font-family: var(--f-display); font-weight: 900; font-size: 26px; color: var(--red); font-variation-settings: var(--opsz); }

.marquee {
  margin: 18vh -4vw 0; overflow: hidden; white-space: nowrap;
  background: var(--paper); color: var(--ink);
  border-block: 2px solid var(--ink); transform: rotate(-2.5deg);
  box-shadow: 0 8px 0 var(--ink);
}
.marquee__inner { display: inline-flex; will-change: transform; }
.marquee__inner span {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 7vw, 112px); line-height: 1.2; padding: 0 .1em; font-variation-settings: var(--opsz);
}
.marquee__inner b { color: var(--red); font-style: normal; font-weight: 400; margin: 0 .2em; }

/* ---------- CONTACT ---------- */
.contact {
  position: relative; min-height: 120vh;
  padding: 22vh var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact__eyes { width: min(720px, 92vw); margin-top: 26px; }
.contact__eyes .plate__media--eyes { aspect-ratio: 3.4 / 1; box-shadow: 8px 8px 0 var(--ink); }
.contact__big {
  margin-top: 5vh;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(50px, 9.5vw, 170px); line-height: .9; letter-spacing: -.01em;
  color: var(--paper); text-shadow: .04em .04em 0 var(--ink);
  font-variation-settings: var(--opsz);
}
.contact__l { display: block; }
.contact__big .serif-i { font-size: .86em; text-transform: none; margin-top: .06em; }
.contact__sub {
  margin-top: 4vh; background: var(--paper); color: var(--ink); padding: 8px 14px;
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 15px;
}
.contact__row { display: flex; align-items: center; gap: 26px; margin-top: 5vh; flex-wrap: wrap; justify-content: center; }
.contact__mail {
  font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 3.2vw, 46px); font-variation-settings: var(--opsz);
  background: var(--paper); color: var(--ink); padding: 6px 18px 10px;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: background .25s, box-shadow .35s var(--ease-out);
}
.contact__mail:hover { background: var(--yellow); box-shadow: 9px 9px 0 var(--ink); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.disclaimer { margin-top: 18px; font-size: 9.5px; opacity: .85; background: var(--ink); color: var(--paper); padding: 4px 8px; }
.foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 26px 0 var(--gutter); gap: 10px; }

/* ---------- legal dialog ---------- */
.legal {
  margin: auto; max-width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); overflow: auto;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: 0; overscroll-behavior: contain;
}
.legal::backdrop { background: rgba(10, 9, 9, .72); }
.legal__inner { position: relative; padding: 26px 28px 30px; }
.legal__close { position: absolute; top: 16px; right: 16px; }
.legal__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-variation-settings: var(--opsz);
  font-size: clamp(30px, 4vw, 44px); line-height: .95; margin-bottom: 14px;
}
.legal h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 6px; }
.legal p { font-size: 14px; line-height: 1.55; margin-bottom: 8px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, calc(100% + 48px)); transition: transform .6s var(--ease-out), visibility 0s .6s;
  background: var(--yellow); visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out); }

/* ---------- JS-driven initial states (only when JS runs) ---------- */
html.js .hud { visibility: hidden; }
html.js.is-entered .hud { visibility: visible; }
/* the page stays hidden under the intro, so nothing can ever collide with it */
html.js:not(.is-entered) main { visibility: hidden; }

/* ---------- no-WebGL / no-JS fallbacks ---------- */
html:not(.js) .gate, html.no-gsap .gate { display: none; }
html.no-gl .hero { background: repeating-linear-gradient(91deg, transparent 0 24px, rgba(10, 9, 9, .7) 24px 27px), var(--red-deep); }
html.no-gl .manifesto { background: radial-gradient(circle at 50% 46%, var(--red) 0 22vh, transparent 22.2vh), repeating-linear-gradient(90deg, transparent 0 5px, rgba(10, 9, 9, .2) 5px 6px), var(--paper); }
html.no-gl .reel { background: var(--ink); }
html.no-gl .manga { background: var(--paper); }
html.no-gl .work { background: linear-gradient(to top, var(--red) 0, var(--ink) 70%); }
html.no-gl .toolkit { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(10, 9, 9, .16) 5px 6px), var(--paper); }
html.no-gl .exp, html.no-gl .contact { background: var(--red); }
html.no-gl .gate { background: radial-gradient(circle, var(--red) 0 150px, transparent 151px), var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .exp__row { grid-template-columns: 110px 1fr 40px; }
  .exp__co { display: none; }
}

@media (max-width: 819px) {
  body { font-size: 14px; }
  .hide-sm, .menu__sun { display: none !important; }
  .note { max-width: 240px; font-size: 12.5px; }
  .note--tr { display: none; }
  .note--tl { top: 76px; }
  .hero { padding-top: 140px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__roles { max-width: 100%; }
  .hero__scroll { display: none; }
  .hud__roll--label { min-width: 74px; }
  .gate__row--bot { justify-content: space-between; }

  .manifesto .note--ml { top: 84px; margin-top: 0; max-width: calc(100% - 2 * var(--gutter)); }
  .manifesto .note--mr { top: auto; bottom: 64px; margin-top: 0; }

  .work { height: auto; overflow: visible; }
  .work__track { position: relative; height: auto; flex-direction: column; align-items: stretch; padding: 22vh var(--gutter) 14vh; gap: 64px; }
  .work__head { width: 100%; }
  .work__track > .plate, .work__track > .plate--eyes { width: 100%; margin-top: 0 !important; }
  .plate__tags { display: none; }
  .work__bar { display: none; }

  .reel__rec, .reel__tc { top: 12px; }
  .reel__rec { left: 12px; } .reel__tc { right: 12px; }
  .reel__label, .reel__corner { display: none; }

  .bar { margin-top: 6vh; }
  .bar__cabinet { height: 52vh; min-height: 380px; }
  .bar__shelf { gap: 7vw; }
  .bar__slot { width: 22vw; }
  .bar__tag { font-size: 8px; bottom: -56px; }
  .bar__slot::after { font-size: 8px; padding: 5px 6px; }
  .bar__band { margin-top: 76px; }
  .bar__stage { min-height: 600px; }
  .bar__counter { height: 20%; }
  .bar__glass { left: 66%; bottom: 20%; width: 30vw; height: 34%; }
  .bar__pour { left: auto; right: 5%; bottom: 3%; flex-direction: row-reverse; }
  .vessels { grid-template-columns: 1fr; gap: 24px; }
  .works { padding-top: 18vh; }
  .works__grid { gap: 22px; }
  .works__filter { padding: 9px 11px 8px; }
  .lb__frame { inset: 58px 12px 92px; }
  .lb__nav { top: auto; bottom: 22px; transform: none; width: 48px; height: 48px; }
  .lb__nav--prev { left: calc(50% - 60px); } .lb__nav--next { right: calc(50% - 60px); }
  .lb__nav--prev:hover, .lb__nav--next:hover { transform: none; }
  .lb__title { font-size: 15px; }

  .exp__row { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .exp__loc { display: none; }
  .deal { grid-template-columns: 1fr; }
  .manga { height: auto; overflow: visible; padding: 18vh var(--gutter) 12vh; }
  .manga__page { position: relative; inset: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 34px; }
  .panel--wide .plate__media { aspect-ratio: 2.4 / 1; height: auto; }
  .panel--eye .plate__media { aspect-ratio: 1.4 / 1; height: auto; }
  .panel--burst .plate__media { aspect-ratio: 1 / 1; height: auto; }

  .contact__big { font-size: clamp(42px, 12.5vw, 90px); }
  .gate__kicker { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-line::after, .live-dot, .hud__pulse, .reel__rec i { animation: none; }
}
