/* derinerimez.com · v2.0 · 2026-11-27
   Look: "Telemetry × Kinetic" (mockup D): glass telemetry modules mounted on a glowing circuit board.
   Motion: "scroll-flight" (mockup A): one continuous board, the camera flies down a guided trace
   through five stations; the HUD warps between them. Canvas work lives in js/world.js.
   Type: Outfit for display, system mono for data, condensed system numerals for readouts.
   Easing per Gemini's direction: micro 150–250 ms cubic-bezier(.16,1,.3,1); spatial 400–600 ms
   cubic-bezier(.25,1,.5,1); docking uses a generated spring curve (--spring). */
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #04090f; --bg2: #07111c;
  --hud: #7fdcff; --hud2: #3fb8ff; --amber: #f5a524; --good: #4ade80; --red: #ff7a6b;
  --ink: #eef8ff; --ink-2: #a6c1d5; --ink-3: #7590a8;
  --bd: #1e3d5f; --bd2: rgba(127, 220, 255, .38); --line: rgba(110, 200, 255, .14);
  --glass: linear-gradient(165deg, rgba(14, 32, 52, .9), rgba(7, 18, 31, .93));
  --display: "Outfit", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --num: -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-s: cubic-bezier(.25, 1, .5, 1);
  --spring: linear(0, 0.062, 0.201, 0.363, 0.537, 0.685, 0.816, 0.912, 0.984, 1.028, 1.054, 1.064, 1.064, 1.057, 1.047, 1.036, 1.025, 1.016, 1.009, 1.003, 1, 0.997, 0.996, 0.996, 0.996, 0.997, 0.997, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --gut: 16px; --hud-h: 56px;
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --spring: cubic-bezier(.34, 1.36, .5, 1); } }
@media (min-width: 760px) { :root { --gut: 44px; --hud-h: 64px; } }
@media (min-width: 1100px) { :root { --gut: max(72px, calc((100vw - 1240px) / 2)); } }
@media (min-width: 1800px) { :root { --gut: max(72px, calc((100vw - 1360px) / 2)); } body { font-size: 17px; } }

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hud); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skiplink { position: fixed; left: 12px; top: -60px; z-index: 90; background: var(--hud); color: #021018; padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skiplink:focus { top: 12px; }

/* type: 1.25 scale, 12 → 64 */
.kicker { font: 600 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hud); margin: 0 0 10px; }
.display { font: 700 clamp(34px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.025em; margin: 0; }
.display.s { font-size: clamp(30px, 4.1vw, 52px); }
.display em, .i-big em { font-style: normal; color: var(--amber); text-shadow: 0 0 22px rgba(245, 165, 36, .45); }
.h2 { font: 650 clamp(23px, 2.5vw, 31px)/1.15 var(--display); letter-spacing: -.015em; margin: 0 0 10px; }
.intro-p { color: var(--ink-2); max-width: 62ch; margin: 14px 0 0; font-size: 17px; }
.num { font-family: var(--num); font-stretch: 75%; font-weight: 800; font-variant-numeric: tabular-nums; }

/* buttons (ripple from js) */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--bd2); background: rgba(10, 26, 42, .85); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: var(--hud); background: rgba(22, 52, 80, .9); box-shadow: 0 0 18px rgba(127, 220, 255, .18); }
.btn:active { transform: scale(.97); }
.btn.pri { background: linear-gradient(180deg, #9be6ff, #59c6f2); color: #021420; border-color: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 6px 26px rgba(63, 184, 255, .35); }
.btn.pri:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 8px 34px rgba(63, 184, 255, .5); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(127, 220, 255, .45); pointer-events: none; transform: scale(0); animation: ripple .6s var(--ease) forwards; }
.btn.pri .ripple { background: rgba(255, 255, 255, .6); }
@keyframes ripple { to { transform: scale(16); opacity: 0; } }

/* ---------- the board (background layers) ---------- */
/* the dot grid is the document's own background: it scrolls natively, no per-frame work */
html.js { background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(127, 220, 255, .16) 1px, transparent 1.6px),
    linear-gradient(rgba(127, 220, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 220, 255, .035) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px; }
html.js body { background: radial-gradient(1200px 700px at 50% -120px, rgba(20, 50, 80, .55), transparent 70%) no-repeat; }
.board { display: none; }
.world { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pk-layer { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.pkt { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(4, 12, 22, .94); border: 1px solid var(--good); font: 700 11.5px/1 var(--mono); color: var(--good); box-shadow: 0 0 14px rgba(74, 222, 128, .55), 0 0 2px rgba(74, 222, 128, .9) inset; white-space: nowrap; will-change: transform; transition: opacity .18s ease-out; }
.pkt.done { opacity: 0; }

/* ---------- HUD (top) ---------- */
.hud { position: fixed; z-index: 30; top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); right: calc(10px + var(--sar)); height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 7px; border-radius: 16px;
  background: linear-gradient(165deg, #0d1f33, #07121f); border: 1px solid var(--bd); box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 14px 40px rgba(0, 0, 0, .45); }
/* scrim under the HUD so page text never scrolls visibly under the name (11/27 iPhone check) */
.js body::after { content: ""; position: fixed; z-index: 25; left: 0; right: 0; top: 0; height: calc(var(--sat) + 76px); pointer-events: none; background: linear-gradient(rgba(4, 9, 15, .97), rgba(4, 9, 15, .9) 55%, rgba(4, 9, 15, 0)); }
@media (min-width: 760px) { .js body::after { height: calc(var(--sat) + 92px); } }
.hud-id { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; background: var(--hud); box-shadow: 0 0 0 1.5px rgba(127, 220, 255, .8), 0 0 14px rgba(127, 220, 255, .4); }
.av img, .core img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; }
.nm { font: 650 16px/1.05 var(--display); white-space: nowrap; letter-spacing: -.01em; }
.nm small { display: block; font: 500 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.route { display: none; position: relative; align-items: center; margin: 0 auto; gap: 2px; height: 100%; }
.route a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s; }
.route a i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--bd2); transition: background .25s, box-shadow .25s, border-color .25s; }
.route a:hover { color: var(--ink); background: rgba(127, 220, 255, .06); }
.route a[aria-current] { color: #fff; text-shadow: 0 0 10px rgba(245, 165, 36, .55); }
.route a[aria-current] i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px var(--amber); }
.route::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, var(--bd2) 12%, var(--bd2) 88%, transparent); }
.route-cam { position: absolute; left: 0; bottom: 1px; width: 34px; height: 5px; margin-left: -17px; border-radius: 3px; background: var(--amber); box-shadow: 0 0 12px var(--amber), 0 0 3px var(--amber); will-change: transform; opacity: 0; transition: opacity .3s; }
.route-cam.on { opacity: 1; }
/* the way back to the home page (11/28: the North Star experience is derinerimez.com/, this site lives at /classic/) */
.hud-home { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hud-home .ic { width: 13px; height: 13px; }
.hud-home:hover { color: var(--ink); border-color: var(--bd2); }
.hud-live { display: none; align-items: center; gap: 0; margin-left: 0; padding: 0 12px; height: 32px; border-radius: 999px; border: 1px solid rgba(74, 222, 128, .35); background: rgba(4, 14, 12, .5); font: 500 11.5px/1 var(--mono); color: var(--good); white-space: nowrap; }
.hud-live b { font-weight: 700; }
.hud-live.plug { animation: plug .9s var(--ease); }
.replay { flex: none; display: none; align-items: center; justify-content: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; font-weight: 600; }
.replay:hover { color: var(--ink); border-color: var(--bd2); }
.replay span { display: none; }
.seen .replay { display: inline-flex; }
.hud > :last-child { margin-left: auto; }
.hud .hud-live ~ .replay { margin-left: 0; }
@media (max-width: 759px) {
  .live-on .hud-live { display: inline-flex; margin-left: 0; height: 28px; padding: 0 10px; font-size: 11px; }
  .hud-home { height: 28px; padding: 0 9px; font-size: 11.5px; }
  .hud-live span { display: none; }
  .hud-live::after { content: " online"; white-space: pre; }
  .nm small { display: none; }
}
@media (min-width: 760px) {
  .hud { left: calc(var(--gut) - 14px + var(--sal)); right: calc(var(--gut) - 14px + var(--sar)); top: calc(14px + var(--sat)); height: 56px; padding: 0 10px 0 10px; }
  .route { display: flex; }
  .live-on .hud-live { display: inline-flex; margin-left: 0; }
}
@media (min-width: 760px) and (max-width: 1099px) { .nm small, .route a i { display: none; } .route a { padding: 0 10px; } .hud-live span { display: none; } .hud-live::after { content: " online"; white-space: pre; } }
@media (min-width: 1280px) { .replay span { display: inline; } }

/* ---------- dial (phone section warp, thumb zone, not a tab bar) ---------- */
.dial { position: fixed; z-index: 31; right: calc(16px + var(--sar)); bottom: calc(18px + var(--sab)); width: 60px; height: 60px; }
.dial-btn { position: relative; overflow: hidden; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--bd2); background: radial-gradient(circle at 50% 35%, rgba(24, 56, 86, .95), rgba(6, 16, 28, .95)); box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 22px rgba(127, 220, 255, .22); cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .25s var(--spring); }
.dial-btn:active { transform: scale(.92); }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dr-bg { fill: none; stroke: rgba(127, 220, 255, .14); stroke-width: 2.5; }
.dr-fg { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 3px var(--amber)); }
.dial-n { position: relative; font: 700 15px/1 var(--mono); letter-spacing: .04em; color: var(--ink); }
.dial-btn::after { content: ""; position: absolute; left: 50%; bottom: 11px; width: 14px; height: 2px; margin-left: -7px; border-radius: 1px; background: var(--hud); opacity: .7; }
.dial-menu { position: absolute; right: 0; bottom: 0; width: 0; height: 0; }
.dial-menu a { position: absolute; right: 2px; bottom: 6px; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 12px; border-radius: 23px; white-space: nowrap; text-decoration: none; color: var(--ink); font: 600 15px/1 var(--display);
  background: linear-gradient(165deg, rgba(16, 38, 60, .96), rgba(7, 18, 31, .97)); border: 1px solid var(--bd2); box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(0, 0) scale(.4); transform-origin: 100% 100%; transition: transform .22s var(--ease), opacity .16s, visibility 0s .22s; }
