/* Remora Orbital — "Flight Manual" */

/* ---------- Fonts (self-hosted) ---------- */
/* Geist Sans is not bundled yet. To switch to it, add Geist-Regular/Medium/SemiBold.woff2
   to assets/fonts and uncomment the three blocks below; the "Geist" family is already
   first in --sans, so nothing else needs to change. */
/*
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/
@font-face { font-family: "Inter RO"; src: url("../assets/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter RO"; src: url("../assets/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter RO"; src: url("../assets/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter RO Display"; src: url("../assets/fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F3F1EA;
  --paper-2: #EBE8DF;
  --ink: #111111;
  --text-2: #3A3A3A;
  --graphite: #6B6B6B;
  --rule: #D4D1C7;
  --rule-2: #B9B5AA;
  --signal: #FF4F00;

  --sans: "Geist", "Inter RO", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", "Inter RO Display", "Inter RO", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --rail: 200px;
  --header-h: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { top: 12px; color: var(--paper); }

.label, .sec-label {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--mono); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ol { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-family: var(--mono); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav .num { color: var(--graphite); margin-right: 6px; }
.site-nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--ink); }
.nav-contact { border-bottom: 1px solid var(--ink); min-height: auto !important; padding-block: 2px; }
.nav-toggle {
  display: none; font: inherit; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; color: var(--ink); border: 1px solid var(--ink); min-height: 40px; padding: 0 14px; cursor: pointer;
}

@media (max-width: 1060px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    padding: 8px var(--gutter) 20px; flex-direction: column; align-items: flex-start; gap: 8px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ol { flex-direction: column; gap: 0; }
  .header-inner { position: relative; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px 24px; }
  html:not(.js) .site-nav ol { flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #2B2B2B; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); color: var(--paper); }
.btn-ghost[disabled]:hover { background: transparent; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--display); font-size: clamp(2.4rem, 5.1vw, 4.1rem);
  line-height: 1.03; letter-spacing: -0.03em; max-width: 13.5em;
}
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--text-2); max-width: 36em; }
.spec {
  margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.spec div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.spec div:nth-child(odd) { padding-right: 20px; }
.spec div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.spec dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; }

/* ---------- Figures ---------- */
.fig { margin: 0; position: relative; }
.fig svg { width: 100%; height: auto; }
.fig figcaption {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--graphite);
}
.fig-no { color: var(--ink); margin-right: 8px; }
/* corner crop marks */
.sim-fig::before, .sim-fig::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.sim-fig::before { left: 0; top: 0; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.sim-fig::after { right: 0; top: 0; border-right: 1px solid var(--ink); border-top: 1px solid var(--ink); }

/* SVG styling */
.earth { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.graticule, .graticule ellipse { fill: none; stroke: var(--rule-2); stroke-width: .75; }
.orbit { fill: none; stroke: var(--ink); }
.orbit-a { stroke-width: 1; }
.orbit-b { stroke-width: .75; stroke-dasharray: 3 5; }
.dim line { stroke: var(--ink); stroke-width: .75; }
.dim text, .hostile-mark text, .node-label, .earth-label, .tick-label {
  font-family: var(--mono); font-size: 11px; fill: var(--ink); letter-spacing: .04em;
}
.node-sub { font-family: var(--mono); font-size: 10px; fill: var(--graphite); }
.hostile-mark path { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.hostile-mark .track { stroke: var(--ink); stroke-width: .75; stroke-dasharray: 2 4; }
.hostile-mark .leader, .leader { stroke: var(--ink); stroke-width: .75; }
.guard { fill: var(--signal); stroke: var(--ink); stroke-width: 1; }
.cover { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: butt; }
.cover-zone { fill: none; stroke: var(--signal); stroke-opacity: .32; stroke-width: 14; }
.customer { fill: var(--ink); }
.customer-new { fill: var(--ink); stroke: var(--signal); stroke-width: 2; }
.ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.ring-outer { fill: none; stroke: var(--rule-2); stroke-width: .75; stroke-dasharray: 2 5; }
.tick { stroke: var(--ink); stroke-width: .75; }
.tick-minor { stroke: var(--rule-2); stroke-width: .75; }
.earth-label { fill: var(--graphite); font-size: 10px; letter-spacing: .2em; }
.threat { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.threat.is-captured { fill: var(--ink); }
.threat-track { stroke: var(--ink); stroke-width: .75; stroke-dasharray: 2 4; fill: none; }
.clamp { stroke: var(--signal); stroke-width: 2; }
.inspect-ring { fill: none; stroke: var(--ink); stroke-width: .75; stroke-dasharray: 2 3; }
.fx-label { font-family: var(--mono); font-size: 11px; fill: var(--ink); }

/* ---------- Sections ---------- */
.sec {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 40px;
  padding-block: clamp(56px, 8vw, 104px);
  /* hairline aligned to the content edge, not the padding box */
  background: linear-gradient(var(--ink), var(--ink)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px;
}
.sec-label { padding-top: 10px; }
.sec-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.sec-body.narrow { max-width: 46em; }
.sec h2 {
  font-family: var(--display); font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em; max-width: 22em;
}
.sec-body > p { color: var(--text-2); font-size: 1.06rem; max-width: 40em; }
.note { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--graphite); }

.fn {
  font-family: var(--mono); font-size: 0.68em; vertical-align: super; line-height: 0;
  margin-left: 2px; text-decoration: none; color: var(--graphite);
  padding: 0 1px;
}
.fn::before { content: "["; } .fn::after { content: "]"; }
.fn:hover { color: var(--ink); text-decoration: underline; }

/* Problem */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.findings, .rules { list-style: none; margin: 0; padding: 0; }
.findings li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.findings li:first-child { border-top-color: var(--ink); }
.idx { font-family: var(--mono); font-size: 13px; color: var(--graphite); padding-top: 3px; }
.findings h3, .rules h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.findings p, .rules p { margin-top: 6px; color: var(--text-2); }
.margin { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--rule); padding-left: 24px; }
.figure-stat { display: flex; flex-direction: column; gap: 6px; }
.stat { font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .arrow { font-family: var(--sans); font-weight: 400; color: var(--graphite); }
.stat-label { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

/* Approach */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.rules li { padding: 24px 28px 0 0; display: flex; flex-direction: column; gap: 6px; }
.rules li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.rules .idx { margin-bottom: 10px; }

/* Simulation */
.sim { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sim-fig { padding: 18px 18px 0; }
.sim-panel { display: flex; flex-direction: column; gap: 22px; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.js) .sim-controls, html:not(.js) .readout, html:not(.js) .status { display: none; }
.readout { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.readout div { padding: 12px 12px 12px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.readout div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.readout dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.readout dd { margin: 4px 0 0; font-family: var(--mono); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.readout dd.bump { animation: bump .6s ease; }
@keyframes bump { 0% { color: var(--signal); } 100% { color: var(--ink); } }
.status { font-family: var(--mono); font-size: 13px; min-height: 2.6em; display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ink); }
.status.is-active::before { background: var(--signal); outline: 1px solid var(--ink); }

.ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ladder li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); position: relative; transition: background-color .2s ease; }
.ladder .rung { font-family: var(--mono); font-size: 12px; color: var(--graphite); padding-top: 3px; display: flex; align-items: flex-start; gap: 6px; }
.ladder h3 { font-size: 1rem; line-height: 1.35; }
.ladder p { font-size: 14.5px; line-height: 1.45; color: var(--text-2); margin-top: 1px; }
.ladder li.is-current { background: var(--paper-2); }
.ladder li.is-current .rung { color: var(--ink); }
.ladder li.is-current::before { content: ""; position: absolute; left: -14px; top: 17px; width: 8px; height: 8px; background: var(--signal); outline: 1px solid var(--ink); }
.ladder li.is-done .rung::after { content: "✓"; color: var(--ink); }

/* Systems */
.systems { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.systems thead th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.systems td, .systems tbody th { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.systems .code { font-family: var(--mono); font-weight: 400; font-size: 14px; width: 130px; white-space: nowrap; }
.systems td:nth-child(2) { font-weight: 600; width: 32%; }
.systems td:last-child { color: var(--text-2); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 180px; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--rule); position: relative;
}
.timeline time { font-family: var(--mono); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--text-2); max-width: 44em; }
.timeline .src { font-family: var(--mono); font-size: 12.5px; text-align: right; padding-top: 2px; }
.timeline .src::after { content: " ↗"; }
.timeline .is-latest time::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--ink); vertical-align: 1px; }

.stats { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats .figure-stat { padding: 24px 28px 0 0; }
.stats .figure-stat + .figure-stat { padding-left: 28px; border-left: 1px solid var(--rule); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.person { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.person h3 { font-family: var(--display); font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; }
.role { font-family: var(--mono); font-size: 12.5px; color: var(--graphite); letter-spacing: .02em; }
.person ul { margin: 8px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.person li { display: grid; grid-template-columns: 18px minmax(0, 1fr); color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.person li::before { content: "—"; color: var(--graphite); }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.link { font-family: var(--mono); font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; }

/* Contact */
.contact-email { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.contact-email a { text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding-block: 48px 32px; }
.refs ol { margin: 16px 0 0; padding: 0 0 0 2.4em; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text-2); columns: 2; column-gap: 48px; }
.refs li { break-inside: avoid; padding-left: 4px; margin-bottom: 6px; }
.refs li:target { background: var(--paper-2); outline: 1px solid var(--ink); outline-offset: 2px; }
.refs .label { font-size: 12px; }
.footer-base { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--graphite); }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .sec { grid-template-columns: 1fr; row-gap: 20px; }
  .sec-label { padding-top: 0; }
  .sim { grid-template-columns: 1fr; }
  .sim-fig { max-width: 620px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fig { max-width: 600px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .margin { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; flex-direction: row; flex-wrap: wrap; gap: 28px 48px; }
  .margin .figure-stat { flex: 1 1 200px; }
  .rules, .stats-3 { grid-template-columns: 1fr; }
  .rules li, .rules li + li { padding: 22px 0; border-left: 0; }
  .rules li + li { border-top: 1px solid var(--rule); }
  .stats .figure-stat, .stats .figure-stat + .figure-stat { padding: 22px 0; border-left: 0; }
  .stats .figure-stat + .figure-stat { border-top: 1px solid var(--rule); }
  .team { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 120px minmax(0, 1fr); }
  .timeline .src { grid-column: 2; text-align: left; padding-top: 0; }
  .refs ol { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { font-size: 12.5px; letter-spacing: .12em; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(even) { padding-left: 0; border-left: 0; }
  .findings li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .src { grid-column: 1; }
  .readout dd { font-size: 22px; }
  .readout dt { font-size: 10px; }
  .systems thead { display: none; }
  .systems, .systems tbody, .systems tr, .systems td, .systems tbody th { display: block; width: auto; }
  .systems tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .systems tr:first-child { border-top: 1px solid var(--ink); }
  .systems td, .systems tbody th { border: 0; padding: 2px 0; }
  .systems .code { width: auto; }
  .sim-fig { padding: 12px 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .sim-controls, .readout, .status, .skip { display: none !important; }
  .sec { break-inside: avoid; }
  body { background: #fff; }
}

/* hero extras */
.earth-fill { fill: var(--paper); stroke: none; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: var(--graphite); }
.lg { display: inline-block; width: 9px; height: 9px; margin-left: 6px; }
.lg:first-child { margin-left: 0; }
.lg-guard { background: var(--signal); outline: 1px solid var(--ink); }
.lg-cust { background: var(--ink); border-radius: 50%; }
.lg-unk { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--ink); }

/* zone diagram text sits in a 600-unit viewBox; size it so it renders at ~10-11px */
#zone-svg .tick-label, #zone-svg .node-label, #zone-svg .fx-label { font-size: 15px; }
#zone-svg .earth-label { font-size: 12px; }
@media (max-width: 640px) {
  #zone-svg .tick-label, #zone-svg .node-label, #zone-svg .fx-label { font-size: 19px; }
  #hero-svg .node-sub { display: none; }
  #hero-svg .node-label, #hero-svg .hostile-mark text { font-size: 15px; }
}
@media (max-width: 640px) { .systems td:nth-child(2) { width: auto; } }

/* Official logo (colour #215F9A, from the brand files) */
.logo { display: block; height: 42px; width: auto; }
.logo-lg { height: 96px; }
.footer-logo { margin-top: 0; }
@media (max-width: 640px) { .logo { height: 36px; } .logo-lg { height: 80px; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-intro .lede { max-width: 22em; }
.company-link { margin-top: 0; }
.contact-grid .contact-email { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.01em; white-space: nowrap; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.field .opt { color: var(--graphite); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #FBFAF6;
  border: 1px solid #8C887E; border-radius: 0; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--graphite); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { font-size: 13.5px; color: #B42318; min-height: 0; }
.err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.form-status.is-error { color: #B42318; }
.form-sent { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.form-sent h3 { font-size: 1.4rem; }
.form-sent p { color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
.field-slim input { min-height: 44px; padding: 8px 12px; }
.contact .sec-body { gap: 0; }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Founder portraits */
.person-head { display: flex; align-items: flex-end; gap: 24px; }
.person-head > div { display: flex; flex-direction: column; gap: 6px; }
.portrait { width: 168px; height: 210px; flex: none; object-fit: cover; border: 1px solid var(--ink); background: var(--paper-2); filter: contrast(1.02); }
.portrait-empty { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 18px; letter-spacing: .08em; color: var(--graphite); }
@media (max-width: 640px) { .portrait { width: 128px; height: 160px; } .person-head { gap: 16px; } }
.contact-logo { height: 120px; margin-top: 4px; }
@media (max-width: 900px) { .contact-logo { height: 88px; margin-top: 4px; } }
.site-footer { padding-block: 24px 24px; }
.footer-base { margin-top: 0; border-top: 0; padding-top: 0; }

/* Founder cards: links sit on the bottom line of each card, so they align when one card's text wraps */
.person > .link, .person > .links { margin-top: auto; }
