/* Armature Systems · site.css · Brand Identity Kit v1.0
   Palette rule: chroma follows area, inversely. Ink dominant. Ignition small. Volt hairlines only. No grey. */

:root {
  --ink: #0B1226;
  --ink-2: #111A33;        /* raised panels on Ink, still blue-cast */
  --ink-3: #1A2442;
  --ignition: #F5410E;
  --ignition-bright: #FF5C24;
  --volt: #2E7DFF;
  --slate: #4A5878;
  --slate-2: #7A86A6;      /* muted labels on Ink */
  --drafting: #EDEFF2;
  --drafting-2: #DDE1E8;   /* rules on Drafting */
  --drafting-3: #F6F7F9;   /* raised panels on Drafting */

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --measure: 62ch;
  /* Safe areas: the pages use viewport-fit=cover, so on phones with a notch or Dynamic Island the page runs under it in
     landscape. Content keeps clear of it through the gutter, with the usual 1.25rem of padding beyond the safe area;
     full-bleed backgrounds may still run underneath. With no insets (desktop, portrait) the gutter is unchanged. */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: max(clamp(1.25rem, 4vw, 3rem), calc(var(--safe-l) + 1.25rem), calc(var(--safe-r) + 1.25rem));
  --max: 1280px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--drafting);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--volt); outline-offset: 3px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--drafting); color: var(--ink); padding: .5rem .75rem; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 46ch; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.kicker { font-family: var(--font-mono); font-size: .8rem; color: var(--slate-2); margin: 0 0 1rem; display: block; }
.source { font-family: var(--font-mono); font-size: .76rem; color: var(--slate-2); line-height: 1.5; max-width: 80ch; margin-top: 1.5rem; }
.light .source { color: var(--slate); }
.light .kicker { color: var(--slate); }

/* Lamination rule: four stacked rules, flush left, one per section. */
.lam { width: 100%; max-width: 100%; margin: 0 0 2.2rem; display: block; }
.lam i { display: block; width: 100%; }
.lam i:nth-child(1) { height: 3px; background: var(--drafting); }
.lam i:nth-child(2) { height: 1.5px; background: var(--ignition-bright); margin-top: 3px; }
.lam i:nth-child(3) { height: 1px; background: var(--volt); margin-top: 3px; }
.lam i:nth-child(4) { height: 1px; background: var(--volt); opacity: .45; margin-top: 3px; }
.light .lam i:nth-child(1) { background: var(--ink); }
.light .lam i:nth-child(2) { background: var(--ignition); }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }
.light { background: var(--drafting); color: var(--ink); }
.light p { color: var(--ink); }
.light .muted, .muted { color: var(--slate-2); }
.light .muted { color: var(--slate); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) {
  .g3, .g4, .g2, .split, .split.rev { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  padding: .85rem 1.35rem; border: 1.5px solid var(--drafting); color: var(--drafting);
  background: transparent; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  border-radius: 2px; line-height: 1.2;
}
.btn:hover { background: var(--drafting); color: var(--ink); }
.btn.primary { background: var(--drafting); color: var(--ink); }
.btn.primary:hover { background: #fff; }
.light .btn { border-color: var(--ink); color: var(--ink); }
.light .btn:hover { background: var(--ink); color: var(--drafting); }
.light .btn.primary { background: var(--ink); color: var(--drafting); }
.light .btn.primary:hover { background: var(--ink-3); }
.btn.disabled, .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(11, 18, 38, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(237, 239, 242, .1);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand img { height: 30px; width: 30px; }
.brand .word { font-weight: 600; font-size: 1.32rem; letter-spacing: .09em; color: var(--drafting); }
/* The header is ink at 92% opacity, so a light section under it lightens it, and plain slate-2 measured 4.26:1 there.
   Slate-2 with a tenth of drafting mixed in keeps 4.5:1 over anything (engine/test/site-header-tagline.test.ts).
   Browsers without color-mix() keep plain slate-2. */
.brand .tag { display: none; font-size: .78rem; color: var(--slate-2); color: color-mix(in srgb, var(--slate-2) 90%, var(--drafting)); margin-left: .25rem; }
@media (min-width: 1100px) { .brand .tag { display: inline; } }
.menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 1.02rem; }
.menu a { color: var(--drafting); opacity: .82; padding: .4rem 0; border-bottom: 2px solid transparent; transition: opacity .15s; }
.menu a:hover { opacity: 1; }
.menu a[aria-current="page"] { opacity: 1; border-bottom-color: var(--ignition-bright); }
.util { margin-left: auto; display: flex; gap: 1.6rem; list-style: none; padding: 0; margin-block: 0; font-size: .88rem; font-weight: 500; }
.util a { display: inline-flex; align-items: center; gap: .45rem; color: var(--drafting); opacity: .78; }
.util a:hover { opacity: 1; }
.util svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.util a[aria-current="page"] { opacity: 1; color: var(--ignition-bright); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--drafting); padding: .5rem; cursor: pointer; }
.burger svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.navpanel { display: contents; }
@media (max-width: 980px) {
  .navpanel { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--ink); padding: 1.25rem var(--gutter) 1.5rem; border-bottom: 1px solid rgba(237,239,242,.12); }
  .nav.open .navpanel { display: block; }
  .menu, .util { display: flex; flex-direction: column; gap: 1.1rem; margin-left: 0; }
  .menu { font-size: 1.15rem; padding-bottom: 1.25rem; margin-bottom: 1.1rem; border-bottom: 1px solid rgba(237,239,242,.12); }
  .burger { display: inline-flex; }
}

