/* =====================================================================
   rigyd.com homepage
   Structure and rhythm follow zed.dev: near-black ground, IBM Plex Serif
   headings at modest sizes, sans body, 4px radii, full-bleed hairline
   bands, and a blueprint rail with corner registration marks running the
   length of the page. Palette and mono face are rigyd's own.
   ===================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quantico";
  src: url("./assets/fonts/Quantico-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------- tokens ---------------- */
:root {
  /* rigyd palette, unchanged */
  --lime: #D3E017;
  --lime-bright: #E4F12B;
  --lime-dim: #A9B412;

  --ink-0: #06080F;
  --ink-1: #0A0C18;
  --ink-2: #10131F;
  --ink-3: #171B2A;
  --ink-4: #202435;

  --paper-0: #EBE9E0;
  --gray-200: #C7CAD3;
  --gray-300: #A2A6B0;
  --gray-400: #7D818D;
  --gray-500: #5A5E6B;
  --gray-600: #3D4150;
  --gray-700: #272B3A;

  /* semantic — LIGHT is the default theme */
  --bg: #F4F2EA;
  --bg-sunken: #EBE9E0;
  --raise: rgba(10, 12, 24, 0.028);
  --raise-2: rgba(10, 12, 24, 0.05);

  --tx: var(--ink-1);
  --tx-2: var(--gray-600);
  --tx-3: var(--gray-500);
  --tx-4: var(--gray-400);
  --tx-5: #9CA0AB;

  --rule: rgba(10, 12, 24, 0.12);
  --rule-2: rgba(10, 12, 24, 0.18);
  --rule-3: rgba(10, 12, 24, 0.3);

  --accent: var(--lime);
  --accent-tx: #6E7709;
  --accent-line: var(--lime-dim);
  --on-accent: var(--ink-1);
  --blue: #2C55C0;

  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Quantico", "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --r: 0px;                 /* rigyd is square-cornered */
  --w: 1180px;              /* content rail width */
  --pad: 40px;
  --head: 80px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t1: 120ms;
  --t2: 220ms;
}

:root[data-theme="dark"] {
  --bg: var(--ink-1);
  --bg-sunken: var(--ink-0);
  --raise: rgba(235, 233, 224, 0.04);
  --raise-2: rgba(235, 233, 224, 0.07);

  --tx: var(--paper-0);
  --tx-2: var(--gray-300);
  --tx-3: var(--gray-400);
  --tx-4: var(--gray-500);
  --tx-5: var(--gray-600);

  --rule: rgba(235, 233, 224, 0.16);
  --rule-2: rgba(235, 233, 224, 0.26);
  --rule-3: rgba(235, 233, 224, 0.40);

  --accent-tx: var(--lime);
  --accent-line: var(--lime);
  --blue: #7FA6F0;
}

/* ---------------- base ---------------- */
* { box-sizing: border-box; }

/* the hidden attribute must beat any display: we set on a class */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx-2);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-tx); outline-offset: 2px; border-radius: var(--r); }

h1, h2, h3, h4, p, figure, ul, ol, pre { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------------- type ---------------- */
.d1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--tx);
  text-wrap: balance;
}
.d1 em { font-style: normal; color: var(--accent-tx); }
.d1 .sub {
  display: block;
  margin-top: 0.3em;
  font-size: 0.44em;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--tx-3);
}

.d2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--tx);
  text-wrap: pretty;
}
.d2 em { font-style: normal; color: var(--accent-tx); }

.d3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.26;
  letter-spacing: -0.018em;
  color: var(--tx);
}

.lede { font-size: 16.5px; line-height: 1.6; color: var(--tx-2); text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.62; color: var(--tx-2); text-wrap: pretty; }
.small { font-size: 13.5px; line-height: 1.55; color: var(--tx-3); }

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-4);
}
.label--accent { color: var(--accent-tx); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.004em;
  white-space: nowrap;
  transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--lime-bright); }
.btn--ghost { border-color: var(--rule-2); color: var(--tx); background: var(--raise); }
.btn--ghost:hover { border-color: var(--rule-3); background: var(--raise-2); }
.btn--bare { color: var(--tx-2); }
.btn--bare:hover { color: var(--tx); }
.btn--lg { padding: 11px 20px; font-size: 15px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }

.kbd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 0;
  opacity: 0.5;
}

/* ---------------- blueprint scaffold ----------------
   Every band is full-bleed with a top hairline; the inner column carries
   the two vertical rails, so the rails read as one continuous line down
   the page, with a registration diamond at every band corner. */
.band { border-top: 1px solid var(--rule); }
.band:first-of-type { border-top: 0; }

