/* ============================================================
   HIVEMIND — landing page
   Black + honey. Faceted, no curves. Honesty over recall.
   ============================================================ */

/* ---- tokens ---------------------------------------------- */
:root {
  --void:        #000000;   /* page base                       */
  --carbon:      #0c0b08;   /* warm-black panels               */
  --carbon-2:    #131109;   /* raised panels                   */
  --honey:       #d4aa00;   /* primary gold (the mark)         */
  --amber:       #ffc400;   /* active traces, hover            */
  --pollen:      #ffeeaa;   /* pale highlight                  */
  --wax:         #f3eee2;   /* warm-white text                 */
  --ash:         #9a9384;   /* secondary text                  */
  --ash-dim:     #6a655a;   /* tertiary text                   */
  --withheld:    #38352d;   /* abstained / not-served state    */

  --line:        rgba(212,170,0,.24);
  --line-soft:   rgba(212,170,0,.12);
  --glow:        rgba(255,196,0,.35);
  --ember:       #ff7a5c;   /* error / danger (warm coral)     */

  --ff-display: "Chakra Petch", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --chamfer: polygon(0 13px, 13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  --chamfer-sm: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);

  --maxw: 1160px;
  --pad:  clamp(1.25rem, 5vw, 2.5rem);
  --sec:  clamp(4.5rem, 11vw, 9rem);
}

/* ---- reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  background: var(--void);
  color: var(--wax);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--honey); color: #000; }

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

/* ---- skip link (WCAG 2.4.1): first Tab stop on every page, hidden until
   focused, jumps past the repeated nav straight into <main> -------------- */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 100;
  padding: .8em 1.2em;
  background: var(--honey); color: #120e00;
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem;
  clip-path: var(--chamfer-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* honeycomb-themed scrollbar (progressive, ignored where unsupported) */
* { scrollbar-width: thin; scrollbar-color: var(--honey) #000; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2308; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--honey); }

/* ---- type primitives ------------------------------------- */
.kicker {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--honey);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--honey), transparent);
}
.kicker--center { justify-content: center; }
.kicker--center::before { background: var(--honey); }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: .01em; }

.lead { color: var(--ash); font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.22rem); max-width: 60ch; }
.mono { font-family: var(--ff-mono); }
strong, b { color: var(--wax); font-weight: 600; }
em { color: var(--pollen); font-style: normal; }

/* ---- layout ---------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--sec); position: relative; }
.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; }
/* centered variant: for standalone text blocks that aren't paired with a side element */
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { background: var(--honey); }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---- honeycomb texture field (fixed, behind all) --------- */
.hex-field {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .5;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(125% 90% at 50% 0%, #000 35%, transparent 78%);
}
.hex-field rect { fill: var(--void); }
.hex-field .cells { stroke: var(--honey); stroke-width: 1.1; fill: none; opacity: .10; }

/* ---- faceted frame (the no-curve border language) -------- */
.framed { position: relative; isolation: isolate; }
.framed::before {                 /* edge */
  content: ""; position: absolute; inset: 0;
  background: var(--line);
  clip-path: var(--chamfer);
  z-index: -1;
  transition: background .25s ease;
}
.framed::after {                  /* fill */
  content: ""; position: absolute; inset: 1px;
  background: var(--carbon);
  clip-path: var(--chamfer);
  z-index: -1;
}
.framed > * { position: relative; }
/* only interactive framed elements (links, buttons) brighten on hover; static panels don't */
a.framed:hover::before, button.framed:hover::before { background: var(--honey); }

/* ---- buttons --------------------------------------------- */
.btn {
  --c: 9px;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  clip-path: var(--chamfer-sm);
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--honey);
  color: #120e00;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover { background: var(--amber); transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--glow); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  position: relative;
  color: var(--wax);
  background: transparent;
}
.btn--ghost::before {
  content: ""; position: absolute; inset: 0;
  background: var(--line); clip-path: var(--chamfer-sm); z-index: -1;
  transition: background .2s ease;
}
.btn--ghost::after {
  content: ""; position: absolute; inset: 1px;
  background: var(--carbon); clip-path: var(--chamfer-sm); z-index: -1;
}
.btn--ghost:hover { color: var(--amber); transform: translateY(-2px); }
.btn--ghost:hover::before { background: var(--honey); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4,3,1,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(212,170,0,.25)); }
.brand__name {
  font-family: var(--ff-display); font-weight: 700;
  font-size: 1.06rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wax);
}
/* mobile-first: the unqueried rules ARE the ~375px layout (collapsed behind
   the toggle); the desktop horizontal bar layers on at min-width:900px below. */
