/* Arca homepage. Dark, monochrome, one accent.
   Tokens, type and structure supplied by Laurent on 2026-09-04.
   Sub-pages still use site.css; this sheet belongs to index.html only. */

:root {
  --bg: #0b0b0b;
  --panel: #131313;
  --ink: #f2f1ef;
  --mid: #b4b2ae;
  --muted: #7d7b77;
  --faint: #4a4846;
  --rule: #262524;
  --accent: #d99a45;
  --idle: #2c2b29;
  --btn-ink: #0b0b0b;

  /* Status colours. Decision motif and marquee dots only, never text. */
  --acted: #3f9d63;
  --waited: #d99a45;
  --refused: #d1503f;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 6.9vw, 100px);
  --cell-pad: clamp(18px, 2.5vw, 36px);
  --nav-h: 72px;

  --fast: 150ms;
  --base: 250ms;
  --slow: 350ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

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

/* Pointer and touch: no double-tap delay, no grey tap flash, and a pressed
   state that dims rather than moves. */
a, button, summary, input, [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .tab:active, .strip-toggle:active, .corp-tab:active, .foot-nav a:active, .site-nav a:active { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

/* A value the reader may copy or compare. Sans, by rule, never a code face. */
.value { color: var(--ink); font-weight: 600; }

/* ---------- Primitives ---------- */

.label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-ink);
  font-weight: 700;
}
.btn-primary:hover { background: #e8b370; border-color: #e8b370; color: var(--btn-ink); }
.btn-ghost {
  background: transparent;
  border-color: var(--faint);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--mid); }
.btn-sm { min-height: 36px; padding: 9px 18px; font-size: 13.5px; position: relative; }
/* Hit area extended past the visual bounds to reach 44px. */
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }

/* The rail: a framed column with hairline sides. Sections are cells in it. */
.rail {
  margin: 0 var(--gutter);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.cell {
  padding: 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.rule-b { border-bottom: 1px solid var(--rule); }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--btn-ink);
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: min-height var(--base) var(--ease);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.wordmark img { width: 26px; height: 26px; border-radius: 6px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--fast) var(--ease);
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 900px) {
  /* The nav gets its own scrollable row instead of vanishing. The page is
     ~7000px tall on a phone, and hiding this left no way to reach FAQ or
     Team short of scrolling the whole thing.
     ponytail: two-row header costs ~35px of sticky height; swap for a
     <details> disclosure if that height starts to matter. */
  :root { --nav-h: 93px; }
  .head-inner { flex-wrap: wrap; min-height: 0; gap: 0 12px; padding-top: 6px; padding-bottom: 2px; }
  .site-nav {
    order: 3;
    flex: 0 0 100%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; min-height: 40px; }
}

/* ---------- Main ---------- */

main { min-height: 40vh; }

/* ---------- Footer ---------- */

.site-foot {
  font-size: 12.5px;
  color: var(--muted);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 40px;
  align-items: center;
  padding: 22px var(--gutter);
}
.foot-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.foot-line img { width: 19px; height: 19px; border-radius: 4px; }
.foot-run { grid-column: 1; }
.foot-run .value { color: var(--mid); }
.foot-nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  justify-content: flex-end;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 7px;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.foot-nav a:hover { color: var(--ink); }
/* The badge sits under the footer nav, its own row on every width. */
.foot-badge { grid-column: 1 / -1; margin: 22px 0 0; }
.foot-badge img { display: block; border-radius: 6px; }

@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr; }
  .foot-run, .foot-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .foot-nav a { padding: 0 10px 0 0; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  border-bottom: 1px solid var(--rule);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(40px, 4.6vw, 66px) clamp(28px, 4.2vw, 60px) clamp(40px, 4.6vw, 66px) var(--gutter);
  border-right: 1px solid var(--rule);
}
.hero-mark { width: 44px; height: 44px; border-radius: 10px; }
.hero h1 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 11.5em;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-lede {
  max-width: 440px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mid);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-note { margin-top: 6px; font-size: 13px; color: var(--muted); }

