/* Robot Hangar — site UI. Tokens follow CONTRACT.md §9: an aerospace assembly hall at night. */
:root {
  --bg: #0b0d10; --panel: rgba(17, 19, 23, .84); --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .18);
  --ink: #eceff3; --ink-2: #c9ced6; --muted: #8b93a1; --accent: #ff6a00; --ok: #3ddc84; --info: #28c8ff; --warn: #ffc233; --bad: #ff5d6c;
  --robot: #ff6a00;                               /* the selected robot's signature colour (set from JS) */
  --f-head: "Bahnschrift", "DIN Alternate", "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-mono-s: Consolas, ui-monospace, "Cascadia Mono", monospace;      /* same family list, Consolas first: clearer below 12 px */
  --bar-h: 56px; --dock-h: 100px; --panel-w: 420px; --rail-w: 236px; --gap: 12px;
  --hazard: repeating-linear-gradient(-45deg, var(--accent) 0 6px, #14161a 6px 12px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 106, 0, .35); }

#stage { position: fixed; inset: 0; z-index: 0; background: #0d0f12; }
#scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: background-color .25s;
  background: radial-gradient(ellipse 75% 85% at 62% 46%, transparent 52%, rgba(8, 9, 11, .5) 100%), linear-gradient(180deg, rgba(11, 13, 16, .5) 0, transparent 17%), linear-gradient(0deg, rgba(11, 13, 16, .8) 0, transparent 29%); }
/* faint blueprint grid at the edges of the frame, never over the robot */
#scrim::after { content: ""; position: absolute; inset: 0; transition: opacity .3s;
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 -8px / 64px 64px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) -8px 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 66% 46%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 60% 70% at 66% 46%, transparent 55%, #000 100%); }
#scrim::before { content: ""; position: absolute; inset: 0; transition: opacity .3s; background: linear-gradient(90deg, rgba(11, 13, 16, .95) 0, rgba(11, 13, 16, .86) 22%, rgba(11, 13, 16, .58) 38%, rgba(11, 13, 16, .2) 52%, transparent 62%); }
#ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#err { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99; color: #ff6b6b; font: 12px/1.4 var(--f-mono); white-space: pre-wrap; pointer-events: none; text-shadow: 0 1px 2px #000; }

/* ───────── primitives ───────── */
.glass { background: var(--panel); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04); }
.lbl { font: 600 11px/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lbl.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.stencil { display: inline-block; line-height: 1; -webkit-mask-image: linear-gradient(180deg, #000 0 35%, transparent 35% 43%, #000 43%); mask-image: linear-gradient(180deg, #000 0 35%, transparent 35% 43%, #000 43%); }
.ico { display: inline-flex; flex: none; }
.ico svg, .btn > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ldot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
kbd { display: inline-grid; place-items: center; min-width: 17px; height: 16px; padding: 0 3px; border: 1px solid var(--line-2); border-radius: 2px; font: 10px/1 var(--f-mono-s); letter-spacing: 0; color: var(--ink-2); background: rgba(255, 255, 255, .04); }
.live-dot { position: relative; flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--info); }
.live-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--info); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(3.2); opacity: 0; } }

