/* ==========================================================================
   sections.css — per-section composition
   ========================================================================== */

/* ==========================================================================
   DRAWING FRAME + TITLE BLOCK
   The sheet border a drawing set always has. Decorative only — every string
   in the title block is duplicated in real page content, so screen readers
   lose nothing by skipping it.
   ========================================================================== */

.frame { position: fixed; inset: 14px; z-index: 200; pointer-events: none; }

.frame__edge { position: absolute; background: var(--line); }
.frame__edge--t { top: 0; left: 0; right: 0; height: 1px; }
.frame__edge--b { bottom: 0; left: 0; right: 0; height: 1px; }
.frame__edge--l { left: 0; top: 0; bottom: 0; width: 1px; }
.frame__edge--r { right: 0; top: 0; bottom: 0; width: 1px; }

.frame__reg { position: absolute; width: 11px; height: 11px; }
.frame__reg::before, .frame__reg::after { content: ''; position: absolute; background: var(--line-hot); }
.frame__reg::before { left: 0; right: 0; top: 50%; height: 1px; }
.frame__reg::after  { top: 0; bottom: 0; left: 50%; width: 1px; }
.frame__reg--tl { top: -5px; left: -5px; }
.frame__reg--tr { top: -5px; right: -5px; }
.frame__reg--bl { bottom: -5px; left: -5px; }
.frame__reg--br { bottom: -5px; right: -5px; }

.frame__zones {
  position: absolute;
  display: flex;
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--ink-rule);
}
.frame__zones--x { top: 2px; left: 0; right: 0; justify-content: space-around; }
.frame__zones--y {
  left: 2px; top: 0; bottom: 0;
  flex-direction: column; justify-content: space-around;
}

.titleblock {
  position: fixed;
  right: 15px; bottom: 15px;
  z-index: 201;
  width: 300px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  pointer-events: none;
  transition: opacity 400ms;
}
.tb__cell {
  padding: 6px 9px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.tb__cell:nth-child(-n+3) { border-top: 0; }
.tb__cell--wide { grid-column: span 2; }
.tb__cell:last-child, .tb__cell:nth-child(3) { border-right: 0; }
.tb__k {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.46rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 2px;
}
.tb__v {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--txt-hi);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* The frame and title block are fixed overlays — below this width the viewport
   is too tight to spend on chrome. Declared after the components so it wins. */
@media (max-width: 1024px) { .frame, .titleblock { display: none !important; } }

/* ==========================================================================
   TOP BAR + RAIL
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px var(--gutter);
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.92), rgba(4, 6, 10, 0));
  transition: background 400ms, border-color 400ms, backdrop-filter 400ms;
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.topbar__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--txt-hi);
}
.topbar__mark svg { color: var(--accent); flex: none; }

.topbar__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar__nav a { color: var(--txt-dim); transition: color 200ms; position: relative; padding-block: 6px; }
.topbar__nav a:hover, .topbar__nav a.is-active { color: var(--txt-hi); }
.topbar__nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}

.topbar__act { display: flex; align-items: center; gap: 10px; }

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

/* left rail: section index dots */
.rail {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 350;
  width: var(--rail);
  display: flex;
  justify-content: center;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rail a {
  display: flex; align-items: center; gap: 10px;
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  transition: color 240ms;
}
.rail a i {
  width: 16px; height: 1px; background: currentColor; flex: none;
  transition: width 340ms var(--ease-out), background 240ms;
}
.rail a span {
  opacity: 0; transform: translateX(-6px);
  transition: opacity 300ms, transform 300ms var(--ease-out);
  white-space: nowrap; text-transform: uppercase;
}
.rail a:hover, .rail a.is-active { color: var(--accent); }
.rail a:hover i, .rail a.is-active i { width: 30px; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }

@media (max-width: 1180px) { .rail { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 62% at 62% 44%, transparent 12%, rgba(4, 6, 10, 0.62) 76%, var(--bg-void) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.72) 0%, transparent 24%, transparent 56%, var(--bg-void) 99%);
}

/* HUD */
.hud { position: absolute; inset: clamp(60px, 8vh, 96px) var(--gutter) clamp(48px, 7vh, 84px); z-index: 2; pointer-events: none; }
.hud__c { position: absolute; width: 22px; height: 22px; border: 1px solid var(--line-hot); opacity: 0.55; }
.hud__c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* balloon callouts, positioned every frame from camera.project() */
.hero__dims {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hero__dims .cal-lead { stroke: var(--line-hot); stroke-width: 1; fill: none; }
.hero__dims .cal-dot  { fill: var(--accent); }
.hero__dims .cal-ring { fill: rgba(4, 6, 10, 0.85); stroke: var(--accent); stroke-width: 1; }
.hero__dims .cal-tag {
  font-family: var(--f-mono); font-size: 11px; fill: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero__dims .cal-note {
  font-family: var(--f-mono); font-size: 10px; fill: var(--txt-dim);
  letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .hero__dims { display: none; } }

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(84px, 12vh, 132px);
  width: 100%;
}

.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--txt-dim); }
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow .dot { animation: pulse 2.6s ease-out infinite; }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.55); }
    70%  { box-shadow: 0 0 0 11px rgba(124, 255, 178, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0); }
  }
}