.nav__links { display: none; }
.nav__links.open {
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
  position: absolute; top: 72px; left: 0; right: 0; padding: .9rem var(--pad) 1.1rem;
  background: rgba(4,3,1,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav__links a {
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .06em;
  color: var(--ash); transition: color .2s ease; position: relative;
  display: flex; align-items: center; width: 100%; min-height: 44px; padding-block: 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 8px; height: 1px; width: 0;
  background: var(--honey); transition: width .25s ease;
}
.nav__links a:hover { color: var(--wax); }
.nav__links a:hover::after { width: 100%; }
.nav__links .nav-cta { color: var(--honey); }
/* Contact button: sits to the right of the GitHub link, boxed so it reads as a
   button in both the desktop bar and the collapsed mobile menu. */
.nav__links a.nav-contact {
  color: var(--honey);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer-sm);
  padding: .55em 1.1em;
  justify-content: center;
  transition: color .2s ease, box-shadow .2s ease;
}
.nav__links a.nav-contact::after { display: none; }
.nav__links a.nav-contact:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--honey); }
.nav__toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--chamfer-sm);
  color: var(--honey); font-size: 1.05rem;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex; align-items: center; gap: 2rem;
    position: static; padding: 0; background: none; backdrop-filter: none; border-bottom: 0;
  }
  .nav__links a { display: inline-flex; width: auto; min-height: 0; padding-block: 4px; }
  .nav__links a::after { bottom: 0; }
  .nav__toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); overflow: hidden; }
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(140% 135% at 50% 45%, #000 76%, transparent 100%);
          mask-image: radial-gradient(140% 135% at 50% 45%, #000 76%, transparent 100%);
}
.hero::before {                /* hero comb dissolves into page black at the lower edge */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, var(--void) 100%);
}
.hero::after {                 /* legibility scrim: darkest behind the centered copy, clears to comb at the edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(66% 72% at 50% 46%, rgba(0,0,0,.74) 0%, rgba(0,0,0,.38) 58%, rgba(0,0,0,0) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 46rem; margin-inline: auto; text-align: center;
}
.hero__inner::before {         /* frosted glass slab so the copy reads cleanly over the live comb */
  content: ""; position: absolute; inset: -1.9rem -2.4rem; z-index: -1;
  background: rgba(9, 8, 5, .45);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
          backdrop-filter: blur(16px) saturate(1.2);
  clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 1px var(--line-soft),
              inset 0 1px 0 rgba(255, 238, 170, .06);
}
.hero__inner .kicker { justify-content: center; }
.hero__inner .kicker::before { background: var(--honey); }
.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.4rem);
  line-height: .98; margin: 1.4rem 0 0;
  text-wrap: balance;
}
.hero h1 .comb {
  /* the signature: honeycomb-filled keyword */
  background-image: var(--hex-textfill), linear-gradient(180deg, var(--amber), var(--honey));
  background-size: 1.2em auto, 100% 100%;
  background-position: 0 center, 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: comb-drift 11s linear infinite;
}
@keyframes comb-drift { to { background-position: 6em center, 0 0; } }