/* Hero */
.hero { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); align-items: stretch; position: relative; overflow: hidden; padding: 0; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem); position: relative; z-index: 2; }
.hero-copy .inner { max-width: 640px; margin-left: max(0px, calc((100vw - var(--max)) / 2 - var(--gutter))); }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lede { color: var(--drafting); opacity: .88; margin-bottom: 2rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-stage { position: relative; min-height: 460px; z-index: 1; }
.hero-stage .launcher { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-stage .launcher svg { width: 100%; height: 100%; display: block; transform-style: preserve-3d; will-change: transform; }
.hero-note { position: absolute; left: var(--gutter); bottom: 1.4rem; font-family: var(--font-mono); font-size: .74rem; color: var(--slate-2); z-index: 2; }
/* Drawing labels: .hl-d is the wide layout; .hl-m the phone layout, with type sized in drawing units so it renders
   at 11px or more on a phone (the drawing scales to about 0.45 of its 800-unit width at 360px). */
.hero-stage .hl-m { display: none; }
/* Phones and tablets in portrait: the drawing stays first, cropped to the band its phone labels use (drawing units 14
   to 566 of 600; hero.js keeps the lower label on a fixed row), then the copy with both buttons side by side, so all of it fits the first screen. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* An explicit height, not aspect-ratio: Safari (WebKit) gives a grid item with no in-flow content a zero height
     under aspect-ratio, which hid the drawing on iPhones. 69vw is the cropped drawing's 552/800 shape. */
  .hero-stage { order: -1; min-height: 0; height: min(69vw, 62vh); overflow: hidden; }
  .hero-stage .launcher { top: -2.536%; bottom: -6.159%; }
  .hero-copy { padding: .15rem var(--gutter) 1.9rem; }
  .hero .kicker { font-size: .72rem; margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 3.2rem); margin-bottom: .55rem; }
  .hero .lede { font-size: clamp(1rem, 3.9vw, 1.2rem); line-height: 1.45; margin-bottom: 1.05rem; }
  .hero .ctas { flex-wrap: nowrap; gap: .55rem; }
  .hero .ctas .btn { flex: 1 1 auto; min-width: 0; justify-content: center; white-space: nowrap; padding: .72rem .7rem; font-size: clamp(.82rem, 3.55vw, 1rem); gap: .45rem; }
  .hero-stage .hl-d { display: none; }
  .hero-stage .hl-m { display: inline; }
  .hero-stage .lbl-m { font-size: 18px; paint-order: stroke; stroke: var(--ink); stroke-width: 7px; stroke-linejoin: round; }
  .hero-stage .hl-m .ld { stroke-width: 1.4; }
  .hero-note { position: static; padding: 0 var(--gutter) 1.5rem; }
}
@media (max-width: 560px) { .hero-stage .lbl-m { font-size: 26px; } }
/* Short portrait screens (iPhone SE in Safari shows about 548px): a little less type so the buttons stay on screen. */
@media (max-width: 900px) and (max-height: 620px) and (orientation: portrait) {
  .hero h1 { font-size: 1.9rem; margin-bottom: .45rem; }
  .hero .lede { font-size: .95rem; line-height: 1.42; margin-bottom: .9rem; }
}
/* The narrowest phones (360px and under) drop the button icons so both buttons still fit on one line. */
@media (max-width: 374px) { .hero .ctas .btn svg { display: none; } }
/* Phones in landscape: the nav is shorter, the drawing sits beside the copy as on desktop, and everything fits the
   height of the screen. Wider landscape phones (over 900px) take this too, not the desktop sizes. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --nav-h: 56px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); }
  .hero-stage { order: 0; height: auto; min-height: 0; }
  .hero-stage .launcher { top: 0; bottom: 0; right: calc(var(--safe-r) + 1.25rem); }
  .hero-copy { padding: .9rem 1rem .9rem var(--gutter); justify-content: center; }
  .hero-copy .inner { margin-left: 0; }
  .hero .kicker { font-size: .7rem; margin-bottom: .45rem; }
  .hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .5rem; }
  .hero .lede { font-size: .95rem; line-height: 1.42; margin-bottom: .9rem; }
  .hero .ctas { flex-wrap: nowrap; gap: .55rem; }
  .hero .ctas .btn { flex: 0 1 auto; white-space: nowrap; padding: .62rem .85rem; font-size: .88rem; }
  .hero-stage .hl-d { display: none; }
  .hero-stage .hl-m { display: inline; }
  .hero-stage .lbl-m { font-size: 24px; paint-order: stroke; stroke: var(--ink); stroke-width: 7px; stroke-linejoin: round; }
  .hero-stage .hl-m .ld { stroke-width: 1.4; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 2.5rem; }
.stat { border-top: 1px solid rgba(237,239,242,.14); padding-top: 1rem; }
.light .stat { border-top-color: var(--drafting-2); }
.stat .n { font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.02em; line-height: 1; margin-bottom: .55rem; }
.stat .n small { font-size: .5em; color: var(--slate-2); letter-spacing: 0; margin-left: .2rem; }
.stat .l { font-size: .95rem; color: var(--slate-2); }
.light .stat .l, .light .stat .n small { color: var(--slate); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Layers list (what we make) */
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 10rem; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--drafting-2); align-items: start; }
.layers li:last-child { border-bottom: 1px solid var(--drafting-2); }
.layers .num { font-family: var(--font-mono); font-size: .8rem; color: var(--slate); padding-top: .3rem; }
.layers h3 { margin-bottom: .35rem; }
.layers p { margin: 0; color: var(--slate); }
.layers .status { font-family: var(--font-mono); font-size: .78rem; text-align: right; color: var(--slate); padding-top: .3rem; }
.layers .status.now { color: var(--ignition); }
/* On a light background plain ignition measured 3.22:1. Ignition with a fifth of ink mixed in stays orange and reads at
   4.58:1 over drafting (engine/test/site-layers-status-contrast.test.ts). Browsers without color-mix() keep plain ignition. */