.inner {
  position: relative;
  max-width: var(--w);
  margin: 0 auto;
  padding: 64px var(--pad) 72px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
/* Registration mark at every band corner — the logo's crosshair, sitting on a
   plug of page colour so the rails do not run through it. */
.inner::before, .inner::after {
  content: "";
  position: absolute;
  /* The rails are 1px borders, so their centres sit half a pixel outside the
     padding box: -0.5px. Half of a 14px mark is 7. */
  top: -7.5px;
  z-index: 3;
  width: 14px;
  height: 14px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cline%20x1%3D%2210%22%20y1%3D%223.4%22%20x2%3D%2210%22%20y2%3D%227.6%22%20stroke%3D%22%236E7709%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%2210%22%20y1%3D%2212.4%22%20x2%3D%2210%22%20y2%3D%2216.6%22%20stroke%3D%22%236E7709%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%223.4%22%20y1%3D%2210%22%20x2%3D%227.6%22%20y2%3D%2210%22%20stroke%3D%22%236E7709%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%2212.4%22%20y1%3D%2210%22%20x2%3D%2216.6%22%20y2%3D%2210%22%20stroke%3D%22%236E7709%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%221.9%22%20fill%3D%22%236E7709%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
:root[data-theme="dark"] .inner::before,
:root[data-theme="dark"] .inner::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cline%20x1%3D%2210%22%20y1%3D%223.4%22%20x2%3D%2210%22%20y2%3D%227.6%22%20stroke%3D%22%23D3E017%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%2210%22%20y1%3D%2212.4%22%20x2%3D%2210%22%20y2%3D%2216.6%22%20stroke%3D%22%23D3E017%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%223.4%22%20y1%3D%2210%22%20x2%3D%227.6%22%20y2%3D%2210%22%20stroke%3D%22%23D3E017%22%20stroke-width%3D%221.1%22%2F%3E%3Cline%20x1%3D%2212.4%22%20y1%3D%2210%22%20x2%3D%2216.6%22%20y2%3D%2210%22%20stroke%3D%22%23D3E017%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%221.9%22%20fill%3D%22%23D3E017%22%2F%3E%3C%2Fsvg%3E");
}

.inner::before { left: -7.5px; }
.inner::after { right: -7.5px; }

/* The first band has no rule above it, so a mark there registers against
   nothing and collides with the header. */
.band:first-of-type > .inner::before,
.band:first-of-type > .inner::after { content: none; }
.inner--flush { padding-left: 0; padding-right: 0; }

.shead { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 40px; }
.shead--center { justify-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.shead--wide { max-width: none; }

/* ---------------- header ---------------- */
.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head__in {
  max-width: var(--w);
  margin: 0 auto;
  height: var(--head);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
/* The lockup, rebuilt to the original artwork: lime reticle, RIGYD in Quantico,
   and the gray registration brackets framing the whole mark. Nothing is filtered —
   the reticle is #D3E017 on either ground; only the wordmark follows the theme. */
.mark {
  --icon: 25px;
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--icon) * 0.42);
  padding: calc(var(--icon) * 0.28) calc(var(--icon) * 0.34);
  user-select: none;
}
.mark__icon { flex: none; width: var(--icon); height: var(--icon); }
.mark__icon svg { display: block; width: 100%; height: 100%; }
.mark__w {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(var(--icon) * 0.72);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--tx);
}
.bk {
  position: absolute;
  width: calc(var(--icon) * 0.36);
  height: calc(var(--icon) * 0.36);
  border: 0 solid rgba(150, 152, 160, 0.85);
}
.bk--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.bk--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.bk--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bk--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.head__mark { flex: none; display: flex; align-items: center; }
.head__mark .mark__icon svg,
.head__mark .bk--tr,
.head__mark .bk--br {
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}
.head__mark .bk--tl,
.head__mark .bk--tr { top: calc(var(--icon) * 0.28 - 4px); }
.head__mark .bk--bl,
.head__mark .bk--br { bottom: calc(var(--icon) * 0.28 - 4px); }
.head__mark .bk--tl,
.head__mark .bk--bl { left: calc(var(--icon) * 0.34 - 4px); }
.head__mark .bk--tr,
.head__mark .bk--br {
  right: auto;
  left: calc(var(--icon) * 0.98 + 4px);
}
.head__mark:hover .mark__icon svg,
.head__mark:focus-visible .mark__icon svg {
  transform: translateX(5px) scale(1.15);
}
.head__mark:hover .bk--tr,
.head__mark:hover .bk--br,
.head__mark:focus-visible .bk--tr,
.head__mark:focus-visible .bk--br {
  transform: translateX(var(--mark-fly, 72px));
}

@media (prefers-reduced-motion: reduce) {
  .head__mark .mark__icon svg,
  .head__mark .bk--tr,
  .head__mark .bk--br { transition: none; }
  .head__mark:hover .mark__icon svg,
  .head__mark:focus-visible .mark__icon svg,
  .head__mark:hover .bk--tr,
  .head__mark:hover .bk--br,
  .head__mark:focus-visible .bk--tr,
  .head__mark:focus-visible .bk--br { transform: none; }
}

.hnav { display: flex; gap: 24px; flex: none; }
.hnav a { font-size: 14px; color: var(--tx-3); transition: color var(--t1) var(--ease); white-space: nowrap; }
.hnav a:hover, .hnav a.on { color: var(--tx); }

.head__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

.iconbtn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r);
  color: var(--tx-4);
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.iconbtn:hover { color: var(--accent-tx); border-color: var(--rule-2); }
#theme { display: none; }

/* announcement strip, zed-style */
.ann { border-bottom: 1px solid var(--rule); background: var(--raise); }
.ann__in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 9px var(--pad);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--tx-3);
  text-align: center;
}
.ann__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-tx);
}
.ann a { color: var(--tx); }
.ann a:hover { color: var(--accent-tx); }

/* ---------------- hero ---------------- */
.hero { padding-top: 84px; padding-bottom: 0; text-align: center; }
.hero .d1 { max-width: 19ch; margin: 0 auto; }
.hero__sub { margin: 26px auto 0; max-width: 58ch; font-size: 16.5px; line-height: 1.6; color: var(--tx-2); }
.hero__cta { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tx-4);
  margin-bottom: 24px;
}
.ret { width: 15px; height: 15px; flex: none; display: block; }
.ret line { stroke: var(--accent-tx); }
.ret circle { fill: var(--accent-tx); }

/* three-column strip under the hero */
.tri {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  margin-top: 76px;
}
.tri__c { padding: 22px 22px 24px 0; border-right: 1px solid var(--rule); }
.tri__c + .tri__c { padding-left: 22px; }
.tri__c:last-child { border-right: 0; }
.tri__t { font-family: var(--sans); font-weight: 600; letter-spacing: -0.012em; font-size: 16px; color: var(--tx); margin-bottom: 6px; }
.tri__b { font-size: 13.5px; line-height: 1.55; color: var(--tx-3); }

/* key/value rows — used by the asset inspector */
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}
.kv__k { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--tx-3); }
.kv__k .ico { width: 12px; height: 12px; opacity: 0.85; }
.kv__v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------------- media placeholder ----------------
   Every one of these is a labelled slot waiting for a real gif or clip. */
