/* ==========================================================================
   FZU DOCTOR // home
   ========================================================================== */

.js [data-scramble]:not(.is-on) { visibility: hidden; }

/* ------------------------------------------------------------------ BOOT */
.boot { position: fixed; inset: 0; z-index: 150; display: none; color: var(--fg); cursor: pointer; }
.js:not(.boot-done) .boot { display: block; }
.boot__shutters { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); }
.boot__shutters i { position: relative; background: #060708; transition: transform .85s var(--ease-snap); }
.boot__shutters i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--y); opacity: 0; transition: opacity .2s; }
.boot__shutters i:nth-child(odd)::after { right: 0; }
.boot__shutters i:nth-child(even)::after { left: 0; }
.boot.is-out .boot__shutters i::after { opacity: 1; }
.boot.is-out .boot__shutters i:nth-child(odd) { transform: translateX(-102%); }
.boot.is-out .boot__shutters i:nth-child(even) { transform: translateX(102%); }
.boot.is-out .boot__shutters i:nth-child(2) { transition-delay: .05s; }
.boot.is-out .boot__shutters i:nth-child(3) { transition-delay: .1s; }
.boot.is-out .boot__shutters i:nth-child(4) { transition-delay: .15s; }
.boot.is-out .boot__shutters i:nth-child(5) { transition-delay: .2s; }

.boot__inner {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 44px) var(--gutter);
  transition: opacity .3s;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 4px;
}
.boot.is-out .boot__inner { opacity: 0; }
.boot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.boot__brand { display: flex; align-items: center; gap: 14px; }
.boot__mark { width: 40px; height: 40px; }
.boot__mark .m-y, .pfile__mark .m-y { color: var(--y); }
.boot__brand b { display: block; font: 800 22px/1 var(--f-en); font-stretch: 125%; letter-spacing: .12em; }
.boot__brand span { display: block; margin-top: 6px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .26em; color: var(--fg-2); }
.boot__meta { text-align: right; font-size: 10px; letter-spacing: .2em; color: var(--fg-3); line-height: 1.8; }
.boot__log { align-self: center; display: grid; gap: 7px; max-width: 760px; font-size: clamp(11px, 1.2vw, 13px); color: var(--fg-2); transition: opacity .3s; }
.boot__log li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; animation: bootline .2s steps(4) both; }
.boot__log li::before { content: ">"; color: var(--y); }
.boot__log li .lead { flex: 1; overflow: hidden; color: var(--fg-3); }
.boot__log li .lead::after { content: " ................................................................................................"; }
.boot__log li .ok { color: var(--ok); }
.boot__log li .warn { color: var(--y); }
@keyframes bootline { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.boot__bottom { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 28px; transition: opacity .3s; }
.boot__pct { font: 800 clamp(56px, 10vw, 128px)/.8 var(--f-en); font-stretch: 125%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.boot__bar { height: 4px; margin-bottom: 8px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.boot__bar i { position: absolute; inset: 0; background: var(--y); transform-origin: left; transform: scaleX(0); }
.boot__hint { grid-column: 2; justify-self: end; font-size: 9.5px; letter-spacing: .24em; color: var(--fg-3); }
.boot__welcome {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.boot.is-welcome .boot__log, .boot.is-welcome .boot__bottom { opacity: 0; }
.boot.is-welcome .boot__welcome { opacity: 1; }
.boot__w1 { font-size: clamp(34px, 6.4vw, 84px); font-weight: 900; letter-spacing: .06em; }
.boot.is-welcome .boot__w1 { animation: welcome 1s var(--ease-out) both; }
.boot__w2 { margin-top: 14px; font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .4em; color: var(--y); }
@keyframes welcome {
  0% { clip-path: inset(0 50% 0 50%); letter-spacing: .5em; opacity: 0; }
  100% { clip-path: inset(0 0 0 0); letter-spacing: .06em; opacity: 1; }
}

/* ------------------------------------------------------------------ HERO */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px;
  background: #050607;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback { display: none; }
.hero.no-gl .hero__gl { display: none; }
.hero.no-gl .hero__fallback {
  display: block; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 72% 46%, rgba(255, 122, 26, .16), transparent 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(58, 212, 255, .10), transparent 70%),
    url("../img/topo.svg") center / cover,
    #050607;
}
.hero::after { /* scanlines + top/bottom fades for legibility */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, .65), transparent 22%, transparent 70%, rgba(5, 6, 7, .9)),
    linear-gradient(90deg, rgba(5, 6, 7, .55), transparent 55%);
}

.hero__frame { position: absolute; z-index: 2; inset: calc(var(--topbar-h) + 14px) 18px 64px; pointer-events: none; }
.hero__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-3); }
.hero__frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hero__frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.hero__frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hero__frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.hero__content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--topbar-h) + 10px); padding-bottom: 120px;
  pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero__kicker { font-size: clamp(10.5px, 1vw, 12px); letter-spacing: .26em; color: var(--fg-1); margin-bottom: 18px; }
