/* Abandoned World — site styles. Plain CSS, no build step. */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #0f0c09;
  --ink-2: #15110d;
  --line: rgba(230, 185, 110, .14);
  --line-2: rgba(230, 185, 110, .28);
  --text: #f2e8d5;
  --text-2: #cbbda5;
  --text-3: #9a8d79;
  --gold: #e6b35a;
  --gold-hi: #f7d89a;
  --gold-deep: #b9822f;
  --red: #c8553a;
  --dusk: #8b93c9;
  --moss: #9cc77f;
  --qi: #9fd3f5;
  --iron: #e6b35a;
  --necro: #b48ce8;
  --card-bg: linear-gradient(165deg, rgba(40, 31, 23, .8), rgba(18, 14, 11, .78));

  --f-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --f-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-pixel: VT323, ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

  --gutter: clamp(16px, 4.4vw, 56px);
  --wrap: 1240px;
  --header-h: 68px;
  --r: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pin: 110vh;
}
@media (max-width: 480px) { :root { --gutter: 16px; --header-h: 60px; --pin: 90vh; } }
@media (prefers-reduced-motion: reduce) { :root { --pin: 0px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  color: var(--text);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3d9; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; color: var(--text); }
button { font: inherit; }
::selection { background: rgba(230, 179, 90, .35); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--text-3); }
.skip {
  position: fixed; left: 12px; top: 10px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: #1a1209; font-weight: 600; text-decoration: none;
  transform: translateY(-180%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; color: #1a1209; }
main:focus { outline: none; }

/* pixel icon palette */
.pa { fill: var(--gold); }
.pb { fill: var(--text); }
.pc { fill: var(--red); }
.pd { fill: #3a2c1f; }
.pe { fill: var(--dusk); }
.pg { fill: var(--moss); }
.px-icon { image-rendering: pixelated; }

/* ---------------------------------------------------------------- backdrop (day -> night over the page) */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backdrop > div { position: absolute; inset: 0; }
.bd-day {
  background:
    radial-gradient(120% 70% at 12% -10%, rgba(176, 112, 48, .22), transparent 60%),
    radial-gradient(90% 60% at 100% 30%, rgba(120, 70, 30, .13), transparent 65%),
    linear-gradient(180deg, #15100c, #0f0c09 60%);
}
.bd-night {
  opacity: 0; will-change: opacity;
  background:
    radial-gradient(110% 70% at 85% 0%, rgba(58, 66, 128, .28), transparent 60%),
    radial-gradient(80% 60% at 0% 85%, rgba(44, 32, 76, .24), transparent 65%),
    linear-gradient(180deg, #0c0d16, #08080d 70%);
}
.bd-grain {
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------- progress */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 2px; pointer-events: none; }
.progress-bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi));
  box-shadow: 0 0 12px rgba(247, 216, 154, .55);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(14, 11, 8, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s ease;
}
.site-header::after {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 4, .55), transparent);
  transition: opacity .5s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled::after { opacity: 0; }
.header-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.32rem; font-weight: 600; letter-spacing: .015em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 24px); }
.nav-list a {
  position: relative; display: block; padding: 8px 0;
  color: var(--text-2); font-size: .84rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: color .3s ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  border: 1px solid rgba(247, 216, 154, .45); border-radius: 999px;
  color: var(--gold-hi); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav-cta:hover, .nav-cta.is-active { background: var(--gold); border-color: var(--gold); color: #1a1209; }
.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  border: 1px solid rgba(247, 216, 154, .35); border-radius: 12px;
  background: rgba(14, 11, 8, .45); cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px;
  background: var(--text); transition: transform .45s var(--ease-out);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1159px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--header-h) + 16px) var(--gutter) 28px;
  overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 80% at 85% 0%, rgba(58, 66, 128, .28), transparent 60%), rgba(10, 8, 6, .97);
  opacity: 0; transition: opacity .4s ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu-list { display: grid; gap: 0; }
.menu-list li { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .5s ease, transform .6s var(--ease-out); }
.menu.is-open .menu-list li { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu-list li:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu-list li:nth-child(6) { transition-delay: .2s; }
.menu.is-open .menu-list li:nth-child(7) { transition-delay: .24s; }
.menu.is-open .menu-list li:nth-child(8) { transition-delay: .28s; }
.menu.is-open .menu-list li:nth-child(9) { transition-delay: .32s; }
.menu.is-open .menu-list li:nth-child(10) { transition-delay: .36s; }
.menu-list a {
  display: flex; align-items: baseline; gap: 14px; padding: 7px 0;
  font-family: var(--f-display); font-size: clamp(1.6rem, 6.4vw, 2.5rem); font-weight: 600; line-height: 1.1;
  color: var(--text); text-decoration: none;
}
.menu-list a.is-active { color: var(--gold-hi); }
.menu-num { width: 2.8rem; flex: none; font-family: var(--f-sans); font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--gold); }
.menu-foot { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--text-3); }
html.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- buttons, tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { transform: translate3d(0, -2px, 0); }
.btn-primary { background: var(--gold); color: #1a1209; box-shadow: 0 12px 30px -12px rgba(230, 179, 90, .7); }
.btn-primary:hover { background: var(--gold-hi); color: #1a1209; }
.btn-ghost { border: 1px solid rgba(247, 216, 154, .45); background: rgba(12, 10, 8, .45); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-hi); color: #fff; }
.tag {
  display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-hi); white-space: nowrap;
}
.tag-done { color: var(--moss); border-color: rgba(156, 199, 127, .45); background: rgba(156, 199, 127, .08); }
.tag-now { color: #1a1209; background: var(--gold); border-color: var(--gold); }
.tag-next { color: var(--gold-hi); border-color: rgba(247, 216, 154, .6); background: rgba(247, 216, 154, .06); }
.tag-planned { color: var(--dusk); border-color: rgba(139, 147, 201, .45); background: rgba(139, 147, 201, .07); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: calc(100vh + var(--pin)); height: calc(100svh + var(--pin)); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0c0a08; isolation: isolate; }
.hero-layer { position: absolute; inset: 0; will-change: transform, opacity; }
.hero-scene { z-index: 1; }
.scene-frame {
  position: absolute; top: 50%; left: 50%;
  width: max(100%, 177.78vh); width: max(100%, 177.78svh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}
.scene-kb { position: absolute; inset: 0; transform-origin: 52% 46%; animation: kb 34s var(--ease-io) infinite alternate; will-change: transform; }
@keyframes kb {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); }
}
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.scene-night, .scene-lights { opacity: 0; will-change: opacity; }
.js .scene-day { transition: opacity 1.2s ease; }
.js .scene-day:not(.is-loaded) { opacity: 0; }
.scene-lights { position: absolute; inset: 0; }
.glow {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 196, 120, .55) 0%, rgba(255, 160, 80, .18) 38%, transparent 70%);
  animation: flicker 3.4s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.glow-soft { background: radial-gradient(circle, rgba(255, 210, 150, .36) 0%, rgba(255, 170, 90, .1) 40%, transparent 70%); animation-duration: 4.6s; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 18% { opacity: .8; } 32% { opacity: .96; } 47% { opacity: .72; } 61% { opacity: 1; } 78% { opacity: .86; }
}
.hero-haze { z-index: 2; pointer-events: none; }
.haze { position: absolute; border-radius: 50%; will-change: transform; }
.haze-a {
  width: 80%; height: 70%; left: -18%; top: -22%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .34), rgba(255, 200, 130, .1) 55%, transparent);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.haze-b {
  width: 70%; height: 60%; right: -20%; top: 22%;
  background: radial-gradient(closest-side, rgba(255, 230, 190, .15), transparent 70%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(8%, 6%, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10%, -4%, 0) scale(1.12); } }