.stage {
  position: relative;
  background:
    linear-gradient(rgba(10,12,24,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,12,24,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  display: grid;
  place-items: center;
}
:root[data-theme="dark"] .stage {
  background:
    linear-gradient(rgba(235,233,224,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,233,224,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.stage__ph { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px; max-width: 46ch; }
.stage__ph .label { color: var(--tx-5); line-height: 1.7; }
.stage__ico { color: var(--tx-5); opacity: 0.7; }
.brk { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent-line); opacity: 0.7; }
.brk--tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.brk--tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.brk--bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.brk--br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------------- trust band ---------------- */
.trust { padding-top: 34px; padding-bottom: 34px; }
.trust__row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.trust__fig {
  font-family: var(--display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  color: var(--accent-tx);
  letter-spacing: 0.01em;
}
.trust__t {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.25;
  color: var(--tx);
  letter-spacing: -0.016em;
}

/* ---------------- agentic stepper ---------------- */
.agent { display: grid; grid-template-columns: 268px minmax(0, 1fr); border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; }
.rail { border-right: 1px solid var(--rule); background: var(--raise); }
.rail__b {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.rail__b:last-child { border-bottom: 0; }
.rail__b:hover { background: var(--raise-2); }
.rail__b.on { background: var(--bg-sunken); border-left-color: var(--accent-line); }
.rail__n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--tx-5); }
.rail__b.on .rail__n { color: var(--accent-tx); }
.rail__t { font-family: var(--sans); font-weight: 500; letter-spacing: -0.012em; font-size: 15px; line-height: 1.3; color: var(--tx-3); }
.rail__b.on .rail__t { color: var(--tx); }

.panel { min-width: 0; background: var(--bg-sunken); display: grid; grid-template-rows: auto 1fr; }
.panel__copy { padding: 26px 28px 24px; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; }
.panel__copy .d3 { font-size: 20px; }
.panel__b { font-size: 14.5px; line-height: 1.6; color: var(--tx-2); max-width: 72ch; }
.panel__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.panel__meta .label { flex: none; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-s {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tx-3);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 4px 9px;
}
.panel__vis { padding: 18px 26px 24px; min-width: 0; }

.stepnav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.stepnav__b {
  width: 30px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--tx-3);
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.stepnav__b:hover:not(:disabled) { color: var(--accent-tx); border-color: var(--rule-2); }
.stepnav__b:disabled { opacity: 0.3; cursor: default; }
.stepnav__r { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-5); }

/* --- step visual primitives --- */
.vis { display: grid; gap: 14px; min-width: 0; }
.vis__box { border: 1px solid var(--rule); border-radius: var(--r); background: var(--raise); min-width: 0; }
.vis__h {
  padding: 9px 14px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-5);
  display: flex; align-items: center; gap: 10px;
}
.vis__h .sp { flex: 1; }
.vis__body { padding: 16px; }
.vis__grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

.qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule); }
.qrow:first-child { border-top: 0; padding-top: 0; }
.qrow__q { font-size: 13.5px; color: var(--tx-3); }
.qrow__a { font-family: var(--mono); font-size: 12px; color: var(--accent-tx); text-align: right; }

.drop {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--rule-2); border-radius: var(--r);
  padding: 12px 14px;
  font-family: var(--mono); font-size: 11.5px; color: var(--tx-3);
}
.drop .ok { color: var(--accent-tx); }
.drop .sz { margin-left: auto; color: var(--tx-5); }

.promptbox {
  border: 1px solid var(--rule-2); border-radius: var(--r);
  background: var(--bg-sunken);
  padding: 14px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--tx);
}
.promptbox .cue { color: var(--accent-tx); }

