/**
 * @fileoverview Layout and components of the Phase3 proposal, written against semantic roles
 * (`--bg`, `--fg`, `--accent-text`...) so that every visual direction is a set of role values in
 * directions.css plus a few flourishes, never a second stylesheet.
 *
 * @remarks
 * Roles map only to the brand tokens in tokens.css (inventory A4, A5): no colour or font outside the
 * live site's own palette. The defaults here are the "editorial" direction, which is the live site's
 * own language (huge Instrument Sans, grey ground, underlined links, one carbon block) finished.
 * Contrast of every text role was checked against its ground (S2, 02/11/2026); the violet used for
 * text is `--l1-ink`, because `--l1` on the grey ground is below 4.5:1.
 */
:root {
  --bg: var(--ground);
  --fg: var(--ink);
  --fg-body: var(--body);
  --fg-muted: var(--muted);
  --line: var(--rule);
  --accent: var(--l1);
  --accent-text: var(--l1-ink);
  --focus: var(--l1);
  --phase-1: var(--l1);
  --phase-2: var(--ink);
  --phase-3: var(--muted);
  --block-bg: var(--carbon);
  --block-fg: var(--chalk);
  --block-body: var(--carbon-body);
  --block-muted: var(--carbon-muted);
  --block-line: var(--carbon-rule);
  --block-accent: var(--l1-pale);

  --h1-size: clamp(52px, 10vw, 150px);
  --h1-track: -0.038em;
  --h2-size: clamp(40px, 7vw, 108px);
  --h2-color: var(--accent-text);
  --body-size: clamp(17px, 1.3vw, 19px);
  --measure: 62ch;
  --section-gap: clamp(96px, 13vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--text);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  hanging-punctuation: first;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--fg); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--chalk); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 12px 16px; background: var(--fg); color: var(--bg); z-index: 10; }
.skip:focus { top: 12px; }

/* Header. It wraps: below about 390 px the nav does not fit beside the logo (07/11/2026 it pushed
   the page 40 px sideways at 360), so it drops to its own row instead. */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 28px; padding-bottom: 8px; }
.lockup { display: inline-flex; align-items: flex-end; gap: 6px; min-height: 44px; text-decoration: none; color: var(--fg); }
.mark { width: 20px; height: 20px; margin-bottom: 3px; fill: currentColor; overflow: visible; }
.wordmark { font-family: var(--wordmark); font-weight: 700; font-size: 27px; line-height: 1; letter-spacing: -0.03em; }
.wordmark span { letter-spacing: -0.04em; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--fg); }

/* Hero */
.hero { padding-top: clamp(72px, 11vw, 160px); }
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
h1 { margin: 0; max-width: 12ch; font-family: var(--display); font-weight: 600; font-size: var(--h1-size); line-height: .92; letter-spacing: var(--h1-track); color: var(--fg); }
.lead { max-width: 30ch; margin: clamp(36px, 5vw, 64px) 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -0.012em; color: var(--fg); }

/* The three phases under the hero: one wavelength of drift, looped, stopped under reduced motion. */
.phases { margin: clamp(40px, 6vw, 80px) 0 0; position: relative; }
.phases svg { display: block; width: 100%; height: clamp(90px, 12vw, 160px); overflow: hidden; }
.phases path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.phases path:nth-child(1) { stroke: var(--phase-1); }
.phases path:nth-child(2) { stroke: var(--phase-2); }
.phases path:nth-child(3) { stroke: var(--phase-3); }
.drift { animation: drift 9s linear infinite; }
@keyframes drift { to { transform: translateX(-300px); } }
.phase-keys { display: none; }

/* How it works */
.how { padding-top: var(--section-gap); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.figure-slot { display: grid; place-content: center; gap: 6px; min-height: 280px; border: 1px dashed var(--line); text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--fg-muted); }
.figure-note { font-size: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--accent-text); }
.steps h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; color: var(--fg); }
.steps p { margin: 6px 0 0; max-width: var(--measure); }
.caption { max-width: 44ch; margin: clamp(32px, 4vw, 56px) 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; color: var(--fg); }

/* Sections with a big h2 */
.gap, .doors, .vision { padding-top: var(--section-gap); }
h2 { margin: 0; max-width: 16ch; font-family: var(--display); font-weight: 600; font-size: var(--h2-size); line-height: .96; letter-spacing: -0.035em; color: var(--h2-color); }
.prose { max-width: var(--measure); margin-top: clamp(32px, 4vw, 56px); }
.prose p { margin: 0 0 1em; }
.prose strong { font-family: var(--display); font-weight: 600; color: var(--fg); }

/* Two doors: plain links in a list, one per audience. */
.door-list { margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fg); }
.door { display: grid; gap: 8px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--fg); text-decoration: none; }
.door-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: var(--fg); }
.door-title::after { content: ' \2192'; color: var(--accent-text); }
.door-text { max-width: 52ch; color: var(--fg-body); }
.door:hover .door-title { color: var(--accent-text); }

.close { padding-top: var(--section-gap); }
.statement { margin: 0; max-width: 22ch; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.026em; color: var(--fg); }

/* Footer block */
.site-foot { margin-top: var(--section-gap); padding: clamp(64px, 8vw, 112px) 0 40px; background: var(--block-bg); color: var(--block-body); }
.talk p { margin: 0 0 8px; }
.mail { display: inline-block; padding: 6px 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.6vw, 48px); letter-spacing: -0.02em; text-decoration: none; color: var(--block-fg); border-bottom: 2px solid var(--block-accent); overflow-wrap: anywhere; }
.mail:hover, .cta:hover { color: var(--block-accent); }
.cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: clamp(0px, 3vw, 40px); font-weight: 500; color: var(--block-fg); text-decoration: none; border-bottom: 1px solid var(--block-fg); }
.site-foot :focus-visible { outline-color: var(--block-accent); }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--block-line); }
.foot-line p { margin: 0; }
.name { font-family: var(--display); font-weight: 600; color: var(--block-fg); }
.legal { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--block-muted); }