.hero-sun { z-index: 3; pointer-events: none; }
.sun-glow {
  position: absolute; left: -22%; top: -38%; width: 90%; height: 100%;
  background: radial-gradient(closest-side, rgba(255, 196, 110, .42), rgba(255, 170, 80, .12) 50%, transparent);
}
.ray {
  position: absolute; top: -30%; left: var(--rx); width: 9%; height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 170, .12), transparent);
  transform-origin: 50% 0; transform: rotate(-32deg);
  animation: ray 9s ease-in-out infinite alternate;
}
.ray-1 { --rx: 8%; animation-delay: -2s; }
.ray-2 { --rx: 22%; width: 5%; animation-duration: 12s; }
.ray-3 { --rx: 36%; width: 12%; animation-duration: 15s; animation-delay: -6s; }
@keyframes ray {
  from { opacity: .3; transform: rotate(-32deg) translate3d(0, 0, 0); }
  to { opacity: 1; transform: rotate(-29deg) translate3d(10%, 0, 0); }
}
.hero-dusk {
  z-index: 3; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 20, 54, .6), rgba(12, 14, 36, .22) 45%, rgba(8, 9, 22, .58));
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 52%, rgba(8, 6, 4, .55) 100%),
    linear-gradient(180deg, rgba(8, 6, 4, .45) 0%, transparent 16%, transparent 40%, rgba(10, 8, 6, .8) 80%, var(--ink) 100%);
}
.hero-motes { z-index: 5; width: 100%; height: 100%; pointer-events: none; }

.hero-hud {
  position: absolute; z-index: 7; top: calc(var(--header-h) + 18px); right: var(--gutter);
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid rgba(247, 216, 154, .3); border-radius: 8px; background: rgba(12, 10, 8, .55);
  font-family: var(--f-pixel); font-size: 1.45rem; line-height: 1; color: var(--gold-hi); letter-spacing: .03em;
}
.hud-icon { width: 18px; height: 18px; fill: currentColor; transition: opacity .6s ease; }
.hud-moon { position: absolute; left: 12px; opacity: 0; color: var(--dusk); }
.hero-hud.is-night .hud-sun { opacity: 0; }
.hero-hud.is-night .hud-moon { opacity: 1; }
.hud-place { font-size: 1.15rem; color: var(--text-2); }
.hud-time { min-width: 2.6em; text-align: right; }

.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(96px, 14vh, 156px); z-index: 7; will-change: transform; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(247, 216, 154, .4); border-radius: 999px; background: rgba(12, 10, 8, .5);
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi);
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(230, 179, 90, .8); animation: pulse-dot 2.4s ease-in-out infinite;
}
.badge-sep { opacity: .6; }
@keyframes pulse-dot { 50% { opacity: .3; } }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.012em;
  color: #fff7e6; text-shadow: 0 2px 28px rgba(0, 0, 0, .5);
}
.t-line { display: block; }
.t-line .w { display: inline-block; white-space: nowrap; }
.t-dark { color: var(--gold-hi); }
.t-dark .ch { color: var(--gold-hi); color: color-mix(in oklab, var(--gold-hi) calc(100% - var(--t, 0) * 80%), var(--dusk)); }
.hero-descriptor {
  margin-top: 20px; font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; color: var(--gold-hi);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
}
.hero-text { margin-top: 12px; max-width: 58ch; font-size: clamp(.98rem, 1.15vw, 1.06rem); color: var(--text); text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cue { position: absolute; z-index: 7; left: 50%; bottom: 22px; transform: translateX(-50%); pointer-events: none; will-change: opacity; }
.hero-cue span {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: var(--text-2);
}
.hero-cue span::after {
  content: ""; width: 1px; height: 42px; background: linear-gradient(var(--gold-hi), transparent);
  transform-origin: 50% 0; animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* hero intro (only with JS; the inline head script guarantees .is-ready) */
.js .hero-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none;
  background: #0b0907; transition: opacity 1.8s ease .05s;
}
.is-ready .hero-stage::after { opacity: 0; }
.js .t-line .ch {
  display: inline-block; opacity: 0;
  transform: translate3d(0, .45em, 0) rotate(6deg); transform-origin: 0 100%;
  transition: opacity .9s ease, transform 1.3s var(--ease-out);
  transition-delay: calc(var(--line-delay, 0s) + var(--i, 0) * 34ms);
}
.js .hero-content .badge, .js .hero-descriptor, .js .hero-text, .js .hero-ctas, .js .hero-hud, .js .hero-cue span {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
}
.is-ready .t-line .ch { opacity: 1; transform: none; }
.is-ready .hero-content .badge, .is-ready .hero-descriptor, .is-ready .hero-text, .is-ready .hero-ctas, .is-ready .hero-hud, .is-ready .hero-cue span { opacity: 1; transform: none; }
.is-ready .hero-content .badge { transition-delay: .15s; }
.is-ready .hero-descriptor { transition-delay: 1.5s; }
.is-ready .hero-text { transition-delay: 1.7s; }
.is-ready .hero-ctas { transition-delay: 1.9s; }
.is-ready .hero-hud { transition-delay: 1.2s; }
.is-ready .hero-cue span { transition-delay: 2.3s; }

@media (max-width: 720px) {
  .hero-hud { top: calc(var(--header-h) + 12px); padding: 6px 10px; font-size: 1.2rem; }
  .hud-place { display: none; }
  .hud-moon { left: 10px; }
}
@media (max-width: 480px) {
  .hero-text { display: none; }
  .badge { gap: 6px; padding: 6px 12px 6px 10px; font-size: .6rem; letter-spacing: .1em; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 0 17px; font-size: .86rem; }
}
@media (max-width: 359px) { .badge-sep, .badge span:last-child { display: none; } }
@media (max-height: 560px) and (orientation: landscape) { .hero-text, .hero-cue { display: none; } .hero-content { bottom: 28px; } }

/* ---------------------------------------------------------------- sections */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(70%, 820px); height: 1px;
  transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.section::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px;
  transform: translateX(-50%) rotate(45deg); border: 1px solid var(--gold); background: var(--ink);
}
.sec-head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head-split { max-width: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 80px); }
.sec-head-split > div:first-child { display: grid; gap: 18px; }
.sec-head-side { display: grid; gap: 16px; justify-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eb-num { min-width: 1.6em; font-family: var(--f-display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-hi); }
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; color: var(--text); }
.h2 em, .h3 em { font-weight: 500; color: var(--gold-hi); }
.h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; color: var(--text); }
.h4 { font-size: 1.36rem; line-height: 1.15; color: var(--text); }
.lead { max-width: 62ch; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--text-2); }
.wip-note {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start; max-width: 660px;
  padding: 10px 16px 10px 12px; border: 1px dashed rgba(247, 216, 154, .38); border-radius: 12px;
  background: rgba(230, 179, 90, .05); color: var(--text-2); font-size: .9rem; line-height: 1.5;
}
.wip-note strong { color: var(--gold-hi); }
.wip-note .tag { align-self: center; }
.wip-icon { flex: none; width: 28px; height: 28px; }
@media (max-width: 900px) { .sec-head-split { grid-template-columns: 1fr; } }