/* reasoning trace */
.trace { display: grid; gap: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.trace__l { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.trace__l:first-child { border-top: 0; }
.trace__m { color: var(--accent-tx); }
.trace__t { color: var(--tx-2); min-width: 0; overflow-wrap: anywhere; }
.trace__t b { color: var(--tx); font-weight: 400; }
.trace__t .r { color: var(--tx-4); }
.trace__sub { display: block; color: var(--tx-4); padding-left: 14px; }
.trace__sub b { color: var(--accent-tx); font-weight: 400; }

.paths { display: flex; gap: 8px; flex-wrap: wrap; }
.path {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 6px 11px; color: var(--tx-5);
}
.path.on { border-color: var(--accent-line); color: var(--accent-tx); background: rgba(211, 224, 23, 0.07); }

/* part hierarchy */
.tree { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; }
.tree__r { display: grid; grid-template-columns: 18px minmax(0, 1fr) 62px 74px 116px; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--rule); }
.tree__r:first-child { border-top: 0; }
.tree__g { color: var(--tx-5); }
.tree__n { color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__m { color: var(--tx-4); }
.tree__k { color: var(--accent-tx); text-align: right; font-variant-numeric: tabular-nums; }
.tree__j { color: var(--blue); text-align: right; white-space: nowrap; }
.tree__hd { color: var(--tx-5); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

/* validation checks */
.checks { display: grid; gap: 0; }
.check { display: grid; grid-template-columns: 14px minmax(0, 1fr) 62px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.check:first-child { border-top: 0; }
.check__i { color: var(--accent-tx); font-family: var(--mono); font-size: 12px; }
.check__n { font-size: 13.5px; color: var(--tx-2); }
.check__c { font-family: var(--mono); font-size: 12px; color: var(--tx-3); text-align: right; font-variant-numeric: tabular-nums; }
.check__bar { grid-column: 1 / -1; height: 2px; background: var(--raise-2); border-radius: 0; overflow: hidden; }

.tally { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; color: var(--tx-4); }
.tally .big { color: var(--accent-tx); font-size: 13px; letter-spacing: 0.04em; }

/* approval */
.approve { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.approve__n { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-5); margin-left: auto; }

/* code */
pre.code {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--tx-2);
  tab-size: 2;
}
/* The export panes hold a real file excerpt, which runs longer than the card
   should be. Cap them at the height the old hand-written sample occupied —
   15 lines at this line-height — and let the rest scroll, so being accurate
   costs no layout. */
pre.code--fit { max-height: calc(15 * 1.75em + 32px); overflow: auto; overscroll-behavior: contain; }

pre.code .s { color: var(--tx); }
pre.code .v { color: var(--accent-tx); }
pre.code .c { color: var(--tx-4); }
pre.code .f { color: var(--blue); }

/* ---------------- asset showcase (structure preserved) ---------------- */
.viewer { border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--bg-sunken); overflow: hidden; }
.viewer__in { display: grid; grid-template-columns: 236px minmax(0, 1fr) 324px; height: 620px; }
.shared-viewer-error { grid-column: 1 / -1; display: grid; place-items: center; padding: 24px; }
.shared-viewer-message { padding: 18px 14px; }
.shared-viewer-stage { min-height: 420px; }

.vrail { border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--raise); }
.vrail__h { padding: 13px 14px 11px; border-bottom: 1px solid var(--rule); }
.vfilters { display: flex; gap: 5px; flex-wrap: wrap; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.vchip {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 4px 8px; color: var(--tx-4);
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease), background var(--t1) var(--ease);
}
.vchip:hover { color: var(--tx); border-color: var(--rule-2); }
.vchip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.vlist { overflow-y: auto; flex: 1; min-height: 0; }
.vitem {
  width: 100%; text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  display: grid; gap: 5px;
  transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.vitem:hover { background: var(--raise-2); }
.vitem.on { background: var(--bg-sunken); border-left-color: var(--accent-line); }
.vitem__n { font-size: 13.5px; line-height: 1.3; color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; }
.vitem.on .vitem__n { color: var(--tx); }
.vbadge {
  justify-self: start;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 0; padding: 2px 5px; color: var(--tx-5);
}
.vitem.on .vbadge { border-color: var(--accent-line); color: var(--accent-tx); }
.vrail__f { padding: 10px 14px; border-top: 1px solid var(--rule); }

.vmain { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.vmodes { display: flex; align-items: center; justify-content: center; gap: 0; padding: 11px; border-bottom: 1px solid var(--rule); }
.vseg { display: flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.vseg button {
  padding: 6px 16px; font-size: 12.5px; font-weight: 500; color: var(--tx-3);
  border-right: 1px solid var(--rule);
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease);
}
.vseg button:last-child { border-right: 0; }
.vseg button:hover { color: var(--tx); background: var(--raise-2); }
.vseg button.on { background: var(--accent); color: var(--on-accent); }
.vstage { position: relative; min-width: 0; }
.vcanvas { position: absolute; inset: 0; }
.vcanvas canvas { touch-action: none; cursor: grab; }
.vcanvas canvas:active { cursor: grabbing; }
.vload {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  pointer-events: none;
  background: var(--bg-sunken);
  transition: opacity var(--t2) var(--ease);
}
.vload[hidden] { display: none !important; }
.vload__t {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx-5);
}
.vload__bar { width: 132px; height: 2px; background: var(--raise-2); overflow: hidden; }
.vload__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 200ms linear; }
.vhint {
  position: absolute; right: 14px; bottom: 13px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tx-5); pointer-events: none;
}
.vstage .stage { height: 100%; min-height: 380px; }
.vcap { position: absolute; left: 44px; bottom: 15px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-5); }

.vinsp { border-left: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--raise-2); }
.vinsp__s { padding: 14px 16px; display: grid; gap: 10px; }
.vinsp__scroll { overflow-x: hidden; overflow-y: auto; flex: 1; min-height: 0; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }

/* Inspector cards — each block is its own panel, the way the app shows them. */
.vcard {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 14px 15px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
}
.vhead { display: flex; align-items: center; gap: 7px; }
.ico { width: 13px; height: 13px; flex: none; display: block; }
.vstatus { display: flex; align-items: center; gap: 8px; }
.vstatus__i { display: flex; }
.vstatus__i .ico { width: 15px; height: 15px; }
.vstatus__i.pass { color: var(--accent-tx); }
.vstatus__i.warn { color: #C98A1E; }
.vstatus__i.fail { color: #E8557A; }
.vstatus__w {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-tx);
}
.vstatus__w.pass { color: var(--accent-tx); }
.vstatus__w.warn { color: #C98A1E; }
.vstatus__w.fail { color: #E8557A; }
.vstatus__s { font-size: 13px; color: var(--tx-3); }
.vcounts { margin-left: auto; font-family: var(--mono); font-size: 12.5px; display: flex; gap: 4px; font-variant-numeric: tabular-nums; }
.vcounts .p { color: var(--accent-tx); }
.vcounts .f { color: #E8557A; }
.vcounts .w { color: #C98A1E; }
.vcounts .sl { color: var(--tx-5); opacity: 0.6; }

.vmass { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.vmass__f { font-family: var(--mono); font-size: 29px; line-height: 1; letter-spacing: -0.01em; color: var(--tx); font-variant-numeric: tabular-nums; }
.vmass__u { font-size: 12.5px; color: var(--tx-4); }
.vmass__q { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-5); }
.vlike { font-size: 12.5px; line-height: 1.5; color: var(--tx-2); }
.vlike i { font-style: normal; color: var(--tx-4); }

.vjoint { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--rule); }
.vjoint:first-child { border-top: 0; }
.vjoint__t { display: flex; align-items: center; gap: 8px; }
.vjoint__sw { width: 7px; height: 7px; border-radius: 0; flex: none; }
.vjoint__n { font-size: 12.5px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vjoint__a { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--tx-4); }
.vjoint__r {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  margin: 1px 0;
  background: transparent;
  cursor: grab;
}
.vjoint__r:active { cursor: grabbing; }
.vjoint__r::-webkit-slider-runnable-track { height: 3px; background: var(--raise-2); }
.vjoint__r::-moz-range-track { height: 3px; background: var(--raise-2); }
.vjoint__r::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px; height: 9px;
  margin-top: -3px;
  background: var(--c, var(--accent));
  border: 0;
  border-radius: 0;
}
.vjoint__r::-moz-range-thumb {
  width: 9px; height: 9px;
  background: var(--c, var(--accent));
  border: 0;
  border-radius: 0;
}
.vjoint__r:focus-visible { outline: 2px solid var(--accent-tx); outline-offset: 2px; }
.vjoint__f { display: flex; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--tx-5); }
.vjoint__f .m { margin-left: auto; }
.vcov { height: 4px; display: flex; border-radius: 0; overflow: hidden; background: var(--raise-2); }
.vcov i { display: block; height: 100%; }
/* validation card — opens the full report */
.vreport {
  width: 100%;
  cursor: pointer;
  transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease);
}
.vreport:hover:not(:disabled) { border-color: var(--rule-3); background: var(--raise); }
.vreport:disabled { cursor: default; }
.vreport__go {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tx-5);
}
.vreport:hover:not(:disabled) .vreport__go { color: var(--accent-tx); }

