/* ═══════════════════════════════════════════════════════════════════════════
   Pulpo — promotional site
   ───────────────────────────────────────────────────────────────────────────
   Derived from the designer's bundle ("Pulpo Website v2.dc.html", 2026-08-14),
   which was drawn on the Classical design system with the type overridden to
   Saira for prose, Inconsolata for data — the WEB handout v3 faces (§7).

   The canvas carried its styling as inline attributes at a single 1440px
   width. That is fine for a drawing and impossible for a site: you cannot put
   a media query on a style attribute. Everything is lifted into classes here
   so DEVIATIONS.md item 14 — "drawn at 1440 only, needs 768 and 320" — can
   actually be answered. Values are the designer's; the breakpoints are new.

   No @import, no external host: BRIEF §8 forbids third-party requests, and a
   product selling "the footage never leaves the building" cannot leak its
   visitors. Faces are self-hosted in assets/fonts/.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('/assets/fonts/fonts.css');

/* ── tokens ─────────────────────────────────────────────────────────────────
   Light is the base. Dark is redefined twice — once for the system default
   (prefers-color-scheme, guarded so an explicit light choice still wins) and
   once for the explicit [data-theme="dark"] the toggle sets — so the toggle
   beats the OS in both directions. Every colour has its definition here on
   bare :root, never only inside a media block. */

:root {
  /* WEB handout v3 tokens (§7 — inherited from the app, not invented).
     Amber #F59E0B is the ONLY accent, but on the light ground it measures
     1.95:1 — unusable even as a stroke (3:1 is the bar). The handout supplies
     the answer itself: #B45309, "amber as ink on light", at 4.56:1 — so on
     light BOTH stroke and text amber are #B45309, and the raw amber appears
     only where the ground is dark (the band, and dark theme, 9.17:1). The
     v3 canvas does the same: on light, amber is a fill under dark text,
     never a thin line on the page. */
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #16181c;
  --accent: #b45309;          /* strokes, rules, focus rings: 4.56:1 */
  --accent-ink: #b45309;      /* accent text, same bar: 4.56:1 */
  --accent-hover: #8a4207;    /* 6.66:1 */
  --divider: #e6e6e3;         /* the app's 1px hairline, light */
  --muted: #5c6068;           /* 5.73:1 on --bg; figcaption floor is 4.5 */

  /* The hero band is dark in BOTH themes — the designer's "dark full-bleed
     hero" (DEVIATIONS 0c). These are fixed, not theme-dependent. */
  --band-bg: #0a0b0d;
  --band-text: #eef0f3;
  --band-gold: #f59e0b;

  /* Saira for every sentence, Inconsolata for every number, label and
     terminal line — the v3 rule that makes the site the app's sibling. */
  --font-heading: 'Saira', system-ui, -apple-system, sans-serif;
  --font-body: 'Saira', system-ui, -apple-system, sans-serif;
  --font-mono: 'Inconsolata', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;           /* chips, buttons — the v3 canvas's small radius */
  --radius-md: 16px;          /* cards — the §7 token */
  --shadow-md: 0 3px 10px color-mix(in srgb, #0a0b0d 16%, transparent);

  --wrap: 1320px;
  --gutter: 40px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0b0d;
    --surface: #0c0e11;
    --text: #eef0f3;
    --accent: #f59e0b;
    --accent-ink: #f59e0b;    /* 9.17:1 on --bg */
    --accent-hover: #fbc02d;  /* 11.89:1 */
    --divider: #1e2127;       /* the app's 1px hairline, dark */
    --muted: #9aa0a8;         /* 7.47:1 */
  }
}

:root[data-theme='dark'] {
  --bg: #0a0b0d;
  --surface: #0c0e11;
  --text: #eef0f3;
  --accent: #f59e0b;
  --accent-ink: #f59e0b;
  --accent-hover: #fbc02d;
  --divider: #1e2127;
  --muted: #9aa0a8;
}