.dial-menu a span { font: 700 11px/1 var(--mono); color: var(--hud); letter-spacing: .08em; }
.dial-menu a[aria-current] { border-color: var(--amber); box-shadow: 0 0 16px rgba(245, 165, 36, .35), 0 10px 26px rgba(0, 0, 0, .5); }
.dial-menu a[aria-current] span { color: var(--amber); }
.dial.open .dial-menu a { opacity: 1; visibility: visible; pointer-events: auto; transition: transform .55s var(--spring), opacity .2s, visibility 0s; }
/* an arc above and left of the thumb */
.dial.open .dial-menu a:nth-child(1) { transform: translate(-6px, -74px); transition-delay: 0s; }
.dial.open .dial-menu a:nth-child(2) { transform: translate(-30px, -128px); transition-delay: .03s; }
.dial.open .dial-menu a:nth-child(3) { transform: translate(-64px, -180px); transition-delay: .06s; }
.dial.open .dial-menu a:nth-child(4) { transform: translate(-108px, -228px); transition-delay: .09s; }
.dial.open .dial-menu a:nth-child(5) { transform: translate(-160px, -272px); transition-delay: .12s; }
.dial-scrim { position: fixed; inset: 0; z-index: 29; background: radial-gradient(130% 90% at 100% 100%, rgba(2, 6, 11, .94), rgba(2, 6, 11, .62)); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dial-on .dial-scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 760px) { .dial, .dial-scrim { display: none; } }