.hero__title { margin: 0 0 18px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  html.js .hero__title .line > span {
    transform: translateY(102%);
    transition: transform 1150ms var(--ease-out);
  }
  html.js .hero__title .line:nth-child(2) > span { transition-delay: 110ms; }
  html.js body.is-ready .hero__title .line > span { transform: none; }
}

.hero__sub {
  font-family: var(--f-mono);
  font-size: clamp(0.76rem, 1.35vw, 0.95rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--txt-hi);
  margin: 0 0 26px;
}
.hero__sub .sep { color: var(--accent); margin-inline: 0.7em; }

.hero__blurb { margin: 0 0 34px; max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__telemetry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(11, 16, 24, 0.55), transparent);
  min-width: 232px;
}
.tele__row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.tele__row b {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-hi);
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__telemetry { display: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--txt-faint);
}
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(180deg, var(--line-hot), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll i { animation: scrollcue 2.4s var(--ease-io) infinite; transform-origin: top; }
  @keyframes scrollcue { 0%, 100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* portrait stacks copy under the model — deepen the scrim so text always wins */
@media (max-width: 1080px) {
  .hero__vignette {
    background:
      radial-gradient(ellipse 96% 46% at 50% 26%, transparent 8%, rgba(4, 6, 10, 0.55) 74%, var(--bg-void) 100%),
      linear-gradient(180deg, rgba(4, 6, 10, 0.78) 0%, transparent 18%, rgba(4, 6, 10, 0.86) 46%, var(--bg-void) 76%);
  }
}

/* ==========================================================================
   WORK / BAY
   ========================================================================== */

.bay {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr) 330px;
  min-height: min(66svh, 700px);
  background: var(--bg-deep);
}

.bay__rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.bay__card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 240ms, border-color 240ms;
}
.bay__card:hover { background: rgba(255, 255, 255, 0.022); }
.bay__card[aria-selected='true'] {
  background: rgba(55, 224, 255, 0.055);
  border-left-color: var(--accent);
}
.bay__card h4 {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 5px;
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.bay__card[aria-selected='true'] h4 { color: var(--txt-hi); }
.bay__card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 1px 10px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}
.bay__card dt { grid-column: 1; }
.bay__card dd { grid-column: 2; margin: 0; text-align: right; color: var(--txt-dim); }
.bay__card[aria-selected='true'] dd { color: var(--accent); }

