/* ==========================================================================
   THE AAMIR SHEIKH — v3 · three interfaces
   RIOT (electric guitar) · NOIR (smooth jazz) · VILLAGE (ambient village)
   Palettes: Riot pink/acid from Aamir's Pinterest (#FF0054 / #9EFF00),
   Noir + Village built from Color Hunt / Coolors-style 4-colour sets.
   ========================================================================== */

/* ---------- shared tokens ---------- */
:root {
  --gut: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --spd: 1;                       /* motion speed multiplier per interface */
  --t-mega: clamp(3.2rem, 11vw, 11rem);
  --t-xl: clamp(2.4rem, 6.4vw, 6rem);
  --t-l: clamp(1.8rem, 3.6vw, 3.2rem);
  --t-m: clamp(1.25rem, 2vw, 1.75rem);
  --t-s: 1.0625rem;
  --t-xs: .74rem;
  --f-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
}

/* RIOT — Devil May Cry slashes × Gachiakuta grime × To Be Hero X chaos */
:root[data-ui="riot"] {
  --bg: #0b0b0d; --bg-2: #141418; --panel: #17171c; --panel-2: #1f1f26;
  --fg: #f4f1ea; --fg-2: #b9b4aa; --fg-3: #7d786f;
  --rule: rgba(244, 241, 234, .14);
  --accent: #ff0054; --accent-2: #9eff00; --on-accent: #0b0b0d;
  --f-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --d-case: uppercase; --d-track: .01em; --d-weight: 400; --d-style: normal;
  --radius: 0px; --cut: 14px;
  --shadow: 6px 6px 0 var(--accent);
  --tex-op: .5;
  --a-bg: #121216; --a-ink: #f4f1ea; --a-mute: #8a857c; --a-grid: rgba(244,241,234,.08); --a-red: #ff0054;
  color-scheme: dark;
}
/* NOIR — late-night jazz club, brass and smoke */
:root[data-ui="noir"] {
  --bg: #0e1424; --bg-2: #131b30; --panel: #151d33; --panel-2: #1c2541;
  --fg: #f3e9d2; --fg-2: #c3b9a3; --fg-3: #8b846f;
  --rule: rgba(212, 162, 76, .26);
  --accent: #d4a24c; --accent-2: #e07a8a; --on-accent: #0e1424;
  --f-display: "Instrument Serif", Georgia, serif;
  --d-case: none; --d-track: -.015em; --d-weight: 400; --d-style: italic;
  --radius: 999px; --cut: 0px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --tex-op: .35; --spd: 1.6;
  --a-bg: #121a2e; --a-ink: #f3e9d2; --a-mute: #9b927c; --a-grid: rgba(212,162,76,.12); --a-red: #d4a24c;
  color-scheme: dark;
}
/* VILLAGE — paper, moss, terracotta, morning light */
:root[data-ui="village"] {
  --bg: #efe6d2; --bg-2: #e6dbc2; --panel: #f7f0e1; --panel-2: #fbf6ea;
  --fg: #2b2a26; --fg-2: #5a564c; --fg-3: #847e70;
  --rule: rgba(43, 42, 38, .16);
  --accent: #a84c26; --accent-2: #4a6a3a; --on-accent: #fbf6ea;
  --f-display: "Instrument Serif", Georgia, serif;
  --d-case: none; --d-track: -.02em; --d-weight: 400; --d-style: normal;
  --radius: 16px; --cut: 0px;
  --shadow: 0 10px 30px rgba(80, 60, 30, .14);
  --tex-op: .55; --spd: 1.3;
  --a-bg: #e6dbc2; --a-ink: #2b2a26; --a-mute: #6e685b; --a-grid: rgba(43,42,38,.1); --a-red: #a84c26;
  color-scheme: light;
}