.hero-field {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(40px, 4vw, 56px) var(--gutter) clamp(40px, 4vw, 56px) clamp(28px, 4.2vw, 60px);
  overflow: hidden;
}
.dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.motif { position: relative; width: min(100%, 367px); }
.motif-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin-top: 16px;
}
.sq { aspect-ratio: 1; border-radius: 2px; background: var(--idle); }
.sq.acted { background: var(--acted); }
.sq.waited { background: var(--waited); }
.sq.refused { background: var(--refused); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--mid);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.legend .acted { background: var(--acted); }
.legend .waited { background: var(--waited); }
.legend .refused { background: var(--refused); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: var(--gutter); }
  .hero-field { padding-left: var(--gutter); }
}

/* ---------- Marquee strip ---------- */

.strip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.marquee { overflow: hidden; }
.track { display: flex; width: max-content; }
.strip.ready .track { animation: slide 40s linear infinite; }
.strip.ready .track.rev { animation-direction: reverse; }
.set { display: flex; gap: 12px; padding-right: 12px; }
.strip:hover .track,
.strip:focus-within .track,
.strip.paused .track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Without the script, or with reduced motion, the chips wrap as a plain list. */
.strip:not(.ready) .track { width: auto; padding: 0 var(--gutter); }
.strip:not(.ready) .set { flex-wrap: wrap; padding-right: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--rule);
  background: var(--panel);
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--mid);
}
.dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dot.acted { background: var(--acted); }
.dot.waited { background: var(--waited); }
.dot.refused { background: var(--refused); }

.strip-toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--panel);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.strip-toggle:hover { color: var(--ink); border-color: var(--faint); }
.strip-toggle[hidden] { display: none; }

/* ---------- Rail body: section heads ---------- */

.rail-body { border-bottom: 1px solid var(--rule); }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: var(--cell-pad) var(--cell-pad) 4px;
}
.sec-note { font-size: 13px; color: var(--muted); }

/* ---------- The gate ledger ---------- */