/* reveal (opacity + the individual `translate` property, so tilt can own `transform`) */
.js [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity .9s ease, translate 1.1s var(--ease-out);
  transition-delay: var(--d, 0s), var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* tilt + glare */
[data-tilt] { transition: opacity .9s ease, translate 1.1s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s), var(--d, 0s), 0s; }
.js [data-tilt][data-reveal] { transition: opacity .9s ease, translate 1.1s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s), var(--d, 0s), 0s; }
[data-tilt].is-tilting { transition-property: opacity, translate, transform; transition-duration: .9s, 1.1s, .12s; transition-timing-function: ease, var(--ease-out), linear; will-change: transform; }
.glare {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 200, .13), transparent 38%);
  opacity: 0; transition: opacity .5s ease;
}
.is-tilting > .glare { opacity: 1; }

/* ---------------------------------------------------------------- I. studio */
.mission {
  max-width: 980px; margin-bottom: clamp(56px, 8vw, 104px);
  font-family: var(--f-display); font-size: clamp(1.55rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.28; color: var(--text);
}
.mission strong { font-style: italic; font-weight: 600; color: var(--gold-hi); }
.thesis-title { margin-bottom: 20px; font-family: var(--f-sans); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.thesis-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); overflow-x: clip; padding-top: 2px; }
.thesis-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(230, 179, 90, .12)); }
.thesis-steps::after {
  content: ""; position: absolute; left: 0; top: -3px; width: 100%; height: 7px; pointer-events: none;
  background: radial-gradient(closest-side, #fff4d6, rgba(247, 216, 154, .55) 45%, transparent) 0 0 / 80px 7px no-repeat;
  animation: run 5.5s linear infinite;
}
@keyframes run { from { transform: translate3d(-80px, 0, 0); } to { transform: translate3d(100%, 0, 0); } }
.thesis-step {
  position: relative; margin-top: 22px; padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg);
}
.thesis-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(18px, 2.6vw, 36px) / 2 - 5px);
  width: 10px; height: 10px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.ts-num { display: block; margin-bottom: 16px; font-family: var(--f-pixel); font-size: 1.7rem; line-height: 1; color: var(--gold); }
.ts-label { display: block; margin-bottom: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.thesis-step p { font-size: 1.04rem; line-height: 1.65; color: var(--text-2); }
.studio-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line);
}
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { display: grid; gap: 2px; min-width: 132px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(28, 22, 17, .6); }
.fact-k { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.fact-v { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--gold-hi); }
.studio-honest { max-width: 56ch; color: var(--text-2); }
@media (max-width: 900px) {
  .thesis-steps { grid-template-columns: 1fr; }
  .thesis-steps::after { display: none; }
  .thesis-step:not(:last-child)::after { top: auto; bottom: -15px; right: auto; left: 34px; transform: rotate(135deg); }
  .studio-foot { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- II. story */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-chapters { grid-column: 1; grid-row: 1; display: grid; }
.chapter { display: grid; gap: 14px; padding-block: clamp(32px, 8vh, 88px); border-top: 1px solid var(--line); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.ch-label { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ch-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--f-pixel); font-size: 1.05rem; letter-spacing: 0; color: var(--gold-hi);
}
.chapter p:not(.ch-label) { font-size: 1.04rem; color: var(--text-2); }
.chapter em { color: var(--gold-hi); }
.story-stage {
  grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px);
  height: min(76vh, 720px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #0b0907;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
}
.st-pan { position: absolute; inset: 0; transform-origin: 50% 22%; animation: st-pan 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes st-pan { from { transform: scale(1.24) translate3d(1.5%, 0, 0); } to { transform: scale(1.32) translate3d(-2.5%, -1%, 0); } }
.st-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.st-night { opacity: 0; transition: opacity 1.6s ease; }
.st-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .4) 0%, transparent 22%, transparent 40%, rgba(10, 8, 6, .8) 74%, rgba(10, 8, 6, .96) 100%); }
.st-flies, .cp-flies { position: absolute; inset: 0; pointer-events: none; }
.st-flies { opacity: 0; transition: opacity 1.4s ease; }
.st-flies i, .cp-flies i {
  position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #f6ffd2 0%, rgba(220, 247, 154, .9) 35%, rgba(220, 247, 154, 0) 70%);
  box-shadow: 0 0 10px 3px rgba(210, 245, 140, .4);
  animation: fly var(--t, 8s) ease-in-out infinite, blink 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s), var(--d, 0s);
}
@keyframes fly {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(18px, -14px, 0); }
  50% { transform: translate3d(-6px, -26px, 0); }
  75% { transform: translate3d(-20px, -8px, 0); }
}
@keyframes blink { 0%, 100% { opacity: .12; } 45% { opacity: 1; } 60% { opacity: .9; } }
.st-danger { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 140px 24px rgba(150, 24, 24, .55); transition: opacity 1s ease; }
.st-hud {
  position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-pixel); font-size: 1.35rem; line-height: 1; color: var(--gold-hi);
}
.st-place, .st-time { padding: 6px 10px; border: 1px solid rgba(247, 216, 154, .25); border-radius: 6px; background: rgba(10, 8, 6, .6); transition: color .8s ease; }
.st-actor { --s: 2; position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); }
.st-scale::before { content: "2\00d7"; }
.st-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.story-stage[data-state="2"] .st-night, .story-stage[data-state="3"] .st-night,
.story-stage[data-state="2"] .st-flies, .story-stage[data-state="3"] .st-flies { opacity: 1; }
.story-stage[data-state="2"] .st-time, .story-stage[data-state="3"] .st-time { color: var(--dusk); }
.story-stage[data-state="3"] .st-danger { animation: danger 2.8s ease-in-out infinite; }
@keyframes danger { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }
@media (min-width: 961px) {
  .chapter { min-height: 58vh; align-content: center; }
  .js .story-chapters.is-live .chapter:not(.is-active) { opacity: .32; }
}
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { grid-column: 1; grid-row: 1; position: relative; top: auto; height: auto; aspect-ratio: 4 / 3; max-height: 70vh; }
  .story-chapters { grid-row: 2; }
  .st-actor { --s: 1; bottom: 38px; }
  .st-scale::before { content: "1\00d7"; }
}

