/* ============================================
   Ergane Systems — global styles
   Cool slate, white-phosphor accent, editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

:root {
  /* Color tokens */
  --bg:            #12151a;
  --bg-1:          #161a20;   /* card lift 1 */
  --bg-2:          #1b2027;   /* card lift 2 */
  --bg-3:          #21272f;   /* hover / strong lift */
  --line:          rgba(232, 225, 217, 0.09);
  --line-strong:   rgba(232, 225, 217, 0.18);

  --text:          #e8e1d9;
  --text-1:        rgba(232, 225, 217, 0.78);
  --text-2:        rgba(232, 225, 217, 0.55);
  --text-3:        rgba(232, 225, 217, 0.38);

  /* White phosphor — pale cyan-blue NV tube glow */
  --wp:            #9bbecc;
  --wp-bright:     #c6dde6;
  --wp-deep:       #6a93a3;
  --wp-glow:       rgba(155, 190, 204, 0.18);
  --wp-faint:      rgba(155, 190, 204, 0.08);

  /* Status */
  --ok:            #8fbf9a;
  --warn:          #d7b27a;
  --danger:        #cc7a6a;

  /* Type */
  --f-display:     "Instrument Serif", "Times New Roman", serif;
  --f-sans:        "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:        "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Density (overridden by tweak) */
  --d-section:     96px;        /* vertical section padding */
  --d-gap:         24px;
  --d-card-pad:    28px;
  --d-h1:          88px;
  --d-h2:          52px;
  --d-h3:          28px;
  --d-body:        17px;
  --d-small:       13px;
  --d-meta:        11px;

  --maxw:          1320px;
}

[data-density="compact"] {
  --d-section:     66px;
  --d-gap:         18px;
  --d-card-pad:    20px;
  --d-h1:          72px;
  --d-h2:          40px;
  --d-h3:          24px;
  --d-body:        15px;
  --d-small:       12px;
  --d-meta:        10.5px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 var(--d-body)/1.55 var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0; }

::selection { background: var(--wp); color: #0a0c10; }

/* ============ Layout ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: var(--d-section) 0; position: relative; }
.section--tight { padding: calc(var(--d-section) * 0.5) 0; }

/* ============ Topo canvas ============ */
.topo-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#root { position: relative; z-index: 1; }
.page { position: relative; z-index: 1; }

/* ============ Type ============ */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--d-h1);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--text);
}
.display em { font-style: italic; color: var(--wp); }

h1, h2, h3 { font-weight: 400; margin: 0; }

.h1 { font-family: var(--f-display); font-size: var(--d-h1); line-height: 0.96; letter-spacing: -0.02em; }
.h2 { font-family: var(--f-display); font-size: var(--d-h2); line-height: 1.04; letter-spacing: -0.015em; }
.h3 { font-family: var(--f-sans);     font-size: var(--d-h3); line-height: 1.2;  letter-spacing: -0.01em; font-weight: 500; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--d-meta);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wp);
  font-weight: 400;
}
.eyebrow--muted { color: var(--text-2); }

.meta {
  font-family: var(--f-mono);
  font-size: var(--d-meta);
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}

.lede {
  font-family: var(--f-sans);
  font-size: calc(var(--d-body) * 1.18);
  line-height: 1.5;
  color: var(--text-1);
  max-width: 56ch;
}

.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }

.serif-it { font-family: var(--f-display); font-style: italic; color: var(--wp); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 21, 26, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo .mark { color: var(--wp); }
.nav-logo .ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.25px solid var(--wp);
  position: relative;
  box-shadow: 0 0 0 3px transparent, inset 0 0 0 3px transparent;
}
.nav-logo .ring::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  border: 1.25px solid var(--wp);
  opacity: 0.55;
}
.nav-logo .chev {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid var(--wp);
}

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a {
  color: var(--text-2);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--wp); border-bottom-color: var(--wp); }

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

