.hero { position: relative; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; }
.scene .sky { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 70%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translateX(-0.6%); } to { transform: scale(1.08) translateX(0.6%); } }
.scene .ground { position: absolute; left: -3%; right: -3%; width: 106%; height: auto; bottom: -2px; max-width: none; }
@media (max-aspect-ratio: 16/10) { .scene .ground { width: auto; height: 36vh; left: 50%; transform: translateX(-50%); } }
.scene .ash { position: absolute; inset: 0; width: 100%; height: 100%; }
.fog { position: absolute; inset: auto -40% 8% -40%; height: 46%; pointer-events: none; opacity: 0.5;
  background: radial-gradient(closest-side, rgba(170, 175, 168, 0.18), transparent 70%) 0 0 / 50% 100% repeat-x;
  filter: blur(20px); animation: fog 60s linear infinite; }
.fog.f2 { bottom: 18%; height: 34%; opacity: 0.32; animation-duration: 95s; animation-direction: reverse; }
@keyframes fog { to { transform: translateX(25%); } }
.torch {
  --x: 50%; --y: 46%;
  position: absolute; inset: 0;
  background: radial-gradient(circle 420px at var(--x) var(--y), rgba(255, 244, 220, 0.06) 0, transparent 30%, rgba(5, 6, 5, 0.18) 55%, rgba(5, 6, 5, 0.55) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22vh; background: linear-gradient(transparent, var(--bg)); z-index: -1; }

.hero-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 80px; padding-bottom: 13vh; }
.hero-k { margin-bottom: clamp(18px, 3vh, 30px); }
.hero-logo { width: min(620px, 82vw); height: auto; filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.75)); animation: flicker 7s infinite; }
@keyframes flicker { 0%, 91%, 100% { opacity: 1; } 92% { opacity: 0.72; } 93% { opacity: 1; } 95% { opacity: 0.85; } 96% { opacity: 1; } }
.hero-line { margin: clamp(18px, 3vh, 26px) 0 clamp(26px, 4vh, 38px); font: 400 clamp(16px, 1.4vw, 19px)/1.5 var(--f-body); color: var(--ink-2); max-width: 44ch; text-wrap: balance; }
.server { display: flex; align-items: center; gap: 12px; }
.srv-addr {
  display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 22px; border-radius: 99px;
  background: rgba(8, 9, 8, 0.35); box-shadow: inset 0 0 0 1px var(--hair-2);
  font: 500 14px/1 var(--f-mono); color: var(--ink-2); transition: color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.srv-addr:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(236, 232, 223, 0.32); }