.gate-wrap {
  --pad-out: var(--cell-pad);
  --pad-in: clamp(14px, 1.8vw, 26px);
}
.gate {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(90px, 10vw, 150px) 1fr;
  grid-template-rows: auto repeat(5, auto);
  margin-top: 14px;
  border-bottom: 1px solid var(--rule);
}
.gate-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  opacity: .5;
}
.gate-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 10px 0;
  background: var(--bg);
  writing-mode: vertical-rl;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.gate-head {
  grid-row: 1;
  padding: 22px var(--pad-in) 14px var(--pad-out);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.gate-head.left { grid-column: 1; text-align: right; color: var(--muted); }
.gate-head.right { grid-column: 3; padding: 22px var(--pad-out) 14px var(--pad-in); color: var(--accent); }

.gate-list {
  grid-row: 2 / span 5;
  display: grid;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gate-list.left { grid-column: 1; }
.gate-list.right { grid-column: 3; }
.gate-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px var(--pad-in) 17px var(--pad-out);
  font-size: 14.5px;
  line-height: 1.4;
  border-bottom: 1px solid var(--rule);
}
.gate-list li:last-child { border-bottom: 0; }
.gate-list.left li { justify-content: flex-end; text-align: right; color: var(--mid); }
.gate-list.right li { padding: 17px var(--pad-out) 17px var(--pad-in); color: var(--ink); }
.arrow { width: 14px; height: 10px; flex: none; fill: none; stroke: var(--faint); stroke-width: 1.3; }
.mark { width: 9px; height: 9px; flex: none; background: var(--accent); border-radius: 2px; }

.gate-mid { grid-column: 2; border-bottom: 1px solid var(--rule); }
.gate-mid.r1 { grid-row: 1; }
.gate-mid.r2 { grid-row: 2; }
.gate-mid.r3 { grid-row: 3; }
.gate-mid.r4 { grid-row: 4; }
.gate-mid.r5 { grid-row: 5; }

.gate-foot {
  display: grid;
  grid-template-columns: 1fr clamp(90px, 10vw, 150px) 1fr;
  font-size: 12.5px;
  color: var(--muted);
}
.gate-foot .left { grid-column: 1; padding: 16px var(--pad-in) 20px var(--pad-out); text-align: right; }
.gate-foot .right { grid-column: 3; padding: 16px var(--pad-out) 20px var(--pad-in); }

@media (max-width: 720px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: none; }
  .gate-line, .gate-mid { display: none; }
  .gate-tag {
    position: static;
    order: 3;
    transform: none;
    writing-mode: horizontal-tb;
    padding: 12px var(--pad-out);
    border-bottom: 1px solid var(--rule);
    box-shadow: inset 0 1px 0 var(--accent);
  }
  .gate-tag, .gate-head, .gate-head.right, .gate-list, .gate-list.right { grid-column: 1; grid-row: auto; }
  .gate-head.left { order: 1; text-align: left; padding: 22px var(--pad-out) 14px; }
  .gate-list.left { order: 2; }
  .gate-head.right { order: 4; padding: 22px var(--pad-out) 14px; }
  .gate-list.right { order: 5; }
  .gate-list { display: block; }
  .gate-list li, .gate-list.right li { padding: 15px var(--pad-out); }
  .gate-list.left li { justify-content: space-between; text-align: left; }
  .gate-list.left li:last-child { border-bottom: 1px solid var(--rule); }
  .gate-foot { grid-template-columns: 1fr; }
  .gate-foot .left, .gate-foot .right { grid-column: 1; text-align: left; padding: 14px var(--pad-out) 0; }
  .gate-foot .right { padding-bottom: 20px; }
}

/* ---------- Tabs ---------- */
/* Shared by the autonomy dial's tablist. */

.tab {
  flex: none;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 13px 18px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.tab:hover { color: var(--mid); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- The autonomy dial ---------- */

.dial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 1px solid var(--rule);
}
.dial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: var(--cell-pad);
  border-right: 1px solid var(--rule);
}
.dial-copy h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.dial-copy p { max-width: 420px; font-size: 15.5px; line-height: 1.6; color: var(--mid); }

.meter {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: var(--cell-pad);
}
.meter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.meter-tabs::-webkit-scrollbar { display: none; }
.meter-tabs .tab { padding-left: 0; padding-right: 18px; }

/* The track is a real range input, so the dial is the visitor's to move by
   pointer, touch or arrow keys. The stops are drawn behind it. */
.meter-track { position: relative; height: 44px; }
.meter-track::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1px;
  background: var(--faint);
}
.meter-stop {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 2px;
  background: var(--faint);
}
.meter-stop:nth-child(1) { left: 14px; }
.meter-stop:nth-child(2) { left: 50%; }
.meter-stop:nth-child(3) { left: calc(100% - 14px); }
.meter-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.meter-range::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.meter-range::-moz-range-track { height: 44px; background: transparent; }
/* The native thumb is the hit target but draws nothing; the knob below it
   glides between the stops on a transform. */
.meter-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  border: 0;
  background: transparent;
}
.meter-range::-moz-range-thumb { width: 28px; height: 28px; border: 0; background: transparent; }
.meter-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.meter-track { container-type: inline-size; --knob: 28px; }
.knob {
  position: absolute;
  left: 0;
  top: 8px;
  width: var(--knob);
  height: var(--knob);
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(calc((100cqw - var(--knob)) * var(--pos, 0)));
  transition: transform var(--slow) var(--ease);
  pointer-events: none;
}
.meter[data-level="1"] .knob { --pos: .5; }
.meter[data-level="2"] .knob { --pos: 1; }