/* Mobile menu: the toggle only renders below 720px, so the drawer it controls
   is unreachable above that. The min-width guard is a second lock, covering a
   drawer left open while the window is resized up to desktop. */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px; padding: 0 11px;
  border: 1px solid var(--line-strong);
  background: rgba(232, 225, 217, 0.02);
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 100%; height: 1.5px; background: var(--text); }
.nav-drawer { border-top: 1px solid var(--line); background: rgba(18, 21, 26, 0.96); }
.nav-drawer .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.nav-drawer a {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a.active { color: var(--wp); }

@media (min-width: 721px) { .nav-drawer { display: none; } }
@media (max-width: 720px) { .nav-toggle { display: flex; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(232, 225, 217, 0.02);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  cursor: pointer;
}
.btn:hover { background: rgba(232, 225, 217, 0.06); border-color: var(--text-2); }
.btn--primary {
  background: var(--wp);
  color: #0a0c10;
  border-color: var(--wp);
}
.btn--primary:hover {
  background: var(--wp-bright);
  border-color: var(--wp-bright);
  color: #0a0c10;
}
.btn .arr { display: inline-block; transform: translateY(-0.5px); }

/* ============ Cards ============ */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 32, 39, 0.78) 0%, rgba(22, 26, 32, 0.78) 100%);
  border: 1px solid var(--line);
  padding: var(--d-card-pad);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 160ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--line-strong); }
.card--clean {
  background: rgba(22, 26, 32, 0.65);
}
.card-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.card-eyebrow .dot {
  width: 6px; height: 6px; background: var(--wp); border-radius: 50%;
  box-shadow: 0 0 8px var(--wp-glow);
}

/* corner ticks for cards */
.card--ticked::before,
.card--ticked::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--wp);
  pointer-events: none;
}
.card--ticked::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card--ticked::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ============ Status pills ============ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  background: rgba(232, 225, 217, 0.03);
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }
.pill--ok      { color: var(--ok);    border-color: rgba(143,191,154,0.35); }
.pill--ok .d   { background: var(--ok); box-shadow: 0 0 8px rgba(143,191,154,0.5); }
.pill--wp      { color: var(--wp);    border-color: rgba(155,190,204,0.35); }
.pill--wp .d   { background: var(--wp); box-shadow: 0 0 8px var(--wp-glow); }
.pill--warn    { color: var(--warn);  border-color: rgba(215,178,122,0.35); }
.pill--warn .d { background: var(--warn); }

/* ============ Tables ============ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 13px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  font-weight: 500; color: var(--text-2); text-transform: uppercase;
  font-size: 10.5px; letter-spacing: 0.14em;
  background: rgba(27, 32, 39, 0.5);
  border-bottom-color: var(--line-strong);
}
.tbl td { color: var(--text-1); }
.tbl tr:hover td { background: rgba(232,225,217,0.02); }

/* ============ Grids ============ */
.g-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--d-gap); }
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--d-gap); }
.g-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--d-gap); }
.g-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--d-gap); }

@media (max-width: 980px) {
  .g-3, .g-4, .g-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
}

/* ============ Section heads ============ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
/* Header-only sections have nothing beneath the rule, so the 36px meant to
   separate header from content just inflates the gap to the next section. */
.sec-head:last-child { margin-bottom: 0; }
/* 3d: matched to .eyebrow so every kicker on the site is one spec. */
.sec-head .sec-num {
  font-family: var(--f-mono);
  font-size: var(--d-meta);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wp);
  font-weight: 400;
}
.sec-head .sec-title { margin-top: 14px; }
.sec-head .sec-lede { color: var(--text-1); max-width: 52ch; }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 120px;
  padding-bottom: 96px;
  display: flex;
  align-items: center;
}
.hero-inner { width: 100%; }

.hero-wordmark {
  font-family: var(--f-mono);
  font-size: clamp(48px, 10vw, 146px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--text);
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-wordmark .div { color: var(--text-3); padding: 0 4px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 28px;
}
.hero-eyebrow .ln { flex: 0 0 48px; height: 1px; background: var(--wp); opacity: 0.6; }

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 28px 0 24px;
  max-width: 18ch;
  color: var(--text);
}
.hero-headline em { font-style: italic; color: var(--wp); }

.hero-sub {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-1);
  max-width: 56ch;
  margin: 0 0 40px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-foot {
  position: absolute;
  bottom: 32px;
  left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.18em;
}
.hero-foot .coord { display: flex; gap: 28px; }

@media (max-width: 720px) {
  .hero-foot { display: none; }
  /* The 48px clamp floor overflows a 335px content box on a phone. */
  .hero-wordmark { font-size: clamp(28px, 8.5vw, 48px); }
}

/* ============ Mission strip ============ */
.mission-card {
  position: relative;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(27,32,39,0.7), rgba(22,26,32,0.7));
  border: 1px solid var(--line);
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 160ms ease, transform 200ms ease;
}
.mission-card:hover { border-color: var(--wp); }
.mission-card .icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  color: var(--wp);
}
.mission-card .name {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.mission-card .desc { color: var(--text-1); font-size: 14px; line-height: 1.5; }
.mission-card .num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-3); letter-spacing: 0.12em;
}

