/* ==========================================================================
   USHIMITSU 丑三ツ刻 // 電脳夜市 2027
   styles.css
   --------------------------------------------------------------------------
   Design notes
   - 冷たい街 (cyan / ink) と、隠れた夜市 (vermillion / amber) の二色構造。
   - 見出しは明朝の太字。古い怪談と、新しいHUDをぶつける。
   - グローは「光源」にだけ使う。文字や面には使わない。
   - 装飾は SVG / CSS で描く。絵文字・記号文字は使わない。
   ========================================================================== */

/* ---------- 01. tokens ---------- */
:root {
  --ink-0: #03040a;
  --ink-1: #05060d;
  --ink-2: #0a0e1d;
  --ink-3: #111830;
  --ink-4: #1b2547;

  --line: rgba(122, 178, 255, .16);
  --line-2: rgba(122, 200, 255, .34);

  --tx: #e7edf9;
  --tx-2: #b5c1da;
  --tx-3: #7f8db0;
  --tx-4: #55627f;

  --cy: #2df1ff;
  --rd: #ff3b30;
  --am: #ffb547;
  --pk: #ff3d8b;
  --yl: #ffe14a;
  --vi: #a78bff;

  --f-serif: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --f-tech: "Chakra Petch", "Zen Kaku Gothic New", "Yu Gothic UI", sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Zen Kaku Gothic New", ui-monospace, monospace;

  --gut: clamp(16px, 4.6vw, 72px);
  --rail: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --depth: 0;
}

@media (min-width: 1100px) {
  :root { --rail: 56px; }
}

/* ---------- 02. reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink-1);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3a2a30 var(--ink-1);
}

body {
  margin: 0;
  color: var(--tx);
  background: var(--ink-1);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  line-break: strict;
  word-break: auto-phrase;        /* 日本語は文節で折り返す（未対応ブラウザは通常どおり） */
  text-wrap: pretty;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.is-booting, html.is-booting body { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ol, ul { margin: 0; padding: 0; }
::selection { background: var(--rd); color: #fff; }

:focus-visible { outline: 2px solid var(--yl); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 500;
  padding: 10px 16px; background: var(--cy); color: #001318;
  font: 700 13px/1 var(--f-tech); letter-spacing: .1em; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.noscript {
  position: fixed; inset: auto 0 0 0; z-index: 600; margin: 0; padding: 10px 16px;
  background: #1a0a0a; color: #ffd0c8; font-size: 13px; text-align: center;
}

main { position: relative; z-index: 5; }

.wrap {
  position: relative; z-index: 1;
  width: min(100% - var(--gut) * 2 - var(--rail) * 2, 1320px);
  margin-inline: auto;
}

.hot { color: var(--rd) !important; }
.warm { color: var(--am) !important; }

/* ---------- 03. shared components ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 600 11px/1 var(--f-tech); letter-spacing: .26em; color: var(--cy); text-transform: uppercase;
}
.tag i { width: 44px; height: 1px; background: linear-gradient(90deg, var(--cy), transparent); }
.tag span:last-child {
  font-family: var(--f-serif); font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--rd);
}

.h2 {
  margin: 0; color: var(--tx);
  font-family: var(--f-serif); font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 4.9rem); line-height: 1.12; letter-spacing: -.005em;
  font-feature-settings: "palt" 1; text-wrap: balance;
}
.h2 .ph { display: inline-block; }
.h2--xl { font-size: clamp(2.4rem, 6.8vw, 6.4rem); }

.sh-en {
  margin: 16px 0 0; color: var(--tx-3);
  font: 500 12px/1.5 var(--f-tech); letter-spacing: .32em; text-transform: uppercase;
}
.sh-lead { margin: 22px 0 0; max-width: 36em; color: var(--tx-2); font-size: clamp(.95rem, 1.15vw, 1.06rem); }

.kanji-bg {
  position: absolute; right: -1vw; top: 50%; translate: 0 -50%; z-index: 0;
  font: 800 clamp(280px, 46vw, 720px)/1 var(--f-serif);
  color: transparent; -webkit-text-stroke: 1px rgba(122, 178, 255, .11);
  user-select: none; pointer-events: none; will-change: transform;
}

.panel {
  --b: var(--cy);
  position: relative;
  background: linear-gradient(180deg, rgba(13, 19, 40, .78), rgba(7, 10, 22, .78));
  border: 1px solid var(--line);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; border: 1px solid var(--b);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.panel-h {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--tx-3); text-transform: uppercase;
}
.panel-h b { color: var(--tx); font-weight: 700; }

.led {
  display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rd); box-shadow: 0 0 8px var(--rd); animation: blink 1.6s infinite;
}

.spec { display: grid; margin: 0; }
.spec > div { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(122, 178, 255, .2); }
.spec dt { flex: none; font: 500 10.5px/1 var(--f-tech); letter-spacing: .22em; color: var(--tx-3); }
.spec dd { margin: 0 0 0 auto; font: 500 13px/1.35 var(--f-mono); color: var(--tx); text-align: right; letter-spacing: .02em; }
.spec--v > div { align-items: flex-start; }

/* ---- buttons: cut corners, fill sweep ---- */
.btn {
  --c: 13px; --bd: var(--cy); --fill: rgba(45, 241, 255, .04); --fg: var(--tx); --fg-h: #001318;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 17px 28px 17px 24px; border: 0; cursor: pointer;
  color: var(--fg); text-decoration: none; font-family: var(--f-sans);
  background: var(--bd);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: color .25s, transform .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 1px; z-index: -2; background: var(--fill);
  clip-path: polygon(calc(var(--c) - .6px) 0, 100% 0, 100% calc(100% - var(--c) + .6px), calc(100% - var(--c) + .6px) 100%, 0 100%, 0 calc(var(--c) - .6px));
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bd);
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--fg-h); }
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--yl); outline-offset: -6px; }

.btn-t { font-weight: 900; font-size: 1rem; letter-spacing: .1em; white-space: nowrap; }
.btn-s {
  padding-left: 16px; border-left: 1px solid currentColor;
  font: 600 10px/1.2 var(--f-tech); letter-spacing: .26em; opacity: .72; white-space: nowrap;
}
.btn-hot { --bd: var(--rd); --fill: rgba(255, 59, 48, .16); --fg: #fff; --fg-h: #170403; }
.btn-ghost { --bd: rgba(45, 241, 255, .7); }
.btn-xl { padding: 22px 34px 22px 30px; --c: 16px; }
.btn-xl .btn-t { font-size: 1.15rem; }
.btn-sm { padding: 12px 20px 12px 18px; --c: 10px; }
.btn-sm .btn-t { font-size: .88rem; }

/* ---------- 04. fixed FX ---------- */
.fx-dust { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; pointer-events: none; }

.fx-crt {
  position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 92% at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px);
}
.fx-crt::after {
  content: ""; position: absolute; inset: -60%;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.5 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .075; animation: grain 1s steps(1) infinite; will-change: transform;
}

.fx-warm {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(90% 62% at 50% 118%, rgba(255, 74, 40, calc(.02 + var(--depth) * .2)), transparent 70%);
}