/* ---------- stations ---------- */
main { position: relative; z-index: 2; transition: opacity .2s ease-out; }
.station { position: relative; padding: calc(var(--hud-h) + 70px + var(--sat)) 0 40px; }
#home.station { padding-top: calc(var(--hud-h) + 34px + var(--sat)); }
#contact.station { padding-bottom: calc(110px + var(--sab)); }
.wrap { position: relative; margin: 0 calc(var(--gut) + var(--sar)) 0 calc(var(--gut) + var(--sal)); }
.st-mark { position: relative; display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font: 600 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.st-mark b { font-weight: 600; }
.st-n { font: 800 clamp(40px, 7vw, 84px)/.8 var(--display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(245, 165, 36, .55); text-shadow: 0 0 30px rgba(245, 165, 36, .12); transform: translate3d(0, var(--par, 0px), 0); }
.st-node { position: absolute; top: 50%; left: calc(var(--gut) / -2 - 6px); width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--amber); background: var(--bg); box-shadow: 0 0 10px rgba(245, 165, 36, .7); }
.station[data-side="r"] .st-mark { flex-direction: row-reverse; }
.station[data-side="r"] .st-node { left: auto; right: calc(var(--gut) / -2 - 6px); }
#home .st-mark { position: absolute; top: -10px; left: 0; margin: 0; opacity: 0; pointer-events: none; }
@media (max-width: 759px) { .st-node { width: 10px; height: 10px; margin-top: -5px; left: calc(var(--gut) / -2 - 5px); } .station[data-side="r"] .st-node { right: calc(var(--gut) / -2 - 5px); } }

/* glass module */
.mod, .pad-card, .case, .bcard, .sk, .ccard, .mapcard, .tl, .roles .role, .s-head, .rack, .ro { border-radius: 16px; }
.mod, .case, .bcard, .sk, .ccard, .ro, .s-head, .pad-card { background: var(--glass); border: 1px solid var(--bd); box-shadow: 0 0 0 1px rgba(255, 255, 255, .025) inset, 0 18px 50px rgba(0, 0, 0, .45); }
.s-head { padding: 22px 22px 24px; margin-bottom: 18px; }
.s-head .kicker { color: var(--amber); }
.s-head .display { margin-top: 4px; }
@media (min-width: 760px) { .s-head { padding: 28px 30px 30px; } }

/* plug-in flash when a live packet lands (and the amber border sweep on its module) */
@keyframes plug { 0% { box-shadow: 0 0 0 1px rgba(74, 222, 128, .9) inset, 0 0 30px rgba(74, 222, 128, .55); } 100% { box-shadow: 0 0 0 1px rgba(74, 222, 128, 0) inset, 0 0 0 rgba(74, 222, 128, 0); } }
.plug { animation: plug .9s var(--ease); }
.sweep { position: relative; }
.sweep::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; background: conic-gradient(from var(--sw, 0deg), transparent 0 70%, rgba(245, 165, 36, .95) 82%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: sweep 1.1s var(--ease-s) forwards; }
@property --sw { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { from { --sw: 0deg; opacity: 1; } 80% { opacity: 1; } to { --sw: 360deg; opacity: 0; } }

/* ---------- HOME ---------- */
.home { display: grid; gap: 14px; grid-template-columns: 1fr; }
.hero { padding: 18px 18px 22px; }
.idrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.core { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; }
.core img { position: absolute; inset: 8%; width: 84%; height: 84%; border-radius: 50%; background: var(--hud); }
.core::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: var(--hud); box-shadow: 0 0 0 2px rgba(127, 220, 255, .8), 0 0 24px rgba(127, 220, 255, .45); }
.core-ring { position: absolute; inset: -12%; width: 124%; height: 124%; overflow: visible; }
.core-ring circle { fill: none; }
.cr1 { stroke: rgba(127, 220, 255, .25); stroke-width: 1; }
.cr2 { stroke: rgba(127, 220, 255, .7); stroke-width: 3; stroke-dasharray: 1 4; transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.cr3 { stroke: rgba(191, 240, 255, .9); stroke-width: 1.5; }
.core-mk { position: absolute; left: 50%; top: -8%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.who { margin: 0; }
.who b { display: block; font: 700 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: -.02em; color: #fff; }
.who span { display: block; margin-top: 8px; font: 500 12px/1.3 var(--mono); color: var(--hud); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow i { width: 22px; height: 1px; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.hero .display { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.06; }
.lead { color: var(--ink-2); font-size: 16.5px; max-width: 64ch; margin: 16px 0 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.replay-inline { display: none; }
.seen .replay-inline { display: inline-flex; }
.readouts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ro { position: relative; padding: 14px 14px 15px; min-width: 0; }
.ro b { display: flex; align-items: baseline; gap: 5px; font: 800 44px/1 var(--num); font-stretch: 75%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--hud); text-shadow: 0 0 14px rgba(127, 220, 255, .4); }
.ro b small { font: 600 14px var(--mono); color: var(--ink-2); text-shadow: none; }
.ro.lv b { color: var(--good); text-shadow: 0 0 12px rgba(74, 222, 128, .5); }
.ro > span { display: block; margin-top: 8px; font: 500 12px/1.35 var(--mono); color: var(--ink-2); }
.ro .ldot { width: 6px; height: 6px; margin-right: 6px; }
.ro::before { content: ""; position: absolute; left: -1px; top: 18px; width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: var(--hud); box-shadow: 0 0 8px var(--hud); }
.ro.lv::before { background: var(--good); box-shadow: 0 0 8px var(--good); }
@media (min-width: 900px) {
  .home { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; gap: 18px; }
  .hero { grid-column: 1; grid-row: 1 / span 2; padding: 30px 32px 34px; display: grid; grid-template-columns: 1fr; }
  .readouts { grid-column: 2; grid-row: 1; }
  .rack { grid-column: 2; grid-row: 2; }
  .loop, .home .asof { grid-column: 1 / -1; }
  .idrow { gap: 22px; margin-bottom: 26px; }
  .core { width: 108px; height: 108px; }
}
@media (min-width: 1280px) { .core { width: 132px; height: 132px; } }

/* telemetry rack */
.rack { padding: 16px 14px 14px; border: 1.5px solid rgba(127, 220, 255, .55) !important; box-shadow: 0 0 22px rgba(127, 220, 255, .22), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 24px 60px rgba(0, 0, 0, .55) !important; }
.lp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 0 4px; }
.lp-ago { color: var(--ink-3); text-transform: none; letter-spacing: .02em; font-weight: 500; }
.lp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.tile { position: relative; min-width: 0; padding: 12px 12px 13px; border-radius: 12px; background: rgba(3, 10, 18, .7); border: 1px solid rgba(30, 61, 95, .9); }
.tile b { display: block; font: 800 34px/1 var(--num); font-stretch: 75%; font-variant-numeric: tabular-nums; color: var(--hud); text-shadow: 0 0 10px rgba(127, 220, 255, .45); }
.tile > span { display: block; margin-top: 7px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-2); }
.tile.big { grid-column: 1 / -1; border-color: rgba(74, 222, 128, .45); box-shadow: 0 0 18px rgba(74, 222, 128, .1) inset; }
.tile.big b { font-size: 52px; color: var(--good); text-shadow: 0 0 12px rgba(74, 222, 128, .6); }
.tile.gg b { color: var(--good); text-shadow: 0 0 10px rgba(74, 222, 128, .55); padding-right: 44px; }
.tile b span { font: inherit; color: inherit; }
.tile b:empty::before, .tile b span:empty::before, .hud-live b:empty::before { content: "–"; opacity: .4; }
.gauge { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; transform: rotate(-90deg); }
.g-bg { fill: none; stroke: rgba(74, 222, 128, .16); stroke-width: 4; }
.g-fg { fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease-s); filter: drop-shadow(0 0 3px rgba(74, 222, 128, .8)); }
.lp-spark { margin-top: 12px; }
.lp-spark small { display: block; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.spark svg { width: 100%; height: 56px; display: block; }
.spark rect { fill: rgba(74, 222, 128, .55); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s var(--ease-s); }
.spark rect.last { fill: #b8ffd2; }
.spark rect:hover { fill: var(--good); }
.compact .spark rect, .cc-vis .spark rect { fill: rgba(127, 220, 255, .6); }
.ticker { position: relative; overflow: hidden; min-width: 0; max-width: 100%; margin-top: 12px; height: 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.tk-track { display: flex; gap: 8px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(calc(-50% - 4px)); } }
.tk { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 9, 15, .6); font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.tk b { color: var(--good); } .tk.bad b { color: var(--red); }
.tk.new { animation: tknew 2s var(--ease); }
@keyframes tknew { from { background: rgba(74, 222, 128, .32); color: var(--ink); } }
/* the rack's ticker is a vertical bus: the four newest runs, each with a status LED */
.ticker.bus { height: auto; -webkit-mask-image: none; mask-image: none; margin-top: 10px; border-top: 1px solid rgba(30, 61, 95, .8); padding-top: 4px; }
.ticker.bus .tk-track { display: grid; gap: 0; width: auto; animation: none; }
.ticker.bus .tk { position: relative; display: flex; height: 36px; padding: 0 4px 0 18px; border: 0; border-bottom: 1px solid rgba(30, 61, 95, .45); border-radius: 0; background: none; color: var(--hud); font-size: 12px; }
.ticker.bus .tk::before { content: ""; position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.ticker.bus .tk.bad::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.ticker.bus .tk b { margin-left: auto; text-shadow: 0 0 8px rgba(74, 222, 128, .7); }
.ticker.bus .tk:nth-child(n+5), .ticker.bus .tk[aria-hidden] { display: none; }
.ticker.bus .tk.new::before { animation: led 1.6s var(--ease) 3; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .9), 0 0 8px var(--good); } 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0), 0 0 8px var(--good); } }
.ticker.bus .tk.new { animation: none; }
.ldot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 8px var(--good); animation: lpulse 2s ease-out infinite; }
@keyframes lpulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.hud-live .ldot { width: 7px; height: 7px; }
html:not(.live-on) .when-live { display: none !important; }
.live-on .when-stale { display: none !important; }
.live-pill { display: inline-flex; align-items: center; margin-left: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(74, 222, 128, .4); color: var(--good); letter-spacing: .14em; font-size: 11px; }
.live-pill .ldot { width: 6px; height: 6px; margin-right: 6px; }
.livepanel.compact { margin: 6px 0 22px; padding: 14px 16px; border-radius: 14px; background: rgba(3, 10, 18, .7); border: 1px solid rgba(74, 222, 128, .35); }
.livepanel.compact .lp-head { color: var(--good); padding: 0; }
.livepanel.compact .spark rect { fill: rgba(127, 220, 255, .6); }

.loop { padding: 22px 20px 24px; }
.loop .kicker { color: var(--amber); }
.loop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.loop-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(30, 61, 95, .9); background: rgba(3, 10, 18, .6); color: var(--ink-2); cursor: pointer; font: 600 13.5px var(--mono); transition: color .2s, border-color .2s, box-shadow .2s; }
.loop-tabs button span { color: var(--ink-3); font-size: 11px; }
.loop-tabs button[aria-selected="true"] { color: #fff; border-color: var(--amber); box-shadow: 0 0 14px rgba(245, 165, 36, .3), 0 0 0 1px rgba(245, 165, 36, .25) inset; background: linear-gradient(180deg, rgba(40, 26, 8, .9), rgba(8, 14, 24, .9)); }
.loop-tabs button[aria-selected="true"] span { color: var(--amber); }
.loop-panels { color: var(--ink-2); font-size: 16.5px; max-width: 70ch; min-height: 3.2em; }
.loop-panels [role="tabpanel"]:not([hidden]) { animation: fadeup .45s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.asof { margin: 2px 4px 0; font: 500 12px var(--mono); color: var(--ink-3); }

/* ---------- WORK ---------- */
.pad { margin-bottom: 14px; }
.pad-card { position: relative; display: block; overflow: hidden; color: var(--ink); text-decoration: none; min-height: 220px; }
.pad-card img { width: 100%; height: 100%; min-height: 220px; max-height: 420px; object-fit: cover; object-position: 35% 52%; opacity: .9; transition: transform .8s var(--ease-s); }
.pad-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 9, 15, 0) 30%, rgba(4, 12, 22, .94)); }
.pad-t { position: absolute; z-index: 1; left: 20px; right: 56px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.pad-t .kicker { margin: 0; color: var(--amber); }
.pad-t b { font: 700 clamp(26px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.02em; }
.pad-t small { font: 500 12.5px var(--mono); color: var(--ink-2); }
.pad-card .chev { position: absolute; z-index: 1; right: 18px; bottom: 22px; width: 22px; height: 22px; color: var(--hud); }
.pad-card:hover img { transform: scale(1.03); }
.deck { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .deck { grid-template-columns: 1fr 1fr; } .case[data-dossier="quotes"] { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .deck { grid-template-columns: 1fr 1fr 1fr; } }
.case { position: relative; overflow: hidden; }
.case[data-dossier="quotes"] { border: 1.5px solid rgba(127, 220, 255, .6); box-shadow: 0 0 22px rgba(127, 220, 255, .22), 0 24px 60px rgba(0, 0, 0, .55); }
.case-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.cc-vis { position: relative; height: 150px; overflow: hidden; border-bottom: 1px solid var(--bd); background: radial-gradient(circle at 70% 120%, rgba(127, 220, 255, .22), transparent 65%); }
.cc-vis.ops-spark { display: flex; align-items: flex-end; padding: 22px 22px 18px; }
.ops-spark .spark { width: 100%; }
.ops-spark .spark svg { height: 104px; }
.ops-spark::before { content: ""; position: absolute; left: 22px; right: 22px; bottom: 18px; height: 1px; background: repeating-linear-gradient(90deg, rgba(127, 220, 255, .45) 0 6px, transparent 6px 11px); }
.cc-vis img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .8s var(--ease-s); }
.case-card:hover .cc-vis img { transform: scale(1.04); }
.cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cc-body .kicker { color: var(--hud); font-size: 10.5px; }
.cc-body h3 { font: 650 20px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 8px; }
.cc-body p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.cc-body p b { color: var(--ink); }
.cc-open { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); color: var(--hud); }
.cc-open .ic { transition: transform .25s var(--ease); }
.case-card:hover .cc-open .ic { transform: translateX(4px); }
.v-flow { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 12px; }
.v-flow span { flex: none; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(127, 220, 255, .5); background: rgba(5, 14, 25, .95); font: 600 11px var(--mono); color: var(--ink); white-space: nowrap; }
.v-flow span.hi { border-color: var(--amber); color: #fff; box-shadow: 0 0 12px rgba(245, 165, 36, .6); background: linear-gradient(180deg, rgba(40, 26, 8, .95), rgba(8, 14, 24, .95)); }
.v-flow i { flex: 1; min-width: 6px; max-width: 26px; height: 1.5px; background: rgba(127, 220, 255, .6); }
@media (max-width: 560px) { .v-flow { flex-wrap: wrap; row-gap: 14px; align-content: center; padding: 0 10px; } .v-flow span { font-size: 10.5px; padding: 6px 8px; } .v-flow i { max-width: 22px; } .v-flow i:nth-of-type(2) { flex-basis: 100%; max-width: none; height: 0; } }
.v-phones { display: flex; justify-content: center; gap: 14px; padding-top: 16px; }
.v-phones img { width: 74px; height: auto; object-fit: initial; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 0 22px rgba(127, 220, 255, .25); }
.v-phones img + img { margin-top: 18px; }

/* the quote desk drawn as a circuit: a packet runs the pipeline; "Code: the price" ignites */
.qd { height: auto; padding: 18px 16px 18px 40px; display: grid; gap: 8px; background: radial-gradient(80% 120% at 50% 0%, rgba(127, 220, 255, .08), transparent 70%); }
.qc { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(9, 24, 40, .97), rgba(5, 14, 25, .97)); border: 1px solid rgba(127, 220, 255, .45); font: 700 12.5px/1.25 var(--mono); color: #fff; }
.qc em { grid-row: span 2; font: 700 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--hud); font-style: normal; white-space: nowrap; min-width: 18px; }
.qc small { font: 500 10.5px/1.3 var(--mono); color: var(--ink-2); }
.qc.hot { border: 1.5px solid var(--amber); background: linear-gradient(180deg, rgba(40, 26, 8, .97), rgba(8, 14, 24, .97)); box-shadow: 0 0 0 1px rgba(245, 165, 36, .3) inset; }
.qc.hot em { color: var(--amber); }
.qd-bus { position: absolute; left: 22px; top: 30px; bottom: 30px; width: 1.5px; background: rgba(127, 220, 255, .55); box-shadow: 0 0 6px rgba(127, 220, 255, .4); }
.qd-pk { position: absolute; z-index: 2; left: 22px; top: 30px; width: 9px; height: 9px; margin: -4.5px 0 0 -3.75px; border-radius: 50%; background: #fff6e0; box-shadow: 0 0 0 3px rgba(245, 165, 36, .35), 0 0 16px 4px rgba(245, 165, 36, .9); animation: qdy 4.2s var(--ease-s) infinite; animation-play-state: paused; }
@keyframes qdy { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(var(--qdh, 220px)); opacity: 0; } }
.qc::before { content: ""; position: absolute; left: -19px; top: 50%; width: 18px; height: 1.5px; background: rgba(127, 220, 255, .55); }
.qc::after { content: ""; position: absolute; left: -22px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; border: 1.5px solid var(--hud); background: var(--bg); }
.qd.play .qd-pk, .qd.play .qc { animation-play-state: running; }
.qc { animation: qhit 4.2s linear infinite; animation-play-state: paused; }
.qc:nth-of-type(1) { animation-delay: -4.0s; } .qc:nth-of-type(2) { animation-delay: -3.25s; }
.qc:nth-of-type(4) { animation-delay: -1.75s; } .qc:nth-of-type(5) { animation-delay: -1.0s; }
.qc.hot { animation: qhot 4.2s linear infinite; animation-delay: -2.5s; animation-play-state: paused; }
@keyframes qhit { 0%, 100% { box-shadow: none; } 3% { box-shadow: 0 0 16px rgba(127, 220, 255, .6); border-color: #bff0ff; } 14% { box-shadow: none; } }
@keyframes qhot { 0%, 100% { box-shadow: 0 0 10px rgba(245, 165, 36, .35); } 3% { box-shadow: 0 0 34px rgba(245, 165, 36, 1), 0 0 0 4px rgba(245, 165, 36, .25); } 22% { box-shadow: 0 0 12px rgba(245, 165, 36, .45); } }
@media (min-width: 760px) {
  .case[data-dossier="quotes"] .case-card { flex-direction: column-reverse; }
  .case[data-dossier="quotes"] .cc-vis { border-bottom: 0; border-top: 1px solid var(--bd); }
  .qd { grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 34px 22px 26px; }
  .qc { display: block; padding: 12px; min-height: 84px; font-size: 13px; }
  .qc em { position: absolute; top: -18px; left: 2px; }
  .qc small { display: block; margin-top: 6px; }
  .qc::before { left: -19px; width: 18px; }
  .qc:first-of-type::before, .qc:first-of-type::after { display: none; }
  .qc::after { left: -13px; }
  .qd-bus { left: 22px; right: 22px; top: calc(34px + 42px); bottom: auto; width: auto; height: 1.5px; }
  .qd-pk { top: calc(34px + 42px); left: 22px; margin: -4.5px 0 0 -4.5px; animation-name: qdx; }
  @keyframes qdx { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(var(--qdw, 600px)); opacity: 0; } }
  .case[data-dossier="quotes"] .cc-body { padding: 22px 24px 4px; }
  .case[data-dossier="quotes"] .cc-body h3 { font-size: clamp(22px, 2.2vw, 28px); }
}

/* card tilt + glare (fine pointers) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.tilt.tilting { transition: transform .08s linear; }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 220, 255, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.tilt.tilting::before { opacity: 1; }
.case-card.tilt, .b-face.tilt, .mapcard.tilt, .pad-card.tilt { position: relative; }

/* ---------- details inside cards (hidden on the page with JS; shown in the dossier) ---------- */
.js .station .detail { display: none; }
.detail .tags, .b-more .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tags span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(30, 61, 95, .9); background: rgba(3, 10, 18, .6); font: 500 11.5px/1 var(--mono); color: var(--ink-2); }
.blk { margin: 0 0 22px; }
.blk > p:not(.kicker) { color: var(--ink-2); margin: 0 0 10px; }
.blk .kicker, .result .kicker { color: var(--amber); }
.built { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.built li { position: relative; padding-left: 20px; color: var(--ink-2); }
.built li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--hud); }
.built b { color: var(--ink); }
.result { margin: 0 0 22px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .06); }
.result p:not(.kicker) { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.facts span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--bd); font: 500 12px var(--mono); color: var(--ink-2); }
.cap { font-size: 14px; color: var(--ink-3); }
.flow ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flow button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(30, 61, 95, .9); background: rgba(3, 10, 18, .6); color: var(--ink-2); cursor: pointer; font: 600 13px var(--mono); transition: border-color .2s, color .2s, box-shadow .2s; }
.flow button span { color: var(--ink-3); font-size: 11px; }
.flow button[aria-pressed="true"] { color: #fff; border-color: var(--hud); box-shadow: 0 0 12px rgba(127, 220, 255, .3); }
.flow button[aria-pressed="true"] span { color: var(--hud); }
.flow-d { min-height: 3em; margin: 0 0 12px; color: var(--ink); padding: 12px 14px; border-left: 2px solid var(--hud); background: rgba(127, 220, 255, .05); border-radius: 0 10px 10px 0; }
.guards { display: flex; flex-wrap: wrap; gap: 8px; }
.guards span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(30, 61, 95, .9); background: rgba(3, 10, 18, .6); font: 500 12px var(--mono); color: var(--ink-2); }
.guards .ic { width: 14px; height: 14px; color: var(--good); }
.shots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 6px 0; }
.shots.phones { grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); }
.shot { padding: 0; border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; transition: border-color .2s, transform .25s var(--ease); }
.shot:hover { border-color: var(--hud); transform: translateY(-2px); }
.shot img { width: 100%; height: 120px; object-fit: cover; }
.shots.phones .shot img { height: auto; }