.hero__kicker span { color: var(--y); }
.hero__title {
  font: 800 clamp(52px, min(12.6vw, 20vh), 220px)/.8 var(--f-en);
  font-stretch: 125%;
  letter-spacing: -.04em;
  margin-left: -.04em;
  text-shadow: 0 0 60px rgba(0, 0, 0, .35);
}
.hero__title .ln { position: relative; display: flex; align-items: flex-start; overflow: hidden; padding-bottom: .03em; }
.hero__title i { display: inline-block; font-style: normal; }
.js .hero__title i { transform: translateY(108%); }
.hero-live .hero__title i { animation: letter-in 1.1s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 55ms + 80ms); }
@keyframes letter-in {
  0% { transform: translateY(108%); }
  60% { text-shadow: -.04em 0 0 rgba(58, 212, 255, .7), .04em 0 0 rgba(255, 122, 26, .7); }
  100% { transform: none; text-shadow: none; }
}
.hero__title .ln:last-child i:last-of-type { position: relative; }
.hero__title .ln:last-child i:last-of-type::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: .07em; height: .055em; background: var(--y);
  transform: scaleX(0); transform-origin: left;
}
.hero-live .hero__title .ln:last-child i:last-of-type::after { transition: transform .9s var(--ease-snap) 1.1s; transform: none; }
.hero__ver { align-self: flex-start; margin: .5em 0 0 .7em; font-size: max(10px, .065em); letter-spacing: .3em; color: var(--y); font-weight: 600; }
.js .hero__ver { opacity: 0; }
.hero-live .hero__ver { transition: opacity .6s 1s; opacity: 1; }
.hero:hover .hero__title { animation: rgb-split 3.2s steps(1) infinite; }
@keyframes rgb-split {
  0%, 92%, 100% { text-shadow: none; }
  93% { text-shadow: -3px 0 rgba(58, 212, 255, .75), 3px 0 rgba(255, 122, 26, .75); }
  95% { text-shadow: 2px 0 rgba(58, 212, 255, .75), -2px 0 rgba(255, 122, 26, .75); }
}