/* ============ Node progression ============ */
.node-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
  background: rgba(22,26,32,0.5);
}
.node-row::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wp-glow) 8%, var(--wp) 50%, var(--wp-glow) 92%, transparent);
  z-index: 0;
}
.node {
  position: relative;
  padding: 32px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 1;
}
.node:last-child { border-right: 0; }
.node .tier {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: 8px;
}
.node .nm {
  font-family: var(--f-display); font-size: 26px; line-height: 1.05;
  margin-bottom: 14px;
}
.node .marker {
  width: 16px; height: 16px;
  border: 1.5px solid var(--wp);
  background: var(--bg);
  border-radius: 50%;
  margin: 18px 0 22px;
  position: relative;
  box-shadow: 0 0 0 4px rgba(18,21,26,1), 0 0 12px var(--wp-glow);
}
.node .marker::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--wp);
}
.node .specs {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.node .specs .k { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.node .specs .v { color: var(--text); display: block; margin-bottom: 8px; }

@media (max-width: 980px) {
  .node-row { grid-template-columns: 1fr; }
  .node-row::before { display: none; }
  .node { border-bottom: 1px solid var(--line); }
}

/* ============ SAROS proof block ============ */
/* Declared after .card so the 56px padding wins on source order: .proof and
   .card have equal specificity, and this used to be an inline style. */
.proof { padding: 56px; }
/* With the stat grid gone the headline ran the full card width over a 56ch body.
   Cap it to about the body's measure so the block reads as one column. */
.proof .h2 { max-width: 680px; }
.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: 1fr; gap: 36px; }
  /* Stacked, the separating rule moves from the left edge to the top. */
  .proof-stats {
    padding-left: 0; border-left: 0;
    padding-top: 28px; border-top: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .proof { padding: 28px 22px; }
}
.proof-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.proof-note { font-size: 10.5px; text-transform: none; letter-spacing: 0.02em; }

/* ============ Platform · core services ============ */
/* Declared after .card so the border/padding resets win on source order — these
   were inline styles, which is why the grid could not answer a media query. */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
.svc {
  border: 0;
  padding: 36px 32px;
}
/* Two-up rows: a bottom rule under each card, a right rule on the left one. */
.svc:not(.svc--wide) { border-bottom: 1px solid var(--line); }
.svc:nth-child(odd):not(.svc--wide) { border-right: 1px solid var(--line); }
/* The fifth service runs full width and centres. */
.svc--wide { grid-column: 1 / -1; text-align: center; }
.svc-desc { max-width: 60ch; }
.svc--wide .svc-desc { margin-left: auto; margin-right: auto; }

/* Two-up at 375px leaves a ~102px heading box — narrower than single words like
   "Coordination", so the names spilled their cards. Stacked, the box is ~269px. */
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(odd):not(.svc--wide) { border-right: 0; }
}

/* ============ Mission set groups ============ */
/* The accordion header is one flex row, so the toggle and its gap take ~150px
   of a 375px screen and the heading only gets ~224px to wrap in - other pages'
   headings get the full 335px. At --d-h2 the longest name ran to 242px, so the
   size steps down on mobile. Declared here rather than inline because inline
   styles cannot answer a media query. */
.ms-group { border: 1px solid var(--line); }
.ms-summary {
  cursor: pointer;
  padding: 28px 32px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--f-display);
  font-size: var(--d-h2);
  letter-spacing: -0.015em;
}
.ms-summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .ms-summary { font-size: 36px; padding: 22px 22px; gap: 16px; }
}

/* ============ By-request card ============ */
/* Declared after .card so the padding wins on source order — this was an inline
   style, which is why it could not answer a media query. */
.req-card {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .req-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
}

/* ============ Inline text link ============ */
/* Every other link on the site is a .btn; this is for links set in running text. */
.lnk {
  color: var(--wp);
  border-bottom: 1px solid rgba(155, 190, 204, 0.35);
  transition: border-color 120ms ease;
}
.lnk:hover { border-bottom-color: var(--wp); }
.lnk .arr { display: inline-block; transform: translateY(-0.5px); }

/* ============ Stat block ============ */
.stat .v {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 1;
  color: var(--wp);
  letter-spacing: -0.01em;
}
.stat .l {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 10px;
}