/* ---------- DOSSIER + LIGHTBOX ---------- */
.dossier { width: min(980px, calc(100vw - 20px)); max-height: calc(100dvh - 24px - var(--sat) - var(--sab)); margin: auto; padding: 0; border-radius: 18px; border: 1.5px solid rgba(127, 220, 255, .55); background: linear-gradient(165deg, rgba(12, 28, 46, .98), rgba(5, 13, 23, .99)); color: var(--ink); box-shadow: 0 0 30px rgba(127, 220, 255, .2), 0 40px 120px rgba(0, 0, 0, .7); overflow: auto; overscroll-behavior: contain; transform-origin: 50% 0; }
.dossier::backdrop { background: rgba(2, 6, 11, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dossier[open] { animation: dlg-in .3s var(--ease); }
.dossier.flip[open] { animation: none; }
.dossier.closing::backdrop { opacity: 0; transition: opacity .2s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.d-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px 22px; background: linear-gradient(rgba(10, 24, 40, .98), rgba(10, 24, 40, .92)); border-bottom: 1px solid var(--bd); }
.d-bar .kicker { margin: 0; color: var(--amber); }
.d-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--bd2); background: transparent; color: var(--ink); cursor: pointer; }
.d-x:hover { border-color: var(--hud); }
.d-title { font: 700 clamp(24px, 3.2vw, 36px)/1.12 var(--display); letter-spacing: -.02em; margin: 20px 22px 18px; }
.d-body { padding: 0 22px 28px; }
.d-body .detail { display: block !important; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 6, 11, .96); color: var(--ink); }
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(16px + var(--sat)) 12px calc(16px + var(--sab)); }
.lb img { max-width: min(1400px, 96vw); max-height: 76dvh; width: auto; border-radius: 10px; border: 1px solid var(--bd); }
.lb-cap { margin: 0; max-width: 70ch; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.lb-bar { display: flex; gap: 10px; }
.lb-bar button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--bd2); background: rgba(10, 26, 42, .85); cursor: pointer; }