/* ── base ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;               /* DEVIATIONS 0d: heading weight stays at 400 */
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; letter-spacing: -0.005em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { font-size: 12px; margin-top: 8px; color: var(--muted); line-height: 1.5; }
strong { font-weight: 600; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.text-muted { color: var(--muted); }
.tnum { font-feature-settings: 'tnum'; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

/* Visible only to screen readers — used for the skip link and for form
   labels the design shows as placeholder-less bare fields. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg); color: var(--accent-ink);
  padding: 12px 18px; border: 1px solid var(--accent);
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 30px;
  padding: 14px var(--gutter); flex-wrap: wrap;
}
.brand {
  font-family: var(--font-heading); font-size: 19px;
  letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; color: var(--text); margin-right: auto;
}
.nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.nav a {
  font-size: 13px; letter-spacing: 0.02em;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current='page'] { color: var(--accent-ink); border-color: var(--accent); }

.header-controls {
  display: flex; align-items: center; gap: 8px;
  padding-left: 12px; border-left: 1px solid var(--divider);
}
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--divider);
  border-radius: var(--radius-sm); padding: 4px 8px;
  cursor: pointer; color: inherit; text-decoration: none;
  font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.1em;
  opacity: 0.55;
}
.chip-btn:hover { opacity: 1; border-color: var(--accent); color: inherit; }
.chip-btn[aria-current='true'] { opacity: 1; border-color: var(--accent); color: var(--accent-ink); }
.chip-btn svg { display: block; border-radius: 1px; }
.theme-btn {
  width: 30px; height: 26px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--divider);
  border-radius: var(--radius-sm); cursor: pointer; color: inherit; opacity: 1;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
/* No JS, no toggle: the page still follows prefers-color-scheme. Hiding it
   avoids offering a control that cannot work. */
html:not(.js) .theme-btn { display: none; }

/* ── buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 400;
  font-size: 14px; line-height: 1.2; color: var(--text);
  background: transparent; border: 1px solid transparent;
  padding: 10px 17px; border-radius: var(--radius-md);
}
.btn-primary { color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.btn-secondary { border-color: var(--divider); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.btn-block { width: 100%; margin-top: 8px; }
/* On the dark hero band the buttons cannot inherit theme ink. */
.btn-on-band { color: var(--band-gold); border-color: var(--band-gold); }
.btn-on-band:hover { background: color-mix(in srgb, var(--band-gold) 14%, transparent); color: var(--band-gold); }
.btn-on-band-quiet { color: var(--band-text); border-color: color-mix(in srgb, var(--band-text) 30%, transparent); }
.btn-on-band-quiet:hover { background: color-mix(in srgb, var(--band-text) 9%, transparent); color: var(--band-text); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ── typographic furniture ────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono); /* v3: labels and eyebrows are Inconsolata */
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 28px;
}
.page-title {
  font-size: clamp(34px, 5vw, 70px); line-height: 1.03;
  letter-spacing: -0.025em; max-width: 22ch; margin: 0 0 30px;
}
.lede { font-size: 18px; line-height: 1.62; max-width: 60ch; margin: 0 0 56px; }

.page-head { padding-top: 92px; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 0; }

/* ── the hero band (home) ─────────────────────────────────────────────────── */

.hero {
  background: var(--band-bg); color: var(--band-text);
  padding: 130px 0 110px; position: relative; overflow: hidden;
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.42fr 0.58fr;
  gap: 60px; align-items: end;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--band-gold); font-feature-settings: 'tnum'; margin-bottom: 40px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 90px); line-height: 1.0;
  letter-spacing: -0.028em; max-width: 17ch; margin: 0 0 36px;
}
.hero-lede {
  font-size: 19px; line-height: 1.6; max-width: 60ch; margin: 0 0 42px;
  color: color-mix(in srgb, var(--band-text) 82%, transparent);
}

/* The three measured figures that replaced the ghost numeral (DEVIATIONS 0d). */
.figures { display: grid; border-top: 1px solid color-mix(in srgb, var(--band-gold) 50%, transparent); }
.figure-row {
  padding: 18px 0; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--band-text) 16%, transparent);
}
.figure-row:last-child { border-bottom: 0; }
.figure-num {
  font-family: var(--font-mono); font-size: 44px; line-height: 1;
  letter-spacing: -0.02em; color: var(--band-gold); font-feature-settings: 'tnum';
}
.figure-label {
  font-size: 13px; line-height: 1.4;
  color: color-mix(in srgb, var(--band-text) 70%, transparent);
}

/* ── image plates ─────────────────────────────────────────────────────────── */

.plate {
  position: relative; width: 100%;
  box-sizing: border-box;
  border: 6px solid var(--surface);
  outline: 1px solid var(--divider);
  background: var(--surface);
}
.plate-wide { aspect-ratio: 3.33 / 1; }
.plate-16x9 { aspect-ratio: 16 / 9; }
.plate img { width: 100%; height: 100%; object-fit: cover; }