/* ============ Footer ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  position: relative;
  background: rgba(18, 21, 26, 0.92);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--text-1); font-size: 14px; }
.foot-col a:hover { color: var(--wp); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-mark { font-family: var(--f-mono); font-size: 22px; letter-spacing: 0.08em; color: var(--text); }
.foot-disclaim {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--text-3);
  max-width: 44ch;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
}

/* ============ Roadmap timeline ============ */
.roadmap {
  position: relative;
  padding-left: 32px;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--wp) 0%, var(--wp-glow) 40%, var(--line) 100%);
}
.rm-phase {
  position: relative;
  padding: 24px 0 56px;
}
.rm-phase::before {
  content: '';
  position: absolute;
  left: -32px; top: 32px;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--wp);
  background: var(--bg);
  box-shadow: 0 0 12px var(--wp-glow);
}
.rm-phase.done::before { background: var(--wp); }
.rm-phase.now::after {
  content: '';
  position: absolute;
  left: -36px; top: 28px;
  width: 25px; height: 25px;
  border-radius: 50%;
  border: 1px solid var(--wp);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%     { opacity: 0; transform: scale(1.6); }
}
.rm-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 8px;
}
.rm-name {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.05;
  margin: 6px 0 10px;
}
.rm-body { color: var(--text-1); max-width: 60ch; margin-bottom: 16px; }
.rm-list {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-mono); font-size: 12.5px;
  color: var(--text-1);
}
.rm-list li {
  position: relative;
  padding-left: 18px;
  list-style: none;
}
.rm-list li::before {
  content: '›';
  position: absolute; left: 0; top: 0;
  color: var(--wp);
}
.rm-list ul { padding: 0; margin: 0; }

/* ============ Filter bar ============ */
.filter-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 4px;
  background: rgba(22, 26, 32, 0.7);
  border: 1px solid var(--line);
  margin-bottom: 48px;
  width: max-content; max-width: 100%;
}
.filter-bar button {
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.filter-bar button.on {
  background: var(--wp);
  color: #0a0c10;
}
.filter-bar button:hover:not(.on) { color: var(--text); }

/* Below 720px the five buttons wrap to four rows, so a native select takes over. */
.filter-select {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-bottom: 48px;
  padding: 12px 14px;
  background: rgba(22, 26, 32, 0.7);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .filter-bar { display: none; }
  .filter-select { display: block; }
}

/* ============ Use case card ============ */
.uc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(22, 26, 32, 0.7);
  border: 1px solid var(--line);
}
.uc-l { padding: 32px 28px; border-right: 1px solid var(--line); }
.uc-r { padding: 32px 28px; background: rgba(27, 32, 39, 0.4); }
.uc-name {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.1;
  margin: 12px 0 14px;
}
.uc-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: 11.5px;
}
.uc-row:last-child { border-bottom: 0; }
.uc-row .k { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.uc-row .v { color: var(--text-1); }

/* Two-up, the spec column's fixed 100px label plus its gap exceeds the space a
   card has below ~1100px, so the value column collapses. Stack before that. */
@media (max-width: 1100px) {
  .uc { grid-template-columns: 1fr; }
  .uc-l { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ============ Inline diagrams ============ */
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv:last-child { border-bottom: 0; }
.kv .k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 3px;
}
.kv .v { color: var(--text-1); }

/* ============ Misc ============ */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 var(--d-gap);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%; transform: translateX(-50%);
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--wp));
  opacity: 0.6;
}

.crosshair {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.crosshair::before, .crosshair::after {
  content: ''; position: absolute; background: var(--wp); opacity: 0.6;
}
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.vignette-toggle::after { content: 'Expand'; }
details[open] .vignette-toggle::after { content: 'Collapse'; }.tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.tag:hover { color: var(--wp); border-color: var(--wp); }

/* Page intro spacing */
.page-intro { padding: 120px 0 64px; }

/* Subtle hover lift on cards */
.lift:hover { transform: translateY(-2px); }

/* ============ Mobile refinements ============ */
@media (max-width: 720px) {
  /* Tap targets to the 44px minimum. The nav button's padding is inline, so
     min-height is used rather than fighting specificity. */
  .nav-logo { min-height: 44px; }
  .nav .btn { min-height: 44px; }
  .foot-col ul { gap: 0; }
  .foot-col a { display: block; padding: 13px 0; }

  /* Legibility: 11px mono is small on a phone. */
  :root { --d-meta: 12px; }
  .uc-row { font-size: 13px; }
  .proof-note { font-size: 12px; }
  .tag { font-size: 12px; }
  .foot-bottom { font-size: 12px; }

  /* The node table is five columns wide — 569px of content in a 333px window.
     Below 720px each row becomes a stacked block and the column headings are
     re-attached per cell via data-label. */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 2px solid var(--line-strong); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 10px 14px;
  }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
  }
}
