/* HiveMind AI - company home, v7: a page you can play with.
   Ink + honey on a cool paper (light) or deep ink (dark). Schibsted Grotesk for words, JetBrains Mono for anything a
   machine says (logs, labels, receipts). Dense, small, precise: the product is shown working, not described big. */

:root {
  --bg: #f5f6f8; --bg-2: #ffffff; --bg-3: #eceef2; --bg-4: #e3e6eb;
  --text: #0e1319; --text-2: #46515e; --text-3: #6b7683;
  --line: rgba(14, 19, 25, .1); --line-2: rgba(14, 19, 25, .18);
  --honey: #f0ae2e; --honey-ink: #8f5800; --honey-soft: rgba(240, 174, 46, .16);
  --chaos: #8d98a5; --fail: #d4513a; --fail-soft: rgba(212, 81, 58, .13); --ok: #178a66; --ok-soft: rgba(23, 138, 102, .12);
  --person: #3d6fd8; --person-soft: rgba(61, 111, 216, .12);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px -32px rgba(14, 19, 25, .32), 0 0 0 1px var(--line);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1200px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c11; --bg-2: #10151c; --bg-3: #161c25; --bg-4: #1c2430;
    --text: #eef1f4; --text-2: #a5b0bc; --text-3: #7e8a97;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
    --honey-ink: #ffc552; --honey-soft: rgba(240, 174, 46, .14);
    --chaos: #5f6c7a; --fail: #ff7a66; --fail-soft: rgba(255, 122, 102, .14); --ok: #4fd1a1; --ok-soft: rgba(79, 209, 161, .12);
    --person: #8fb4ff; --person-soft: rgba(143, 180, 255, .13);
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090c11; --bg-2: #10151c; --bg-3: #161c25; --bg-4: #1c2430;
  --text: #eef1f4; --text-2: #a5b0bc; --text-3: #7e8a97;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --honey-ink: #ffc552; --honey-soft: rgba(240, 174, 46, .14);
  --chaos: #5f6c7a; --fail: #ff7a66; --fail-soft: rgba(255, 122, 102, .14); --ok: #4fd1a1; --ok-soft: rgba(79, 209, 161, .12);
  --person: #8fb4ff; --person-soft: rgba(143, 180, 255, .13);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--honey); color: #1a1203; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand svg { width: 24px; height: 24px; }
nav { display: flex; align-items: center; gap: 2px; }
.nav-l { display: none; padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 14px; }
.nav-l:hover { color: var(--text); background: var(--bg-3); }
.nav-cta { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); }
.nav-cta:hover { border-color: var(--honey); }
@media (min-width: 820px) { .nav-l { display: inline-block; } .nav-cta { margin-left: 8px; } }

