/* Antloom — "The Ledger"
   A precise, high contrast instrument on white. One dominant neutral (deep
   teal ink on pure white), one intentional accent (teal), bold 2px ink rules
   between sections, outlined drafting numerals, 4px radii page-wide. The
   signature element stays: the severed wire under the hero (.airgap-mark),
   a live teal line cut off from a dead one — the air gap, drawn literally.

   Measured contrast (WCAG, computed 2026-09-01):
     #0A2723 on #FFFFFF  15.82:1   ink on page (body text)
     #0A2723 on #F2F5F4  14.42:1   ink on tint wells
     #4A625D on #FFFFFF   6.57:1   mid on page (secondary)
     #4A625D on #F2F5F4   5.99:1   mid on tint
     #0E6B57 on #FFFFFF   6.44:1   teal small text on page
     #0E6B57 on #F2F5F4   5.87:1   teal small text on tint
     #0A4F41 on #FFFFFF   9.51:1   teal-deep hover text on page
     #B54708 on #FFFFFF   5.43:1   signal flags on page
     #FFFFFF on #0E6B57   6.44:1   white text on teal buttons
     #FFFFFF on #0A4F41   9.51:1   white text on teal-deep (button hover)
     #FFFFFF on #0A2723  15.82:1   white text on ink (ghost button hover) */

/* IBM Plex Sans + IBM Plex Mono (SIL Open Font License 1.1 — see
   fonts/OFL-ibm-plex.txt) and Bricolage Grotesque (SIL Open Font License 1.1
   — see fonts/OFL-bricolage-grotesque.txt). Self-hosted latin-subset woff2
   (Fontsource builds); no external request at runtime. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #FFFFFF;          /* page ground */
  --tint: #F2F5F4;          /* panel wells, alternate surfaces */
  --ink: #0A2723;           /* deep teal ink — all body text and dark art */
  --mid: #4A625D;           /* secondary text */
  --line: #D8E0DD;          /* hairlines */
  --teal: #0E6B57;          /* THE accent: links, eyebrows, numbers, active states */
  --teal-deep: #0A4F41;     /* hover */
  --signal: #B54708;        /* flags / warnings */
  --ok: #0E6B57;            /* calm / ok states share the teal */

  --display: "Bricolage Grotesque", "IBM Plex Sans", "Helvetica Neue", system-ui, Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", "Consolas", monospace;

  --shell: 1360px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Pseudo-elements carry motion too: bare * does not match them, so they
     are named explicitly. */
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