/* materials */
.vmat { display: grid; gap: 3px; padding: 7px 0; border-top: 1px solid var(--rule); }
.vmat:first-child { border-top: 0; }
.vmat__t { display: flex; align-items: center; gap: 8px; }
.vmat__sw { width: 8px; height: 8px; flex: none; }
.vmat__n { font-size: 12.5px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmat__p { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--tx-4); }
.vmat__bar { height: 3px; background: var(--raise-2); margin-left: 16px; }
.vmat__bar i { display: block; height: 100%; }
.vmat__f { margin-left: 16px; font-family: var(--mono); font-size: 9.5px; color: var(--tx-5); }

/* ---------------- validation report ---------------- */
.rep { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.rep__scrim { position: absolute; inset: 0; background: rgba(10, 12, 24, 0.55); backdrop-filter: blur(3px); }
.rep__box {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 900px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: var(--bg);
  border: 1px solid var(--rule-3);
  box-shadow: 0 20px 70px rgba(6, 8, 15, 0.35);
}
.rep__head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--rule); }
.rep__t { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx); margin-top: 6px; }
.rep__x { margin-left: auto; font-size: 14px; color: var(--tx-4); padding: 4px 6px; }
.rep__x:hover { color: var(--tx); }
.rep__meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 22px; border-bottom: 1px solid var(--rule); background: var(--raise);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--tx-4);
}
.rep__meta .fail { color: #E8557A; }
.rep__meta .warn { color: var(--tx-2); }
.rep__verdict { letter-spacing: 0.14em; }
.rep__verdict.pass { color: var(--accent-tx); }
.rep__verdict.warn { color: var(--tx-2); }
.rep__verdict.fail { color: #E8557A; }
.rep__body { overflow-y: auto; }
.rep__g { border-bottom: 1px solid var(--rule); }
.rep__g summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 500; color: var(--tx);
}
.rep__g summary::-webkit-details-marker { display: none; }
.rep__g summary:hover { background: var(--raise); }
.rep__gc { margin-left: auto; display: flex; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.rep__gc .pass { color: var(--accent-tx); }
.rep__gc .warn { color: var(--tx-2); }
.rep__gc .fail { color: #E8557A; }
.rep__gc .na { color: var(--tx-5); }
.rep__list { padding: 0 22px 12px; }
.rep__c { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.rep__s { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; }
.rep__s.pass { color: var(--accent-tx); }
.rep__s.fail { color: #E8557A; }
.rep__s.warn { color: var(--tx-2); }
.rep__s.na { color: var(--tx-5); }
.rep__d { display: grid; gap: 3px; min-width: 0; }
.rep__d b { font-size: 13px; font-weight: 500; color: var(--tx); }
.rep__d span { font-size: 12px; line-height: 1.45; color: var(--tx-4); }
.rep__code { font-family: var(--mono); font-size: 9.5px; color: var(--tx-5); }

@media (max-width: 620px) {
  .rep { padding: 0; }
  .rep__box { max-height: 100vh; height: 100%; border: 0; }
  .rep__c { grid-template-columns: 44px minmax(0, 1fr); }
  .rep__code { display: none; }
}

/* ---------------- developers ---------------- */
.dev { border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; background: var(--bg-sunken); }
.dev__tabs { display: flex; border-bottom: 1px solid var(--rule); background: var(--raise); overflow-x: auto; }
.dev__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  color: var(--tx-3);
  border-right: 1px solid var(--rule);
  border-bottom: 2px solid transparent;
  transition: color var(--t1) var(--ease), background var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.dev__tab:hover { color: var(--tx); background: var(--raise-2); }
.dev__tab.on { color: var(--accent-tx); border-bottom-color: var(--accent-line); background: var(--bg-sunken); }
.dev__tab svg { flex: none; opacity: 0.75; }
.dev__tab.on svg { opacity: 1; }
.dev__path { margin-left: auto; align-self: center; padding: 0 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--tx-5); white-space: nowrap; }
.dev__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.dev__copy { padding: 24px 26px; border-right: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; background: var(--raise); }
.dev__pts { display: grid; gap: 7px; margin-top: 2px; }
.dev__pt { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--tx-2); }
.dev__pt .ar { color: var(--accent-tx); }
.dev__pt.m { font-family: var(--mono); font-size: 12.5px; }
.dev__link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-tx); margin-top: 6px; }
.dev__link:hover { color: var(--lime-bright); }
.dev__code { min-width: 0; }
.dev__code pre.code { padding: 20px 22px; line-height: 1.8; min-height: 340px; }

/* ---------------- updates ---------------- */
.posts { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.posts__side { display: grid; gap: 14px; }

/* Posts are text cards, three to a row. No figure — the title, the tags and
   the post's own opening carry the card. */
.posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 980px) { .posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts--grid { grid-template-columns: minmax(0, 1fr); } }

.post {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--raise);
  display: grid;
  transition: border-color var(--t2) var(--ease), background var(--t2) var(--ease);
}
.post:hover { border-color: var(--rule-3); background: var(--raise-2); }
/* 1fr on the excerpt row pushes the footer to the floor, so cards in a row
   end their rules at the same height however short the copy runs. */
