/* ==========================================================================
   MECHAFOLIO landing · FOLIO-OS
   Satu sistem komponen HUD, tiga tema (data-theme di <body>):
   cockpit   — panel instrumen gelap tembus, garis tipis sian, sudut braket
   blueprint — lembar spesifikasi teknik terang, garis tinta, tanda ukur
   broadcast — blok warna pekat ala grafis siaran, tanpa blur
   ========================================================================== */

body[data-theme="cockpit"] {
  --hud-bg: rgba(8, 13, 24, .74);
  --hud-bg-2: rgba(14, 22, 40, .82);
  --hud-line: rgba(130, 196, 255, .26);
  --hud-line-2: rgba(130, 196, 255, .12);
  --hud-text: #eaf2ff;
  --hud-dim: #8ea3c6;
  --accent: #4fe3ff;
  --accent-ink: #04121c;
  --accent-2: #2a5cf0;
  --hot: #ff5a47;
  --blur: 16px;
  --display: 'Chakra Petch', sans-serif;
  --display-w: 700;
  --display-case: none;
  --veil: linear-gradient(90deg, rgba(4, 9, 18, .66) 0%, rgba(4, 9, 18, .42) 26%, rgba(4, 9, 18, .1) 46%, rgba(4, 9, 18, 0) 58%);
  --wm: #0b1220;
  --bracket: 1;
  --hero-color: #fff;
  --hero-dim: #c9d6ec;
}
body[data-theme="blueprint"] {
  --hud-bg: rgba(250, 251, 253, .9);
  --hud-bg-2: rgba(255, 255, 255, .96);
  --hud-line: rgba(11, 18, 32, .22);
  --hud-line-2: rgba(11, 18, 32, .1);
  --hud-text: #0b1220;
  --hud-dim: #5b6780;
  --accent: #1f4fd8;
  --accent-ink: #fff;
  --accent-2: #e63b2e;
  --hot: #e63b2e;
  --blur: 12px;
  --display: 'Geist', sans-serif;
  --display-w: 700;
  --display-case: none;
  --veil: linear-gradient(90deg, rgba(244, 246, 249, .9) 0%, rgba(244, 246, 249, .55) 30%, rgba(244, 246, 249, 0) 52%);
  --wm: #1f4fd8;
  --bracket: 0;
  --hero-color: #0b1220;
  --hero-dim: #26324a;
}
body[data-theme="broadcast"] {
  --hud-bg: #1f4fd8;
  --hud-bg-2: #0b1220;
  --hud-line: rgba(255, 255, 255, .28);
  --hud-line-2: rgba(255, 255, 255, .14);
  --hud-text: #fff;
  --hud-dim: #c7d4ff;
  --accent: #f2c230;
  --accent-ink: #0b1220;
  --accent-2: #e63b2e;
  --hot: #e63b2e;
  --blur: 0px;
  --display: 'Chakra Petch', sans-serif;
  --display-w: 700;
  --display-case: uppercase;
  --veil: linear-gradient(0deg, rgba(11, 18, 32, .5) 0%, rgba(11, 18, 32, 0) 40%);
  --wm: #e63b2e;
  --bracket: 0;
  --hero-color: #fff;
  --hero-dim: #e6ecff;
}

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; touch-action: pan-y; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--veil); transition: opacity .6s; }
body.ch-dim .veil { opacity: 0; }

/* ---------- komponen HUD ---------- */
.hud {
  position: relative; color: var(--hud-text); background: var(--hud-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.3); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border: 1px solid var(--hud-line);
}
/* braket sudut (hanya tema cockpit) */
.hud::before, .hud::after {
  content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; opacity: var(--bracket);
  border-color: var(--accent); border-style: solid;
}
.hud::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.hud::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
body[data-theme="broadcast"] .hud { border: 0; box-shadow: 0 10px 30px rgba(11, 18, 32, .25); }
body[data-theme="broadcast"] .hud::before { opacity: 1; left: 0; top: 0; width: 100%; height: 4px; border: 0; background: var(--accent); }
body[data-theme="blueprint"] .hud { box-shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 18px 40px -24px rgba(11, 18, 32, .35); }