.bay__view { position: relative; min-height: 420px; background: radial-gradient(ellipse at 50% 42%, #0a1018 0%, #04060a 78%); }
.bay__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.bay__view canvas:active { cursor: grabbing; }
.bay__view canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.bay__loading {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(3px);
}
.bay__loadbar { width: min(280px, 52vw); height: 2px; background: var(--line); overflow: hidden; }
.bay__loadbar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 180ms linear; box-shadow: 0 0 12px var(--accent); }

/* explicit gate for the two large assemblies — never spend a visitor's data
   without telling them the cost first */
.bay__gate {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  text-align: center; padding: 30px;
  background: rgba(4, 6, 10, 0.9);
}
.bay__gate .t-label { color: var(--accent); margin: 0; }
.bay__gatetxt {
  margin: 0; max-width: 34ch;
  font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.7;
  color: var(--txt-dim); font-variant-numeric: tabular-nums;
}
.bay__gatetxt b { color: var(--txt-hi); font-weight: 500; }

.bay__hud { position: absolute; inset: 14px; pointer-events: none; z-index: 3; }
.bay__hudgrp { position: absolute; display: flex; gap: 22px; }
.bay__hudgrp--tl { top: 0; left: 0; }
.bay__hudgrp--tr { top: 0; right: 0; text-align: right; }
.bay__hudgrp--tr .readout { align-items: flex-end; }
.bay__hudgrp--bl { bottom: 74px; left: 0; }

.bay__hint {
  position: absolute; bottom: 74px; right: 14px; z-index: 3;
  color: var(--txt-faint); pointer-events: none;
  transition: opacity 500ms;
}
.bay__hint.is-hidden { opacity: 0; }

.bay__tools {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 10, 0.9) 42%);
  border-top: 1px solid var(--line-soft);
}
.tools__grp { display: flex; align-items: center; gap: 6px; }
.tools__grp--slider { gap: 10px; min-width: 190px; flex: 1 1 190px; max-width: 300px; }
.tools__grp--slider .slider { flex: 1; }
.tools__grp--slider output { font-size: 0.7rem; color: var(--accent); min-width: 3.4em; text-align: right; }
.bay__tools .btn { padding: 7px 12px; font-size: 0.62rem; letter-spacing: 0.13em; }

.bay__info {
  border-left: 1px solid var(--line);
  /* the fixed title block sits over the lower-right corner — keep the last
     row of content clear of it */
  padding: 20px 20px 96px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  max-height: min(66svh, 700px);
}
.bay__rail { max-height: min(66svh, 700px); }
.bay__kicker { color: var(--accent); margin: 0; }
.bay__info h3 { margin: 0; }
.bay__blurb { margin: 0; font-size: 0.87rem; line-height: 1.62; color: var(--txt); }

.bay__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bay__bullets li {
  position: relative;
  padding-left: 17px;
  font-size: 0.78rem;
  color: var(--txt-dim);
  line-height: 1.5;
}
.bay__bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 1px; background: var(--accent);
}

/* spec table — a real <table>, so the numbers survive a screen reader */
.bay__specs {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-soft);
  table-layout: fixed;
}
.bay__specs th, .bay__specs td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono);
}
.bay__specs tr:last-child th, .bay__specs tr:last-child td { border-bottom: 0; }
.bay__specs th {
  font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--txt-faint); font-weight: 400; width: 38%;
}
.bay__specs td {
  font-size: 0.72rem; color: var(--txt-hi);
  font-variant-numeric: tabular-nums; text-align: right;
}
.bay__specs td small { color: var(--txt-dim); font-size: 0.78em; margin-left: 2px; }

.bay__block { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.bay__blockhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.bay__matlist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  max-height: 156px; overflow-y: auto;
  border: 1px solid var(--line-soft);
}
.bay__matlist li {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: 0.64rem;
  color: var(--txt-dim); letter-spacing: 0.06em;
}
.bay__matlist li:last-child { border-bottom: 0; }
.bay__matlist i {
  width: 11px; height: 11px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.bay__matlist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bay__matlist em { margin-left: auto; font-style: normal; color: var(--txt-faint); font-size: 0.9em; }

.bay__partlist {
  list-style: none; margin: 0; padding: 0;
  max-height: 188px; overflow-y: auto;
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
}
.bay__partlist li { border-bottom: 1px solid var(--line-soft); }
.bay__partlist li:last-child { border-bottom: 0; }
.bay__partlist button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 6px 10px; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--f-mono); font-size: 0.68rem; color: var(--txt-dim);
  transition: background 180ms, color 180ms;
}
.bay__partlist button:hover { background: rgba(55, 224, 255, 0.06); color: var(--txt-hi); }
.bay__partlist button[aria-pressed='true'] { background: rgba(55, 224, 255, 0.12); color: var(--accent); }
.bay__partlist button em { font-style: normal; color: var(--txt-faint); font-size: 0.9em; font-variant-numeric: tabular-nums; }

.bay__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bay__tags li {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--txt-dim);
  border: 1px solid var(--line); padding: 4px 8px;
}