::selection { background: var(--teal); color: #FFFFFF; }

a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

/* ---------- shell / sections ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* Bold ledger rules: every section seam is a full-width 2px ink stroke —
   the signature of the instrument. Hairlines inside sections stay 1px. */
section { position: relative; border-top: 2px solid var(--ink); }
section.no-rule { border-top: 0; }
section > .shell {
  position: relative; /* stacks section content above the ghost numeral */
  z-index: 1;
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: clamp(90px, 12vw, 150px);
}
/* Deliberate pacing: uniform vertical rhythm is the machine tell. */
#problem > .shell { padding-top: 70px; }
#product > .shell { padding-top: clamp(110px, 13vw, 160px); }
#everyone > .shell { padding-top: 70px; padding-bottom: clamp(70px, 9vw, 110px); }
#contact > .shell { padding-top: clamp(130px, 14vw, 190px); }

/* ---------- outlined numerals (the ledger's wayfinding rhythm) ----------
   Giant mono figures behind each numbered section: hairline outline, no
   fill — a drafting-table trace. Pure decoration: aria-hidden, no pointer
   events, always visible (no JS involved). */
.ghost-host { overflow: hidden; }
.ghost-num {
  position: absolute;
  z-index: 0;
  top: -0.06em;
  font-family: var(--mono);
  font-size: clamp(120px, 14vw, 210px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
}
#problem .ghost-num { left: 2vw; }
#insight .ghost-num { left: 2vw; }
#product .ghost-num { left: 2vw; }
#deploy .ghost-num { left: 2vw; }
#everyone .ghost-num { left: 2vw; }

/* ---------- topbar ---------- */

.topbar {
  background: var(--page);
  border-bottom: 2px solid var(--ink);
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.brand svg { display: block; }
/* The brand mark and footer A-ant carry their final ink-on-white colors
   directly in the markup — no attribute-selector re-inks here, one source
   of truth. */
.topmail { text-decoration: none; color: var(--mid); transition: color 0.15s ease; }
.topmail:hover { color: var(--teal-deep); }

/* ---------- hero ---------- */

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 62rem;
}
.slogan {
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.slogan span { display: block; }
.slogan .accent { color: var(--teal); }
.slogan .setup {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mid);
  margin-bottom: 0.55em;
}
.one-liner {
  color: var(--mid);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 36em;
}

/* THE SIGNATURE: the severed wire. A live teal line ends in a solid
   terminal; a literal gap holds the label; a dead hairline starts at a
   hollow terminal. A cut connection, drawn as one. */
.airgap-mark {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 34px 0;
}
.airgap-mark .wire {
  position: relative;
  flex: 1 1 0;
  height: 2px;
}
.live-wire { background: var(--teal); }
.live-wire::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--teal);
}
.dead-wire { background: var(--line); }
.dead-wire::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--line);
  background: transparent;
}
.gap-label {
  flex: 0 0 auto;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  border-radius: 4px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid {
  background: var(--teal);
  color: #FFFFFF;
  border: 1.5px solid var(--teal);
}
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-arrow { display: inline-block; margin-left: 4px; }

/* ---------- eyebrows / titles / leads (shared section voice) ---------- */

.ag-eyebrow, .planet-eyebrow, .con-tag, #contact .lead {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.ag-eyebrow { margin-bottom: 16px; }

/* ---------- pen annotations (.anno) and rubber stamps (.stamp) ----------
   Contract with effects.js: idle classes are "anno" / "stamp"; the script's
   IntersectionObserver adds "drawn" / "stamped". Default state (no JS, or
   reduced motion) is the FINAL, fully visible state — the pre-animation
   hidden state exists only under html.js + motion allowed, exactly like the
   .reveal system below. */
.circled, .underlined { position: relative; display: inline-block; }
.anno { position: absolute; pointer-events: none; overflow: visible; }
.anno path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anno-circle {
  top: -0.16em;
  left: -0.32em;
  width: calc(100% + 0.64em);
  height: calc(100% + 0.32em);
}
.anno-circle path { stroke-width: 3; }
.anno-line { left: 0; bottom: -0.26em; width: 100%; height: 0.42em; }
.anno-line path { stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  /* pathLength="1" in the markup: dashoffset 1 parks the whole stroke in
     the gap (fully hidden, no cap dots); 0 is fully drawn. */
  html.js .anno path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.7s ease-out;
  }
  html.js .anno.drawn path { stroke-dashoffset: 0; }
}

.stamp {
  position: absolute;
  right: 6px;
  top: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  padding: 3px 7px;
  transform: translateY(-50%) rotate(var(--rot, -3deg));
}
@media (prefers-reduced-motion: no-preference) {
  html.js .stamp {
    opacity: 0;
    transform: translateY(-50%) rotate(var(--rot, -3deg)) scale(1.6);
    transition:
      transform 0.28s cubic-bezier(0.2, 1.4, 0.4, 1),
      opacity 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  html.js .stamp.stamped {
    opacity: 1;
    transform: translateY(-50%) rotate(var(--rot, -3deg)) scale(1);
  }
}
/* Quiet mono topbar navigation (minimalist-authority school). */
.top-nav { display: flex; gap: 26px; margin-left: auto; margin-right: 40px; }
.top-nav a { color: var(--mid); text-decoration: none; font-size: 12px; letter-spacing: 0.14em; transition: color 0.15s ease; }
.top-nav a:hover { color: var(--teal-deep); }
@media (max-width: 900px) { .top-nav { display: none; } }
.ag-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 26ch;
}
.ag-lead { color: var(--mid); font-size: 19px; line-height: 1.6; max-width: 56ch; margin-bottom: 26px; }
.ag-note { color: var(--mid); font-size: 16px; margin-top: 30px; max-width: 62ch; }
.ag-compliance { color: var(--mid); font-size: 16px; max-width: 62ch; margin-bottom: 44px; }

/* ---------- 01 THE PROBLEM: pull quote spread ---------- */