/* ---------- BUILDS ---------- */
.mapcard { position: relative; display: grid; min-height: 300px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1.5px solid rgba(74, 222, 128, .45); background: radial-gradient(90% 120% at 80% 50%, rgba(40, 110, 170, .25), rgba(4, 9, 15, .95) 70%); box-shadow: 0 0 22px rgba(74, 222, 128, .12), 0 24px 60px rgba(0, 0, 0, .5); }
.map-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-t { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px 26px; max-width: 480px; background: linear-gradient(90deg, rgba(4, 9, 15, .88), rgba(4, 9, 15, 0)); }
.map-t b { font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: -.02em; }
.map-t > span:not(.kicker):not(.btn) { color: var(--ink-2); font-size: 15.5px; }
.map-t .kicker { margin: 0; color: var(--good); }
.map-t .btn { margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 14px; padding: 6px; border-radius: 14px; border: 1px solid var(--bd); background: rgba(3, 10, 18, .75); width: fit-content; max-width: 100%; }
.filters button { position: relative; overflow: hidden; min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; font: 600 13px var(--mono); transition: color .2s, background .2s, box-shadow .2s; }
.filters button[aria-pressed="true"] { color: #021420; background: var(--hud); box-shadow: 0 0 14px rgba(127, 220, 255, .45); }
.bgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .bgrid { grid-template-columns: 1fr 1fr 1fr; } }
.bcard { position: relative; transition: border-color .3s, box-shadow .3s; scroll-margin-top: calc(var(--hud-h) + 30px); }
.bcard.hide { display: none; }
.bcard.open { grid-column: 1 / -1; border-color: rgba(127, 220, 255, .6); box-shadow: 0 0 22px rgba(127, 220, 255, .2), 0 24px 60px rgba(0, 0, 0, .55); }
.b-face { display: grid; grid-template-columns: 1fr; text-decoration: none; color: var(--ink); border-radius: 16px; padding: 14px 16px 16px; }
@media (min-width: 760px) {
  .bcard.open .b-face { grid-template-columns: minmax(200px, 320px) 1fr; column-gap: 22px; align-items: center; }
  .bcard.open .b-face .demo { grid-row: span 2; }
}
.demo { width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 12px; background: radial-gradient(120% 100% at 30% 0%, rgba(127, 220, 255, .1), rgba(2, 6, 11, .75)); border: 1px solid rgba(30, 61, 95, .9); margin-bottom: 14px; overflow: visible; }
.b-t small { display: block; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hud); }
.b-t b { display: block; font: 650 19px/1.2 var(--display); margin-top: 5px; }
.metric { justify-self: start; margin-top: 12px; font: 600 12px var(--mono); color: var(--amber); padding: 6px 10px; border-radius: 8px; background: rgba(245, 165, 36, .08); border: 1px solid rgba(245, 165, 36, .3); }
/* spring accordion (js wraps the contents in .b-in) */
.b-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--spring); }
.b-more > .b-in { min-height: 0; overflow: hidden; padding: 0 16px; }
.bcard.open .b-more { grid-template-rows: 1fr; }
.bcard.open .b-more > .b-in { padding-bottom: 18px; }
.b-more p { color: var(--ink-2); margin: 0 0 12px; max-width: 72ch; }
.no-js .b-more { display: block; padding: 0 16px 18px; }
.demo text { font: 600 9px var(--mono); fill: var(--ink-3); }
.demo .ln { fill: none; stroke: rgba(127, 220, 255, .35); stroke-width: 1.5; }
.demo .fl { fill: none; stroke: var(--hud); stroke-width: 1.6; stroke-dasharray: 3 7; animation: dash 1.4s linear infinite; animation-play-state: paused; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.demo .dots circle { fill: var(--hud); }
.demo .drift circle { fill: var(--red); transition: transform 1s var(--ease), fill 1s; }
.demo .drift .d1 { transform: translateX(9px); } .demo .drift .d3 { transform: translateX(-11px); }
.demo .drift .d2 { transform: translateX(6px); } .demo .drift .d4 { transform: translateX(-7px); }
.demo .core { fill: var(--amber); }
.demo .gate { fill: var(--good); }
.demo .pl { fill: none; stroke: var(--hud); stroke-width: 2; }
.demo .dead { stroke: var(--ink-3); stroke-dasharray: 4 5; stroke-width: 1.6; fill: none; }
.demo .area { fill: rgba(127, 220, 255, .12); }
.demo .up { stroke: var(--hud); stroke-width: 2.2; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.4s var(--ease); }
.demo .dev { fill: rgba(127, 220, 255, .05); stroke: var(--bd2); stroke-width: 1.5; }
.demo .pulse { fill: none; stroke: var(--good); stroke-width: 1.5; transform-origin: 139px 52px; animation: ping 2s ease-out infinite; animation-play-state: paused; }
.demo .pulse.p2 { animation-delay: -1s; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.demo .road { fill: none; stroke: rgba(127, 220, 255, .18); stroke-width: 8; stroke-linecap: round; }
.demo .car { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 4 26; }
.demo .bub { fill: rgba(127, 220, 255, .1); stroke: var(--bd2); }
.demo .bub.me { fill: rgba(245, 165, 36, .12); stroke: rgba(245, 165, 36, .45); }
.demo .post { fill: var(--good); opacity: .25; transition: opacity .6s; }
.demo .pt { fill: #04101a; text-anchor: middle; font-size: 10px; }
.demo .cur { fill: var(--amber); }
.demo .mask { fill: rgba(255, 122, 107, .14); stroke: rgba(255, 122, 107, .45); }
.demo .mask + text, .demo .mask ~ text { fill: var(--red); }
.demo .cd { fill: #0a1622; stroke-width: 2; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.demo .c1 { stroke: var(--good); transform: rotate(-12deg); }
.demo .c2 { stroke: var(--amber); }
.demo .c3 { stroke: var(--red); transform: rotate(12deg); }
.bcard:hover .demo .fl, .bcard.open .demo .fl, .bcard:hover .pulse, .bcard.open .pulse, .bcard.vis .demo .fl, .bcard.vis .pulse { animation-play-state: running; }
.bcard:hover .drift circle, .bcard.open .drift circle { transform: none; fill: var(--hud); }
.bcard:hover .up, .bcard.open .up { stroke-dashoffset: 0; }
.bcard:hover .post, .bcard.open .post { opacity: 1; }
.bcard:hover .c1, .bcard.open .c1 { transform: rotate(-24deg) translateX(-10px); }
.bcard:hover .c3, .bcard.open .c3 { transform: rotate(24deg) translateX(10px); }

/* ---------- CAREER ---------- */
.tl { position: relative; padding: 16px 14px 34px; margin: 0 0 14px; border: 1px solid var(--bd); background: rgba(3, 10, 18, .82); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.tl-lane { position: relative; height: 40px; margin: 0 0 8px 0; border-bottom: 1px dashed rgba(30, 61, 95, .8); }
.tl-lane-l { position: absolute; left: 0; top: -2px; font: 600 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tl-bar { position: absolute; top: 14px; height: 22px; padding: 0 6px; border-radius: 4px; border: 1px solid rgba(127, 220, 255, .45); background: rgba(10, 30, 50, .95); color: var(--ink-2); font: 600 10.5px/20px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tl-bar.ns { border-color: rgba(127, 220, 255, .7); }
.tl-bar.pd { border-color: rgba(245, 165, 36, .7); color: var(--amber); }
.tl-bar[aria-pressed="true"] { background: var(--hud); color: #021420; box-shadow: 0 0 14px rgba(127, 220, 255, .6); }
.tl-bar.pd[aria-pressed="true"] { background: var(--amber); }
.tl-axis { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 14px; }
.tl-axis span { position: absolute; transform: translateX(-50%); font: 500 10px var(--mono); color: var(--ink-3); }
.tl-now { position: absolute; top: 10px; bottom: 26px; width: 1.5px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tl > .tl-lane, .tl > .tl-now { margin-left: 0; }
.tl .tl-lane { margin-right: 0; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.role { padding: 16px 18px; border: 1px solid var(--bd); background: var(--glass); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.js .role { display: none; }
.js .role.on { display: block; border-color: rgba(127, 220, 255, .55); box-shadow: 0 0 20px rgba(127, 220, 255, .18), 0 18px 50px rgba(0, 0, 0, .45); animation: fadeup .45s var(--ease); }
.r-org { margin: 0; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hud); }
.role h3 { margin: 6px 0 2px; font: 650 21px/1.2 var(--display); }
.r-when { margin: 0 0 10px; font: 500 12.5px var(--mono); color: var(--amber); }
.role p:last-child { margin: 0; color: var(--ink-2); }
.thread, .edu { margin: 16px 4px 0; color: var(--ink-2); max-width: 74ch; }
.edu b { color: var(--ink); }
.skills { margin-top: 30px; }
.skills > .kicker { color: var(--amber); }
.sk-grid { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sk-grid { grid-template-columns: 1fr 1fr; } .sk.feat { grid-column: 1 / -1; } }
.sk { padding: 18px 18px 16px; }
.sk h4 { margin: 0; font: 650 18px/1.2 var(--display); }
.sk .sub { margin: 4px 0 12px; color: var(--ink-3); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(30, 61, 95, .9); background: rgba(3, 10, 18, .6); color: var(--ink-2); font: 500 12.5px var(--mono); }
.sk.feat .chips li { color: var(--ink); }

/* ---------- CONTACT: the end of the trace ---------- */
.contact { display: grid; justify-items: center; }
.signal { position: relative; width: 120px; height: 120px; margin: 4px 0 -30px; z-index: 0; }
.signal i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(127, 220, 255, .5); animation: sig 3s ease-out infinite; animation-play-state: paused; }
.signal i:nth-child(2) { animation-delay: 1s; } .signal i:nth-child(3) { animation-delay: 2s; }
.signal.vis i { animation-play-state: running; }
.signal::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px var(--amber); }
@keyframes sig { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.ccard { position: relative; z-index: 1; width: min(640px, 100%); padding: 28px 22px 24px; text-align: center; border: 1.5px solid rgba(127, 220, 255, .55); box-shadow: 0 0 26px rgba(127, 220, 255, .2), 0 24px 60px rgba(0, 0, 0, .55); }
.c-face { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(127, 220, 255, .8), 0 0 20px rgba(127, 220, 255, .4); }
.c-who { margin: 10px 0 4px; color: var(--ink-2); }
.c-who b { color: var(--ink); }
.c-p { margin: 0 0 20px; color: var(--ink-2); }
.c-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
.c-list .btn { justify-content: center; }
@media (min-width: 520px) { .c-list { grid-template-columns: 1fr 1fr; } .c-list .btn.pri { grid-column: 1 / -1; } }
.copied { min-height: 1.4em; margin: 12px 0 0; font: 500 13px var(--mono); color: var(--good); }
.fine { margin: 22px 0 0; font: 500 12px var(--mono); color: var(--ink-3); text-align: center; }

/* ---------- docking: modules fly in from depth as the camera arrives ---------- */
.js:not(.rm) .rv { opacity: 0; transform: perspective(1100px) translate3d(0, 46px, -150px) rotateX(9deg); }
.js:not(.rm) .rv.rv-in { opacity: 1; transform: none; transition: opacity .5s ease-out var(--d, 0s), transform .78s var(--spring) var(--d, 0s); }
.js:not(.rm) .rv.rv-in.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.warping main { opacity: 0; transition: opacity .16s ease-in; }
.warping .hud, .warping .dial { pointer-events: none; }

/* ---------- OPENING FLIGHT ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 100; background: #02060b; color: var(--ink); overflow: hidden; outline: none; }
.intro-on .intro { display: block; }
.intro-on body { overflow: hidden; }
.intro.out { opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-s), transform .8s var(--ease-s); pointer-events: none; }
.i-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.i-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(2, 6, 11, .85)); }
.stage { position: absolute; left: 0; right: 0; top: var(--sat); bottom: calc(84px + var(--sab)); }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px calc(6vw + var(--sar)) 20px calc(6vw + var(--sal)); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-s), visibility 0s .5s; }
.beat.on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-s), visibility 0s; }
.beat [data-at] { opacity: 0; transform: translate3d(0, 16px, 0); }
.beat [data-at].in { opacity: 1; transform: none; transition: opacity .55s ease-out, transform .75s var(--spring); }
.i-kick { margin: 0 0 14px; font: 600 12.5px/1.3 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--hud); }
.i-big { margin: 0; font: 700 clamp(36px, 6.2vw, 92px)/1.02 var(--display); letter-spacing: -.03em; max-width: 15ch; text-shadow: 0 2px 30px rgba(2, 6, 11, .9); }
.i-sub { margin: 18px 0 0; max-width: 46ch; font-size: clamp(16px, 1.6vw, 21px); color: var(--ink-2); text-shadow: 0 1px 14px rgba(2, 6, 11, .95); }
.i-sub b { color: var(--good); font-variant-numeric: tabular-nums; }
.i-lbl { margin: 0 0 12px; font: 700 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.b-pro { align-items: center; text-align: center; }
.b-pro .i-big { max-width: 12ch; }
.b-pro .i-sub { margin-left: auto; margin-right: auto; }
.i-copy { position: relative; z-index: 2; max-width: 720px; }
.b-design { justify-content: flex-start; padding-top: max(56px, 9vh); }
.i-pipe { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; max-width: min(1500px, 88vw); }
.pnode { position: relative; padding: 14px 14px 15px; border-radius: 12px; background: linear-gradient(180deg, rgba(9, 24, 40, .97), rgba(5, 14, 25, .97)); border: 1px solid rgba(127, 220, 255, .55); font: 700 clamp(13px, 1vw, 18px)/1.25 var(--mono); transition: box-shadow .3s, border-color .3s; }
.pnode i { position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; border: 1.5px solid var(--hud); background: #02060b; }
.pnode b { display: block; color: #fff; }
.pnode small { display: block; margin-top: 6px; font: 500 clamp(11px, .8vw, 14px)/1.3 var(--mono); color: var(--ink-2); }
.pnode.hi { border: 1.5px solid var(--amber); background: linear-gradient(180deg, rgba(40, 26, 8, .97), rgba(8, 14, 24, .97)); }
.pnode.hit { border-color: #bff0ff; box-shadow: 0 0 22px rgba(127, 220, 255, .5); }
.pnode.hi.hit { border-color: var(--amber); box-shadow: 0 0 40px rgba(245, 165, 36, .95), 0 0 0 4px rgba(245, 165, 36, .22); }
.b-build { justify-content: flex-start; padding-top: max(56px, 9vh); }
.i-fly { position: absolute; inset: 0; perspective: 900px; pointer-events: none; overflow: hidden; }
.fc { position: absolute; left: 50%; top: 52%; width: clamp(180px, 22vw, 340px); margin: 0; transform-style: preserve-3d; opacity: 0; }
.fc img { width: 100%; border-radius: 10px; border: 1px solid rgba(127, 220, 255, .5); box-shadow: 0 0 30px rgba(127, 220, 255, .25), 0 20px 60px rgba(0, 0, 0, .6); }
.fc figcaption { margin-top: 8px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hud); text-align: center; }
.fc.in { animation: fly 2.6s cubic-bezier(.4, 0, .9, .6) forwards; }
.fc:nth-child(1) { --fx: -150%; --fy: -95%; } .fc:nth-child(2) { --fx: 40%; --fy: -80%; }
.fc:nth-child(3) { --fx: -120%; --fy: -10%; width: clamp(90px, 9vw, 150px); } .fc:nth-child(4) { --fx: 30%; --fy: 0%; }
.fc:nth-child(5) { --fx: -160%; --fy: -60%; } .fc:nth-child(6) { --fx: 60%; --fy: -40%; width: clamp(110px, 12vw, 190px); }
.fc:nth-child(7) { --fx: -60%; --fy: -110%; } .fc:nth-child(8) { --fx: -50%; --fy: 10%; }
@keyframes fly { 0% { opacity: 0; transform: translate(-50%, -50%) translate3d(calc(var(--fx) * .2), calc(var(--fy) * .2), -1400px); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) translate3d(calc(var(--fx) * 1.6), calc(var(--fy) * 1.6), 420px); } }
.i-stat { position: absolute; z-index: 2; left: calc(6vw + var(--sal)); bottom: 26px; display: flex; align-items: baseline; gap: 14px; max-width: 560px; }
.i-stat b { font: 800 clamp(52px, 7vw, 96px)/1 var(--num); font-stretch: 75%; color: var(--hud); text-shadow: 0 0 24px rgba(127, 220, 255, .55); white-space: nowrap; }
.i-stat span { color: var(--ink-2); font-size: clamp(14px, 1.4vw, 18px); }
.b-run { justify-content: flex-start; padding-top: max(56px, 9vh); }
.i-run { position: relative; z-index: 2; display: grid; grid-template-columns: max-content 1fr; gap: 14px 16px; margin-top: 28px; max-width: 560px; }
.i-run > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.i-run b { font: 800 clamp(40px, 4.6vw, 64px)/1 var(--num); font-stretch: 75%; font-variant-numeric: tabular-nums; color: var(--good); text-shadow: 0 0 18px rgba(74, 222, 128, .55); }
.i-run span { color: var(--ink-2); font: 500 clamp(13px, 1.2vw, 15px)/1.3 var(--mono); }
.i-live { position: relative; z-index: 2; margin-top: 20px; max-width: 520px; }
.i-live .spark svg { height: 36px; }
.i-src { position: relative; z-index: 2; margin: 16px 0 0; font: 500 12px var(--mono); color: var(--ink-3); }
.b-fin { align-items: center; justify-content: center; text-align: center; }
.f-face { position: relative; width: clamp(120px, 16vw, 190px); height: clamp(120px, 16vw, 190px); margin-bottom: 22px; border-radius: 50%; background: var(--hud); box-shadow: 0 0 0 2px rgba(127, 220, 255, .85), 0 0 40px rgba(127, 220, 255, .45); }
.f-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; }
.f-name { max-width: none; }
.b-fin .i-kick { margin-top: 14px; }
.f-enter { margin-top: 18px; }
@media (max-aspect-ratio: 5/4) {
  .i-pipe { grid-template-columns: 1fr; gap: 10px; max-width: 420px; margin-top: 24px; padding-left: 26px; }
  .pnode { padding: 10px 12px; font-size: 13px; }
  .pnode small { margin-top: 3px; }
  .pnode i { left: -22px; top: 50%; margin: -4.5px 0 0; }
  .fc { width: clamp(150px, 44vw, 260px); }
  .i-stat { flex-direction: column; gap: 4px; right: calc(6vw + var(--sar)); }
  .i-live { position: absolute; left: calc(6vw + var(--sal)); right: calc(6vw + var(--sar)); bottom: 6px; max-width: none; margin: 0; }
  .i-live .spark { display: none; }
  .live-on .b-run .i-src { display: none; }
}
.i-hint { position: absolute; left: 0; right: 0; bottom: calc(82px + var(--sab)); margin: 0; text-align: center; font: 500 11px var(--mono); letter-spacing: .1em; color: var(--ink-3); transition: opacity .6s; }
.i-hint.gone { opacity: 0; }
.i-hint .k-touch { display: none; }
@media (hover: none) { .i-hint .k-desk { display: none; } .i-hint .k-touch { display: inline; } }
.ibar { position: absolute; left: 50%; bottom: calc(18px + var(--sab)); transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 16px; background: linear-gradient(165deg, rgba(14, 32, 52, .94), rgba(6, 16, 28, .96)); border: 1px solid var(--bd); }
.ib { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(3, 10, 18, .6); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; }
.ib:hover { border-color: var(--bd2); }
.ib.skip { color: #021420; background: var(--hud); border-color: transparent; padding: 0 14px; }
.i-chap { flex: none; min-width: 92px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.i-track { position: relative; flex: 1; height: 44px; cursor: pointer; touch-action: none; }
.i-segs { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; display: flex; gap: 4px; }
.i-segs > div { position: relative; overflow: hidden; border-radius: 2px; background: rgba(127, 220, 255, .16); }
.i-segs i { position: absolute; inset: 0; background: var(--hud); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 8px var(--hud); }
.i-knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@media (max-width: 560px) { .i-chap { display: none; } .ibar { gap: 6px; } .i-kick { letter-spacing: .16em; } }
@media (max-height: 520px) { .stage { bottom: 64px; } .beat { padding-top: 34px; } .i-big { font-size: clamp(26px, 5vw, 48px); } }
/* reduced motion: the presentation as one static page */
.intro.static .stage { overflow: auto; bottom: calc(76px + var(--sab)); }
.intro.static .beat { position: relative; inset: auto; min-height: 0; opacity: 1; visibility: visible; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--bd); }
.intro.static .i-fly { position: relative; display: flex; flex-wrap: wrap; gap: 10px; perspective: none; margin-top: 20px; }
.intro.static .fc { position: static; opacity: 1; transform: none; width: 140px; animation: none; }
.intro.static .i-stat, .intro.static .i-live { position: relative; left: auto; right: auto; bottom: auto; margin-top: 20px; }
.intro.static .i-track, .intro.static #i-play, .intro.static .i-chap, .intro.static .i-hint { display: none; }
.intro.static .ibar { width: auto; }

/* reduced motion everywhere */
.rm *, .rm *::before, .rm *::after { animation: none !important; transition-duration: .01ms !important; }

/* ---------- print: the whole résumé in one column ---------- */
@media print {
  @page { margin: 14mm; }
  html, body, html.js, html.js body { background: #fff !important; color: #111 !important; }
  .world, .pk-layer, .intro, .hud, .dial, .dial-scrim, .skiplink, .st-mark, .core-ring, .core-mk, .signal, .replay-inline, .cta, .filters, .mapcard canvas, .tl, .dossier, .lb, .c-list, .copied, .fine, .cc-open, .d-x, .cc-vis, .rack, .gauge { display: none !important; }
  main { opacity: 1 !important; }
  .js body::after { display: none !important; }
  .station { padding: 0 0 8mm !important; }
  .wrap { margin: 0 !important; }
  .js .rv { opacity: 1 !important; transform: none !important; }
  .js .station .detail, .b-more, .js .roles .role { display: block !important; }
  .b-more > .b-in { padding: 0 !important; overflow: visible; }
  * { color: #111 !important; background: none !important; box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-color: #ccc !important; -webkit-text-stroke: 0 !important; }
  .display { font-size: 28px; } .display.s { font-size: 22px; }
  .home, .readouts, .deck, .bgrid, .sk-grid { display: block !important; }
  .readouts { display: flex !important; flex-wrap: wrap; gap: 8px; }
  .ro { border: 1px solid #ccc; padding: 6px 10px; }
  .ro::before { display: none; }
  .core, .demo, .shots, .pad-card img, .c-face, .av { display: none !important; }
  .pad-card { min-height: 0; } .pad-t { position: static; } .pad-card::after { display: none; }
  .mod, .case, .bcard, .sk, .ccard, .ro, .s-head, .pad-card, .role { border: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .bcard, .case, .role, .sk { break-inside: avoid; margin-bottom: 4mm; }
  .tilt { transform: none !important; }
  a { text-decoration: none; }
}