.hero__sub { margin: 1.5rem auto 0; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; align-items: center; justify-content: center; }
.hero__meta {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; justify-content: center;
  font-family: var(--ff-mono); font-size: .76rem; color: var(--ash-dim); letter-spacing: .04em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; background: var(--honey); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }

/* command pill */
.cmd {
  font-family: var(--ff-mono); font-size: .82rem;
  display: inline-flex; align-items: stretch; max-width: 100%;
}
.cmd__body {
  display: flex; align-items: center; gap: .6em;
  padding: .7em .8em .7em 1em; overflow-x: auto; white-space: nowrap;
  color: var(--wax);
}
.cmd__body .dollar { color: var(--honey); user-select: none; }
.cmd__copy {
  display: inline-flex; align-items: center; gap: .45em;
  padding-inline: .95em; color: var(--ash);
  border-left: 1px solid var(--line-soft);
  transition: color .2s ease, background .2s ease;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.cmd__copy:hover { color: var(--amber); }
.cmd__copy.copied { color: #0c0b08; background: var(--honey); }

/* ============================================================
   PRINCIPLES / STIGMERGY
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.card { padding: 1.7rem 1.6rem 1.8rem; transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.card__no {
  font-family: var(--ff-mono); font-size: .74rem; color: var(--honey);
  letter-spacing: .1em; display: block; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ash); font-size: .96rem; }
.card .hl { color: var(--pollen); }

.stig {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.stig__viz { aspect-ratio: 5 / 4; position: relative; clip-path: var(--chamfer); }
.stig__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stig__viz .frame { position: absolute; inset: 0; box-shadow: inset 0 0 55px 8px rgba(0,0,0,.55); pointer-events: none; }
.stig__viz figcaption {
  position: absolute; left: 1rem; bottom: .85rem; z-index: 2;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .06em; color: var(--ash-dim);
}

/* ============================================================
   TRUST LIFECYCLE (a real sequence → numbered)
   ============================================================ */
.life { margin-top: 1rem; }
#trust .section-head { text-align: center; margin-left: auto; margin-right: auto; }
/* Connected vertical timeline: one spine, four identical nodes. Deprecated is
   a real fourth trust state (reachable from any prior one), not an aside — so
   it gets the exact same badge/tag/heading/body treatment as 01-03. Centered
   as a block; rows inside stay left-aligned (badge, then text) — only the
   whole timeline's position on the page is centered, not each row's text. */
.life__track { position: relative; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.4rem; }
.life__track::before {
  content: ""; position: absolute; left: 29px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line); z-index: 0;
}
.stage { position: relative; z-index: 1; display: flex; gap: 1.7rem; align-items: flex-start; cursor: default; }
.stage__dot {
  flex: none; width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--carbon-2); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--ff-mono); font-weight: 600; color: var(--honey); font-size: .9rem;
  transition: box-shadow .3s ease, color .3s ease, background .3s ease;
}
.stage__body { padding-top: .3rem; }
.stage__tag {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ash-dim); display: block; margin-bottom: .35rem;
}
.stage h3 { margin-bottom: .5rem; }
.stage p { color: var(--ash); font-size: .92rem; }
.stage p code, .stage__tag code { font-family: var(--ff-mono); color: var(--pollen); font-size: .92em; }

/* ============================================================
   TOOLS
   ============================================================ */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.tool { padding: 1.3rem 1.25rem 1.4rem; transition: transform .22s ease; }