/* sprites (pixel-art strips, 4 frames of 160 x 160, moved with transform steps) */
.sprite { position: relative; width: calc(160px * var(--s, 1)); height: calc(160px * var(--s, 1)); overflow: hidden; }
.strip {
  position: absolute; left: 0; top: 0; max-width: none;
  width: calc(640px * var(--s, 1)); height: calc(160px * var(--s, 1));
  image-rendering: crisp-edges; image-rendering: pixelated;
  opacity: 0;
}
.strip[data-clip^="walk"] { --dur: .8s; }
.strip[data-clip^="idle"] { --dur: 1s; }
@keyframes strip { to { transform: translate3d(-100%, 0, 0); } }
.strip.is-on,
.story-stage[data-state="0"] .strip[data-clip="idle_down"],
.story-stage[data-state="1"] .strip[data-clip="walk_down"],
.story-stage[data-state="2"] .strip[data-clip="idle_up"],
.story-stage[data-state="3"] .strip[data-clip="idle_right"],
.walker[data-clip="walk_right"] .strip[data-clip="walk_right"],
.walker[data-clip="idle_down"] .strip[data-clip="idle_down"] { opacity: 1; animation: strip var(--dur) steps(4) infinite; }
.blob {
  position: absolute; left: 50%; bottom: calc(1px * var(--s, 1)); width: calc(64px * var(--s, 1)); height: calc(16px * var(--s, 1));
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

/* people */
.people-block { margin-top: clamp(72px, 10vw, 128px); }
.people-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person {
  position: relative; display: grid; align-content: start; gap: 8px; overflow: hidden;
  padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg);
}
.person > :not(.glare) { position: relative; z-index: 1; }
.person-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(12, 10, 8, .55);
}
.person-icon .px-icon { width: 40px; height: 40px; }
.person-role { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.person-name { font-size: 1.75rem; color: var(--text); }
.person-text { font-size: .97rem; color: var(--text-2); }
.ghost { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate3d(0, -2px, 0); } }
.spark { animation: blink 1.4s steps(2, jump-none) infinite; }
.steam { animation: steam 2.2s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translate3d(0, 1px, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -1px, 0); } }
.regulars {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 20px;
  border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-2); font-size: .97rem;
}
.regulars .px-icon { flex: none; width: 32px; height: 32px; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- III. paths (pixel turntables) */
.wip-note-planned { border-color: rgba(139, 147, 201, .45); background: rgba(139, 147, 201, .06); }
.path-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.path-card {
  --accent: var(--gold);
  --s: 3;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-2); border: 1px solid color-mix(in oklab, var(--accent) 34%, transparent);
  border-radius: var(--r); background: linear-gradient(180deg, #120e0b, #0c0a08 60%);
  transition: opacity .9s ease, translate 1.1s var(--ease-out), border-color .4s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.path-qi { --accent: var(--qi); }
.path-iron { --accent: var(--iron); }
.path-necro { --accent: var(--necro); }
.path-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 60px -14px var(--accent);
  opacity: 0; transition: opacity .5s ease;
}
.path-card:hover::before { opacity: .55; }
.path-stage {
  position: relative; height: calc(150px * var(--s) + 30px); overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 72%, rgba(255, 255, 255, .025) 72%, transparent 100%),
    linear-gradient(180deg, #15110d, #0b0907);
}
.path-halo {
  position: absolute; left: 50%; bottom: 8%; width: 82%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 179, 90, .26), transparent);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), transparent);
  opacity: .8; transition: opacity .6s ease;
}
.path-card:hover .path-halo { opacity: 1; }
.turntable { position: absolute; left: 50%; bottom: 20px; width: calc(160px * var(--s)); height: calc(160px * var(--s)); margin-left: calc(-80px * var(--s)); }
.turn-flip { position: absolute; inset: 0; animation: turn-flip 4.8s steps(1, end) infinite; }
.turn-view { position: absolute; inset: 0; }
.turn-strip {
  position: absolute; left: 0; top: 0; max-width: none;
  width: calc(484px * var(--s)); height: calc(160px * var(--s));
  image-rendering: crisp-edges; image-rendering: pixelated;
  animation: turn-strip 4.8s steps(1, end) infinite;
}
@keyframes turn-strip {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(calc(-162px * var(--s)), 0, 0); }
  50% { transform: translate3d(calc(-324px * var(--s)), 0, 0); }
  75% { transform: translate3d(calc(-162px * var(--s)), 0, 0); }
  100% { transform: translate3d(calc(-162px * var(--s)), 0, 0); }
}
@keyframes turn-flip { 0% { transform: scaleX(1); } 75% { transform: scaleX(-1); } 100% { transform: scaleX(-1); } }
.path-card:hover .turn-strip, .path-card:hover .turn-flip { animation-duration: 1.6s; }
.path-card .blob { bottom: calc(1px * var(--s)); }
.path-missing {
  position: absolute; left: 50%; top: 50%; display: none; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 6px 12px; border: 1px dashed rgba(242, 232, 213, .3); border-radius: 999px;
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.path-card.no-img .turntable { display: none; }
.path-card.no-img .path-missing { display: block; }
.path-scale { position: absolute; right: 12px; top: 10px; font-family: var(--f-pixel); font-size: 1.05rem; color: var(--text-3); }
.path-scale::before { content: "sprite \00b7  3\00d7"; }
.path-body { display: grid; gap: 4px; padding: 20px 24px 26px; }
.path-role { justify-self: start; margin-bottom: 8px; color: var(--accent); border-color: rgba(247, 216, 154, .4); border-color: color-mix(in oklab, var(--accent) 55%, transparent); background: rgba(10, 8, 6, .65); }
.path-name { font-size: clamp(1.75rem, 2.4vw, 2.2rem); color: var(--text); }
.path-gloss { font-family: var(--f-display); font-size: 1.2rem; font-style: italic; color: var(--accent); }
.path-line { margin-top: 8px; font-size: .97rem; color: var(--text-2); }
.paths-note { margin-top: 18px; font-size: .86rem; color: var(--text-3); }
@media (max-width: 1099px) {
  .path-card { --s: 2; }
  .path-scale::before { content: "sprite \00b7  2\00d7"; }
}
@media (max-width: 699px) {
  .path-cards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- IV. look */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(44px, 5vw, 68px); }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(28, 22, 17, .55); color: var(--text); font-size: .88rem;
}
.chips li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--gold); transform: rotate(45deg); }
.compare-block { margin-bottom: clamp(56px, 7vw, 100px); }
.compare-head, .gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.compare {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #0b0907; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp-clip { position: absolute; inset: 0; overflow: hidden; transform: translate3d(50%, 0, 0); will-change: transform; }
.cmp-b { transform: translate3d(-50%, 0, 0); will-change: transform; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 48px; margin-left: -24px; display: grid; place-items: center; cursor: ew-resize; will-change: transform; }
.cmp-handle:focus-visible { outline: none; }
.cmp-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(247, 216, 154, 0), var(--gold-hi) 16%, var(--gold-hi) 84%, rgba(247, 216, 154, 0));
  box-shadow: 0 0 14px rgba(247, 216, 154, .55);
}
.cmp-knob {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid var(--gold-hi); background: rgba(14, 11, 8, .8); color: var(--gold-hi);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .4s var(--ease-out);
}
.compare:hover .cmp-knob, .compare.is-dragging .cmp-knob { transform: scale(1.08); }
.cmp-handle:focus-visible .cmp-knob { outline: 2px solid #fff; outline-offset: 3px; }
.cmp-tag {
  position: absolute; top: 16px; padding: 6px 12px; border: 1px solid rgba(247, 216, 154, .3); border-radius: 999px;
  background: rgba(12, 10, 8, .68); color: var(--gold-hi); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; pointer-events: none;
}
.cmp-tag-a { left: 16px; }
.cmp-tag-b { right: 16px; }

.reel { margin: 0 0 clamp(64px, 8vw, 112px); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); background: #0b0907; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-toggle {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px;
  border: 1px solid rgba(247, 216, 154, .45); border-radius: 999px; background: rgba(12, 10, 8, .7);
  color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; transition: border-color .3s, background-color .3s;
}
.reel-toggle:hover { border-color: var(--gold-hi); background: rgba(30, 23, 16, .85); }
.rt-icon { width: 11px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reel-toggle.is-playing .rt-icon { clip-path: none; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64%); }
.reel-tag {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 10, 8, .62); color: var(--text-2); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0533d; box-shadow: 0 0 8px #e0533d; animation: pulse-dot 1.6s ease-in-out infinite; }
.reel figcaption { margin-top: 14px; font-size: .92rem; color: var(--text-3); }
.reel figcaption b { color: var(--text); }