.light .layers .status.now, .layers.light .status.now, .layers .light .status.now { color: var(--ignition); color: color-mix(in srgb, var(--ignition) 80%, var(--ink)); }
@media (max-width: 720px) { .layers li { grid-template-columns: 3.5rem 1fr; } .layers .status { grid-column: 2; text-align: left; } }

/* Position row */
.position { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; margin-top: 2rem; }
.pos { border: 1px solid rgba(237,239,242,.14); padding: 1.4rem 1.5rem; background: var(--ink-2); }
.pos h4 { margin-bottom: .3rem; }
.pos p { color: var(--slate-2); font-size: .95rem; margin: 0 0 .7rem; }
.pos ul { margin: 0; padding-left: 1.05rem; color: var(--slate-2); font-size: .92rem; }
.pos.center { border-color: rgba(255,92,36,.5); }
.pos .cells { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .9rem; }
.pos .cell { border: 1px solid rgba(237,239,242,.14); padding: .8rem .9rem; font-size: .9rem; }
.pos .cell b { display: block; font-weight: 500; margin-bottom: .2rem; }
.pos .cell span { font-family: var(--font-mono); font-size: .74rem; color: var(--slate-2); }
.pos .cell.ours { border-color: var(--ignition-bright); }
.pos .cell.ours span { color: var(--ignition-bright); }
@media (max-width: 900px) { .position { grid-template-columns: 1fr; } }