.readout {
  display: grid;
  gap: 14px;
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.readout.swap { opacity: 0; transform: translateY(6px); }
.readout-summary { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--rule);
}
.facts > div { padding: 14px 16px; border-right: 1px solid var(--rule); }
.facts > div:last-child { border-right: 0; }
.facts dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bar { height: 4px; margin-top: 10px; background: var(--idle); overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  background: var(--mid);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
  transition: transform var(--slow) var(--ease);
}
.guarantee { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }

@media (max-width: 860px) {
  .dial { grid-template-columns: minmax(0, 1fr); }
  .dial-copy { border-right: 0; border-bottom: 1px solid var(--rule); }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .facts > div:last-child { border-bottom: 0; }
}

/* ---------- Proof: the attack, condensed ---------- */

.proof {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  border-bottom: 1px solid var(--rule);
}
.proof-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(36px, 3.6vw, 52px) clamp(28px, 4.2vw, 60px) clamp(36px, 3.6vw, 52px) var(--gutter);
  border-right: 1px solid var(--rule);
}
.proof-copy h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.proof-copy p { max-width: 420px; font-size: 15.5px; line-height: 1.6; color: var(--mid); }

.proof-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: clamp(36px, 3.6vw, 52px) var(--gutter) clamp(36px, 3.6vw, 52px) clamp(28px, 4.2vw, 60px);
}
.mail {
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.mail-from { font-size: 13px; color: var(--mid); overflow-wrap: anywhere; }
.mail-from .value { font-weight: 500; color: var(--mid); }
.mail-subj { margin-top: 5px; font-size: 15px; font-weight: 600; }
.mail-line { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--mid); }
.mail-line mark {
  background: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
}
.card-kind { color: var(--accent); }
.card-what { margin-top: 5px; font-size: 15px; }
.card-detail { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.card-actions { display: flex; flex: none; gap: 8px; }
.card-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
}
.card-btn.decline { border: 1px solid var(--ink); color: var(--ink); }
.card-btn.approve { background: var(--idle); color: var(--mid); }
/* Outcomes in the status colours: red for a decline, green for an approval
   or for work it did on its own. Amber stays on the card, the waiting state. */
.card-btn.decline.chosen { background: var(--refused); border-color: var(--refused); color: var(--btn-ink); }
.card-btn.approve.chosen { background: var(--acted); color: var(--btn-ink); }
.verdict { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink); }
.verdict .dot { background: var(--accent); }
.proof-demo[data-tone="no"] .verdict { color: var(--refused); }
.proof-demo[data-tone="no"] .verdict .dot { background: var(--refused); }
.proof-demo[data-tone="yes"] .verdict,
.proof-demo[data-tone="auto"] .verdict { color: var(--acted); }
.proof-demo[data-tone="yes"] .verdict .dot,
.proof-demo[data-tone="auto"] .verdict .dot { background: var(--acted); }
.proof-demo[data-tone="auto"] .card-kind { color: var(--acted); }

/* The stage: three scenes, three beats each. Mail, then the card, then the
   verdict. Without the script the markup ships at the last beat, complete. */
