/* Fathom public site — fathom-exchange.com
   "Hydrographic chart" direction: warm chart paper, navy ink, teal accent,
   chart-magenta reserved for cables. Light + dark via tokens on :root. */

:root {
  color-scheme: light;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;

  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --surface: #ffffff;
  --ink: #0b2545;
  --text: #17253a;
  --text-2: #3c4c61;
  --text-3: #56657a;
  --rule: #dbd5c8;
  --rule-strong: #b5ad9b;
  --accent: #0b7a7a;
  --accent-hover: #075f5f;
  --on-accent: #ffffff;
  --link: #086767;
  --link-hover: #0b2545;
  --accent-soft: #dcefeb;
  --cable: #a3306a;
  --cable-soft: #f5e3ec;
  --pulse: #13a39a;
  --water-top: #e3edf2;
  --water-deep: #a9c3d4;
  --seabed: #ddd3bb;
  --bedline: #0b2545;
  --land: #e4dac2;
  --contour: #0b2545;
  --contour-alpha: 0.07;
  --redact: #cfd6de;
  --focus: #1a66c9;
  --bad: #a3261e; --bad-bg: #fbe9e7; --bad-bd: #eab7b1;
  --good: #146c43; --good-bg: #e4f3ea; --good-bd: #b3dcc4;
  --warn: #7a4a00; --warn-bg: #fbf0d9; --warn-bd: #e9cf98;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.06);

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 10px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #07111e;
    --paper-2: #0a1727;
    --surface: #0e1d30;
    --ink: #e9f1fb;
    --text: #d8e3ef;
    --text-2: #adbccd;
    --text-3: #8d9fb4;
    --rule: #1c3049;
    --rule-strong: #2d4867;
    --accent: #3cc4b8;
    --accent-hover: #63d6cb;
    --on-accent: #04201e;
    --link: #6fdcd1;
    --link-hover: #ffffff;
    --accent-soft: #0e3033;
    --cable: #ff8cbd;
    --cable-soft: #3a1729;
    --pulse: #7ff0e3;
    --water-top: #0d2136;
    --water-deep: #040b14;
    --seabed: #172e4a;
    --bedline: #6e93bb;
    --land: #1b2a3b;
    --contour: #9cc7ee;
    --contour-alpha: 0.075;
    --redact: #253a53;
    --focus: #8cc2ff;
    --bad: #ff9a90; --bad-bg: #36110f; --bad-bd: #6b2622;
    --good: #74d7a0; --good-bg: #0e2b1d; --good-bd: #1f5a3c;
    --warn: #f3c16b; --warn-bg: #2f220a; --warn-bd: #634a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
strong { font-weight: 650; color: var(--ink); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
code, .mono { font-family: var(--mono); font-size: 0.88em; font-variant-numeric: tabular-nums; }
svg { max-width: 100%; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-mark-bg { fill: #0b2545; }
.brand-mark-w1 { stroke: #5ee0d0; }
.brand-mark-w2 { stroke: #9bc4ff; }

.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.nav-links li + li { margin-top: 0; }
.nav-links a {
  display: inline-block; padding: 8px 10px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: 6px;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 10px; border-radius: 6px; }
.nav-login:hover { color: var(--ink); background: var(--paper-2); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 7px 12px; cursor: pointer;
}
.nav-toggle-bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* Without JS the nav simply wraps below the brand. With JS (header gets .js-nav)
   it collapses behind the Menu button on narrow screens. */
@media (max-width: 899px) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 16px; }
  .js-nav.nav-open .site-nav { display: flex; }
  .js-nav .nav-links { flex-direction: column; }
  .js-nav .nav-links a { display: block; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .js-nav .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .js-nav .nav-actions { justify-content: stretch; }
  .js-nav .nav-actions > * { flex: 1; text-align: center; justify-content: center; }
  .js-nav .nav-login { border: 1px solid var(--rule-strong); }
  .site-header:not(.js-nav) .site-nav { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ */
/* Type helpers                                                       */
/* ------------------------------------------------------------------ */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cable); flex: none; }
.lede { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem); line-height: 1.55; color: var(--text-2); max-width: 40em; }
.measure { max-width: 42em; }
.muted { color: var(--text-3); }
.small { font-size: 0.88rem; }
.caption { font-size: 0.85rem; color: var(--text-3); line-height: 1.5; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--text-3); border-radius: 4px; padding: 2px 6px; line-height: 1.4; vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */
main { display: block; }
.section { padding: clamp(56px, 4rem + 3vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head h2 + p, .section-head h2 + .lede { margin-top: 16px; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Page intro (non-home pages) */
.page-intro { position: relative; padding: clamp(56px, 3rem + 4vw, 120px) 0 clamp(40px, 2rem + 2vw, 72px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.page-intro h1 { max-width: 16em; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
.page-intro .lede { margin-top: 20px; }
.page-intro > .wrap { position: relative; }

/* Bathymetric contour texture (mask so it follows the theme colour) */
.contours { position: relative; isolation: isolate; }
.contours::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--contour); opacity: var(--contour-alpha);
  -webkit-mask: url("/assets/contours.svg") center / cover no-repeat;
  mask: url("/assets/contours.svg") center / cover no-repeat;
}

/* ------------------------------------------------------------------ */
/* Home hero + seabed profile                                         */
/* ------------------------------------------------------------------ */
.hero { padding-top: clamp(48px, 2rem + 5vw, 112px); overflow: hidden; }
.hero h1 { max-width: 13.5em; }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 0.88rem; color: var(--text-3); }

.profile { margin: clamp(40px, 2rem + 3vw, 72px) 0 0; position: relative; }
.profile svg { display: block; width: 100%; height: auto; }
.profile figcaption { border-top: 1px solid var(--rule); padding-top: 12px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
.pf-water-top { stop-color: var(--water-top); }
.pf-water-deep { stop-color: var(--water-deep); }
.pf-seabed { fill: var(--seabed); }
.pf-bedline { fill: none; stroke: var(--bedline); stroke-width: 1.5; stroke-linejoin: round; }
.pf-land { fill: var(--land); }
.pf-sea { stroke: var(--bedline); stroke-width: 1; stroke-dasharray: 2 5; opacity: .55; }
.pf-cable { fill: none; stroke: var(--cable); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pf-pulse { fill: none; stroke: var(--pulse); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 36 964; stroke-dashoffset: 1000; animation: pulse 9s linear infinite; }
.pf-reps circle { fill: var(--paper); stroke: var(--cable); stroke-width: 1.6; }
.pf-soundings text { font-family: var(--mono); font-size: 12px; fill: var(--ink); opacity: .55; font-style: italic; }
.pf-station rect { fill: var(--ink); }
.pf-station circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.pf-station text { font-family: var(--mono); font-size: 13px; fill: var(--ink); font-weight: 600; }
.pf-label { font-family: var(--mono); font-size: 12px; fill: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }
.pf-leader { stroke: var(--text-3); stroke-width: 1; }
.pf-scale { font-family: var(--mono); font-size: 11px; fill: var(--text-3); }
@keyframes pulse { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@media (max-width: 700px) {
  .pf-soundings, .pf-detail { display: none; }
  .pf-station text { font-size: 30px; }
  .pf-station circle { r: 22px; }
}

.definition { font-family: var(--serif); font-style: italic; }

/* ------------------------------------------------------------------ */
/* Sealed-book visibility diagram                                     */
/* ------------------------------------------------------------------ */
.book { display: grid; gap: 16px; }
@media (min-width: 980px) { .book { grid-template-columns: 1fr 1.25fr 1fr; align-items: stretch; } }
.book-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.book-panel.is-operator { border-color: var(--ink); border-width: 1.5px; }
.book-panel h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 650; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.book-panel .who { font-size: 0.85rem; color: var(--text-3); margin: 2px 0 14px; }
.book-group { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 12px 0 6px; }
.book-rows { list-style: none; margin: 0; padding: 0; }
.book-rows li { margin: 0; }
.book-row {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; padding: 8px 0; border-top: 1px dashed var(--rule);
}
.book-row .ref { color: var(--ink); font-weight: 600; }
.book-row .desc { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.book-row .hidden-val { grid-column: 2; color: var(--cable); }
.book-row.redacted .ref, .book-row.redacted .desc { color: transparent; user-select: none; }
.book-row.redacted .bar { grid-column: 1 / -1; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--redact) 0 6px, transparent 6px 9px); }
.book-row.redacted .bar.short { width: 62%; }
.book-foot { margin-top: auto; padding-top: 14px; font-size: 0.85rem; color: var(--text-2); border-top: 1px solid var(--rule); }
.book-match { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-family: var(--mono); font-size: 0.76rem; line-height: 1.5; }
.eye { width: 18px; height: 18px; flex: none; }
.eye path, .eye circle { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ------------------------------------------------------------------ */
/* Visibility matrix                                                  */
/* ------------------------------------------------------------------ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.vis { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.vis caption { text-align: left; padding: 14px 16px; font-size: 0.85rem; color: var(--text-3); caption-side: bottom; border-top: 1px solid var(--rule); }
.vis th, .vis td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.vis thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: var(--paper-2); }
.vis thead th.col-op { color: var(--ink); }
.vis tbody th { font-weight: 550; color: var(--ink); width: 34%; }
.vis tbody tr:last-child > * { border-bottom: 0; }
.vis td { color: var(--text-2); }
.v { display: inline-flex; align-items: baseline; gap: 8px; }
.v::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; transform: translateY(1px); }
.v-yes::before { background: var(--accent); }
.v-no::before { border: 1.5px solid var(--rule-strong); }
.v-part::before { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border: 1.5px solid var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; color: var(--text-3); margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* Lifecycle (a real sequence, drawn as a cable with stations)        */
/* ------------------------------------------------------------------ */
.route { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; display: grid; gap: 0; }
.route > li { position: relative; margin: 0; padding: 0 0 32px 52px; counter-increment: step; }
.route > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--cable); color: var(--ink);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600; z-index: 1;
}
.route > li::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: -2px; width: 2px; background: var(--cable); opacity: .75; }
.route > li:last-child { padding-bottom: 0; }
.route > li:last-child::after { display: none; }
.route h3 { font-size: 1.15rem; margin-bottom: 6px; }
.route p { color: var(--text-2); font-size: 0.97rem; }
.route-tint > li::before { background: var(--paper-2); }
@media (min-width: 980px) {
  .route.route-h { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .route.route-h > li { padding: 52px 0 0; }
  .route.route-h > li::before { top: 0; left: 0; }
  .route.route-h > li::after { left: 34px; right: -24px; top: 16px; bottom: auto; width: auto; height: 2px; }
}

/* ------------------------------------------------------------------ */
/* Spec sheet (definition list)                                       */
/* ------------------------------------------------------------------ */
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.spec dd { margin: 0; color: var(--text); font-size: 0.97rem; }
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Mock UI (proposal / auction)                                       */
/* ------------------------------------------------------------------ */
.mock { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mock-title { font-family: var(--mono); font-size: 0.82rem; color: var(--text-3); letter-spacing: .04em; }
.mock-route { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.25; margin-bottom: 14px; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.mock-grid div { min-width: 0; }
.mock-grid dt { font-size: 0.74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.mock-grid dd { margin: 2px 0 0; font-family: var(--mono); font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.mock-btn { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--rule-strong); color: var(--ink); background: transparent; }
.mock-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mock-note { margin-left: auto; font-size: 0.8rem; color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.ladder { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.84rem; }
.ladder li { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--rule); margin: 0; }
.ladder .bar { height: 8px; border-radius: 4px; background: var(--accent); opacity: .85; }
.ladder .bar.dim { opacity: .35; }
.ladder .who { color: var(--text-3); white-space: nowrap; }
.ladder .t { color: var(--text-3); }

/* ------------------------------------------------------------------ */
/* Two-way layout for Matching / Auctions                             */
/* ------------------------------------------------------------------ */
.twoway { display: grid; gap: 56px; }
.twoway-item { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .twoway-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .twoway-item.flip > :first-child { order: 2; }
}
.twoway-item h3 { font-size: 1.7rem; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 2px; background: var(--cable); }

/* ------------------------------------------------------------------ */
/* Audience columns                                                   */
/* ------------------------------------------------------------------ */
.audience { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 820px) { .audience { grid-template-columns: 1fr 1fr; } .audience > * + * { border-left: 1px solid var(--rule); } }
.audience > article { padding: 32px 0; }
@media (min-width: 820px) { .audience > article { padding: 36px 40px 36px 0; } .audience > article + article { padding-left: 40px; padding-right: 0; } }
@media (max-width: 819px) { .audience > article + article { border-top: 1px solid var(--rule); } }
.audience h3 { font-size: 1.6rem; margin-bottom: 8px; }
.audience .who { color: var(--text-3); font-size: 0.92rem; margin-bottom: 16px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Figure: the 3%                                                      */
/* ------------------------------------------------------------------ */
.fee { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .fee { grid-template-columns: auto minmax(0, 1fr); gap: 64px; } }
.fee-num { font-family: var(--serif); font-size: clamp(5rem, 3rem + 9vw, 9.5rem); line-height: .9; color: var(--ink); letter-spacing: -0.04em; font-weight: 500; }
.fee-num small { font-size: 0.8rem; letter-spacing: .14em; color: var(--text-3); display: block; font-family: var(--mono); text-transform: uppercase; margin-top: 12px; }

.calc { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.calc th, .calc td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.calc td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; padding-left: 16px; }
.calc th { font-weight: 500; color: var(--text-2); }
.calc tr.total th, .calc tr.total td { border-top: 1px solid var(--ink); font-weight: 650; color: var(--ink); }
.calc caption { caption-side: bottom; text-align: left; font-size: 0.82rem; color: var(--text-3); padding-top: 10px; }

/* ------------------------------------------------------------------ */
/* Notices, pilot box, CTA band                                        */
/* ------------------------------------------------------------------ */
.notice { border: 1px solid var(--warn-bd); background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 14px 18px; font-size: 0.95rem; }
.notice strong { color: inherit; }
.draft-banner { border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--warn); padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 32px; font-size: 0.97rem; }
.draft-banner strong { color: inherit; display: block; font-size: 1.05rem; }

.pilot { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.pilot h3 { font-size: 1.25rem; margin-bottom: 8px; }

.cta-band { padding: clamp(64px, 4rem + 3vw, 120px) 0; border-top: 1px solid var(--rule); background: var(--paper-2); }
.cta-band .inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band .inner { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.cta-band h2 { max-width: 18em; }
.cta-band p { color: var(--text-2); margin-top: 14px; max-width: 38em; }

/* Plain list of facts with rules */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts > li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
@media (min-width: 760px) { .facts > li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 24px; } }
.facts h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.facts p { color: var(--text-2); font-size: 0.97rem; }

/* Formats table */
.formats { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 620px; }
.formats th, .formats td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.formats thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: var(--paper-2); }
.formats tbody th { color: var(--ink); font-weight: 650; width: 22%; }
.formats td { color: var(--text-2); }
.formats tbody tr:last-child > * { border-bottom: 0; }

/* Prose pages (privacy / terms) */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose .placeholder { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 3px; font-family: var(--mono); font-size: 0.88em; }
.toc { font-size: 0.92rem; }
.toc ol { padding-left: 1.9em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Form                                                               */
/* ------------------------------------------------------------------ */
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 1rem + 2vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-card fieldset[disabled] { opacity: .55; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--text-3); font-size: 0.88rem; }
.field .hint { font-size: 0.85rem; color: var(--text-3); margin: 0; }
.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 8px; padding: 11px 12px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: var(--text-3); }
.input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.87rem; font-weight: 500; margin: 0; }
.field-error:empty { display: none; }
.choices { display: grid; gap: 8px; }
@media (min-width: 620px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 11px 12px; font-weight: 500; cursor: pointer; min-height: 46px; background: var(--paper); color: var(--text); }
.choice label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; background: var(--paper); }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.choice input:checked + label::before { border: 5px solid var(--accent); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice label { border-color: var(--bad); }
.counter { font-size: 0.8rem; color: var(--text-3); text-align: right; font-family: var(--mono); }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.form-actions .small { flex: 1 1 16em; }
.form-alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; font-size: 0.95rem; border: 1px solid var(--bad-bd); background: var(--bad-bg); color: var(--bad); }
.form-alert:focus { outline: none; }
.form-alert:focus-visible { outline: 3px solid var(--focus); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: left; }
.success:focus { outline: none; }
.success-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--good-bg); border: 1px solid var(--good-bd); display: grid; place-items: center; margin-bottom: 18px; }
.success-mark svg { width: 22px; height: 22px; }
.success-mark path { fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-size: 1.8rem; margin-bottom: 12px; }
.success p { color: var(--text-2); }
.noscript { margin-bottom: 20px; }

/* ------------------------------------------------------------------ */
/* 404                                                                */
/* ------------------------------------------------------------------ */
.lost { padding: clamp(72px, 4rem + 6vw, 160px) 0; }
.lost .code { font-family: var(--mono); color: var(--cable); letter-spacing: .14em; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 16px; }
.lost h1 { max-width: 14em; }
.lost .lede { margin-top: 20px; }
.lost ul { margin-top: 32px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lost li + li { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--ink); background: var(--paper); padding: 56px 0 32px; font-size: 0.93rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; } }
@media (min-width: 520px) and (max-width: 819px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid .footer-about { grid-column: 1 / -1; } }
.footer-about p { margin-top: 12px; max-width: 30em; }
.site-footer h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.email { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--text-3); }
.footer-base p { margin: 0; }

/* ------------------------------------------------------------------ */
/* Motion                                                             */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .pf-pulse { display: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
.fee-num { margin: 0; }
.site-footer .brand { color: var(--ink); }

/* Request-access layout: intro, form, then "what happens next" on small screens;
   form on the right spanning both rows on wide screens. */
.ra-grid { display: grid; gap: 40px; grid-template-areas: "intro" "form" "next"; }
.ra-intro { grid-area: intro; }
.ra-grid > .form-card { grid-area: form; }
.ra-next { grid-area: next; }
@media (min-width: 900px) {
  .ra-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro form" "next form"; column-gap: 64px; row-gap: 40px; align-items: start; grid-template-rows: auto 1fr; }
}
@media (max-width: 899px) {
  .js-nav .nav-actions > * { padding: 11px 14px; min-height: 44px; display: inline-flex; align-items: center; }
}