/* Evidence columns */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.ev { padding: 1.5rem; background: var(--drafting-3); border-top: 3px solid var(--ink); }
.ev.hyp { border-top-color: var(--volt); }
.ev.next { border-top-color: var(--ignition); }
.ev h3 { margin-bottom: .9rem; }
.ev ul { margin: 0; padding-left: 1.1rem; color: var(--slate); }
.ev li { margin-bottom: .55rem; }
.ev li b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .evidence { grid-template-columns: 1fr; } }

/* Timeline strip */
.tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.5rem; border-top: 1px solid rgba(237,239,242,.16); }
.tl div { padding: 1.4rem 1.6rem 1.4rem 1.6rem; border-right: 1px solid rgba(237,239,242,.1); }
.tl div:first-child { padding-left: 0; }
.tl div:last-child { border-right: 0; padding-right: 0; }
.tl time { font-family: var(--font-mono); font-size: .8rem; color: var(--ignition-bright); display: block; margin-bottom: .6rem; }
.tl p { font-size: .96rem; color: var(--drafting); opacity: .85; margin: 0; }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr 1fr; } .tl div { border-right: 0; } }

/* Callout */
.callout { border-left: 3px solid var(--ignition-bright); padding: 1rem 1.4rem; background: var(--ink-2); max-width: 70ch; margin: 1.6rem 0; }
.light .callout { background: var(--drafting-3); border-left-color: var(--ignition); }
.callout p:last-child { margin-bottom: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2rem; }
.principles h3 { margin-bottom: .4rem; }
/* The site's quieter text: slate-2 on a dark background, slate on a light one, as .muted. Plain slate outranked .muted and
   measured 2.62:1 over ink in the dark sections (engine/test/site-principles-contrast.test.ts). */
.principles p { color: var(--slate-2); margin: 0; }
.light .principles p, .principles.light p, .principles .light p { color: var(--slate); }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* Cards (resources) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.card { background: var(--drafting-3); border: 1px solid var(--drafting-2); display: flex; flex-direction: column; }
.card figure { margin: 0; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.card figure svg { width: 100%; height: 100%; }
.card .body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.card .body p { color: var(--slate); font-size: .95rem; flex: 1; }
.card .meta { font-family: var(--font-mono); font-size: .74rem; color: var(--slate); margin-bottom: .7rem; }
.card .btn { align-self: flex-start; font-size: .9rem; padding: .65rem 1rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.team h3 { margin-bottom: .15rem; }
.team .role { font-family: var(--font-mono); font-size: .78rem; color: var(--ignition-bright); margin-bottom: .8rem; }
/* On a light background plain ignition measured 3.22:1. Ignition with a fifth of ink mixed in stays orange and reads at
   4.58:1 over drafting (engine/test/site-team-role-contrast.test.ts). Browsers without color-mix() keep plain ignition. */
.light .team .role, .team.light .role, .team .light .role { color: var(--ignition); color: color-mix(in srgb, var(--ignition) 80%, var(--ink)); }
.team p { font-size: .95rem; color: var(--slate-2); margin: 0; }
.light .team p { color: var(--slate); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* Forms */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; max-width: 720px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: .7rem .85rem; border: 1px solid var(--slate); background: #fff; color: var(--ink); border-radius: 2px;
}
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .note { font-family: var(--font-mono); font-size: .76rem; color: var(--slate); grid-column: 1 / -1; }
@media (max-width: 640px) { form.contact { grid-template-columns: 1fr; } }

/* Page header (interior) */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-head .lede { opacity: .85; }

/* Footer */
footer { border-top: 1px solid rgba(237,239,242,.12); padding: 3.5rem 0 2.5rem; font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
footer h4 { font-size: .95rem; margin-bottom: .8rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: .45rem; }
footer a { color: var(--drafting); opacity: .75; }
footer a:hover { opacity: 1; }
footer .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(237,239,242,.1); font-family: var(--font-mono); font-size: .74rem; color: var(--slate-2); line-height: 1.6; }
footer .legal p { max-width: 100ch; margin-bottom: .6rem; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .cols { grid-template-columns: 1fr; } }

/* Taper motif: rail silhouette, corner-anchored, 5 to 8 percent opacity. Max two per surface. */
.taper { position: absolute; right: -6%; bottom: -12%; width: 38vw; max-width: 560px; opacity: .06; pointer-events: none; }
.light .taper { opacity: .05; }

/* Utility */
.right { text-align: right; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3rem; }
.small { font-size: .9rem; }
hr.rule { border: 0; border-top: 1px solid var(--drafting-2); margin: 2.5rem 0; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: .25rem .5rem; border: 1px solid currentColor; border-radius: 2px; }


/* Design pass: figures, taper clipping, connectors, timeline axis */
html, body { overflow-x: clip; }
section.has-taper, section#investors { overflow: hidden; }
.fig { margin: 0; }
.fig figcaption { font-family: var(--font-mono); font-size: .76rem; line-height: 1.5; color: var(--slate-2); margin-top: .9rem; max-width: 80ch; }
.light .fig figcaption { color: var(--slate); }
.fig figcaption b { color: inherit; font-weight: 500; }
.fig.ledger { margin: 3rem 0 2.5rem; padding-top: 2rem; border-top: 1px solid var(--drafting-2); }
.fig.cells { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 1.2rem; align-items: center; }
.fig.cells figcaption { margin-top: 0; }
.fig.chart { background: var(--ink-2); border: 1px solid rgba(237,239,242,.1); padding: 1.4rem 1.4rem 1.1rem; }
.fig.stack { margin-top: 2.2rem; }
.fig.mm { margin-top: 1.8rem; }
.fig.wear figcaption { margin-top: .8rem; }
.position { grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 2fr) 4.2rem minmax(0, 1fr); }
.conn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.conn svg { width: 100%; height: auto; display: block; }
.conn span { font-family: var(--font-mono); font-size: .62rem; color: var(--slate-2); text-align: center; line-height: 1.3; }
@media (max-width: 900px) { .position { grid-template-columns: 1fr; } .conn { transform: rotate(90deg); height: 3rem; } .conn span { display: none; } .fig.cells { grid-template-columns: 1fr; } }
.tl.axis { position: relative; border-top: 0; padding-top: 1.6rem; }
.tl.axis::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(237,239,242,.16); }
.tl.axis div { position: relative; border-right: 0; }
.tl.axis div::before { content: ''; position: absolute; left: 0; top: -1.6rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ignition-bright); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--ink); }
.tl.axis div:first-child::before { transform: translate(0, -50%); }
.tl.axis div::after { content: ''; position: absolute; left: 0; top: -1.6rem; width: 1px; height: 1.6rem; background: rgba(237,239,242,.16); }
.tl.axis div:first-child::after { display: none; }
/* At 900px and under the timeline has two columns. Each item's dot and stub sit 1.6rem above the item, so the second row
   needs that much room above it. */