.k { font: 600 10.5px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hud-dim); }
.v { font: 600 17px/1.15 var(--display); color: var(--hud-text); }
.v.mono { font: 500 16px/1.15 var(--f-mono); }
.kicker { margin: 0 0 12px; font: 600 12px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.fine { font-size: 12px; color: var(--hud-dim); margin: 12px 0 0; }
.up { color: #34d27b; } .down { color: #ff6b5a; }
body[data-theme="blueprint"] .up { color: #15803d; } body[data-theme="blueprint"] .down { color: #c2271b; }
body[data-theme="broadcast"] .up { color: #8dffb8; } body[data-theme="broadcast"] .down { color: #ffb4aa; }

.btn-accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn .ic { width: 16px; height: 16px; }
.btn-ghost { --bg: transparent; --fg: var(--hero-color); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: auto; }
.boot .shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: #070b14; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.boot .shutter.s-top { top: 0; border-bottom: 1px solid rgba(79, 227, 255, .35); }
.boot .shutter.s-bot { bottom: 0; border-top: 1px solid rgba(79, 227, 255, .35); }
.boot.open .shutter.s-top { transform: translateY(-101%); }
.boot.open .shutter.s-bot { transform: translateY(101%); }
.boot.open .boot-term { opacity: 0; transform: scale(.98); }
.boot.gone { display: none; }
.boot-term { position: relative; width: min(440px, 86vw); color: #dfeaff; transition: opacity .35s, transform .35s; }
.boot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 15px/1 var(--f-display); letter-spacing: .2em; }
.boot-head em { font: 400 12px/1 var(--f-mono); letter-spacing: 0; color: #7f93b6; font-style: normal; margin-left: auto; }
.boot-mark { width: 26px; height: 26px; color: #fff; }
.boot-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font: 400 13px/1 var(--f-mono); }
.boot-lines li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: #8ea3c6; }
.boot-lines li i { height: 1px; background: repeating-linear-gradient(90deg, #33435f 0 3px, transparent 3px 6px); }
.boot-lines li b { font-weight: 500; color: #dfeaff; }
.boot-lines li.ok b { color: #4fe3ff; }
.boot-lines li.warn b { color: #f2c230; }
.boot-bar { margin-top: 18px; height: 2px; background: #1a2436; }
.boot-bar i { display: block; height: 100%; width: 0; background: #4fe3ff; box-shadow: 0 0 12px #4fe3ff; transition: width .2s; }

/* ---------- HUD atas ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter); color: var(--hud-text);
  background: var(--hud-bg); backdrop-filter: blur(var(--blur)) saturate(1.3); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border-bottom: 1px solid var(--hud-line);
}
body[data-theme="broadcast"] .top { background: #0b1220; }
.top .brand { color: var(--hud-text); }
.top .brand-mark { color: #fff; width: 30px; height: 30px; }
body[data-theme="blueprint"] .top .brand-mark { color: #0b1220; }
.sectors { display: flex; height: 100%; margin-left: 6px; }
.sectors button {
  position: relative; display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 12px; border: 0; background: none; cursor: pointer;
  color: var(--hud-dim); font: 600 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
}
.sectors button b { font: 500 11px/1 var(--f-mono); opacity: .7; }
.sectors button i { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--hud-line-2); }
.sectors button i::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }
.sectors button.on { color: var(--hud-text); }
.sectors button:hover { color: var(--hud-text); }
.status { display: flex; gap: 18px; margin-left: auto; padding-left: 16px; border-left: 1px solid var(--hud-line-2); }
.st { display: grid; gap: 3px; }
.st .k { display: flex; align-items: center; gap: 6px; font-size: 9.5px; }
.st .v.mono { font-size: 13px; }
.led { width: 6px; height: 6px; border-radius: 50%; background: #5b6780; }
.led.ok { background: #34d27b; box-shadow: 0 0 0 3px rgba(52, 210, 123, .2); animation: blink 1.2s infinite; }
.actions { display: flex; align-items: center; gap: 8px; }
.top .ca-chip, .top .icon-btn { background: transparent; border-color: var(--hud-line); color: var(--hud-text); }
.top .ca-chip .ca-k { background: var(--accent); color: var(--accent-ink); }
.top .icon-btn:hover { background: var(--hud-line-2); }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--hud-line); background: transparent; color: var(--hud-text); cursor: pointer; font: 600 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.menu-btn i { width: 14px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

.menu { position: fixed; inset: 60px 0 0 0; z-index: 29; display: grid; place-items: center; background: rgba(5, 9, 18, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.menu[hidden] { display: none; }
.menu-in { width: min(980px, 92vw); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: rgba(130, 196, 255, .18); border: 1px solid rgba(130, 196, 255, .18); }
.menu-in > a { display: grid; gap: 8px; padding: 26px; background: rgba(8, 13, 24, .9); color: #eaf2ff; text-decoration: none; transition: background .2s; }
.menu-in > a:hover { background: #12203a; }
.menu-in > a b { font: 500 12px/1 var(--f-mono); color: #4fe3ff; }
.menu-in > a strong { font: 700 30px/1 var(--f-display); letter-spacing: .02em; }
.menu-in > a span { color: #9fb2d3; font-size: 14px; }
.menu-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 18px 26px; background: rgba(8, 13, 24, .9); }
.menu-links a { color: #eaf2ff; font: 500 13px/1 var(--f-mono); text-decoration: none; }

/* ---------- callout, label, kursor bidik ---------- */
.callouts { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 8; pointer-events: none; overflow: visible; }
.callouts path { fill: none; stroke: var(--co, var(--accent)); stroke-width: 1.2; }
.callouts .dot { fill: var(--co, var(--accent)); }
.callouts .ring { fill: none; stroke: var(--co, var(--accent)); stroke-width: 1.2; opacity: .6; }
.callouts .ruler line { stroke: var(--accent); stroke-width: 1.6; }
.callouts .ruler text { fill: var(--hero-color); font: 600 12px var(--f-mono); paint-order: stroke; stroke: rgba(4, 9, 18, .55); stroke-width: 3px; }
body[data-theme="blueprint"] .callouts .ruler text { stroke: rgba(255, 255, 255, .8); }
.callouts .ruler .tick-lbl { fill: var(--hero-dim); font-size: 10.5px; font-weight: 500; }
.tags { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; min-width: 132px; padding: 7px 10px 8px; color: var(--hud-text); background: var(--hud-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--hud-line); border-left: 3px solid var(--co, var(--accent));
  transition: opacity .3s; will-change: transform;
}
.tag .t1 { display: flex; justify-content: space-between; gap: 10px; font: 600 10px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hud-dim); }
.tag .t2 { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; font: 600 14px/1 var(--f-mono); }
.tag .t2 em { font-style: normal; font-size: 12px; }
.tag.off { opacity: 0; }
.reticle { position: fixed; left: 0; top: 0; z-index: 12; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.reticle.on { opacity: 1; }
.reticle i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1.5px solid var(--accent); border-radius: 50%; transition: transform .18s, border-color .18s; }
.reticle i::before, .reticle i::after { content: ''; position: absolute; background: var(--accent); }
.reticle i::before { left: 50%; top: -7px; bottom: -7px; width: 1.5px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 100% 22%, 0 22%, 0 78%, 100% 78%, 100% 100%, 0 100%); }
.reticle i::after { top: 50%; left: -7px; right: -7px; height: 1.5px; transform: translateY(-50%); clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 78% 0, 100% 0, 100% 100%, 78% 100%); }
.reticle.lock i { transform: scale(.7) rotate(45deg); border-color: var(--co, var(--accent)); }
.reticle span { position: absolute; left: 26px; top: -9px; white-space: nowrap; padding: 4px 7px; font: 600 11px/1 var(--f-mono); color: var(--hud-text); background: var(--hud-bg); border: 1px solid var(--hud-line); opacity: 0; transition: opacity .15s; }
.reticle.lock span { opacity: 1; }
body.aiming #stage { cursor: none; }

/* ---------- babak ---------- */
#chapters { position: relative; z-index: 10; pointer-events: none; }
.ch { position: relative; height: calc(var(--len, 1) * 100vh); }
.pin { position: sticky; top: 0; height: 100vh; padding: 92px var(--gutter) 96px; }
.pin > * { pointer-events: auto; }
.ch .pin > * { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.ch.on .pin > * { opacity: 1; transform: none; }

/* 01 judul */
.hero-copy { position: absolute; left: var(--gutter); bottom: 96px; width: min(560px, 46vw); color: var(--hero-color); }
.eyebrow { color: var(--hero-dim); }
.hero-h { margin: 14px 0 14px; font: var(--display-w) clamp(38px, 4.6vw, 70px)/.98 var(--display); letter-spacing: -.01em; text-transform: var(--display-case); }
.hero-h em { font-style: normal; color: var(--accent); }
body[data-theme="cockpit"] .hero-h em { color: #8ff0ff; }
.lede { margin: 0; max-width: 500px; font-size: 16px; color: var(--hero-dim); }
.lede b { color: var(--hero-color); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-copy .ca-card { margin-top: 16px; }
.hero-spec { position: absolute; right: calc(var(--gutter) + 8px); bottom: 96px; width: 230px; padding: 12px 14px; display: grid; gap: 8px; }
.hs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--hud-line-2); }
.hs-row:last-child { border: 0; padding: 0; }
.hs-row .v { font-size: 14px; }
.hs-row .v.mono { font-size: 13px; }
.scroll-cue { position: absolute; left: calc(50% - 64px); bottom: 78px; display: flex; align-items: center; gap: 10px; font: 600 10px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--hero-dim); }
.scroll-cue i { width: 34px; height: 1.5px; background: var(--hud-line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--accent); animation: cue2 1.6s infinite; }
@keyframes cue2 { from { left: -40%; } to { left: 100%; } }

/* teks blok umum */
.block-copy { position: absolute; left: var(--gutter); top: 96px; width: min(480px, 40vw); color: var(--hero-color); }
.block-copy h2, .launch h2, .lower-third h2 { margin: 0 0 12px; font: var(--display-w) clamp(30px, 3.2vw, 48px)/1.02 var(--display); letter-spacing: -.005em; text-transform: var(--display-case); }
.block-copy p { margin: 0; color: var(--hero-dim); font-size: 15.5px; }

/* 02 hold */
.hold-console { position: absolute; left: var(--gutter); bottom: 96px; width: 420px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: center; }
.hold-read { display: grid; gap: 10px; }
.hold-read > div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hud-line-2); padding-bottom: 8px; }
.hold-read > div:last-child { border: 0; padding: 0; }
.hold-btn { position: relative; width: 118px; height: 118px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--hud-text); touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold-btn .trk { fill: var(--hud-bg-2); stroke: var(--hud-line); stroke-width: 6; }
.hold-btn .arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; stroke-linecap: butt; filter: drop-shadow(0 0 6px var(--accent)); }
.hold-txt { position: relative; font: 700 15px/1.1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.hold-btn.holding .hold-txt { color: var(--accent); }
.hold-console .fine { grid-column: 1 / -1; margin: 0; }

/* 03 bagian */
.parts-index { position: absolute; left: var(--gutter); top: 92px; width: 380px; padding: 10px 0 0; }
.pi-head, .parts-index li { display: grid; grid-template-columns: 34px 1fr 64px 70px; gap: 8px; align-items: center; padding: 0 14px; }
.pi-head { padding-bottom: 8px; border-bottom: 1px solid var(--hud-line-2); font: 600 9.5px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hud-dim); }
.pi-head .r, .parts-index .r { text-align: right; }
.parts-index ol { list-style: none; margin: 0; padding: 0; }
.parts-index li { height: 42px; border-bottom: 1px solid var(--hud-line-2); cursor: pointer; position: relative; transition: background .2s; }
.parts-index li:hover { background: var(--hud-line-2); }
.parts-index li.on { background: var(--hud-bg-2); }
.parts-index li.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--co); }
.parts-index .n { font: 500 11px/1 var(--f-mono); color: var(--hud-dim); }
.parts-index .pp { display: grid; gap: 3px; min-width: 0; }
.parts-index .pp strong { font: 600 13px/1 var(--f-display); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parts-index .pp span { font: 500 11px/1 var(--f-mono); color: var(--co); }
.parts-index .c24 { font: 500 12px/1 var(--f-mono); text-align: right; }
.pw { display: grid; gap: 4px; justify-items: end; font: 500 11px/1 var(--f-mono); }
.pw u { display: block; width: 100%; height: 3px; background: var(--hud-line-2); position: relative; text-decoration: none; }
.pw u::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--co); }
.pi-foot { padding: 9px 14px; font-size: 10.5px; color: var(--hud-dim); }
.spec { position: absolute; right: calc(var(--gutter) + 8px); bottom: 96px; width: 330px; padding: 16px 16px 14px; border-left: 3px solid var(--co, var(--accent)); }
.spec-top { display: flex; justify-content: space-between; align-items: center; }
.spec-slot { font-size: 11px; color: var(--hud-dim); }
.spec-tick { font: 700 13px/1 var(--f-mono); padding: 5px 8px; background: var(--co); color: #fff; }
.spec h2 { margin: 12px 0 2px; font: var(--display-w) 30px/1 var(--display); text-transform: var(--display-case); }
.spec-co { margin: 0 0 12px; color: var(--hud-dim); font-size: 13.5px; }
.spec-big { display: flex; align-items: baseline; gap: 12px; }
.spec-big span:first-child { font-size: 26px; font-weight: 500; }
.spec-big span:last-child { font-size: 15px; }
.gauge { margin: 12px 0 10px; }
.g-track { position: relative; height: 6px; background: var(--hud-line-2); }
.g-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--hud-dim); }
.g-val { position: absolute; top: 0; bottom: 0; background: var(--co); transition: left .3s, width .3s; }
.g-scale { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--hud-dim); }
.spec-role { margin: 0; font-size: 14px; }
.spec-addr { display: inline-block; margin-top: 10px; font-size: 11px; color: var(--hud-dim); text-decoration: none; border-bottom: 1px dotted var(--hud-dim); }

/* 04 alur */
.pipeline { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 8px); bottom: 96px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pipeline li { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 16px 18px; border-right: 1px solid var(--hud-line-2); }
.pipeline li:last-child { border: 0; }
.pipeline li::after { content: ''; position: absolute; right: -6px; top: 22px; width: 11px; height: 11px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); background: var(--hud-bg); z-index: 2; }
.pipeline li:last-child::after { display: none; }
.pipeline b { font-size: 11px; color: var(--accent); }
.pipeline strong { font: var(--display-w) 20px/1 var(--display); text-transform: var(--display-case); letter-spacing: .02em; }
.pipeline span { font-size: 13.5px; color: var(--hud-dim); line-height: 1.45; }
.pipeline em { font-style: normal; font-size: 13px; color: var(--hud-text); padding-top: 8px; border-top: 1px dashed var(--hud-line); }