.tool:hover { transform: translateY(-4px); }
.tool__name { font-family: var(--ff-mono); font-size: .92rem; color: var(--amber); font-weight: 600; }
.tool__sig  { font-family: var(--ff-mono); font-size: .7rem; color: var(--ash-dim); margin: .2rem 0 .9rem; word-break: break-word; }
.tool p { font-size: .86rem; color: var(--ash); }
.tool__lock {
  display: inline-flex; align-items: center; gap: .4em; margin-top: .9rem;
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey);
}
.tool__lock::before { content: ""; width: 6px; height: 6px; background: var(--honey); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.tool--read .tool__lock { color: var(--ash-dim); }
.tool--read .tool__lock::before { background: var(--ash-dim); }

/* ============================================================
   THE GATE (interactive)
   ============================================================ */
/* mobile-first: single column is the unqueried ~375px layout; the two-panel
   grid with a sticky side panel layers on at min-width:900px below. */
.gate { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; margin-top: 1rem; }
@media (min-width: 900px) {
  .gate { grid-template-columns: 1.1fr .9fr; }
}
.gate__panel { padding: 1.6rem; }
/* The faceted fill (framed ::after at z-index:-1 + isolation) can fail to
   composite over this tall panel in Chrome when the hero/stig GPU canvas layers
   sit just above it — leaving the recalled memories unpainted. Give these two
   panels a real background + chamfered inset border so their content always
   paints; the look is identical to the pseudo-based frame. */
.gate__panel, .gate__side {
  background: var(--carbon);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}
.gate__panel::before, .gate__panel::after,
.gate__side::before, .gate__side::after { display: none; }
.gate__q {
  font-family: var(--ff-mono); font-size: .8rem; color: var(--ash);
  display: flex; align-items: center; gap: .6em; margin-bottom: 1.3rem; flex-wrap: wrap;
}
.gate__q .qtext { color: var(--pollen); }
.mems { display: grid; gap: .55rem; }
.mem { display: grid; grid-template-columns: 1fr auto; gap: .2rem .9rem; align-items: center; padding: .6rem .8rem; background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line-soft); transition: box-shadow .3s ease, opacity .3s ease; }
.mem__txt { font-size: .84rem; color: var(--wax); }
.mem__score { font-family: var(--ff-mono); font-size: .78rem; color: var(--ash); }
.mem__bar { grid-column: 1 / -1; height: 4px; background: #000; box-shadow: inset 0 0 0 1px var(--line-soft); position: relative; overflow: hidden; }
.mem__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--honey), var(--amber)); transition: background .3s ease; }
.mem.is-served { box-shadow: inset 0 0 0 1px var(--honey); }
.mem.is-served .mem__score { color: var(--amber); }
.mem.is-withheld { opacity: .42; }
.mem.is-withheld .mem__txt { color: var(--ash-dim); }
.mem.is-withheld .mem__bar i { background: var(--withheld); }

.gate__side { padding: 1.6rem; position: static; }
@media (min-width: 900px) {
  .gate__side { position: sticky; top: 90px; }
}
.gate__floor { font-family: var(--ff-mono); display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .2rem; }
.gate__floor .lbl { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash-dim); }
.gate__floor .val { font-size: 1.5rem; color: var(--amber); font-weight: 600; }
/* height is the full touch target (mb2 floor); the visible groove stays a thin
   centered band via background-size so the hairline look is unchanged */
.gate__slider { width: 100%; margin: 1rem 0 1.4rem; -webkit-appearance: none; appearance: none; height: 24px; background: linear-gradient(90deg, #1c1808, #2a2308) no-repeat center / 100% 6px; box-shadow: inset 0 0 0 1px var(--line); }
.gate__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 26px; background: var(--amber); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); cursor: grab; box-shadow: 0 0 16px -2px var(--glow); }
.gate__slider::-moz-range-thumb { width: 24px; height: 26px; border: 0; background: var(--amber); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); cursor: grab; }
.gate__slider:active::-webkit-slider-thumb { cursor: grabbing; }