.gallery-wrap { container-type: inline-size; }
.gallery {
  --gap: 14px; --cols: 3;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: dense;
  grid-auto-rows: 220px;
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .5625);
}
.g-feature { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-item { min-width: 0; }
.g-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 12px; background: #0b0907; color: inherit;
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.g-btn:hover img, .g-btn:focus-visible img { transform: scale(1.045); }
.g-btn img.g-top { object-position: 50% 18%; }
.g-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 8, 6, .82)); }
.g-cap {
  position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 1; text-align: left;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; color: var(--text);
  transform: translate3d(0, 4px, 0); transition: transform .5s var(--ease-out);
}
.g-btn:hover .g-cap, .g-btn:focus-visible .g-cap { transform: none; }
@media (max-width: 900px) { .gallery { --cols: 2; --gap: 10px; } }

/* ---------------------------------------------------------------- V. initial design */
.pillars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.pillar {
  position: relative; grid-column: span 6; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg);
}
.pillar > :not(.glare) { position: relative; z-index: 1; }
.pillar-camera, .pillar-battle, .pillar-hub, .pillar-tech { grid-column: span 7; }
.pillar-time, .pillar-stage, .pillar-people, .pillar-companions { grid-column: span 5; }
.pillar-kicker { display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pillar > p:not(.pillar-kicker) { font-size: .98rem; color: var(--text-2); }
.pillar .h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
.pillar-visual { margin-bottom: 10px; }
.pillar-later { padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .9rem !important; color: var(--text-3) !important; }
.pillar-companions { border-style: dashed; border-color: rgba(139, 147, 201, .4); }
.cam-diagram { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.cd-label { font-family: var(--f-pixel); font-size: 20px; fill: var(--gold-hi); }
.cd-cam { transform-box: view-box; transform-origin: 69px 52px; transform: rotate(35deg); transition: transform 1.6s var(--ease-out) .35s; }
.cd-cone, .cd-arc { transition: opacity 1s ease 1.1s; }
.js .pillar-camera:not(.is-in) .cd-cam { transform: rotate(0deg); }
.js .pillar-camera:not(.is-in) .cd-cone, .js .pillar-camera:not(.is-in) .cd-arc { opacity: 0; }
.dial-wrap { display: flex; align-items: center; gap: 20px; }
.dial { width: 136px; height: 136px; flex: none; }
.dial-num { font-family: var(--f-pixel); font-size: 18px; fill: #fff4d6; text-anchor: middle; opacity: .9; }
.dial-hand { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(67.5deg); animation: dial 24s linear infinite; }
@keyframes dial { from { transform: rotate(67.5deg); } to { transform: rotate(427.5deg); } }
.dial-cap { font-family: var(--f-pixel); font-size: 1.3rem; line-height: 1.2; color: var(--gold-hi); }
.dial-cap span { font-size: 1.05rem; color: var(--text-3); }
.stage-list { display: grid; gap: 12px; margin-top: 4px; }
.stage-list li { position: relative; padding-left: 22px; font-size: .97rem; color: var(--text-2); }
.stage-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.battle-ui { display: grid; gap: 14px; max-width: 460px; }
.initiative { display: grid; gap: 6px; }
.init-label { font-family: var(--f-pixel); font-size: 1.05rem; letter-spacing: .06em; color: var(--text-3); }
.init-track {
  position: relative; height: 34px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px;
  background: linear-gradient(90deg, rgba(230, 179, 90, .28), rgba(230, 179, 90, .04) 30%);
}
.init-mark { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 3px; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); }
.init-token { position: absolute; inset: 0; animation: lane var(--t, 6s) linear infinite; animation-delay: var(--d, 0s); }
.init-token b { position: absolute; left: 0; top: 5px; height: 22px; padding: 0 8px; border-radius: 5px; font-family: var(--f-pixel); font-size: 1.05rem; font-weight: 400; line-height: 22px; color: #14100b; }
@keyframes lane { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(-12%, 0, 0); } }
.t-hero { --t: 6s; --d: -1s; }
.t-hero b { background: var(--gold-hi); }
.t-bat1 { --t: 7.4s; --d: -4.2s; }
.t-bat1 b { background: #d39a9a; }
.t-bat2 { --t: 8.8s; --d: -6.6s; }
.t-bat2 b { background: #b98bb0; }
.cmd-box, .talk-box {
  position: relative; border: 2px solid rgba(247, 216, 154, .55); border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 24, 42, .92), rgba(15, 12, 22, .96));
  box-shadow: inset 0 0 0 2px rgba(12, 10, 8, .9), inset 0 0 0 3px rgba(247, 216, 154, .18);
}
.cmd-box { padding: 10px 14px 10px 36px; font-family: var(--f-pixel); }
.cmd-box::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 30px; border-radius: 6px;
  background: rgba(247, 216, 154, .09); animation: cmd 6s steps(1, end) infinite;
}
.cmd-list li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; height: 30px; line-height: 30px; font-size: 1.4rem; color: var(--text); }
.cmd-note { font-size: 1.05rem; color: var(--text-3); white-space: nowrap; }
.cmd-cursor {
  position: absolute; left: 14px; top: 19px; width: 0; height: 0;
  border-left: 10px solid var(--gold-hi); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  animation: cmd 6s steps(1, end) infinite, nudge .5s ease-in-out infinite alternate;
}
@keyframes cmd { 0% { transform: translate3d(0, 0, 0); } 25% { transform: translate3d(0, 30px, 0); } 50% { transform: translate3d(0, 60px, 0); } 75% { transform: translate3d(0, 90px, 0); } }
@keyframes nudge { to { translate: 3px 0; } }
.talk-box { display: grid; gap: 10px; max-width: 360px; margin-top: 12px; padding: 18px 16px 16px; }
.talk-name { position: absolute; top: -13px; left: 14px; padding: 0 8px; border-radius: 4px; background: var(--gold-hi); font-family: var(--f-pixel); font-size: 1.05rem; line-height: 22px; color: #14100b; }
.talk-lines { display: grid; gap: 8px; }
.talk-lines i { display: block; height: 7px; border-radius: 3px; background: rgba(242, 232, 213, .5); transform-origin: 0 50%; animation: type 5s steps(14, end) infinite; }
.talk-lines i:nth-child(2) { width: 84%; animation-delay: .35s; }
.talk-lines i:nth-child(3) { width: 58%; animation-delay: .7s; }
@keyframes type { 0% { transform: scaleX(0); } 32%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.talk-choice { display: flex; gap: 10px; }
.talk-choice i { width: 68px; height: 20px; border: 1px solid rgba(247, 216, 154, .35); border-radius: 4px; }
.talk-choice i.on { border-color: var(--gold-hi); background: rgba(247, 216, 154, .18); }
.place-chips, .tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.place-chips li, .tech-chips li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 10, 8, .35); color: var(--text); font-size: .82rem; }
.tech-chips li { font-family: var(--f-pixel); font-size: 1.12rem; line-height: 1.35; letter-spacing: .02em; border-radius: 6px; }
@media (max-width: 1060px) { .pillars > .pillar { grid-column: span 6; } }
@media (max-width: 760px) { .pillars > .pillar { grid-column: span 12; } .dial { width: 112px; height: 112px; } }