/* 05 duel */
.scoreboard { position: absolute; left: 0; right: 0; margin: 0 auto; top: 84px; width: min(760px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; padding: 0; }
.sb-side { padding: 12px 16px; display: grid; gap: 4px; }
.sb-side.r { text-align: right; }
.sb-name { font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.sb-sub { font: 500 11px/1 var(--f-mono); color: var(--hud-dim); }
.sb-side .hp { height: 8px; margin-top: 6px; background: var(--hud-line-2); position: relative; overflow: hidden; }
.sb-side .hp i { position: absolute; top: 0; bottom: 0; width: 100%; transition: width .2s; }
.sb-side.l .hp i { left: 0; background: linear-gradient(90deg, #2a5cf0, #4fe3ff); }
.sb-side.r .hp i { right: 0; background: linear-gradient(270deg, #e63b2e, #ff9a6b); }
.sb-mid { display: grid; place-items: center; align-content: center; gap: 4px; padding: 0 18px; background: var(--hud-bg-2); border-left: 1px solid var(--hud-line-2); border-right: 1px solid var(--hud-line-2); }
.sb-vs { font: 700 24px/1 var(--f-display); color: var(--accent); }
.sb-time { font-size: 10px; color: var(--hud-dim); }
.lower-third { position: absolute; left: var(--gutter); bottom: 96px; width: min(470px, 44vw); padding: 16px 18px; }
.lower-third p.kicker { margin-bottom: 8px; }
.lower-third h2 { font-size: clamp(24px, 2.4vw, 34px); }
.duel-log { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--hud-line-2); font-size: 12.5px; color: var(--hud-dim); min-height: 34px; }
.duel-stats { position: absolute; right: calc(var(--gutter) + 8px); bottom: 96px; width: 300px; padding: 12px 14px; display: grid; gap: 7px; }
.duel-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; font: 500 11.5px/1 var(--f-mono); }
.duel-row .bar { position: relative; height: 8px; background: var(--hud-line-2); }
.duel-row .bar i { position: absolute; top: 0; bottom: 0; }
.duel-row .bar .l { right: 50%; background: #2a5cf0; }
.duel-row .bar .r { left: 50%; background: #e63b2e; }
.duel-row .bar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--hud-text); }
.duel-row .rv { text-align: right; }
.duel-row .lbl { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 600 9.5px/1 var(--f-display); letter-spacing: .14em; color: var(--hud-dim); margin-bottom: -2px; }

/* 06 penutup */
.launch { position: absolute; right: calc(var(--gutter) + 8px); bottom: 96px; width: min(500px, 92vw); padding: 22px 22px 20px; }
.launch h2 { font-size: clamp(26px, 2.6vw, 38px); }
.launch .official a { color: var(--hud-text); } .launch .official .k { color: var(--hud-dim); }

.launch .ca-card { margin: 16px 0 0; }

.launch .official { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 13px/1 var(--f-mono); }
.launch .official a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.launch .official svg { width: 14px; height: 14px; }


/* ---------- panel instrumen bawah ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 64px; display: grid; grid-template-columns: repeat(8, 1fr); color: var(--hud-text); background: var(--hud-bg); backdrop-filter: blur(var(--blur)) saturate(1.3); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3); border-top: 1px solid var(--hud-line); }
body[data-theme="broadcast"] .dock { background: #0b1220; }
.cell { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 8px; align-content: center; padding: 0 14px; border-right: 1px solid var(--hud-line-2); cursor: pointer; text-align: left; background: none; border-top: 0; border-bottom: 0; border-left: 0; color: inherit; font: inherit; }
.cell:last-child { border-right: 0; }
.cell::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--co); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cell.on::before, .cell:hover::before { transform: scaleX(1); }
.cell .ct { font: 700 13px/1 var(--f-mono); }
.cell .cp { font: 600 9.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--hud-dim); }
.cell .cv { font: 500 13px/1 var(--f-mono); grid-column: 1; }
.cell .cc { font: 500 12px/1 var(--f-mono); text-align: right; }
.cell svg.spark { position: absolute; right: 12px; top: 10px; width: 44px; height: 14px; opacity: .8; }

.foot { position: relative; z-index: 11; padding: 22px var(--gutter) 84px; background: #070b14; color: #8a97b0; font-size: 12px; }

/* ---------- layar sedang ---------- */
@media (max-width: 1520px) {
  .hide-md { display: none; }
  .sectors button { padding: 0 9px; }
  .top { gap: 14px; }
}
@media (max-width: 1320px) {
  .sectors button span { display: none; }
}
@media (max-width: 1180px) {
  .dock { grid-template-columns: repeat(8, minmax(130px, 1fr)); overflow-x: auto; }
}
/* ---------- HP ---------- */
@media (max-width: 820px) {
  .top { height: 56px; gap: 10px; }
  body[data-theme="cockpit"] .veil { background: linear-gradient(0deg, rgba(4, 9, 18, .86) 0%, rgba(4, 9, 18, .62) 42%, rgba(4, 9, 18, 0) 64%); }
  .sectors, .status, .menu-btn span { display: none; }
  .actions { margin-left: auto; gap: 6px; }
  .top .brand-word { font-size: 14px; letter-spacing: .1em; }
  .top .icon-btn[aria-label="Telegram"] { display: none; }
  .menu-btn { padding: 0 10px; height: 34px; }
  .menu { inset: 56px 0 0 0; }
  .pin { padding: 70px 16px 84px; }
  .hero-copy { left: 16px; right: 16px; width: auto; bottom: 80px; }
  .hero-h { font-size: 36px; }
  .lede { font-size: 14.5px; }
  .hero-spec, .scroll-cue { display: none; }
  .block-copy { left: 16px; right: 16px; width: auto; top: auto; bottom: 230px; }
  .ch-hold .block-copy { bottom: 262px; }
  .ch-hold .block-copy p { display: none; }
  .block-copy h2, .launch h2 { font-size: 27px; }
  .block-copy p { font-size: 14px; }
  .hold-console { left: 16px; right: 16px; width: auto; bottom: 80px; grid-template-columns: 1fr 96px; }
  .hold-btn { width: 96px; height: 96px; }
  .parts-index { display: none; }
  .spec { left: 16px; right: 16px; width: auto; bottom: 80px; }
  .spec h2 { font-size: 24px; }
  .ch-flow .block-copy { bottom: auto; top: 72px; }
  .pipeline { left: 16px; right: 16px; bottom: 80px; grid-template-columns: 1fr 1fr; }
  .pipeline li { padding: 10px 12px; border-bottom: 1px solid var(--hud-line-2); }
  .pipeline span { font-size: 12px; }
  .pipeline li::after { display: none; }
  .scoreboard { top: 66px; }
  .sb-name { font-size: 14px; } .sb-sub { display: none; }
  .lower-third { left: 16px; right: 16px; width: auto; bottom: 80px; }
  .duel-stats { display: none; }
  .launch { left: 16px; right: 16px; width: auto; bottom: 80px; }
  .dock { height: 56px; grid-template-columns: repeat(8, 118px); overflow-x: auto; }
  .cell svg.spark { display: none; }
  .foot { padding-bottom: 76px; }
  .tags .tag { min-width: 110px; }
}

/* keterbacaan teks langsung di atas lukisan */
body[data-theme="cockpit"] .hero-copy, body[data-theme="cockpit"] .block-copy, body[data-theme="broadcast"] .hero-copy, body[data-theme="broadcast"] .block-copy { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(4,9,18,.45); }
.launch .ca-card { max-width: 100%; }

html, body { overflow-x: clip; }

.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; filter: grayscale(.4); }

/* mode render og.jpg: hanya adegan judul + wordmark + tagline */
body.og .top, body.og .dock, body.og .cta-row, body.og .ca-card, body.og .lede, body.og .hero-spec, body.og .foot, body.og .callouts, body.og .tags, body.og .reticle, body.og .boot { display: none !important; }
body.og .hero-copy { bottom: 64px; width: 560px; }
body.og .hero-h { font-size: 56px; }
body.og .eyebrow { font-size: 13px; }

/* mode film: tanpa UI situs; teks film satu baris, satu huruf, putih polos */
body.film .top, body.film .dock, body.film .boot, body.film .foot, body.film .reticle, body.film .ch .pin > *:not(.scoreboard) { display: none !important; }
body.film .ch.on .pin { position: fixed; inset: 0; z-index: 30; }
body.film .ch.on .pin > .scoreboard { opacity: 1; transform: none; top: 40px; }
body.film::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 42vh; z-index: 39; pointer-events: none; background: linear-gradient(0deg, rgba(4, 9, 18, .72), rgba(4, 9, 18, 0)); }
#filmText { position: fixed; left: 0; right: 0; bottom: 9vh; z-index: 40; text-align: center; color: #fff; font: 400 34px/1.3 'Geist', sans-serif; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,.55); pointer-events: none; transition: none; }
#filmText small { display: block; margin-top: 12px; font-size: 17px; letter-spacing: .32em; opacity: .85; }
#filmText .end { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; }
#filmText .end svg { width: 120px; height: 120px; color: #fff; }
#filmText .end b { font: 700 64px/1 'Chakra Petch', sans-serif; letter-spacing: .2em; }
