@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 118%; ascent-override: 82%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107%; ascent-override: 90%; }

:root {
  --bg: var(--tof-bg);
  --bg-2: var(--tof-bg-2);
  --surface: var(--tof-surface);
  --surface-2: var(--tof-surface-2);
  --border: var(--tof-border);
  --border-strong: var(--tof-border-strong);
  --line: rgb(var(--tof-glow-rgb) / 0.24);
  --line-soft: rgb(var(--tof-ink-rgb) / 0.12);
  --muted: var(--tof-muted);
  --text: var(--tof-text);
  --text-2: var(--tof-text-2);
  --brand: var(--tof-brand);
  --brand-hover: var(--tof-brand-hover);
  --on-brand: var(--tof-on-brand);
  --link: var(--tof-link);
  --link-hover: var(--tof-link-hover);
  --accent: var(--tof-accent);
  --glow: rgb(var(--tof-glow-rgb));
  --frame: var(--tof-frame);
  --green: var(--tof-green);
  --red: var(--tof-red);
  --focus: var(--tof-focus);
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --nav-wrap: 1480px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Cinzel', 'Cinzel Fallback', Georgia, serif;
  --body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; }
h1, h2 { font-family: var(--display); letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; letter-spacing: 0.01em; }
code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 0.85em; }
ul { padding-left: 1.2em; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--brand); color: var(--on-brand); font-weight: 700; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.site-nav { position: sticky; top: 0; z-index: 1000; background: var(--tof-nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 16px; height: var(--nav-h); max-width: var(--nav-wrap); }
.brand { flex: none; font-size: 1.2rem; }
.brand:hover { color: var(--text); }
.brand svg { height: 40px; }
.site-nav nav { flex: none; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 10px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); background: rgb(var(--tof-ink-rgb) / 0.05); }
.nav-links .nav-cta { margin-left: 6px; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.nav-links .nav-cta:hover { background: var(--brand-hover); color: var(--on-brand); }
.nav-tools { display: flex; flex: none; align-items: center; gap: 8px; }
.calm-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.calm-toggle:hover { color: var(--text); border-color: var(--muted); }
.calm-toggle .dot { width: 30px; height: 18px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background 0.2s; }
.calm-toggle .dot::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform 0.2s; }
.calm-toggle[aria-pressed='true'] .dot { background: var(--brand); }
.calm-toggle[aria-pressed='true'] .dot::after { transform: translateX(12px); background: var(--on-brand); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.theme-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
[data-theme='light'] .theme-toggle .i-sun { display: none; }
[data-theme='light'] .theme-toggle .i-moon { display: inline-flex; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 30px rgb(var(--tof-glow-rgb) / 0.25); }
.btn-primary:hover { color: var(--on-brand); background: var(--brand-hover); }
.btn-ghost { background: rgb(var(--tof-ink-rgb) / 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); background: rgb(var(--tof-ink-rgb) / 0.08); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgb(var(--tof-ink-rgb) / 0.05); color: var(--text-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: none; text-decoration: none; }
.pill.blue { border-color: rgb(var(--tof-glow-rgb) / 0.4); background: rgb(var(--tof-glow-rgb) / 0.1); color: var(--link); }
.pill.green { border-color: rgba(61, 220, 132, 0.3); background: rgba(61, 220, 132, 0.08); color: var(--green); }
a.pill:hover { background: rgb(var(--tof-glow-rgb) / 0.16); color: var(--text); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.storm { position: absolute; inset: 0; z-index: -2; background: radial-gradient(1200px 520px at 75% 10%, rgb(var(--tof-glow-rgb) / 0.10), transparent 60%), radial-gradient(900px 600px at 15% 0%, rgb(var(--tof-glow-rgb) / 0.10), transparent 65%), linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 70%); }
.storm::before, .storm::after { content: ''; position: absolute; inset: -20% -10%; background: radial-gradient(40% 30% at 30% 30%, rgb(var(--tof-ink-rgb) / 0.10), transparent 70%), radial-gradient(35% 25% at 70% 20%, rgb(var(--tof-ink-rgb) / 0.08), transparent 70%), radial-gradient(30% 20% at 55% 60%, rgb(var(--tof-ink-rgb) / 0.06), transparent 70%); animation: storm-drift 60s ease-in-out infinite alternate; will-change: transform; }
.storm::after { animation-duration: 90s; animation-direction: alternate-reverse; opacity: 0.7; }
@keyframes storm-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 2%, 0); } }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; background-image: url('../img/grain.svg'); }
.flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(60% 50% at var(--flash-x, 70%) var(--flash-y, 20%), rgba(200, 230, 255, 0.9), transparent 70%); opacity: 0; mix-blend-mode: screen; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.02; margin-bottom: 14px; text-wrap: balance; }
.hero h1 .hl { color: var(--link); }
.hero .tagline { margin: 0 0 18px; color: var(--accent); font-family: var(--display); font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: 0.04em; }
.hero .lede { max-width: 36em; color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.hero .btn-row { margin: 26px 0 14px; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-sub a { color: var(--text-2); }
.dims { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }

.plate-stage { position: relative; aspect-ratio: var(--plate-ratio, 594 / 322); border-radius: var(--radius); }
.plate-frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid rgb(var(--tof-glow-rgb) / 0.45); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgb(var(--tof-glow-rgb) / 0.08); background: #000; }
.plate-frame picture, .plate-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--plate-focus, 50% 30%); }
.plate-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(var(--tof-shade-rgb) / 0.35)); pointer-events: none; }
.plate-frame { z-index: 1; }
.plate-energy { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; pointer-events: none; overflow: visible; z-index: 0; }
.plate-energy .bolt-layer { z-index: 2; }
.plate-energy path { vector-effect: non-scaling-stroke; }
.plate-energy .bolt { fill: none; stroke: #e6f6ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(var(--tof-glow-rgb) / 0.9)); opacity: 0; }
.plate-energy .vein { fill: none; stroke: var(--glow); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; filter: drop-shadow(0 0 3px rgb(var(--tof-glow-rgb) / 0.6)); }
.plate-energy .knot { fill: none; stroke: var(--glow); stroke-width: 9; stroke-linecap: round; }
.plate-energy .knot-core { fill: none; stroke: var(--bg); stroke-width: 4; stroke-linecap: round; }
.plate-bolt { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; pointer-events: none; overflow: visible; z-index: 2; }
.plate-bolt path { vector-effect: non-scaling-stroke; }
.plate-bolt .bolt { fill: none; stroke: #e6f6ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(var(--tof-glow-rgb) / 0.9)); opacity: 0; }
.plate-caption { position: absolute; left: 12px; right: 12px; bottom: -36px; margin: 0; color: var(--muted); font-size: 0.78rem; text-align: right; }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text); text-wrap: balance; }
.section-head h2 .hl { color: var(--link); }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.sweep::after { content: ''; display: block; width: 72px; height: 3px; margin-top: 0.4em; border-radius: 2px; background: var(--tof-logo-blue); transform: scaleX(var(--sweep, 1)); transform-origin: left center; }
.center .sweep::after { margin-inline: auto; transform-origin: center; }
.kicker { display: block; margin-bottom: 10px; color: var(--link); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.quickening { padding: 0; }
.qk-pin { position: relative; display: flex; align-items: center; padding: clamp(48px, 7vw, 80px) 0; }
.qk-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.qk-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: qk; }
.qk-steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line-soft); color: var(--muted); transition: color 0.3s; }
.qk-steps li::before { counter-increment: qk; content: counter(qk); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); font-family: var(--display); font-size: 0.9rem; color: var(--muted); transition: all 0.3s; }
.qk-steps li strong { display: block; color: var(--text-2); }
.qk-steps li.is-on { color: var(--text-2); }
.qk-steps li.is-on strong { color: var(--text); }
.qk-steps li.is-on::before { border-color: var(--brand); color: var(--on-brand); background: var(--brand); }
.qk-screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--frame); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.qk-screen picture, .qk-screen img { width: 100%; height: 100%; object-fit: cover; }
.qk-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; }
.qk-svg .edge { fill: none; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor); }
.qk-svg .node { fill: var(--frame); stroke: var(--glow); stroke-width: 2; }
.qk-svg .bolt { fill: none; stroke: #e6f6ff; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(var(--tof-glow-rgb) / 0.95)); }
.qk-shot { opacity: 1; }
.cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 4px; pointer-events: none; transform: translate(var(--cx, 50%), var(--cy, 50%)); }
.cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.cursor span { margin-top: 14px; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #05141a; white-space: nowrap; }
.cursor.c1 { color: var(--tof-gold); left: 63%; top: 30%; }
.cursor.c1 span { background: var(--tof-gold); }
.cursor.c2 { color: var(--tof-blue-70); left: 22%; top: 50%; }
.cursor.c2 span { background: var(--tof-blue-70); }
.cursor.c3 { color: #3ddc84; left: 77%; top: 66%; }
.cursor.c3 span { background: #3ddc84; }

.media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--frame); }
.media img, .media video { width: 100%; }
.media figcaption, .caption { padding: 10px 14px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--border); background: var(--bg-2); }
.video-wrap { position: relative; }
.video-toggle { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgb(238 243 245 / 0.25); background: rgb(5 20 26 / 0.82); color: #eef3f5; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle:hover { background: rgb(5 20 26 / 0.95); border-color: #a5aeb1; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 6px 0 6px 30px; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.ticks strong { color: var(--text); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.more svg, .pill svg { width: 18px; height: 18px; flex: none; }
.shot.tall img { aspect-ratio: auto; object-fit: contain; max-height: 78vh; background: var(--frame); }
#gallery .media { margin-bottom: 18px; }

.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.platforms li { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: center; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.platforms svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--link); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.card h3 { margin-bottom: 6px; color: var(--text); }
.card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.card .icon { width: 36px; height: 36px; margin-bottom: 14px; padding: 7px; border-radius: 10px; background: rgb(var(--tof-glow-rgb) / 0.12); color: var(--link); }
.card.wide { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card .tag { position: absolute; top: 16px; right: 16px; }
.card .thumb { margin: 16px -22px -22px; border-top: 1px solid var(--border); overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--frame); color: inherit; font: inherit; text-align: left; overflow: hidden; cursor: zoom-in; transition: border-color 0.2s, transform 0.2s; }
.shot:hover { border-color: var(--brand); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot .label { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.shot .label span:last-child { color: var(--muted); font-weight: 500; }

.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.world { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.world .shot { border: 0; border-radius: 0; }
.world-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.world-body h3 { margin: 0; }
.world-body p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.world-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.verse-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--brand); color: var(--text); }
.link-card small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.link-card strong { font-size: 1.05rem; }
.link-card svg { width: 20px; height: 20px; color: var(--link); flex: none; }

.terminal { border-radius: var(--radius); border: 1px solid var(--border); background: var(--frame); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.terminal pre { margin: 0; padding: 18px; overflow-x: auto; color: #dce5e8; line-height: 1.7; font-size: 0.88rem; }
.terminal .k { color: var(--tof-blue-80); }
.terminal .f { color: var(--tof-gold); }
.terminal .s { color: #9be7b4; }
.copy-btn { min-height: 34px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.copy-btn:hover { border-color: var(--brand); }
.stack { display: grid; gap: 16px; }
.slot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgb(var(--tof-glow-rgb) / 0.45); background: var(--surface); box-shadow: 0 30px 80px rgb(0 0 0 / 0.3), 0 0 60px rgb(var(--tof-glow-rgb) / 0.12); }
.slot-more-than-one { max-width: 960px; margin: 0 auto clamp(28px, 4vw, 48px); }
.slot-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--frame); }
.slot-more-than-one[data-slot-state='art'] .slot-stage { aspect-ratio: 2000 / 1077; }
.slot-villain-vr { max-width: 420px; margin-inline: auto; }
.slot-villain-vr[data-slot-state='art'] .slot-stage { aspect-ratio: 640 / 983; }
.vr-split { margin-top: clamp(40px, 6vw, 72px); }
.slot[data-focus='45% 42%'] .slot-stage img { object-position: 45% 42%; }
.slot-stage picture, .slot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.slot[data-focus='50% 25%'] .slot-stage img { object-position: 50% 25%; }
.slot[data-focus='50% 30%'] .slot-stage img { object-position: 50% 30%; }
.slot figcaption { padding: 14px 18px; border-top: 1px solid var(--border); }
.slot-title { font-family: var(--display); font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.15; color: var(--text); }
.slot-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

.room { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--frame); }
.room-stage { position: relative; aspect-ratio: 16 / 9; }
.room-stage:has(figure) { aspect-ratio: auto; }
.room-stage figure { margin: 0; }
.room-stage .room-poster, .room-stage .room-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.room-bar .status { margin-right: auto; color: var(--muted); font-size: 0.88rem; }
.legend-dots { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text-2); }
.legend-dots li { display: inline-flex; align-items: center; gap: 8px; }
.legend-dots i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend-dots .gold { --c: var(--tof-gold); }
.legend-dots .blue { --c: var(--tof-blue-70); }
.legend-dots .green { --c: #3ddc84; }

.compare { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--frame); }
.compare-stage { position: relative; aspect-ratio: 16 / 10; }
.compare-stage picture, .compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--brand); box-shadow: 0 0 12px rgb(var(--tof-glow-rgb) / 0.8); pointer-events: none; }
.compare-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.compare-tags span { padding: 4px 10px; border-radius: 8px; background: rgb(5 20 26 / 0.85); color: #eef3f5; font-size: 0.8rem; font-weight: 700; }
.compare-control { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.compare-control label { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.compare-control input { flex: 1; accent-color: var(--brand); min-height: 32px; }

.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.edition { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.edition.featured { border-color: rgb(var(--tof-glow-rgb) / 0.6); box-shadow: 0 0 0 1px rgb(var(--tof-glow-rgb) / 0.25), 0 30px 80px rgb(var(--tof-glow-rgb) / 0.08); }
.edition .ed-name { margin: 0 0 4px; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.edition h3 { font-family: var(--display); font-size: 1.7rem; color: var(--link); }
.edition p { color: var(--text-2); }
.edition ul { margin: 0 0 22px; padding: 0; list-style: none; }
.edition li { position: relative; padding: 5px 0 5px 24px; color: var(--text-2); font-size: 0.95rem; }
.edition li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 11px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.edition .btn { margin-top: auto; width: 100%; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.82rem; color: var(--muted); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.78rem; }

.table-wrap { margin-top: 28px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
thead th { background: var(--surface); color: var(--link); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody th { font-weight: 500; color: var(--text-2); }
td.yes { color: var(--green); font-weight: 700; text-align: center; }
td.no { color: var(--muted); text-align: center; }
thead th + th { text-align: center; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--link); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 4px 18px; margin: 0; color: var(--text-2); }
.faq details.is-moving p { overflow: hidden; }

.docs-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); background: radial-gradient(900px 400px at 80% 0%, rgb(var(--tof-glow-rgb) / 0.08), transparent 60%), radial-gradient(800px 400px at 0% 0%, rgb(var(--tof-glow-rgb) / 0.08), transparent 60%); }
.lost-mark { display: block; width: auto; height: clamp(96px, 16vw, 150px); margin: 0 0 20px; color: var(--text); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-wrap: balance; }
.page-hero .lede { max-width: 42em; color: var(--text-2); font-size: 1.12rem; }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border); }
.crumbs a { color: var(--text-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; color: var(--link); }
.prose p, .prose li { color: var(--text-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kbd-table td:first-child { white-space: nowrap; }
.note { padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: rgb(var(--tof-glow-rgb) / 0.06); color: var(--text-2); }

.site-footer { padding: 56px 0 72px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-grid h2 { margin-bottom: 12px; font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-brand { display: inline-flex; margin-bottom: 14px; font-size: 1.3rem; }
.footer-brand svg { height: 52px; }
.footer-grid .footer-brand { color: var(--text); text-decoration: none; }
.credits { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.credits p { margin: 0 0 8px; }
.credits a { color: var(--text-2); }
.hat-tip { color: var(--muted); font-style: italic; }

.lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--frame); color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 5, 8, 0.88); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; max-height: 94vh; }
.lightbox img { width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.lightbox figcaption { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: 0.92rem; }
.lightbox figcaption span { margin-right: auto; }
.lb-btn { min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.lb-btn:hover { border-color: var(--brand); }

.reveal { opacity: 1; }
.js-motion .reveal { opacity: 0; transform: translateY(24px); }

html[data-calm='true'] .storm::before, html[data-calm='true'] .storm::after { animation: none; }
html[data-calm='true'] .js-motion .reveal { opacity: 1; transform: none; }
html[data-calm='true'] *, html[data-calm='true'] *::before, html[data-calm='true'] *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-calm='false']) .storm::before, html:not([data-calm='false']) .storm::after { animation: none; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1399px) {
  :root { --nav-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .nav-tools { margin-left: auto; }
  .site-nav nav { margin-left: 0; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--bg); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1rem; border-radius: 8px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 900px) {
  .hero-grid, .qk-grid, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-grid .plate-col { order: -1; margin-bottom: 28px; }
  .shots, .worlds, .verse-links, .editions, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms, .docs-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editions .featured { order: -1; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .calm-toggle .label-long { display: none; }
  .brand span { font-size: 0.95rem; }
  .shots, .worlds, .verse-links, .editions, .grid-2, .grid-3, .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .btn-row .btn { width: 100%; }
  .plate-caption { position: static; margin-top: 8px; text-align: left; }
  .compare-control { flex-wrap: wrap; }
  .room-stage { aspect-ratio: 4 / 3; }
  .slot-stage, .slot-more-than-one[data-slot-state='art'] .slot-stage { aspect-ratio: 4 / 3; }
  .slot-villain-vr[data-slot-state='art'] .slot-stage { aspect-ratio: 4 / 5; }
  .slot-villain-vr { max-width: none; }
  .brand svg { height: 34px; }
}

@media (max-width: 340px) {
  .brand span { display: none; }
}
.caption-note { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }
.gallery-video { margin-bottom: 18px; }
.split > *, .grid-2 > *, .grid-3 > *, .hero-grid > *, .qk-grid > *, .stack > *, .bento > *, .editions > * { min-width: 0; }