.pull-quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
  border-left: 4px solid var(--ink);
  padding-left: clamp(18px, 2vw, 30px);
  margin-bottom: 44px;
}
#problem .ag-title {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  margin-bottom: 26px;
  max-width: 40ch;
}
.tri-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 8px; }
.tri { max-width: 26ch; }
.tri-ref { color: var(--teal); font-size: 12px; letter-spacing: 0.14em; margin-bottom: 10px; }
.tri h3 { color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.tri p { color: var(--mid); font-size: 16px; line-height: 1.6; }
@media (min-width: 1100px) {
  .problem-spread {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr); /* trio starts at 40% with the 5% gutter */
    column-gap: 5%;
    align-items: start;
  }
  .pull-quote { margin-bottom: 0; }
  .tri-row { gap: 26px; }
  /* Staggered baselines: each bind drops further than the last. */
  .tri-row .tri:nth-child(2) { margin-top: 64px; }
  .tri-row .tri:nth-child(3) { margin-top: 128px; }
}

/* ---------- 02 THE INSIGHT: race card left, text right ---------- */

.insight-pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 26px;
}
@media (min-width: 1101px) {
  /* Flip the split: the card leads, the argument annotates it. DOM keeps
     text first for the stacked mobile reading order. */
  #insight .split > div:first-child { grid-column: 2; grid-row: 1; }
  #insight .split > .net-card { grid-column: 1; grid-row: 1; }
}

/* ---------- product contrast cards ---------- */

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 6px 0 26px; }
.con-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
}
.con-card p { color: var(--mid); font-size: 16px; line-height: 1.6; }
.con-card strong { color: var(--ink); }
.con-card p.con-tag { margin-bottom: 10px; font-size: 12px; letter-spacing: 0.16em; color: var(--teal); }
.con-us { border-color: var(--teal); }

/* ---------- chips / the pipeline row ---------- */

.plain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--mid);
}
.pipe { margin-bottom: 6px; }
.pipe li:nth-child(even) { color: var(--teal); }
.ag-chips { margin-bottom: 26px; }

/* ---------- the app catalog (tabs / groups / rows) ---------- */

/* Degradation law: with no script the tab row is hidden and every category
   group is visible under its plain mono heading — the block is complete and
   static. effects.js adds .tabs-live on #ag-apps, which shows the tab row,
   hides the headings and collapses to the active group only. */