.demo-stage { display: flex; flex-direction: column; gap: 12px; }
.demo-stage:focus-visible { outline-offset: 6px; }
.proof-demo .mail { transition: opacity var(--base) var(--ease); }
.proof-demo .card,
.proof-demo .verdict { transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.proof-demo[data-stage="0"] .card,
.proof-demo[data-stage="0"] .verdict,
.proof-demo[data-stage="1"] .verdict { opacity: 0; transform: translateY(8px); }
.proof-demo.swap .mail { opacity: 0; }
.card.auto { border-color: var(--rule); }
.card.auto .card-kind { color: var(--muted); }
.card.auto .card-actions { display: none; }
.demo-caption { font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 860px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof-copy { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: var(--gutter); }
  .proof-demo { padding-left: var(--gutter); }
}
@media (max-width: 560px) {
  .card { flex-direction: column; align-items: stretch; }
  .card-actions { justify-content: flex-end; }
}

/* ---------- Public app catalog ---------- */
.connects { --catalog-gap: .75rem; --catalog-space: 1.5rem; --catalog-icon: 2rem; }
.connects .sec-head { padding: var(--catalog-space) var(--cell-pad); }
.connects [hidden] { display: none; }
.svc-search-tools { display: flex; align-items: center; gap: var(--catalog-gap); padding: 0 var(--cell-pad) var(--catalog-space); }
.svc-search-tools input {
  width: 100%; min-width: 0; min-height: 3rem; padding: var(--catalog-gap) 1rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--faint); border-radius: 0;
}
.svc-search-tools input::placeholder { color: var(--mid); }
.svc-search-tools .btn { flex: none; }
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.svc-grid .cell { min-width: 0; padding: 0; content-visibility: auto; contain-intrinsic-size: auto 5.5rem; }
.svc-grid .cell:nth-child(5n) { border-right: 0; }
.svc-app {
  display: flex; align-items: center; gap: var(--catalog-gap); min-height: 5.5rem; height: 100%;
  padding: 1rem; font-size: .875rem; color: var(--ink); overflow-wrap: anywhere;
  transition: background var(--fast) var(--ease);
}
.svc-app:hover { background: var(--panel); }
.svc-app:focus-visible { outline-offset: -3px; }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--catalog-icon); height: var(--catalog-icon); padding: .25rem; border-radius: .375rem; background: var(--ink); overflow: hidden; }
.svc-icon img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.svc-icon.svc-initials { background: var(--panel); color: var(--mid); font-size: .6875rem; font-weight: 600; border: 1px solid var(--rule); }
.svc-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--catalog-gap); padding: var(--catalog-space) var(--cell-pad) var(--catalog-gap); }
.svc-controls .sec-note { color: var(--mid); font-variant-numeric: tabular-nums; }
.svc-buttons { display: flex; flex-wrap: wrap; gap: var(--catalog-gap); }
.svc-empty { padding: var(--catalog-space) var(--cell-pad); color: var(--mid); }
.svc-footnote { padding: var(--catalog-gap) var(--cell-pad) var(--catalog-space); color: var(--mid); font-size: .8125rem; }
.svc-footnote a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid .cell:nth-child(5n) { border-right: 1px solid var(--rule); }
  .svc-grid .cell:nth-child(3n) { border-right: 0; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid .cell:nth-child(3n) { border-right: 1px solid var(--rule); }
  .svc-grid .cell:nth-child(2n) { border-right: 0; }
  .svc-search-tools { flex-wrap: wrap; }
  .svc-search-tools input { flex-basis: 100%; }
  .svc-controls { align-items: flex-start; flex-direction: column; }
}

/* ---------- MCP block ---------- */
/* Arca as an MCP server: three facts. The install line returns when there is
   something to install. */