/* Controls are machined plates: two clipped layers (edge + face) with chamfered corners, a light sweep on hover, a sunk pressed state.
   clip-path would cut off an outline, so the focus ring is the edge layer turning white plus a glow on the (unclipped) button itself. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 1px 15px 0; white-space: nowrap;
  font: 600 12px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  --b: rgba(255, 255, 255, .24); --f: #171a1f; --sheen: rgba(255, 255, 255, .14); --cut: 7px;
  transition: color .16s, transform .12s var(--ease), opacity .16s, filter .2s; }
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.btn::before { inset: 0; background: var(--b); transition: background-color .16s; }
.btn::after { inset: 1px; background: linear-gradient(105deg, transparent 38%, var(--sheen) 50%, transparent 62%) 140% 0 / 260% 100% no-repeat var(--f); transition: background-position .55s var(--ease), background-color .16s; }
.btn:hover { --b: rgba(255, 255, 255, .55); --f: #20242b; }
.btn:hover::after { background-position: -40% 0; }
.btn:active { transform: translateY(1px); --f: #0f1114; }
.btn:focus-visible { outline: none; --b: #fff; filter: drop-shadow(0 0 4px rgba(255, 106, 0, .95)); }
.btn:focus-visible::after { inset: 2px; }
.btn.sm { height: 30px; padding: 1px 11px 0; font-size: 11px; --cut: 6px; }
.btn.lg { height: 46px; padding: 1px 22px 0; font-size: 14px; letter-spacing: .12em; --cut: 10px; }
.btn.sq { width: 34px; padding: 0; } .btn.sq.sm { width: 30px; }
.btn.icon { --b: transparent; --f: transparent; --sheen: transparent; color: var(--ink-2); }
.btn.icon:hover { --b: var(--line-2); --f: rgba(255, 255, 255, .07); color: var(--ink); }
.btn.primary { --b: #ffc79b; --f: var(--accent); --sheen: rgba(255, 255, 255, .45); color: #140900; }
.btn.primary:hover { --b: #fff; --f: #ff7c1f; }
.btn.accent { --b: var(--accent); --f: #2b1505; --sheen: rgba(255, 150, 70, .4); color: #ffb37a; }
.btn.accent:hover { --b: #ff9a4d; --f: #3d1d05; color: #ffe2c8; }
.btn.live { --b: var(--info); --f: #07202b; --sheen: rgba(40, 200, 255, .35); color: #a9eaff; }
.btn.live:hover { --b: #8be3ff; --f: #0a2e3d; color: #e8faff; }
.btn.soon, .btn.soon:hover { --f: #14161a; --sheen: transparent; color: var(--muted); cursor: default; transform: none; }
.btn.soon::before { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .32) 0 4px, rgba(255, 255, 255, .07) 4px 8px); }
.btn.soon .ico, .btn.soon > svg { color: var(--warn); }
.soon .live-dot { background: var(--warn); } .soon .live-dot::after { display: none; }
.btn[aria-disabled="true"]:not(.soon) { opacity: .45; cursor: default; }

/* view presets: slanted cells */
.seg { display: flex; gap: 2px; padding: 0 6px; }
.seg button { position: relative; isolation: isolate; height: 32px; padding: 1px 11px 0; font: 600 11.5px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: #a3abb8; transition: color .16s; }
.seg button::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-16deg); background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .16s, box-shadow .16s; }
.seg button:hover { color: var(--ink); }
.seg button:hover::before { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button[aria-pressed="true"] { color: #0b0d10; }
.seg button[aria-pressed="true"]::before { background: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.seg button:focus-visible { outline: none; }
.seg button:focus-visible::before { box-shadow: inset 0 0 0 2px var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 2px 9px 1px; border: 1px solid var(--line-2); border-radius: 3px; font: 600 11px/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.chip.link { min-height: 30px; transition: background-color .16s, border-color .16s; }
.chip.link.ghost { margin-left: auto; min-height: 24px; border-style: dashed; color: var(--muted); }
.chip.link:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: var(--ink); }

/* ───────── top bar ───────── */
#bar { position: absolute; left: 0; right: 0; top: 0; height: var(--bar-h); display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; pointer-events: auto;
  background: linear-gradient(180deg, rgba(11, 13, 16, .95), rgba(11, 13, 16, .78)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 5px; pointer-events: none; opacity: .8; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .26) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); }
.brand { display: flex; align-items: center; gap: 11px; height: 40px; padding-right: 6px; flex: none; }
.brand-mark { width: 24px; height: 24px; background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #14161a 4px 8px); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-word { font: 700 19px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.bar-robot { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line); height: 28px; line-height: 28px; white-space: nowrap; }
.bar-rule { align-self: center; width: 3px; height: 16px; background: var(--robot); flex: none; transform: skewX(-16deg); }
.bar-robot b { font: 600 15px/28px var(--f-head); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.bar-robot span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.bar-space { flex: 1; }
.bar-div { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
#btnLofi { padding: 0 10px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { display: block; width: 2px; height: 3px; background: currentColor; opacity: .6; }
.eq i:nth-child(2) { height: 7px; } .eq i:nth-child(3) { height: 5px; } .eq i:nth-child(4) { height: 9px; }
#btnLofi[aria-pressed="true"] { color: var(--accent); --b: rgba(255, 106, 0, .5); }
#btnLofi[aria-pressed="true"] .eq i { opacity: 1; animation: eq .9s ease-in-out infinite; }
#btnLofi[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; } #btnLofi[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.55s; } #btnLofi[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
#btnFull .fs-out, #btnFull[aria-pressed="true"] .fs-in { display: none; }
#btnFull[aria-pressed="true"] .fs-out { display: inline; }
#bar .btn > svg { transition: transform .25s var(--ease); }
#btnBuild:not(.soon):hover > svg { transform: rotate(-24deg); }
#btnCompare:hover > svg { transform: scaleY(1.2); }

/* ───────── hero: title screen ───────── */
#hero { position: absolute; left: 48px; bottom: calc(var(--dock-h) + var(--gap) + 46px); width: min(690px, 48vw); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
.hero-head { position: relative; }
.hero-ghost { position: absolute; z-index: -1; right: -6px; top: -118px; font: 700 clamp(220px, 23vw, 340px)/.8 var(--f-head); font-stretch: 75%; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); user-select: none; white-space: nowrap;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 78%); mask-image: linear-gradient(180deg, #000 20%, transparent 78%); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 12px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hero-kicker b { font-weight: 600; color: #140900; background: var(--accent); padding: 6px 14px 4px 9px; letter-spacing: .14em; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.status { display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 1px 10px 0 8px; background: rgba(11, 13, 16, .72); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 10.5px; letter-spacing: .14em; color: var(--ink); --sc: var(--info); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 9px 1px var(--sc); animation: led 2.6s ease-in-out infinite; }
.status.ok { --sc: var(--ok); } .status.warn { --sc: var(--warn); } .status.off { --sc: #6b7380; color: var(--ink-2); }
.status.off i { box-shadow: none; animation: none; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hero-name { margin-top: 16px; font: 700 clamp(60px, min(7.6vw, 14vh), 136px)/.86 var(--f-head); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.hero-name.long { font-size: clamp(52px, min(5.9vw, 11.5vh), 106px); }
.hero-name .w { display: inline-block; white-space: nowrap; }
.hero-name .ch { display: inline-block; }
.hero-strip { display: flex; align-items: center; width: fit-content; max-width: 100%; height: 30px; margin-top: 18px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(11, 13, 16, .6), rgba(11, 13, 16, .15));
  font: 600 13px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hero-rule { flex: none; align-self: stretch; width: 46px; margin-right: 14px; background: var(--robot); transform-origin: left; clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%); }
.hero-strip span { padding: 1px 14px 0 0; }
.hero-strip span + span::before { content: "//"; margin-right: 14px; letter-spacing: 0; color: var(--accent); }
.hero-strip::after { content: ""; flex: none; width: 30px; height: 10px; margin-right: 10px; opacity: .7; background: repeating-linear-gradient(-60deg, var(--muted) 0 1.5px, transparent 1.5px 6px); }
.hero-tag { margin-top: 12px; max-width: 31em; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero-load { display: flex; align-items: center; gap: 8px; margin-top: 18px; font: 12px/1 var(--f-mono-s); letter-spacing: .1em; text-transform: uppercase; color: #a3abb8; }
.hero-load i { width: 8px; height: 13px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* spec tiles: instrument read-outs */
.hero-nums { display: flex; gap: 1px; width: fit-content; max-width: 100%; margin-top: 22px; }
.num { position: relative; flex: 0 1 auto; min-width: 122px; padding: 11px 18px 12px 14px; background: linear-gradient(180deg, rgba(22, 25, 30, .82), rgba(13, 15, 18, .62)); }
.num::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.num-l { font: 600 10px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: #a3abb8; white-space: nowrap; }
.num-v { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; font: 500 30px/1 var(--f-mono); letter-spacing: -.03em; white-space: nowrap; }
.num-n { font-weight: 500; }
.num-v small { font: 12.5px/1 var(--f-mono-s); letter-spacing: 0; color: var(--ink-2); }
.num-g { position: relative; height: 8px; margin-top: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat; }
.num-g i { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .5)); }

/* primary actions: 01 Build · 02 Test drive · 03 Explore */
.hero-cta { display: flex; gap: 12px; width: max-content; margin-top: 24px; pointer-events: auto; }
.act { position: relative; isolation: isolate; display: inline-flex; align-items: stretch; height: 62px; min-width: 196px; text-align: left; color: var(--ink);
  --cut: 15px; --b: rgba(255, 255, 255, .36); --f: rgba(15, 17, 21, .62); --idx: #a3abb8; --wipe: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); transition: transform .16s var(--ease), filter .2s, color .16s; }
.act::before, .act::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.act::before { inset: 0; background: var(--b); transition: background-color .16s; }
.act::after { inset: 1.5px; background: var(--wipe) 140% 0 / 260% 100% no-repeat, linear-gradient(180deg, rgba(255, 255, 255, var(--hl, .07)), transparent 46%) 0 0 / 100% 100% no-repeat, var(--f); transition: background-position .6s var(--ease), background-color .16s; }
.act-idx { position: relative; flex: none; display: flex; flex-direction: column; justify-content: space-between; width: 42px; padding: 11px 0 12px 12px; font: 700 12.5px/1 var(--f-mono-s); color: var(--idx); }
.act-idx::before { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 1px; background: currentColor; opacity: .3; }
.act-idx::after { content: ""; width: 13px; height: 9px; opacity: .85; background: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 4px); }
.act-txt { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 2px 4px 0 13px; }
.act .act-label { font: 700 18px/1 var(--f-head); font-stretch: 90%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.act-sub { display: flex; align-items: center; gap: 7px; font: 600 9.5px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: .74; }
.act-ico { flex: none; display: grid; place-items: center; width: 48px; margin-left: auto; transition: transform .28s var(--ease); }
.act-ico svg { width: 20px; height: 20px; stroke-width: 1.6; }
.act-edge { position: absolute; left: 15px; right: 1.5px; bottom: 1.5px; height: 4px; background: repeating-linear-gradient(-45deg, rgba(20, 9, 0, .62) 0 4px, transparent 4px 8px); }

.act-build { --b: #ffd4b0; --f: var(--accent); --hl: .26; --idx: rgba(20, 9, 0, .88); color: #150a00; --wipe: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .55) 50%, transparent 64%); }
.act-drive { --b: var(--info); --f: rgba(6, 24, 33, .9); --idx: var(--info); color: #e6f9ff; --wipe: linear-gradient(90deg, rgba(40, 200, 255, .3) 0 50%, transparent 50%); }
.act-drive::after { background-position: 100% 0, 0 0; background-size: 200% 100%, 100% 100%; transition: background-position .38s var(--ease), background-color .16s; }
.act-drive .act-sub { color: #8fe0ff; opacity: 1; }
.act-explore { min-width: 178px; }
.act-build .act-sub { color: rgba(20, 9, 0, .82); opacity: 1; }

.act:not(.soon):is(:hover, .is-hover) { transform: translateY(-2px); }
.act:not(.soon):is(:hover, .is-hover)::after { background-position: -40% 0, 0 0; }
.act-build:not(.soon):is(:hover, .is-hover) { --b: #fff; --f: #ff7c1f; filter: drop-shadow(0 12px 22px rgba(255, 106, 0, .5)); }
.act-build:not(.soon):is(:hover, .is-hover) .act-ico { transform: rotate(-26deg) scale(1.12); }
.act-drive:not(.soon):is(:hover, .is-hover) { --b: #9ee8ff; filter: drop-shadow(0 12px 22px rgba(40, 200, 255, .38)); }
.act-drive:not(.soon):is(:hover, .is-hover)::after { background-position: 0 0, 0 0; }
.act-drive:not(.soon):is(:hover, .is-hover) .act-ico { animation: nudge .7s var(--ease) infinite; }
.act-explore:is(:hover, .is-hover) { --b: #fff; --f: rgba(34, 38, 45, .82); }
.act-explore:is(:hover, .is-hover) .act-ico { transform: translateX(6px); }
@keyframes nudge { 0% { transform: translateX(-4px); opacity: .4; } 60% { transform: translateX(5px); opacity: 1; } 100% { transform: translateX(5px); opacity: 0; } }
.act:not(.soon):is(:active, .is-active) { transform: translateY(2px); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.act-build:not(.soon):is(:active, .is-active) { --f: #e25e00; }
.act:is(:focus-visible, .is-focus) { outline: none; --b: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .6)) drop-shadow(0 0 14px rgba(255, 106, 0, .85)); }
.act:is(:focus-visible, .is-focus)::after { inset: 3px; }
.act-drive:is(:focus-visible, .is-focus) { filter: drop-shadow(0 0 5px rgba(255, 255, 255, .6)) drop-shadow(0 0 14px rgba(40, 200, 255, .85)); }
.act.soon { --f: rgba(14, 16, 19, .72); --idx: var(--muted); --wipe: none; color: var(--muted); cursor: default; filter: none; }
.act.soon::before { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .34) 0 4px, rgba(255, 255, 255, .07) 4px 8px); }
.act.soon .act-sub { color: var(--warn); opacity: 1; }
.act.soon .act-edge { display: none; }

.hero-links { display: flex; align-items: center; gap: 2px; width: fit-content; margin: 14px 0 0; pointer-events: auto; }
.hero-links::before { content: "Briefing"; margin-right: 8px; padding: 4px 7px 2px; font: 600 9.5px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: #0b0d10; background: #a3abb8; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.hero-links button { position: relative; height: 32px; padding: 1px 9px 0; font: 600 11.5px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: #b4bbc6; transition: color .16s; }
.hero-links button::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.hero-links button:hover { color: #fff; } .hero-links button:hover::after { transform: scaleX(1); }

/* entrance choreography (class .enter on #hero; .fast = robot change) */
.hero-scan { position: absolute; left: -48px; right: -40px; top: -20px; bottom: -10px; overflow: hidden; pointer-events: none; opacity: 0; }
.hero-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 110px; transform: translateY(-110%); background: linear-gradient(180deg, transparent, rgba(255, 106, 0, .09) 60%, rgba(255, 170, 100, .5) 97%, #fff 99%, transparent); }
#hero.enter .hero-scan { animation: scanFade 1.3s linear calc(.1s + var(--seek, 0s)) both; }
#hero.enter .hero-scan::before { animation: scan 1.3s cubic-bezier(.35, .1, .3, 1) calc(.1s + var(--seek, 0s)) both; }
#hero.enter .ch { animation: chIn .62s var(--ease) both; animation-delay: calc(var(--i) * 38ms + 60ms + var(--seek, 0s)); }
#hero.enter .rise { animation: heroRise .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 85ms + 140ms + var(--seek, 0s)); }
#hero.enter .hero-ghost { animation: ghostIn 1.4s var(--ease) var(--seek, 0s) both; }
#hero.enter .hero-rule { animation: draw .7s var(--ease) calc(.25s + var(--seek, 0s)) both; }
#hero.enter .num-g i { animation: draw 1s var(--ease) both; animation-delay: calc(.55s + var(--i, 0) * .11s + var(--seek, 0s)); }
#hero.enter .status { animation: heroRise .5s var(--ease) var(--seek, 0s) both; }
#hero.enter.fast .ch { animation-duration: .4s; animation-delay: calc(var(--i) * 20ms); }
#hero.enter.fast .rise { animation-duration: .4s; animation-delay: calc(var(--n, 0) * 45ms + 40ms); }
#hero.enter.fast .hero-scan, #hero.enter.fast .hero-scan::before { animation-duration: .8s; animation-delay: 0s; }
#hero.enter.fast .hero-ghost { animation-duration: .7s; }
#hero.enter.fast .num-g i { animation-duration: .6s; animation-delay: calc(.2s + var(--i, 0) * .06s); }
@keyframes chIn { 0% { opacity: 0; transform: translateY(.42em) skewX(-10deg); clip-path: inset(100% 0 0 0); color: var(--accent); } 55% { opacity: 1; transform: translateY(-.03em); clip-path: inset(0); color: var(--accent); } 72% { transform: translateX(.035em); } 100% { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ghostIn { from { opacity: 0; transform: translateX(50px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes scan { to { transform: translateY(560%); } }
@keyframes scanFade { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
body.freeze *, body.freeze *::before, body.freeze *::after { animation-play-state: paused !important; }

.notice { position: relative; display: flex; gap: 14px; margin-top: 22px; padding: 20px 18px 16px; max-width: 520px; pointer-events: auto; background: var(--panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.notice::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hazard); }
.notice-ico { color: var(--warn); margin-top: 1px; } .notice-ico svg { width: 26px; height: 26px; }
.notice b { display: block; font: 600 16px/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.notice p { margin-top: 6px; color: var(--ink-2); }
.notice-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ───────── rail: exploded view + layers ───────── */
#rail { position: absolute; left: var(--gap); top: calc(var(--bar-h) + var(--gap)); width: var(--rail-w); max-height: calc(100% - var(--bar-h) - var(--dock-h) - var(--gap) * 3); overflow-y: auto; scrollbar-width: none; pointer-events: auto; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.rail-sec { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.rail-explode output { color: var(--ink); font-size: 12px; letter-spacing: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 4px 0 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) calc(var(--v, 0) * 100%), rgba(255, 255, 255, .16) 0); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; margin-top: -8px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 3px rgba(11, 13, 16, .7); transition: transform .12s; }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 20px; border: 0; border-radius: 2px; background: var(--ink); }
.ticks { display: flex; justify-content: space-between; font: 600 9.5px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.layers { margin: 8px -6px 0; }
.layer { display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 6px; border-radius: 4px; transition: background-color .16s, color .16s; }
.layer:hover { background: rgba(255, 255, 255, .06); }
.layer-n { flex: 1; font: 600 12.5px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding-top: 1px; }
.layer-c { font-size: 11px; color: var(--muted); }
.sw { position: relative; flex: none; width: 26px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .26); transition: background-color .16s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 14px; width: 10px; height: 10px; border-radius: 1px; background: var(--ink); transition: left .16s var(--ease), background-color .16s; }
.layer[aria-checked="false"] { color: var(--muted); }
.layer[aria-checked="false"] .ldot { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.layer[aria-checked="false"] .sw { background: rgba(255, 255, 255, .1); }
.layer[aria-checked="false"] .sw::after { left: 2px; background: var(--muted); }
.rail-actions { display: flex; gap: 6px; }
.rail-actions .btn { flex: 1; }
#viewCycle { display: none; } #viewCycle b { color: var(--accent); font-weight: 600; }
.rail-hint { padding: 10px 14px 12px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }

/* ───────── panel ───────── */
#panel { position: absolute; right: var(--gap); top: calc(var(--bar-h) + var(--gap)); bottom: calc(var(--dock-h) + var(--gap) * 2); width: var(--panel-w); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.tabs { display: flex; flex: none; border-bottom: 1px solid var(--line); padding-left: 4px; }
.tabs [role="tab"] { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 3px 4px 0; font: 600 12px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .16s, background-color .16s; }
.tab-i { font: 9.5px/1 var(--f-mono-s); letter-spacing: .04em; color: #6b7380; transition: color .16s; }
.tabs [role="tab"]:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .22s var(--ease); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 4px 100%); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: linear-gradient(0deg, rgba(255, 106, 0, .16), transparent 75%); }
.tabs [role="tab"][aria-selected="true"] .tab-i { color: var(--accent); }
.tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tabs :focus-visible { outline-offset: -3px; }
.tab-close { flex: none; width: 48px; height: 52px; display: grid; place-items: center; color: var(--muted); border-left: 1px solid var(--line); margin-left: 4px; transition: color .16s, background-color .16s; }
.tab-close:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.tab-close .ico { transition: transform .25s var(--ease); } .tab-close:hover .ico { transform: rotate(90deg); }
.panel-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 20px 24px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.panel-body::-webkit-scrollbar, .cmp-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.panel-body::-webkit-scrollbar-thumb, .cmp-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }

.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.intro { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.fine { margin-top: 12px; font-size: 12px; color: var(--muted); }
.ov-name { margin-top: 8px; font: 700 34px/1 var(--f-head); font-stretch: 80%; letter-spacing: .02em; text-transform: uppercase; }
.ov-rule { display: block; width: 44px; height: 3px; margin: 12px 0 10px; background: var(--robot); }
.ov-sub { font: 600 12.5px/1.3 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ticks-list li { position: relative; padding: 0 0 0 20px; margin-bottom: 9px; color: var(--ink-2); }
.ticks-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 8px; height: 2px; background: var(--accent); }
.facts li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts .mono { flex: none; font-size: 12px; line-height: 21px; color: var(--accent); }
.note { position: relative; padding: 14px 14px 14px 20px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .025); overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--hazard); opacity: .9; }
.note p { font-size: 13px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 12px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sec > .stats { margin-top: 0; }
.stats div { padding: 9px 11px 8px; background: #14171b; }
.stats dt { font: 600 9.5px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin-top: 6px; font-size: 12.5px; white-space: nowrap; }
.sources li { border-top: 1px solid var(--line); }
.sources li:first-child { border-top: 0; }
.sources a, .sources li > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 2px; text-decoration: none; color: var(--ink-2); transition: color .16s; }
.sources a:hover { color: var(--ink); } .sources a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.sources .ico { color: var(--muted); }
.empty { position: relative; padding: 22px 18px 18px; border: 1px dashed var(--line-2); border-radius: 5px; overflow: hidden; margin-top: 16px; }
.empty:first-child { margin-top: 0; }
.empty-stripe { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hazard); opacity: .8; }
.empty b { display: block; font: 600 15px/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.empty p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.empty .btn { margin-top: 14px; }

/* parts: the card stays put, the list scrolls under it */
.panel-body.is-parts { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.pcard-wrap { flex: none; padding: 16px 16px 0; }
.plist-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.pcard { position: relative; padding: 14px 16px 16px; border: 1px solid rgba(255, 106, 0, .5); border-radius: 5px; background: linear-gradient(180deg, rgba(255, 106, 0, .09), rgba(255, 106, 0, .02) 70%); }
.pcard.empty { display: flex; gap: 12px; margin: 0; padding: 14px 16px; border: 1px dashed var(--line-2); background: none; }
.pcard.empty p { margin-top: 3px; font-size: 13px; }
.pc-ico { color: var(--accent); margin-top: 2px; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -6px 0 0; }
.pc-n { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #ffb37a; }
.pc-nav { display: flex; gap: 2px; }
.pc-name { margin: 6px 0 10px; font: 700 24px/1.08 var(--f-head); font-stretch: 85%; letter-spacing: .03em; text-transform: uppercase; }
.pc-desc { margin-top: 12px; color: var(--ink-2); }
.fasten { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fasten-ico { color: var(--accent); margin-top: 1px; } .fasten-ico svg { width: 18px; height: 18px; }
.fasten b { display: block; font: 600 12px/1.2 var(--f-head); letter-spacing: .1em; text-transform: uppercase; }
.fasten span { font-size: 13px; color: var(--muted); }
.plist-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 2px; padding: 0 10px; }
.pgroup { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 4px; padding: 0 10px 6px; border-bottom: 1px solid var(--line); font: 600 11px/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pgroup .mono { color: var(--muted); letter-spacing: 0; }
.prow { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 4px; transition: background-color .14s, color .14s; }
.prow:hover { background: rgba(255, 255, 255, .06); }
.pidx { flex: none; font-size: 11px; color: var(--muted); }
.pname { flex: 1; min-width: 0; }
.prow.hid { color: var(--muted); } .prow.hid .ldot { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.prow[aria-pressed="true"] { background: rgba(255, 106, 0, .14); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.prow[aria-pressed="true"] .pidx { color: #ffb37a; }

/* lessons */
.lesson { border: 1px solid var(--line); border-radius: 5px; margin-bottom: 8px; transition: border-color .2s, background-color .2s; }
.lesson-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 12px 8px 14px; }
.lesson-n { flex: none; font-size: 12px; color: var(--muted); }
.lesson-t { flex: 1; font: 600 15px/1.2 var(--f-head); letter-spacing: .06em; text-transform: uppercase; padding-top: 1px; }
.lesson-c { flex: none; font-size: 11px; color: var(--muted); }
.lesson .chev { color: var(--muted); transition: transform .2s var(--ease); }
.lesson:hover { border-color: var(--line-2); }
.lesson.open { border-color: rgba(40, 200, 255, .5); background: rgba(40, 200, 255, .055); }
.lesson.open .lesson-n, .lesson.open .lesson-c { color: var(--info); }
.lesson.open .chev { transform: rotate(180deg); color: var(--info); }
.lesson-b { display: none; padding: 0 14px 14px; }
.lesson.open .lesson-b { display: block; animation: rise .22s var(--ease); }
.lesson-b p { color: var(--ink-2); line-height: 1.6; }
.lesson-b .chips { margin-top: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* specs */
.specs { width: 100%; border-collapse: collapse; }
.specs caption { text-align: left; padding-bottom: 8px; }
.specs th, .specs td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.specs th { width: 44%; padding-right: 14px; color: var(--muted); font-size: 13px; }
.specs td { color: var(--ink); } .specs td.mono { font-size: 13px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 1px solid var(--line); }

/* quiz */
.qhead { display: flex; justify-content: space-between; align-items: baseline; }
.qs { font-size: 12px; color: var(--muted); } .qs b { color: var(--ink); font-weight: 500; }
.qdots { display: flex; gap: 4px; margin: 10px 0 0; }
.qdots i { flex: 1; height: 3px; background: rgba(255, 255, 255, .12); }
.qdots i.cur { background: var(--ink); } .qdots i.ok { background: var(--ok); } .qdots i.bad { background: var(--bad); }
.qq { margin: 20px 0 16px; font: 600 21px/1.25 var(--f-body); letter-spacing: -.005em; }
.qopts { display: grid; gap: 8px; }
.qopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 5px; background: rgba(255, 255, 255, .025); transition: background-color .16s, border-color .16s, opacity .16s, transform .12s; }
.qopt:not(:disabled):hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.qopt:not(:disabled):active { transform: translateY(1px); }
.qopt:disabled { cursor: default; }
.qk { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 12px; color: var(--muted); }
.qopt > span:nth-child(2) { flex: 1; }
.qopt.ok { border-color: var(--ok); background: rgba(61, 220, 132, .1); } .qopt.ok .qk { border-color: var(--ok); color: var(--ok); } .qopt.ok .qi { color: var(--ok); }
.qopt.bad { border-color: var(--bad); background: rgba(255, 93, 108, .09); } .qopt.bad .qk { border-color: var(--bad); color: var(--bad); } .qopt.bad .qi { color: var(--bad); }
.qopt.dim { opacity: .5; }
.qfb { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--ok); background: rgba(61, 220, 132, .07); border-radius: 0 4px 4px 0; color: var(--ink-2); animation: rise .22s var(--ease); }
.qfb.bad { border-left-color: var(--bad); background: rgba(255, 93, 108, .07); }
.qfb b { color: var(--ink); font-weight: 600; }
.qpart { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qhint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.qresult { padding-top: 4px; }
.qscore { margin: 10px 0 14px; font-size: 76px; line-height: 1; letter-spacing: -.04em; }
.qscore small { font-size: 26px; color: var(--muted); letter-spacing: 0; }
.qresult p { margin-top: 16px; font-size: 15px; color: var(--ink-2); }

/* ───────── dock: the fleet ───────── */
#dock { position: absolute; left: var(--gap); right: var(--gap); bottom: var(--gap); height: var(--dock-h); pointer-events: auto; transition: opacity .2s, visibility 0s; }
.dock-row { display: flex; gap: 4px; height: 100%; padding: 8px 6px 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dock-row::-webkit-scrollbar { display: none; }
/* index / key-hint tabs riding on the dock's top edge */
.dock-tab { position: absolute; bottom: 100%; display: flex; align-items: center; gap: 8px; height: 23px; padding: 2px 14px 0 12px; background: rgba(13, 15, 18, .92); font: 600 10px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: #a3abb8; white-space: nowrap; }
.dock-count { left: 16px; padding-right: 24px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); box-shadow: inset 0 2px 0 var(--accent); }
.dock-count b { font: 500 13px/1 var(--f-mono-s); letter-spacing: 0; color: var(--ink); }
.dock-count .of { font: 11px/1 var(--f-mono-s); letter-spacing: 0; }
.dock-prog { display: flex; align-items: center; gap: 3px; margin-left: 6px; }
.dock-prog i { width: 11px; height: 3px; background: rgba(255, 255, 255, .2); transition: background-color .2s, transform .25s var(--ease); }
.dock-prog i.on { background: var(--accent); transform: scaleY(2.4); }
.dock-keys { right: 16px; padding-left: 24px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }

.dock-item { position: relative; flex: 1 1 128px; min-width: 112px; display: flex; align-items: flex-end; padding: 7px 10px 8px 12px; overflow: hidden; background: rgba(255, 255, 255, .028);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: background-color .16s, transform .25s var(--ease); }
.dock-item::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.dock-item::after { content: ""; position: absolute; z-index: 2; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--c); box-shadow: 0 0 18px 4px var(--c); opacity: 0; transition: opacity .25s; }
.dock-item:hover { background: rgba(255, 255, 255, .075); }
.dock-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.dock-item[aria-current="true"] { transform: translateY(-5px); background: linear-gradient(0deg, color-mix(in srgb, var(--c) 26%, transparent), rgba(255, 255, 255, .09) 62%); }
.dock-item[aria-current="true"]::before { transform: scaleX(1); }
.dock-item[aria-current="true"]::after { opacity: 1; }
/* portrait render (or the stencilled placeholder) fills the right of the card and fades under the text */
.thumb { position: absolute; right: 0; top: 0; bottom: 0; aspect-ratio: 3 / 4; overflow: hidden; opacity: .7; transition: opacity .2s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.dock-item:hover .thumb, .dock-item[aria-current="true"] .thumb { opacity: 1; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: end end; padding: 0 7px 12px 0; font: 700 26px/1 var(--f-head); font-stretch: 75%; letter-spacing: .02em; color: rgba(255, 255, 255, .16); }
.dock-item[aria-current="true"] .ph { color: var(--c); opacity: .75; }
.thumb .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--accent) 0 3px, #14161a 3px 6px); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(9%) scale(1.32); transform-origin: 50% 54%; transition: opacity .25s, transform .45s var(--ease); background: #14171b; }
.dock-item:hover .thumb img, .dock-item[aria-current="true"] .thumb img { transform: translateX(6%) scale(1.5); }
.thumb img.ok { opacity: 1; }
/* the text block rests low; on hover (and on the robot in the bay) it slides up to reveal year · height */
.dock-txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; flex: 1; text-shadow: 0 1px 3px rgba(11, 13, 16, .95); transform: translateY(17px); transition: transform .28s var(--ease); }
.dock-item:hover .dock-txt, .dock-item:focus-visible .dock-txt, .dock-item[aria-current="true"] .dock-txt { transform: none; }
.dock-txt > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-kind { font: 600 9.5px/1.1 var(--f-head); font-stretch: 87%; letter-spacing: .1em; text-transform: uppercase; color: #a3abb8; }
.dock-kind.now { padding: 3px 9px 2px 6px; color: #140900; background: var(--accent); letter-spacing: .12em; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); text-shadow: none; }
.dock-name { font: 700 16.5px/1.1 var(--f-head); font-stretch: 78%; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.dock-maker { font-size: 11px; line-height: 1.2; color: var(--ink-2); }
.dock-meta { font: 11.5px/1.2 var(--f-mono-s); color: #a3abb8; opacity: 0; transition: opacity .2s; }
.dock-item:hover .dock-meta, .dock-item:focus-visible .dock-meta, .dock-item[aria-current="true"] .dock-meta { opacity: 1; }
.dock-item.pending .thumb { opacity: .3; }
.dock-item.pending .dock-name { color: var(--muted); }
.dock-item.pending .dock-kind { color: var(--warn); background: none; padding: 0; clip-path: none; }
.dock-item.pending .dock-maker { color: var(--muted); }
body.intro #dock { animation: dockIn .8s var(--ease) calc(.45s + var(--seek, 0s)) both; }
@keyframes dockIn { from { opacity: 0; transform: translateY(60%); } }

/* ───────── floating bits ───────── */
#loader { position: absolute; left: 50%; top: calc(var(--bar-h) + 18px); transform: translateX(-50%); padding: 9px 14px 11px; min-width: 220px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; opacity: 0; visibility: hidden; }
body[data-status="loading"] #loader { opacity: 1; visibility: visible; transition: opacity .2s .12s; }
.loader-t { font: 600 11.5px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
#loader i { position: absolute; left: 0; bottom: 0; width: 40%; height: 2px; background: var(--accent); animation: slide 1.1s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
#toast { position: absolute; left: 50%; bottom: calc(var(--dock-h) + var(--gap) + 18px); transform: translate(-50%, 8px); max-width: min(560px, calc(100vw - 32px)); padding: 11px 16px; background: rgba(12, 13, 16, .95); border: 1px solid rgba(255, 194, 51, .5); border-radius: 4px; font-size: 13px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
#toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
#tip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 8px; max-width: 320px; background: rgba(8, 9, 11, .92); border: 1px solid var(--line-2); border-radius: 3px; font-size: 12.5px; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; will-change: transform; }
#tip.on { opacity: 1; }
#tip b { font-weight: 600; } #tip span { font: 600 10px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 1px; }
#bayNote { position: absolute; left: calc(50vw + min(290px, 21vw) - 150px); top: calc(50% - 190px); width: 300px; height: 340px; display: none; place-items: end center; padding-bottom: 18px; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 6px; background: linear-gradient(0deg, rgba(11, 13, 16, .55), transparent 40%); }
#bayNote::before, #bayNote::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--warn); }
#bayNote::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; } #bayNote::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
#bayNote span { font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--warn); }
body[data-status="missing"] #bayNote, body[data-status="fault"] #bayNote { display: grid; }
body[data-status="missing"] #stage, body[data-status="fault"] #stage { filter: brightness(.7) saturate(.8); }

/* ───────── compare ───────── */
#compare { position: absolute; left: 50%; top: calc(var(--bar-h) + var(--gap)); bottom: var(--gap); width: min(1360px, calc(100vw - var(--gap) * 2)); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden;
  background: rgba(15, 17, 21, .93); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
body.comparing #compare { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 20px 18px 26px; border-bottom: 1px solid var(--line); }
.cmp-head h2 { margin-top: 8px; font: 700 32px/1 var(--f-head); font-stretch: 80%; letter-spacing: .03em; text-transform: uppercase; }
.cmp-head p { margin-top: 8px; max-width: 62em; color: var(--muted); font-size: 13.5px; }
.c-sample { margin-left: 10px; padding: 3px 6px 2px; border-radius: 2px; background: var(--warn); color: #1a1300; letter-spacing: .1em; }
.cmp-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.cmp { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: middle; }
.cmp thead th { position: sticky; top: 0; z-index: 2; padding: 10px 6px 8px; background: #101216; border-bottom-color: var(--line-2); }
.cmp thead th.c-robot { padding-left: 14px; z-index: 3; }
.c-sort { display: inline-flex; align-items: baseline; gap: 6px; height: 32px; padding: 0 8px; border-radius: 3px; font: 600 12px/32px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: background-color .16s, color .16s; }
.c-sort small { font: 11.5px/1 var(--f-mono-s); letter-spacing: 0; text-transform: none; color: var(--muted); }
.c-sort .ico { align-self: center; color: var(--muted); opacity: .5; }
.c-sort:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.c-sort.on { color: var(--accent); } .c-sort.on .ico { color: var(--accent); opacity: 1; }
.cmp .c-robot { position: sticky; left: 0; z-index: 1; width: 290px; min-width: 240px; background: #101216; }
.cmp tbody th.c-robot { padding-top: 8px; padding-bottom: 8px; }
.cmp tbody .c-robot { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 58px; }
.c-rule { flex: none; width: 3px; height: 30px; border-radius: 1px; }
.c-thumb { flex: none; width: 30px; height: 40px; border-radius: 2px; background: #14171b 50% 55% / 135% auto no-repeat; box-shadow: 0 0 0 1px var(--line); }
.c-thumb.none { display: none; }
.cmp tr.pend .c-thumb { opacity: .4; }
.c-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.c-name { font: 700 16px/1.15 var(--f-head); font-stretch: 85%; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.c-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.c-maker { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-tag { flex: none; padding: 4px 6px 2px; border-radius: 2px; background: var(--accent); color: #140900; font: 600 9.5px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.cmp tbody tr { transition: background-color .14s; }
.cmp tbody tr:not(.pend):hover td { background: rgba(255, 255, 255, .035); }
.cmp tr.cur td { background: rgba(255, 255, 255, .05); }
.cmp tr.cur .c-robot { background: #191c21; }
.cv { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.cbar { display: block; height: 3px; margin-top: 8px; background: rgba(255, 255, 255, .07); }
.cbar i { display: block; height: 100%; min-width: 2px; background: #a4acb8; transition: width .35s var(--ease); }
.cmp td.na .cv::before { content: ""; display: inline-block; width: 12px; height: 1px; background: var(--muted); vertical-align: middle; }
#compare:focus-visible, .panel-body:focus-visible { outline: none; }
.cmp tr.pend .c-name { color: var(--muted); } .cmp tr.pend .c-rule { opacity: .35; }
.cmp tr.pend td { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .022) 0 10px, transparent 10px 20px); }
.c-pend { font-size: 12.5px; color: var(--muted); }
.c-pend b { margin-right: 10px; font: 600 10.5px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--warn); }

/* ───────── live HUD: frame brackets, camera telemetry, blueprint callouts (js/ui-hud.js) ───────── */
#hudFrame { position: absolute; left: 14px; right: 14px; top: calc(var(--bar-h) + 16px); bottom: calc(var(--dock-h) + var(--gap) + 36px); pointer-events: none; --k: rgba(255, 255, 255, .38); transition: opacity .3s;
  background: linear-gradient(var(--k), var(--k)) 0 0 / 22px 1px no-repeat, linear-gradient(var(--k), var(--k)) 0 0 / 1px 22px no-repeat,
    linear-gradient(var(--k), var(--k)) 100% 0 / 22px 1px no-repeat, linear-gradient(var(--k), var(--k)) 100% 0 / 1px 22px no-repeat,
    linear-gradient(var(--k), var(--k)) 0 100% / 22px 1px no-repeat, linear-gradient(var(--k), var(--k)) 0 100% / 1px 22px no-repeat,
    linear-gradient(var(--k), var(--k)) 100% 100% / 22px 1px no-repeat, linear-gradient(var(--k), var(--k)) 100% 100% / 1px 22px no-repeat; }
#tele { position: absolute; left: 32px; top: calc(var(--bar-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; pointer-events: none; transition: opacity .3s;
  font: 11px/1 var(--f-mono-s); letter-spacing: .08em; text-transform: uppercase; color: #b4bbc6; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, .8); }
#tele b { display: flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--f-head); letter-spacing: .16em; color: var(--ink); }
#tele b i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: led 1.6s ease-in-out infinite; }
#callouts { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
#callouts.on { opacity: 1; transition: opacity .45s; }
.co-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co-line { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.co-dot { fill: var(--accent); stroke: #0b0d10; stroke-width: 1; }
.co-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .7; }
.co { position: absolute; left: 0; top: 0; pointer-events: auto; }
.co-in { display: flex; flex-direction: column; gap: 5px; margin-top: -19px; padding: 7px 11px 6px 10px; background: rgba(11, 13, 16, .84); border-left: 2px solid var(--accent); white-space: nowrap; transition: background-color .16s; }
.co.l .co-in { transform: translateX(-100%); align-items: flex-end; border-left: 0; border-right: 2px solid var(--accent); }
.co b { max-width: 196px; overflow: hidden; text-overflow: ellipsis; font: 600 12px/1.15 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.co-in > span { display: flex; align-items: center; gap: 6px; font: 600 9.5px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: #a3abb8; }
.co em { font: normal 10px/1 var(--f-mono-s); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.co .ldot { width: 6px; height: 6px; }
.co:hover .co-in { background: rgba(60, 28, 6, .92); }
.co:focus-visible { outline: none; } .co:focus-visible .co-in { box-shadow: 0 0 0 2px var(--accent); }
.co, .co-line, .co-dot, .co-ring { transition: opacity .3s; transition-delay: calc(var(--i, 0) * 110ms); }
#callouts:not(.on) :is(.co, .co-line, .co-dot, .co-ring), #callouts .off { opacity: 0; transition-delay: 0s; }
#callouts:not(.on) .co, #callouts .co.off { pointer-events: none; }

/* ───────── states ───────── */
body:not(.booted) *, body:not(.booted) *::before, body:not(.booted) *::after { transition: none !important; }
/* automated screenshots (headless browser): no transitions, so every capture shows a settled state */
body.still *, body.still *::before, body.still *::after { transition: none !important; }
body.still .live-dot::after { animation: none; opacity: 0; }
body.has-panel #hero { opacity: 0; visibility: hidden; transform: translateX(-14px); transition-delay: 0s, 0s, .22s; }
body.has-panel #scrim::before, body.has-panel #scrim::after { opacity: 0; }
body:not(.has-panel) #rail { opacity: 0; visibility: hidden; transform: translateX(-12px); transition-delay: 0s, 0s, .2s; }
body:not(.has-panel) #panel { opacity: 0; visibility: hidden; transform: translateX(14px); transition-delay: 0s, 0s, .2s; }
body:is(.has-panel, .comparing) :is(#hudFrame, #tele, #callouts), body:not([data-status="ready"]) :is(#tele, #callouts) { opacity: 0; }
body:is(.has-panel, .comparing) .dock-tab { opacity: 0; }
body.comparing #scrim { background-color: rgba(8, 9, 11, .62); }
body.comparing :is(#hero, #rail, #panel, #dock, #tip, #bayNote) { opacity: 0; visibility: hidden; }
body.comparing #btnCompare { --b: var(--ink); --f: var(--ink); color: #0b0d10; }
body.no-ui #ui, body.no-ui #scrim { display: none; }

/* Build mode / test drive: the Assembly or Playground HUD (inside #stage) owns the screen. Only a slim centred strip of the top bar stays. */
body:is(.building, .driving) :is(#hero, #rail, #panel, #dock, #tip, #toast, #loader, #compare, #bayNote, #hudFrame, #tele, #callouts), body:is(.building, .driving) #scrim { display: none; }
body:is(.building, .driving) #bar { left: 50%; right: auto; top: 12px; height: 40px; transform: translateX(-50%); gap: 4px; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
body:is(.building, .driving) #bar::after { display: none; }
body:is(.building, .driving) #bar :is(.bar-robot, .bar-space, #views, #btnCompare, #btnBuild, #btnDrive, .bar-div) { display: none; }
body:is(.building, .driving) .brand { pointer-events: none; margin-right: 6px; }
body:is(.building, .driving) .brand-word { font-size: 15px; }
body:is(.building, .driving) .brand-mark { width: 16px; height: 16px; }

/* ───────── responsive ───────── */
@media (min-width: 1700px) {
  :root { --panel-w: 460px; --rail-w: 252px; --dock-h: 110px; }
  body { font-size: 15px; }
  #hero { left: 60px; width: min(800px, 44vw); }
  .dock-item { padding-left: 14px; }
  .dock-name { font-size: 18.5px; } .dock-maker { font-size: 12px; } .dock-kind { font-size: 10px; }
  .hero-tag { font-size: 19px; } .num { min-width: 140px; padding: 13px 20px 14px 16px; } .num-v { font-size: 34px; }
  .act { height: 68px; min-width: 216px; } .act .act-label { font-size: 20px; } .act-explore { min-width: 196px; } .act-sub { font-size: 10.5px; }
  #tele { font-size: 12px; }
}
@media (max-width: 1400px) { .bar-robot span { display: none; } }
@media (max-width: 1300px) {
  .lofi-t { display: none; }
  .seg button { padding: 1px 9px 0; }
  :root { --panel-w: 380px; --rail-w: 216px; }
  .act { min-width: 172px; } .act-explore { min-width: 156px; } .act-ico { width: 42px; }
}
@media (max-width: 1100px) {
  .bar-robot { display: none; }
  #btnCompare span { display: none; } #btnCompare { width: 34px; padding: 0; }
  #bar .btn:is(.accent, .live) { padding: 1px 10px 0; }
  .dock-item { flex-basis: 150px; } .dock-keys { display: none; }
  .hero-ghost, #tele { display: none; }
}
@media (max-height: 760px) and (min-width: 761px) {
  #tele { display: none; }
  .hero-tag { font-size: 15px; } .hero-nums { margin-top: 16px; } .hero-cta { margin-top: 18px; } .hero-links { margin-top: 8px; }
  .num { padding: 9px 16px 10px 13px; } .num-v { font-size: 26px; margin-top: 7px; } .num-g { margin-top: 8px; }
  .act { height: 54px; }
  .rail-hint { display: none; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero-name, .hero-name.long { margin-top: 12px; font-size: clamp(38px, 9vh, 58px); }
  .hero-ghost, .hero-links, .hero-tag { display: none; }
  .hero-strip { margin-top: 12px; height: 26px; } .hero-nums { margin-top: 12px; } .num-v { font-size: 21px; }
  .hero-cta { margin-top: 14px; } .act { height: 48px; } .act-sub { display: none; }
  .rail-sec { padding: 10px 14px 8px; } .layer { height: 30px; }
}
@media (max-width: 900px) { body:is(.building, .driving) #bar { display: none; } }

@media (max-width: 760px) {
  :root { --bar-h: 50px; --dock-h: 96px; --gap: 8px; }
  #bar { padding: 0 6px 0 12px; gap: 4px; }
  #bar::after, #hudFrame, #tele, #callouts, .hero-ghost, .hero-scan, .dock-tab { display: none; }
  .brand-word { font-size: 16px; letter-spacing: .13em; }
  .brand-mark { width: 20px; height: 20px; }
  #views, #btnBuild, #btnDrive, #btnFull, .bar-div { display: none; }
  #bar .btn { height: 40px; } #btnCompare { width: 40px; --b: transparent; --f: transparent; } #btnLofi { padding: 0 12px; }
  #scrim { background: linear-gradient(180deg, rgba(11, 13, 16, .5) 0, transparent 17%), linear-gradient(0deg, rgba(11, 13, 16, .78) 0, transparent 27%); }
  #scrim::before { background: linear-gradient(0deg, rgba(11, 13, 16, .97) 0, rgba(11, 13, 16, .9) 40%, rgba(11, 13, 16, .45) 56%, transparent 68%); }
  #scrim::after { display: none; }

  #hero { left: 16px; right: 16px; width: auto; bottom: calc(var(--dock-h) + 12px); }
  .hero-kicker { font-size: 10.5px; letter-spacing: .12em; gap: 6px 8px; }
  .status { height: 20px; font-size: 9.5px; letter-spacing: .1em; }
  .hero-name, .hero-name.long { margin-top: 10px; font-size: clamp(38px, 12.6vw, 56px); }
  .hero-strip { height: 26px; margin-top: 10px; font-size: 11.5px; letter-spacing: .1em; } .hero-rule { width: 26px; margin-right: 10px; }
  .hero-strip span { padding-right: 9px; } .hero-strip span + span::before { margin-right: 9px; } .hero-strip::after { display: none; }
  .hero-tag { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .hero-nums { width: 100%; margin-top: 12px; }
  .num { flex: 1 1 0; min-width: 0; padding: 8px 6px 9px 9px; overflow: hidden; }
  .num-l { font-size: 8.5px; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; }
  .num-v { font-size: 19px; margin-top: 7px; gap: 3px; } .num-v small { font-size: 10.5px; } .num-g { margin-top: 7px; height: 6px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: none; margin-top: 14px; }
  .act { min-width: 0; height: 50px; --cut: 12px; } .act-build { grid-column: 1 / -1; height: 54px; }
  .act-idx { width: 32px; padding: 9px 0 10px 10px; } .act-txt { padding-left: 10px; gap: 5px; } .act .act-label { font-size: 15px; } .act-sub { font-size: 8.5px; letter-spacing: .1em; }
  .act-ico { width: 40px; } .act-drive .act-ico, .act-explore .act-ico { display: none; }
  .hero-links { display: none; }
  #hero.enter .ch { animation: heroRise .45s var(--ease) both; animation-delay: 0s; }          /* simpler entrance on phones */
  #hero.enter .rise { animation-delay: calc(var(--n, 0) * 50ms + 60ms); }
  .notice { margin-top: 14px; padding: 18px 14px 14px; } .notice-cta .btn { height: 40px; }

  #dock { left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0; }
  .dock-row { padding: 6px 8px; scroll-snap-type: x proximity; }
  .dock-item { flex: 0 0 150px; scroll-snap-align: center; }
  .dock-item[aria-current="true"] { transform: none; } .dock-txt { transform: none; } .dock-meta { opacity: 1; }
  body.has-panel #dock { opacity: 0; visibility: hidden; }
  body.intro #dock { animation: none; }

  #panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 52vh; height: 52dvh; border-radius: 10px 10px 0 0; border-width: 1px 0 0; }
  body:not(.has-panel) #panel { transform: translateY(24px); }
  .tabs { padding-left: 2px; } .tabs [role="tab"] { font-size: 11px; letter-spacing: .06em; padding: 3px 2px 0; }
  .tab-close { width: 44px; margin-left: 2px; }
  .panel-body { padding: 16px 16px 24px; }
  .panel-body.is-parts { display: block; overflow: auto; } .pcard-wrap { padding: 12px 12px 0; } .plist-scroll { overflow: visible; padding: 0 12px 20px; }
  .btn.sq.sm, .btn.sm { height: 40px; } .btn.sq.sm { width: 40px; }
  .prow { min-height: 44px; } .chip.link, .chip.link.ghost { min-height: 40px; } .qq { font-size: 19px; margin: 16px 0 12px; }

  #rail { left: 8px; right: 8px; top: calc(var(--bar-h) + 8px); width: auto; max-height: none; overflow-y: hidden; display: flex; align-items: center; gap: 8px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
  #rail::-webkit-scrollbar { display: none; }
  body:not(.has-panel) #rail { transform: translateY(-8px); }
  .rail-sec { flex: none; padding: 0; border: 0; }
  .rail-explode { width: 150px; padding: 2px 8px 0 6px; } .rail-explode .lbl { font-size: 9.5px; } .rail-explode input { height: 24px; margin: 0; } .ticks, .rail-hint, .rail-layers > .lbl { display: none; }
  .layers { display: flex; gap: 6px; margin: 0; }
  .layer { width: auto; height: 40px; padding: 0 11px; border: 1px solid var(--line-2); } .layer .sw, .layer-c { display: none; }
  .layer[aria-checked="false"] { border-style: dashed; }
  .rail-actions .btn { flex: none; } #viewCycle { display: inline-flex; }

  #toast { bottom: calc(var(--dock-h) + 12px); }
  #tip, #bayNote { display: none !important; }
  #loader { top: calc(var(--bar-h) + 10px); }

  #compare { top: var(--bar-h); bottom: 0; width: 100vw; border-radius: 0; border-width: 1px 0 0; }
  .cmp-head { padding: 16px 10px 14px 16px; } .cmp-head h2 { font-size: 26px; } .cmp-head p { font-size: 12.5px; }
  .cmp-head .btn.sq { width: 40px; height: 40px; }
  .cmp-scroll { padding: 0 0 16px; } .cmp { min-width: 860px; }
  .cmp .c-robot { width: 150px; min-width: 150px; max-width: 150px; } .cmp tbody .c-robot { gap: 9px; padding-left: 10px; padding-right: 8px; }
  .cmp thead th.c-robot .lbl { font-size: 9.5px; letter-spacing: .06em; } .c-tag, .c-thumb { display: none; } .c-name { font-size: 14px; }
  .c-sort { height: 40px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* client choice: calmer hero — no corner brackets, camera read-out or ghost numeral (callouts are switched off in js/app.js FX) */
#hudFrame, #tele, .hero-ghost { display: none !important; }
body:not(.show-callouts) #callouts { display: none !important; }
/* dock: keep robot names clear of the thumbnails */
.thumb { width: 44%; aspect-ratio: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%); mask-image: linear-gradient(90deg, transparent 0, #000 60%); }
.dock-txt { max-width: 66%; }
.dock-txt > .dock-name { white-space: normal; font-size: 15px; line-height: 1.05; }