.post__b {
  padding: 20px; display: grid; gap: 12px; min-height: 268px;
  grid-template-rows: auto auto auto 1fr auto; align-content: start;
}
.post__m { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 0; padding: 2px 6px; color: var(--tx-4);
}
.pill--a { border-color: var(--accent-line); color: var(--accent-tx); }
.post__d { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--tx-5); }
.post__t { font-family: var(--sans); font-weight: 600; font-size: 18.5px; line-height: 1.28; color: var(--tx); letter-spacing: -0.018em; }
.post:hover .post__t { color: var(--accent-tx); }
/* The post's epigraph leads the card; the opening paragraph follows if the
   card still has room for it. */
.post__q {
  display: grid; gap: 7px; margin: 0;
  border-left: 1px solid var(--accent-line); padding-left: 13px;
  font-size: 14px; line-height: 1.55; color: var(--tx-2); text-wrap: pretty;
}
.post__qa {
  font-family: var(--mono); font-style: normal; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-5);
}
/* Clamped so a long opening cannot set the height of every card in the row. */
.post__x {
  font-size: 14px; line-height: 1.6; color: var(--tx-3);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.post__f { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--rule); padding-top: 12px; align-self: end; }
.post__by { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-5); }
.post__r { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-tx); }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px 18px 0;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--tx);
  transition: color var(--t1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-tx); }
.faq summary::after {
  content: "+";
  justify-self: end;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  color: var(--tx-4);
  transition: color var(--t1) var(--ease);
}
.faq details[open] summary::after { content: "–"; color: var(--accent-tx); }
.faq details[open] summary { color: var(--tx); }
.faq__a { padding: 0 60px 22px 0; max-width: 78ch; }
.faq__a p { font-size: 15px; line-height: 1.65; color: var(--tx-2); }
.faq__a p + p { margin-top: 10px; }
.faq__a code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-tx);
}

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--rule); background: var(--bg-sunken); }
.foot__in {
  max-width: var(--w); margin: 0 auto; padding: 44px var(--pad) 32px;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px;
}
.foot__brand { display: grid; gap: 10px; align-content: start; }
.foot__mark .mark { --icon: 24px; }
.foot__tag { font-size: 13.5px; line-height: 1.5; color: var(--tx-3); max-width: 30ch; margin-top: 4px; }
.foot__meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--tx-4);
}
.foot__meta a { display: flex; align-items: center; gap: 7px; transition: color var(--t1) var(--ease); }
.foot__meta a:hover { color: var(--accent-tx); }
.foot__meta svg { flex: none; opacity: 0.8; }

.foot__h {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-4);
  margin-bottom: 14px;
}
.foot__l { display: grid; gap: 10px; }
.foot__l a { font-size: 13.5px; color: var(--tx-3); transition: color var(--t1) var(--ease); }
.foot__l a:hover { color: var(--tx); }
.foot__soc { display: inline-flex; align-items: center; gap: 8px; }
.foot__soc svg { flex: none; opacity: 0.85; }

.foot__bar {
  max-width: var(--w); margin: 0 auto; padding: 18px var(--pad) 30px;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--tx-4);
}
.foot__legal { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal a { transition: color var(--t1) var(--ease); }
.foot__legal a:hover { color: var(--tx); }
.foot__legal span { color: var(--tx-5); }

/* =====================================================================
   INTERNAL PAGES — /resources, /compare and their detail pages
   ===================================================================== */

/* breadcrumb */
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tx-5);
  margin-bottom: 26px;
}
.crumb a { transition: color var(--t1) var(--ease); }
.crumb a:hover { color: var(--accent-tx); }
.crumb .sep { opacity: 0.5; }
.crumb .now { color: var(--tx-3); }

/* index page header */
.phead { display: grid; gap: 16px; max-width: 68ch; margin-bottom: 44px; }
.phead .lede { font-size: 17px; }

/* ---- inline video ---- */
.clip { margin: 0; border: 1px solid var(--rule); background: var(--bg-sunken); }
.clip__el {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1116;
  object-fit: cover;
  background: var(--bg-sunken);
}
.clip__cap {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx-5);
}

/* ---- /resources list ---- */
.rlist { border-top: 1px solid var(--rule); }
.ritem {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t1) var(--ease);
}
.ritem:hover { background: var(--raise); }
.ritem__meta { display: grid; gap: 8px; align-content: start; }
.ritem__cat {
  justify-self: start;
  white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-tx);
  border: 1px solid var(--accent-line);
  padding: 3px 7px;
}
.ritem__date { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--tx-5); }
.ritem__b { display: grid; gap: 8px; min-width: 0; }
.ritem__t {
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--tx); text-wrap: pretty;
  transition: color var(--t1) var(--ease);
}
.ritem:hover .ritem__t { color: var(--accent-tx); }
.ritem__x { font-size: 14.5px; line-height: 1.55; color: var(--tx-3); max-width: 74ch; }
.ritem__by { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-5); }

/* ---- /compare grid ---- */
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ccard {
  border: 1px solid var(--rule);
  background: var(--raise);
  padding: 24px 26px 22px;
  display: grid; gap: 11px; align-content: start;
  transition: border-color var(--t2) var(--ease), background var(--t2) var(--ease);
}
.ccard:hover { border-color: var(--rule-3); background: var(--raise-2); }
.ccard__t { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; color: var(--tx); text-wrap: pretty; }
.ccard__x { font-size: 14.5px; line-height: 1.55; color: var(--tx-3); }
.ccard__r { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-tx); margin-top: 2px; }

/* ---- structured landing-page content ---- */
.featuregrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.featurecard {
  border: 1px solid var(--rule);
  background: var(--raise);
  padding: 22px 24px;
}
.featurecard--accent { border-color: var(--accent-line); }
.featurecard h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.016em; color: var(--tx); }
.featurecard p { margin-top: 9px; font-size: 14px; line-height: 1.58; color: var(--tx-3); }
.statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.statcard { padding: 26px 24px; border-right: 1px solid var(--rule); display: grid; gap: 7px; }
.statcard:last-child { border-right: 0; }
.statcard strong { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--accent-tx); }
.statcard span { font-size: 13px; line-height: 1.45; color: var(--tx-3); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud .pill { padding: 7px 10px; }
.ranklist { display: grid; gap: 14px; list-style: none; padding: 0; }
.rankcard { border: 1px solid var(--rule-2); background: var(--raise); padding: 24px 26px; }
.rankcard__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rankcard__head h3 { font-size: 20px; font-weight: 600; color: var(--tx); }
.rankcard__n { font-family: var(--display); font-size: 26px; color: var(--accent-tx); }
.rankcard__tag { margin: 8px 0 18px; font-family: var(--mono); font-size: 11px; color: var(--tx-4); }
.rankcard dl { display: grid; gap: 14px; }
.rankcard dl div { display: grid; gap: 4px; }
.rankcard dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-tx); }
.rankcard dd { font-size: 14.5px; line-height: 1.6; color: var(--tx-2); }