/* custom cursor (JS adds .has-cursor on fine pointers) */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cur-dot {
  position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 10px var(--cy);
}
.cur-ring {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; translate: -50% -50%;
  border: 1px solid rgba(45, 241, 255, .5); border-radius: 50%;
  transition: width .24s var(--ease), height .24s var(--ease), border-radius .24s, border-color .2s;
}
.cur-ring b { position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--cy); opacity: 0; transition: opacity .2s; }
.cur-ring b:nth-child(1) { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.cur-ring b:nth-child(2) { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.cur-ring b:nth-child(3) { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }
.cur-ring b:nth-child(4) { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.cursor.lock .cur-ring { border-radius: 0; border-color: transparent; }
.cursor.lock .cur-ring b { opacity: 1; }
.cursor.warm-c .cur-dot { background: var(--rd); box-shadow: 0 0 10px var(--rd); }
.cursor.warm-c .cur-ring b { border-color: var(--rd); }
.cur-lab {
  position: absolute; left: 20px; top: 20px; font: 700 10px/1 var(--f-tech); letter-spacing: .22em; color: var(--cy);
  opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.lock .cur-lab { opacity: 1; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

/* ---------- 05. HUD ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 14px calc(var(--gut) * .7); pointer-events: none;
}
/* scrim: light on the hero, solid once content can slide underneath the bar */
.hud::before {
  content: ""; position: absolute; inset: 0 0 -34px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 4, 10, .95) 0, rgba(3, 4, 10, .9) 56%, rgba(3, 4, 10, 0) 100%);
  -webkit-mask: linear-gradient(180deg, #000 62%, transparent); mask: linear-gradient(180deg, #000 62%, transparent);
  opacity: .5; transition: opacity .4s;
}
html.is-scrolled .hud::before { opacity: 1; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.hud > * { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--tx); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--cy); flex: none; }
.brand-en { font: 700 14px/1 var(--f-tech); letter-spacing: .34em; }
.brand-jp { padding-left: 12px; border-left: 1px solid var(--line-2); font: 800 14px/1 var(--f-serif); letter-spacing: .16em; color: var(--tx-2); }

.hud-sec { margin: 0; display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--tx-3); white-space: nowrap; }
.hud-sec-tag { color: var(--cy); font-weight: 700; }
.hud-sec-tag::after { content: ""; display: inline-block; width: 26px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line-2); }

.hud-r { justify-self: end; display: flex; align-items: center; gap: 12px; }

.snd {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(3, 4, 10, .5); border: 1px solid var(--line); color: var(--tx-3); cursor: pointer;
  font: 600 10px/1 var(--f-tech); letter-spacing: .24em; transition: color .25s, border-color .25s;
}
.snd:hover { color: var(--tx); border-color: var(--line-2); }
.snd[aria-pressed="true"] { color: var(--cy); border-color: rgba(45, 241, 255, .5); }
.snd b { font-weight: 700; }
.snd-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd-eq i { display: block; width: 2px; height: 3px; background: currentColor; }
.snd[aria-pressed="true"] .snd-eq i { animation: eqb .8s ease-in-out infinite alternate; }
.snd[aria-pressed="true"] .snd-eq i:nth-child(2) { animation-delay: -.3s; }
.snd[aria-pressed="true"] .snd-eq i:nth-child(3) { animation-delay: -.55s; }
.snd[aria-pressed="true"] .snd-eq i:nth-child(4) { animation-delay: -.15s; }

.hud-cta {
  --c: 8px; display: inline-flex; align-items: center; padding: 10px 18px;
  background: var(--rd); color: #150403; text-decoration: none;
  font: 900 12px/1 var(--f-sans); letter-spacing: .16em;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: filter .2s;
}
.hud-cta:hover { filter: brightness(1.18); }
.hud-cta:focus-visible { outline-offset: -5px; outline-color: #fff; }

.menu-btn {
  display: none; position: relative; width: 42px; height: 40px; padding: 0; cursor: pointer;
  background: rgba(3, 4, 10, .5); border: 1px solid var(--line-2);
}
.menu-ico { position: absolute; inset: 0; }
.menu-ico i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--tx); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-ico i:nth-child(1) { top: 15px; }
.menu-ico i:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* left rail: elevator floor indicator + ruler */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 56px; z-index: 55; display: none; pointer-events: none; }
.rail-ruler {
  position: absolute; right: 8px; top: 0; bottom: 0; width: 14px; --ry: 0px;
  background:
    repeating-linear-gradient(180deg, rgba(181, 193, 218, .55) 0 1px, transparent 1px 64px) 0 var(--ry) / 14px 100% repeat-y,
    repeating-linear-gradient(180deg, rgba(122, 178, 255, .35) 0 1px, transparent 1px 16px) 0 var(--ry) / 7px 100% repeat-y;
  -webkit-mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.floor { position: absolute; left: 0; width: 46px; top: 50%; translate: 0 -50%; display: grid; justify-items: center; gap: 10px; }
.floor-lab { writing-mode: vertical-rl; font: 600 9px/1 var(--f-tech); letter-spacing: .4em; color: var(--tx-3); }
.floor-num { font: 700 20px/1 var(--f-tech); letter-spacing: .04em; color: var(--rd); text-shadow: 0 0 14px rgba(255, 59, 48, .55); min-width: 2ch; text-align: center; }
.floor-arr { width: 10px; height: 15px; fill: none; stroke: var(--rd); stroke-width: 1.4; transition: transform .3s var(--ease); }
.floor-arr.up { transform: rotate(180deg); }

/* right dots */
.dots { position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 55; display: none; }
.dots ul { list-style: none; display: grid; gap: 14px; }
.dots a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 20px; padding-right: 20px; color: var(--tx-3); text-decoration: none; }
.dots a i { display: block; width: 14px; height: 1px; background: currentColor; transition: width .35s var(--ease), background .3s, box-shadow .3s; }
.dot-l { opacity: 0; transform: translateX(8px); font: 600 10px/1 var(--f-tech); letter-spacing: .22em; white-space: nowrap; transition: opacity .3s, transform .35s var(--ease); }
.dots a:hover, .dots a:focus-visible { color: var(--tx); }
.dots a:hover .dot-l, .dots a:focus-visible .dot-l, .dots a[aria-current] .dot-l { opacity: 1; transform: none; }
.dots a[aria-current] { color: var(--tx); }
.dots a[aria-current] i { width: 34px; background: var(--rd); box-shadow: 0 0 10px var(--rd); }