.gate__verdict { font-family: var(--ff-mono); font-size: .82rem; border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }
.gate__verdict .vrow { display: flex; justify-content: space-between; margin-bottom: .5rem; color: var(--ash); }
.gate__verdict .vrow b { color: var(--wax); font-weight: 600; }
.gate__state { margin-top: 1rem; padding: .9rem 1rem; text-align: center; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; clip-path: var(--chamfer-sm); transition: background .3s ease, color .3s ease; }
.gate__state.serve { background: rgba(212,170,0,.14); color: var(--amber); box-shadow: inset 0 0 0 1px var(--honey); }
.gate__state.abstain { background: #100f0c; color: var(--ash-dim); box-shadow: inset 0 0 0 1px var(--withheld); }
.gate__note { margin-top: .9rem; font-size: .74rem; color: var(--ash-dim); line-height: 1.5; }

/* ============================================================
   SETUP
   ============================================================ */
.setup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.terminal { padding: 0; overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); font-family: var(--ff-mono); font-size: .72rem; color: var(--ash-dim); }
.terminal__bar .dots { display: inline-flex; gap: .35rem; }
.terminal__bar .dots i { width: 9px; height: 9px; background: #2a2308; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.terminal__bar .ttl { margin-left: auto; letter-spacing: .08em; }
.terminal__body { padding: 1.2rem 1.3rem 1.4rem; font-family: var(--ff-mono); font-size: .82rem; line-height: 1.9; overflow-x: auto; }
.terminal__body .l { white-space: nowrap; }
.terminal__body .c { color: var(--honey); } /* prompt */
.terminal__body .o { color: var(--ash-dim); } /* comment / output */
.terminal__body .g { color: var(--pollen); } /* highlight */
.setup__points { display: grid; gap: 1.1rem; }
/* standalone points (no terminal/figure beside them) center as a block; each
   row stays left-aligned (icon then text), matching the timeline treatment. */
.setup__points--solo { max-width: 640px; margin-inline: auto; }
.point { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: start; }
.point__ic { width: 34px; height: 38px; display: grid; place-items: center; background: var(--carbon-2); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); box-shadow: inset 0 0 0 1px var(--line); color: var(--honey); }
.point h3 { font-size: 1rem; margin-bottom: .2rem; }
.point p { font-size: .9rem; color: var(--ash); }
.point code { font-family: var(--ff-mono); color: var(--pollen); font-size: .9em; }