/* The screenshot slots are empty until D8 (footage privacy) is settled. A
   deliberate typographic holding pattern, not a broken image: it keeps the
   true aspect so dropping real frames in later is a file swap. */
.plate-empty {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      color-mix(in srgb, var(--text) 3.5%, transparent) 14px 15px
    );
}
.plate-empty span {
  font-family: var(--font-heading); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  max-width: 34ch; line-height: 1.9;
}

.hero-figure { margin-top: -46px; position: relative; z-index: 2; }
.hero-figure .plate { box-shadow: var(--shadow-md); }

/* ── generic column sets ──────────────────────────────────────────────────── */

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cols-3 h3, .cols-2 h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.cols-3 p, .cols-2 p { font-size: 15px; line-height: 1.68; opacity: 0.84; margin: 0; }

.pad-top-lg { padding-top: 100px; }
.pad-top-md { padding-top: 52px; }
.rule-top { border-top: 1px solid var(--divider); }

/* ── pillars (home) ───────────────────────────────────────────────────────── */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; padding-top: 96px; }
.pillar { border-top: 2px solid var(--accent); padding-top: 22px; }
.pillar-kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px; font-feature-settings: 'tnum';
}
.pillar h3 { font-size: clamp(25px, 2.4vw, 31px); line-height: 1.1; margin-bottom: 14px; }
.pillar p { font-size: 15.5px; line-height: 1.68; opacity: 0.82; margin: 0; }

/* ── hairline grids ───────────────────────────────────────────────────────────
   The 1px gap over a divider-coloured background is the designer's rule: the
   gap IS the rule, so cells never double up their borders. */

.grid-hair {
  display: grid; gap: 1px;
  background: var(--divider); border: 1px solid var(--divider);
}
.grid-hair > * { background: var(--bg); }

/* A grid/flex item's default min-width is auto, i.e. "never shrink below my
   content". A terminal block is white-space: pre and far wider than a phone,
   so without this the column grows to fit it and the whole page overflows —
   the .term's own overflow-x never gets a chance to scroll. Anything that can
   contain a .term or a wide table needs the floor lifted. */
.grid-hair > *,
.cols-2 > *, .cols-3 > *,
.arch > *, .hero-inner > *,
.contact-grid > *, .split-1-2 > * { min-width: 0; }
.grid-hair-2 { grid-template-columns: repeat(2, 1fr); }
.grid-hair-3 { grid-template-columns: repeat(3, 1fr); }
.grid-hair-4 { grid-template-columns: repeat(4, 1fr); }

/* the four audience doors */
.door { padding: 38px; text-decoration: none; color: inherit; display: block; }
.door:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); color: inherit; }
.door-q {
  font-family: var(--font-heading); font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.22; margin-bottom: 14px; max-width: 32ch;
  letter-spacing: -0.035em;
}
.door p { font-size: 15px; opacity: 0.8; margin-bottom: 16px; }
.door-go {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
}

/* ── "what it does not do" ────────────────────────────────────────────────── */

.split-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.split-1-2 h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.08; margin-bottom: 12px; }
.notdo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 44px;
  font-size: 15px; line-height: 1.6;
}
.notdo-grid > div { border-top: 1px solid var(--divider); padding-top: 14px; }

/* ── architecture row (how it works) ──────────────────────────────────────── */

.arch {
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  padding: 48px 0; display: grid; grid-template-columns: 210px 1fr;
  gap: 44px; align-items: start;
}
.arch-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: 8px; }
.arch-sub { font-size: 13px; opacity: 0.7; margin-bottom: 18px; }
.cam-list {
  display: grid; gap: 6px; font-size: 12px;
  font-family: var(--font-mono); font-feature-settings: 'tnum';
}
.cam-chip { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 8px 10px; }
.cam-more { padding: 8px 10px; font-family: var(--font-body); }

.hub-box {
  border: 1px solid var(--accent); border-radius: var(--radius-md);
  padding: 26px 28px; margin-bottom: 30px;
}
.hub-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; flex-wrap: wrap;
}
.hub-name { font-family: var(--font-heading); font-size: clamp(21px, 2.2vw, 27px); }
.hub-meta {
  font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent-ink);
  font-feature-settings: 'tnum';
}
.hub-box p { font-size: 15px; line-height: 1.62; margin: 14px 0 0; opacity: 0.85; max-width: 72ch; }