@media (min-width: 1100px) {
  .rail, .dots { display: block; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--gut) 34px;
  background: radial-gradient(90% 60% at 80% 100%, rgba(255, 59, 48, .17), transparent 60%), rgba(3, 4, 10, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.menu ol { list-style: none; display: grid; }
.menu li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.open li { opacity: 1; transform: none; }
.menu.open li:nth-child(1) { transition-delay: .06s; } .menu.open li:nth-child(2) { transition-delay: .11s; }
.menu.open li:nth-child(3) { transition-delay: .16s; } .menu.open li:nth-child(4) { transition-delay: .21s; }
.menu.open li:nth-child(5) { transition-delay: .26s; } .menu.open li:nth-child(6) { transition-delay: .31s; }
.menu a { display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu a em { font: 700 16px/1 var(--f-tech); font-style: normal; color: var(--rd); letter-spacing: .06em; }
.menu a span { font: 800 clamp(1.4rem, 6.4vw, 2.1rem)/1.25 var(--f-serif); }
.menu a small { font: 600 10px/1 var(--f-tech); letter-spacing: .26em; color: var(--tx-3); }
.menu-foot { margin: 0; font: 500 11px/1.6 var(--f-mono); letter-spacing: .12em; color: var(--tx-3); }

/* ---------- 06. boot ---------- */
.boot { position: fixed; inset: 0; z-index: 300; display: none; animation: bootfail .01s linear 10s forwards; }
.js .boot { display: block; }
.boot-half { position: absolute; left: 0; right: 0; height: 50.3%; background: #020308; transition: transform .85s cubic-bezier(.7, 0, .2, 1); }
.boot-half--t { top: 0; }
.boot-half--b { bottom: 0; }
.boot.open .boot-half--t { transform: translateY(-101%); }
.boot.open .boot-half--b { transform: translateY(101%); }
.boot-in {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 clamp(20px, 8vw, 140px); transition: opacity .25s;
}
.boot.line .boot-in { opacity: 0; }
.boot-log { margin: 0; max-width: 760px; color: #7cf5ff; font: 400 12.5px/1.8 var(--f-mono); white-space: pre-wrap; }
.boot-log .ok { color: #7dff9b; }
.boot-log .warn { color: var(--yl); }
.boot-log .hot { color: var(--rd); }
.boot-log .dim { color: #4b5b7a; }
.boot-log .wh { color: #fff; }
.boot-bar { width: min(420px, 70vw); height: 3px; margin-top: 18px; background: rgba(45, 241, 255, .14); }
.boot-bar i { display: block; width: 100%; height: 100%; background: var(--cy); box-shadow: 0 0 12px var(--cy); transform: scaleX(0); transform-origin: 0 50%; }
.boot-hint { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 26px; margin: 0; font: 500 10px/1 var(--f-mono); letter-spacing: .3em; color: #4b5b7a; }
.boot-line {
  position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: #c8fbff;
  box-shadow: 0 0 28px 6px rgba(45, 241, 255, .75); transform: scaleX(0); opacity: 0;
}
.boot.line .boot-line { opacity: 1; animation: bootline .4s cubic-bezier(.2, .7, .2, 1) forwards; }
.boot.open .boot-line { opacity: 0; transition: opacity .3s .05s; }
.boot.done { display: none; }

/* ---------- 07. hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(92px, 13vh, 150px) calc(var(--gut) + var(--rail)) 158px;
}
.hero-scene { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; will-change: transform; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 10, .9) 0%, rgba(3, 4, 10, .64) 30%, rgba(3, 4, 10, .14) 62%, transparent 100%),
    linear-gradient(180deg, rgba(3, 4, 10, .74) 0, transparent 22%),
    linear-gradient(0deg, var(--ink-1) 0, rgba(5, 6, 13, 0) 24%);
}
.hero-vert {
  position: absolute; right: calc(var(--gut) + var(--rail) + 6px); top: 15%; z-index: -1; margin: 0;
  writing-mode: vertical-rl; font: 800 clamp(14px, 1.35vw, 20px)/1 var(--f-serif); letter-spacing: .72em;
  color: rgba(231, 237, 249, .5);
}
.hero-inner { position: relative; max-width: min(1120px, 100%); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: .13em; color: var(--cy); }
.eyebrow-t::after {
  content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 5px; vertical-align: -2px;
  background: var(--cy); animation: caret 1s steps(1) infinite;
}

.hl-wrap { position: relative; display: inline-block; margin: 22px 0 28px; }
.hl {
  margin: 0; color: var(--tx);
  font-family: var(--f-serif); font-weight: 800;
  font-size: clamp(3.1rem, min(8.7vw, 17vh), 9.8rem); line-height: 1.02; letter-spacing: -.02em;
  font-feature-settings: "palt" 1;
}
.hl-line { position: relative; display: block; white-space: nowrap; }
.hl-line + .hl-line { margin-left: .06em; }
.hl-lens {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
  clip-path: circle(var(--lr, 0px) at var(--lx, -999px) var(--ly, -999px));
}
.hl-lens .hl-line {
  color: rgba(255, 59, 48, .14); -webkit-text-stroke: 1.5px var(--rd);
  text-shadow: 0 0 26px rgba(255, 59, 48, .6);
}

.lead { margin: 0; max-width: 33em; color: var(--tx-2); font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 2; }
.lead strong { display: block; margin-top: .55em; color: var(--tx); font-weight: 700; letter-spacing: .06em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 4.4vh, 40px); }

.hero-foot {
  position: absolute; left: calc(var(--gut) + var(--rail)); right: calc(var(--gut) + var(--rail)); bottom: 30px;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "meta scroll scan" "meta scroll hud";
  align-items: end; gap: 10px 28px;
}
.hf-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.hf-meta > div { display: grid; gap: 6px; }
.hf-meta dt { font: 600 10px/1 var(--f-tech); letter-spacing: .3em; color: var(--tx-3); }
.hf-meta dd { margin: 0; font: 500 13px/1.3 var(--f-mono); letter-spacing: .05em; color: var(--tx); }
.hf-meta dd em { font-style: normal; color: var(--cy); }
.hf-meta .arr { display: inline-block; width: 22px; height: 1px; margin: 0 8px 3px; vertical-align: middle; background: var(--tx-3); position: relative; }
.hf-meta .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--tx-3); border-right: 1px solid var(--tx-3); rotate: 45deg; }

.hf-scan { grid-area: scan; justify-self: end; display: flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1.4 var(--f-sans); color: var(--tx-2); }
.hf-scan svg { width: 22px; height: 22px; fill: none; stroke: var(--cy); stroke-width: 1.2; flex: none; }
.hf-scan svg .dot { fill: var(--rd); stroke: none; }
.hf-scroll { grid-area: scroll; display: grid; justify-items: center; gap: 10px; text-decoration: none; font: 600 10px/1 var(--f-tech); letter-spacing: .36em; color: var(--tx-3); padding-left: .36em; }
.hf-scroll i { display: block; width: 1px; height: 48px; background: linear-gradient(var(--cy), transparent); transform-origin: 50% 0; animation: cue 2.2s ease-in-out infinite; }
.hf-hud { grid-area: hud; justify-self: end; display: flex; gap: 18px; margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--tx-3); }
.hf-hud b { color: var(--tx); font-weight: 500; }
.hf-hud b.hot { font-weight: 700; }

/* ---------- 08. prologue ---------- */
.pro { position: relative; padding: clamp(96px, 15vh, 170px) 0 clamp(60px, 10vh, 120px); overflow-x: clip; }
.pro .kanji-bg { top: 45%; }
.pro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.pro-copy { padding-bottom: 10vh; }
.pro-copy .h2 { font-size: clamp(2.1rem, 4.6vw, 4.5rem); }
.prose { margin-top: clamp(36px, 8vh, 90px); }
.prose p { margin: 0 0 clamp(44px, 15vh, 160px); max-width: 30em; color: var(--tx-2); font-size: clamp(.96rem, 1.15vw, 1.08rem); line-height: 2.05; }
.prose .prose-em { color: var(--tx); font-family: var(--f-serif); font-weight: 800; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.85; letter-spacing: .04em; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start; border-top: 1px solid var(--line); }
.stats li { display: grid; gap: 6px; padding: 18px clamp(14px, 2.4vw, 34px) 0 0; margin-right: clamp(14px, 2.4vw, 34px); border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats b { font: 700 clamp(1.6rem, 3vw, 2.5rem)/1 var(--f-tech); letter-spacing: .02em; color: var(--tx); }
.stats span { font-size: 12px; line-height: 1.5; color: var(--tx-3); letter-spacing: .06em; }

.pro-vis { position: sticky; top: max(96px, calc(50vh - 310px)); display: grid; gap: 20px; }
.iris { position: relative; margin: 0 auto; width: min(100%, clamp(280px, 46vh, 470px)); aspect-ratio: 1; }
.iris svg { width: 100%; height: 100%; overflow: visible; }
.iris figcaption { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.iris-time { font: 700 clamp(1.3rem, 2.3vw, 1.9rem)/1 var(--f-tech); letter-spacing: .06em; color: var(--tx); font-variant-numeric: tabular-nums; }
.iris-state { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--cy); white-space: nowrap; }
.iris-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.iris.is-closed .iris-state { color: var(--rd); }
.iris.is-closed .iris-state i { background: var(--rd); box-shadow: 0 0 8px var(--rd); animation: blink 1s infinite; }

.log-list { list-style: none; display: grid; gap: 0; padding: 12px 14px 14px; height: clamp(150px, 27vh, 250px); overflow: hidden; align-content: end; font: 400 12px/1.65 var(--f-mono); }
.log-list li { display: grid; grid-template-columns: 62px 66px 1fr; gap: 10px; color: var(--tx-2); }
.log-list li[hidden] { display: none; }
.log-list li.new { animation: logIn .5s var(--ease); }
.log-list time { color: var(--tx-4); font-variant-numeric: tabular-nums; }
.log-list b { font-weight: 700; color: var(--cy); letter-spacing: .04em; }

/* ---------- 09. zones ---------- */
.zones { position: relative; padding: clamp(96px, 15vh, 170px) 0; overflow: clip; }
.zones .kanji-bg { top: 30%; right: auto; left: -3vw; }
.zlist { display: flex; gap: 10px; height: clamp(450px, 64vh, 650px); margin-top: clamp(36px, 7vh, 72px); }
.zone {
  --zc: var(--cy); --zw: clamp(64px, 7.2vw, 100px);
  position: relative; flex: 0 0 var(--zw); min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 40, .72), rgba(7, 10, 22, .72));
  border: 1px solid var(--line);
  transition: flex-grow .75s var(--ease), border-color .3s, background .4s;
}
.zone:nth-child(1) { --zc: #2df1ff; } .zone:nth-child(2) { --zc: #ff5aa5; } .zone:nth-child(3) { --zc: #ffb547; }
.zone:nth-child(4) { --zc: #ff3b30; } .zone:nth-child(5) { --zc: #a78bff; }
.zone.is-open { flex: 1 0 var(--zw); border-color: color-mix(in srgb, var(--zc) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--zc) 9%, #0d1328), rgba(7, 10, 22, .8)); }
.zone:not(.is-open):hover { border-color: var(--line-2); }

.zone-h { position: absolute; inset: 0 auto 0 0; width: var(--zw); margin: 0; z-index: 2; }
.zone-h button {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 100%; height: 100%; padding: 18px 0 20px; background: none; border: 0; cursor: pointer; color: var(--tx);
}
.z-fl { font: 700 15px/1 var(--f-tech); letter-spacing: .12em; color: var(--zc); }
.z-jp { writing-mode: vertical-rl; font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1 var(--f-serif); letter-spacing: .14em; transition: color .3s; }
.z-en { writing-mode: vertical-rl; font: 500 10px/1 var(--f-tech); letter-spacing: .34em; color: var(--tx-3); white-space: nowrap; }
.zone:not(.is-open) .zone-h button:hover .z-jp { color: var(--zc); }

.zone-panel { position: absolute; inset: 0 0 0 var(--zw); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .4s; }
.zone.is-open .zone-panel { visibility: visible; opacity: 1; transition: opacity .6s .3s, visibility 0s; }
.zp-in { display: flex; flex-direction: column; gap: 16px; height: 100%; min-width: min(560px, 54vw); padding: 26px 32px 24px 6px; }
.ico { width: clamp(64px, 6.4vw, 92px); height: auto; aspect-ratio: 1; fill: none; stroke: var(--zc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .draw { stroke-dasharray: 400; stroke-dashoffset: 400; }
.zone.is-open .ico .draw { animation: drawIn 1.3s .35s var(--ease) forwards; }
.zp-nm { display: grid; gap: 6px; margin: 4px 0 0; }
.zp-nm b { font: 800 clamp(1.8rem, 3.2vw, 2.9rem)/1.1 var(--f-serif); letter-spacing: .04em; }
.zp-nm span { font: 600 11px/1 var(--f-tech); letter-spacing: .3em; color: var(--zc); }
.zp-tx { margin: 0; max-width: 30em; color: var(--tx-2); font-size: clamp(.92rem, 1.05vw, 1rem); line-height: 1.95; }
.zp-in .spec { margin-top: auto; max-width: 34em; }
.zp-in .spec dd { color: var(--tx); }

.ico-sky .rain { stroke-dasharray: 5 6; animation: rainfall .9s linear infinite; stroke: var(--zc); opacity: .8; }
.ico-noodle .steam { stroke-dasharray: 5 4; animation: steam 1.6s linear infinite; }
.ico .pulse { animation: pulse 2.2s ease-in-out infinite; }
.ico .pulse.p2 { animation-delay: -1.1s; }
.ico-eq .bar { fill: var(--zc); stroke: none; opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite alternate; }
.ico-eq .bar:nth-of-type(2) { animation-delay: -.2s; } .ico-eq .bar:nth-of-type(3) { animation-delay: -.5s; }
.ico-eq .bar:nth-of-type(4) { animation-delay: -.8s; } .ico-eq .bar:nth-of-type(5) { animation-delay: -.35s; }
.ico-eq .bar:nth-of-type(6) { animation-delay: -.65s; } .ico-eq .bar:nth-of-type(7) { animation-delay: -.1s; }

/* ---------- 10. tower ---------- */
.tower { position: relative; padding: clamp(96px, 15vh, 170px) 0; overflow: clip; }
.tower .kanji-bg { top: 40%; }
.tower-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.floors { display: grid; margin: 34px 0 20px; border-top: 1px solid var(--line); }
.floors button {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--tx-2); text-align: left; cursor: pointer;
  transition: background .3s, color .3s, padding .35s var(--ease), box-shadow .3s;
}
.floors button:hover { color: var(--tx); background: linear-gradient(90deg, rgba(255, 59, 48, .06), transparent); }
.floors button[aria-selected="true"] { padding-left: 26px; color: var(--tx); background: linear-gradient(90deg, rgba(255, 59, 48, .13), transparent 80%); box-shadow: inset 3px 0 0 var(--rd); }
.f-no { font: 700 18px/1 var(--f-tech); letter-spacing: .1em; color: var(--cy); }
.floors button[aria-selected="true"] .f-no { color: var(--rd); }
.f-nm { font: 800 20px/1.25 var(--f-serif); letter-spacing: .06em; }
.f-en { font: 500 10px/1 var(--f-tech); letter-spacing: .26em; color: var(--tx-3); }
.fpanels { margin-top: 0; }
.fp { padding: 16px 18px 12px; }
.fp[hidden] { display: none; }
.no-js .fp[hidden] { display: block; }
.fp-tx { margin: 0 0 8px; color: var(--tx-2); font-size: .98rem; line-height: 1.9; }
.fp.enter { animation: logIn .5s var(--ease); }

.tower-vis { position: sticky; top: 11vh; }
#isoSvg { width: 100%; height: auto; overflow: visible; }
.iso-plate { cursor: pointer; transition: transform .7s var(--ease); }
.iso-plate .top { fill: rgba(45, 241, 255, .045); stroke: rgba(45, 241, 255, .5); stroke-width: 1; transition: fill .4s, stroke .4s; }
.iso-plate .side { fill: rgba(45, 241, 255, .12); stroke: rgba(45, 241, 255, .35); stroke-width: 1; transition: fill .4s, stroke .4s; }
.iso-plate .plan { fill: none; stroke: rgba(45, 241, 255, .32); stroke-width: .9; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.iso-plate .plan .f { fill: rgba(45, 241, 255, .08); }
.iso-plate .lab { font: 700 15px var(--f-tech); letter-spacing: .12em; fill: var(--tx-3); transition: fill .4s; }
.iso-plate .lab-s { font: 500 9px var(--f-tech); letter-spacing: .3em; fill: var(--tx-4); transition: fill .4s; }
.iso-plate .lab-m { display: none; font: 800 22px var(--f-serif); letter-spacing: .06em; fill: var(--tx-2); transition: fill .4s; }
.iso-plate .lead { stroke: var(--line-2); stroke-width: 1; fill: none; transition: stroke .4s; }
.iso-plate:hover .top { fill: rgba(45, 241, 255, .09); stroke: var(--cy); }
.iso-plate.is-sel .top { fill: rgba(255, 59, 48, .12); stroke: var(--rd); }
.iso-plate.is-sel .side { fill: rgba(255, 59, 48, .2); stroke: rgba(255, 59, 48, .6); }
.iso-plate.is-sel .plan { stroke: rgba(255, 150, 130, .9); }
.iso-plate.is-sel .plan .f { fill: rgba(255, 59, 48, .14); }
.iso-plate.is-sel .lab { fill: var(--rd); }
.iso-plate.is-sel .lab-s { fill: var(--tx-2); }
.iso-plate.is-sel .lab-m { fill: var(--tx); }
.iso-plate.is-sel .lead { stroke: var(--rd); }
.iso-shaft { stroke: rgba(122, 178, 255, .3); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.iso-car { fill: var(--rd); filter: drop-shadow(0 0 8px rgba(255, 59, 48, .9)); transition: transform .7s var(--ease); }
.iso-beam { fill: none; stroke: var(--rd); stroke-width: 1; stroke-dasharray: 4 6; animation: dashRun 1.2s linear infinite; opacity: .7; }

.elev { position: absolute; right: 0; bottom: 4%; display: grid; justify-items: center; gap: 6px; }
.elev button { display: grid; place-items: center; width: 42px; height: 34px; padding: 0; background: rgba(3, 4, 10, .6); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .25s, background .25s; }
.elev button:hover { border-color: var(--rd); background: rgba(255, 59, 48, .12); }
.elev svg { width: 15px; height: 9px; fill: none; stroke: var(--tx); stroke-width: 1.5; }
.elev-no { min-width: 42px; padding: 8px 0; text-align: center; border: 1px solid var(--line); font: 700 17px/1 var(--f-tech); letter-spacing: .08em; color: var(--rd); text-shadow: 0 0 12px rgba(255, 59, 48, .5); }

/* ---------- 11. timetable ---------- */
.tt { position: relative; height: 430vh; --pph: 270px; }
.tt-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: flex; flex-direction: column; padding: 88px 0 34px;
  background: radial-gradient(90% 70% at 50% 108%, var(--glow, rgba(255, 140, 90, .1)), transparent 70%);
}
.tt-pin .kanji-bg { top: 55%; }
.tt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex: none; }
.tt-top .h2 { font-size: clamp(2rem, 4.3vw, 3.9rem); }
.tt-top .sh-lead { margin-top: 14px; }
.tt-hint { display: block; margin-top: 4px; font-style: normal; font: 600 11px/1.6 var(--f-tech); letter-spacing: .24em; color: var(--rd); }
.tt-clock { display: grid; gap: 8px; justify-items: end; flex: none; }
.tt-clock svg { width: min(250px, 44vw); height: auto; overflow: visible; }
.tt-clock-l { font: 600 10px/1 var(--f-tech); letter-spacing: .3em; color: var(--tx-3); }

.tt-view {
  position: relative; flex: 1; min-height: 240px; margin-top: clamp(10px, 2.4vh, 30px); overflow: clip;
  -webkit-mask: linear-gradient(90deg, transparent 0, transparent 3.4%, #000 9%, #000 88%, transparent 97%);
  mask: linear-gradient(90deg, transparent 0, transparent 3.4%, #000 9%, #000 88%, transparent 97%);
}
.tt-track { position: absolute; left: 0; top: 0; bottom: 0; width: var(--tw, 4400px); will-change: transform; }
.tt-rail { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 4%, var(--line-2) 96%, transparent); }
.tt-rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 11px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(var(--pph) / 4));
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tt-blind {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x0, 340px) + 8 * var(--pph)); width: calc(var(--pph) * .5);
  background: repeating-linear-gradient(-45deg, rgba(255, 59, 48, .1) 0 8px, rgba(255, 59, 48, .02) 8px 16px);
  border-inline: 1px solid rgba(255, 59, 48, .5);
}
.tt-blind span { position: absolute; left: 50%; top: 6px; translate: -50% 0; writing-mode: vertical-rl; font: 700 10px/1 var(--f-tech); letter-spacing: .34em; color: var(--rd); white-space: nowrap; }
.tt-nodes { list-style: none; }
.tt-node {
  --x: calc(var(--x0, 340px) + var(--t) * var(--pph));
  position: absolute; left: var(--x); width: 250px; padding: 0 0 0 0;
}
.tt-node::before { content: ""; position: absolute; left: 0; width: 9px; height: 9px; margin-left: -4px; background: var(--ink-1); border: 1px solid var(--cy); rotate: 45deg; z-index: 2; transition: background .3s, border-color .3s, box-shadow .3s; }
.tt-node::after { content: ""; position: absolute; left: 0; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.tt-node:nth-child(odd) { bottom: calc(50% + 22px); }
.tt-node:nth-child(odd)::before { bottom: -27px; }
.tt-node:nth-child(odd)::after { bottom: -22px; height: 22px; background: linear-gradient(var(--line-2), var(--cy)); }
.tt-node:nth-child(even) { top: calc(50% + 22px); }
.tt-node:nth-child(even)::before { top: -27px; }
.tt-node:nth-child(even)::after { top: -22px; height: 22px; background: linear-gradient(var(--cy), var(--line-2)); }
.tt-node > * { margin-left: 16px; }
.tt-node time { display: block; font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--f-tech); letter-spacing: .04em; color: var(--tx-3); transition: color .4s; font-variant-numeric: tabular-nums; }
.tt-node h3 { margin: 8px 0 0 16px; font: 800 clamp(1.15rem, 1.6vw, 1.4rem)/1.3 var(--f-serif); letter-spacing: .06em; color: var(--tx-2); transition: color .4s; }
.tt-node .en { margin: 4px 0 8px 16px; font: 600 10px/1.4 var(--f-tech); letter-spacing: .3em; color: var(--tx-4); transition: color .4s; }
.tt-node p:last-child { margin: 0 0 0 16px; max-width: 21em; color: var(--tx-3); font-size: .86rem; line-height: 1.8; transition: color .4s; }
.tt-node.is-past::before { background: var(--cy); box-shadow: 0 0 10px var(--cy); }
.tt-node.is-past time, .tt-node.is-now time { color: var(--tx); }
.tt-node.is-now h3, .tt-node.is-past h3 { color: var(--tx); }
.tt-node.is-now p:last-child, .tt-node.is-past p:last-child { color: var(--tx-2); }
.tt-node.is-now .en { color: var(--cy); }
.tt-node.is-now::before { background: var(--rd); border-color: var(--rd); box-shadow: 0 0 14px var(--rd); }
.tt-node--peak { width: 290px; }
.tt-node--peak time { font-size: clamp(2.6rem, 4.6vw, 4rem); color: var(--rd); text-shadow: 0 0 22px rgba(255, 59, 48, .55); }
.tt-node--peak h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--tx); }
.tt-node--peak .en { color: var(--rd); }
.tt-node--peak::before { background: var(--rd); border-color: var(--rd); box-shadow: 0 0 16px var(--rd); }
.tt-node--peak p:last-child { color: var(--tx-2); }

.tt-cursor { position: absolute; left: var(--cur, 32%); top: 0; bottom: 0; width: 1px; pointer-events: none; background: linear-gradient(transparent, rgba(45, 241, 255, .7) 20%, rgba(45, 241, 255, .7) 80%, transparent); }
.tt-cursor i { position: absolute; left: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border: 1px solid var(--cy); background: var(--ink-1); rotate: 45deg; }
.tt-bar { flex: none; height: 2px; margin: 18px var(--gut) 0; background: rgba(122, 178, 255, .16); }
.tt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--rd)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- 12. access ---------- */
.acc { position: relative; padding: clamp(96px, 15vh, 170px) 0 clamp(110px, 16vh, 190px); overflow: clip; }
.acc .kanji-bg { top: 52%; right: -3vw; }
.acc-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink-1) 0, transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 90, 60, .16) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 90, 60, .14) 0 1px, transparent 1px 44px);
  transform: perspective(520px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(0deg, #000 10%, transparent 92%); mask: linear-gradient(0deg, #000 10%, transparent 92%);
  opacity: .8;
}
.sh--wide { max-width: 60rem; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 86px); margin-top: clamp(36px, 7vh, 72px); align-items: start; }

.cd-lab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 16px; }
.cd-lab span { font: 800 1.2rem/1 var(--f-serif); letter-spacing: .1em; }
.cd-lab em { font: 500 10px/1.4 var(--f-tech); font-style: normal; letter-spacing: .24em; color: var(--tx-3); }
/* 9 digits in groups of 3-2-2-2 (+3 colons): each digit is sized from the width of its own column, so nothing overlaps */
.cd { container-type: inline-size; --gg: clamp(6px, 1.2vw, 14px); --gd: clamp(3px, .6vw, 7px); --cw: clamp(6px, 1vw, 11px); --dw: clamp(30px, 5.2vw, 62px); }
@supports (width: 1cqw) {
  .cd-d, .cd-c { --dw: min(62px, calc((100cqw - 5 * var(--gd) - 6 * var(--gg) - 3 * var(--cw)) / 9)); }
}
.cd-digits { display: flex; align-items: flex-end; gap: var(--gg); }
.cd-g { display: flex; flex: none; gap: var(--gd); }
.cd-d { flex: none; max-width: none; width: var(--dw); height: auto; overflow: visible; filter: drop-shadow(0 0 7px rgba(255, 59, 48, .55)); }
.cd-d .s { fill: rgba(255, 59, 48, .09); transition: fill .12s; }
.cd-d .s.on { fill: var(--rd); }
.cd-d.chg { animation: dchg .28s steps(2); }
.cd-c { flex: none; width: var(--cw); height: calc(var(--dw) * 1.727); display: grid; align-content: center; gap: 22%; padding-bottom: 6px; }
.cd-c i { display: block; aspect-ratio: 1; background: var(--rd); box-shadow: 0 0 8px var(--rd); animation: blink 1s steps(1) infinite; }
.cd-units { display: flex; gap: var(--gg); margin: 10px 0 0; }
.cd-units span { flex: none; font: 600 10px/1 var(--f-tech); letter-spacing: .3em; color: var(--tx-3); }

.notice {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; margin-top: clamp(26px, 4.6vh, 44px); padding: 16px 20px 16px 18px;
  border: 1px solid rgba(255, 225, 74, .5);
  background: repeating-linear-gradient(-45deg, rgba(255, 225, 74, .07) 0 10px, transparent 10px 20px);
}
.notice svg { width: 32px; height: 32px; fill: none; stroke: var(--yl); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.notice p { margin: 0; font-size: .92rem; line-height: 1.8; color: var(--tx-2); }
.notice b { display: block; margin-bottom: 2px; font: 700 12px/1.6 var(--f-tech); letter-spacing: .22em; color: var(--yl); }

.offer { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(22px, 4vh, 38px); border-top: 1px solid var(--line); }
.offer li { display: grid; gap: 6px; padding: 16px 12px 0 0; }
.offer li + li { padding-left: clamp(12px, 2vw, 26px); border-left: 1px solid var(--line); }
.offer b { font: 700 clamp(1.7rem, 3.2vw, 2.7rem)/1 var(--f-tech); letter-spacing: .02em; }
.offer span { font-size: 12px; line-height: 1.5; color: var(--tx-3); letter-spacing: .05em; }

.pass-form { display: grid; gap: 14px; }
.pf-lab { display: flex; align-items: baseline; gap: 14px; }
.pf-lab span { font: 700 12px/1 var(--f-tech); letter-spacing: .32em; color: var(--cy); }
.pf-lab em { font: 800 1.05rem/1 var(--f-serif); font-style: normal; letter-spacing: .1em; }
.field { position: relative; }
.field input {
  width: 100%; padding: 16px 4px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; outline: none;
  color: var(--tx); caret-color: var(--rd);
  font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--f-tech); letter-spacing: .08em;
}
.field input::placeholder { color: var(--tx-4); font-weight: 500; }
.field-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rd); box-shadow: 0 0 12px var(--rd); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.field input:focus ~ .field-line { transform: scaleX(1); }
.field.err .field-line { transform: scaleX(1); background: var(--yl); box-shadow: 0 0 12px var(--yl); animation: shake .35s; }
.field-hint { margin: 0; font-size: .8rem; line-height: 1.7; color: var(--tx-3); }
.pass-form .btn { justify-self: start; margin-top: 8px; }

.pass-out { margin-top: clamp(26px, 4.4vh, 44px); }
.pass-out[hidden] { display: none; }
.pass-slot { height: 6px; margin: 0 4%; background: #000; border: 1px solid var(--line-2); box-shadow: 0 0 20px rgba(255, 59, 48, .55), inset 0 0 6px rgba(255, 59, 48, .8); }
.pass-card { position: relative; perspective: 1000px; margin-top: -3px; clip-path: inset(0 0 100% 0); }
.pass-out.printing .pass-card { animation: print 1.7s steps(18) forwards; }
.pass-out.ready .pass-card { clip-path: none; }
.pass-card canvas { width: 100%; height: auto; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry2, 0deg)); transition: transform .15s ease-out; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); will-change: transform; }
.pass-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .26), transparent 42%); mix-blend-mode: overlay; }
.pass-card:hover .pass-sheen { opacity: 1; }
.pass-status { margin: 14px 0 0; min-height: 1.6em; font: 500 12px/1.6 var(--f-mono); letter-spacing: .08em; color: var(--tx-3); }
.pass-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- 13. footer ---------- */
.foot { position: relative; z-index: 5; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); }
.foot-hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--yl) 0 12px, #0a0a0a 12px 24px); opacity: .88; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.5fr auto auto; gap: 26px 44px; align-items: center; padding: 46px 0 30px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .brand-mark { width: 44px; height: 44px; color: var(--cy); }
.foot-name { margin: 0; font: 700 17px/1.2 var(--f-tech); letter-spacing: .3em; }
.foot-name span { margin-left: 10px; font: 800 16px var(--f-serif); letter-spacing: .14em; color: var(--tx-2); }
.foot-sub { margin: 6px 0 0; font: 500 10px/1.5 var(--f-mono); letter-spacing: .18em; color: var(--tx-3); }
.foot-links { list-style: none; display: grid; gap: 6px; }
.foot-links a { display: inline-block; font-size: .86rem; color: var(--tx-2); text-decoration: none; transition: color .2s; }
.foot-links a em { font: 500 10px var(--f-tech); font-style: normal; letter-spacing: .22em; color: var(--tx-4); }
.foot-links a:hover { color: var(--cy); }
.foot-ch { list-style: none; display: flex; gap: 10px; }
.foot-ch a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--tx-2); border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.foot-ch a:hover { color: var(--cy); border-color: var(--cy); background: rgba(45, 241, 255, .06); }
.foot-ch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; background: none; border: 1px solid var(--line-2); cursor: pointer; font: 700 10px/1 var(--f-tech); letter-spacing: .28em; color: var(--tx); transition: border-color .25s, background .25s; }
.to-top:hover { border-color: var(--rd); background: rgba(255, 59, 48, .1); }
.to-top svg { width: 10px; height: 15px; fill: none; stroke: var(--rd); stroke-width: 1.5; }
.foot-legal { padding: 22px 0 40px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.foot-legal p { margin: 0; font: 500 11px/1.7 var(--f-mono); letter-spacing: .1em; color: var(--tx-3); }
.foot-legal .foot-note { font: 400 12px/1.8 var(--f-sans); letter-spacing: .04em; color: var(--tx-4); max-width: 60em; }

/* ---------- 14. reveal / entrance states ---------- */
.js [data-rv] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rvd, 0s); }
.js [data-rv].in { opacity: 1; transform: none; }