@media (max-width: 900px) { .tl.axis { row-gap: 1.6rem; } }

/* Phone figures. A figure marked .has-m carries a second SVG (.fv-m), drawn for a phone-width column with its type at
   12 drawing units, so it renders at 11px or more from 360px up. Wider screens keep the original drawing untouched. */
.fig .fv-m { display: none; width: 100%; height: auto; }
@media (max-width: 640px) {
  .fig.has-m > svg:not(.fv-m) { display: none !important; }
  .fig.has-m > .fv-m { display: block; max-width: 460px; }
  .fig.chart { padding: 1rem .9rem .9rem; }
}

/* Resource cards: the drawings are 640 units wide and render at 300 to 450px below 1100px, so their type is doubled
   there (22 units renders at 10.5px or more on a 320px card). Two labels are moved to make room. */
@media (max-width: 1099px) {
  .card figure svg text { font-size: 22px; }
  .card figure svg .cm-corner { transform: translate(-90px, 34px); }
  .card figure svg .cm-film { text-anchor: middle; transform: translate(-16px, -8px); }
  .card figure svg .cm-modeled { text-anchor: end; transform: translate(-14px, -10px); }
  .card figure svg .cm-lift { transform: translateY(-8px); }
}

/* Vertical rhythm on phones (pages with body.rhythm): sections, page heads and figure margins tighten below 800px.
   Above 800px the original clamp values apply unchanged. */
@media (max-width: 800px) {
  .rhythm section { padding: clamp(2.75rem, 8vw, 4rem) 0; }
  .rhythm section.hero { padding: 0; }
  .rhythm .page-head { padding: 2.25rem 0 1.5rem; }
  .rhythm .lam { margin-bottom: 1.6rem; }
  .rhythm .split { gap: 1.5rem; }
  .rhythm .fig.ledger { margin: 2rem 0 1.75rem; padding-top: 1.5rem; }
  .rhythm .stats { margin-top: 1.75rem; }
  .rhythm footer { padding: 2.5rem 0 2rem; }
}