.srv-addr:active { transform: scale(0.98); }
.srv-addr .cp { padding-left: 14px; border-left: 1px solid var(--hair-2); font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s var(--ease); }
.srv-addr.ok .cp { color: var(--moss); }
.srv-live { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 400 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 680px) {
  .server { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .server .btn, .srv-addr { justify-content: space-between; }
}

.gps { position: absolute; left: var(--gutter); bottom: 30px; display: flex; gap: 14px; align-items: center; font: 400 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0.1em; }
.gps span { color: var(--accent-2); }
.gps b { font-weight: 500; color: var(--ink-2); min-width: 5ch; }
.gps i { font-style: normal; text-transform: uppercase; }
.cue { position: absolute; right: var(--gutter); bottom: 30px; font: 400 11px/1 var(--f-mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--ink-2), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 680px) { .gps { display: none; } }
.band { padding: clamp(40px, 6vw, 70px) 0 0; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-grid > div { padding: 30px clamp(18px, 2.4vw, 36px) 34px; border-left: 1px solid var(--hair); }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band b { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: clamp(54px, 6.4vw, 96px); line-height: 0.9; }
.band b small { font: 400 15px/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0; }
.band .lbl { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 400 11.5px/1.3 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-grid > div { padding: 24px 16px 26px; border-top: 1px solid var(--hair); }
  .band-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band-grid > div:nth-child(-n + 2) { border-top: 0; }
}
.chapters { padding-top: var(--sec); }
.ch-list { display: grid; gap: 28px; }
.ch {
  position: sticky; top: calc(96px + var(--i) * 16px); height: min(78vh, 680px); min-height: 520px;
  transform-origin: 50% 0;
}
.ch > .bezel { height: 100%; }
.ch .core { --dim: 0; position: relative; height: 100%; overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; isolation: isolate; }
.ch .core::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: #050605; opacity: var(--dim); }
.ch-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); }
.ch-n { font: 400 12px/1 var(--f-mono); letter-spacing: 0.2em; color: var(--ink-3); }
.ch-copy h3 { margin-top: auto; }
.ch-copy p { margin: 22px 0 32px; max-width: 40ch; color: var(--ink-2); font-size: 16.5px; }
.ch-art { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 14px); margin: 8px; }
.ch-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ch:hover .ch-art img { transform: scale(1.04); }
.graded { filter: grayscale(0.55) contrast(1.15) brightness(0.78) sepia(0.12); }
.ch-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(7, 8, 7, 0.75)); pointer-events: none; }
@media (max-width: 900px) {
  .ch { position: relative; top: 0; height: auto; min-height: 0; }
  .ch .core { grid-template-columns: 1fr; }
  .ch-art { height: 280px; order: -1; }
  .ch-copy h3 { margin-top: 26px; }
}
.art-guide { background: url("../img/hero-sky.webp") 50% 70% / cover; }
.art-guide .mini-hud { position: absolute; left: 50%; top: 50%; width: min(330px, 80%); translate: -50% -50%; padding: 20px; border-radius: 20px; background: rgba(8, 9, 8, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--hair-2); z-index: 2; }
.mini-hud .r { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font: 400 12px/1 var(--f-mono); color: var(--ink-2); }
.mini-hud .r + .r { margin-top: 16px; }
.mini-hud .m { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--hair-2); overflow: hidden; }
.mini-hud .m i { display: block; height: 100%; background: var(--c, var(--ink)); transform-origin: 0 50%; transform: scaleX(var(--v)); transition: transform 1.4s var(--ease); }
.mini-hud .log { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); font: 400 12px/1.4 var(--f-mono); color: var(--accent-2); }
.art-map { background: #10120e; }
.art-map img { object-position: 62% 72%; transform: scale(1.8); transform-origin: 62% 72%; }
.ch:hover .art-map img { transform: scale(1.9); }
.art-map .pulse { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--moss); z-index: 2; }
.art-map .pulse::before, .art-map .pulse::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid var(--moss); animation: ping 2.6s var(--ease-out) infinite; }
.art-map .pulse::after { animation-delay: 1.3s; }
.art-store { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgba(217, 180, 95, 0.16), transparent 70%), #0c0d0a; perspective: 900px; }
.pcard {
  position: relative; width: min(360px, 78%); aspect-ratio: 1.586; padding: 22px 24px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #2a2416 0%, #15130d 45%, #2b2312 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 150, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transform: rotateY(-14deg) rotateX(8deg); transition: transform 1.2s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ch:hover .pcard { transform: rotateY(-4deg) rotateX(3deg); }
.pcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, 0.16) 48%, transparent 62%); background-size: 250% 100%; animation: sheen 6s var(--ease) infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.pcard .t { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--f-mono); letter-spacing: 0.24em; color: rgba(242, 215, 150, 0.7); text-transform: uppercase; }
.pcard .t img { width: 30px; height: 30px; }
.pcard .n { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: 54px; line-height: 0.9; color: var(--gold-2); text-transform: uppercase; }
.pcard .n em { font: 500 13px/1 var(--f-mono); letter-spacing: 0.2em; color: rgba(242, 215, 150, 0.75); font-style: normal; margin-left: 8px; }
.pcard .c { font: 500 12px/1 var(--f-mono); letter-spacing: 0.3em; color: rgba(242, 215, 150, 0.55); }
.manifesto { padding: var(--sec) 0; }
.mf-text { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 6.8vw, 112px); line-height: 0.95; max-width: 15ch; }
.mf-text .w { color: rgba(236, 232, 223, 0.12); transition: color 0.5s var(--ease); }
.mf-text .w.lit { color: var(--ink); }
.mf-text .w.em.lit { color: var(--accent); }
.mf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; margin-top: 60px; }
.radio { padding: 0 0 var(--sec); }
.radio .core { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 100px) clamp(26px, 6vw, 90px); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; isolation: isolate; }
.radio .core::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(40% 40% at 80% 50%, rgba(114, 137, 218, 0.22), transparent 70%); }
.radio .wave { position: absolute; right: -4%; top: 50%; width: 52%; translate: 0 -50%; opacity: 0.5; z-index: -1; }
.radio .wave path { fill: none; stroke: rgba(160, 175, 235, 0.5); stroke-width: 1; }
.radio p { margin-top: 22px; }
.radio .btn { --b-bg: var(--bg-3); }
.radio .btn:hover { background: #24261f; }
.radio .act { display: flex; justify-content: flex-end; }
@media (max-width: 820px) { .radio .core { grid-template-columns: 1fr; } .radio .act { justify-content: flex-start; } }
.art-events { background: radial-gradient(70% 70% at 50% 45%, rgba(43, 179, 164, 0.12), transparent 70%), url("../img/hero-sky.webp") 50% 80% / cover; }
.radar { position: absolute; left: 50%; top: 44%; width: min(380px, 70%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 calc(25% - 1px), rgba(111, 214, 202, 0.18) calc(25% - 1px) 25%),
    linear-gradient(rgba(111, 214, 202, 0.12), rgba(111, 214, 202, 0.12)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(111, 214, 202, 0.12), rgba(111, 214, 202, 0.12)) 0 50% / 100% 1px no-repeat, rgba(6, 12, 11, 0.55);
  box-shadow: inset 0 0 0 1px rgba(111, 214, 202, 0.3); }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(111, 214, 202, 0.32), transparent 22%); animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .blip { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c); animation: blip 4s var(--ease-out) infinite; animation-delay: var(--d, 0s); }