.js [data-h] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--hd, 0s), transform .9s var(--ease) var(--hd, 0s); }
.js.live [data-h] { opacity: 1; transform: none; }
[data-h="1"] { --hd: .15s; } [data-h="2"] { --hd: .3s; } [data-h="3"] { --hd: .9s; } [data-h="4"] { --hd: 1.15s; } [data-h="5"] { --hd: 1.5s; }

.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; opacity: 0;
}
.glitch::before { color: var(--cy); mix-blend-mode: screen; }
.glitch::after { color: var(--rd); mix-blend-mode: screen; }
.glitch.is-g { animation: gjit .4s steps(1, end); }
.glitch.is-g::before { opacity: .95; animation: g1 .4s steps(1, end); }
.glitch.is-g::after { opacity: .95; animation: g2 .4s steps(1, end); }

/* ---------- 15. keyframes ---------- */
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .2; } }
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(14px); opacity: 0; } }
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-7%, 4%); } 33% { transform: translate(5%, -6%); } 50% { transform: translate(-3%, 8%); } 67% { transform: translate(8%, 2%); } 83% { transform: translate(-6%, -4%); } 100% { transform: translate(0, 0); } }
@keyframes eqb { from { height: 3px; } to { height: 12px; } }
@keyframes bootline { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes bootfail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes logIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes rainfall { to { stroke-dashoffset: -22; } }
@keyframes steam { to { stroke-dashoffset: -18; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes eq { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
@keyframes dashRun { to { stroke-dashoffset: -20; } }
@keyframes dchg { 0% { opacity: .2; } 50% { opacity: 1; transform: translateX(1px); } 100% { opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gjit { 0% { transform: translateX(0); } 20% { transform: translateX(3px); } 40% { transform: translateX(-2px); } 60% { transform: translateX(2px); } 80% { transform: translateX(-3px); } 100% { transform: none; } }
@keyframes g1 {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-7px, 0); }
  20% { clip-path: inset(54% 0 22% 0); transform: translate(6px, -1px); }
  40% { clip-path: inset(78% 0 4% 0); transform: translate(-5px, 1px); }
  60% { clip-path: inset(30% 0 46% 0); transform: translate(8px, 0); }
  80% { clip-path: inset(2% 0 86% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(0); transform: none; opacity: 0; }
}
@keyframes g2 {
  0% { clip-path: inset(64% 0 14% 0); transform: translate(7px, 0); }
  20% { clip-path: inset(8% 0 76% 0); transform: translate(-6px, 1px); }
  40% { clip-path: inset(40% 0 40% 0); transform: translate(5px, 0); }
  60% { clip-path: inset(84% 0 2% 0); transform: translate(-8px, -1px); }
  80% { clip-path: inset(20% 0 60% 0); transform: translate(4px, 0); }
  100% { clip-path: inset(0); transform: none; opacity: 0; }
}

/* ---------- 16. responsive ---------- */
@media (max-width: 1099px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud-sec { display: none; }
  .hud-cta { display: none; }
  .js .menu-btn { display: block; }
  .hero-foot { grid-template-columns: 1fr auto; grid-template-areas: "meta scroll" "scan scroll"; }
  .hf-hud { display: none; }
  .hf-scan { justify-self: start; }
  .hero-vert { display: none; }
}

@media (max-width: 899px) {
  .pro-grid, .tower-grid, .acc-grid { grid-template-columns: 1fr; }
  .pro-vis, .tower-vis { position: relative; top: auto; }
  .pro-copy { padding-bottom: 0; }
  .prose p { margin-bottom: 28px; }
  .prose { margin-top: 28px; }
  .stats { margin-top: 10px; }
  .tower-vis { order: -1; }
  .kanji-bg { font-size: clamp(220px, 70vw, 420px); }

  /* portrait: the copy sits right on top of the skyline, so shade the whole column */
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 4, 10, .8) 0, rgba(3, 4, 10, .5) 14%, rgba(3, 4, 10, .6) 34%, rgba(3, 4, 10, .74) 58%, rgba(3, 4, 10, .9) 80%, var(--ink-1) 100%);
  }
  .hl { text-shadow: 0 2px 20px rgba(3, 4, 10, .9); }
  .lead { text-shadow: 0 0 10px rgba(3, 4, 10, .95), 0 0 2px rgba(3, 4, 10, .9); }

  /* zones -> vertical accordion */
  .zlist { flex-direction: column; height: auto; gap: 8px; }
  .zone { flex: none; display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .6s var(--ease), border-color .3s, background .4s; }
  .zone.is-open { flex: none; grid-template-rows: auto 1fr; }
  .zone-h { position: static; width: auto; }
  .zone-h button { flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; padding: 18px 18px; }
  .z-jp, .z-en { writing-mode: horizontal-tb; }
  .z-jp { font-size: 1.5rem; letter-spacing: .1em; }
  .z-en { margin-left: auto; font-size: 9px; letter-spacing: .24em; }
  .zone-panel { position: static; inset: auto; min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; }
  .zone.is-open .zone-panel { visibility: visible; opacity: 1; }
  .zp-in { height: auto; min-width: 0; padding: 4px 18px 22px; }
  .zp-in .spec { margin-top: 8px; }

  /* timetable -> vertical list */
  .tt { height: auto !important; }
  .tt-pin { position: relative; height: auto; overflow: visible; overflow-x: clip; padding: clamp(96px, 14vh, 150px) 0 clamp(60px, 10vh, 100px); }
  .tt-clock { display: none; }
  .tt-view { overflow: visible; min-height: 0; margin-top: 34px; -webkit-mask: none; mask: none; }
  .tt-track { position: relative; width: auto; transform: none !important; padding-left: 28px; margin-left: var(--gut); margin-right: var(--gut); }
  .tt-rail { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--line-2) 96%, transparent); }
  .tt-rail::before, .tt-blind, .tt-cursor, .tt-bar { display: none; }
  .tt-nodes { display: grid; gap: 34px; }
  .tt-node, .tt-node:nth-child(odd), .tt-node:nth-child(even) { position: relative; left: auto; top: auto; bottom: auto; width: auto; max-width: none; }
  .tt-node::before, .tt-node:nth-child(odd)::before, .tt-node:nth-child(even)::before { left: -28px; top: 10px; bottom: auto; margin-left: -4px; }
  .tt-node::after, .tt-node:nth-child(odd)::after, .tt-node:nth-child(even)::after { display: none; }
  .tt-node > *, .tt-node h3, .tt-node .en, .tt-node p:last-child { margin-left: 0; }
  .tt-node p:last-child { max-width: 34em; font-size: .92rem; }
  .tt-node--peak { width: auto; padding: 18px 16px; border: 1px solid rgba(255, 59, 48, .5); background: repeating-linear-gradient(-45deg, rgba(255, 59, 48, .08) 0 8px, transparent 8px 16px); }
  .tt-node--peak::before { left: -28px; top: 26px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .to-top { justify-self: end; grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding-bottom: 176px; }
  .hl { font-size: clamp(2.9rem, 14.6vw, 5rem); }
  .eyebrow { font-size: 10px; letter-spacing: .04em; gap: 10px; }
  .cta-row .btn { width: 100%; justify-content: space-between; }
  .btn-s { display: none; }
  .btn-xl .btn-s { display: inline; }
  .hero-foot { bottom: 20px; grid-template-columns: 1fr; grid-template-areas: "meta" "scan"; }
  .hf-scroll { display: none; }
  .hf-meta { gap: 10px 22px; }
  .hf-meta dd { font-size: 12px; }
  .brand-jp { display: none; }
  .snd-t { display: none; }
  .snd { padding: 12px 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li { margin-right: 10px; padding-right: 10px; }
  .iso-plate .lab { font-size: 36px; letter-spacing: .06em; }
  .iso-plate .lab-jp, .iso-plate .lab-s { display: none; }
  .iso-plate .lab-m { display: block; }
  .log-list li { grid-template-columns: 54px 1fr; }
  .log-list li b { display: none; }
  .offer { grid-template-columns: 1fr 1fr 1fr; }
  .cd-units span { letter-spacing: .1em; }
  .foot-grid { grid-template-columns: 1fr; }
  .to-top { grid-column: 1; justify-self: start; }
  .tt-node time { font-size: 1.8rem; }
}

@media (min-width: 900px) and (max-height: 800px) {
  .hero { padding-top: 84px; padding-bottom: 140px; }
  .hl-wrap { margin: 14px 0 20px; }
  .lead { font-size: .95rem; line-height: 1.85; }
  .cta-row { margin-top: 22px; }
  .btn { padding-top: 14px; padding-bottom: 14px; }
  .tt-top .sh-lead { display: none; }
  .tt-pin { padding-top: 76px; }
  .iris { width: clamp(240px, 40vh, 400px); }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- 17. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-rv], .js [data-h] { opacity: 1; transform: none; }
  .fx-crt::after { animation: none; }
  .ico .draw { stroke-dashoffset: 0; }
  .boot { display: none !important; }
}

/* ---------- 18. states driven by script.js ---------- */
html.menu-open { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 250; max-width: min(92vw, 560px);
  padding: 13px 20px; pointer-events: none; opacity: 0; translate: -50% 16px;
  background: rgba(5, 6, 13, .94); border: 1px solid var(--line-2); border-left: 3px solid var(--rd);
  font: 500 12.5px/1.7 var(--f-sans); letter-spacing: .05em; color: var(--tx);
  transition: opacity .3s, translate .4s var(--ease);
}
.toast.on { opacity: 1; translate: -50% 0; }

.field-hint.err { color: var(--yl); }

/* timetable clock */
#ttClock { filter: drop-shadow(0 0 7px rgba(45, 241, 255, .5)); transition: filter .4s; }
#ttClock .s { fill: rgba(45, 241, 255, .09); transition: fill .1s; }
#ttClock .s.on { fill: var(--cy); }
#ttClock .colon rect { fill: var(--cy); animation: blink 1s steps(1) infinite; }
#ttClock.is-blind { filter: drop-shadow(0 0 9px rgba(255, 59, 48, .65)); }
#ttClock.is-blind .s.on, #ttClock.is-blind .colon rect { fill: var(--rd); }
.tt-pin.flash::after {
  content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 130, 100, .5), rgba(255, 59, 48, .14) 60%, transparent 82%);
  animation: flash .55s ease-out forwards;
}

/* prologue iris */
#irisSvg text { font-family: var(--f-tech); font-weight: 600; }
.iris-big { font-weight: 700; }
.iris-box { animation: irisDrift 7s ease-in-out infinite alternate; }
.iris-scan { animation: irisScan 3.4s linear infinite; }
.iris-rec { animation: blink 1.2s steps(1) infinite; }
.iris-lan { animation: blink 2.2s infinite; }
.iris-orbit { transform-box: view-box; transform-origin: 50% 50%; animation: spin 90s linear infinite; }
#irisRim { transition: stroke .5s; }
.iris.is-closed #irisRim { stroke: var(--rd); }

/* tower iso */
.iso-plate .base { fill: #060a17; }
.iso-tick { stroke: var(--line-2); stroke-width: 1; }

@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes irisDrift { from { transform: translate(-46px, 14px); } to { transform: translate(38px, -10px); } }
@keyframes irisScan { from { transform: translateY(0); } to { transform: translateY(330px); } }

@media (prefers-reduced-motion: reduce) {
  .iris-orbit, .iris-box, .iris-scan { animation: none; }
}