@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .figure-slot { position: sticky; top: 32px; min-height: 520px; }
  .door-list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); }
}

/* On a phone "Talk to us" drops under the address; without this it kept its left margin (seen 02/11). */
@media (max-width: 600px) {
  .cta { display: flex; width: fit-content; margin: 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drift { animation: none; }
}

/* ---------------------------------------------------------------------------------------------
 * Inner pages (S3, 02/11/2026): Operators, Investors, Contact, Privacy and 404. Same roles and
 * the same rhythm as the Home; only the pieces the Home does not have are new here.
 * ------------------------------------------------------------------------------------------- */
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent-text); color: var(--accent-text); }
.page-hero { padding-top: clamp(64px, 9vw, 136px); }
.page-hero h1 { max-width: 16ch; font-size: clamp(44px, 7.4vw, 112px); }
.page-hero .lead { max-width: 38ch; }
.section { padding-top: var(--section-gap); }
.section > h2 { margin-bottom: clamp(28px, 3.6vw, 48px); font-size: clamp(34px, 5vw, 72px); }

/* Who asks what: a real table, stacked into labelled rows on a phone. */
.asks { width: 100%; border-collapse: collapse; }
.asks caption { text-align: left; margin-bottom: 16px; color: var(--fg-muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.asks th, .asks td { padding: 20px 24px 20px 0; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.asks thead th { padding-top: 0; border-top: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.asks tbody th { width: 22%; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; color: var(--fg); }
.asks td:nth-child(2) { width: 34%; color: var(--fg); font-family: var(--display); font-weight: 500; }
@media (max-width: 760px) {
  .asks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .asks tr, .asks th, .asks td { display: block; width: auto !important; }
  .asks tbody tr { padding: 20px 0; border-top: 1px solid var(--line); }
  .asks tbody th, .asks td { border: 0; padding: 4px 0; }
  .asks td::before { content: attr(data-label); display: block; margin: 8px 0 2px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
}

/* Points: a bold lead-in and its sentence, one per line, as in the copy. */
.points { margin: 0; padding: 0; list-style: none; max-width: 70ch; }
.points li { padding: 18px 0; border-top: 1px solid var(--line); }
.points strong { font-family: var(--display); font-weight: 600; color: var(--fg); }

/* Numbered list of the four needs (Investors). */
.needs { margin: 0; padding: 0; list-style: none; counter-reset: need; display: grid; gap: 0; }
.needs li { counter-increment: need; display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; color: var(--fg); }
.needs li::before { content: counter(need, decimal-leading-zero); font: 500 13px/2.2 var(--mono); color: var(--accent-text); }

/* A figure with its source right under it. */
.fact { margin: clamp(40px, 5vw, 72px) 0 0; max-width: 920px; }
.fact p { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--fg); }
.fact figcaption { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }
.fact figcaption a { color: inherit; }

/* Team slots, marked as samples until each person says what goes. */
.team { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.team li { display: grid; gap: 4px; }
.team .face { aspect-ratio: 1; border: 1px dashed var(--line); background: rgb(240 239 232 / .6); display: grid; place-items: center; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.team .who { font-family: var(--display); font-weight: 600; color: var(--fg); }
.team .role { font-size: 15px; color: var(--fg-muted); }
.note { margin-top: 20px; font-size: 14px; color: var(--fg-muted); }

/* Call to action at the end of a page. */
.page-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: clamp(28px, 3vw, 40px); font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); text-decoration: none; border-bottom: 2px solid var(--accent-text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding-top: clamp(48px, 6vw, 88px); }
.email-us p { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
/* inline-block with padding: a standalone link, so 44 px tall on a phone (07/11/2026 it was 29). */
.email-us a { display: inline-block; padding: 8px 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); text-decoration: none; border-bottom: 2px solid var(--accent-text); overflow-wrap: anywhere; }
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; color: var(--fg); }
.field .opt { font-weight: 400; color: var(--fg-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 17px/1.4 var(--text); color: var(--fg); background: rgb(240 239 232 / .85); border: 1px solid var(--fg-muted); border-radius: 0; }
.field textarea { min-height: 160px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #A3241C; box-shadow: inset 3px 0 0 #A3241C; }
.field .err { margin: 0; font-size: 15px; color: #A3241C; }
.field .err:empty { display: none; }
.privacy-note { margin: 0; max-width: 60ch; font-size: 15px; color: var(--fg-body); }
.send { justify-self: start; min-height: 48px; padding: 0 28px; font: 600 17px var(--display); color: var(--chalk); background: var(--carbon); border: 0; border-radius: 0; cursor: pointer; }
.send:hover { background: var(--l1-ink); }
.form-status { margin: 0; font-weight: 500; color: var(--fg); }
.form-status:empty { display: none; }
.proto { font-size: 14px; color: var(--fg-muted); }

/* Privacy and 404: reading pages. */
.reading { max-width: 70ch; }
.reading h2 { margin: 48px 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.015em; max-width: none; }
.reading p { margin: 0 0 1em; }
.gap-mark { padding: 0 4px; background: rgb(100 85 224 / .12); font-family: var(--mono); font-size: .9em; color: var(--accent-text); }

.foot-line .foot-links { display: flex; align-items: center; gap: 20px; }
.foot-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--block-fg); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.prose.flush { margin-top: 0; }
/* Privacy: the reading starts closer to its title than a full section gap (seen on a phone, 02/11). */
.section.reading { padding-top: clamp(32px, 4vw, 56px); }
.reading h2:first-child { margin-top: 0; }