.hero__zh { margin-top: clamp(18px, 2.4vw, 30px); font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; letter-spacing: .14em; }
.hero__desc { margin-top: 12px; max-width: 580px; color: var(--fg-1); font-size: clamp(13px, 1.05vw, 15px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.js .hero__tags, .js .hero__kicker, .js .hero__zh, .js .hero__desc, .js .hero__cta { opacity: 0; transform: translateY(14px); }
.hero-live .hero__tags, .hero-live .hero__kicker, .hero-live .hero__zh, .hero-live .hero__desc, .hero-live .hero__cta {
  opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.hero-live .hero__kicker { transition-delay: .1s; }
.hero-live .hero__zh { transition-delay: .55s; }
.hero-live .hero__desc { transition-delay: .65s; }
.hero-live .hero__cta { transition-delay: .78s; }

.hero__hud {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 56px;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 0 calc(var(--gutter) + 8px);
  font-size: 9.5px; letter-spacing: .2em; color: var(--fg-3); text-transform: uppercase;
  pointer-events: none;
}
.hero__hud > div { display: grid; gap: 6px; }
.hero__hud-r { text-align: right; }
.hero__hud b { font-weight: 600; }
.hero__ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; background: rgba(5, 6, 7, .55); }

/* 3D-anchored labels */
.hero__pois { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.poi { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .4s; }
.js .poi, .js .anchor { opacity: 0; }
.hero-live .poi { opacity: 1; transition: opacity .6s 1.8s; }
.poi i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border: 1px solid var(--y); transform: rotate(45deg); }
.poi i::after { content: ""; position: absolute; inset: 2px; background: var(--y); animation: blink 1.6s steps(2) infinite; }
.poi span {
  position: absolute; left: 0; bottom: 14px; padding-left: 10px; white-space: nowrap;
  border-left: 1px solid rgba(255, 229, 0, .55);
  font: 500 9.5px/1.6 var(--f-mono); letter-spacing: .14em; color: var(--fg-1);
  text-shadow: 0 1px 6px #000;
}
.poi span::before { content: ""; position: absolute; left: -1px; top: 100%; height: 12px; border-left: 1px dashed rgba(255, 229, 0, .45); }
.poi b { color: var(--y); font-weight: 600; margin-right: 6px; }
.poi em { font-style: normal; color: var(--fg); }
@keyframes blink { 50% { opacity: 0; } }

.anchor { position: absolute; left: 0; top: 0; will-change: transform; color: rgba(58, 212, 255, .6); }
.hero-live .anchor { opacity: 1; transition: opacity .6s 2.2s; }
.anchor svg { position: absolute; left: 0; top: -60px; width: 120px; height: 60px; overflow: visible; }
.anchor__box {
  position: absolute; left: 124px; top: -76px;
  display: grid; gap: 4px; padding: 8px 10px;
  background: rgba(5, 8, 10, .55); border: 1px solid rgba(58, 212, 255, .3);
  font-size: 9.5px; letter-spacing: .14em; color: var(--fg-1); white-space: nowrap;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.anchor__box b { color: var(--c); font-weight: 600; }
.anchor.is-flip svg { left: -120px; transform: scaleX(-1); }
.anchor.is-flip .anchor__box { left: auto; right: 124px; }
.anchor__box em { font-style: normal; color: var(--o); }
.anchor__bars { display: flex; gap: 3px; }
.anchor__bars i { width: 9px; height: 4px; background: var(--c); opacity: .25; animation: bars 1.8s infinite; }
.anchor__bars i:nth-child(1) { animation-delay: 0s; } .anchor__bars i:nth-child(2) { animation-delay: .1s; }
.anchor__bars i:nth-child(3) { animation-delay: .2s; } .anchor__bars i:nth-child(4) { animation-delay: .3s; }
.anchor__bars i:nth-child(5) { animation-delay: .4s; } .anchor__bars i:nth-child(6) { animation-delay: .5s; }
.anchor__bars i:nth-child(7) { animation-delay: .6s; } .anchor__bars i:nth-child(8) { animation-delay: .7s; }
@keyframes bars { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* -------------------------------------------------------------- MANIFEST */
.manifest { background: var(--bg); }
.manifest__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.manifest__lead { font-size: clamp(26px, 3.3vw, 46px); font-weight: 900; line-height: 1.28; letter-spacing: .01em; }
.manifest__body { margin-top: 26px; max-width: 640px; color: var(--fg-1); font-size: clamp(14px, 1.1vw, 16px); line-height: 1.9; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.pillar { padding: 22px 20px 26px; background: var(--bg); transition: background .35s; }
.pillar:hover { background: var(--bg-1); }
.pillar__ix { display: block; font-size: 10px; letter-spacing: .22em; color: var(--y); }
.pillar h3 { margin: 14px 0 8px; font-size: 24px; font-weight: 900; }
.pillar p { font-size: 13px; color: var(--fg-2); line-height: 1.75; }

.pfile {
  padding: 26px 26px 22px; overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), opacity 1s var(--ease-out);
  transform-style: preserve-3d;
}
.pfile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 229, 0, .07), transparent 60%);
}
.pfile__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.pfile__lvl { font-size: 10px; letter-spacing: .2em; padding: 3px 7px; background: var(--y); color: #000; font-weight: 700; }
.pfile__id { display: flex; align-items: center; gap: 16px; padding: 22px 0; }
.pfile__mark { width: 62px; height: 62px; flex: none; }
.pfile__name { display: block; font: 800 24px/1 var(--f-en); font-stretch: 125%; letter-spacing: .02em; margin-bottom: 8px; }
.pfile__id .mono { font-size: 10px; letter-spacing: .2em; }
.pfile__kv { padding: 18px 0; border-block: 1px solid var(--line); }
.pfile__kv dd b { font-size: 15px; }
.pfile__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 18px; font-size: 9px; letter-spacing: .14em; line-height: 1.6; text-align: right; }
.pfile__stamp {
  position: absolute; right: 22px; bottom: 74px;
  padding: 2px 10px; border: 3px solid rgba(255, 122, 26, .5);
  color: rgba(255, 122, 26, .55); font-size: 34px; font-weight: 900; letter-spacing: .2em;
  transform: rotate(-14deg); pointer-events: none;
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------- OPERATION */
.operation {
  background:
    linear-gradient(rgba(58, 212, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(58, 212, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-1);
  border-block: 1px solid var(--line);
}
.operation__hz { position: absolute; top: 0; left: 0; right: 0; height: 6px; opacity: .9; }
.op__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.op__lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.85; color: var(--fg-1); }
.status { margin-top: 30px; padding: 20px 20px 16px; }
.status__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.status__state { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; }
.status__state.is-ok { color: var(--ok); }
.status__state.is-bad { color: var(--red); }
.status__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.status__grid > div { display: grid; gap: 6px; min-width: 0; }
.status__grid b { font-size: clamp(14px, 1.3vw, 18px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status__spark { width: 100%; height: 56px; margin-top: 16px; }
.status__ep { margin-top: 10px; font-size: 10.5px; letter-spacing: .1em; color: var(--fg-2); word-break: break-all; }
.steps { display: grid; gap: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font-size: 22px; font-weight: 600; color: var(--y); line-height: 1.1; }
.steps b { font-size: 15px; }
.steps p { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.op__go { --h: 60px; min-width: 260px; }
.op__credit { margin-top: 18px; font-size: 11.5px; line-height: 1.75; color: var(--fg-3); }
.op__credit a { color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.op__credit a:hover { color: var(--y); }

/* legacy save banner (apex origin still holds old Stronghold localStorage) */
.legacy {
  position: fixed; z-index: 95; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px;
  background: rgba(12, 14, 17, .94); border: 1px solid rgba(255, 229, 0, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: toast-in .6s var(--ease-out) both;
}
.legacy p { flex: 1; font-size: 13px; line-height: 1.6; color: var(--fg-1); }
.legacy__x { width: 32px; height: 32px; font-size: 20px; color: var(--fg-2); flex: none; }
.legacy__x:hover { color: var(--fg); }

.tdmap { position: relative; padding: 0; overflow: hidden; background: rgba(5, 7, 9, .7); }
.tdmap canvas { width: 100%; aspect-ratio: 16 / 11; }
.tdmap__hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  font-size: 10px; letter-spacing: .18em; color: var(--fg-2);
  background: linear-gradient(180deg, rgba(5, 7, 9, .9), transparent);
}
.tdmap__hud b { color: var(--fg); font-weight: 600; margin-left: 6px; }
.tdmap__legend {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px;
  font-size: 10px; letter-spacing: .14em; color: var(--fg-2);
  background: linear-gradient(0deg, rgba(5, 7, 9, .9), transparent);
}
.lg { display: inline-block; width: 9px; height: 9px; margin-right: 7px; vertical-align: -1px; }
.lg--spawn { background: var(--red); }
.lg--base { background: var(--c); }
.lg--high { background: #8d96a3; }
.lg--op { background: var(--y); transform: rotate(45deg) scale(.85); }

/* ------------------------------------------------------------- TERMINALS */
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tcard {
  --cut: 22px;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 300px; padding: 26px 26px 24px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .35s, opacity 1s var(--ease-out), background .35s;
}
.tcard::before { /* oversized ghost index */
  content: attr(data-ghost); position: absolute; right: -6px; bottom: -28px; z-index: -1;
  font: 800 150px/1 var(--f-en); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1px var(--line);
}
.tcard::after { /* cut-corner edge */
  content: ""; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut);
  background: linear-gradient(to bottom left, transparent calc(50% - .6px), var(--line-2) 50%, transparent calc(50% + .6px));
}
.tcard:hover { border-color: rgba(255, 229, 0, .45); background: linear-gradient(160deg, #191d24, var(--bg-1) 70%); }
.tcard__ix { font-size: 10px; letter-spacing: .24em; color: var(--y); }
.tcard__v { margin-top: 6px; font-size: 9.5px; letter-spacing: .24em; color: var(--fg-3); }
.tcard h3 { margin-top: auto; padding-top: 36px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; line-height: 1.1; }
.tcard h3 em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; letter-spacing: .3em; color: var(--fg-2); font-weight: 600; }
.tcard p { margin-top: 12px; font-size: 13px; color: var(--fg-2); line-height: 1.75; min-height: 3.5em; }
.tcard__go { margin-top: 18px; font-size: 11px; letter-spacing: .24em; color: var(--fg-1); transition: color .3s, transform .4s var(--ease-out); }
.tcard:hover .tcard__go { color: var(--y); transform: translateX(6px); }
.tcard__glare {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%);
}
.tcard:hover .tcard__glare { opacity: 1; }
.tcard--ak { border-top: 2px solid var(--c); }
.tcard--ak .tcard__ix { color: var(--c); }
.tcard--ef { background: linear-gradient(160deg, #1b1a10, var(--bg-1) 65%); border-top: 2px solid var(--y); }
.tcard--sp { background: repeating-linear-gradient(-45deg, rgba(255, 229, 0, .05) 0 10px, transparent 10px 20px), var(--bg-1); }

/* ------------------------------------------------------------- SIMULATOR */
.sim__shell { padding: clamp(16px, 2.4vw, 28px); }
.sim__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sim__ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.sim__stage {
  position: relative; display: flex; gap: clamp(4px, .7vw, 10px);
  height: clamp(250px, 28vw, 360px); margin: 22px 0; padding: 0 clamp(6px, 1vw, 14px);
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 100% 6px,
    #050607;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sim__stage.is-flash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 60%, rgba(255, 122, 26, .45), transparent 70%);
  animation: flash 1.2s var(--ease-out) both;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.sim__idle { margin: auto; text-align: center; display: grid; gap: 10px; color: var(--fg-2); letter-spacing: .3em; font-size: 12px; }
.sim__idle small { letter-spacing: .1em; color: var(--fg-3); font-family: var(--f-body); }

.slat {
  --rc: var(--r3);
  position: relative; flex: 1; min-width: 0;
  transform: skewX(-7deg);
  background: linear-gradient(180deg, #0d1014, #07090b);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
  animation: slat-in .55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.slat__beam {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 100%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--rc) 85%, transparent), color-mix(in srgb, var(--rc) 20%, transparent) 45%, transparent 85%);
  transform-origin: bottom; animation: beam .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms);
  mix-blend-mode: screen;
}
.slat__body { position: absolute; inset: 0; transform: skewX(7deg); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 2px 16px; text-align: center; }
.slat__r { font: 800 clamp(26px, 3.4vw, 46px)/1 var(--f-en); font-stretch: 125%; color: #fff; text-shadow: 0 0 18px var(--rc); }
.slat__stars { margin-top: 6px; font-size: clamp(7px, .8vw, 10px); color: var(--rc); letter-spacing: 0; white-space: nowrap; }
.slat__n { margin-top: 8px; font: 600 clamp(8px, .75vw, 10px)/1.2 var(--f-mono); letter-spacing: .08em; color: rgba(255, 255, 255, .8); writing-mode: vertical-rl; max-height: 50%; overflow: hidden; }
.slat.r6 { --rc: var(--r6); border-color: rgba(255, 122, 26, .6); box-shadow: 0 0 28px rgba(255, 122, 26, .35), inset 0 0 22px rgba(255, 122, 26, .25); }
.slat.r5 { --rc: var(--r5); }
.slat.r4 { --rc: var(--r4); }
.slat.r3 { --rc: var(--r3); }
.slat.r6::before {
  content: ""; position: absolute; inset: -50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent, rgba(255, 200, 120, .25), transparent 30%);
  animation: spin 2.4s linear infinite; mix-blend-mode: screen;
}
.slat.is-up::after {
  content: "UP"; position: absolute; top: 10px; left: 50%; transform: translateX(-50%) skewX(7deg);
  font: 700 9px/1 var(--f-mono); letter-spacing: .12em; padding: 3px 5px; background: var(--y); color: #000; z-index: 2;
}
@keyframes slat-in { from { opacity: 0; transform: skewX(-7deg) translateY(30px); } to { opacity: 1; transform: skewX(-7deg); } }
@keyframes beam { from { transform: scaleY(0); opacity: 0; } 50% { opacity: 1; } to { transform: scaleY(1); opacity: .9; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sim__data { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.sim__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sim__kpis > div { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--bg); }
.sim__kpis b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1; }
.sim__kpis small { font-size: 11px; color: var(--fg-3); }
.sim__chart { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; border: 1px solid var(--line); min-width: 0; }
.sim__chart-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim__chart-head .mono { font-size: 11px; }
.sim__chart canvas { width: 100%; height: 170px; }
.sim__rule { font-size: 12px; line-height: 1.7; }

/* ------------------------------------------------------------ DUAL WORLD */
.dual { position: relative; --split: 50%; }
.dual__stage { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; }
.dual__pane { position: absolute; inset: 0; }
.dual__pane--terra {
  background:
    radial-gradient(50% 60% at 18% 70%, rgba(255, 122, 26, .14), transparent 70%),
    radial-gradient(40% 50% at 30% 20%, rgba(58, 212, 255, .08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 64px,
    #08090b;
  color: var(--fg);
}
.dual__pane--talos {
  clip-path: polygon(calc(var(--split) + 7vh) 0, 100% 0, 100% 100%, calc(var(--split) - 7vh) 100%);
  background:
    linear-gradient(rgba(13, 14, 16, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(13, 14, 16, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    #e7e6e1;
}
.dual.is-anim .dual__pane--talos, .dual.is-anim .dual__handle { transition: clip-path 1.4s var(--ease-snap), left 1.4s var(--ease-snap); }
.dual__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dual__pane--terra .dual__inner > * { max-width: min(560px, 42vw); }
.dual__pane--talos .dual__inner { align-items: flex-end; text-align: right; }
.dual__pane--talos .dual__inner > * { max-width: min(560px, 42vw); }
.dual__title { display: grid; gap: 14px; margin: 18px 0 20px; }
.dual__title .h-display { font-size: clamp(40px, 5vw, 92px); white-space: nowrap; }
.dual__pane--terra .h-display { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.dual__pane--talos .h-display { color: var(--fg); }
.dual__title b { font-size: clamp(18px, 1.8vw, 24px); font-weight: 900; letter-spacing: .1em; }
.dual__pane--talos .dual__title b { display: inline-block; justify-self: end; padding: 4px 10px; background: var(--y); color: #000; }
.dual__copy { color: var(--fg-1); line-height: 1.85; }
.dual__timers { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 28px 0; }
.dual__pane--talos .dual__timers { justify-content: flex-end; }
.dual__timers div { display: grid; gap: 6px; }
.dual__timers dd { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: .02em; }
.dual__links { display: flex; flex-wrap: wrap; gap: 10px; }
.dual__pane--talos .dual__links { justify-content: flex-end; }
.dual__deco { position: absolute; bottom: 48px; font-size: 10px; letter-spacing: .28em; line-height: 1.9; color: var(--fg-3); }
.dual__pane--terra .dual__deco { left: var(--gutter); }
.dual__pane--talos .dual__deco { right: var(--gutter); text-align: right; }
.dual__hz { position: absolute; top: 0; right: 0; width: 38%; height: 14px; --hz: #0d0e10; }
.dual__handle {
  position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--split); width: 0;
  touch-action: none; outline: none;
}
.dual__seam-wrap { position: absolute; inset: 0; z-index: 4; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255, 229, 0, .55)); }
.dual__seam {
  position: absolute; inset: 0; background: var(--y);
  clip-path: polygon(calc(var(--split) + 7vh - 1px) 0, calc(var(--split) + 7vh + 1px) 0, calc(var(--split) - 7vh + 1px) 100%, calc(var(--split) - 7vh - 1px) 100%);
}
.dual.is-anim .dual__seam { transition: clip-path 1.4s var(--ease-snap); }
.dual__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #000; color: var(--y); border: 1px solid var(--y);
  font-size: 10px; letter-spacing: .2em; white-space: nowrap; cursor: ew-resize;
}
.dual__knob i { width: 1px; height: 14px; background: var(--y); }
.dual__handle:focus-visible .dual__knob { outline: 2px solid #fff; outline-offset: 3px; }

/* -------------------------------------------------------------- BULLETIN */
.bul__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bul__list { display: grid; border-top: 1px solid var(--line); }
.notice {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 22px 16px 22px 18px; border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.notice::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); transition: background .3s; }
.notice:hover { background: rgba(255, 255, 255, .02); }
.notice:hover::before, .notice.is-pin::before { background: var(--y); }
.notice > .mono { font-size: 12px; letter-spacing: .1em; color: var(--fg-2); padding-top: 2px; }
.notice b { font-size: 16px; }
.notice p { margin-top: 6px; font-size: 13.5px; color: var(--fg-2); line-height: 1.8; white-space: pre-line; }
.notice .tag { margin-right: 10px; vertical-align: 2px; }
.notice a.more { display: inline-block; margin-top: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--y); }
.notice.is-skeleton b { color: var(--fg-3); }
.links { border: 1px solid var(--line); padding: 20px; }
.links ul { margin-top: 12px; }
.links li a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease-out); }
.links li:last-child a { border-bottom: 0; }
.links li a:hover { padding-left: 8px; }
.links li b { font-size: 14px; }
.links li span { grid-row: 2; font-size: 12px; color: var(--fg-3); }
.links li i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--fg-3); transition: color .3s; }
.links li a:hover i { color: var(--y); }

.footer__tag { margin-top: 16px; font-size: 10px; letter-spacing: .26em; }

/* ------------------------------------------------------------ responsive */
@media (max-height: 760px) and (min-width: 761px) {
  .hero__content { padding-bottom: 88px; }
  .hero__tags { margin-bottom: 14px; }
  .hero__kicker { margin-bottom: 12px; }
  .hero__zh { margin-top: 14px; }
  .hero__cta { margin-top: 18px; }
  .hero__hud { bottom: 50px; }
  .hero__hud-l span:last-child, #glGpu { display: none; }
}
@media (max-width: 1100px) {
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op__grid, .manifest__grid { grid-template-columns: 1fr; }
  .pfile { max-width: 560px; }
  .sim__data { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: 600px; }
  .hero__content { justify-content: flex-end; padding-bottom: 150px; }
  .hero__hud { bottom: 50px; font-size: 8.5px; }
  .hero__hud-l span:last-child, #glGpu, .anchor { display: none; }
  .hero__title { font-size: 16.2vw; }
  .hero__kicker { letter-spacing: .14em; }
  .hero__frame { display: none; }
  .anchor__box { left: 70px; top: -64px; }
  .anchor svg { width: 70px; }
  .pillars { grid-template-columns: 1fr; }
  .status__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy { flex-wrap: wrap; }
  .legacy p { flex-basis: 100%; order: 3; }
  .tcards { grid-template-columns: 1fr; }
  .tcard { min-height: 240px; }
  .bul__grid { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; gap: 6px; }
  .slat__n { display: none; }
  .op__go { width: 100%; }

  /* dual world becomes two stacked plates */
  .dual__stage { height: auto; min-height: 0; }
  .dual__pane { position: relative; inset: auto; }
  .dual__pane--talos { clip-path: none !important; }
  .dual__inner { padding-top: 88px; padding-bottom: 120px; }
  .dual__pane--terra .dual__inner > *, .dual__pane--talos .dual__inner > * { max-width: none; }
  .dual__handle, .dual__seam-wrap { display: none; }
}
@media (max-width: 560px) {
  .sim__stage { gap: 3px; padding: 0 4px; height: 230px; }
  .slat { transform: skewX(-4deg); }
  .slat__body { transform: skewX(4deg); padding-bottom: 10px; }
  .slat__r { font-size: 20px; }
  .slat__stars { font-size: 6px; letter-spacing: -1px; }
  .slat.is-up::after { font-size: 7px; padding: 2px 3px; }
  @keyframes slat-in { from { opacity: 0; transform: skewX(-4deg) translateY(30px); } to { opacity: 1; transform: skewX(-4deg); } }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__title i, .js .hero__ver, .js .hero__tags, .js .hero__kicker, .js .hero__zh, .js .hero__desc, .js .hero__cta { transform: none; opacity: 1; }
}