/* ---- article / comparison body ---- */
.doc { max-width: 74ch; }
.doc__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.doc__h1 {
  font-size: clamp(29px, 3.1vw, 44px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--tx); text-wrap: pretty;
}
.doc__stand { margin-top: 18px; font-size: 17.5px; line-height: 1.55; color: var(--tx-2); text-wrap: pretty; }
.doc__by {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--tx-4);
}

.prose { max-width: 74ch; margin-top: 40px; }
.prose h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.2;
  color: var(--tx);
  margin: 40px 0 14px;
  text-wrap: pretty;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--tx); margin: 26px 0 10px; }
.prose p { font-size: 15.5px; line-height: 1.68; color: var(--tx-2); }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; margin: 16px 0; }
.prose ol { display: grid; gap: 10px; margin: 16px 0; counter-reset: prose-item; }
.prose li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px; line-height: 1.62; color: var(--tx-2);
}
.prose li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-tx);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
}
.prose ol > li { counter-increment: prose-item; }
.prose ol > li::before { content: counter(prose-item, decimal-leading-zero); }
.prose li > ul, .prose li > ol { margin: 10px 0 2px; }
.prose li b { color: var(--tx); font-weight: 600; }
.prose a { color: var(--accent-tx); border-bottom: 1px solid var(--accent-line); }
.prose a:hover { color: var(--tx); }
.prose blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent-line);
  font-size: 17px; line-height: 1.6; color: var(--tx);
}
.prose pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule-2);
  background: var(--bg-sunken);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--tx-2);
}
.prose :not(pre) > code {
  padding: 2px 5px;
  background: var(--raise);
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.86em; color: var(--tx);
}

/* short-answer callout */
.callout {
  border: 1px solid var(--rule-2);
  border-left: 2px solid var(--accent-line);
  background: var(--raise);
  padding: 20px 24px;
  margin: 32px 0;
  max-width: 74ch;
}
.callout .label { margin-bottom: 10px; display: block; }
.callout p { font-size: 15.5px; line-height: 1.65; color: var(--tx-2); }

/* comparison table */
.ctable__wrap { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--rule-2); }
.ctable { border-collapse: collapse; width: 100%; min-width: 660px; }
.ctable th, .ctable td {
  text-align: left; vertical-align: top;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 14px; line-height: 1.5;
}
.ctable th:last-child, .ctable td:last-child { border-right: 0; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable thead th { background: var(--raise); border-bottom: 1px solid var(--rule-2); }
.ctable__name { font-size: 15px; font-weight: 600; letter-spacing: -0.014em; color: var(--tx); display: block; }
.ctable__sub {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-5);
  font-weight: 400;
}
.ctable tbody th {
  font-weight: 500; color: var(--tx); width: 28%;
  background: var(--raise);
}
.ctable td { color: var(--tx-2); }
.ctable td.is-us { color: var(--tx); }
.ctable td.is-us strong { color: var(--accent-tx); font-weight: 500; }

/* three "when to choose" cards */
.choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 8px; }
.choose__c { border: 1px solid var(--rule); background: var(--raise); padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.choose__c.is-us { border-color: var(--accent-line); }
.choose__t { font-size: 16px; font-weight: 600; letter-spacing: -0.016em; color: var(--tx); }
.choose__x { font-size: 14px; line-height: 1.55; color: var(--tx-3); }

/* process diagram */
.dg { display: block; width: 100%; height: auto; }
.dg__box { fill: var(--raise); stroke: var(--rule-2); stroke-width: 1.5; }
.dg__box--out { stroke: var(--accent-line); }
.dg__l { stroke: var(--rule-2); stroke-width: 1.5; }
.dg__a { fill: none; stroke: var(--tx-4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg__tick { stroke: var(--accent-tx); stroke-width: 1.6; fill: var(--accent-tx); stroke-linecap: round; }
.dg__n { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; fill: var(--tx); }
.dg__r { font-family: var(--mono); font-size: 17px; letter-spacing: 0.16em; fill: var(--accent-tx); }
.dg__d { font-family: var(--sans); font-size: 19px; fill: var(--tx-3); }
.dg__t { font-family: var(--sans); font-size: 20px; fill: var(--tx); }
.dg__k { font-family: var(--mono); font-size: 15px; letter-spacing: 0.16em; fill: var(--tx-4); }
.dg__k--mid { fill: var(--tx-5); }

/* article hero figure */
.doc__fig { margin: 32px 0 8px; max-width: 74ch; }
.doc__fig .stage { border: 1px solid var(--rule); }
.doc__fig figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tx-4);
  max-width: 62ch;
}

/* pull quote */
.pull {
  margin: 34px 0;
  max-width: 74ch;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--accent-line);
}
.pull blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--tx);
  text-wrap: pretty;
}
.pull figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-4);
}
.pull--lede blockquote { font-size: 21px; }

/* numbered process list */
.steps {
  display: grid;
  gap: 1px;
  max-width: 74ch;
  margin: 22px 0 34px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--bg);
}
.steps__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-tx);
}
.steps__b { font-size: 15px; line-height: 1.6; color: var(--tx-2); }
.steps__b b { color: var(--tx); font-weight: 600; }

@media (max-width: 620px) {
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .pull { padding-left: 16px; }
}

