:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --panel: #111418;
  --line: #1f242b;
  --line-2: #2b323b;
  --fg: #ece9e2;
  --muted: #7d858f;
  --accent: #ff5b2e;   /* signal orange */
  --accent-2: #7cf7c1; /* phosphor green */
  --accent-3: #8ab4ff; /* trace blue */
  --accent-4: #f5c542; /* metric amber */
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
button, [role="button"] { cursor: pointer; }
b { font-weight: 600; color: var(--fg); }
code { font-family: var(--mono); color: var(--accent-2); background: #0f1a15; padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor ----------
   The system pointer always stays visible; the ring is only a trailing accent. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
  .cursor.is-visible { opacity: 1; }
  .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; }
  .cursor.is-hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255,255,255,.1); }
  .cursor.is-down .cursor-ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,91,46,.6); } 100% { box-shadow: 0 0 0 10px rgba(255,91,46,0); } }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: linear-gradient(to bottom, rgba(7,8,10,.85), rgba(7,8,10,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--accent-2); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a.is-active::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--accent); }

.sound-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .3s, color .3s, box-shadow .4s;
}
.sound-toggle:hover { border-color: var(--fg); color: var(--fg); }
.sound-toggle[aria-pressed="true"] { color: var(--accent-2); border-color: rgba(124,247,193,.45); box-shadow: 0 0 18px -4px rgba(124,247,193,.45); }
.scope { display: block; width: 46px; height: 18px; }
.sound-state { min-width: 2.2em; text-align: left; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 140px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(7,8,10,.55), transparent 60%), linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-content { position: relative; z-index: 2; max-width: 980px; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero-title {
  font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em;
  margin: 0 0 14px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .split { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) .split { transition-delay: .12s; }
body.is-ready .hero-title .split { transform: none; }
.hero-title .end-dot { display: inline-block; width: .14em; height: .14em; margin-left: .04em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 .2em rgba(255,91,46,.6); }
.hero-role { font-family: var(--mono); font-size: clamp(13px, 1.2vw, 15px); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 20px; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; max-width: 600px; margin: 0 0 32px; color: #cfcbc2; }
.hero-sub em { color: var(--fg); font-size: 1.08em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-hud {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 48px;
  font-family: var(--mono); font-size: 11px; line-height: 1.9; text-align: right; color: var(--fg);
  pointer-events: none;
}
.hero-hud .ok { color: var(--accent-2); font-weight: 500; }
.hero-hud .muted { margin-right: 8px; }
@media (max-width: 700px) { .hero-hud { display: none; } }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(16px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: .6em; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.idx { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.section-intro { font-size: clamp(16px, 1.5vw, 18px); max-width: 760px; margin: -24px 0 40px; color: #cfcbc2; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-lead { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4; letter-spacing: -.02em; margin: 0; font-weight: 500; }
.about-lead em { color: var(--accent); }
.kv { margin: 0; font-family: var(--mono); font-size: 13px; }
.kv div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.metric { background: var(--bg); padding: 28px; position: relative; transition: background .4s; min-width: 0; }
.metric:hover { background: var(--bg-2); }
.metric-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tag { color: var(--accent-2); }
.metric-val { font-size: clamp(36px, 3.8vw, 52px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin: 22px 0 12px; font-variant-numeric: tabular-nums; }
.metric-val small { font-size: .3em; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.spark { display: block; width: 100%; height: 48px; }
.metric p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .metrics { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.jobs { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 64px); padding: 40px 0; border-bottom: 1px solid var(--line); }
.job:first-child { padding-top: 0; }
.job-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: sticky; top: 90px; align-self: start; }
.job-when { font-family: var(--mono); font-size: 13px; color: var(--fg); }
.job-where { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.pill-live { color: var(--accent-2); border-color: rgba(124,247,193,.35); }
.job h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; font-weight: 600; }
.job h3 .at { color: var(--accent); font-weight: 500; }
.job-proj { font-family: var(--mono); font-size: 13px; margin: 24px 0 12px; }
.job-proj:first-of-type { margin-top: 8px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 15px; color: #bfbab0; }
.log li { position: relative; padding: 12px 12px 12px 108px; border-radius: 10px; transition: background .25s; }
.log li:hover { background: var(--bg-2); }
.log li::before {
  content: attr(data-lvl); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--accent-2); position: absolute; left: 12px; top: 16px;
}
.log li[data-lvl="COST"]::before { color: var(--accent-4); }
.log li[data-lvl="AI"]::before { color: var(--accent); }
.log li[data-lvl="DEPLOY"]::before, .log li[data-lvl="MIGRATE"]::before { color: var(--accent-3); }
@media (max-width: 760px) {
  .job { grid-template-columns: 1fr; }
  .job-meta { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .log li { padding: 10px 0; }
  .log li::before { position: static; display: block; margin-bottom: 2px; }
}

/* ---------- stack ---------- */
.stack-wrap { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); overflow: hidden; }
#stack-canvas { display: block; width: 100%; height: clamp(520px, 50vw, 640px); touch-action: pan-y; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.stack-legend button {
  font-family: var(--mono); font-size: 12px; color: var(--fg); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
.stack-legend button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.stack-legend button:hover, .stack-legend button.is-on { border-color: var(--c); background: rgba(255,255,255,.03); }

/* ---------- terminal ---------- */
.term { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #050607; box-shadow: 0 40px 120px -40px rgba(255,91,46,.25); max-width: 980px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tl { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.term-body { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; padding: 18px; height: 420px; overflow-y: auto; color: #d7d3cb; }
.term-body .t-cmd { color: var(--fg); }
.term-body .t-cmd::before { content: "matheen@platform:~$ "; color: var(--accent-2); }
.term-body .t-dim { color: var(--muted); }
.term-body .t-acc { color: var(--accent); }
.term-body .t-ok { color: var(--accent-2); }
.term-body .t-blue { color: var(--accent-3); }
.term-body pre { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
.term-body a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.term-line { display: flex; gap: 10px; align-items: center; }
.prompt { color: var(--accent-2); white-space: nowrap; }
#term-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--fg); font: inherit; caret-color: var(--accent); padding: 0; }
@media (max-width: 600px) { .term-body { font-size: 12px; height: 380px; padding: 14px; } .prompt { font-size: 11px; } }

/* ---------- contact ---------- */
.contact-title { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin: 0 0 40px; }
.contact-title em { color: var(--accent); }
.contact-links { display: flex; flex-direction: column; }
.big-link {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.02em;
  transition: padding .35s var(--ease), color .25s;
}
.big-link:last-child { border-bottom: 1px solid var(--line); }
.big-link .muted { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.big-link span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.big-link .arr { transition: transform .35s var(--ease); color: var(--muted); }
.big-link:hover { padding-left: 16px; color: var(--accent); }
.big-link:hover .arr { transform: translate(4px, -4px) rotate(0deg); color: var(--accent); }
@media (max-width: 600px) { .big-link { grid-template-columns: 1fr auto; } .big-link .muted { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= COCKPIT FLIGHT HERO ================= */
.flight { position: relative; height: 330vh; background: #04050b; }
.flight-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#flight-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Shown until (or instead of) the WebGL city. */
.flight-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 1s;
  background: radial-gradient(ellipse at 50% 70%, #1a1f4d 0%, #0a0d24 45%, #04050b 80%); }
.flight.has-webgl .flight-sky { opacity: 0; }
#flight-canvas { z-index: 1; }

.cockpit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.cp-metal { fill: url(#cpMetal); }
.cp-metal-2 { fill: #0a0b0f; }
.cp-panel { fill: #0d0f14; stroke: rgba(255,255,255,.05); }
.cp-edge { stroke: rgba(255,255,255,.08); stroke-width: 2; }
.cp-strip { fill: var(--accent); filter: url(#cpGlow); animation: stripPulse 3s ease-in-out infinite; }
.cp-neon { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; filter: url(#cpGlow); opacity: .9; }
.cp-tube { stroke: #d9e2ff; stroke-width: 9; stroke-linecap: round; filter: url(#cpGlow); opacity: .75; }
@keyframes stripPulse { 50% { opacity: .55; } }

.crt { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.flight-sticky::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255,91,46,.55), inset 0 0 40px rgba(255,91,46,.12); }

.stages { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 90px var(--gutter) 34vh; pointer-events: none; }
.stage { grid-area: 1 / 1; text-align: center; max-width: 880px; opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; }
.stage.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.stage-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 14px; }
.stage-title { font-family: "Anton", "Space Grotesk", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(30px, 3.8vw, 56px); line-height: 1; margin: 0 0 14px; color: #fff; transform: skewX(-6deg);
  text-shadow: 2px 0 rgba(255,59,59,.55), -2px 0 rgba(90,160,255,.45), 0 0 30px rgba(0,0,0,.6); }
.stage-sub { font-size: clamp(14px, 1.15vw, 16px); color: #d6d9e6; margin: 0 0 24px; text-shadow: 0 1px 10px #000; }
.stage .hero-cta { justify-content: center; }
.stage-facts { list-style: none; margin: 8px auto 0; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.stage-facts li { font-size: clamp(15px, 1.4vw, 18px); color: #d6d9e6; background: rgba(6,8,16,.55); border: 1px solid rgba(255,91,46,.3);
  border-radius: 10px; padding: 10px 14px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.stage-facts b { font-family: "Anton", var(--sans); font-weight: 400; font-size: 1.25em; letter-spacing: .02em; color: var(--accent); margin-right: 6px; }

.dash { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 17%; min-height: 120px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3vw; padding: 0 12% 2.2%; }
.dash-screen { justify-self: center; width: min(250px, 100%); height: 100%; max-height: 140px; border-radius: 8px; padding: 8px 10px; overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,40,40,.12), rgba(255,40,40,.03)); border: 1px solid rgba(255,70,50,.45);
  box-shadow: 0 0 22px rgba(255,60,40,.2), inset 0 0 18px rgba(255,60,40,.12); transform: perspective(500px) rotateX(18deg); transform-origin: bottom; }
.dash-title { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #ff8a70; margin-bottom: 4px; }
#radar { display: block; height: calc(100% - 16px); aspect-ratio: 1; margin: 0 auto; }
.dash-log { font-family: var(--mono); font-size: 9.5px; line-height: 1.55; color: #ffb3a3; white-space: nowrap; }
.dash-log div { overflow: hidden; text-overflow: ellipsis; }
.dash-log b { color: #fff; font-weight: 500; }
.dash-center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 22px 6px; border-radius: 10px 10px 0 0;
  background: linear-gradient(to bottom, #15171d, #0b0c10); border: 1px solid rgba(255,255,255,.07); border-bottom: 0; }
.dash-label { font-family: "Anton", var(--sans); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.mouse { width: 20px; height: 32px; border: 2px solid #fff; border-radius: 11px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.6s var(--ease) infinite; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 18px; height: 3px; border-radius: 2px; background: #2d3139; transition: background .3s; }
.stage-dots i.is-on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; height: auto; padding-bottom: 18px; }
  .dash-screen { display: none; }
  .stages { padding-bottom: 150px; }
}
@media (max-width: 600px) {
  .flight { height: 280vh; }
  .stage-facts li { font-size: 14px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .stage { transition: none; filter: none; } }

/* message stages */
.stage-q { font-size: clamp(24px, 2.9vw, 42px); line-height: 1.08; max-width: 24ch; margin-left: auto; margin-right: auto; }
.stage-q .hl { color: var(--accent); text-shadow: 0 0 24px rgba(255,91,46,.45); }
.strike { position: relative; text-decoration: none; color: #9aa0ad; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .35s; }
.stage.is-on .strike::after { transform: scaleX(1); }
.stage .btn-ghost { background: rgba(6,8,16,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }


/* ---------- realistic cockpit frame ---------- */
.cp-wall { fill: url(#cpWall); }
.cp-face { fill: url(#cpFace); }
.cp-lip { fill: #2e3139; }
.cp-seam { stroke: rgba(0,0,0,.55); stroke-width: 2; }
.cp-recess { fill: #07080a; stroke: rgba(255,255,255,.06); }
.cp-tube { stroke: #eef2ff; stroke-width: 11; stroke-linecap: round; filter: url(#cpGlow); opacity: .92; }
.cp-red { fill: #ff2f45; filter: url(#cpGlow); opacity: .85; }
.cp-red-line { stroke: #ff3b4e; stroke-width: 5; stroke-linecap: round; filter: url(#cpGlow); }
.cp-bolt { fill: #0b0c0f; stroke: rgba(255,255,255,.12); }
.dash { grid-template-columns: 1fr auto 1fr; gap: 3vw; padding: 0 12% 1.2%; }
.dash-screen { max-height: 118px; background: linear-gradient(to bottom, rgba(255,40,50,.14), rgba(255,40,50,.03)); }
@media (max-height: 820px) {
  .dash-log { font-size: 8.5px; line-height: 1.45; }
  .dash-log div:nth-last-child(n+6) { display: none; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; padding: 0 0 18px; justify-items: center; }
  .dash-screen { display: none; }
}

/* ---------- side windows: tinted glass beyond the pillars ---------- */
.cp-glass { fill: rgba(90,120,255,.05); stroke: rgba(170,190,255,.12); stroke-width: 1; }
.cp-glint { stroke: rgba(200,215,255,.08); stroke-width: 18; stroke-linecap: round; }
.cp-glint.thin { stroke-width: 5; stroke: rgba(200,215,255,.06); }

/* ================= DASHBOARD: one continuous, chunky console (modelled on the reference) ================= */
.dash { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: clamp(150px, 22vh, 220px); min-height: 0; display: block; padding: 0; gap: 0; pointer-events: none; }
.deck { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; background: none; border: 0; box-shadow: none; padding: 0; }
.console { --metal: linear-gradient(to bottom, #2a2c31 0%, #1a1b1f 40%, #0e0f12 100%);
  --scratch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
  position: relative; height: 100%; width: min(1180px, 84vw); display: grid; grid-template-rows: 100%;
  grid-template-columns: 11% 1fr minmax(170px, 21%) 1fr 11%; align-items: end; gap: 0; pointer-events: auto;
  filter: drop-shadow(0 -8px 22px rgba(0,0,0,.7)); }

/* heavy screen housings with chamfered corners */
.hood { position: relative; height: 100%; min-height: 0; box-sizing: border-box; padding: 10px 10px 0; transform: none;
  background: var(--scratch), var(--metal); border: 0; border-radius: 0; box-shadow: none; }
.hood-l { clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 9%); }
.hood-r { clip-path: polygon(0 0, 93% 0, 100% 9%, 100% 100%, 0 100%); }
.hood::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.14), transparent 2px), linear-gradient(90deg, rgba(0,0,0,.45), transparent 4%, transparent 96%, rgba(0,0,0,.45)); }
.bezel { position: relative; height: 100%; box-sizing: border-box; padding: 22px 16px 10px; background: #0c0d10;
  clip-path: polygon(5% 0, 95% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
  box-shadow: inset 0 0 0 2px #1e1f24, inset 0 2px 0 3px rgba(255,255,255,.04); }
.glow-bar { position: absolute; left: 7%; right: 7%; top: 8px; height: 9px; border-radius: 2px;
  background: linear-gradient(to bottom, #ff4b5c 0 3px, #5a0d15 3px 5px, #ff4b5c 5px 7px, transparent 7px);
  box-shadow: 0 0 16px rgba(255,50,70,.6); opacity: .92; }
.hood .dash-screen { position: relative; width: 100%; height: 100%; max-height: none; transform: none; box-sizing: border-box; overflow: hidden;
  border-radius: 2px; justify-self: stretch; padding: 6px 9px;
  background: radial-gradient(ellipse at 50% 30%, rgba(160,20,30,.55), rgba(40,4,8,.95) 75%);
  border: 1px solid rgba(255,70,80,.35); box-shadow: inset 0 0 30px rgba(0,0,0,.6), 0 0 22px rgba(255,40,60,.18); }
.hood .dash-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px), linear-gradient(160deg, rgba(255,255,255,.06), transparent 40%); }
.hood .dash-title { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #ff9aa2; margin-bottom: 4px; }
.hood #radar { height: calc(100% - 16px); max-height: 130px; }
.hood .dash-log { color: #ffc7cc; }
.hood .dash-log div:nth-last-child(n+6) { display: none; }
@media (max-height: 820px) { .hood .dash-log div:nth-last-child(n+5) { display: none; } }

/* centre block */
.dash-center { position: relative; z-index: 2; height: 92%; min-height: 0; box-sizing: border-box; margin: 0; padding: 12px 34px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; border: 0; border-radius: 0;
  background: var(--scratch), linear-gradient(to bottom, #25272c, #121317 70%, #0b0c0e);
  clip-path: polygon(4% 0, 96% 0, 100% 6%, 100% 100%, 0 100%, 0 6%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08); }
.dc-slots { position: absolute; left: 10px; top: 16%; display: grid; gap: 5px; }
.dc-slots i { display: block; width: 18px; height: 9px; border-radius: 2px; background: #0a0b0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); position: relative; }
.dc-slots i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 3px; background: #ff4b5c; box-shadow: 0 0 6px #ff4b5c; }
.dc-slots i:nth-child(2)::after { background: #c9ccd3; box-shadow: none; }
.dc-bracket { position: absolute; right: 8px; top: 8%; bottom: 30%; width: 22px; display: flex; gap: 3px; }
.dc-bracket i { flex: 1; border-radius: 2px; background: linear-gradient(90deg, #111216, #2c2e34, #111216); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.dc-mark { position: relative; width: 70px; height: 46px; display: grid; place-items: center; margin-bottom: 2px; }
.dc-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dc-mark path { fill: #e8394a; filter: drop-shadow(0 0 6px rgba(255,50,70,.6)); }
.dc-mark .mouse { position: relative; background: #121317; border-color: #e9ebf0; }
.dash-center .dash-label { font-family: "Anton", var(--sans); font-size: 15px; letter-spacing: .08em; color: #e9ebf0; text-transform: uppercase;
  background: #08090b; padding: 4px 14px; border-top: 1px solid rgba(255,255,255,.06); }
.dc-emblem { display: none; }

/* outer pods with small pilot screens */
.pod { position: relative; height: 72%; box-sizing: border-box; padding: 12px 10px 0; background: var(--scratch), var(--metal); }
.pod-l { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 16%); }
.pod-r { clip-path: polygon(0 0, 78% 0, 100% 16%, 100% 100%, 0 100%); }
.pod-screen { height: 62%; border-radius: 2px; display: grid; place-items: center; align-content: center; gap: 2px;
  background: radial-gradient(ellipse at 50% 40%, rgba(170,20,32,.6), rgba(40,4,8,.95) 75%); border: 1px solid rgba(255,70,80,.35);
  box-shadow: inset 0 0 18px rgba(0,0,0,.6); }
.pod-screen span { font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: #ff9aa2; }
.pilot { width: 42%; max-width: 38px; }
.pilot path { fill: rgba(255,90,100,.85); } .pilot .visor { fill: #3b0409; }

@media (max-width: 1100px) { .console { width: 94vw; grid-template-columns: 0 1fr minmax(160px, 24%) 1fr 0; } .pod { display: none; } }
@media (max-width: 760px) {
  .dash { height: 124px; }
  .console { width: 240px; grid-template-columns: 1fr; }
  .hood, .pod { display: none; }
  .dash-center { grid-column: 1; }
}
.pod-l { grid-column: 1; } .hood-l { grid-column: 2; } .console .dash-center { grid-column: 3; } .hood-r { grid-column: 4; } .pod-r { grid-column: 5; }
@media (max-width: 760px) { .console .dash-center { grid-column: 1; } }

/* ---------- centre control: glowing mouse with scroll arrows, clean SCROLL DOWN label ---------- */
.dc-mark { width: 84px; height: 54px; }
.dc-chev path { fill: #e8394a; filter: drop-shadow(0 0 8px rgba(255,50,70,.75)); animation: chevGlow 2.4s ease-in-out infinite; }
@keyframes chevGlow { 50% { filter: drop-shadow(0 0 16px rgba(255,50,70,.95)); } }
.dc-mouse { position: relative; width: 24px; height: 36px; display: block; filter: drop-shadow(0 0 5px rgba(255,255,255,.55)); }
.dc-mouse svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-mouse .m-body { fill: #0e0f12; stroke: #f2f3f6; stroke-width: 2.4; }
.dc-mouse .m-arrow { fill: none; stroke: #f2f3f6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: mArrow 1.6s ease-in-out infinite; }
@keyframes mArrow { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
.dash-center .dash-label { font-family: "Space Grotesk", var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .06em; color: #eceef2;
  background: none; border: 0; padding: 2px 0 0;
  text-shadow: 0 0 10px rgba(255,255,255,.35), 1px 0 rgba(255,70,90,.45), -1px 0 rgba(120,170,255,.4); }
.dash-center:hover .dash-label { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.6), 1px 0 rgba(255,70,90,.6), -1px 0 rgba(120,170,255,.55); }
.dash-center:hover .dc-mouse { filter: drop-shadow(0 0 9px rgba(255,255,255,.8)); }
@media (prefers-reduced-motion: reduce) { .dc-chev path, .dc-mouse .m-arrow { animation: none; } }
.dc-chev { overflow: visible; }
.dc-chev path { filter: none; animation: none; }
.dc-chev { filter: drop-shadow(0 0 8px rgba(255,50,70,.75)); animation: chevGlow 2.4s ease-in-out infinite; }

/* ---------- centre block graphics: scope, stage meter, ring, bracket lights ---------- */
.console .dash-center { justify-content: flex-end; padding-top: 44px; }
.dc-scope { position: absolute; left: 22%; right: 22%; top: 12px; height: 26px; border-radius: 3px; background: #1a0306;
  border: 1px solid rgba(255,70,80,.4); box-shadow: inset 0 0 10px rgba(0,0,0,.8), 0 0 10px rgba(255,40,60,.15); overflow: hidden; }
.dc-scope canvas { display: block; width: 100%; height: 100%; }
.dc-scope em { position: absolute; left: 4px; top: 1px; font-style: normal; font-family: var(--mono); font-size: 6.5px; letter-spacing: .12em; color: rgba(255,150,160,.7); text-transform: uppercase; }
.dc-meter { position: absolute; left: 12px; top: 14px; bottom: 22px; width: 12px; display: flex; flex-direction: column; gap: 3px; padding: 3px;
  background: #08090b; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.dc-meter i { flex: 1; border-radius: 1px; background: #2a1014; transition: background .3s, box-shadow .3s; }
.dc-meter i.on { background: #ff4b5c; box-shadow: 0 0 6px rgba(255,60,75,.8); }
.dc-meter i.on:nth-child(-n+3) { background: #ffb36b; box-shadow: 0 0 6px rgba(255,180,100,.7); }
.dc-bracket { top: 14px; bottom: 22px; right: 12px; width: 26px; }
.dc-bracket .bl { position: absolute; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3a1a1e; }
.dc-bracket .b1 { top: 18%; background: #ff3b4e; box-shadow: 0 0 6px #ff3b4e; animation: blinkBtn 1.4s steps(1) infinite; }
.dc-bracket .b2 { top: 44%; background: #7cf7c1; box-shadow: 0 0 6px #7cf7c1; opacity: .8; }
.dc-bracket .b3 { top: 70%; background: #ffb36b; box-shadow: 0 0 6px #ffb36b; animation: blinkBtn 2.2s steps(1) infinite -.7s; }
.dc-ring { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  border: 1px dashed rgba(255,90,100,.55); animation: spin 9s linear infinite; }
.dc-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255,90,100,.18);
  border-top-color: rgba(255,120,130,.8); animation: spin 3s linear infinite reverse; }
.dc-slots { display: none; }
@media (max-height: 760px) { .dc-scope { height: 20px; top: 9px; } .console .dash-center { padding-top: 34px; } }
@media (prefers-reduced-motion: reduce) { .dc-ring, .dc-ring::after, .dc-bracket .bl { animation: none; } }
@keyframes blinkBtn { 50% { opacity: .2; } }

/* ---------- screen furniture: grids, side panels, footers ---------- */
.hood .dash-screen { display: flex; flex-direction: column;
  background-image: linear-gradient(rgba(255,90,100,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,90,100,.06) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 30%, rgba(160,20,30,.55), rgba(40,4,8,.95) 75%);
  background-size: 14px 14px, 14px 14px, auto; }
.scr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.hood .scr-body #radar { height: 100%; max-height: 118px; width: auto; aspect-ratio: 1; margin: 0; }
.scr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; align-self: center; }
.scr-list li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 5px; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: #ff9aa2; }
.scr-list i { height: 4px; border-radius: 1px; background: linear-gradient(90deg, #ff4b5c, #ff9aa2); transform-origin: left; animation: actBar 2.8s ease-in-out infinite; animation-delay: var(--d); box-shadow: 0 0 5px rgba(255,70,80,.5); }
@keyframes actBar { 0%, 100% { transform: scaleX(.35); } 45% { transform: scaleX(.95); } 70% { transform: scaleX(.6); } }
.scr-bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 70%; }
.scr-bars i { width: 6px; height: 100%; background: linear-gradient(to top, #ff4b5c, rgba(255,75,92,.15)); transform-origin: bottom; animation: lvl 1.9s ease-in-out infinite; animation-delay: var(--d); border-radius: 1px; }
@keyframes lvl { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(.95); } }
.scr-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(255,80,90,.3);
  font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: #ff9aa2; }
.scr-foot .tick { color: #ffd0d4; }
.scr-foot .seg { display: flex; gap: 2px; }
.scr-foot .seg i { width: 9px; height: 5px; background: #ff4b5c; box-shadow: 0 0 4px #ff4b5c; }
.scr-foot .seg i:last-child { background: #4a1219; box-shadow: none; animation: blinkBtn 1s steps(1) infinite; }
.scr-foot .cur { font-weight: 400; animation: blinkBtn 1s steps(1) infinite; }
.live-rec { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 6px #ff3b4e; margin-right: 5px; vertical-align: 1px; animation: blinkBtn 1.2s steps(1) infinite; }
.scr-body-log { grid-template-columns: 1fr 34%; align-items: stretch; }
.scr-body-log .dash-log { min-width: 0; overflow: hidden; }
#log-chart { display: block; width: 100%; height: 100%; min-height: 0; border-left: 1px solid rgba(255,80,90,.25); }
.hood .dash-log div:nth-last-child(n+5) { display: none; }
@media (max-height: 820px) { .hood .dash-log div:nth-last-child(n+4) { display: none; } .scr-list li:nth-child(n+6) { display: none; } }

/* pilot pods: heartbeat trace and readout */
.pod-screen { position: relative; overflow: hidden; }
.pod-screen .ecg { width: 80%; height: 12px; }
.pod-screen .ecg polyline { fill: none; stroke: #ff6b78; stroke-width: 1.4; stroke-dasharray: 130; stroke-dashoffset: 130; animation: ecg 2.2s linear infinite; filter: drop-shadow(0 0 2px #ff3b4e); vector-effect: non-scaling-stroke; }
@keyframes ecg { to { stroke-dashoffset: -130; } }
.pod-read { font-style: normal; font-family: var(--mono); font-size: 6.5px; letter-spacing: .14em; text-transform: uppercase; color: #7cf7c1; }
.pod-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); }
@media (prefers-reduced-motion: reduce) { .scr-list i, .scr-bars i, .pod-screen .ecg polyline { animation: none; } }
@media (max-height: 820px) {
  .scr-list li:nth-child(n+4) { display: none; }
  .scr-list { gap: 2px; }
  .scr-foot { margin-top: 2px; padding-top: 2px; font-size: 6.5px; }
  .hood .dash-title { margin-bottom: 2px; }
  .pod-screen { height: 70%; }
  .pod-screen .pilot { display: none; }
}
.scr-body { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.hood .scr-body #radar { min-height: 0; max-height: 100%; justify-self: center; }
.scr-list, .scr-bars { min-height: 0; overflow: hidden; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-region { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand-region i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); animation: blink 2s infinite; }
/* pilot pods: smooth rounded outer corner instead of a sharp chamfer */
.pod-l, .pod-r { clip-path: none; }
.pod-l { border-radius: 26px 6px 0 0; }
.pod-r { border-radius: 6px 26px 0 0; }
.pod { box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.pod-screen { border-radius: 10px; }
.pod-l .pod-screen { border-top-left-radius: 16px; }
.pod-r .pod-screen { border-top-right-radius: 16px; }
/* console: smooth rounded corners everywhere instead of chamfered cuts */
.hood-l, .hood-r, .bezel, .console .dash-center { clip-path: none; }
.hood-l { border-radius: 28px 10px 0 0; }
.hood-r { border-radius: 10px 28px 0 0; }
.hood { overflow: hidden; }
.bezel { border-radius: 18px 18px 6px 6px; }
.hood .dash-screen { border-radius: 12px; }
.hood .dash-screen::after { border-radius: 12px; }
.glow-bar { border-radius: 6px; }
.console .dash-center { border-radius: 18px 18px 0 0; overflow: hidden; }
.dc-scope { border-radius: 8px; }
.dc-meter, .dc-bracket i { border-radius: 6px; }

/* ================= CUSTOM SCROLL RAIL (replaces the native scrollbar on mouse devices) ================= */
.rail { display: none; }
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
  .rail { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: 16px; z-index: 95;
    background: linear-gradient(90deg, #d8102c, #ff2340 40%, #e0142f); box-shadow: -2px 0 12px rgba(255,20,50,.35); }
  .rail::before, .rail::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: #ff2340; }
  .rail::before { top: 0; } .rail::after { bottom: 0; }
  .rail-track { position: absolute; left: 3px; right: 3px; top: 22px; bottom: 22px; border-radius: 8px; cursor: pointer;
    background: repeating-linear-gradient(to bottom, #a3001b 0 2px, #6e0011 2px 4px);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 2px 6px rgba(0,0,0,.5); }
  .rail-thumb { position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 6px; cursor: grab;
    background: linear-gradient(90deg, #d9dbe0, #ffffff 45%, #e3e5ea); box-shadow: 0 0 10px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.4);
    will-change: transform; transition: box-shadow .2s; }
  .rail-thumb:hover, .rail.is-drag .rail-thumb { box-shadow: 0 0 16px rgba(255,255,255,.85), 0 2px 4px rgba(0,0,0,.4); }
  .rail.is-drag .rail-thumb { cursor: grabbing; }
  .rail.is-drag { user-select: none; }
}
/* header: no full-width blur; frosted pills only behind the text groups */
.nav { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand, .nav-links { padding: 7px 14px; border-radius: 999px; background: rgba(7,8,10,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.brand { padding-left: 10px; }
.nav-links { padding: 9px 20px; }
.sound-toggle { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* compact rail: a short ribbed slot in the middle of the edge, small thumb */
@media (hover: hover) and (pointer: fine) {
  .rail { width: 12px; }
  .rail::after { display: none; }
  .rail::before { top: 50%; bottom: auto; right: 0; left: auto; width: 24px; height: 236px; margin-top: -118px;
    background: linear-gradient(90deg, #d8102c, #ff2340 45%, #e0142f); border-radius: 10px 0 0 10px;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: -2px 0 12px rgba(255,20,50,.4); }
  .rail-track { top: 50%; bottom: auto; left: auto; right: 3px; width: 14px; height: 200px; margin-top: -100px; border-radius: 7px; }
  .rail-thumb { height: 26px !important; border-radius: 5px; }
}

.job-env { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--accent-2); margin: -6px 0 10px; }
.job.is-in .log li:nth-child(5) { transition-delay: .32s, .32s, 0s; }
.job.is-in .log li:nth-child(6) { transition-delay: .4s, .4s, 0s; }
.job.is-in .log li:nth-child(7) { transition-delay: .48s, .48s, 0s; }

.log li[data-lvl="OBSERVABILITY"]::before { font-size: 9px; letter-spacing: .02em; }
/* work log: wider tag column; long tags wrap onto two lines */
.log li { padding-left: 132px; }
.log li::before { width: 108px; white-space: normal; font-size: 9.5px; line-height: 1.35; letter-spacing: .05em; top: 15px; }
.log li[data-lvl="OBSERVABILITY"]::before { font-size: 9.5px; letter-spacing: .05em; }
.log li[data-lvl="COST"]::before, .log li[data-lvl="OBSERVABILITY & COST"]::before { color: var(--accent-4); }
.log li[data-lvl="AI AGENTS"]::before, .log li[data-lvl="SECURITY"]::before { color: var(--accent); }
.log li[data-lvl="ARGO"]::before, .log li[data-lvl="SCM"]::before, .log li[data-lvl="AWS"]::before, .log li[data-lvl="AWS NETWORKING"]::before { color: var(--accent-3); }
.job.is-in .log li:nth-child(5) { transition-delay: .32s, .32s, 0s; }
.job.is-in .log li:nth-child(6) { transition-delay: .4s, .4s, 0s; }
.job.is-in .log li:nth-child(7) { transition-delay: .48s, .48s, 0s; }
.job.is-in .log li:nth-child(8) { transition-delay: .56s, .56s, 0s; }
@media (max-width: 760px) { .log li { padding-left: 0; } .log li::before { width: auto; } }

.load-note { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; padding: 16px 18px; margin: 0; }
.load-note code { color: var(--accent-2); }
/* tighter vertical rhythm between sections */
.section { padding-top: clamp(28px, 3.4vw, 50px); padding-bottom: clamp(28px, 3.4vw, 50px); }
.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.jobs .job:last-child { border-bottom: 0; padding-bottom: 0; }



/* ================= WORK LOG: project cards ================= */
.jobs { display: block; }
.role { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px;
  margin: 34px 0 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.role:first-child { margin-top: 0; }
.role-title { margin: 0; font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.role-title .at { color: var(--accent); font-weight: 500; }
.role-meta { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.role-meta span:first-child { color: var(--fg); }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.pcard { display: flex; flex-direction: column; border-radius: 14px; padding: 10px 10px 0;
  background: linear-gradient(180deg, #25272c, #17181c 40%, #121316);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.6), 0 18px 40px -18px rgba(0,0,0,.9);
  transition-delay: calc(var(--i) * 80ms); }
.pcard-frame { flex: 1; display: flex; flex-direction: column; border-radius: 10px; padding: 12px 14px 18px;
  background: #101114; box-shadow: inset 0 2px 10px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04); }
.pcard-screen { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); margin-bottom: 16px; }
.pcard-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; filter: contrast(1.05); }
.pcard-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.pcard h3 { margin: 0 0 4px; font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(22px, 2vw, 27px); letter-spacing: .005em; color: #f2f3f5; }
.pcard-meta { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pcard-desc { margin: 0; font-size: 15px; line-height: 1.5; color: #b3b8c2; }
.pcard-foot { display: flex; align-items: center; gap: 10px; padding: 12px 6px 12px; font-family: "Anton", var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pf-chip, .pf-num { padding: 3px 10px; border-radius: 4px; background: #1c1d21; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: #a7acb6; font-size: 14px; }
.pf-num { color: #d7dae0; }
.pf-more { margin-left: auto; background: none; border: 0; padding: 3px 2px; font: inherit; font-size: 14px; letter-spacing: .08em; color: #d7dae0; cursor: pointer;
  border-bottom: 1px solid rgba(215,218,224,.5); transition: color .2s, border-color .2s; }
.pf-more:hover, .pf-more:focus-visible { color: var(--accent); border-color: var(--accent); }
.pf-more span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.pf-more:hover span { transform: translateX(3px); }

/* red interface overlays on the screens */
.pcard-ovl { position: absolute; inset: 0; font-family: var(--mono); color: #f3c9ce; }
.ovl-alert { position: absolute; left: 6%; top: 8%; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 4px;
  background: linear-gradient(90deg, #d9142f, #b10f26); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 0 18px rgba(255,30,60,.45); }
.ovl-alert i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #d9142f; }
.ovl-code { position: absolute; right: 0; bottom: 0; width: 70%; background: rgba(12,12,14,.88); border-left: 2px solid #3a3b40; font-size: 9.5px; }
.oc-head { padding: 5px 10px; color: #d8dbe0; background: rgba(40,41,46,.9); border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-line { padding: 3px 10px; color: #c9ccd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-line span { color: #6b7079; margin-right: 10px; }
.oc-line.is-hl { background: rgba(217,20,47,.18); box-shadow: inset 2px 0 0 #ff3b4e; }
.ovl-chip { position: absolute; left: 4%; top: 7%; max-width: 70%; padding: 6px 10px; border-radius: 4px; background: rgba(20,20,22,.9);
  border: 1px solid rgba(255,255,255,.08); font-size: 10px; color: #cfd2d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-chip b { color: #ff4b5c; font-weight: 600; margin-right: 4px; }
.ovl-chart { position: absolute; right: 4%; bottom: 7%; width: 50%; height: 34%; background: rgba(10,10,12,.85); border: 1px solid rgba(255,59,78,.55);
  box-shadow: 0 0 16px rgba(255,30,60,.2); }
.ovl-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ovl-chart polyline { fill: none; stroke: #ff3b4e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ovl-chart span { position: absolute; transform: translate(-50%, -135%); font-size: 7.5px; color: #ff6b78; white-space: nowrap; }
.ovl-chart span::after { content: ""; position: absolute; left: 50%; top: 135%; width: 6px; height: 6px; margin: -1px 0 0 -3px; border-radius: 50%; border: 1.5px solid #ff3b4e; background: #180306; }
.ovl-target { position: absolute; left: 38%; top: 30%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 2px solid #ff3b4e; box-shadow: 0 0 10px #ff3b4e; }
.ovl-target::after { content: ""; position: absolute; left: 5px; top: 12px; width: 1.5px; height: 70px; background: #ff3b4e; box-shadow: 0 0 6px #ff3b4e; }
.ovl-wire { position: absolute; left: 10%; top: 4%; width: 80%; height: 62%; }
.ovl-wire polygon, .ovl-wire polyline { fill: rgba(255,40,60,.16); stroke: #ff3b4e; stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255,40,60,.8)); }
.ovl-wire polyline { fill: none; opacity: .8; }
.ovl-events { position: absolute; left: 6%; right: 6%; bottom: 6%; display: grid; gap: 4px; }
.ovl-events div { padding: 3px 8px; background: rgba(12,12,14,.88); border: 1px solid rgba(255,255,255,.08); font-size: 8.5px; letter-spacing: .06em;
  color: #e3e5ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-events em { font-style: normal; display: inline-block; margin-right: 8px; padding: 0 5px; border: 1px solid #8b8f99; color: #c7cad1; }
.ovl-events div:last-child em { border-color: #ff3b4e; color: #ff3b4e; }

/* ================= "Read more" panel ================= */
.pdlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: none; color: var(--fg); overflow: visible; }
.pdlg::backdrop { background: rgba(3,4,6,.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pdlg[open] { animation: pdlgIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pdlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pdlg-bezel { position: relative; border-radius: 16px; padding: 12px; background: linear-gradient(180deg, #26282d, #141518);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(255,59,78,.35), 0 0 40px rgba(255,30,60,.15); }
.pdlg-body { max-height: calc(100vh - 72px); overflow-y: auto; border-radius: 10px; padding: clamp(18px, 3vw, 32px); background: #0e0f12;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.8); }
.pdlg-close { position: absolute; right: 22px; top: 22px; z-index: 1; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #17181c; color: var(--fg); font-size: 14px; cursor: pointer; }
.pdlg-close:hover { border-color: var(--accent); color: var(--accent); }
.pd-kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pd-title { margin: 0 0 16px; padding-right: 40px; font-family: "Anton", var(--sans); font-weight: 400; font-size: clamp(26px, 3vw, 38px); letter-spacing: .01em; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; margin: 0 0 14px; font-family: var(--mono); font-size: 12px; }
.pd-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.pd-meta dd { margin: 2px 0 0; color: var(--fg); }
.pd-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.pd-stack span { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; color: var(--accent-2); border: 1px solid rgba(124,247,193,.3); background: rgba(124,247,193,.05); }
.pdlg .log li { opacity: 1; transform: none; }
body.is-modal { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pdlg[open] { animation: none; } }
.ovl-code { top: 32%; bottom: auto; }

/* ---- unique overlays ---- */
.ovl-panel { position: absolute; background: rgba(12,12,14,.88); border: 1px solid rgba(255,59,78,.5); box-shadow: 0 0 14px rgba(255,30,60,.2); font-size: 9px; }
/* observability: log stream + latency sparkline */
.ovl-logs { left: 5%; top: 7%; width: 64%; }
.ol-head { padding: 4px 8px; background: rgba(217,20,47,.25); color: #fff; border-bottom: 1px solid rgba(255,59,78,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-head em { font-style: normal; float: right; color: #ff6b78; }
.ovl-logs > div:not(.ol-head) { padding: 2px 8px; color: #d6d9df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-logs b { display: inline-block; width: 34px; color: #7cf7c1; font-weight: 500; } .ovl-logs b.warn { color: #ff4b5c; }
.ovl-spark { right: 5%; bottom: 8%; width: 40%; height: 28%; padding: 4px 6px; box-sizing: border-box; }
.ovl-spark span { color: #ff8a95; } .ovl-spark svg { width: 100%; height: 70%; } .ovl-spark polyline { fill: none; stroke: #ff3b4e; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
/* governance: account tree + policy list */
.ovl-tree { position: absolute; left: 3%; top: 4%; width: 60%; height: 70%; }
.ovl-tree rect { fill: rgba(12,12,14,.9); stroke: #ff3b4e; } .ovl-tree path { fill: none; stroke: #ff3b4e; opacity: .8; }
.ovl-tree circle { fill: #ff3b4e; filter: drop-shadow(0 0 3px #ff3b4e); } .ovl-tree text { fill: #f3c9ce; font-size: 7px; text-anchor: middle; font-family: var(--mono); }
.ovl-policy { right: 4%; bottom: 8%; padding: 4px 8px; display: grid; gap: 3px; }
.ovl-policy div { color: #e3e5ea; letter-spacing: .06em; } .ovl-policy i { font-style: normal; margin-right: 6px; filter: grayscale(1) brightness(1.6); }
/* blue/green deployment switch */
.ovl-bg { position: absolute; left: 8%; right: 8%; top: 12%; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.bg-slot { padding: 8px; background: rgba(12,12,14,.88); border: 1px solid rgba(255,255,255,.18); font-size: 9px; color: #c9ccd3; }
.bg-slot b { display: block; font-size: 11px; letter-spacing: .12em; margin-bottom: 3px; color: #fff; }
.bg-slot.green { border-color: #ff3b4e; box-shadow: 0 0 14px rgba(255,30,60,.35); } .bg-slot.green b { color: #ff4b5c; }
.bg-traffic { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.bg-traffic i { display: block; height: 100%; background: #ff3b4e; box-shadow: 0 0 8px #ff3b4e; animation: shift 4s ease-in-out infinite; }
@keyframes shift { 0% { width: 0; margin-left: 0; } 50% { width: 100%; } 100% { width: 0; margin-left: 100%; } }
.bg-label { grid-column: 1 / -1; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #f3c9ce; }
/* workflow DAG */
.ovl-dag { position: absolute; left: 4%; top: 6%; width: 92%; height: 70%; }
.ovl-dag path { fill: none; stroke: #ff3b4e; stroke-width: 1.2; stroke-dasharray: 3 3; }
.ovl-dag circle { fill: rgba(12,12,14,.9); stroke: #ff3b4e; stroke-width: 2; filter: drop-shadow(0 0 4px #ff3b4e); }
.ovl-dag text { fill: #f3c9ce; font-size: 8px; text-anchor: middle; font-family: var(--mono); }
.ovl-dag .ovl-chip, .ovl-dag + .ovl-chip { top: auto; bottom: 7%; }
/* cost bars */
.ovl-cost { left: 6%; right: 6%; top: 10%; bottom: 10%; padding: 6px 10px; display: grid; grid-template-rows: auto 1fr auto; }
.oc-title { color: #ff8a95; letter-spacing: .1em; text-transform: uppercase; }
.ovl-cost .bars { display: flex; align-items: flex-end; gap: 6%; padding: 6px 0; }
.ovl-cost .bars i { flex: 1; background: rgba(255,255,255,.35); } .ovl-cost .bars i.low { background: #ff3b4e; box-shadow: 0 0 8px rgba(255,59,78,.6); }
.oc-mark { font-family: "Anton", var(--sans); font-size: 18px; color: #fff; letter-spacing: .03em; }
/* git branch graph */
.ovl-git { position: absolute; left: 3%; top: 10%; width: 94%; height: 76%; }
.ovl-git path { fill: none; stroke-width: 2.5; } .ovl-git .main { stroke: rgba(255,255,255,.6); } .ovl-git .mig { stroke: #ff3b4e; filter: drop-shadow(0 0 3px #ff3b4e); }
.ovl-git circle { fill: #0c0c0e; stroke: rgba(255,255,255,.8); stroke-width: 2; } .ovl-git circle.m { stroke: #ff3b4e; }
.ovl-git text { fill: #f3c9ce; font-size: 9px; font-family: var(--mono); }
/* terminal */
.ovl-term { left: 8%; right: 20%; top: 12%; padding-bottom: 6px; color: #d6d9df; font-size: 9.5px; }
.ot-bar { padding: 4px 8px; margin-bottom: 4px; background: rgba(40,41,46,.95); color: #9aa0aa; border-bottom: 1px solid rgba(255,255,255,.08); }
.ot-bar i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff3b4e; margin-right: 3px; }
.ovl-term > div:not(.ot-bar) { padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovl-term span { color: #ff6b78; } .ovl-term b { color: #7cf7c1; font-weight: 500; } .ovl-term u { text-decoration: none; animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .bg-traffic i, .ovl-term u { animation: none; } }

/* ================= CONTACT: red wireframe city ================= */
.contact { position: relative; max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100% - 1400px) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - 1400px) / 2 + var(--gutter))); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; isolation: isolate;
  background: linear-gradient(to bottom, #0a0b0d 0%, #1a0306 30%, #3d0610 70%, #6d0a19 100%); }
.contact-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.contact-bg::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(10,2,4,.75), transparent 70%),
    linear-gradient(to bottom, #0a0b0d 0%, transparent 18%); }
.contact .section-head { border-top-color: rgba(255,60,80,.25); }
.contact-title { text-align: center; font-family: "Anton", var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(38px, 6vw, 88px); line-height: 1; margin: clamp(20px, 4vw, 50px) auto 16px; color: #fff; max-width: 14ch;
  text-shadow: 0 0 18px rgba(255,255,255,.55), 0 0 42px rgba(255,255,255,.25); }
.contact-title span { color: #fff; }
.contact-sub { text-align: center; margin: 0 auto clamp(30px, 4vw, 50px); max-width: 560px; color: #d7b8bd; font-size: clamp(15px, 1.4vw, 18px); }
.contact-links { max-width: 900px; margin: 0 auto; }
.contact .big-link { border-top-color: rgba(255,80,100,.22); }
.contact .big-link:last-child { border-bottom-color: rgba(255,80,100,.22); }
.contact .big-link .muted { color: #c9a3a9; }
.contact .big-link:hover { color: #ff4b5c; }
/* shorter cockpit console */
.dash { height: clamp(112px, 15.5vh, 160px); }
.hood { padding: 7px 8px 0; }
.bezel { padding: 15px 12px 7px; }
.glow-bar { top: 5px; height: 7px; }
.hood .dash-screen { padding: 4px 8px; }
.hood .dash-title { margin-bottom: 2px; font-size: 8px; }
.scr-foot { margin-top: 2px; padding-top: 2px; font-size: 6.5px; }
.scr-list li:nth-child(n+4) { display: none; }
.hood .dash-log div:nth-last-child(n+4) { display: none; }
.console .dash-center { height: 94%; padding: 30px 16px 6px; gap: 3px; }
.dc-scope { top: 7px; height: 18px; }
.dc-mark { width: 64px; height: 40px; }
.dc-mouse { width: 20px; height: 30px; }
.dash-center .dash-label { font-size: 14px; }
.dc-meter, .dc-bracket { top: 8px; bottom: 14px; }
.pod { padding: 9px 8px 0; }
.pod-screen { height: 74%; }
.pod-screen .pilot { display: none; }

/* ================= THEMED CONTENT AREA (matches cockpit / contact) ================= */
main { position: relative; isolation: isolate; }
.theme-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, #07080a 0%, #0c0507 18%, #120508 50%, #0c0507 85%, #07080a 100%); }
/* faint red wireframe floor grid, fixed so it drifts as you scroll */
.tb-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,50,70,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,50,70,.07) 1px, transparent 1px);
  background-size: 64px 64px; background-attachment: fixed;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.tb-glow { position: absolute; inset: 0; background:
  radial-gradient(ellipse 45% 20% at 10% 22%, rgba(255,30,60,.10), transparent 70%),
  radial-gradient(ellipse 40% 18% at 92% 48%, rgba(255,30,60,.09), transparent 70%),
  radial-gradient(ellipse 50% 18% at 20% 76%, rgba(255,30,60,.08), transparent 70%),
  repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.flight, .contact { position: relative; z-index: 1; }

/* HUD section headings */
.section-head { position: relative; border-top: 1px solid rgba(255,60,80,.28); padding-top: 16px; }
.section-head::before { content: ""; position: absolute; left: 0; top: -1px; width: 90px; height: 2px; background: #ff3b4e; box-shadow: 0 0 10px #ff3b4e; }
.section-head::after { content: ""; position: absolute; right: 0; top: -4px; width: 7px; height: 7px; border-top: 1px solid #ff3b4e; border-right: 1px solid #ff3b4e; }
.section-head .idx { font-family: var(--mono); color: #ff3b4e; }
.section-head .idx::before { content: "["; color: rgba(255,59,78,.55); } .section-head .idx::after { content: "]"; color: rgba(255,59,78,.55); }
.section-head h2 { color: #e9d7da; }
.section-intro { color: #cdbdc0; }

/* shared monitor bezel for panels */
.about-side, .stack-wrap, .term { border-radius: 14px; padding: 10px;
  background: linear-gradient(180deg, #25272c, #17181c 40%, #121316);
  border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.6), 0 18px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,59,78,.12); }
.about-side .kv, .stack-wrap > canvas, .stack-wrap > .stack-legend { background: #0f0a0c; }
.about-side .kv { border-radius: 8px; padding: 6px 16px; box-shadow: inset 0 2px 10px rgba(0,0,0,.8); position: relative; }
.about-side .kv::after, .stack-wrap::after { content: ""; position: absolute; inset: 10px; border-radius: 8px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,60,80,.035) 0 1px, transparent 1px 3px); }
.about-side { position: relative; }
.kv div { border-bottom-color: rgba(255,60,80,.2); } .kv dt { color: #ff6b78; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.stack-wrap { overflow: hidden; }
.stack-wrap > canvas { border-radius: 8px 8px 0 0; }
.stack-wrap > .stack-legend { border-radius: 0 0 8px 8px; border-top-color: rgba(255,60,80,.2); }
.term { padding: 10px; } .term-bar { border-radius: 8px 8px 0 0; background: #1b0d10; border-bottom-color: rgba(255,60,80,.25); }
.term-body { border-radius: 0 0 8px 8px; background: #0b0608; }
.marquee { background: linear-gradient(90deg, #120508, #1c070b 50%, #120508); border-color: rgba(255,60,80,.25); position: relative; z-index: 1; }
.about-lead { color: #efe6e8; }

/* ================= CARD FOCUS: dim everything, light up the one you're on ================= */
.pcard { transition: filter .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity 1s var(--ease); }
.pcard { filter: grayscale(.85) brightness(.5); }
.pcard.is-lit { filter: none; transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(0,0,0,.6), 0 24px 50px -18px rgba(0,0,0,.95), 0 0 0 1px rgba(255,59,78,.55), 0 0 36px rgba(255,30,60,.25); }
@media (hover: hover) and (pointer: fine) { .pcard:hover, .pcard:focus-within { filter: none; } }
@media (prefers-reduced-motion: reduce) { .pcard.is-lit { transform: none; } }

/* card dialog / terminal: small centred mini-rail like the page rail (native bar hidden) */
.pdlg-body, .term-body { scrollbar-width: none; }
.pdlg-body::-webkit-scrollbar, .term-body::-webkit-scrollbar { width: 0; height: 0; }
.term { position: relative; }
.mrail { position: absolute; top: 50%; right: 6px; width: 20px; height: 132px; margin-top: -66px; z-index: 2;
  background: linear-gradient(90deg, #d8102c, #ff2340 45%, #e0142f); box-shadow: 0 0 12px rgba(255,20,50,.45);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.mrail.on { opacity: 1; pointer-events: auto; }
.mrail-track { position: absolute; left: 4px; right: 4px; top: 12px; bottom: 12px; border-radius: 6px; cursor: pointer;
  background: repeating-linear-gradient(to bottom, #a3001b 0 2px, #6e0011 2px 4px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 2px 6px rgba(0,0,0,.5); touch-action: none; }
.mrail-thumb { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 5px; cursor: grab; touch-action: none;
  background: linear-gradient(90deg, #d9dbe0, #ffffff 45%, #e3e5ea); box-shadow: 0 0 10px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.4); }
.mrail-thumb:hover, .mrail.is-drag .mrail-thumb { box-shadow: 0 0 16px rgba(255,255,255,.85), 0 2px 4px rgba(0,0,0,.4); }
.mrail.is-drag { user-select: none; } .mrail.is-drag .mrail-thumb { cursor: grabbing; }
.pdlg-bezel .mrail { right: 16px; }
.pdlg-body { padding-right: max(40px, clamp(18px, 3vw, 32px)); } .term-body { padding-right: 36px; }
/* dashboard: just the two screen housings, open view between them (pods + centre block removed) */
.console { width: min(1120px, 82vw); grid-template-columns: 1fr minmax(180px, 26%) 1fr; }
.hood-l { grid-column: 1; } .hood-r { grid-column: 3; }
@media (max-width: 1100px) { .console { width: 94vw; grid-template-columns: 1fr minmax(120px, 18%) 1fr; } }
@media (max-width: 760px) { .dash { display: none; } }
/* centre screen housing: same metal hood as the side screens, chamfered on both top corners */
.hood-c { grid-column: 2; height: 94%; display: block; color: inherit; text-decoration: none; cursor: pointer; margin: 0 -1px;
  clip-path: polygon(6% 0, 94% 0, 100% 8%, 100% 100%, 0 100%, 0 8%); z-index: 1; }
.hood-c .bezel { transition: box-shadow .25s; }
.hood-c:hover .bezel, .hood-c:focus-visible .bezel { box-shadow: inset 0 0 0 2px #3a1a1e, inset 0 2px 0 3px rgba(255,255,255,.05); }
.dash-mid { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dash-mid .scr-body { display: block; min-height: 0; }
.dash-mid #horizon { display: block; width: 100%; height: 100%; }
.nav-scroll { color: #fff; letter-spacing: .16em; animation: navBlink 1.6s ease-in-out infinite; }
@keyframes navBlink { 50% { opacity: .45; } }
.nav-dots { display: inline-flex; gap: 3px; } .nav-dots i { width: 8px; height: 3px; background: rgba(255,120,130,.3); }
.nav-dots i.is-on { background: #ff5a68; box-shadow: 0 0 6px #ff3b4e; }
.dash-mid .scr-foot b { color: #fff; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .nav-scroll { animation: none; } }
.dash-mid .dash-title, .dash-mid .scr-foot { white-space: nowrap; } .dash-mid .scr-foot { gap: 6px; }
/* centre housing: rounded like the side housings, soft inner corners where they meet */
.hood-c { clip-path: none; border-radius: 20px 20px 0 0; overflow: hidden; }
.hood-l { border-radius: 28px 20px 0 0; }
.hood-r { border-radius: 20px 28px 0 0; }