.consumer { padding: 20px; }
.consumer h3 { font-family: var(--font-heading); font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.consumer p { font-size: 13.5px; line-height: 1.55; opacity: 0.78; margin: 0; }

/* ── terminal blocks ──────────────────────────────────────────────────────── */

.term {
  border: 1px solid var(--divider); border-radius: var(--radius-md);
  background: var(--surface); padding: 18px 20px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9;
  overflow-x: auto; font-feature-settings: 'tnum';
  white-space: pre; -webkit-overflow-scrolling: touch;
}
.term .prompt { opacity: 0.6; display: block; }
.term .out { display: block; }

/* ── definition rows ("what happens when it breaks") ──────────────────────── */

.rows > div {
  border-top: 1px solid var(--divider); padding: 16px 0;
  font-size: 15px; line-height: 1.6;
}
.rows > div:last-child { border-bottom: 1px solid var(--divider); }
.rows strong { font-weight: 600; }
.rows span.body { opacity: 0.84; }

/* ── tables ───────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Scroll affordance. A table clipped mid-column on a phone looks like a bug
   unless something says "there is more this way". The two `local` layers are
   the opaque caps that ride with the content and hide the shadow when you
   reach an end; the two `scroll` layers are the shadows themselves, pinned to
   the box. Purely decorative — nothing is conveyed by the shadow alone. */
.table-wrap, .term {
  background-repeat: no-repeat;
  background-size: 28px 100%, 28px 100%, 14px 100%, 14px 100%;
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-attachment: local, local, scroll, scroll;
}
.table-wrap {
  background-image:
    linear-gradient(to right, var(--bg), transparent),
    linear-gradient(to left, var(--bg), transparent),
    linear-gradient(to right, color-mix(in srgb, var(--text) 16%, transparent), transparent),
    linear-gradient(to left, color-mix(in srgb, var(--text) 16%, transparent), transparent);
}
.term {
  background-image:
    linear-gradient(to right, var(--surface), transparent),
    linear-gradient(to left, var(--surface), transparent),
    linear-gradient(to right, color-mix(in srgb, var(--text) 14%, transparent), transparent),
    linear-gradient(to left, color-mix(in srgb, var(--text) 14%, transparent), transparent);
}
.table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  font-feature-settings: 'tnum'; min-width: 640px;
}
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  padding: 10px; border-bottom: 1px solid var(--divider); font-weight: 500;
}
.table td { padding: 10px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }

/* ── stat tiles (performance) ─────────────────────────────────────────────── */

.stat { padding: 32px; }
.stat-num {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -0.02em;
  color: var(--accent-ink); font-feature-settings: 'tnum'; margin-bottom: 12px;
}
.stat-num .unit { font-size: 0.42em; }
.stat-label { font-size: 14.5px; line-height: 1.55; opacity: 0.84; }

/* ── contact ──────────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 76px; align-items: start; }
.contact-grid h1 {
  font-size: clamp(32px, 4.4vw, 62px); line-height: 1.04;
  letter-spacing: -0.025em; max-width: 18ch; margin: 0 0 28px;
}
.contact-grid .lede { font-size: 17px; margin: 0 0 34px; }

.meta-list { border-top: 1px solid var(--divider); }
.meta-list > div {
  border-bottom: 1px solid var(--divider); padding: 16px 0;
  display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
}
.meta-key {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink); min-width: 150px;
}
.meta-val { font-size: 15px; opacity: 0.84; flex: 1; min-width: 220px; }

.form-card {
  border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 34px;
}
.form-card .stack { display: grid; gap: 20px; }
.field > label, .field > .label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.input {
  width: 100%; min-height: 38px; padding: 8px 10px; font: inherit;
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); caret-color: var(--accent);
  background: transparent;
  border: 1px solid var(--divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }

.radio-set { display: grid; gap: 11px; padding-top: 5px; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--divider);
}
.radio:hover .dot { border-color: var(--accent); }
.radio input:checked + .dot {
  border-color: var(--accent); background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The honeypot: a real field, visually gone, ignored by assistive tech.
   Anything that fills it is not a person. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.form-status {
  border-left: 2px solid var(--accent); padding: 10px 14px;
  font-size: 14px; background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* ── footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  max-width: var(--wrap); margin: 110px auto 0;
  padding: 34px var(--gutter) 56px;
  border-top: 1px solid var(--divider);
  display: flex; gap: 36px; flex-wrap: wrap; align-items: baseline;
}
.footer-brand {
  font-family: var(--font-heading); font-size: 16px;
  letter-spacing: 0.3em; text-transform: uppercase; margin-right: auto;
}
.site-footer a { font-size: 13px; }
.footer-note {
  font-size: 12.5px; width: 100%; padding-top: 20px; line-height: 1.7;
  color: var(--muted);
}

/* ═══ responsive ═══════════════════════════════════════════════════════════
   DEVIATIONS.md item 14: the canvas was drawn at 1440 only. Below are the 768
   and 320 floors the brief asks for (§8: responsive from 320px, same floor as
   the app). Order is widest-first so each step only overrides what changes. */