/* ---------- buttons + chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  color: #1a1203; background: var(--honey); box-shadow: 0 8px 24px -12px rgba(240, 174, 46, .8); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(240, 174, 46, .95); }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; font-weight: 600;
  background: var(--text); color: var(--bg-2); transition: transform .15s var(--ease), background .15s; }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(.98); }
.chip-ghost { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.chip-yes { background: var(--honey); color: #1a1203; }

/* ---------- hero ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--honey-ink); margin-bottom: 18px; }
.eyebrow svg { width: 16px; height: 16px; color: var(--honey-ink); }
.hero h1 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem); font-weight: 750; letter-spacing: -.038em; line-height: 1.04; max-width: 15ch; }
.hero-goal { margin-top: 18px; font-size: 1.05rem; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.hero-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line); }
.hero-facts li { padding: 14px 12px 0 0; display: grid; gap: 2px; align-content: start; }
.hero-facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-facts b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
@media (min-width: 1000px) {
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 56px; }
  .hero-copy { padding-top: 30px; position: sticky; top: 90px; }
}

/* ---------- the playground ---------- */
.play { background: var(--bg-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 72px; }
.play-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sim-tag { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 4px 9px; border-radius: 6px; background: var(--honey-soft); color: var(--honey-ink);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sim-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }
.play-h { font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; color: var(--text-2); line-height: 1.3; }
.play-stage { position: relative; padding: 10px 10px 40px;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 18px 18px; background-position: 9px 9px; }
.map { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.hint { position: absolute; right: 10px; bottom: 6px; pointer-events: none; transition: opacity .4s var(--ease); }
.hint span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hint.gone { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .hint span { animation: bob 2.4s var(--ease) infinite; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* cells */
.cell { cursor: pointer; outline: none; }
.cell .hx { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1.2; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.cell .ic { fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.cell .lb { font: 600 10.5px var(--sans); fill: var(--text); text-anchor: middle; letter-spacing: -.01em; }
.cell .st { font: 500 8.6px var(--mono); fill: var(--text-3); text-anchor: middle; letter-spacing: .02em; }
.cell .ring { fill: none; stroke: var(--honey); stroke-width: 2.5; opacity: 0; }
.cell.hum.s-ok .hx { stroke: color-mix(in srgb, var(--person) 60%, transparent); stroke-dasharray: 4 3; }
.cell.hum.s-ok .ic { stroke: var(--person); }
.cell .vd { fill: var(--line-2); transition: fill .3s; }
.cell .vd.on { fill: var(--ok); }
.cell:hover .hx { stroke: var(--text-3); fill: var(--bg-4); }
.cell:focus-visible .ring { opacity: 1; }
.cell.s-broken .hx, .cell.s-queued .hx { fill: var(--fail-soft); stroke: var(--fail); }
.cell.s-broken .ic, .cell.s-queued .ic { stroke: var(--fail); }
.cell.s-broken .st, .cell.s-queued .st { fill: var(--fail); }
.cell.s-fixing .hx { fill: var(--honey-soft); stroke: var(--honey); stroke-width: 2; }
.cell.s-fixing .ic { stroke: var(--honey-ink); }
.cell.s-fixing .st { fill: var(--honey-ink); }
.cell.s-verifying .hx { fill: var(--ok-soft); stroke: var(--ok); }
.cell.s-verifying .ic, .cell.s-held .ic { stroke: var(--ok); }
.cell.s-verifying .st, .cell.s-held .st { fill: var(--ok); }
.cell.s-held .hx { stroke: var(--ok); }
.cell.s-waiting .hx, .cell.s-asking .hx { fill: var(--person-soft); stroke: var(--person); stroke-dasharray: 5 4; }
.cell.s-waiting .ic, .cell.s-asking .ic { stroke: var(--person); }
.cell.s-waiting .st, .cell.s-asking .st { fill: var(--person); }
@media (prefers-reduced-motion: no-preference) {
  .cell.s-broken .shk { animation: shake .5s var(--ease) 2; }
  .cell.s-fixing .hx { animation: glow 1s ease-in-out infinite; }
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes glow { 50% { fill: rgba(240, 174, 46, .32); } }
.demon-g { pointer-events: none; transition: transform .7s var(--ease); }
.demon-g .do { fill: var(--bg-2); stroke: var(--honey); stroke-width: 2.4; }
.demon-g .di { fill: var(--honey); }
.demon-g .halo { fill: none; stroke: var(--honey); stroke-width: 1.5; opacity: 0; }
.demon-g.busy .halo { opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .demon-g.busy .halo { animation: halo 1.1s ease-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes halo { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .demon-g { transition: none; } }
.home-l { font: 500 9px var(--mono); fill: var(--text-3); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }

.play-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.ctl-r { display: inline-flex; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + .sw { background: var(--fail); }
.switch input:checked + .sw::after { transform: translateX(14px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--honey); outline-offset: 2px; }

.play-foot { display: grid; border-top: 1px solid var(--line); }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tally li { padding: 10px 12px; display: grid; gap: 1px; }
.tally li + li { border-left: 1px solid var(--line); }
.tally b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; transition: color .3s; }
.tally span { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.tally b.bump { color: var(--honey-ink); }
.ask { margin: 12px 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--person-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--person) 40%, transparent); }
.ask-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--person); }
.ask-h svg { width: 16px; height: 16px; flex: none; }
.ask-b { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.ask-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ask-you { font-size: 12.5px; color: var(--text-3); margin-right: 4px; }
@media (prefers-reduced-motion: no-preference) { .ask:not([hidden]) { animation: rise .35s var(--ease); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.plog { height: 140px; overflow: hidden; padding: 10px 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  font: 400 12px/1.5 var(--mono); color: var(--text-2);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.plog li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; flex: none; }
.plog .tg { font-weight: 500; letter-spacing: .03em; color: var(--text-3); white-space: nowrap; }
.plog .tg-watch, .plog .tg-back { color: var(--fail); } .plog .tg-decide { color: var(--text); } .plog .tg-fix { color: var(--honey-ink); }
.plog .tg-verify { color: var(--ok); } .plog .tg-ask { color: var(--person); }
.plog .tx { min-width: 0; overflow-wrap: anywhere; }
.plog .tx b { color: var(--text); font-weight: 500; }
.plog .empty { display: block; color: var(--text-3); }
@media (min-width: 1000px) { .plog { height: 176px; } }
.play-note { padding: 10px 16px 12px; font-size: 12px; line-height: 1.5; color: var(--text-3); border-top: 1px solid var(--line); background: var(--bg-3); }
.play-note a { color: var(--text-2); }

/* ---------- sections ---------- */
.sec { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 58px; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head-row { display: grid; gap: 14px; max-width: none; }
.sec h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem); font-weight: 700; letter-spacing: -.034em; max-width: 22ch; }
.lede { color: var(--text-2); font-size: 15.5px; max-width: 56ch; }
@media (min-width: 1000px) {
  .sec { padding: 96px 0; }
  .sec-head-row { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 40px; }
}

/* why */
.why-grid { display: grid; gap: 28px; align-items: center; }
.why-copy { display: grid; gap: 14px; }
.why-copy .kicker { margin-bottom: -2px; }
.why-copy p:not(.kicker) { color: var(--text-2); max-width: 54ch; }
.demon { margin: 0; }
.demon-box { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); cursor: crosshair; touch-action: pan-y; }
.demon-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demon-l { position: absolute; top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); pointer-events: none; }
.demon-l-a { left: 12px; color: var(--text-3); }
.demon-l-b { right: 12px; color: var(--honey-ink); }
.demon figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
@media (min-width: 1000px) { .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

/* how: scroll-driven loop */
.how-grid { display: grid; gap: 8px; }
.ring-wrap { position: sticky; top: 58px; z-index: 2; background: var(--bg); padding: 8px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); }
.ring { display: block; width: 180px; height: 180px; margin: 0 auto; overflow: visible; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.ring-prog { fill: none; stroke: var(--honey); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 160px 160px; transition: stroke-dashoffset .7s var(--ease); }
.stn { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 2; transition: fill .4s, stroke .4s; }
.stn.on { fill: var(--honey); stroke: var(--honey); }
.stn-l { font: 500 15px var(--mono); fill: var(--text-3); text-anchor: middle; letter-spacing: .03em; transition: fill .4s; }
.stn-l.on { fill: var(--text); }
@media (max-width: 999px) { .stn-l { display: none; } }
.ring-demon { transition: transform .7s var(--ease); }
.rd-o { fill: var(--bg-2); stroke: var(--honey); stroke-width: 2.5; }
.rd-i { fill: var(--honey); }
.ring-big { font: 700 30px var(--sans); fill: var(--text); text-anchor: middle; letter-spacing: -.03em; }
.ring-small { font: 500 13px var(--mono); fill: var(--text-3); text-anchor: middle; }
@media (prefers-reduced-motion: reduce) { .ring-demon, .ring-prog { transition: none; } }
.steps { display: grid; }
.step { padding: 32px 0; border-bottom: 1px solid var(--line); opacity: .4; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step:last-child { border-bottom: 0; }
.step-n { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--honey-ink); }
.step h3 { margin-top: 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; }
.step p:not(.step-n):not(.rcpt) { margin-top: 8px; color: var(--text-2); max-width: 52ch; }
.rcpt { margin-top: 16px; display: inline-grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #0b0f15; color: #d6dde5; font: 400 12.5px/1.45 var(--mono); max-width: 100%; }
.rcpt-t { font-size: 11px; color: #7c8794; letter-spacing: .02em; }
@media (min-width: 1000px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .ring-wrap { top: 110px; align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .ring { width: 100%; max-width: 400px; height: auto; margin: 0; }
  .step { padding: 0; min-height: 38vh; display: flex; flex-direction: column; justify-content: center; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .step { opacity: 1; } }

/* the real log: a terminal, dark in both themes */
.log { background: var(--bg-3); }
.term { border-radius: 16px; overflow: hidden; background: #0b0f15; color: #c9d1da; box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.term :focus-visible { outline-color: #f0ae2e; }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #0f141b; }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.term-title { font: 500 12px var(--mono); color: #8a96a3; }
.term-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.seg button, .tbtn { border: 0; background: none; color: #96a2af; font: 500 12px var(--mono); padding: 6px 10px; border-radius: 6px; cursor: pointer; min-height: 30px; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.seg button:hover, .tbtn:hover { color: #fff; }
.tgrp { display: inline-flex; gap: 4px; }
.tbtn { background: rgba(255, 255, 255, .05); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.day { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; color: #7c8794; font: 500 10.5px var(--mono); text-align: center; }
.day .bar { display: block; min-height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.day:hover .bar { background: rgba(255, 255, 255, .25); }
.day.on { color: #f0ae2e; }
.day.on .bar { background: #f0ae2e; }
.tlines { height: 372px; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  font: 400 12.5px/1.55 var(--mono); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.tl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; padding: 3px 0; flex: none; }
.tl .tm { color: #6c7783; white-space: nowrap; }
.tl .who { color: #8a96a3; }
.tl .kd { display: inline-block; min-width: 62px; font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.tl .tx { color: #dbe2ea; }
.tl.k-watch .kd, .tl.k-check .kd, .tl.k-note .kd { color: #6c7783; }
.tl.k-fix .kd { color: #f0ae2e; }
.tl.k-verify .kd { color: #ff8a73; }
.tl.k-person .kd { color: #8fb4ff; }
.tl.pr .tx { color: #9aa6b2; font-style: italic; }
.tl .body { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.tl .who { text-align: right; }
.tl.fresh { animation: tin .4s var(--ease); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tl.fresh { animation: none; } }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; background: #f0ae2e; vertical-align: -2px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.term-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .07); font: 400 12px var(--mono); color: #7c8794; }
.term-next { margin-left: auto; }
.term-next b { color: #dbe2ea; font-weight: 500; font-variant-numeric: tabular-nums; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4fd1a1; flex: none; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: ping 2.4s var(--ease) infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 161, .55); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (min-width: 760px) {
  .tl { grid-template-columns: 104px 124px 78px minmax(0, 1fr); }
  .tl .body { display: contents; }
  .tl .who { text-align: left; }
}

/* proof */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fig-lead { grid-column: 1 / -1; }
.fig-b { width: 100%; height: 100%; display: grid; align-content: start; gap: 6px; text-align: left; cursor: pointer; padding: 18px 16px; border: 0; border-radius: 14px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.fig-b:hover { box-shadow: 0 0 0 1px var(--honey); transform: translateY(-2px); }
.fig-n { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fig-n i { font-style: normal; font-size: .45em; font-weight: 600; letter-spacing: 0; margin-left: 3px; color: var(--honey-ink); }
.fig-l { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.fig-l::after { content: " +"; color: var(--honey-ink); font-weight: 700; }
.fig-b[aria-expanded="true"] .fig-l::after { content: " \2212"; }
.fig-more { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); transition: max-height .4s var(--ease), opacity .3s; }
.fig-b[aria-expanded="true"] .fig-more { max-height: 160px; opacity: 1; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
@media (min-width: 1000px) { .figs { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); } .fig-lead { grid-column: auto; } .fig-b { padding: 22px 20px; } }

.proof-pair { display: grid; gap: 12px; margin-top: 12px; }
.card { position: relative; background: var(--bg-2); border-radius: 14px; padding: 22px 20px; box-shadow: 0 0 0 1px var(--line); }
.card h3 { font-size: 1.2rem; font-weight: 700; padding-right: 72px; }
.card > p:not(.kicker) { margin-top: 8px; color: var(--text-2); font-size: 14.5px; max-width: 56ch; }
.sbar { display: flex; gap: 3px; height: 22px; margin-top: 20px; }
.sb { border: 0; padding: 0; cursor: pointer; border-radius: 5px; transition: transform .2s var(--ease), filter .2s; min-width: 10px; }
.sb:hover, .sb.on { transform: scaleY(1.3); filter: brightness(1.08); }
.sb-held, .k-held { background: var(--ok); } .sb-back, .k-back { background: var(--fail); } .sb-wait, .k-wait { background: var(--chaos); }
.sbar-say { margin-top: 12px; font-size: 13.5px; color: var(--text-2); min-height: 2.6em; }
.k { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 6px 0 10px; }
.k:first-child { margin-left: 0; }
.fo-track { position: relative; height: 6px; margin: 26px 6px 0; border-radius: 3px; background: var(--line); }
.fo-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--chaos), var(--honey) 90%, var(--ok)); }
.fo-pip { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line-2); }
.fo-steps { display: grid; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--text); }
.fo-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; transition: color .3s; }
.js .fo-steps li { color: var(--text-3); }
.js .fo-steps li.on { color: var(--text); }
.fo-steps b { font: 500 12.5px var(--mono); color: var(--honey-ink); }
.fo-re { position: absolute; top: 18px; right: 16px; }
@media (min-width: 1000px) { .proof-pair { grid-template-columns: 1fr 1fr; } .card { padding: 26px; } }

/* products: bento */
.bento { display: grid; gap: 12px; }
.bx { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); padding: 22px 20px; display: grid; gap: 18px; transition: box-shadow .25s; }
.bx:hover { box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -30px rgba(14, 19, 25, .35); }
.bx-copy { display: grid; align-content: start; gap: 8px; }
.bx-url { font: 500 11.5px var(--mono); color: var(--text-3); }
.bx h3 { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bx-copy > p:not(.bx-url):not(.bx-asof) { color: var(--text-2); font-size: 14.5px; max-width: 46ch; }
.bx-copy b { color: var(--text); }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--honey-soft); color: var(--honey-ink); }
.bx-stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 8px 0 0; }
.bx-stats div { display: flex; flex-direction: column-reverse; }
.bx-stats dd { margin: 0; font-size: 1.65rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bx-stats dt { font-size: 12.5px; color: var(--text-3); }
.bx-asof { font-size: 12px; color: var(--text-3); }
.bx-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--honey-ink); text-decoration: none; justify-self: start; }
.bx-go::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 16px; }
.bx-go:hover { text-decoration: underline; }
.bx-go svg { width: 15px; height: 15px; }
.peek { border-radius: 10px 10px 0 0; overflow: hidden; margin: 0 0 -22px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -22px rgba(0, 0, 0, .45); height: 168px;
  transform: translateY(16px); transition: transform .45s var(--ease); }
.peek img { width: 100%; height: auto; }
.bx:hover .peek, .bx:focus-within .peek { transform: translateY(0); }
.peek-s { height: 120px; }
.bx-op { align-content: start; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.bx-op-h { font-size: 1.05rem !important; }
.duties { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-3); justify-self: start; }
.duties button { border: 0; background: none; padding: 7px 13px; border-radius: 7px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); min-height: 34px; }
.duties button[aria-selected="true"] { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.dl { display: grid; gap: 8px; }
.op-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12.5px var(--mono); color: var(--text-3); }
.op-next b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.dl li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.dl li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (prefers-reduced-motion: no-preference) { .duty:not([hidden]) .dl li { animation: rise .35s var(--ease) both; } .duty .dl li:nth-child(2) { animation-delay: .06s; } .duty .dl li:nth-child(3) { animation-delay: .12s; } }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-sq { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .bx-sq .peek { height: 236px; align-self: end; margin: 0 -24px -24px 0; border-radius: 10px 0 0 0; }
  .bx-op { grid-column: span 2; }
  .bx { padding: 24px; }
  .bx .peek-s { margin: 0 0 -24px; }
}

/* what stays human */
.hu { display: grid; gap: 12px; }
.hu li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.hu svg { width: 24px; height: 24px; color: var(--person); margin-bottom: 4px; }
.hu h3 { font-size: 1.1rem; font-weight: 700; }
.hu p { color: var(--text-2); font-size: 14.5px; }
.try { justify-self: start; margin-top: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--person); border-bottom: 1px dashed currentColor; }
.try:hover { border-bottom-style: solid; }
@media (min-width: 760px) { .hu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* contact */
.contact { padding: 64px 0; background: #0b0f14; color: #eef1f4; scroll-margin-top: 58px; }
.contact-grid { display: grid; gap: 24px; align-items: end; }
.contact h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem); font-weight: 700; letter-spacing: -.034em; max-width: 18ch; }
.contact p { margin-top: 12px; color: #a5b0bc; max-width: 54ch; font-size: 15.5px; }
.mail { justify-self: start; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: #f0ae2e; text-decoration: none;
  border-bottom: 2px solid rgba(240, 174, 46, .4); padding-bottom: 4px; overflow-wrap: anywhere; }
.mail:hover { border-bottom-color: #f0ae2e; }
.contact :focus-visible { outline-color: #f0ae2e; }
@media (min-width: 1000px) { .contact { padding: 88px 0; } .contact-grid { grid-template-columns: 1fr auto; } }

/* footer */
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.foot-row { display: grid; gap: 14px; font-size: 13.5px; color: var(--text-3); }
.brand-s { font-size: 15px; color: var(--text); }
.brand-s svg { width: 22px; height: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { text-decoration: none; color: var(--text-2); }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 1000px) { .foot-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }

/* ---------- Maxwell's demons, one at each side ----------
   Wide screens: the content column narrows to leave a gutter of at least 80px; a demon stands in a gap of a thin wall in
   each gutter and drifts with the scroll. Narrow screens: two small demons flank the hero's first line instead. */
.hero-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-top .eyebrow { margin-bottom: 0; }
.gd-mini { display: inline-flex; width: 20px; height: 20px; flex: none; }
.gd-mini-r { margin-left: auto; }
.gd-mini .gd-fig { width: 20px; height: 20px; overflow: visible; }
.gd-side { display: none; }
.gd-o { fill: var(--bg-2); stroke: var(--text-3); stroke-width: 1.6; transition: stroke .3s; }
.gd-i { fill: var(--honey); }
.gd-halo { fill: none; stroke: var(--honey); stroke-width: 1.2; opacity: 0; }
.gd-eye { transition: transform .3s var(--ease); }
.gd.alert .gd-o { stroke: var(--fail); }
.gd.alert .gd-halo { stroke: var(--fail); opacity: .7; }
.gd.fixed .gd-o { stroke: var(--ok); }
.gd.fixed .gd-halo { stroke: var(--ok); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .gd.alert .gd-halo, .gd.fixed .gd-halo { animation: gdp 1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes gdp { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
@media (max-width: 1099px) { .hero-top .eyebrow svg { display: none; } }
@media (min-width: 1100px) {
  .wrap { width: min(var(--wrap), 100% - 160px); }
  .gd-mini { display: none; }
  .hero-top .eyebrow svg { display: block; }
  .gd-side { display: block; position: fixed; top: 58px; bottom: 0; width: 30px; z-index: 5; pointer-events: none; --y: 40vh; }
  .gd-l { left: calc(max(80px, (100vw - 1200px) / 2) / 2 - 15px); }
  .gd-r { right: calc(max(80px, (100vw - 1200px) / 2) / 2 - 15px); }
  .gd-wall { position: absolute; left: 14.5px; width: 1px; }
  .gd-wa { top: 0; height: max(0px, calc(var(--y) - 24px)); background: linear-gradient(to bottom, transparent, var(--line-2)); }
  .gd-wb { top: calc(var(--y) + 24px); bottom: 0; background: linear-gradient(to bottom, var(--line-2), transparent); }
  .gd-side .gd-fig { position: absolute; left: 0; top: calc(var(--y) - 15px); width: 30px; height: 30px; overflow: visible; }
}