/* ---------- colour-vision modes: swap accents for safer pairs (Okabe–Ito based) ---------- */
:root[data-cvd="protan"], :root[data-cvd="deutan"] { --accent: #ffb000; --accent-2: #3aa0ff; --a-red: #ffb000; }
:root[data-ui="village"][data-cvd="protan"], :root[data-ui="village"][data-cvd="deutan"] { --accent: #9a4f00; --accent-2: #1f5fa8; --a-red: #9a4f00; }
:root[data-ui="noir"][data-cvd="protan"], :root[data-ui="noir"][data-cvd="deutan"] { --accent: #e6b422; --accent-2: #6fb3ff; }
:root[data-cvd="tritan"] { --accent: #ff4b4b; --accent-2: #19e6e6; --a-red: #ff4b4b; }
:root[data-ui="village"][data-cvd="tritan"] { --accent: #b3262e; --accent-2: #0f6e6e; --a-red: #b3262e; }
:root[data-cvd="contrast"] {
  --bg: #000; --bg-2: #000; --panel: #000; --panel-2: #111; --fg: #fff; --fg-2: #fff; --fg-3: #e6e6e6;
  --rule: #fff; --accent: #ffff00; --accent-2: #00ffff; --on-accent: #000; --tex-op: 0; --shadow: none;
  --a-bg: #000; --a-ink: #fff; --a-mute: #fff; --a-grid: rgba(255,255,255,.2); --a-red: #ffff00; color-scheme: dark;
}
:root[data-cvd="contrast"] a:not(.btn):not(.pill) { text-decoration: underline; }
:root[data-cvd="mono"] { --gray: 1; }
/* brightness + monochrome live on <html> so fixed elements keep working */
:root[data-cvd="mono"], :root[style*="--bright"] { filter: brightness(var(--bright, 1)) grayscale(var(--gray, 0)); }
:root[data-links] a:not(.btn):not(.pill):not(.wordmark) { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--t-s); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
:root[data-cvd="contrast"] :focus-visible { outline: 3px solid #ffff00; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 8px; top: 8px; z-index: 300; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700; transform: translateY(-300%); }
.skip:focus { transform: none; }
main:focus { outline: none; }
.i { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -.16em; }
kbd { font-family: var(--f-mono); font-size: .72em; border: 1px solid currentColor; border-radius: 4px; padding: 0 .35em; opacity: .75; }

/* ---------- textures per interface (fixed, cheap, decorative) ---------- */
.fx-tex { pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: var(--tex-op); mix-blend-mode: overlay; }
[data-ui="riot"] .fx-tex {
  background-image:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 6px 6px, 160px 160px; mix-blend-mode: soft-light;
}
[data-ui="noir"] .fx-tex {
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: normal; opacity: .55;
}
[data-ui="village"] .fx-tex { background: url("../img/insp/paper-sm.webp") center / 640px auto; mix-blend-mode: multiply; opacity: .35; }
:root[data-cvd="contrast"] .fx-tex { display: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 10vw, 140px); }
.section--tight { padding-block: clamp(36px, 6vw, 80px); }
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: clamp(20px, 3vw, 34px); } .mt-l { margin-top: clamp(48px, 7vw, 96px); }

/* ---------- type ---------- */
.label { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); display: inline-flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.mini { font-size: .85rem; }
.muted { color: var(--fg-2); }
.h-xl, .h-l, .mega, .hero-title, .pull, .giant, .pause-card h2, .intro-t span {
  font-family: var(--f-display); text-transform: var(--d-case); letter-spacing: var(--d-track); font-weight: var(--d-weight); font-style: var(--d-style);
}
.mega { font-size: var(--t-mega); line-height: .86; }
.h-xl { font-size: var(--t-xl); line-height: .95; }
.h-l { font-size: var(--t-l); line-height: 1.02; }
.h-m { font-size: var(--t-m); font-weight: 500; letter-spacing: -.015em; line-height: 1.22; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
[data-ui="riot"] em { font-family: var(--f-display); font-style: normal; color: var(--accent); text-transform: uppercase; letter-spacing: var(--d-track); }
[data-ui="village"] em { font-family: var(--f-hand); font-style: normal; color: var(--accent); font-size: 1.12em; }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 34em; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link:hover { color: var(--accent); }
.cursor { display: inline-block; width: .55em; height: 1em; background: currentColor; vertical-align: -.15em; margin-left: .3em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons, pills, chips ---------- */
.btn {
  --b: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--b); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.1; text-align: center;
  border-radius: var(--radius); transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--ghost { border-color: var(--rule); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: .86rem; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[data-ui="riot"] .btn { padding-inline: 22px; text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; }
[data-ui="riot"] .btn--solid { clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-inline: 28px; }
[data-ui="riot"] .btn:not(.btn--solid):hover { box-shadow: 4px 4px 0 var(--accent); }
[data-ui="riot"] .btn:hover { background: var(--accent-2); color: #0b0b0d; border-color: var(--accent-2); }
[data-ui="noir"] .btn { border-width: 1px; border-color: var(--accent); color: var(--accent); }
[data-ui="noir"] .btn--solid { color: var(--on-accent); }
[data-ui="noir"] .btn:hover { box-shadow: 0 0 0 4px rgba(212,162,76,.18); }
[data-ui="village"] .btn { box-shadow: 3px 3px 0 var(--fg); }
[data-ui="village"] .btn:hover { box-shadow: 1px 1px 0 var(--fg); transform: translate(2px, 2px); }
:root[data-cvd="contrast"] .btn { box-shadow: none; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-pill { padding: 0; width: 40px; }
.icon-pill .i { width: 18px; height: 18px; }
.music-btn .i-pause, .music-btn .eq { display: none; }
.music-btn[aria-pressed="true"] { width: auto; padding: 0 12px; border-color: var(--accent); color: var(--accent); }
.music-btn[aria-pressed="true"] .i-play { display: none; }
.music-btn[aria-pressed="true"] .i-pause, .music-btn[aria-pressed="true"] .eq { display: inline-flex; }
[data-music-toggle] .i-pause { display: none; }
[data-music-toggle][aria-pressed="true"] .i-pause { display: inline-block; }
[data-music-toggle][aria-pressed="true"] .i-play { display: none; }
.eq { gap: 2px; align-items: end; height: 14px; }
.eq i { width: 3px; background: currentColor; animation: eq calc(.9s * var(--spd)) ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: .45em; padding: 9px 14px; border: 1.5px solid var(--rule); border-radius: var(--radius); font-size: .9rem; font-weight: 500; transition: background .2s, border-color .2s, color .2s, transform .2s; user-select: none; }
[data-ui="riot"] .chip > span { text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; font-family: var(--f-mono); }
.chip:hover > span { border-color: var(--fg-2); }
.chip input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* ---------- languages ---------- */
html[data-lang]:not([data-lang="en"]):not(.i18n-done) body { opacity: 0; animation: i18nShow 0s 1.2s forwards; }
@keyframes i18nShow { to { opacity: 1; } }
:root[lang="ja"] { --f-body: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif; }
:root[lang="ja"][data-ui="riot"] { --f-display: "Anton", "Dela Gothic One", "Noto Sans JP", sans-serif; }
:root[lang="ja"][data-ui="noir"], :root[lang="ja"][data-ui="village"] { --f-display: "Instrument Serif", "Shippori Mincho", serif; }
:root[lang="ja"] .label { letter-spacing: .04em; }
:root[lang="ja"] .h-xl, :root[lang="ja"] .pull { line-height: 1.15; word-break: keep-all; overflow-wrap: anywhere; }
:root[lang="ru"] { --f-body: "Space Grotesk", "Manrope", system-ui, sans-serif; --f-serif: "Instrument Serif", "Playfair Display", Georgia, serif; }
:root[lang="ru"][data-ui="riot"] { --f-display: "Anton", "Oswald", Impact, sans-serif; }
:root[lang="ru"][data-ui="noir"], :root[lang="ru"][data-ui="village"] { --f-display: "Instrument Serif", "Playfair Display", serif; }
:root[lang="ar"] { --f-body: "Space Grotesk", "Cairo", system-ui, sans-serif; --f-serif: "Instrument Serif", "Amiri", serif; --f-hand: "Caveat", "Reem Kufi", cursive; }
:root[lang="ar"][data-ui="riot"] { --f-display: "Anton", "Cairo", sans-serif; }
:root[lang="ar"][data-ui="noir"], :root[lang="ar"][data-ui="village"] { --f-display: "Instrument Serif", "Amiri", serif; }
:root[lang="ar"] .h-xl, :root[lang="ar"] .pull, :root[lang="ar"] .h-l { line-height: 1.25; }
:root[lang="ar"] .label { letter-spacing: 0; }
[dir="rtl"] .index-list a:hover, [dir="rtl"] .ptable a:hover { padding-left: 4px; padding-right: 18px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .hero-title, [dir="rtl"] .wordmark, [dir="rtl"] .giant { direction: ltr; text-align: right; }
[dir="rtl"] .camp { border-left: 0; border-right: 3px solid var(--accent-2); }
.lang { position: relative; }
.lang-btn { gap: 6px; }
.lang-btn .i { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.35); z-index: 80; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; text-align: left; font-size: .95rem; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--bg-2); outline-offset: -2px; }
.lang-menu button[aria-checked="true"] { color: var(--accent); font-weight: 700; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background .6s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { font-family: var(--f-display); font-style: var(--d-style); font-size: 1.35rem; letter-spacing: var(--d-track); text-transform: uppercase; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; gap: .28em; }
.wm-the { font-size: .62em; color: var(--accent); }
[data-ui="riot"] .wordmark { font-size: 1.5rem; }
[data-ui="village"] .wm-the { font-family: var(--f-hand); font-size: .9em; text-transform: lowercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a { font-size: .92rem; position: relative; color: var(--fg-2); transition: color .2s; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.head-r { display: flex; align-items: center; gap: 8px; }
.menu-btn kbd { font-size: .6rem; }
@media (max-width: 1060px) { .nav { display: none; } }
@media (max-width: 520px) { .lang-btn span { display: none; } .lang-btn { width: 40px; padding: 0; } .head-r { gap: 6px; } .menu-btn kbd, .menu-t { display: none; } .menu-btn { width: 40px; padding: 0; } .wordmark { font-size: 1.12rem; } [data-ui="riot"] .wordmark { font-size: 1.25rem; } }

/* ---------- intro: THE AAMIR SHEIKH PRODUCTION ---------- */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: #050506; color: #f4f1ea; overflow: hidden; padding: 24px; }
.intro[hidden] { display: none; }
.intro-bars i { position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 2; }
.intro-bars i:first-child { top: 0; } .intro-bars i:last-child { bottom: 0; }
.intro-slash { position: absolute; left: -20%; right: -20%; top: 50%; height: 3px; background: var(--accent); transform: rotate(-12deg) scaleX(0); box-shadow: 0 0 24px var(--accent); }
.intro.play .intro-slash { animation: slashX .55s .25s var(--ease-io) forwards; }
@keyframes slashX { 0% { transform: rotate(-12deg) scaleX(0); transform-origin: left; } 60% { transform: rotate(-12deg) scaleX(1); transform-origin: left; opacity: 1; } 100% { transform: rotate(-12deg) scaleX(1); opacity: 0; } }
.intro-c { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; gap: 22px; max-width: 900px; }
.intro-k { font-size: .8rem; letter-spacing: .5em; color: var(--accent); opacity: 0; }
.intro-t { display: grid; justify-items: center; line-height: .9; }
.intro-t span { font-family: "Anton", Impact, sans-serif; font-style: normal; text-transform: uppercase; font-size: clamp(2.6rem, 10vw, 8rem); letter-spacing: .01em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.intro-t em { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 4vw, 2.6rem); color: var(--accent); text-transform: lowercase; letter-spacing: .02em; }
.intro.play .intro-k { animation: fadeUp .6s .9s var(--ease) forwards; }
.intro.play .intro-t span { animation: cutIn .9s .5s var(--ease) both; }
.intro.play .intro-t em { animation: fadeUp .7s 1.1s var(--ease) both; }
.intro.play .intro-btns, .intro.play .intro-h { animation: fadeUp .6s 1.4s var(--ease) both; }
@keyframes cutIn { 0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: translateX(-4%) skewX(-8deg); } 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.intro .btn { --b: #f4f1ea; color: #f4f1ea; }
.intro .btn--solid { color: #0b0b0d; }
.intro-h { opacity: .7; }
.intro.out { animation: introOut .7s var(--ease-io) forwards; }
@keyframes introOut { to { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-scene { position: absolute; inset: 0; display: none; }
[data-ui="riot"] .hs-riot, [data-ui="noir"] .hs-noir, [data-ui="village"] .hs-village { display: block; }
.hero-vid { position: absolute; object-fit: cover; z-index: 1; background: #000; }
.hero-in { position: relative; z-index: 3; }
.hero-kicker { gap: 8px 18px; margin-bottom: clamp(18px, 3vw, 30px); }
.live { color: var(--accent-2); display: inline-flex; gap: .4em; align-items: center; }
.hero-title { position: relative; display: grid; line-height: .9; row-gap: .04em; font-size: clamp(4rem, 15vw, 15rem); margin-left: -.04em; }
.ht-the { font-size: .26em; letter-spacing: .3em; color: var(--accent); line-height: 1; margin-bottom: .1em; }
.ht-row { display: block; position: relative; overflow: hidden; padding: .02em .08em .06em 0; }
.ht-row > span { display: inline-block; position: relative; }
.hero-line { font-size: clamp(1.15rem, 2.2vw, 1.8rem); margin-top: clamp(16px, 2.5vw, 28px); max-width: 26em; line-height: 1.25; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags li { display: inline-flex; align-items: center; gap: .5em; padding: 8px 14px; border: 1px solid var(--rule); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: var(--radius); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-rank { position: absolute; right: var(--gut); top: clamp(16px, 3vw, 34px); z-index: 4; display: grid; justify-items: end; gap: 2px; font-family: var(--f-display); pointer-events: none; }
.hero-rank b { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .9; color: var(--accent); font-weight: 400; display: inline-block; transition: transform .2s; }
.hero-rank b.pop { transform: scale(1.35) rotate(-6deg); }
.hero-rank span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.rank-bar { width: 120px; height: 4px; background: var(--rule); display: block; }
.rank-bar i { display: block; height: 100%; width: var(--rk, 0%); background: var(--accent-2); transition: width .3s; }
.hero-k { position: absolute; right: calc(var(--gut) - 6px); bottom: 90px; writing-mode: vertical-rl; font-size: .9rem; letter-spacing: .4em; color: var(--fg-3); z-index: 3; }
.hero-scroll { position: absolute; left: var(--gut); bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hero-scroll::after { content: ""; width: 40px; height: 1px; background: currentColor; animation: scrollLine calc(2s * var(--spd)) var(--ease-io) infinite; transform-origin: left; }
@keyframes scrollLine { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* original characters (sticker style, transparent background) */
.hero-char { position: absolute; z-index: 2; height: auto; display: none; pointer-events: none;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(10px 12px 0 rgba(0,0,0,.35)); }
[data-ui="riot"] .hc-riot { display: block; right: calc(min(40%, 560px) + 8px); bottom: 3%; height: 66%; width: auto; }
@media (max-width: 1599px) and (min-width: 861px) { [data-ui="riot"] .hc-riot { height: 58%; } [data-ui="riot"] .hero-line { max-width: 19em; } }
@media (max-width: 1100px) and (min-width: 861px) { [data-ui="riot"] .hc-riot { display: none; } }
[data-ui="noir"] .hc-warm, [data-ui="village"] .hc-warm { display: block; right: calc(max(var(--gut), 5vw) + min(41vh, 400px)); bottom: 3%; height: 62%; width: auto; }
[data-ui="noir"] .hc-warm { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 30px 40px rgba(0,0,0,.5)) sepia(.15); }
.ready .hero-char { animation: charIn .9s .5s var(--ease) both; }
@keyframes charIn { from { opacity: 0; transform: translateY(30px) rotate(3deg); } to { opacity: 1; transform: none; } }
[data-ui="riot"] .ready .hc-riot, .ready[data-ui="riot"] .hc-riot { animation: charSlash .7s .9s var(--ease) both; }
@keyframes charSlash { 0% { opacity: 0; transform: translateX(80px) skewX(-12deg); } 60% { opacity: 1; transform: translateX(-8px) skewX(3deg); } 100% { opacity: 1; transform: none; } }

/* riot hero: slashed video window, katana cuts, spray tag, halftone */
[data-ui="riot"] .hero-vid { right: 0; top: 0; height: 100%; width: min(40%, 560px); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); filter: saturate(1.15) contrast(1.05); opacity: .9; }
[data-ui="riot"] .hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--bg) 52%, rgba(11,11,13,.5) 72%, rgba(11,11,13,.08)); }
[data-ui="riot"] .hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background-image: radial-gradient(var(--accent) 1.2px, transparent 1.6px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%); mask-image: linear-gradient(200deg, #000 0%, transparent 45%); opacity: .55; }
.hs-riot { z-index: 3; pointer-events: none; }
.slash { position: absolute; display: block; height: clamp(6px, 1vw, 12px); background: var(--accent); transform-origin: left center; box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 70%, transparent); }
.slash.s1 { left: 38%; top: 18%; width: 70%; transform: rotate(-24deg) scaleX(0); }
.slash.s2 { left: 50%; top: 86%; width: 52%; transform: rotate(-24deg) scaleX(0); background: var(--accent-2); box-shadow: 0 0 30px color-mix(in srgb, var(--accent-2) 60%, transparent); height: 4px; }
.slash.s3 { left: 52%; top: 54%; width: 40%; transform: rotate(-24deg) scaleX(0); background: #f4f1ea; height: 2px; }
.ready .slash.s1 { animation: slashIn .5s .3s var(--ease-io) forwards; }
.ready .slash.s2 { animation: slashIn .45s .55s var(--ease-io) forwards; }
.ready .slash.s3 { animation: slashIn .35s .75s var(--ease-io) forwards; }
@keyframes slashIn { to { transform: rotate(-24deg) scaleX(1); } }
.spray { position: absolute; right: 6%; bottom: 10%; font-family: "Caveat", cursive; font-size: clamp(4rem, 12vw, 10rem); color: var(--accent-2); transform: rotate(-12deg); opacity: .85; text-shadow: 0 0 2px var(--accent-2), 3px 3px 0 #000; }
.drip { position: absolute; right: calc(6% + 3.5rem); bottom: calc(10% - 70px); width: 4px; height: 0; background: var(--accent-2); border-radius: 0 0 4px 4px; }
.ready .drip { animation: drip 2.6s 1.2s ease-in forwards; }
@keyframes drip { to { height: 90px; } }
[data-ui="riot"] .hero-title .ht-a { text-shadow: 4px 4px 0 var(--accent); }
[data-ui="riot"] .hero-title .ht-b { color: transparent; -webkit-text-stroke: 2px var(--fg); background: linear-gradient(105deg, var(--fg) 0 48%, transparent 48.5%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; }
.ready[data-ui="riot"] .hero-title .ht-b { animation: rowIn .8s .12s var(--ease) both, fillIn 1.1s 1s var(--ease-io) forwards; }
@keyframes fillIn { to { background-position: 0 0; } }
.ht-cut { position: absolute; left: -4%; right: -4%; top: 58%; height: 3px; background: #fff; transform: rotate(-6deg) scaleX(0); transform-origin: left; z-index: 2; mix-blend-mode: difference; display: none; }
[data-ui="riot"] .ht-cut { display: block; }
.ready .ht-cut { animation: cut .5s .2s var(--ease-io) forwards, cutFade .4s 1.1s forwards; }
@keyframes cut { to { transform: rotate(-6deg) scaleX(1); } }
@keyframes cutFade { to { opacity: 0; } }
.ready[data-ui] .ht-row > span { animation: rowIn .8s var(--ease) both; }
.ready .ht-row:nth-of-type(3) > span { animation-delay: .12s; }
@keyframes rowIn { from { transform: translateY(105%) skewY(6deg); } to { transform: none; } }
[data-ui="riot"] .hero-k { color: var(--accent); }

/* noir hero: spotlight, smoke, arched video */
[data-ui="noir"] .hero-vid { right: max(var(--gut), 5vw); top: 50%; transform: translateY(-50%); height: min(78%, 680px); aspect-ratio: 9 / 16; border-radius: 999px 999px 18px 18px; border: 1px solid var(--accent); box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px var(--rule), 0 40px 100px rgba(0,0,0,.6); filter: sepia(.25) saturate(.9); }
.spot { position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 40%, rgba(212,162,76,.22), transparent 60%), radial-gradient(40% 50% at 15% 80%, rgba(224,122,138,.10), transparent 70%); }
.smoke { position: absolute; left: -10%; right: -10%; bottom: -20%; height: 70%; background: radial-gradient(40% 50% at 30% 60%, rgba(243,233,210,.08), transparent 70%), radial-gradient(35% 45% at 70% 70%, rgba(243,233,210,.06), transparent 70%); filter: blur(30px); animation: smoke calc(18s) ease-in-out infinite alternate; }
@keyframes smoke { to { transform: translateX(6%) translateY(-6%); } }
[data-ui="noir"] .hero-title { font-size: clamp(3.8rem, 13vw, 12.5rem); line-height: .86; }
[data-ui="noir"] .ht-the { font-family: var(--f-mono); font-style: normal; font-size: .12em; letter-spacing: .6em; }
[data-ui="noir"] .ht-b { color: var(--accent); padding-left: .6em; }
[data-ui="noir"] .hero-tags li { border-color: var(--rule); }
[data-ui="noir"] .hero-rank b { font-style: italic; }

/* village hero: paper hills, sun, birds, polaroid video */
.hs-village svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; }
.sunc { fill: #e9a65a; opacity: .75; }
.hill.h3 { fill: #c9c09a; } .hill.h2 { fill: #9fae7c; } .hill.h1 { fill: #6f8a57; }
.birds path { fill: none; stroke: #2b2a26; stroke-width: 2; stroke-linecap: round; }
.ready .birds { animation: birds calc(26s) linear infinite; }
@keyframes birds { from { transform: translateX(-30%); } to { transform: translateX(110%); } }
.ready .hill.h1 { animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { to { transform: translateX(-2%); } }
[data-ui="village"] .hero-vid { right: max(var(--gut), 6vw); top: 12%; height: min(66%, 560px); aspect-ratio: 9 / 16; border: 10px solid #fbf6ea; border-bottom-width: 42px; transform: rotate(3deg); box-shadow: var(--shadow), 0 20px 40px rgba(80,60,30,.2); }
[data-ui="village"] .ht-the { font-family: var(--f-hand); font-size: .3em; letter-spacing: .02em; text-transform: lowercase; }
[data-ui="village"] .hero-title { font-size: clamp(3.8rem, 13vw, 12rem); }
[data-ui="village"] .ht-b { color: var(--accent-2); }
[data-ui="village"] .hero-k { display: none; }

@media (max-width: 860px) {
  .hero { align-items: flex-end; min-height: calc(100svh - 64px); }
  [data-ui="riot"] .hero-vid { width: 100%; clip-path: polygon(0 0, 100% 0, 100% 62%, 0 78%); opacity: .55; }
  [data-ui="riot"] .hero-bg::before { background: linear-gradient(0deg, var(--bg) 40%, rgba(11,11,13,.3)); }
  [data-ui="noir"] .hero-vid, [data-ui="village"] .hero-vid { right: var(--gut); top: 3%; transform: none; height: 30%; }
  [data-ui="noir"] .hero-in, [data-ui="village"] .hero-in { padding-top: 30svh; }
  .hero-title { font-size: 19vw; }
  [data-ui="riot"] .hero-title { font-size: 23vw; }
  .sunc { display: none; }
  [data-ui="village"] .hero-vid { transform: rotate(3deg); border-width: 6px; border-bottom-width: 24px; }
  .hero-k, .hero-scroll { display: none; }
  [data-ui="riot"] .hc-riot { top: 8px; bottom: auto; right: -6px; height: 36%; }
  .slash.s2 { display: none; }
  [data-ui="noir"] .hc-warm, [data-ui="village"] .hc-warm { top: 2%; bottom: auto; right: auto; left: var(--gut); height: 29%; }
  .hero-rank { top: 12px; }
  .spray { bottom: auto; top: 40%; }
}

/* rotating word */
.rot { display: inline-grid; vertical-align: baseline; overflow: hidden; padding: .12em .12em .22em .04em; margin: -.12em -.12em -.22em -.04em; line-height: 1.1; }
[data-ui="riot"] .rot { font-size: .92em; }
.rot { transition: width .5s var(--ease); justify-items: start; }
.rot > span { grid-area: 1 / 1; transform: translateY(140%); opacity: 0; transition: transform .7s var(--ease), opacity .4s; white-space: nowrap; }
.rot > span.on { transform: none; opacity: 1; }
.rot > span.out { transform: translateY(-140%); opacity: 0; }

/* ---------- marquee ---------- */
.marquee { display: flex; overflow: hidden; border-block: 1px solid var(--rule); padding: 14px 0; white-space: nowrap; background: var(--bg); }
.marquee > div { display: flex; flex: none; animation: mq calc(40s * var(--spd)) linear infinite; }
.marquee span { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-size: clamp(1.4rem, 3vw, 2.4rem); padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee span::after { content: "✦"; font-size: .5em; color: var(--accent); }
[data-ui="riot"] .marquee { background: var(--accent); color: #0b0b0d; transform: rotate(-1.2deg); margin-block: 10px; border: 0; }
[data-ui="riot"] .marquee span::after { color: #0b0b0d; }
@keyframes mq { to { transform: translateX(-100%); } }

/* ---------- reel ---------- */
.reel { position: relative; background: #000; color: #f4f1ea; }
.reel-stage { position: relative; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; overflow: hidden; }
.reel-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.reel-stage video[data-ori="v"] { object-fit: contain; background: radial-gradient(circle, #1a1a1f, #000); }
.reel-stage video.on { opacity: 1; }
.reel-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0,0,0,.25); transition: transform .3s var(--ease); z-index: 2; }
.reel-play .i { width: 30px; height: 30px; margin-left: 4px; }
.reel-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.reel-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px var(--gut); background: linear-gradient(transparent, rgba(0,0,0,.7)); z-index: 2; }
.reel-ui .lbl { color: rgba(244,241,234,.75); }
.reel-ui .title { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1; }
.reel-ticks { display: flex; gap: 6px; }
.reel-ticks button { width: 36px; height: 28px; position: relative; }
.reel-ticks button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(255,255,255,.3); }
.reel-ticks button::after { content: ""; position: absolute; left: 0; top: 50%; height: 3px; width: 0; background: var(--accent); }
.reel-ticks button.on::after { animation: tick 6s linear forwards; }
@keyframes tick { to { width: 100%; } }
@media (max-width: 640px) { .reel-stage { aspect-ratio: 4 / 5; } .reel-play { width: 64px; height: 64px; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius) ; background: var(--panel); }
[data-ui="noir"] .stats li { border-radius: 18px; }
.stats b { font-family: var(--f-display); font-style: var(--d-style); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .9; color: var(--accent); }
.st-i .i { width: 26px; height: 26px; color: var(--accent-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- section heads, tiles ---------- */
.s-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 52px); max-width: 60rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
[data-ui="noir"] .tile, [data-ui="noir"] .clip-a, [data-ui="noir"] .frame { border-radius: 18px; }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.tile--wide .tile-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.tile-media img, .tile-media video, .tile-media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.tile-media video { opacity: 0; }
.tile-media.playing video { opacity: 1; }
.tile:hover .tile-media img, .tile:hover .tile-media svg { transform: scale(1.04); }
.tile .tile-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #f4f1ea; }
.tile .tile-cap .label { color: rgba(244,241,234,.85); }
.tile h3 { font-size: 1.05rem; font-weight: 600; display: flex; gap: .45em; align-items: center; }
[data-ui="riot"] .tile { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
[data-ui="village"] .tile { box-shadow: var(--shadow); }
.badge-live { color: var(--accent-2) !important; }
.art-night { --a-bg: #0c0b0a; --a-ink: #ece6da; --a-mute: #a59e92; --a-grid: rgba(236,230,218,.08); }
.art-day { --a-bg: #e5dfd2; --a-ink: #15130f; --a-mute: #5c564d; --a-grid: rgba(21,19,15,.12); --a-red: #b8231f; }
.days circle { fill: none; stroke: var(--a-mute); stroke-opacity: .5; }
.days circle.d { fill: var(--a-ink); stroke: none; }
.days circle.today { fill: var(--a-red); stroke: none; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } .tile--wide { grid-column: 1 / -1; grid-row: auto; } .tile--wide .tile-media { aspect-ratio: 16 / 10; min-height: 0; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* wipe reveal */
.js .wipe.in { animation: wipeIn 1s var(--ease-io) both; }
@keyframes wipeIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.pull { font-size: clamp(2.2rem, 6vw, 5.6rem); line-height: .98; max-width: 14em; }

/* ---------- index list ---------- */
.index-list { border-top: 1px solid var(--rule); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a { display: grid; grid-template-columns: 4rem 1fr auto; gap: 16px; align-items: center; padding: clamp(16px, 2.4vw, 26px) 4px; transition: padding .35s var(--ease), color .2s, background .3s; }
.index-list .num { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.index-list .t { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; display: inline-flex; align-items: center; gap: .4em; }
.index-list .t .i { width: .7em; height: .7em; color: var(--accent); }
.index-list .d { color: var(--fg-2); font-size: .92rem; text-align: right; }
.index-list a:hover { padding-left: 18px; color: var(--accent); }
@media (max-width: 640px) { .index-list a { grid-template-columns: 2.6rem 1fr; } .index-list .d { grid-column: 2; text-align: left; } }

/* ---------- page head ---------- */
.page-head { position: relative; padding-top: clamp(48px, 9vw, 130px); padding-bottom: clamp(32px, 5vw, 64px); }
.big-num { position: absolute; right: var(--gut); top: clamp(20px, 4vw, 50px); font-family: var(--f-display); font-style: var(--d-style); font-size: clamp(6rem, 20vw, 18rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--rule); pointer-events: none; user-select: none; }
[data-ui="riot"] .big-num { -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.chapter { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.roman { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--accent); color: var(--accent); border-radius: var(--radius); }
[data-ui="noir"] .roman { border-radius: 50%; }
.roman .i { width: 20px; height: 20px; }
.page-head h1 { max-width: 13em; position: relative; }
.page-head .lead { margin-top: clamp(16px, 2.4vw, 26px); }
[data-ui="riot"] .slash-in::after { content: ""; position: absolute; left: -2%; bottom: -.14em; width: 0; height: 6px; background: var(--accent); transform: skewX(-30deg); }
[data-ui="riot"] .slash-in.in::after { animation: under .7s .4s var(--ease-io) forwards; }
@keyframes under { to { width: 40%; } }

/* split words reveal */
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em .14em .16em .06em; margin: -.14em -.14em -.16em -.06em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform calc(.9s * var(--spd)) var(--ease); }
.js .split-words.in .w > span { transform: none; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity calc(.8s * var(--spd)) var(--ease), transform calc(.9s * var(--spd)) var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s !important; } .rv-d2 { transition-delay: .16s !important; } .rv-d3 { transition-delay: .24s !important; }

/* ---------- story ---------- */
.id-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.id-card li { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--radius); }
[data-ui="noir"] .id-card li { border-radius: 16px; }
.id-card .i { width: 26px; height: 26px; color: var(--accent); }
.id-card b { font-size: 1.05rem; } .id-card span { color: var(--fg-2); font-size: .88rem; }
@media (max-width: 900px) { .id-card { grid-template-columns: 1fr 1fr; } }
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding-block: clamp(20px, 3vw, 36px); border-top: 1px solid var(--rule); }
.split .main { max-width: 34em; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 8px; } }
.timeline { border-left: 2px solid var(--rule); margin-left: 6px; }
.timeline li { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 16px 0 16px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; background: var(--accent); border-radius: var(--radius); transform: rotate(45deg); }
[data-ui="noir"] .timeline li::before, [data-ui="village"] .timeline li::before { border-radius: 50%; transform: none; }
.when { font-family: var(--f-mono); font-size: .8rem; color: var(--fg-2); padding-top: 4px; }
.timeline h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; display: flex; gap: .5em; align-items: center; }
.timeline h3 .i { color: var(--accent-2); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.quests { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quests li { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--radius); }
[data-ui="noir"] .quests li { border-radius: 18px; }
[data-ui="riot"] .quests li { box-shadow: var(--shadow); }
.quests .i { width: 30px; height: 30px; color: var(--accent); }
.quests h3 { font-size: 1.2rem; } .quests p { color: var(--fg-2); }

/* ---------- struggles ---------- */
.trial { display: grid; grid-template-columns: 5rem 2fr 1.3fr; gap: 24px; padding-block: clamp(22px, 4vw, 42px); border-top: 1px solid var(--rule); align-items: start; }
.trial .no { font-family: var(--f-display); font-style: var(--d-style); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .9; color: var(--accent); }
.trial h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.02; }
.camp { padding: 18px; background: var(--panel); border-left: 3px solid var(--accent-2); border-radius: 0 var(--radius) var(--radius) 0; }
[data-ui="noir"] .camp { border-radius: 0 16px 16px 0; }
.camp p:last-child { margin-top: 8px; }
@media (max-width: 800px) { .trial { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- skills ---------- */
.charms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.charm { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; min-height: 230px; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--radius); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
[data-ui="noir"] .charm { border-radius: 20px; }
.charm:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.charm-i .i { width: 34px; height: 34px; color: var(--accent); }
.charm h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; }
.charm .tools { color: var(--fg-2); font-size: .88rem; margin-top: auto; }
.charm .go { position: absolute; right: 18px; top: 18px; color: var(--fg-3); }
.top-r { display: flex; align-items: center; gap: 10px; }
.notches { display: inline-flex; gap: 5px; }
.notches i { width: 14px; height: 14px; border: 1.5px solid var(--fg-3); transform: rotate(45deg); }
[data-ui="noir"] .notches i, [data-ui="village"] .notches i { border-radius: 50%; transform: none; }
.notches i.f { background: var(--accent); border-color: var(--accent); }
.notches-lbl { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit > div { padding: 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
[data-ui="noir"] .kit > div { border-radius: 18px; }
.kit ul { margin-top: 12px; display: grid; gap: 6px; }
.kit li::before { content: "▸ "; color: var(--accent); }
@media (max-width: 800px) { .kit { grid-template-columns: 1fr; } }
.bgal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.bgal figure { grid-column: span 2; position: relative; overflow: hidden; border-radius: var(--radius); }
.bgal figure.big { grid-column: span 4; grid-row: span 2; }
.bgal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.bgal figure.big img { aspect-ratio: auto; }
.bgal figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.6); color: #fff; padding: 4px 8px; }
@media (max-width: 760px) { .bgal { grid-template-columns: 1fr 1fr; } .bgal figure, .bgal figure.big { grid-column: span 1; grid-row: auto; } .bgal figure.big { grid-column: 1 / -1; } .bgal figure.big img { aspect-ratio: 16 / 9; } }

/* ---------- clips (correct aspect ratios on every device) ---------- */
.reel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 18px); grid-auto-flow: dense; align-items: start; }
.clip { grid-column: span 4; display: grid; gap: 10px; }
.clip.h { grid-column: span 6; }
.clip.v { grid-column: span 3; grid-row: span 2; }
.clip-a { position: relative; display: block; overflow: hidden; background: #000; border-radius: var(--radius); }
.clip .tile-media { aspect-ratio: 16 / 9; }
.clip.v .tile-media { aspect-ratio: 9 / 16; }
.clip-a:hover .tile-media img { transform: scale(1.04); }
.play-ico { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transition: transform .3s var(--ease); }
.play-ico .i { width: 18px; height: 18px; margin-left: 2px; }
.clip-a:hover .play-ico { transform: scale(1.12); }
.q-badge { position: absolute; right: 10px; top: 10px; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; background: var(--accent-2); color: #000; padding: 3px 7px; letter-spacing: .06em; }
.clip .tile-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.clip h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.2; }
.tile-kind { color: var(--fg-2); font-size: .86rem; grid-column: 1 / -1; }
.want { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; color: var(--accent); margin-top: 4px; width: fit-content; }
.want:hover { text-decoration: underline; }
[data-ui="riot"] .clip-a { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
@media (max-width: 1000px) { .clip { grid-column: span 6; } .clip.h { grid-column: span 12; } .clip.v { grid-column: span 6; } }
@media (max-width: 560px) { .reel-grid { grid-template-columns: 1fr 1fr; } .clip, .clip.h { grid-column: 1 / -1; } .clip.v { grid-column: span 1; grid-row: auto; } .clip.v .tile-cap h3 { font-size: .92rem; } }

/* ---------- work ---------- */
.ptable { border-top: 1px solid var(--rule); }
.ptable li { border-bottom: 1px solid var(--rule); }
.ptable a { display: grid; grid-template-columns: 3rem 1.6fr 1.2fr 5rem 2rem; gap: 14px; align-items: center; padding: 16px 4px; transition: padding .35s var(--ease), color .2s; }
.ptable .n { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.ptable .t { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1; display: flex; gap: .45em; align-items: center; }
.ptable .t .i { width: .75em; height: .75em; color: var(--accent); }
.ptable .k, .ptable .y { color: var(--fg-2); font-size: .9rem; }
.ptable a:hover { padding-left: 16px; color: var(--accent); }
@media (max-width: 760px) { .ptable a { grid-template-columns: 2.4rem 1fr auto; } .ptable .k, .ptable .ar { display: none; } }
.peek { position: fixed; z-index: 70; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: opacity .25s, transform .35s var(--ease); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters button { display: inline-flex; align-items: center; gap: .45em; padding: 9px 16px; border: 1.5px solid var(--rule); border-radius: var(--radius); font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mission { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 90px); border-top: 1px solid var(--rule); }
.mission.flip .m-media { order: 2; }
.mission--full { display: block; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--bg-2); }
.frame img, .frame svg { width: 100%; height: 100%; object-fit: cover; }
.m-num { position: absolute; right: 12px; top: 8px; font-family: var(--f-display); font-style: var(--d-style); font-size: 3rem; line-height: 1; color: var(--accent); text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.m-text h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin-top: 8px; display: flex; gap: .3em; align-items: center; flex-wrap: wrap; }
.m-text h2 .i { width: .7em; height: .7em; color: var(--accent); }
.role { color: var(--fg-2); margin-top: 6px; }
.m-line { font-size: 1.12rem; margin-top: 16px; max-width: 30em; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 20px; font-size: .92rem; }
.facts dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); display: inline-flex; gap: .4em; align-items: center; }
.m-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; margin: clamp(36px, 5vw, 64px) 0 clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.cat-head h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } .mission.flip .m-media { order: 0; } }
.rank { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: grid; justify-items: end; font-family: var(--f-display); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.rank.show { opacity: 1; transform: none; }
.rank b { font-size: 3rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform .2s; }
.rank b.pop { transform: scale(1.35) rotate(-6deg); }
.rank span { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); }

/* ---------- inspirations: photo panels with per-item motion ---------- */
.ipanels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.ipanel { position: relative; grid-column: span 4; min-height: 300px; overflow: hidden; display: flex; align-items: flex-end; background: #111; color: #f4f1ea; border-radius: var(--radius); isolation: isolate; }
[data-ui="noir"] .ipanel { border-radius: 18px; }
.ipanel.w6 { grid-column: span 6; } .ipanel.w8 { grid-column: span 8; } .ipanel.w12 { grid-column: 1 / -1; } .ipanel.w4 { grid-column: span 4; }
.ipanel.tall { min-height: clamp(420px, 60vh, 640px); }
.ip-img { position: absolute; inset: -6%; z-index: -2; }
.ip-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform 1.2s var(--ease), filter .6s; }
.ip-fx { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)); }
.ip-cap { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 6px; }
.ip-cap .label { color: rgba(244,241,234,.8); }
.ip-cap h3 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1; }
.ip-cap h3.serif-i { font-family: var(--f-serif); font-style: italic; text-transform: none; }
.take { font-size: 1.02rem; color: #f4f1ea; max-width: 28em; }
[data-ui="riot"] .take { border-left: 3px solid var(--accent); padding-left: 10px; }
[data-ui="noir"] .take { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: #f3e9d2; }
[data-ui="village"] .take { font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.1; }
[data-ui="riot"] .ipanel { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
[data-ui="village"] .ipanel { border: 8px solid #fbf6ea; box-shadow: var(--shadow); }
.ipanel.solid { background: var(--accent); color: var(--on-accent); min-height: 200px; }
.ipanel.solid .label, .ipanel.solid .take { color: var(--on-accent); }
.wolf-h { font-size: clamp(3rem, 8vw, 6.4rem) !important; }
.wolfpanel blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.6rem); max-width: 30em; margin-top: 8px; }
.wolfpanel cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
/* motion vocabulary — each inspiration moves in its own way */
.ipanel:hover .ip-img img, .ipanel:focus-within .ip-img img { transform: scale(1.06); }
.m-pan .ip-img img { animation: kb calc(22s * var(--spd)) ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.04) translate(-2%, 0); } to { transform: scale(1.12) translate(2%, -2%); } }
.m-zoom .ip-img img { animation: kz calc(16s * var(--spd)) ease-in-out infinite alternate; }
@keyframes kz { from { transform: scale(1); } to { transform: scale(1.14); } }
.m-glow .ip-fx { animation: glow calc(5s * var(--spd)) ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: inset 0 0 0 rgba(255,255,255,0); } to { box-shadow: inset 0 0 120px color-mix(in srgb, var(--accent) 45%, transparent); } }
.m-swing .ip-img img { animation: swing calc(9s * var(--spd)) ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes swing { from { transform: rotate(-1.4deg) scale(1.08); } to { transform: rotate(1.4deg) scale(1.08); } }
.m-glitch .ip-img img { animation: glitch 5s steps(1) infinite; }
@keyframes glitch { 0%, 92%, 100% { transform: none; filter: none; } 93% { transform: translateX(-6px); filter: hue-rotate(80deg) saturate(2); } 95% { transform: translateX(5px); } 97% { transform: translateX(-2px); filter: contrast(2); } }
.m-slash::before { content: ""; position: absolute; z-index: 1; left: -30%; top: 50%; width: 160%; height: 3px; background: var(--accent); transform: rotate(-18deg) translateX(-100%); box-shadow: 0 0 18px var(--accent); }
.m-slash.in::before { animation: pslash 4.5s 1s var(--ease-io) infinite; }
@keyframes pslash { 0% { transform: rotate(-18deg) translateX(-100%); } 12%, 100% { transform: rotate(-18deg) translateX(100%); } }
.m-rain .ip-fx { background-image: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)), repeating-linear-gradient(105deg, rgba(255,255,255,.12) 0 1px, transparent 1px 14px); background-size: 100% 100%, 200px 200px; animation: rain .6s linear infinite; }
@keyframes rain { to { background-position: 0 0, -40px 200px; } }
.m-flicker .ip-img img { animation: flick 6s infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: .55; } 43% { opacity: 1; } 70% { opacity: .9; } 71% { opacity: .6; } 72% { opacity: 1; } }
.m-scan .ip-fx { background-image: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)), repeating-linear-gradient(0deg, rgba(158,255,0,.08) 0 2px, transparent 2px 5px); }
.m-snow .ip-fx { background-image: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)), radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.4) 1px, transparent 1.5px); background-size: 100% 100%, 60px 60px, 37px 37px; animation: snow 8s linear infinite; }
@keyframes snow { to { background-position: 0 0, 30px 240px, -20px 180px; } }
@media (max-width: 860px) { .ipanel, .ipanel.w4, .ipanel.w6, .ipanel.w8 { grid-column: span 6; } }
@media (max-width: 560px) { .ipanel, .ipanel.w4, .ipanel.w6, .ipanel.w8 { grid-column: 1 / -1; min-height: 240px; } }

/* ---------- services ---------- */
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc { display: grid; gap: 12px; align-content: start; padding: 24px; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--radius); }
[data-ui="noir"] .svc { border-radius: 20px; }
[data-ui="riot"] .svc:hover { box-shadow: var(--shadow); }
.svc-i .i { width: 34px; height: 34px; color: var(--accent); }
.svc h3 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.svc ul { display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: .82rem; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--fg-2); }
.svc .btn { justify-self: start; margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps > div { padding: 22px; border-top: 3px solid var(--accent); background: var(--panel); display: grid; gap: 6px; }
.steps h3 { font-size: 1.3rem; } .steps p { color: var(--fg-2); }
.steps .st-i .i { width: 26px; height: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- order + feedback ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--rule); border-radius: calc(var(--radius) + 6px); margin-bottom: clamp(24px, 4vw, 40px); background: var(--panel); }
.tabs button { display: inline-flex; align-items: center; gap: .5em; padding: 10px 18px; font-weight: 600; border-radius: var(--radius); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.oform { display: grid; gap: 18px; max-width: 1000px; }
.oform[hidden] { display: none; }
.step-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.step-h b { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; border-radius: var(--radius); }
[data-ui="noir"] .step-h b { border-radius: 50%; }
.step-h h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; }
.step-h p { flex-basis: 100%; }
.ogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.og { border: 1px solid var(--rule); padding: 16px; background: var(--panel); border-radius: var(--radius); min-width: 0; }
[data-ui="noir"] .og { border-radius: 16px; }
.og legend { padding: 0 6px; font-weight: 700; display: inline-flex; gap: .45em; align-items: center; }
.og legend .i { color: var(--accent); }
.og.has { border-color: var(--accent); }
.chips--img { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chip--img > span { display: grid; gap: 6px; padding: 6px; font-size: .82rem; height: 100%; align-content: start; }
.chip--img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
[data-ui="riot"] .chip--img > span { clip-path: none; padding-inline: 6px; }
.chip--img input:checked + span::before { position: absolute; right: 10px; top: 10px; background: var(--accent); color: var(--on-accent); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.fld.wide { grid-column: 1 / -1; }
.fld input, .fld textarea { width: 100%; padding: 13px 14px; background: var(--panel); border: 1.5px solid var(--rule); border-radius: calc(var(--radius) / 2); font-weight: 400; font-size: 1rem; }
[data-ui="noir"] .fld input, [data-ui="noir"] .fld textarea { border-radius: 12px; }
.fld input:focus, .fld textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.fld input[aria-invalid="true"] { border-color: #ff4b4b; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.summary { padding: 18px; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--panel); }
.summary pre { margin-top: 10px; white-space: pre-wrap; font-family: var(--f-mono); font-size: .86rem; line-height: 1.6; }
.send-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--accent-2); } .form-status.err { color: #ff6b6b; }
.stars { display: flex; gap: 6px; border: 0; }
.star { position: relative; }
.star input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.star .i { width: 42px; height: 42px; color: var(--fg-3); transition: color .2s, transform .2s; }
.star.on .i { color: var(--accent); fill: var(--accent); }
.star input:focus-visible + span .i { outline: 3px solid var(--accent-2); }
.star:hover .i { transform: scale(1.15); }

/* ---------- credits, 404 ---------- */
.credit-l { margin-top: 12px; display: grid; gap: 8px; font-size: .92rem; }
.credit-l.cols { grid-template-columns: 1fr; }
.credit-l li { display: flex; gap: .5em; align-items: baseline; flex-wrap: wrap; }
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* ---------- epilogue + footer ---------- */
.epilogue { background: var(--bg-2); border-top: 1px solid var(--rule); }
.terminal { font-family: var(--f-mono); font-size: .85rem; color: var(--accent-2); line-height: 1.7; }
.terminal .dim { opacity: .6; }
.site-foot { border-top: 1px solid var(--rule); padding-top: clamp(48px, 7vw, 90px); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-list { display: grid; gap: 8px; }
.foot-list a, .foot-btn { display: inline-flex; gap: .5em; align-items: center; color: var(--fg-2); transition: color .2s; font-size: .95rem; }
.foot-list a:hover, .foot-btn:hover { color: var(--accent); }
.foot-list .i { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(40px, 6vw, 70px); padding-block: 18px; border-top: 1px solid var(--rule); }
.giant { font-size: clamp(2.6rem, 11.5vw, 12rem); line-height: 1; white-space: nowrap; padding-bottom: .12em; margin-top: .1em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 34%, transparent); user-select: none; }
.giant span { color: var(--accent); -webkit-text-stroke: 0; font-size: .4em; vertical-align: top; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .big { grid-column: 1 / -1; } }

/* ---------- pause menu (RDR2 journal / Sundown Trail) ---------- */
.pause { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.pause::before { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 6, .78); opacity: 0; transition: opacity .35s; }
.pause.open { visibility: visible; }
.pause.open::before { opacity: 1; }
.pause-card { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); color: var(--fg); padding: clamp(24px, 5vw, 44px); border: 1px solid var(--rule); border-radius: var(--radius); transform: translateY(14px) rotate(-.6deg); opacity: 0; transition: transform .45s var(--ease), opacity .3s; box-shadow: var(--shadow); }
[data-ui="noir"] .pause-card { border-radius: 24px; }
.pause.open .pause-card { transform: none; opacity: 1; }
.pause-k { position: absolute; right: 16px; top: 10px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .3em; color: var(--accent); }
.pause-card h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; margin-bottom: 16px; }
.pause-list li { border-bottom: 1px solid var(--rule); }
.pause-list a, .pause-list button { display: flex; width: 100%; align-items: baseline; gap: 16px; padding: 11px 4px; font-size: clamp(1.15rem, 3.4vw, 1.4rem); line-height: 1.1; text-align: left; transition: padding .25s var(--ease), color .2s; }
.pause-list .num { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; opacity: .55; width: 2.4em; flex: none; }
.pause-list a:hover, .pause-list a:focus-visible, .pause-list button:hover, .pause-list button:focus-visible, .pause-list a[aria-current="page"] { padding-left: 14px; color: var(--accent); }
.pause-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }

/* ---------- settings panel ---------- */
.panel-wrap { position: fixed; inset: 0; z-index: 210; visibility: hidden; }
.panel-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,6,.6); opacity: 0; transition: opacity .3s; }
.panel-wrap.open { visibility: visible; }
.panel-wrap.open::before { opacity: 1; }
.panel-card { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); color: var(--fg); border-left: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain; padding: 20px clamp(16px, 3vw, 26px) 40px; transform: translateX(100%); transition: transform .45s var(--ease); display: grid; gap: 24px; align-content: start; }
.panel-wrap.open .panel-card { transform: none; }
.panel-top { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -20px; background: var(--bg); padding-block: 10px; z-index: 2; }
.panel-top h2 { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: 2rem; display: flex; gap: .4em; align-items: center; }
.panel-card section { display: grid; gap: 12px; }
.panel-card h3 { margin-bottom: 2px; }
.ui-cards { display: grid; gap: 8px; }
.ui-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ui-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ui-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ui-card:has(input:focus-visible) { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.ui-card .sw { grid-row: span 3; display: grid; grid-template-columns: 1fr 1fr; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); }
.ui-card .sw i { display: block; }
.ui-n { font-weight: 700; display: flex; gap: .4em; align-items: center; }
.ui-m { font-size: .84rem; color: var(--fg-2); display: flex; gap: .4em; align-items: center; }
.ui-b { font-size: .78rem; color: var(--fg-3); }
.tog { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; padding: 4px 0; }
.tog input { position: absolute; opacity: 0; width: 44px; height: 26px; cursor: pointer; }
.tog-ui { width: 44px; height: 26px; border-radius: 999px; background: var(--rule); position: relative; flex: none; transition: background .2s; }
.tog-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .25s var(--ease); }
.tog input:checked + .tog-ui { background: var(--accent); }
.tog input:checked + .tog-ui::after { transform: translateX(18px); background: var(--on-accent); }
.tog input:focus-visible + .tog-ui { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.row-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rng { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.rng.wide { width: 100%; }
.rng span:not(.sr) { min-width: 6.5em; font-size: .9rem; }
.rng output { font-family: var(--f-mono); font-size: .8rem; min-width: 3.4em; text-align: right; }
input[type="range"] { flex: 1; accent-color: var(--accent); height: 28px; }
.mini.muted kbd { font-size: .7rem; }

/* ---------- lightbox player ---------- */
.player { position: fixed; inset: 0; z-index: 220; background: rgba(0,0,0,.97); display: grid; grid-template-rows: auto 1fr; visibility: hidden; opacity: 0; transition: opacity .3s; }
.player.open { visibility: visible; opacity: 1; }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 10px var(--gut); color: #f4f1ea; }
.player-bar .label { color: #f4f1ea; }
.player-q { margin-left: auto; color: var(--accent-2) !important; }
.player-close { color: #f4f1ea; border-color: rgba(255,255,255,.3); }
.player-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gut) var(--gut); }
.player video { max-width: 100%; max-height: calc(100dvh - 80px); width: auto; height: auto; background: #000; object-fit: contain; }
.player.v video { height: calc(100dvh - 80px); aspect-ratio: 9 / 16; }
.player.h video { width: min(100%, calc((100dvh - 80px) * 16 / 9)); aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .player-stage { padding: 0; } .player.v video { height: calc(100dvh - 64px); width: 100%; } }

/* ---------- reduced motion (system or toggle) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .split-words .w > span { opacity: 1; transform: none; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
:root[data-motion="reduce"] .js .rv, :root[data-motion="reduce"].js .rv { opacity: 1; transform: none; }
:root[data-motion="reduce"].js .split-words .w > span { transform: none; }


/* forced colours (Windows high contrast) */
@media (forced-colors: active) { .fx-tex, .hero-bg::after, .slash { display: none; } .btn, .chip > span, .pill { border: 1px solid CanvasText; } }

/* ---------- right-to-left (Arabic): mirror the hero layout ---------- */
[dir="rtl"] .hero-rank { right: auto; left: var(--gut); justify-items: start; }
[dir="rtl"] .hero-k { right: auto; left: calc(var(--gut) - 6px); }
[dir="rtl"] .hero-scroll { left: auto; right: var(--gut); }
[dir="rtl"][data-ui="riot"] .hero-vid { right: auto; left: 0; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
[dir="rtl"][data-ui="riot"] .hero-bg::before { background: linear-gradient(270deg, var(--bg) 38%, rgba(11,11,13,.55) 62%, rgba(11,11,13,.1)); }
[dir="rtl"][data-ui="riot"] .hc-riot { right: auto; left: calc(min(40%, 560px) + 8px); }
[dir="rtl"] .spray { right: auto; left: 6%; }
[dir="rtl"] .drip { right: auto; left: calc(6% + 3.5rem); }
[dir="rtl"][data-ui="noir"] .hero-vid, [dir="rtl"][data-ui="village"] .hero-vid { right: auto; left: max(var(--gut), 5vw); }
[dir="rtl"][data-ui="noir"] .hc-warm, [dir="rtl"][data-ui="village"] .hc-warm { right: auto; left: calc(max(var(--gut), 5vw) + min(41vh, 400px)); }
[dir="rtl"] .hs-village svg { transform: scaleX(-1); }
[dir="rtl"] .rank { right: auto; left: 18px; justify-items: start; }
@media (max-width: 860px) {
  [dir="rtl"][data-ui="riot"] .hero-vid { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 62%); }
  [dir="rtl"][data-ui="riot"] .hc-riot { left: -6px; }
  [dir="rtl"][data-ui="noir"] .hero-vid, [dir="rtl"][data-ui="village"] .hero-vid { left: var(--gut); }
  [dir="rtl"][data-ui="noir"] .hc-warm, [dir="rtl"][data-ui="village"] .hc-warm { left: auto; right: var(--gut); }
}

/* ---------- CJK languages ---------- */
:root[lang="zh"] { --f-body: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif; --f-serif: "Instrument Serif", "Noto Serif SC", serif; }
:root[lang="zh"][data-ui="riot"] { --f-display: "Anton", "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif; }
:root[lang="zh"][data-ui="noir"], :root[lang="zh"][data-ui="village"] { --f-display: "Instrument Serif", "Noto Serif SC", serif; }
:root[lang="ko"] { --f-body: "Space Grotesk", "Noto Sans KR", system-ui, sans-serif; --f-serif: "Instrument Serif", "Nanum Myeongjo", serif; }
:root[lang="ko"][data-ui="riot"] { --f-display: "Anton", "Black Han Sans", "Noto Sans KR", sans-serif; }
:root[lang="ko"][data-ui="noir"], :root[lang="ko"][data-ui="village"] { --f-display: "Instrument Serif", "Nanum Myeongjo", serif; }
:root[lang="zh"] .h-xl, :root[lang="zh"] .pull, :root[lang="ko"] .h-xl, :root[lang="ko"] .pull { line-height: 1.15; word-break: keep-all; }
:root[lang="zh"] .label, :root[lang="ko"] .label { letter-spacing: .04em; }

/* ---------- Instagram ---------- */
.ig-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ig-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 18px; align-items: center; padding: clamp(18px, 3vw, 30px); border: 1.5px solid var(--rule); background: var(--panel); border-radius: var(--radius); transition: border-color .3s, transform .35s var(--ease), box-shadow .3s; }
[data-ui="noir"] .ig-card { border-radius: 20px; }
[data-ui="village"] .ig-card { box-shadow: var(--shadow); }
.ig-card:hover { border-color: var(--accent); transform: translateY(-3px); }
[data-ui="riot"] .ig-card:hover { box-shadow: var(--shadow); }
.ig-i { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.ig-i .i { width: 32px; height: 32px; }
.ig-h { font-family: var(--f-display); font-style: var(--d-style); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; word-break: break-all; }
[data-ui="riot"] .ig-h { text-transform: none; }
.ig-go { color: var(--accent); font-weight: 600; display: inline-flex; gap: .4em; align-items: center; font-size: .92rem; }
@media (max-width: 640px) { .ig-cards { grid-template-columns: 1fr; } .ig-i { width: 52px; height: 52px; } }

/* ---------- idle showreel (DVD-style screensaver) ---------- */
.attract { position: fixed; inset: 0; z-index: 350; background: #000; color: #f4f1ea; opacity: 0; transition: opacity .8s; cursor: none; overflow: hidden; }
.attract[hidden] { display: none; }
.attract.on { opacity: 1; }
.at-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s; }
.at-stage video.show { opacity: 1; }
.at-cap { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 6vh, 64px); max-width: 70vw; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.at-cap .label { color: var(--accent-2); }
.at-title { font-family: var(--f-display); font-style: var(--d-style); text-transform: var(--d-case); font-weight: 400; font-size: clamp(2rem, 6vw, 5rem); line-height: 1; margin-top: 8px; }
.at-kind { opacity: .8; margin-top: 6px; }
.at-logo { position: absolute; left: 0; top: 0; font-family: "Anton", Impact, sans-serif; font-size: clamp(1.2rem, 3vw, 2.2rem); letter-spacing: .02em; padding: 10px 16px; border: 3px solid currentColor; border-radius: 50%/40%; color: var(--accent); white-space: nowrap; will-change: transform; mix-blend-mode: screen; }
.at-logo span { font-size: .6em; }
.at-hint { position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(24px, 6vh, 64px); color: rgba(244,241,234,.75); animation: blink 1.6s steps(1) infinite; }
@media (max-width: 640px) { .at-hint { left: 20px; right: auto; bottom: auto; top: 20px; } }

/* ---------- custom cursors per interface (mouse only; off in high contrast) ---------- */
@media (hover: hover) and (pointer: fine) {
  :root[data-ui="riot"]:not([data-cvd="contrast"]), :root[data-ui="riot"]:not([data-cvd="contrast"]) body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M27 4 L8 23' stroke='%230b0b0d' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M27 4 L8 23' stroke='%23f4f1ea' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M9 19 L13 23' stroke='%230b0b0d' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M9 19 L13 23' stroke='%239eff00' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M8 23 L3 28' stroke='%230b0b0d' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M8 23 L3 28' stroke='%23ff0054' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 27 4, auto; }
  :root[data-ui="riot"]:not([data-cvd="contrast"]) :is(a, button, label, summary, [role="tab"]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M27 4 L8 23' stroke='%230b0b0d' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M27 4 L8 23' stroke='%23ff0054' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M9 19 L13 23' stroke='%230b0b0d' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M9 19 L13 23' stroke='%239eff00' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M8 23 L3 28' stroke='%230b0b0d' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M8 23 L3 28' stroke='%23ff0054' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 27 4, pointer; }
  :root[data-ui="noir"]:not([data-cvd="contrast"]), :root[data-ui="noir"]:not([data-cvd="contrast"]) body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%230e1424' stroke-width='5'/%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%23d4a24c' stroke-width='2.5'/%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%23f3e9d2' stroke='%230e1424' stroke-width='1.2'/%3E%3C/svg%3E") 16 16, auto; }
  :root[data-ui="noir"]:not([data-cvd="contrast"]) :is(a, button, label, summary, [role="tab"]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%230e1424' stroke-width='5'/%3E%3Ccircle cx='16' cy='16' r='10' fill='rgba(212,162,76,.35)' stroke='%23d4a24c' stroke-width='2.5'/%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%23f3e9d2' stroke='%230e1424' stroke-width='1.2'/%3E%3C/svg%3E") 16 16, pointer; }
  :root[data-ui="village"]:not([data-cvd="contrast"]), :root[data-ui="village"]:not([data-cvd="contrast"]) body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C 20 2 30 12 28 28 C 12 30 2 20 3 3 Z' fill='%235b7b4a' stroke='%232b2a26' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 4 L 24 24' stroke='%23efe6d2' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M12 12 L 18 10 M16 16 L 22 15 M12 12 L 11 18 M16 16 L 15 22' stroke='%23efe6d2' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, auto; }
  :root[data-ui="village"]:not([data-cvd="contrast"]) :is(a, button, label, summary, [role="tab"]) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C 20 2 30 12 28 28 C 12 30 2 20 3 3 Z' fill='%23c8643b' stroke='%232b2a26' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 4 L 24 24' stroke='%23efe6d2' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M12 12 L 18 10 M16 16 L 22 15 M12 12 L 11 18 M16 16 L 15 22' stroke='%23efe6d2' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer; }
  :root:not([data-cvd="contrast"]) :is(input[type="text"], input:not([type]), textarea) { cursor: text; }
}
/* noir: soft brass spotlight follows the mouse */
.fx-spot { position: fixed; left: -220px; top: -220px; width: 440px; height: 440px; border-radius: 50%; pointer-events: none; z-index: 89; display: none; background: radial-gradient(circle, rgba(212,162,76,.16), rgba(212,162,76,.05) 40%, transparent 70%); mix-blend-mode: screen; will-change: transform; }
[data-ui="noir"] .fx-spot { display: block; }
:root[data-motion="reduce"] .fx-spot, :root[data-cvd="contrast"] .fx-spot { display: none !important; }
/* riot: katana slash on click */
.fx-slash { position: fixed; z-index: 380; pointer-events: none; width: 160px; height: 4px; margin: -2px 0 0 -80px; background: linear-gradient(90deg, transparent, #fff 40%, var(--accent) 60%, transparent); box-shadow: 0 0 14px var(--accent); transform: rotate(var(--r)) scaleX(0); animation: fxSlash .45s var(--ease-io) forwards; }
@keyframes fxSlash { 50% { transform: rotate(var(--r)) scaleX(1); opacity: 1; } 100% { transform: rotate(var(--r)) scaleX(1.3) translateX(30px); opacity: 0; } }
/* village: a leaf drifts down on click */
.fx-leaf { position: fixed; z-index: 380; pointer-events: none; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: #6f8a57; border-radius: 0 70% 0 70%; animation: fxLeaf 1.2s ease-in forwards; }
@keyframes fxLeaf { to { transform: translate(var(--dx), 90px) rotate(260deg); opacity: 0; } }
/* noir: brass ripple on click */
.fx-ring { position: fixed; z-index: 380; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #d4a24c; border-radius: 50%; animation: fxRing .8s var(--ease) forwards; }
@keyframes fxRing { to { transform: scale(7); opacity: 0; } }

/* ---------- Konami code: wolf mode ---------- */
.konami-fx { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; pointer-events: none; background: rgba(5,5,6,.82); animation: kfIn .3s ease-out; text-align: center; }
.konami-fx.out { animation: kfOut .8s ease-in forwards; }
@keyframes kfIn { from { opacity: 0; } }
@keyframes kfOut { to { opacity: 0; } }
.kf-flash { position: absolute; inset: 0; background: #fff; animation: kfFlash .5s ease-out forwards; }
@keyframes kfFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
.kf-moon { position: absolute; left: 50%; top: 14%; width: min(38vw, 340px); aspect-ratio: 1; margin-left: calc(min(38vw, 340px) / -2); border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffbe8, #f3e6b6 55%, #d9c27a); box-shadow: 0 0 120px rgba(255,240,190,.55); opacity: .9; animation: kfMoon 3s ease-out both; }
@keyframes kfMoon { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.kf-txt { position: relative; display: grid; gap: 6px; justify-items: center; color: #f4f1ea; }
.kf-txt b { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(6rem, 22vw, 16rem); line-height: .85; color: #ff0054; text-shadow: 6px 6px 0 #9eff00, -2px -2px 0 #fff; animation: kfPop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes kfPop { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } }
.kf-txt span { font-family: "Anton", Impact, sans-serif; font-size: clamp(1.4rem, 4vw, 3rem); letter-spacing: .04em; text-transform: uppercase; }
.kf-txt em { font-family: var(--f-mono); font-style: normal; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: #9eff00; }
.kf-txt strong { font-family: "Caveat", cursive; font-size: clamp(2rem, 6vw, 4rem); color: #f3e6b6; transform: rotate(-4deg); }
:root.konami .hero-rank b, :root.konami .rank b { animation: kRain 2.4s linear infinite; }
:root.konami .hero-title .ht-a { text-shadow: 4px 4px 0 var(--accent), -3px -3px 0 var(--accent-2); }
@keyframes kRain { to { filter: hue-rotate(360deg); } }
:root.konami .wordmark::after { content: " ☾"; color: var(--accent-2); }
:root[data-motion="reduce"] .konami-fx * { animation: none !important; }