.cta-band { margin-top: clamp(3rem,6vw,5rem); padding: clamp(2.2rem,5vw,3.5rem); text-align: center; scroll-margin-top: 90px; }
.cta-band h2 { margin-bottom: .8rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band .cmd { margin: 0 auto 1.6rem; }
.cta-band .row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   GUARANTEES (the four nevers)
   ============================================================ */
.nevers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.never { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; transition: transform .25s ease; }
.never:hover { transform: translateY(-4px); }
.never__no {
  font-family: var(--ff-mono); font-size: .68rem; color: var(--honey);
  letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 1rem;
}
.never h3 { margin-bottom: .65rem; font-size: 1.08rem; }
.never p { color: var(--ash); font-size: .9rem; flex: 1; }
.never p code { font-family: var(--ff-mono); color: var(--pollen); font-size: .9em; }
.never .hl { color: var(--pollen); }
.never__go {
  display: inline-flex; margin-top: 1rem;
  font-family: var(--ff-mono); font-size: .74rem; color: var(--amber);
  transition: color .2s ease;
}
.never__go:hover { color: var(--pollen); }
.stat { font-family: var(--ff-mono); color: var(--amber); font-weight: 600; white-space: nowrap; }

/* ============================================================
   RECEIPT STAT BAND (the one number we can cite)
   ============================================================ */
.statband {
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 1.4rem 1.7rem; margin: 0 auto clamp(2.6rem, 5vw, 3.6rem);
  max-width: 640px;
}
.statband__nums { display: flex; align-items: baseline; gap: .55em; font-family: var(--ff-mono); white-space: nowrap; }
.statband__nums .n { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 600; color: var(--ash); }
.statband__nums .n--zero { color: var(--amber); text-shadow: 0 0 22px var(--glow); }
.statband__arrow { color: var(--honey); font-size: 1.3rem; }
.statband p { color: var(--ash); font-size: .86rem; line-height: 1.5; margin: 0; }

/* ============================================================
   VERIFY PANEL (machine-checked staleness schematic)
   ============================================================ */
.verify { padding: 1.4rem 1.4rem 2.4rem; align-self: center; }
.verify__head {
  display: flex; gap: .5em; margin-bottom: 1rem;
  font-family: var(--ff-mono); font-size: .8rem; color: var(--ash);
}
.verify__head span:first-child { color: var(--pollen); }
.verify__row {
  padding: .75rem .8rem; margin-bottom: .55rem;
  background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid; gap: .35rem;
}
.verify__mem { font-size: .84rem; color: var(--wax); }
.verify__anchor { font-family: var(--ff-mono); font-size: .72rem; color: var(--ash-dim); }
.verify__anchor code { color: var(--ash); background: none; padding: 0; box-shadow: none; }
.vstat {
  justify-self: start; font-family: var(--ff-mono); font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .25em .7em; clip-path: var(--chamfer-sm);
}
.vstat--ok { color: var(--amber); background: rgba(212,170,0,.12); box-shadow: inset 0 0 0 1px var(--honey); }
.vstat--drift { color: var(--wax); background: #17130a; box-shadow: inset 0 0 0 1px var(--line); }
.vstat--radius { color: var(--ash-dim); background: #100f0c; box-shadow: inset 0 0 0 1px var(--withheld); }
.verify figcaption {
  position: absolute; left: 1.4rem; bottom: .85rem;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .06em; color: var(--ash-dim);
}
.fineprint { margin-top: 1.4rem; font-size: .8rem; color: var(--ash-dim); max-width: 52ch; }
.fineprint code { font-family: var(--ff-mono); color: var(--ash); font-size: .92em; }

/* ============================================================
   ROADMAP (labeled, not shipped)
   ============================================================ */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.road { padding: 1.4rem 1.3rem 1.5rem; }
.road__tag {
  display: inline-flex; margin-bottom: .9rem;
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ash-dim); padding: .25em .7em;
  box-shadow: inset 0 0 0 1px var(--withheld); clip-path: var(--chamfer-sm);
}
.road h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.road p { color: var(--ash); font-size: .86rem; }

/* ============================================================
   ENTERPRISE (private hosting — coming soon)
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.tier { padding: 1.7rem 1.6rem 1.8rem; transition: transform .25s ease; }
.tier:hover { transform: translateY(-4px); }
.tier__name { margin-bottom: .55rem; display: flex; align-items: center; gap: .55em; }
.tier__name::before {
  content: ""; flex: none; width: 11px; height: 12px; background: var(--honey);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.tier__for { color: var(--ash); font-size: .94rem; }
.tier-cta {
  display: flex; flex-direction: column; align-items: center;
  gap: .9rem; margin-top: clamp(2rem, 4vw, 3rem); text-align: center;
}
.tier-cta p { color: var(--ash-dim); font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .02em; }

/* ============================================================
   WAITLIST MODAL (native <dialog>; mobile-first — the unqueried
   rules below already are the ~375px layout, no query needed)
   ============================================================ */
.waitlist-dialog {
  padding: 0; border: 0; background: transparent; color: inherit;
  /* Re-center: the global `* { margin: 0 }` reset cancels the UA dialog centering. */
  margin: auto;
  width: min(30rem, calc(100vw - 2 * var(--pad)));
  max-height: 88vh;
  max-height: 88dvh;
  overscroll-behavior: contain;
}
.waitlist-dialog::backdrop { background: rgba(4,3,1,.78); backdrop-filter: blur(6px); }
.waitlist-dialog[open] { display: flex; } /* lets the inner form scroll while the dialog box stays viewport-safe */
.waitlist-form,
.waitlist-done {
  position: relative; isolation: isolate; width: 100%;
  max-height: inherit; overflow-y: auto;
  padding: 1.6rem 1.4rem 1.7rem;
  background: var(--carbon);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--chamfer);
}
.waitlist-form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.waitlist-form__head h3 { font-size: 1.22rem; margin: 0; padding-right: .5rem; }
.waitlist-form__close {
  flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--chamfer-sm);
  color: var(--ash); transition: color .2s ease, box-shadow .2s ease;
}
.waitlist-form__close:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--honey); }
.waitlist-form__lead { color: var(--ash); font-size: .92rem; line-height: 1.5; margin: .8rem 0 1.4rem; }
.waitlist-form__field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.waitlist-form__field label {
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash-dim);
}
.waitlist-form__optional { text-transform: none; letter-spacing: 0; }
.waitlist-form__field input, .waitlist-form__field textarea {
  width: 100%; display: block; font-family: var(--ff-body); font-size: 1rem; color: var(--wax);
  background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: .8em .85em; clip-path: var(--chamfer-sm); transition: box-shadow .2s ease;
}
.waitlist-form__field input:focus-visible, .waitlist-form__field textarea:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
.waitlist-form__field textarea { resize: vertical; min-height: 4.5rem; }
.waitlist-form__actions { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.6rem; flex-wrap: wrap; }
.waitlist-form__actions .btn { justify-content: center; }