/* end-of-page CTA */
.pcta {
  border: 1px solid var(--rule-2);
  background: var(--raise);
  padding: 34px 36px 36px;
  display: grid; gap: 12px; justify-items: start;
  margin-top: 8px;
}
.pcta__t { font-size: 22px; font-weight: 600; letter-spacing: -0.024em; color: var(--tx); }
.pcta p { font-size: 15px; line-height: 1.6; color: var(--tx-2); max-width: 62ch; }
.pcta__b { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* related reading */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 940px) {
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .featuregrid { grid-template-columns: minmax(0, 1fr); }
  .choose { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .ritem { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ritem__meta { display: flex; align-items: center; gap: 12px; }
  .pcta { padding: 26px 22px 28px; }
}

/* =====================================================================
   TEAM
   ===================================================================== */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: border-color var(--t2) var(--ease), background var(--t2) var(--ease);
}
.member:hover { border-color: var(--rule-3); background: var(--raise-2); }
.member__fig {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #0D1B2A;
}
.member__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__b { padding: 16px 20px 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.member__n { font-size: 16.5px; font-weight: 600; letter-spacing: -0.018em; color: var(--tx); }
.member__r {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx-4);
}
.member__links { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.member__links a {
  display: grid;
  place-items: center;
  color: var(--tx-4);
  transition: color var(--t1) var(--ease);
}
.member__links a:hover { color: var(--accent-tx); }
.member__links svg { width: 15px; height: 15px; display: block; }

@media (max-width: 940px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   REQUEST API ACCESS — modal form, same fields as the live site
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.55);
  backdrop-filter: blur(3px);
}
:root[data-theme="dark"] .modal__scrim { background: rgba(6, 8, 15, 0.72); }

.modal__panel {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--rule-3);
}
.modal__head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--rule);
}
.modal__t { font-size: 20px; font-weight: 600; letter-spacing: -0.022em; color: var(--tx); }
.modal__x { margin-top: 7px; font-size: 14.5px; line-height: 1.5; color: var(--tx-3); }
.modal__close {
  margin-left: auto; flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); color: var(--tx-4);
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.modal__close:hover { color: var(--tx); border-color: var(--rule-2); }

.form { padding: 22px 26px 26px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__l {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tx-4);
}
.field__l .req { color: var(--accent-tx); }
.field__l .opt { color: var(--tx-5); letter-spacing: 0.08em; }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tx);
  background: var(--raise);
  border: 1px solid var(--rule-2);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
  transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--tx-5); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--bg-sunken);
}
.field textarea { resize: vertical; min-height: 88px; }
.field.is-bad input, .field.is-bad textarea { border-color: #E8557A; }
.field__e { font-size: 12px; color: #E8557A; min-height: 0; }
:root[data-theme="dark"] .field__e { color: #F0708F; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.form__note { font-size: 12.5px; color: var(--tx-4); }

.form__done { padding: 44px 26px 48px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.form__done .tick {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  color: var(--accent-tx);
  margin-bottom: 4px;
}
.form__done .t { font-size: 18px; font-weight: 600; letter-spacing: -0.018em; color: var(--tx); }
.form__done .x { font-size: 14.5px; color: var(--tx-3); }

@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 12px; }
  .modal__head { padding: 20px 20px 16px; }
  .form { padding: 18px 20px 22px; }
}

/* ---------------- motion ---------------- */
.rise { opacity: 0; transform: translateY(10px); }
.rise.in { opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .viewer__in { grid-template-columns: 208px minmax(0, 1fr) 292px; }
  .dev__in { grid-template-columns: 260px minmax(0, 1fr); }
  .agent { grid-template-columns: 232px minmax(0, 1fr); }
  .tree__r { grid-template-columns: 18px minmax(0, 1fr) 58px 70px 104px; }
}

@media (max-width: 1100px) {
  .tri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tri__c:nth-child(2n) { border-right: 0; }
  .tri__c:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .tri__c:nth-child(3) { padding-left: 0; }
}

@media (max-width: 940px) {
  .hnav a[data-opt] { display: none; }
  .viewer__in { grid-template-columns: minmax(0, 1fr); height: auto; }
  .vrail { border-right: 0; border-bottom: 1px solid var(--rule); }
  .vlist { display: flex; overflow-x: auto; }
  .vitem { flex: none; width: 186px; border-bottom: 0; border-right: 1px solid var(--rule); border-left: 0; border-top: 2px solid transparent; }
  .vitem.on { border-left-color: transparent; border-top-color: var(--accent-line); }
  .vinsp { border-left: 0; border-top: 1px solid var(--rule); }
  .vinsp__scroll { overflow: visible; }
    .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .foot__brand { grid-column: 1 / -1; }
  .vis__grid2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  :root { --pad: 20px; --head: 66px; }
  .inner { padding: 44px var(--pad) 52px; }
  .hero { padding-top: 52px; }
  .faq__a { padding-right: 30px; }
  .tri { grid-template-columns: minmax(0, 1fr); margin-top: 52px; }
  .tri__c { border-right: 0; border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .tri__c + .tri__c { padding-left: 0; }
  .tri__c:last-child { border-bottom: 0; }
  .agent { grid-template-columns: minmax(0, 1fr); }
  .rail { border-right: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__b { border-left: 0; border-top: 2px solid transparent; }
  .rail__b.on { border-left-color: transparent; border-top-color: var(--accent-line); }
  .dev__in { grid-template-columns: minmax(0, 1fr); }
  .dev__copy { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tree__r { grid-template-columns: 16px minmax(0, 1fr) 72px; }
  .tree__j, .tree__hd.j, .tree__m, .tree__hd.m { display: none; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__legal { margin-left: 0; }
  .panel__copy, .panel__vis { padding-left: 18px; padding-right: 18px; }
  .statgrid { grid-template-columns: minmax(0, 1fr); }
  .statcard { border-right: 0; border-bottom: 1px solid var(--rule); }
  .statcard:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .ann__more { display: none; }
}

@media (max-width: 620px) {
  .hnav { display: none; }
  .head__end .btn--ghost { display: none; }
  .head__in { gap: 14px; }
}

@media (max-width: 560px) {
  .rail { grid-template-columns: minmax(0, 1fr); }
}
