/* Cyphermatix website — V1 (design package 2026-09-29).
   Dark throughout, one cream accent, no shadows. Layout is width-driven:
   fluid clamp() type and spacing, auto-fit grids, one breakpoint for the nav. */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --page: #07090b;        /* body, nav, footer */
  --surface: #0a0d10;     /* alternating sections, capture panel fill */
  --elevated: #0f141a;    /* profile cards, inputs, final diagram node */
  --line: #1b232c;        /* section boundaries, quiet dividers */
  --line-strong: #27313d; /* panels, control rests, structural rules */

  --ink: #e8eef2;
  --ink-2: #b6c3cd;
  --ink-3: #8595a2;
  --ink-4: #63727f;

  --accent: #f2e7cf;      /* Craft Cream — the only highlight */
  --accent-hover: #fff7e6;
  --on-accent: #10161c;
  --positive: #8fd9a8;    /* "Request received" only */
  --alert: #ff6b6b;       /* rejected invite code only */
  --alert-ink: #ff9d9d;

  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 140px);
  --block-gap: clamp(40px, 5vw, 64px);
  --split-gap: clamp(28px, 4vw, 64px);
  --split-gap-wide: clamp(40px, 6vw, 96px);
  --step-gap: clamp(18px, 2.5vw, 32px);

  --radius-control: 6px;
  --radius-panel: 10px;
  --ease: .18s;
  --nav-h: 64px;
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, select, textarea, button { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
select option { background: var(--elevated); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 10px 14px; border-radius: var(--radius-control);
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ── Layout ────────────────────────────────────────────────────────── */
.container { max-width: var(--container); width: 100%; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); display: flex; flex-direction: column; gap: var(--block-gap); }
.section--hero { padding-block: clamp(56px, 8vw, 120px); }
.section--hero-tight { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 88px); }
.section--closing { padding-block: clamp(96px, 12vw, 180px); align-items: center; text-align: center; gap: 24px; }
.section--break { padding-block: clamp(96px, 14vw, 220px); }
.section--facts { padding-block: clamp(56px, 7vw, 100px); }
.section--form { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(96px, 12vw, 160px); }
.section--gate { padding-top: clamp(64px, 10vw, 160px); padding-bottom: clamp(96px, 12vw, 180px); }
.section--principles { gap: clamp(32px, 4vw, 56px); }
.section--position { gap: clamp(32px, 4vw, 48px); }

.rule { border-top: 1px solid var(--line); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .rule, .band + .band { border-top: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--split-gap);
  align-items: start;
}
.split--wide { gap: var(--split-gap-wide); }
.split--400 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--split-gap-wide); }
.split--end { align-items: end; }
.split--center { align-items: center; }
.split > *, .grid > * { min-width: 0; }

.list-reset { list-style: none; margin: 0; padding: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--22 { gap: 22px; }
.stack--26 { gap: 26px; }
.stack--28 { gap: 28px; }
.stack--center { align-items: center; text-align: center; }
.max-520 { max-width: 520px; width: 100%; }
.max-560 { max-width: 560px; }
.max-680 { max-width: 680px; }
.max-720 { max-width: 720px; }
.max-760 { max-width: 760px; }
.max-800 { max-width: 800px; }
.max-900 { max-width: 900px; }
.max-960 { max-width: 960px; }
.max-1000 { max-width: 1000px; }
.max-1100 { max-width: 1100px; }

/* ── Type ──────────────────────────────────────────────────────────── */
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.h-hero, .h-page, .h-section, .h-closing, .h-cta, .h-gate, .h-sub, .statement {
  font-weight: 500;
  text-wrap: balance;
}
.h-hero { font-size: clamp(46px, 7.2vw, 104px); line-height: .98; letter-spacing: -.025em; }
.h-page { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; letter-spacing: -.025em; }
.h-gate { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -.025em; }
.h-section { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
.h-closing { font-size: clamp(44px, 6.5vw, 96px); line-height: 1; letter-spacing: -.025em; }
.h-cta { font-size: clamp(36px, 5vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.h-sub { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.statement { font-size: clamp(26px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); max-width: 1080px; }
.statement span { color: var(--ink-3); }

.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.lead--ink { color: var(--ink); }
.body { font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: 16px; color: var(--ink-3); }
.ink { color: var(--ink); }
.strong { color: var(--ink); font-weight: 500; }

.copy { display: flex; flex-direction: column; gap: 16px; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-2); }
.copy p { text-wrap: pretty; }
.copy--offset { padding-top: clamp(0px, 1vw, 14px); }
.claim { color: var(--ink); }

.meta { font: 11px var(--mono); letter-spacing: .08em; color: var(--ink-4); text-transform: uppercase; }
.meta-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font: 11px var(--mono); letter-spacing: .08em; color: var(--ink-4); text-transform: uppercase;
}
.index { font: 11px var(--mono); letter-spacing: .1em; color: var(--ink-4); }

/* ── Buttons & links ───────────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.btn-row--center { justify-content: center; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-control);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 600; border: 0; }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--nav { height: 38px; padding: 0 16px; font-size: 14px; }
.arrow { color: var(--ink-3); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color var(--ease);
}
.text-link:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.quiet-link { color: var(--ink-3); }

/* ── Header / nav ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 9, 11, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__icon { height: 24px; width: auto; }
.brand__wordmark { height: 12px; width: auto; }
.product-mark { display: flex; align-items: center; gap: 12px; }
.product-mark__icon { height: 26px; width: auto; }
/* 14px box ≈ 12px cap height: the crop includes the Q's descender. */
.product-mark__wordmark { height: 14px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__link { font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }

.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border-radius: var(--radius-control); border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font-size: 16px;
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--line); background: var(--page);
  padding-top: 12px; padding-bottom: 24px;
}
.mobile-menu__link { font-size: 19px; color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__link[aria-current='page'] { color: var(--ink); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; }

@media (max-width: 819.98px) {
  .nav { display: none; }
  .mobile-menu { display: flex; }             /* no-JS: links stay reachable */
  .js .menu-btn { display: flex; }
  .js .mobile-menu:not(.is-open) { display: none; }
}

/* ── Product captures ──────────────────────────────────────────────── */
.figure { display: flex; flex-direction: column; gap: 12px; margin: 0; min-width: 0; }
.capture { border: 1px solid var(--line-strong); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); }
.capture img { width: 100%; height: auto; }
.capture--elevated { background: var(--elevated); }
/* Detail crops: fixed aspect, one master capture scaled into position. */
.crop { position: relative; }
.crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.crop--hero-a { aspect-ratio: 5 / 4; }
.crop--hero-a img { transform: scale(1.32); transform-origin: 0 0; }
.crop--hero-b { aspect-ratio: 21 / 9; }
.crop--hero-b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 11, 0) 55%, rgba(7, 9, 11, .85) 100%); }
.crop--connectors { aspect-ratio: 4 / 3; }
.crop--connectors img { transform: scale(1.9); transform-origin: 32% 46%; }
.crop--candidates { aspect-ratio: 4 / 3; }
.crop--candidates img { transform: scale(3.1); transform-origin: 5.5% 47%; }
.crop--library { aspect-ratio: 4 / 5; max-height: 640px; }
.crop--library img { transform: scale(2.6); transform-origin: 6% 27%; }