@keyframes blip { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 8% { opacity: 1; transform: scale(1.5); } 40% { opacity: 0.6; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .radar .sweep, .radar .blip { animation: none; } }
.ev-clock { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 2; display: grid; gap: 8px; justify-items: center; padding: 16px 24px; border-radius: 18px; background: rgba(8, 10, 10, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(43, 179, 164, 0.35); white-space: nowrap; }
.ev-clock small { font: 500 11px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: #6fd6ca; }
.ev-clock b { font: 500 26px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }

.intro { position: fixed; inset: 0; z-index: 100; display: none; pointer-events: auto; }
.intro-play .intro { display: block; animation: intro-kill 0.01s 8s forwards; }
@keyframes intro-kill { to { visibility: hidden; pointer-events: none; } }
.lid { position: absolute; left: 0; right: 0; height: 50.5%; background: #050505; transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1); }
.lid-t { top: 0; box-shadow: 0 30px 80px 20px #050505; }
.lid-b { bottom: 0; box-shadow: 0 -30px 80px 20px #050505; }
.intro.peek .lid-t { transform: translateY(-22%); transition-duration: 0.28s; }
.intro.peek .lid-b { transform: translateY(22%); transition-duration: 0.28s; }
.intro.shut .lid-t, .intro.shut .lid-b { transform: none; transition-duration: 0.16s; }
.intro.open .lid-t { transform: translateY(-115%); transition-duration: 1s; }
.intro.open .lid-b { transform: translateY(115%); transition-duration: 1s; }
.in-core { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; text-align: center; transition: opacity 0.35s ease-out; }
.intro.fade .in-core, .intro.peek .in-core, .intro.shut .in-core, .intro.open .in-core { opacity: 0; }
.ekg { width: min(560px, 86vw); height: 110px; overflow: visible; }
.ekg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ekg-bg { stroke: rgba(200, 48, 42, 0.14); stroke-width: 1; }
.ekg-line { stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-play .ekg-line { animation: ekg 1.25s cubic-bezier(0.45, 0, 0.2, 1) forwards; }
@keyframes ekg { to { stroke-dashoffset: 0; } }
.in-stamp { min-height: 1.2em; font: 500 13px/1 var(--f-mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-2); }
.in-line { min-height: 1.4em; font: 400 clamp(17px, 2vw, 22px)/1.3 var(--f-body); color: var(--ink-2); }
.in-stamp::after, .in-line.typing::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 4px; vertical-align: -0.15em; background: currentColor; animation: caret 0.8s steps(1) infinite; }
.in-line:not(.typing)::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.in-logo { width: min(340px, 64vw); height: auto; margin-top: 10px; opacity: 0; filter: blur(10px) brightness(1.6); transform: scale(1.06); transition: opacity 0.9s ease-out, filter 1.1s ease-out, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.intro.logo .in-logo { opacity: 1; filter: none; transform: none; animation: flicker 1.6s 0.2s 1; }
.in-skip { position: absolute; right: 24px; bottom: 22px; z-index: 3; height: 38px; padding: 0 16px; border-radius: 99px; background: rgba(237, 237, 235, 0.06); box-shadow: inset 0 0 0 1px var(--hair-2); font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); transition: opacity 0.3s ease-out; }
.intro.peek .in-skip, .intro.shut .in-skip, .intro.open .in-skip { opacity: 0; }
.waking .home .scene { filter: blur(14px) brightness(0.55); transform: scale(1.04); }
.home .scene { transition: filter 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1); }
.waking .home .hero-inner { opacity: 0; }