.ag-tabs { display: none; }
.tabs-live .ag-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--ink); border-color: rgba(14, 107, 87, 0.6); } /* teal at 60% */
.tab[aria-selected="true"] {
  color: var(--teal);
  border-color: var(--teal);
}
.ag-cat {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 22px 0 4px;
}
.ag-group + .ag-group { margin-top: 10px; }
.tabs-live .ag-cat { display: none; }
.tabs-live .ag-group { display: none; }
.tabs-live .ag-group + .ag-group { margin-top: 0; }
.tabs-live .ag-group.active { display: block; }
.ag-row { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.ag-row h4 { color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ag-row p { color: var(--mid); font-size: 16px; margin-top: 6px; max-width: 62ch; }
.ag-row h4 + p { margin-top: 8px; }

#deploy .cta-row { margin-top: 30px; }

/* ---------- footnotes ---------- */

.planet-eyebrow { margin-bottom: 12px; }
.planet-foot { color: var(--mid); font-size: 19px; line-height: 1.6; max-width: 56ch; }
.foot-gap { margin-top: 30px; }
/* Two-column section splits: use the whole canvas on wide screens. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(44px, 5vw, 96px); align-items: start; }
.split-tight { gap: clamp(36px, 4vw, 72px); }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* The race, in the app windows' own language: three stacked layer bands
   (24 worker cells, 5 reviewer cells, one senior bar with thinking dots).
   IN SEQUENCE runs one 12s pass: a single BRIGHT cell travels left to
   right, each cell settling to a muted done tint behind it. DISTRIBUTED
   runs a 4s loop — three whole completed runs in the time the sequential
   lane needs for one — whole bands flashing together, the senior thinking
   the longest beat. At any instant the lanes differ: the top lane has one
   bright traveling cell, the bottom lane cycles entire runs. Resting and
   reduced motion state: every cell muted-lit, senior teal, tracks at
   final widths. */
.net-card { border: 1px solid var(--line); background: var(--tint); border-radius: 4px; padding: 24px 28px 20px; }
.bench-title { color: var(--mid); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11.5px; margin-bottom: 14px; }
.race { margin-bottom: 20px; }
.race-label { color: var(--ink); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.lane { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px 10px; background: var(--page); }
.lb { color: var(--mid); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 4px; }
.lb:first-child { margin-top: 0; }
.cells { display: flex; gap: 3px; }
.cells i, .cells b { display: block; height: 10px; flex: 1 1 0; border-radius: 2px; background: rgba(14, 107, 87, 0.35); }
.cells b { height: 14px; }
.senior { display: flex; align-items: center; gap: 6px; height: 20px; border-radius: 4px; background: var(--teal); padding: 0 10px; }
.senior .sd { width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; }
.senior em { font-style: normal; color: #FFFFFF; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-left: auto; }
.timetrack { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.timetrack .fill { display: block; height: 100%; background: var(--teal); border-radius: 2px; }
.fill-seq { width: 92%; }
.fill-par { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  /* SEQUENTIAL (12s, one pass): each cell flashes BRIGHT (--teal-deep) for
     its ~0.3s moment via its --i delay, then settles to the muted done
     tint; pending cells sit at --tint. Workers span 0 to 8.3s, reviewers
     27.7 to 34s, the senior thinks 34.4 to 38.6s then lights --teal; the
     bar creeps to 92% by 96.5%; the tail resets everything to --tint.
     40s vs the 4s distributed loop = TEN jobs below per one job here,
     matching the copy: about 30 seconds per agent, thirty in a row, is
     minutes; distributed is about half a minute per job. */
  .lane-seq .cw i { animation: cell-seq 40s linear infinite; animation-delay: calc(var(--i) * 1.12s); }
  .lane-seq .cr b { animation: cell-seq 40s linear infinite; animation-delay: calc(27.7s + var(--i) * 1.33s); }
  .lane-seq .senior { animation: senior-seq 40s linear infinite; }
  .lane-seq .sd { animation: sd-seq 40s linear infinite; animation-delay: calc(var(--i) * 0.5s); }
  .fill-seq { animation: bar-seq 40s linear infinite; }
  /* DISTRIBUTED (4s — TEN completed runs per sequential pass): all cells
     flash bright together, settle muted; reviewers follow; the senior goes
     --teal from 28% with dots blinking through 54% (its think is the
     longest beat); everything fades to --tint at the tail and the bar
     fills 0 to 100% by 72%, resetting at 96%. */
  /* No wave: a layer fires as ONE block — all 24 workers truly at once,
     then all 5 reviewers at once, then the senior. Layers, not ripples. */
  .lane-par .cw i { animation: cell-par 4s linear infinite; }
  .lane-par .cr b { animation: cell-par-r 4s linear infinite; }
  .lane-par .senior { animation: senior-par 4s linear infinite; }
  .lane-par .sd { animation: sd-par 4s linear infinite; animation-delay: calc(var(--i) * 0.12s); }
  .fill-par { animation: bar-par 4s linear infinite; }
}
@keyframes cell-seq {
  0% { background: var(--tint); }
  0.3% { background: var(--teal-deep); }
  2.6% { background: var(--teal-deep); }
  4.2% { background: rgba(14, 107, 87, 0.35); }
  96.5% { background: rgba(14, 107, 87, 0.35); }
  97%, 100% { background: var(--tint); }
}
@keyframes senior-seq {
  0%, 86% { background: var(--tint); }
  86.7% { background: var(--teal-deep); }
  95% { background: var(--teal-deep); }
  95.8% { background: var(--teal); }
  97% { background: var(--teal); }
  98%, 100% { background: var(--tint); }
}
@keyframes sd-seq {
  0%, 86.7% { opacity: 0.25; }
  88.2% { opacity: 1; }
  89.7% { opacity: 0.25; }
  91.2% { opacity: 1; }
  92.7% { opacity: 0.25; }
  94.2% { opacity: 1; }
  95.8% { opacity: 1; }
  100% { opacity: 0.25; }
}
@keyframes bar-seq {
  0% { width: 0%; }
  96.5% { width: 92%; }
  100% { width: 92%; }
}
@keyframes cell-par {
  0%, 2% { background: var(--tint); }
  6% { background: var(--teal-deep); }
  14% { background: var(--teal-deep); }
  22% { background: rgba(14, 107, 87, 0.35); }
  96% { background: rgba(14, 107, 87, 0.35); }
  100% { background: var(--tint); }
}
@keyframes cell-par-r {
  0%, 16% { background: var(--tint); }
  20% { background: var(--teal-deep); }
  26% { background: var(--teal-deep); }
  30% { background: rgba(14, 107, 87, 0.35); }
  96% { background: rgba(14, 107, 87, 0.35); }
  100% { background: var(--tint); }
}
@keyframes senior-par {
  0%, 26% { background: var(--tint); }
  28% { background: var(--teal); }
  96% { background: var(--teal); }
  100% { background: var(--tint); }
}
@keyframes sd-par {
  0%, 28% { opacity: 0.25; }
  32% { opacity: 1; }
  36% { opacity: 0.25; }
  40% { opacity: 1; }
  44% { opacity: 0.25; }
  48% { opacity: 1; }
  54%, 96% { opacity: 1; }
  100% { opacity: 0.25; }
}
@keyframes bar-par {
  0% { width: 0%; }
  72% { width: 100%; }
  95% { width: 100%; }
  96% { width: 0%; }
  100% { width: 0%; }
}

/* The build steps: numbered process rail, teal arrows between cards.
   Uneven widths on purpose: content dictates width, not symmetry. */
.steps { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; gap: 30px; margin: 6px 0 30px; }

/* 03 full bleed moment: the title band overlaps the app well's top edge.
   pointer-events: none keeps the overlap zone click-through for the tabs. */
.prod-band { position: relative; z-index: 2; pointer-events: none; margin-top: 44px; }
.prod-band .ag-title { margin-bottom: 0; max-width: 30ch; }
.ag-apps {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 46px 26px 18px;
}
.step { position: relative; background: var(--page); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.step p { color: var(--mid); font-size: 15.5px; line-height: 1.5; }
.step-n { display: block; color: var(--teal); font-size: 12px; letter-spacing: 0.12em; margin-bottom: 8px; }
.step:not(:last-child)::after { content: "\2192"; position: absolute; right: -23px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 15px; }
@media (max-width: 1100px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2)::after { content: none; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } .step::after { content: none !important; } }

/* The four facts as bento tiles: scannable modules, not a text strip. */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 26px; }
.fact { background: var(--page); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.fact h3 { color: var(--ink); font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.fact p { color: var(--mid); font-size: 14px; line-height: 1.5; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }

/* Regulator map: a stamped checklist — what the regulator asks, what the
   system answers, ANSWERED at the right edge of every row. */
.reg-map { border-top: 1px solid var(--line); margin: 18px 0 26px; }
.reg-row { position: relative; display: grid; gap: 6px; padding: 14px 104px 14px 0; border-bottom: 1px solid var(--line); transition: background-color 0.15s ease; }
/* Real rubber stamps never land straight twice. */
.reg-row:nth-child(1) .stamp { --rot: -4deg; }
.reg-row:nth-child(2) .stamp { --rot: 2deg; }
.reg-row:nth-child(3) .stamp { --rot: -2deg; }
.reg-row:nth-child(4) .stamp { --rot: 3deg; }
.reg-row:nth-child(5) .stamp { --rot: -3deg; }
/* 04 asymmetric split, the map lifted into the whitespace above it. */
@media (min-width: 1101px) {
  #deploy .split { grid-template-columns: 38% 54%; column-gap: 8%; }
  #deploy .split > div:last-child { margin-top: -40px; }
}
.reg-row:hover { background: var(--tint); }
.reg-ask { color: var(--teal); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.reg-ans { color: var(--mid); font-size: 16px; }
@media (max-width: 700px) { .reg-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- contact ---------- */

#contact .lead {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.big-mail {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
.big-mail:hover { color: var(--teal-deep); text-decoration-color: var(--teal-deep); }
.contact-who { color: var(--mid); margin-top: 26px; max-width: 44ch; }
.loom-caption { color: var(--mid); margin-top: 14px; }
/* 05 + contact read as margin notes to the ledger: the content column
   starts at 30% of the shell, eyebrow flush with the email's left. */
@media (min-width: 1100px) {
  #everyone .shell > * { margin-left: 30%; }
  #contact .contact-mail { margin-left: 30%; }
}

/* ---------- footer ---------- */

footer { border-top: 2px solid var(--ink); }
footer .shell {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 32px;
  padding-bottom: 36px;
}
footer .wordmark {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 26px;
}
footer .foot-note { margin-left: auto; color: var(--mid); text-align: right; }

/* ---------- hover states (one shared restrained lift) ---------- */

.fact, .step, .con-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.fact:hover, .step:hover, .con-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 107, 87, 0.5); /* hairline shifts halfway to teal */
  box-shadow: 0 4px 14px rgba(10, 39, 35, 0.06);
}
/* Borders that are already full teal stay full teal — never fade down. */
.con-us:hover { border-color: var(--teal); }

/* ---------- entrance motion (scroll reveal + the severed-wire draw) ----------
   Everything here is scoped under html.js (added by effects.js as its very
   first statement) AND under prefers-reduced-motion: no-preference. With no
   script, or with reduced motion, none of it applies: the page is fully
   visible and static by default. Nothing below hides an element except
   .reveal, which effects.js only assigns after its 1200ms failsafe is
   already scheduled. */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.48s ease-out, transform 0.48s ease-out;
    /* Per-element stagger arrives as an inline transition-delay. */
  }
  html.js .reveal.revealed { opacity: 1; transform: none; }

  /* The severed wire, orchestrated: the live wire draws in from the left,
     then the gap label fades in, then the dead wire settles from 0.55 to
     full. fill:both holds each "from" state through its delay; without
     .loaded (script died, reduced motion) the mark is whole and static. */
  html.js.loaded .live-wire {
    transform-origin: left;
    animation: wire-draw 0.7s ease-out 0.2s both;
  }
  html.js.loaded .gap-label { animation: gap-fade 0.4s ease-out 0.85s both; }
  html.js.loaded .dead-wire { animation: dead-settle 0.5s ease-out 1.05s both; }
}
@keyframes wire-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gap-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dead-settle { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .tri-row { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .slogan { font-size: clamp(2.5rem, 2rem + 2.6vw, 3.2rem); }
    footer .shell { flex-wrap: wrap; }
  footer .foot-note { margin-left: 0; text-align: left; }
}

/* The run log: each lane's live status line, the agentic system speaking
   in the app windows' own voice. Stacked spans; keyframes pick the phase.
   Resting/reduced motion state: "answer ready" (the system finished). */
.race-status { position: relative; height: 17px; margin: 8px 0 2px; }
.race-status .st { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); opacity: 0; }
.race-status .s4 { color: var(--teal); font-weight: 500; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lane-seq + .race-status .s1 { animation: st-seq1 40s linear infinite; }
  .lane-seq + .race-status .s2 { animation: st-seq2 40s linear infinite; }
  .lane-seq + .race-status .s3 { animation: st-seq3 40s linear infinite; }
  .lane-seq + .race-status .s4 { animation: st-seq4 40s linear infinite; }
  .lane-par + .race-status .s1 { animation: st-par1 4s linear infinite; }
  .lane-par + .race-status .s2 { animation: st-par2 4s linear infinite; }
  .lane-par + .race-status .s3 { animation: st-par3 4s linear infinite; }
  .lane-par + .race-status .s4 { animation: st-par4 4s linear infinite; }
}
@keyframes st-seq1 { 0%, 1% { opacity: 0; } 2%, 67% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes st-seq2 { 0%, 68% { opacity: 0; } 69%, 84% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes st-seq3 { 0%, 85% { opacity: 0; } 86%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes st-seq4 { 0%, 96.5% { opacity: 0; } 97.5%, 100% { opacity: 1; } }
@keyframes st-par1 { 0%, 3% { opacity: 0; } 5%, 18% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes st-par2 { 0%, 19% { opacity: 0; } 21%, 27% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes st-par3 { 0%, 28% { opacity: 0; } 30%, 53% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes st-par4 { 0%, 55% { opacity: 0; } 57%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