/* Off-screen spam trap: still submitted (so bots trip it) but never seen or
   tabbed to. StaticForms strips any "honeypot" field from the email. */
.waitlist-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.waitlist-form[aria-busy="true"] .waitlist-form__field input,
.waitlist-form[aria-busy="true"] .waitlist-form__field textarea { opacity: .7; }

.waitlist-form__status {
  margin: 0 0 1.1rem; padding: .7em .85em;
  font-family: var(--ff-mono); font-size: .8rem; line-height: 1.45;
  color: var(--ember); background: rgba(255,122,92,.09);
  box-shadow: inset 0 0 0 1px rgba(255,122,92,.42); clip-path: var(--chamfer-sm);
}

/* Success confirmation — shares the .waitlist-form panel chrome (selector above). */
.waitlist-done { text-align: center; display: grid; gap: .5rem; place-items: center; }
.waitlist-form[hidden], .waitlist-done[hidden] { display: none; }
.waitlist-done__mark {
  width: 3rem; height: 3rem; margin-bottom: .3rem; display: grid; place-items: center;
  font-size: 1.5rem; color: #120e00; background: var(--honey);
  border-radius: 50%; box-shadow: 0 0 0 6px rgba(212,170,0,.14);
}
.waitlist-done__title { font-size: 1.22rem; margin: 0; }
.waitlist-done__lead { color: var(--ash); font-size: .92rem; line-height: 1.5; margin: 0; max-width: 28ch; }
.waitlist-done__actions { justify-content: center; margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem,6vw,4.5rem); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot__brand .brand { margin-bottom: 1rem; }
.foot__brand p { color: var(--ash); font-size: .9rem; max-width: 34ch; }
.foot__brand .swarm { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--honey); margin-top: 1rem; }
.foot__col h4 { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash-dim); margin-bottom: 1rem; font-weight: 500; }
.foot__col a { display: block; color: var(--ash); font-size: .9rem; padding: .3rem 0; transition: color .2s ease; }
.foot__col a:hover { color: var(--amber); }
.foot__base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--ff-mono); font-size: .72rem; color: var(--ash-dim); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .nevers { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .statband { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .tiers { grid-template-columns: 1fr; }
  .stig { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .setup__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  /* .nav__links / .nav__toggle / .gate are authored mobile-first above,
     with their own min-width:900px layer — nothing left to override here. */
}
@media (max-width: 560px) {
  .tools { grid-template-columns: 1fr; }
  .nevers { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .cmd { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .comb { animation: none; }
}