.capture-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero-a {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.hero-a > * { min-width: 0; }
.hero-b {
  display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(64px, 9vw, 140px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.hero-b__text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; max-width: 900px; }
.hero-b__media { width: 100%; }

/* ── Step rows (the site's only "card") ────────────────────────────── */
.grid { display: grid; gap: var(--step-gap); }
.grid--180 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
/* Six-step rows: 6 across on desktop, 3×2 on tablet, stacked on mobile (spec §05). */
@media (min-width: 600px) { .grid--steps6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--steps6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid--220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid--250 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 40px); }

.step { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.step--roomy { padding-top: 22px; gap: 10px; }
.step--principle { padding-top: 22px; gap: 14px; }
.step__head { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); letter-spacing: .1em; color: var(--ink-4); }
.step:last-child .step__arrow { color: transparent; }
.step__caps { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.step__title { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.step__body { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.step__body--16 { font-size: 16px; }
.step__principle { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }

/* ── Systems diagram ───────────────────────────────────────────────── */
.diagram { display: flex; flex-direction: column; max-width: 520px; width: 100%; justify-self: end; margin: 0; padding: 0; list-style: none; }
.node {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  padding: 14px 18px; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.node span:last-child { color: var(--ink-4); letter-spacing: .06em; }
.node--final { border-color: var(--accent); color: var(--accent); background: var(--elevated); }
.diagram li:not(:last-child)::after {
  content: '↓'; display: flex; align-items: center; justify-content: center;
  height: 22px; color: var(--ink-4); font-size: 12px;
}

/* ── Definition lists ──────────────────────────────────────────────── */
.deflist { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-strong); }
.deflist__row { border-top: 1px solid var(--line-strong); padding: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.deflist__row--indexed { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.deflist__row--indexed .index { padding-top: 5px; }
.deflist__row--link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; color: var(--ink); }
.deflist__row--link:hover { color: var(--ink); }
.deflist__row--link:hover .deflist__title { color: var(--accent-hover); }
.deflist__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deflist__title { font-size: 18px; font-weight: 500; transition: color var(--ease); }
.deflist__desc { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.deflist__meta { font: 12px var(--mono); color: var(--ink-3); }

.principles { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-strong); }
.principle {
  border-top: 1px solid var(--line-strong); padding: clamp(22px, 3vw, 36px) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px clamp(28px, 4vw, 64px); align-items: start;
}
.principle__head { display: flex; gap: 18px; align-items: baseline; }
.principle__title { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }

.bullets { display: flex; flex-direction: column; gap: 6px; padding-top: clamp(0px, 1vw, 14px); }
.bullets ul { list-style: none; margin: 0; padding: 0; }
.bullets li {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: clamp(16px, 1.2vw, 19px); color: var(--ink);
}
.bullets li::before { content: '—'; color: var(--ink-4); font: 11px var(--mono); }

.chips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.chip-static { border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 16px 18px; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ── Profile cards (the one filled card) ───────────────────────────── */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 20px); }
.profile { border: 1px solid var(--line-strong); border-radius: var(--radius-panel); background: var(--elevated); padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.profile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.profile__title { font-size: 18px; font-weight: 500; }
.profile__desc { font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.dims { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dim { display: grid; grid-template-columns: 78px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font: 11px var(--mono); color: var(--ink-3); }
.dim dt { letter-spacing: .06em; text-transform: uppercase; }
.dim dd { margin: 0; display: contents; }
.dim__track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dim__fill { height: 100%; border-radius: 2px; background: var(--ink-3); }
.dim__fill.is-strong { background: var(--accent); }  /* weight ≥ .60 */
.dim__value { text-align: right; color: var(--ink-2); }
.w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-55 { width: 55%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; }
.w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; }

/* ── Manual ↔ autonomous strip ─────────────────────────────────────── */
.position { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.position__card { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-3); }
.position__card .meta { letter-spacing: .1em; }
.position__title { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.position__desc { font-size: 15px; line-height: 1.5; }
.position__card--ours { border-color: var(--accent); background: var(--elevated); }
.position__card--ours .meta { color: var(--accent); }
.position__card--ours .position__title { color: var(--ink); }
.position__card--ours .position__desc { color: var(--ink-2); }

/* ── Company ───────────────────────────────────────────────────────── */
.quote { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 3vw, 40px); margin: 0; }
.quote blockquote { margin: 0; }
.fact dd { margin: 0; }
.quote p { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; text-wrap: balance; }
.quote .meta { letter-spacing: .1em; }
.fact { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fact .meta { letter-spacing: .1em; }
.fact__value { font-size: 18px; font-weight: 500; }

/* ── Forms ─────────────────────────────────────────────────────────── */
.panel { border: 1px solid var(--line-strong); border-radius: var(--radius-panel); background: var(--surface); padding: clamp(20px, 3vw, 36px); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form--gate { gap: 18px; max-width: 520px; width: 100%; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field__optional { color: var(--ink-4); }
.input, .select, .textarea {
  height: 48px; padding: 0 14px; border-radius: var(--radius-control);
  border: 1px solid var(--line-strong); background: var(--elevated); color: var(--ink);
  font-size: 15px; outline: none; transition: border-color var(--ease); width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink-3); }
.select { padding: 0 12px; appearance: none; -webkit-appearance: none; }
.textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.input--code { height: 52px; font: 16px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.input--code[aria-invalid='true'] { border-color: var(--alert); }
.form-error { font-size: 13px; color: var(--alert-ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.form-foot__note { font-size: 13px; color: var(--ink-4); max-width: 360px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Filterable multi-select (site.js enhances a native <select multiple>). */
.select--multi { height: auto; padding: 6px; }          /* no-JS fallback: native listbox */
.select--multi option { padding: 4px 8px; }
.ms { position: relative; }
.ms__control { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.ms.is-open .ms__control { border-color: var(--ink-3); }
.ms__summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__summary.is-placeholder { color: var(--ink-4); }
.ms__caret { flex: none; font-size: 12px; color: var(--ink-3); transition: transform var(--ease); }
.ms.is-open .ms__caret { transform: rotate(180deg); }
.ms__panel {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px;
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: var(--radius-control);
}
.ms__filter { height: 40px; background: var(--surface); }
.ms__list { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
.ms__group { padding: 12px 10px 6px; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.ms__group:first-child { padding-top: 6px; }
.ms__option {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px;
  border-radius: 4px; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.ms__option:hover, .ms__option.is-active { background: rgba(255, 255, 255, .05); color: var(--ink); }
.ms__option.is-selected { color: var(--ink); }
.ms__check {
  flex: none; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; line-height: 1; color: var(--accent);
}
.ms__option.is-selected .ms__check { border-color: var(--accent); }
.ms__option.is-selected .ms__check::after { content: '✓'; }
.ms__add { color: var(--accent); }
.ms__add .ms__check { border-color: var(--accent); }
.ms__add .ms__check::after { content: '+'; }
.ms__empty { padding: 10px; font-size: 14px; color: var(--ink-4); }

.notes { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); max-width: 560px; margin: 0; padding: 0; list-style: none; }
.notes li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; font-size: 16px; color: var(--ink-2); }
.notes .index { padding-top: 4px; }

.sent { display: flex; flex-direction: column; gap: 14px; padding: clamp(12px, 2vw, 24px) 0; }
.sent__eyebrow { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--positive); }
.sent__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--page); }
.site-footer__inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.site-footer__line { font-size: 15px; color: var(--ink-3); }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col .meta { letter-spacing: .1em; }
.site-footer__col a { font-size: 15px; color: var(--ink-2); }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--ink-4); }

/* ── Motion ────────────────────────────────────────────────────────── */
/* Reveal headings and copy once at 15% intersection. Never the captures. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .2s ease-out, transform .2s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