/* ---------------------------------------------------------------- VI. planned features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 18px); }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg);
}
.feature > :not(.glare) { position: relative; z-index: 1; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(12, 10, 8, .55);
  transition: transform .6s var(--ease-out);
}
.feature-icon .px-icon { width: 32px; height: 32px; }
.feature:hover .feature-icon { transform: translate3d(0, -3px, 0); }
.feature p { font-size: .95rem; color: var(--text-2); }
.feature-more { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.feature-more span { display: inline-block; transition: transform .4s var(--ease-out); }
.feature-more:hover span { transform: translate3d(4px, 0, 0); }
.feature-more-card { border-style: dashed; border-color: rgba(139, 147, 201, .4); background: linear-gradient(165deg, rgba(34, 32, 52, .6), rgba(16, 14, 20, .7)); }
@media (max-width: 1060px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; column-gap: 16px; row-gap: 6px; padding: 18px;
    grid-template-areas: "icon tag" "icon title" "icon text" "icon more";
  }
  .feature-top { display: contents; }
  .feature-icon { grid-area: icon; }
  .feature-top .tag { grid-area: tag; justify-self: start; }
  .feature .h4 { grid-area: title; }
  .feature p { grid-area: text; }
  .feature-more { grid-area: more; margin-top: 0; }
}

/* ---------------------------------------------------------------- VII. built with Claude */
.block-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 28px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.today { margin-bottom: clamp(64px, 8vw, 104px); }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; padding-top: 34px; }
.pipeline::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 1px; background: linear-gradient(90deg, rgba(230, 179, 90, .12), var(--gold), rgba(230, 179, 90, .12)); }
.pipe-step { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(26, 21, 16, .72); }
.pipe-step b { font-family: var(--f-display); font-size: 1.32rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.pipe-step span:not(.pipe-node) { font-size: .84rem; line-height: 1.5; color: var(--text-3); }
.pipe-node { position: absolute; top: -31px; left: 16px; width: 12px; height: 12px; border: 2px solid var(--gold); border-radius: 50%; background: var(--ink); }
.pipe-node::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 214, .95), rgba(247, 216, 154, .35) 55%, transparent);
  opacity: 0; animation: node-lit 6s ease-out infinite;
}
.pipe-step:nth-child(2) .pipe-node::after { animation-delay: 1s; }
.pipe-step:nth-child(3) .pipe-node::after { animation-delay: 2s; }
.pipe-step:nth-child(4) .pipe-node::after { animation-delay: 3s; }
.pipe-step:nth-child(5) .pipe-node::after { animation-delay: 4s; }
.pipe-step:nth-child(6) .pipe-node::after { animation-delay: 5s; }
@keyframes node-lit { 0% { opacity: 0; } 4% { opacity: 1; } 22%, 100% { opacity: 0; } }
.pipe-runner { position: absolute; left: 8px; right: 8px; top: 6px; height: 7px; overflow: hidden; pointer-events: none; }
.pipe-runner::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 7px;
  background: radial-gradient(closest-side, #fff4d6, rgba(247, 216, 154, .6) 40%, transparent) 0 0 / 80px 7px no-repeat;
  animation: run 6s linear infinite;
}
.work-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.work-card, .next-card {
  position: relative; display: grid; align-content: start; gap: 10px; overflow: hidden;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg);
}
.work-card > :not(.glare), .next-card > :not(.glare) { position: relative; z-index: 1; }
.work-card p, .next-card p { font-size: .97rem; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 22px 24px;
  border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(230, 179, 90, .08), transparent 75%);
}
.stat dt { font-size: .88rem; line-height: 1.5; color: var(--text-3); }
.stat dd { margin: 0; font-family: var(--f-display); font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.stat dd small { font-size: .46em; font-weight: 600; color: var(--gold-hi); }
.stat-flip { display: inline-block; transform-origin: 50% 80%; transition: transform 1s var(--ease-out) .3s, opacity .8s ease .3s; }
.js .stat:not(.is-in) .stat-flip { transform: perspective(400px) rotateX(80deg); opacity: 0; }
.next-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.next-card { border-style: dashed; border-color: var(--line-2); background: rgba(20, 16, 12, .5); }
@media (max-width: 1060px) {
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
  .pipeline::before, .pipe-runner { display: none; }
  .pipe-node { position: relative; top: auto; left: auto; margin-bottom: 4px; }
  .work-cards { grid-template-columns: 1fr; }
  .next-cards, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-cards { grid-template-columns: 1fr; }
  .stat { padding: 18px 14px 20px; }
}

/* walking band */
.walkband { position: relative; height: 252px; margin-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.walk-ground { position: absolute; left: 0; right: 0; bottom: 68px; height: 2px; background: repeating-linear-gradient(90deg, rgba(230, 179, 90, .55) 0 8px, transparent 8px 16px); }
.walk-ground::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 46px; background: linear-gradient(180deg, rgba(230, 179, 90, .07), transparent); }
.walker { --s: 1; position: absolute; left: 0; bottom: 64px; width: 160px; height: 160px; transform: translate3d(-200px, 0, 0); will-change: transform; }
.walker .sprite { position: absolute; inset: 0; }
.walker .blob { z-index: 0; }
.walkband:not(.is-running) .strip { animation-play-state: paused; }
.walk-cap { position: absolute; left: 0; right: 0; bottom: 12px; line-height: 1.5; text-align: center; font-size: .8rem; color: var(--text-3); }

/* ---------------------------------------------------------------- VIII. roadmap */
.timeline-wrap { position: relative; max-width: 980px; margin-inline: auto; padding-left: 64px; }
.tl-rail { position: absolute; left: 15px; top: 14px; bottom: 14px; width: 14px; overflow: hidden; }
.tl-rail::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: rgba(230, 179, 90, .12); }
.tl-rail-mask { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.tl-rail-mask::after {
  content: ""; position: absolute; left: 0; bottom: -10px; width: 14px; height: 24px;
  background: radial-gradient(closest-side, rgba(255, 244, 214, .95), rgba(247, 216, 154, .3) 55%, transparent);
}
.tl-rail-fill {
  position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; will-change: transform;
  background:
    linear-gradient(var(--gold-hi), var(--gold)) 0 0 / 100% var(--now, 40%) no-repeat,
    repeating-linear-gradient(180deg, rgba(139, 147, 201, .8) 0 6px, transparent 6px 12px);
}
.timeline { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.tl-item { position: relative; }
.tl-node {
  position: absolute; left: -53px; top: 26px; width: 22px; height: 22px; display: grid; place-items: center;
  border: 2px solid rgba(230, 179, 90, .35); border-radius: 50%; background: var(--ink); color: transparent;
  transition: border-color .5s ease, background-color .5s ease, color .5s ease, transform .6s var(--ease-out);
}
.tl-node svg { width: 12px; height: 12px; }
.tl-item.is-done .tl-node { border-color: var(--gold); background: var(--gold); color: #1a1209; }
.js .tl-item:not(.is-reached) .tl-node { transform: scale(.82); }
.js .tl-item.is-done:not(.is-reached) .tl-node { background: var(--ink); color: transparent; border-color: rgba(230, 179, 90, .35); }
.tl-item.is-now .tl-node { border-color: var(--gold-hi); }
.tl-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); }
.tl-item.is-now .tl-node::before, .tl-item.is-now .tl-node::after {
  content: ""; position: absolute; inset: -2px; border: 2px solid var(--gold-hi); border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}
.tl-item.is-now .tl-node::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.7); opacity: 0; } }
.tl-item.is-next.is-reached .tl-node { border-color: rgba(247, 216, 154, .8); }
.tl-card { display: grid; gap: 10px; padding: 22px 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg); }
.tl-item.is-now .tl-card {
  border-color: rgba(247, 216, 154, .55);
  background: linear-gradient(165deg, rgba(66, 50, 28, .82), rgba(24, 18, 12, .82));
  box-shadow: 0 30px 80px -40px rgba(230, 179, 90, .5);
}
.tl-item:not(.is-done):not(.is-now) .tl-card { background: rgba(18, 15, 12, .5); }
.tl-beyond .tl-card { border-style: dashed; border-color: rgba(139, 147, 201, .35); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tl-slice { font-family: var(--f-pixel); font-size: 1.3rem; line-height: 1; color: var(--gold-hi); }
.tl-gate { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.tl-card p { font-size: .98rem; color: var(--text-2); }
@media (max-width: 600px) {
  .timeline-wrap { padding-left: 40px; }
  .tl-rail { left: 3px; }
  .tl-node { left: -41px; }
  .tl-card { padding: 18px 18px 20px; }
}

/* ---------------------------------------------------------------- IX. dev log */
.devlog-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.devlog-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.log { position: relative; border-left: 1px dashed var(--line-2); }
.log-item { position: relative; display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: 20px; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); }
.log-item::before { content: ""; position: absolute; left: -5px; top: 28px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.log-item:first-child::before { background: var(--gold-hi); box-shadow: 0 0 12px var(--gold-hi); animation: pulse-dot 2.4s ease-in-out infinite; }
.log-item time { font-family: var(--f-pixel); font-size: 1.3rem; line-height: 1.35; color: var(--gold-hi); white-space: nowrap; }
.log-item p { color: var(--text-2); }
@media (max-width: 900px) { .devlog-grid { grid-template-columns: 1fr; } .devlog-head { position: static; margin-bottom: 8px; } }
@media (max-width: 520px) { .log-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- X. contact */
.contact-panel {
  position: relative; display: grid; align-items: end; min-height: min(80vh, 720px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: calc(var(--r) + 6px); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9);
}
.cp-bg { position: absolute; inset: 0; z-index: -3; }
.cp-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; transform: scale(1.12); animation: cp-pan 30s ease-in-out infinite alternate; }
@keyframes cp-pan { to { transform: scale(1.2) translate3d(-2%, -1%, 0); } }
.cp-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 18, .94) 0%, rgba(8, 9, 18, .72) 48%, rgba(8, 9, 18, .3) 100%), linear-gradient(0deg, rgba(8, 9, 18, .9), transparent 55%);
}
.cp-flies { z-index: -2; }
.cp-hero { --s: 2; position: absolute; right: clamp(16px, 8vw, 120px); bottom: 34px; z-index: -1; }
.cp-text { display: grid; gap: 18px; max-width: 660px; padding: clamp(28px, 5vw, 64px); }
.cp-text .eyebrow { justify-self: start; }
.contact-soon { margin-top: 6px; padding: 16px 20px; border: 1px dashed rgba(247, 216, 154, .45); border-radius: 12px; font-family: var(--f-display); font-size: 1.35rem; color: var(--gold-hi); }
.contact-note { color: var(--text-2); }
@media (max-width: 1060px) { .cp-hero { --s: 1; } }
@media (max-width: 720px) {
  .contact-panel { min-height: 0; }
  .cp-text { padding-top: 190px; }
  .cp-hero { top: 20px; bottom: auto; right: 50%; transform: translateX(50%); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .88rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.to-top { font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); opacity: 0; transition: opacity .35s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6, 5, 4, .93); }