@media (max-width: 1240px) {
  .bay { grid-template-columns: 200px minmax(0, 1fr); }
  .bay__info { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .bay__specs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .bay { grid-template-columns: 1fr; }
  .bay__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .bay__card { min-width: 172px; border-bottom: 0; border-left: 0; border-top: 2px solid transparent; }
  .bay__card[aria-selected='true'] { border-left-color: transparent; border-top-color: var(--accent); }
  .bay__view { min-height: 62svh; }
  .bay__specs { grid-template-columns: 1fr 1fr; }
  .bay__hudgrp--bl, .bay__hint { display: none; }
  .bay__tools { position: static; background: var(--bg-deep); }
}

/* ==========================================================================
   FLIGHT
   ========================================================================== */

.flight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 1040px) { .flight__grid { grid-template-columns: 1fr; } }

/* the instrument module lays itself out with auto-fit; pin it to 2×2 so the
   four gauges read as a panel instead of an orphaned row */
.flight__panel .ddw-inst-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}
@media (max-width: 460px) {
  .flight__panel .ddw-inst-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.certs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.certs li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: baseline;
}
.certs li:last-child { border-bottom: 1px solid var(--line); }
.certs__date { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--accent-2); white-space: nowrap; }
.certs__name { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; color: var(--txt-hi); }
.certs__desc { grid-column: 2; font-size: 0.84rem; color: var(--txt-dim); margin: 0; }

.statstrip {
  list-style: none;
  margin: clamp(38px, 5vw, 68px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.statstrip li { background: var(--bg-void); padding: 22px 20px; }
.statstrip b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--txt-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}
.statstrip b i { font-style: normal; color: var(--accent); font-size: 0.5em; margin-left: 0.15em; }

/* ==========================================================================
   TRAJECTORY
   ========================================================================== */

.timeline { position: relative; padding-left: clamp(18px, 4vw, 56px); }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px clamp(20px, 3.5vw, 52px);
  padding: clamp(24px, 3.2vw, 42px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.tl:last-child { border-bottom: 0; }

.tl::before {
  content: '';
  position: absolute;
  left: calc(clamp(18px, 4vw, 56px) * -1 - 3px);
  top: calc(clamp(24px, 3.2vw, 42px) + 0.55em);
  width: 7px; height: 7px;
  background: var(--bg-void);
  border: 1px solid var(--txt-faint);
  transition: border-color 400ms, background 400ms, box-shadow 400ms;
}
.tl.is-in::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(55, 224, 255, 0.14); }
.tl[data-now]::before { border-color: var(--accent-3); background: var(--accent-3); box-shadow: 0 0 0 4px rgba(124, 255, 178, 0.16); }

.tl__when { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--txt-faint); padding-top: 0.35em; }
.tl__now {
  display: inline-block; margin-top: 6px; padding: 2px 7px;
  border: 1px solid rgba(124, 255, 178, 0.4); color: var(--accent-3);
  font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.tl__role { font-family: var(--f-display); font-size: clamp(1.12rem, 2.1vw, 1.62rem); font-weight: 600; color: var(--txt-hi); letter-spacing: -0.02em; margin: 0 0 3px; }
.tl__org { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.tl__body { margin: 0 0 14px; font-size: 0.92rem; color: var(--txt); max-width: 66ch; }
.tl__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl__tags li {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--txt-dim);
  border: 1px solid var(--line); padding: 4px 9px;
}

@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; }
  .tl__when { padding-top: 0; }
}

/* ==========================================================================
   CAPABILITY
   ========================================================================== */

/* capability schedule — presence and evidence, never a magnitude.
   Each row: capability … dot leader … the work that backs it. */
.cap__matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.capgrp { background: var(--bg-void); padding: 20px 20px 22px; }
.capgrp > h3 {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.capgrp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }

.capitem { display: flex; flex-direction: column; gap: 3px; }
.capitem__top { display: flex; align-items: baseline; gap: 8px; }
.capitem__box {
  width: 9px; height: 9px; flex: none;
  border: 1px solid var(--ink-rule);
  transform: translateY(-1px);
  transition: background 0ms, border-color 0ms;
}
html.js .capitem.is-in .capitem__box { background: var(--accent-3); border-color: var(--accent-3); }
.capitem__name {
  font-family: var(--f-display);
  font-size: 0.92rem; font-weight: 600;
  color: var(--txt-hi); letter-spacing: -0.012em;
  white-space: nowrap;
}
.capitem__lead {
  flex: 1;
  height: 1em;
  min-width: 10px;
  background-image: repeating-linear-gradient(to right, var(--ink-rule) 0 1px, transparent 1px 5px);
  background-repeat: repeat-x;
  background-position: 0 60%;
  background-size: 5px 1px;
}
.capitem__ev { font-size: 0.78rem; color: var(--txt-dim); padding-left: 17px; text-wrap: pretty; }

.marquee {
  margin-top: clamp(44px, 6vw, 84px);
  border-block: 1px solid var(--line);
  padding-block: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 46px; width: max-content;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--txt-faint); white-space: nowrap;
}
.marquee__track span { display: flex; align-items: center; gap: 46px; }
.marquee__track span::after { content: '◆'; color: var(--accent); font-size: 0.55em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marq 44s linear infinite; }
  @keyframes marq { to { transform: translateX(-50%); } }
}

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */

.contact { border-top: 1px solid var(--line); }
.contact__inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-bottom: 72px; }
.contact__title { margin: 6px 0 4px; }
.contact__links { list-style: none; margin: 26px 0 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.contact__links li { border-bottom: 1px solid var(--line); }
.contact__links a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px 4px;
  transition: padding-left 420ms var(--ease-out), color 300ms;
}
.contact__links a:hover { padding-left: 18px; color: var(--txt-hi); }
.contact__links .k { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-faint); }
.contact__links .v { font-family: var(--f-display); font-size: clamp(1.05rem, 2.4vw, 1.65rem); font-weight: 600; color: var(--txt-hi); letter-spacing: -0.02em; word-break: break-word; }
.contact__links .go { color: var(--accent); font-family: var(--f-mono); font-size: 0.8rem; opacity: 0; transform: translateX(-8px); transition: opacity 300ms, transform 420ms var(--ease-out); }
.contact__links a:hover .go, .contact__links a:focus-visible .go { opacity: 1; transform: none; }
@media (max-width: 640px) { .contact__links a { grid-template-columns: 1fr auto; } .contact__links .k { grid-column: 1 / -1; } }

.foot { border-top: 1px solid var(--line); padding-block: 26px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: 0.72rem; }
.foot__meta { flex: 1 1 auto; text-align: center; }
@media (max-width: 720px) { .foot__meta { text-align: left; flex-basis: 100%; order: 3; } }

/* ==========================================================================
   COMMAND PALETTE + TOAST
   ========================================================================== */

.palette { position: fixed; inset: 0; z-index: 800; display: grid; place-items: start center; padding-top: 14vh; }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: rgba(2, 4, 7, 0.72); backdrop-filter: blur(5px); }
.palette__box {
  position: relative;
  width: min(620px, 92vw);
  background: var(--bg-panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: palIn 260ms var(--ease-out);
}
@keyframes palIn { from { opacity: 0; transform: translateY(-12px) scale(0.985); } }

.palette__input {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: var(--txt-hi);
  outline: none;
}
.palette__input::placeholder { color: var(--txt-faint); }

.palette__list { list-style: none; margin: 0; padding: 6px; max-height: 46vh; overflow-y: auto; }
.palette__list li[role='option'] {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--txt);
}
.palette__list li[aria-selected='true'] { background: rgba(55, 224, 255, 0.1); color: var(--accent); }
.palette__list li .grp { margin-left: auto; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-faint); }
.palette__list li[aria-selected='true'] .grp { color: var(--accent); opacity: 0.7; }
.palette__empty { padding: 22px; text-align: center; color: var(--txt-faint); font-family: var(--f-mono); font-size: 0.78rem; }

.palette__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); }

.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, 130%);
  z-index: 850;
  padding: 12px 22px;
  background: var(--bg-raise);
  border: 1px solid var(--line-hot);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--txt-hi);
  transition: transform 480ms var(--ease-out);
  pointer-events: none;
  max-width: 90vw;
}
.toast.is-up { transform: translate(-50%, 0); }