@media (max-width: 1180px) {
  .cols-3, .pillars { gap: 36px; }
  .grid-hair-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 48px; }
  .hero { padding: 104px 0 88px; }
}

@media (max-width: 980px) {
  :root { --gutter: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .arch { grid-template-columns: 1fr; gap: 32px; }
  .cam-list { grid-template-columns: repeat(2, 1fr); }
  .cam-more { grid-column: 1 / -1; }
  .split-1-2 { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .cols-3 { grid-template-columns: 1fr; gap: 36px; }
  .pad-top-lg { padding-top: 68px; }
  .header-inner { gap: 18px; }
  .nav { gap: 18px; order: 3; width: 100%; }
  .header-controls { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hero { padding: 76px 0 64px; }
  .hero-eyebrow { margin-bottom: 28px; letter-spacing: 0.2em; }
  .hero-lede { font-size: 17px; }
  .page-head { padding-top: 60px; }
  .lede { font-size: 16.5px; margin-bottom: 40px; }
  .grid-hair-2, .grid-hair-3, .grid-hair-4 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; gap: 36px; }
  .notdo-grid { grid-template-columns: 1fr; gap: 18px; }
  .door { padding: 26px; }
  .stat { padding: 24px; }
  .hero-figure { margin-top: -24px; }
  .site-footer { gap: 18px 24px; margin-top: 72px; }
  .footer-brand { margin-right: 0; width: 100%; }
  .term { font-size: 11.5px; padding: 14px 15px; }
  .meta-key { min-width: 0; width: 100%; }
  .form-card { padding: 24px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  /* The wordmark's 0.3em tracking is most of its width; at 320 it crowds the
     language chips, so tighten it rather than let the row collide. */
  .brand { font-size: 16px; letter-spacing: 0.18em; }
  .header-inner { gap: 12px; padding-top: 11px; padding-bottom: 11px; }
  .hero { padding: 60px 0 52px; }
  .hero h1 { letter-spacing: -0.02em; }
  .figure-num { font-size: 36px; }
  .door { padding: 20px; }
  .cam-list { grid-template-columns: 1fr; }
  .term { font-size: 11px; }
  /* At 320 the plate's 6px frame eats real estate; halve it. */
  .plate { border-width: 4px; }
  .plate-empty span { letter-spacing: 0.16em; font-size: 10px; }
}

/* ── utilities ────────────────────────────────────────────────────────────────
   A deliberately short list. These exist so the markup carries NO style
   attributes at all, which lets the CSP say style-src 'self' with no
   'unsafe-inline' — a strict inline-style ban is cheap here and worth having
   on a site whose entire argument is that it does not leak. Add to this list
   rather than reaching for a style attribute. */

.mb-sm { margin-bottom: 18px; }
.mb-md { margin-bottom: 20px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 13.5px; }
.lead-out { font-size: 14.5px; margin: 0; }

.pt-sm { padding-top: 34px; }
.pt-md { padding-top: 44px; }
.pt-lg { padding-top: 56px; }
.pt-xl { padding-top: 62px; }
.mt-lg { margin-top: 48px; }

.narrow-16 { max-width: 16ch; }
.narrow-20 { max-width: 20ch; }
.narrow-24 { max-width: 24ch; }

.col-24 { width: 24%; }
.col-30 { width: 30%; }
.col-40 { width: 40%; }

/* the vendor page's two door cells */
.cell { padding: 36px; }
.cell h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.cell-body { font-size: 15px; line-height: 1.66; opacity: 0.84; margin-bottom: 20px; }

.closing { padding: 52px 0 46px; border-bottom: 1px solid var(--divider); }

/* a fieldset that should look like every other .field */
.field-reset { border: 0; padding: 0; margin: 0; }
.field-reset > legend { padding: 0; }

@media (max-width: 760px) {
  .cell { padding: 26px; }
}

/* ── print & motion ───────────────────────────────────────────────────────── */

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

@media print {
  .site-header, .header-controls, .btn-row { display: none; }
  body { background: #fff; color: #000; }
  .term { border: 1px solid #999; }
}