.mcp-block { border-top: 1px solid var(--rule); }
.mcp-block .rows { margin: 0 var(--cell-pad); padding: 0 0 12px; border-top: 1px solid var(--rule); }
.mcp-block .rows > div {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.mcp-block .rows > div:last-child { border-bottom: 0; }
.mcp-block dt { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mcp-block dd { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.55; color: var(--mid); }
@media (max-width: 720px) {
  .mcp-block .rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Facts row ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 34px 30px;
  border-right: 1px solid var(--rule);
}
.stat:first-child { padding-left: var(--gutter); }
.stat .num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--muted); }
.stat-cta {
  padding-right: var(--gutter);
  border-right: 0;
  background: var(--accent);
  color: var(--btn-ink);
  transition: background-color var(--fast) var(--ease);
}
.stat-cta:hover { background: #e8b370; color: var(--btn-ink); }
.stat-cta b { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.stat-cta span { display: inline-flex; align-items: center; gap: 8px; color: var(--btn-ink); opacity: .8; }
.stat-cta .arrow { stroke: var(--btn-ink); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 26px 24px; }
  .stat:nth-child(odd) { padding-left: var(--gutter); }
  .stat:nth-child(even) { border-right: 0; padding-right: var(--gutter); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px var(--gutter); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Pilot ---------- */

.pilot {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 46px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.pilot h2 {
  max-width: 620px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.pilot-form {
  display: flex;
  max-width: 620px;
  margin-top: 20px;
  border: 1px solid var(--faint);
}
.pilot-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.pilot-form input::placeholder { color: var(--muted); }
.pilot-form input:focus-visible { outline-offset: -2px; }
.pilot-form .btn { flex: none; }
.pilot-note { margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.pilot-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .pilot { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pilot-form { flex-direction: column; }
  .pilot-form input { border-bottom: 1px solid var(--faint); font-size: 16px; }
}

/* ---------- Team ---------- */

.rail-h2 {
  max-width: 24em;
  padding: 10px var(--cell-pad) 26px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.founder { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px var(--cell-pad); }
.founder:last-child { border-right: 0; }
.founder h3 { font-size: 20px; letter-spacing: -.02em; }
.founder p { font-size: 14.5px; line-height: 1.55; color: var(--mid); max-width: 36ch; }
.founder-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
  transition: color var(--fast) var(--ease);
}
.founder-mail:hover { color: var(--ink); }
.rail-foot {
  padding: 15px var(--cell-pad);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .founders { grid-template-columns: minmax(0, 1fr); }
  .founder { border-right: 0; }
}

/* ---------- Partners ---------- */
/* One cell in the founders' shape, full width. */
.partners-grid { grid-template-columns: minmax(0, 1fr); }
.partners-grid .founder { border-right: 0; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 18px var(--cell-pad);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--mid); }
.faq-list summary:focus-visible { outline-offset: -3px; }
/* Plus that turns into a minus: two hairlines, one rotates away. */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: var(--cell-pad);
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--muted);
  transition: transform var(--base) var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p {
  max-width: 62ch;
  padding: 0 calc(var(--cell-pad) + 36px) 22px var(--cell-pad);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mid);
}

/* ---------- Corporate door ---------- */

.corp-tab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mid);
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.corp-tab:hover { color: var(--ink); border-color: var(--faint); }
.corp-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.corp {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.corp::backdrop { background: rgba(11, 11, 11, .72); }
.corp[open] { animation: rise var(--slow) var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.corp-card { position: relative; padding: 28px; }
.corp-card h2 { margin-top: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.corp-x {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.corp-x::before,
.corp-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--mid);
  transform: translate(-50%, -50%) rotate(45deg);
}
.corp-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.corp-x:hover::before, .corp-x:hover::after { background: var(--ink); }
.corp-preview {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.corp-preview .mark { margin-top: 6px; }
.corp-field {
  display: block;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.corp-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--rule);
  cursor: not-allowed;
}
.corp-card .btn { width: 100%; margin-top: 18px; }
.corp-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--mid); }
/* The dialog sits on the panel colour, where the muted grey is a hair under AA. */
.corp .label, .corp-field, .corp-field input { color: var(--mid); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Motion system ----------
   One curve (--ease), three durations (--fast/--base/--slow), one reveal
   distance (12px) and one stagger step (40ms). Marquee, dial, reveals, header
   and count-up all draw on these, and the block at the end switches every one
   of them off under prefers-reduced-motion. */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.reveal.in { opacity: 1; transform: none; }

.site-head.scrolled .head-inner { min-height: 56px; }
.wordmark { transform-origin: left center; transition: transform var(--base) var(--ease); }
.site-head.scrolled .wordmark { transform: scale(.92); }

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .strip .track { animation: none; }
}