.lb-figure { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 100%; margin: 0; transform: scale(.97) translate3d(0, 12px, 0); transition: transform .5s var(--ease-out); }
.lightbox.is-open .lb-figure { transform: none; }
.lb-imgwrap { position: relative; display: grid; place-items: center; min-width: 120px; min-height: 120px; }
.lb-img {
  width: auto; height: auto; max-width: min(100%, 1600px);
  max-height: calc(100vh - 170px); max-height: calc(100svh - 170px);
  border-radius: 10px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .35s ease;
}
.lb-img.is-shown { opacity: 1; }
.lb-spinner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(247, 216, 154, .25); border-top-color: var(--gold-hi); border-radius: 50%; opacity: 0; animation: spin 1s linear infinite; transition: opacity .3s; }
.lightbox.is-loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-cap { display: flex; align-items: baseline; justify-content: center; gap: 14px; max-width: 86ch; text-align: center; font-size: .92rem; color: var(--text-2); }
.lb-count { font-family: var(--f-pixel); font-size: 1.15rem; color: var(--gold-hi); white-space: nowrap; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(247, 216, 154, .35); border-radius: 50%; background: rgba(14, 11, 8, .72); color: var(--text); cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.lb-btn:hover { border-color: var(--gold-hi); background: rgba(40, 30, 20, .92); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
html.lb-open { overflow: hidden; }
@media (max-width: 720px) {
  .lb-img { max-height: calc(100svh - 230px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-cap { flex-direction: column; align-items: center; gap: 4px; }
}

/* ---------------------------------------------------------------- deep-link sync: land in the final state instantly */
.aw-sync .section *, .aw-sync .section *::before, .aw-sync .section *::after,
.aw-sync .site-header, .aw-sync .site-header::before, .aw-sync .site-header::after,
.aw-sync .site-header *, .aw-sync .site-header *::after { transition: none !important; }

/* ---------------------------------------------------------------- pause loops while off-screen */
.js [data-live]:not(.is-live),
.js [data-live]:not(.is-live)::before, .js [data-live]:not(.is-live)::after,
.js [data-live]:not(.is-live) *,
.js [data-live]:not(.is-live) *::before, .js [data-live]:not(.is-live) *::after { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- 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;
  }
  .strip, .turn-strip, .turn-flip, .scene-kb, .st-pan, .cp-bg img, .init-token, .cmd-cursor, .cmd-box::before, .dial-hand, .thesis-steps::after, .pipe-runner::before { animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js .t-line .ch, .js .hero-content .badge, .js .hero-descriptor, .js .hero-text, .js .hero-ctas, .js .hero-hud, .js .hero-cue span { opacity: 1; transform: none; }
  .js .hero-stage::after { display: none; }
  .scene-kb { transform: scale(1.04); }
  .t-hero { transform: translate3d(6%, 0, 0); }
  .t-bat1 { transform: translate3d(40%, 0, 0); }
  .t-bat2 { transform: translate3d(70%, 0, 0); }
  .js .pillar-camera:not(.is-in) .cd-cam { transform: rotate(35deg); }
  .js .pillar-camera:not(.is-in) .cd-cone, .js .pillar-camera:not(.is-in) .cd-arc { opacity: 1; }
  .js .stat:not(.is-in) .stat-flip { transform: none; opacity: 1; }
  .curtain { display: none; }
}

.presskit-link{color:var(--gold-hi,#f3d58d);text-decoration:underline;text-underline-offset:3px}
.presskit-link:hover{color:#fff}
.contact-mail { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid rgba(247, 216, 154, .45); border-radius: 12px; background: rgba(28, 22, 17, .55); }
.contact-addr { min-width: 0; font-family: var(--f-display); font-size: 1.35rem; color: var(--gold-hi); text-decoration: none; overflow-wrap: anywhere; }
.contact-addr:hover, .contact-addr:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.copy-mail { font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.copy-mail:hover, .copy-mail:focus-visible { color: var(--gold-hi); border-color: rgba(247, 216, 154, .6); }
.footer-mail { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
