/* ZOCREST design system and page styles.
   Palette from the accountant's desk: columnar-pad green paper, adding-machine tape,
   green-eyeshade ink and audit-red tick marks. Type: Archivo (variable width) and IBM Plex Mono. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 103%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  --ledger: #eef1ea;
  --ledger-hi: #f6f7f2;
  --tape: #fbfbf7;
  --ink: #15191a;
  --ink-2: #3a433f;
  --muted: #5a645e;
  --rule: #cfdbd1;
  --rule-strong: #a9bdae;
  --eyeshade: #0d3b2e;
  --eyeshade-2: #155240;
  --tick: #d7392b;
  --tick-ink: #b42318;
  --night: #0a1a14;
  --night-card: #0f251d;
  --on-night: #e7eee8;
  --on-night-muted: #a3b6aa;
  --mint: #a8e2c0;
  --paper-white: #f4f8f5;
  --night-rule: rgba(214, 232, 220, 0.12);

  --font: 'Archivo', 'Archivo Fallback', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 200ms;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 11vw, 152px);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ledger);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--eyeshade); color: var(--paper-white); }
:focus-visible { outline: 2px solid var(--eyeshade); outline-offset: 2px; }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--eyeshade); color: var(--paper-white); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h2 {
  font-size: clamp(2.1rem, 4.1vw, 3.6rem);
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.032em;
  line-height: 1.03;
  text-wrap: balance;
}
.section { padding-block: var(--section); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.section__lede { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.15vw, 1.18rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.section__head--split .section__lede { margin-top: 0; }
.footnote { margin-top: 56px; font-size: 0.875rem; color: var(--muted); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  font-weight: 620; font-stretch: 104%; font-size: 0.95rem; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.btn:active { transform: scale(0.985); }
.btn__arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-spring); }
.btn--primary { background: var(--eyeshade); color: var(--paper-white); box-shadow: inset 0 1px 0 rgba(244, 248, 245, 0.12), 0 12px 28px -16px rgba(13, 59, 46, 0.8); }
.btn--light { background: #edf5f0; color: var(--eyeshade); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 1rem; }
.btn--xl { min-height: 60px; padding: 0 28px; font-size: 1.04rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.text-link {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 4px;
  font-weight: 600; font-stretch: 104%; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: text-decoration-color var(--fast) var(--ease-out);
}
@media (hover: hover) {
  .btn--primary:hover { background: var(--eyeshade-2); }
  .btn--light:hover { background: var(--paper-white); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .text-link:hover { text-decoration-color: var(--eyeshade); }
}

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding-inline: clamp(10px, 2.4vw, 28px); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: calc(var(--wrap) + 32px); margin-inline: auto;
  min-height: 60px;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 16px; border-radius: var(--r-md);
  background: rgba(251, 251, 247, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(13, 59, 46, 0.08), 0 16px 40px -32px rgba(13, 59, 46, 0.55);
  transition: box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.nav.is-scrolled .nav__bar { background: rgba(251, 251, 247, 0.96); box-shadow: inset 0 0 0 1px rgba(13, 59, 46, 0.1), 0 22px 46px -30px rgba(13, 59, 46, 0.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { font-weight: 760; font-stretch: 122%; letter-spacing: 0.07em; font-size: 1rem; }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a {
  white-space: nowrap;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.nav__cta { flex: none; }
.nav__ask {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 12px; flex: none;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  transition: box-shadow var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.nav__ask-icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav__call {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; flex: none;
  border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-weight: 620; font-stretch: 104%; font-size: 0.875rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: box-shadow var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
@media (hover: hover) { .nav__call:hover { box-shadow: inset 0 0 0 1px var(--eyeshade); background: rgba(13, 59, 46, 0.05); } }
.nav__kbd { padding: 3px 6px; border-radius: 4px; background: rgba(13, 59, 46, 0.08); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--eyeshade); }
@media (hover: hover) { .nav__ask:hover { box-shadow: inset 0 0 0 1px var(--eyeshade); color: var(--ink); } }
.hero__due { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tick-ink); }
.hero__due::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tick); flex: none; }
.inline-link, .footer__email, .menu__email { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer__email { color: var(--on-night); }
.nav__toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; flex: none;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--eyeshade); color: var(--paper-white);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.burger { position: relative; display: block; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 400ms var(--ease-spring), top 400ms var(--ease-spring); }
.burger i:first-child { top: 1px; }
.burger i:last-child { top: 7.5px; }
.nav__toggle[aria-expanded='true'] .burger i:first-child { top: 4.2px; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] .burger i:last-child { top: 4.2px; transform: rotate(-45deg); }
@media (hover: hover) {
  .nav__links a:hover { background: rgba(13, 59, 46, 0.07); color: var(--ink); }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 112px var(--gutter) 40px;
  background: var(--ledger);
  opacity: 0; transition: opacity 360ms var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 2px; }
.menu__links a {
  padding: 4px 0;
  font-size: clamp(2rem, 9vw, 3.1rem); font-weight: 620; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.15;
  text-decoration: none; color: var(--ink);
  opacity: 0; transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-spring);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 40ms; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 80ms; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 120ms; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 160ms; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 200ms; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: 240ms; }
.menu.is-open .menu__links a:nth-child(8) { transition-delay: 280ms; }
.menu__foot { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 104px 0 clamp(72px, 9vw, 120px);
  overflow: clip;
}
.hero > .wrap { width: 100%; }
.hero__rules {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(13, 59, 46, 0.07) 0 1px, transparent 1px 112px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 60%, transparent 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 372px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title {
  font-size: clamp(2.35rem, 6.6vw, 7rem);
  font-weight: 660;
  font-stretch: 110%;
  letter-spacing: -0.042em;
  line-height: 0.97;
}
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--eyeshade); }
.hero__lede { margin-top: 30px; max-width: 30em; font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero__proof { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; flex: none; }
.tick path { fill: none; stroke: var(--tick); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.js:not(.is-ready) .hero__title,
.js:not(.is-ready) [data-hero-item],
.js:not(.is-ready) [data-machine] { opacity: 0; }
.js .hero__title, .js [data-hero-item], .js [data-machine] { animation: boot-reveal 400ms ease 2.6s forwards; }
@keyframes boot-reveal { to { opacity: 1; } }

/* The adding machine */
.machine { position: relative; width: 100%; max-width: 372px; justify-self: end; }
.machine__paper {
  position: relative; height: 470px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 84px);
  mask-image: linear-gradient(180deg, transparent 0, #000 84px);
}
.tape { position: absolute; left: 28px; right: 28px; bottom: 0; }
.tape__feed {
  position: relative;
  padding: 22px 18px 34px;
  background:
    linear-gradient(90deg, rgba(20, 40, 30, 0.05), transparent 9%, transparent 91%, rgba(20, 40, 30, 0.05)),
    var(--tape);
  box-shadow: 0 1px 0 rgba(13, 59, 46, 0.06), 0 30px 50px -36px rgba(13, 59, 46, 0.45);
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.035em;
  text-transform: uppercase; color: #27312c;
  font-variant-numeric: tabular-nums;
}
.tape__feed::before {
  content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
  background:
    linear-gradient(45deg, var(--tape) 50%, transparent 50%) 0 0 / 10px 8px repeat-x,
    linear-gradient(-45deg, var(--tape) 50%, transparent 50%) 0 0 / 10px 8px repeat-x;
}
.tape__head { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed rgba(39, 49, 44, 0.35); text-align: center; color: #3e4a44; }
.tape__brand { font-weight: 600; color: #1d2622; letter-spacing: 0.12em; }
.tape__lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 8.5ch; gap: 10px; padding: 4px 0; align-items: baseline; }
.tape__t { color: #6a766f; }
.tape__d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape__v { text-align: right; font-weight: 600; color: #1d2622; }
.tape__v.is-tick { display: inline-block; color: var(--tick); font-size: 0.95rem; line-height: 1; transform: rotate(-6deg); }
.tape__total { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(39, 49, 44, 0.35); display: flex; justify-content: space-between; font-weight: 600; color: #1d2622; }
.tape__total span:last-child { border-bottom: 3px double currentColor; padding-bottom: 1px; }
.machine__body {
  position: relative; z-index: 2;
  min-height: 96px; margin-top: -10px;
  display: flex; align-items: center; gap: 12px;
  padding: 26px 16px 16px 20px;
  border-radius: var(--r-lg) var(--r-lg) 18px 18px;
  background: linear-gradient(180deg, #2b322f 0%, #1a1f1d 55%, #141816 100%);
  box-shadow: inset 0 1px 0 rgba(244, 248, 245, 0.09), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 34px 60px -30px rgba(10, 26, 20, 0.65);
}
.machine__slot {
  position: absolute; left: 20px; right: 20px; top: 11px; height: 6px; border-radius: 4px;
  background: #090c0b; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(244, 248, 245, 0.06);
}
.machine__led { width: 8px; height: 8px; border-radius: 50%; background: var(--tick); box-shadow: 0 0 10px 2px rgba(215, 57, 43, 0.5); flex: none; }
.machine__model { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; color: #8b9891; }
.machine__readout {
  margin-left: auto; display: grid; gap: 1px; justify-items: end;
  padding: 7px 11px 6px; border-radius: var(--r-sm);
  background: #0b1712; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(244, 248, 245, 0.05);
  font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--mint);
}
.machine__readout-label { font-size: 0.56rem; letter-spacing: 0.22em; color: #5f8572; }
.machine__readout [data-machine-clock] { font-size: 1.12rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.1; }
.machine__key {
  flex: none; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: linear-gradient(180deg, #e9ece6, #cfd4cc);
  box-shadow: inset 0 1px 0 rgba(244, 248, 245, 0.9), 0 3px 0 #8d958e, 0 6px 12px -6px rgba(0, 0, 0, 0.6);
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #1d2622;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.machine__key:active, .machine__key.is-pressed { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(244, 248, 245, 0.9), 0 1px 0 #8d958e, 0 2px 6px -4px rgba(0, 0, 0, 0.6); }
.machine__key[disabled] { cursor: progress; opacity: 0.75; }
.machine__key:focus-visible { outline-color: var(--mint); }
.machine__caption { margin-top: 16px; padding-inline: 4px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* ---------- Records band ---------- */
.records { padding: 22px 0; border-block: 1px solid var(--rule); background: var(--ledger-hi); }
.records__inner { display: flex; align-items: baseline; gap: 12px 28px; }
.records__label { flex: none; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyeshade); }
.records__list { display: flex; flex-wrap: wrap; gap: 6px 0; }
.records__list li {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
/* The separator trails its item, so a wrapped line always starts with a record name, never a slash. */
.records__list li:not(:last-child)::after { content: '/'; content: '/' / ''; padding-inline: 12px; color: var(--rule-strong); }
.records__plural { text-transform: none; }

/* ---------- Emergencies ---------- */
/* One column template for every row: the action column has a fixed width (the longest action label fits),
   so the description column starts at the same x and keeps the same width in every row. */
.cases { --case-cta: 12rem; border-top: 1px solid var(--rule-strong); }
.case__link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 104px minmax(0, 1.2fr) minmax(0, 1fr) var(--case-cta); gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: 30px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
  transition: color 280ms var(--ease-out);
}
.case__link::before {
  content: ''; position: absolute; inset: -1px 0; z-index: -1;
  background: var(--eyeshade);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 420ms var(--ease-spring);
}
.case__link:focus-visible { outline-offset: -2px; }
.case__tag { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 280ms var(--ease-out); }
.case__title { font-size: clamp(1.35rem, 2.1vw, 1.95rem); font-weight: 620; font-stretch: 108%; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
.case__desc { font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); transition: color 280ms var(--ease-out); }
.case__cta {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; justify-self: end;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyeshade);
  transition: color 280ms var(--ease-out);
}
.case__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-spring); }
.case__link:focus-visible { color: var(--paper-white); }
.case__link:focus-visible::before { transform: scaleY(1); }
.case__link:focus-visible .case__tag, .case__link:focus-visible .case__cta { color: var(--mint); }
.case__link:focus-visible .case__desc { color: #c5d5cb; }
@media (hover: hover) {
  .case__link:hover { color: var(--paper-white); }
  .case__link:hover::before { transform: scaleY(1); }
  .case__link:hover .case__tag, .case__link:hover .case__cta { color: var(--mint); }
  .case__link:hover .case__desc { color: #c5d5cb; }
  .case__link:hover .case__cta svg { transform: translateX(5px); }
}

/* ---------- 24-hour schedule ---------- */
.schedule { background: var(--ledger-hi); border-top: 1px solid var(--rule); }
.schedule__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); }
.schedule__sticky { position: sticky; top: 112px; }
.dial { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--rule); }
.dial__label { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dial__time {
  margin-top: 6px;
  font-size: clamp(4.5rem, 8.4vw, 8.4rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.95;
  font-variant-numeric: tabular-nums; color: var(--eyeshade);
}
.dial__ruler {
  position: relative; margin-top: 22px; height: 30px; overflow: hidden; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px calc(100% / 24)) 0 100% / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--eyeshade) 0 1.5px, transparent 1.5px calc(100% / 4)) 0 100% / 100% 22px no-repeat;
  box-shadow: inset 0 -1px 0 var(--rule-strong);
}
.dial__fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 59, 46, 0.02), rgba(13, 59, 46, 0.12)); transform: translateX(-100%); }
.dial__fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--tick); }
.dial__scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.dial__stage { margin-top: 24px; min-height: 2.6em; font-size: 1.28rem; font-weight: 600; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.25; }
.step { padding: 44px 0 46px; border-top: 1px solid var(--rule); }
.step__title, .step__body, .step__who { transition: color 400ms var(--ease-out); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__time { font-family: var(--mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.step__title { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 630; font-stretch: 108%; letter-spacing: -0.024em; line-height: 1.1; }
.step__body { margin-top: 14px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.step__who { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyeshade); }
.step__who::before { content: ''; width: 7px; height: 7px; background: var(--eyeshade); border-radius: 1px; }
@media (min-width: 981px) {
  .is-animated .step:not(.is-active) .step__title,
  .is-animated .step:not(.is-active) .step__body,
  .is-animated .step:not(.is-active) .step__who { color: var(--muted); }
  .is-animated .step:not(.is-active) .step__who::before { background: var(--rule-strong); }
  .is-animated .step.is-active .step__time { color: var(--eyeshade); }
}

/* ---------- Engine room ---------- */
.engine {
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(50, 132, 96, 0.18), transparent 70%),
    var(--night);
  color: var(--on-night);
  overflow: clip;
}
.engine .section__lede { color: var(--on-night-muted); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.card {
  min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 38px); border-radius: var(--r-lg);
  background: var(--night-card);
  box-shadow: inset 0 0 0 1px rgba(214, 232, 220, 0.09), inset 0 1px 0 rgba(244, 248, 245, 0.05);
}
.card--team { grid-column: span 7; grid-row: span 2; justify-content: space-between; }
.card--parallel { grid-column: span 5; }
.card--system { grid-column: span 5; }
.card--team .card__title--xl { font-size: clamp(1.6rem, 2.6vw, 2.35rem); letter-spacing: -0.025em; line-height: 1.08; max-width: 14em; }
.card--team .bench { max-width: 380px; margin: 18px 0 8px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { padding: 9px 13px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(168, 226, 192, 0.35); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.card__title { font-size: clamp(1.22rem, 1.6vw, 1.5rem); font-weight: 620; font-stretch: 108%; letter-spacing: -0.018em; line-height: 1.2; color: var(--on-night); }
.card__body { max-width: 36em; font-size: 0.98rem; line-height: 1.6; color: var(--on-night-muted); }
.card__note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #86a394; }

.flow { margin-block: auto; padding-top: 28px; width: 100%; height: auto; overflow: visible; }
.flow__rail { fill: none; stroke: rgba(214, 232, 220, 0.14); stroke-width: 2; }
.flow__run { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 22; opacity: 0; }
.flow__run--branch { stroke: #ff8a75; }
.flow.is-running .flow__run { opacity: 1; animation: flow 1.5s linear infinite; }
.flow.is-running .flow__run--branch { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.flow__node circle { fill: #0c1f18; stroke: rgba(214, 232, 220, 0.4); stroke-width: 1.5; }
.flow.is-running .flow__node circle { animation: node 4.5s var(--ease-out) infinite; }
.flow.is-running .flow__node:nth-of-type(2) circle { animation-delay: 0.6s; }
.flow.is-running .flow__node:nth-of-type(3) circle { animation-delay: 1.2s; }
.flow.is-running .flow__node:nth-of-type(4) circle { animation-delay: 1.8s; }
.flow.is-running .flow__node:nth-of-type(5) circle { animation-delay: 2.4s; }
.flow__node--out circle { fill: rgba(168, 226, 192, 0.16); stroke: var(--mint); }
.flow .flow__node--human circle { stroke: #ff8a75; fill: rgba(255, 138, 117, 0.12); animation: none; }
.flow__node text { fill: var(--on-night-muted); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-anchor: middle; }
.flow__node--human text { fill: #ffb3a5; font-size: 11px; }
@keyframes node { 0%, 100% { stroke: rgba(214, 232, 220, 0.4); } 12% { stroke: var(--mint); } 30% { stroke: rgba(214, 232, 220, 0.4); } }
.flow-list { display: none; margin-top: 10px; }
.flow-list li {
  position: relative; padding: 0 0 18px 30px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-muted);
}
.flow-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(214, 232, 220, 0.4); background: #0c1f18; }
.flow-list li::after { content: ''; position: absolute; left: 6.5px; top: 18px; bottom: 2px; width: 1px; background: rgba(214, 232, 220, 0.18); }
.flow-list li:last-child { padding-bottom: 0; }
.flow-list li:last-child::after { display: none; }
.flow-list__human { color: #ffb3a5 !important; }
.flow-list__human::before { box-shadow: inset 0 0 0 1.5px #ff8a75 !important; }
.flow-list__out { color: var(--mint) !important; }
.flow-list__out::before { background: rgba(168, 226, 192, 0.2) !important; box-shadow: inset 0 0 0 1.5px var(--mint) !important; }

.bench { width: 100%; max-width: 250px; height: auto; margin-bottom: 8px; }
.bench__tick { fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.trail { margin-top: 6px; border-top: 1px dashed var(--night-rule); }
.trail li {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--night-rule);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: #cfdcd3;
}
.trail li span:first-child { color: #7f998b; }
.trail__ok { color: var(--mint); font-weight: 600; }

.lanes { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.lanes__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7f998b; }
.lanes__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.lanes__row i { position: relative; height: 22px; border-radius: 3px; overflow: hidden; background: rgba(214, 232, 220, 0.08); }
.lanes__row i::after { content: ''; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; }
.lanes__row--serial i::after { background: rgba(214, 232, 220, 0.45); }
.lanes__row--parallel i::after { background: var(--mint); }
.lanes.is-running .lanes__row--serial i::after { animation: lane-fill 380ms var(--ease-out) both; }
.lanes.is-running .lanes__row--parallel i::after { animation: lane-fill 900ms var(--ease-out) 150ms both; }
.lanes__row--serial i:nth-child(2)::after { animation-delay: 0.38s !important; }
.lanes__row--serial i:nth-child(3)::after { animation-delay: 0.76s !important; }
.lanes__row--serial i:nth-child(4)::after { animation-delay: 1.14s !important; }
.lanes__row--serial i:nth-child(5)::after { animation-delay: 1.52s !important; }
.lanes__row--serial i:nth-child(6)::after { animation-delay: 1.9s !important; }
.lanes__row--serial i:nth-child(7)::after { animation-delay: 2.28s !important; }
.lanes__row--serial i:nth-child(8)::after { animation-delay: 2.66s !important; }
.lanes__row--serial i:nth-child(9)::after { animation-delay: 3.04s !important; }
.lanes__row--serial i:nth-child(10)::after { animation-delay: 3.42s !important; }
.lanes__row--serial i:nth-child(11)::after { animation-delay: 3.8s !important; }
.lanes__row--serial i:nth-child(12)::after { animation-delay: 4.18s !important; }
@keyframes lane-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.systems { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.systems li {
  padding: 9px 13px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(214, 232, 220, 0.2);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d6e3da;
}

/* ---------- Deliverables ---------- */
.deliverables { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.deliverables .section__head { position: sticky; top: 112px; margin-bottom: 0; }
.index { border-top: 2px solid var(--ink); }
.index__row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: clamp(14px, 2.2vw, 28px); align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.index__ref {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--eyeshade);
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--eyeshade);
}
.index__title { font-size: clamp(1.1rem, 1.55vw, 1.36rem); font-weight: 610; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.25; }
.index__body { font-size: 0.96rem; color: var(--ink-2); line-height: 1.55; }
.index__tick { width: 40px; height: 32px; }
.index__tick path { fill: none; stroke: var(--tick); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Comparison ledger ---------- */
.compare { background: var(--ledger-hi); border-block: 1px solid var(--rule); }
.ledger__table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border-radius: var(--r-lg); background: var(--tape);
  box-shadow: inset 0 0 0 1px var(--rule), 0 40px 80px -60px rgba(13, 59, 46, 0.45);
}
.ledger__table th, .ledger__table td { padding: 24px clamp(18px, 2.4vw, 32px); text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.ledger__table tbody tr:last-child th, .ledger__table tbody tr:last-child td { border-bottom: 0; }
.ledger__table thead th { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-block: 20px; }
.ledger__table thead th:last-child { color: var(--eyeshade); }
.ledger__table tbody th { width: 28%; font-weight: 610; font-stretch: 104%; }
.ledger__table td { color: var(--ink-2); border-left: 1px solid var(--rule); }
.ledger__table td:last-child, .ledger__table thead th:last-child { background: rgba(13, 59, 46, 0.045); }
.ledger__table td:last-child { color: var(--eyeshade); font-weight: 580; }

/* ---------- Commitments ---------- */
.manifesto {
  max-width: 23em;
  font-size: clamp(1.65rem, 3.3vw, 3rem); font-weight: 540; font-stretch: 106%; letter-spacing: -0.024em; line-height: 1.2;
  text-wrap: pretty;
}
.manifesto .word { display: inline-block; }
.pledges { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.pledge { padding: 28px clamp(16px, 2vw, 28px) 0 0; }
.pledge + .pledge { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.pledge h3 { font-size: 1.1rem; font-weight: 630; font-stretch: 106%; letter-spacing: -0.01em; }
.pledge p { margin-top: 10px; font-size: 0.96rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__grid .section__head { margin-bottom: 0; }
.faq__list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 26px 56px 26px 0;
  font-size: clamp(1.08rem, 1.45vw, 1.26rem); font-weight: 590; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
/* The square box (::before) stays put; only the plus glyph (::after) turns into a cross. */
.qa summary::before, .qa summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: var(--r-sm);
}
.qa summary::before { box-shadow: inset 0 0 0 1px var(--rule-strong); transition: background-color var(--fast) var(--ease-out); }
.qa summary::after {
  background:
    linear-gradient(var(--eyeshade), var(--eyeshade)) 50% 50% / 12px 1.6px no-repeat,
    linear-gradient(var(--eyeshade), var(--eyeshade)) 50% 50% / 1.6px 12px no-repeat;
  transition: transform 360ms var(--ease-spring);
}
.qa[open] summary::before { background-color: rgba(13, 59, 46, 0.06); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__body { padding: 0 56px 28px 0; max-width: 42em; color: var(--ink-2); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
@media (hover: hover) { .qa summary:hover::before { background-color: rgba(13, 59, 46, 0.06); } }

/* ---------- Intake ---------- */
.intake { background: var(--ledger-hi); border-top: 1px solid var(--rule); }
.intake__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.intake__main { min-width: 0; }
.form { display: grid; gap: 32px; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice__legend { padding: 0; margin-bottom: 14px; font-size: 1.04rem; font-weight: 620; font-stretch: 104%; }
.req { margin-left: 8px; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tick-ink); vertical-align: 2px; }
.choice__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; max-width: 100%; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--tape); box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: 0.95rem; font-weight: 500; line-height: 1.25; color: var(--ink);
  transition: background-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
  pointer-events: none;
}
.chip--urgent span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tick); flex: none; }
.chip input:checked + span { background: var(--eyeshade); color: var(--paper-white); box-shadow: inset 0 0 0 1px var(--eyeshade); }
.chip--urgent input:checked + span { background: var(--tick-ink); box-shadow: inset 0 0 0 1px var(--tick-ink); }
.chip--urgent input:checked + span::before { background: var(--paper-white); }
.chip input:focus-visible + span { outline: 2px solid var(--eyeshade); outline-offset: 2px; }
.choice[data-invalid] .chip span { box-shadow: inset 0 0 0 1.5px var(--tick-ink); }
@media (hover: hover) { .chip:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px var(--eyeshade); } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { min-width: 0; }
.field__label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 580; }
.field__optional { margin-left: 6px; font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.field__input {
  width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--tape);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field__input:focus { outline: 2px solid var(--eyeshade); outline-offset: 1px; border-color: var(--eyeshade); }
.field__input[aria-invalid='true'] { border-color: var(--tick-ink); box-shadow: inset 0 0 0 1px var(--tick-ink); }
.field__input--area { min-height: 132px; resize: vertical; }
@media (hover: hover) { .field__input:hover { border-color: var(--eyeshade); } }
.field__hint { margin-top: 8px; font-size: 0.84rem; color: var(--muted); }
.field__error { margin-top: 7px; font-size: 0.86rem; font-weight: 500; color: var(--tick-ink); }
.field__error:empty { display: none; }
.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more__toggle {
  position: relative;
  display: flex; align-items: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none;
  font-weight: 600; font-stretch: 104%;
}
.more__toggle::-webkit-details-marker { display: none; }
/* Same pattern as the FAQ: a fixed square box, and a plus glyph laid over it that turns. */
.more__toggle::before { content: ''; width: 22px; height: 22px; flex: none; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.more__toggle::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--eyeshade), var(--eyeshade)) 50% 50% / 10px 1.6px no-repeat,
    linear-gradient(var(--eyeshade), var(--eyeshade)) 50% 50% / 1.6px 10px no-repeat;
  transition: transform 360ms var(--ease-spring);
}
.more[open] .more__toggle::after { transform: rotate(45deg); }
.more__body { display: grid; gap: 28px; padding: 6px 0 28px; }
.more::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
.more[open]::details-content { block-size: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; align-items: start; font-size: 0.95rem; color: var(--ink-2); }
.consent input {
  width: 22px; height: 22px; margin: 2px 0 0; border-radius: 5px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--rule-strong); background: var(--tape);
}
.consent input:checked {
  border-color: var(--eyeshade);
  background: var(--eyeshade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%23f4f8f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.consent input[aria-invalid='true'] { border-color: var(--tick-ink); box-shadow: inset 0 0 0 1px var(--tick-ink); }
.consent label { cursor: pointer; }
.consent a { color: var(--eyeshade); text-underline-offset: 3px; }
.consent .field__error { grid-column: 2; margin-top: 0; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__fine { font-size: 0.86rem; color: var(--muted); }
.form__status { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(180, 35, 24, 0.07); box-shadow: inset 3px 0 0 var(--tick-ink); color: var(--tick-ink); font-weight: 500; font-size: 0.95rem; }
.form__status:empty { display: none; }
.form__status:focus { outline: none; }

.receipt {
  position: relative; max-width: 440px; margin-top: 8px;
  padding: 30px 26px 34px;
  background:
    linear-gradient(90deg, rgba(20, 40, 30, 0.05), transparent 9%, transparent 91%, rgba(20, 40, 30, 0.05)),
    var(--tape);
  box-shadow: 0 40px 70px -44px rgba(13, 59, 46, 0.55);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: #27312c;
}
.receipt::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background:
    linear-gradient(135deg, var(--tape) 50%, transparent 50%) 0 0 / 10px 8px repeat-x,
    linear-gradient(-135deg, var(--tape) 50%, transparent 50%) 0 0 / 10px 8px repeat-x;
}
.receipt__brand { text-align: center; font-weight: 600; letter-spacing: 0.14em; padding-bottom: 12px; border-bottom: 1px dashed rgba(39, 49, 44, 0.35); }
.receipt__title { margin-top: 20px; font-family: var(--font); text-transform: none; font-size: 1.9rem; font-weight: 650; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.1; color: var(--eyeshade); }
.receipt__title:focus { outline: none; }
.receipt__lines { margin-top: 18px; display: grid; gap: 6px; }
.receipt__lines div { display: flex; justify-content: space-between; gap: 16px; }
.receipt__lines dt { color: #6a766f; }
.receipt__lines dd { font-weight: 600; text-align: right; }
.receipt__lines dd.is-urgent { color: var(--tick-ink); }
.receipt__body { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(39, 49, 44, 0.35); font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); }
.receipt__total { margin-top: 16px; display: flex; justify-content: space-between; font-weight: 600; }
.receipt__total span:last-child { border-bottom: 3px double currentColor; }

.intake__aside { display: grid; gap: 14px; position: sticky; top: 104px; }
.next { padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--tape); box-shadow: inset 0 0 0 1px var(--rule), 0 30px 60px -50px rgba(13, 59, 46, 0.5); }
.next__title { font-size: 1.12rem; font-weight: 640; font-stretch: 106%; }
.next__list { margin-top: 18px; display: grid; gap: 18px; }
.next__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.next__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--eyeshade); font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--eyeshade); }
.next__list h4 { font-size: 0.98rem; font-weight: 620; }
.next__list p { margin-top: 3px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.office { padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--eyeshade); color: #e8f1eb; }
.office__label { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.office__address { margin-top: 12px; font-size: 1.26rem; font-weight: 580; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.35; }
.office__time { margin-top: 14px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: #b9d0c2; }
.office__time time:empty::after { content: 'Pacific Time'; }
.office__link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 16px; border-radius: var(--r-sm); background: rgba(244, 248, 245, 0.1);
  font-size: 0.9rem; font-weight: 580; text-decoration: none; color: var(--paper-white);
  transition: background-color var(--fast) var(--ease-out);
}
.office__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .office__link:hover { background: rgba(244, 248, 245, 0.18); } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night); padding-top: clamp(80px, 10vw, 128px); overflow: clip; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.footer__kicker { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 630; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 28px; max-width: 12em; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 36px; align-content: start; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; color: var(--on-night-muted); text-decoration: none; transition: color var(--fast) var(--ease-out); }
.footer__address { font-size: 0.95rem; line-height: 1.6; color: var(--on-night-muted); }
.footer__word {
  margin-top: clamp(56px, 8vw, 104px);
  font-size: clamp(3rem, 13.6vw, 17rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.045em; line-height: 0.78;
  text-align: center; white-space: nowrap; color: #12291f;
  user-select: none;
}
.footer__legal { display: grid; gap: 14px; padding: 30px 0 40px; border-top: 1px solid var(--night-rule); font-size: 0.8rem; line-height: 1.6; color: #8aa196; }
.footer__legal p:first-child { max-width: 72em; }
@media (hover: hover) { .footer__nav a:hover { color: var(--paper-white); } }

/* ---------- Legal and utility pages ---------- */
.doc { max-width: 780px; margin-inline: auto; padding: clamp(128px, 16vh, 168px) var(--gutter) clamp(80px, 10vw, 120px); }
.doc__kicker { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.doc h1 { margin-top: 14px; font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 650; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.doc__meta { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.doc h2 { margin-top: 48px; font-size: 1.3rem; font-weight: 630; font-stretch: 106%; letter-spacing: -0.012em; }
.doc p, .doc li { margin-top: 14px; color: var(--ink-2); }
.doc ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.doc li { margin-top: 8px; }
/* Text links only: buttons inside a document keep their own colours (:where keeps this rule at 0,1,1). */
.doc a:where(:not(.btn)) { color: var(--eyeshade); text-underline-offset: 3px; }
.doc__back { margin-top: 56px; }
.nav--doc .nav__links { visibility: hidden; }
.nav--doc .nav__cta { margin-left: auto; }
.footer--doc { padding-top: 8px; }
.footer--doc .footer__legal { border-top: 0; }
/* A short document still puts its footer at the bottom of the window. */
body:has(> main.doc) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(> main.doc) > main.doc { flex: 1 0 auto; width: 100%; }
.footer__legal a { color: var(--on-night); text-underline-offset: 3px; }
.nav--doc .nav__toggle { display: none !important; }
.lost { min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter); text-align: center; }
.lost__code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--eyeshade); }
.lost h1 { margin-top: 18px; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 640; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.lost p { margin: 14px auto 0; max-width: 30em; color: var(--ink-2); }
.lost .btn { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-height: 820px) and (min-width: 981px) {
  .machine__paper { height: 380px; }
  .hero__title { font-size: clamp(2.35rem, 5vw, 4.9rem); }
}
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__ask { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 1180px) {
  .nav__toggle { display: inline-flex; }
  .card--team { grid-column: span 12; grid-row: span 1; }
  .card--parallel, .card--system { grid-column: span 6; }
  .case__link { grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); }
  .case__cta { grid-column: 2; justify-self: start; }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 112px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .machine { justify-self: start; max-width: 400px; }
  .schedule__grid, .deliverables, .faq__grid, .intake__grid, .section__head--split { grid-template-columns: minmax(0, 1fr); }
  .schedule__sticky, .deliverables .section__head, .intake__aside { position: static; }
  .deliverables .section__head, .faq__grid .section__head { margin-bottom: 8px; }
  .dial { display: none; }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledge:nth-child(3) { padding-left: 0; border-left: 0; }
  .pledge:nth-child(n + 3) { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--rule); }
  .records__inner { flex-direction: column; gap: 10px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__cta { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav__cta { display: none; }
  .nav__kbd, .nav__call { display: none; }
  .nav__ask { margin-left: auto; padding: 0; width: 44px; justify-content: center; }
  .nav__toggle { margin-left: 8px; }
  .hero__title { font-stretch: 100%; letter-spacing: -0.035em; font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: space-between; }
  .hero__actions .text-link { justify-content: center; }
  .hero__proof { gap: 10px 22px; }
  .machine { max-width: none; }
  .machine__paper { height: 380px; }
  .tape { left: 18px; right: 18px; }
  .machine__model { display: none; }
  .case__link { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 4px; }
  .case__cta { grid-column: auto; margin-top: 6px; }
  .card--parallel, .card--system { grid-column: span 12; }
  .flow { display: none; }
  .flow-list { display: block; }
  .records__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .records__list li:not(:last-child)::after { content: none; }
  .index__row { grid-template-columns: 44px minmax(0, 1fr) 32px; row-gap: 6px; }
  .index__ref { width: 38px; height: 38px; font-size: 0.85rem; }
  .index__body { grid-column: 2 / 3; grid-row: 2; }
  .index__tick { grid-column: 3; grid-row: 1; width: 30px; height: 24px; }
  .ledger__table, .ledger__table tbody, .ledger__table tr, .ledger__table th, .ledger__table td { display: block; width: 100%; }
  .ledger__table thead { display: none; }
  .ledger__table tbody tr { padding: 20px 20px 18px; border-bottom: 1px solid var(--rule); }
  .ledger__table tbody tr:last-child { border-bottom: 0; }
  .ledger__table tbody th { width: 100%; padding: 0 0 10px; border: 0; }
  .ledger__table td { padding: 8px 0 8px 14px; border: 0; border-left: 2px solid var(--rule); }
  .ledger__table td:last-child { margin-top: 8px; background: none; border-left-color: var(--eyeshade); }
  .ledger__table td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .pledge, .pledge + .pledge, .pledge:nth-child(n + 3) { padding: 24px 0 0; margin-top: 24px; border-left: 0; border-top: 1px solid var(--rule); }
  .pledge:first-child { margin-top: 0; border-top: 0; }
  .qa summary { padding-right: 48px; }
  .qa__body { padding-right: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form__submit .btn { width: 100%; justify-content: space-between; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .flow__run { opacity: 1; }
  .lanes__row i::after { transform: scaleX(1); }
}
@media print {
  .nav, .menu, .machine, .footer__word, body::after { display: none !important; }
  .engine, .footer { background: var(--tape); color: var(--ink); }
}
@media (pointer: coarse) { .nav__kbd { display: none; } }
/* Narrow phones (360 px and below are common): tighter header spacing so the menu button stays inside the bar. */
@media (max-width: 400px) {
  .nav__bar { gap: 8px; padding-left: 12px; }
  .nav__toggle { margin-left: 4px; padding: 0 12px; gap: 8px; }
}
/* The smallest phones show the menu bars only; the label stays as the button's accessible name. */
@media (max-width: 339px) {
  .nav__toggle { width: 44px; padding: 0; justify-content: center; }
  .nav__toggle [data-menu-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
