/* Site styles: honey editorial (serif, cream, generous space) + graphite grid (mono data, strict lines).
   Phone first; larger screens are layered on in the media queries at the bottom. */

/* ---------- Fonts (self-hosted in fonts/, downloaded by tools/fetch_fonts.py) ----------
   Each family has a latin and a latin-ext file; browsers only download latin-ext if the page
   uses one of its characters. Fraunces and Inter are variable fonts, so one file covers the
   weight range. The heading font (Fraunces, latin) is preloaded in index.html. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/fraunces-normal-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/fraunces-normal-var-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/fraunces-italic-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/fraunces-italic-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-normal-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-normal-var-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-normal-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cream: #FBF5DF;      /* light yellow base */
  --paper: #FFFDF6;
  --white: #FFFFFF;
  --ink: #1C1A16;
  --ink-soft: #3A362E;
  --muted: #6B6456;
  --line: #E8DFC2;
  --line-strong: #D9CDA6;
  --honey: #F5B800;      /* the one accent: fills behind ink text */
  --honey-deep: #8A5A00; /* same accent, darkened for small text on cream */
  --honey-wash: #FBEBB0;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: 20px;
  --max: 1160px;
  --radius: 14px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared pieces ---------- */

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--honey-deep);
}
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-honey { background: var(--honey); border-color: var(--honey); }
.btn-honey:hover { background: #E5AB00; border-color: #E5AB00; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(28, 26, 22, 0.06); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.section { padding: 88px 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; }
.section-head p:not(.label) { color: var(--muted); font-size: 1.0625rem; }
/* Honey highlighter behind key words */
.hl { background: linear-gradient(transparent 60%, var(--honey) 60%, var(--honey) 92%, transparent 92%); padding: 0 0.08em; }
.section-head h2 em.hl { white-space: nowrap; } /* a highlighted phrase stays on one line */

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* The mark is drawn on a 32-unit grid, so 32px (and 16px) render it pixel-sharp */
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { font: 500 1rem/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }

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

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.nav-links { display: none; gap: 32px; font-size: 0.9375rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header .btn { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }

/* Very small phones (under 360px, e.g. the first iPhone SE): tighten the header so the
   name and the button fit on one line without sideways scrolling. */
@media (max-width: 359.98px) {
  :root { --gutter: 16px; }
  .site-header .wrap { gap: 10px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand svg { width: 28px; height: 28px; }
  .site-header .brand span { font-size: 0.875rem; }
  .site-header .btn { min-height: 40px; padding: 0 12px; font-size: 0.875rem; }
  .hero h1 { font-size: 2.4rem; } /* keeps the headline from breaking into single words */
}

/* Tablets (768 to 959px): the links don't fit beside the name and button, so they get
   their own row under them. From 960px everything sits on one row (see Desktop below). */
@media (min-width: 768px) and (max-width: 959.98px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; row-gap: 14px; }
  .site-header nav { order: 3; width: 100%; border-top: 1px solid var(--line); }
  .nav-links { display: flex; justify-content: space-between; padding: 12px 0 14px; }
}

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

.hero { position: relative; overflow: hidden; padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); line-height: 1.02; max-width: 15ch; margin: 22px 0 24px; }
.hero h1 em { font-style: italic; white-space: nowrap; } /* keep the highlighted phrase on one line */
.hero-lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: grid; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 500; }

/* ---------- Hero animation (drawn by hero-hive.js) ----------
   Kept faint on purpose so it never competes with the headline. Phones and tablets get it below
   the text; from 960px it fills the right half of the hero. The mask fades the grid out towards
   every edge around a focus point (--hive-focus-y, also read by the script, which only lights
   cells well inside the fully visible area and draws the walk towards that point). */

.hero-visual { position: relative; }
.js .hero-visual { margin-top: 32px; }
.hero-hive, .hero-hive-caption { display: none; }
.js .hero-hive {
  --hive-focus-y: 46%;
  display: block; position: relative; height: 380px; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 50% var(--hive-focus-y), #000 64%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% var(--hive-focus-y), #000 64%, transparent 100%);
}
.hero-hive svg { display: block; width: 100%; height: 100%; }
/* Under the grid on phones and tablets; on desktop it floats just under the lit area. */
.js .hero-hive-caption {
  display: block; margin: 4px 0 0; text-align: center; text-wrap: balance;
  font: 400 0.8125rem/1.4 var(--sans); color: var(--muted);
}

/* Lit cells fade by age: the script sets --lvl from 1 (the newest step) down to about .1. */
.hive-cell { --lvl: 1; }
.hive-hex { fill: transparent; stroke: #E2D5AA; stroke-width: 1.2; transition: fill 1.1s ease, stroke 1.1s ease; }
.hive-cell.is-on .hive-hex {
  fill: rgba(251, 235, 176, calc(.08 + .92 * var(--lvl)));
  stroke: color-mix(in srgb, #E5C463 calc(var(--lvl) * 100%), #E2D5AA);
}
.hive-cell.is-current .hive-hex { fill: var(--honey-wash); stroke: #E9B21C; }

/* Step names sit inside their cell. */
.hive-label { font: 500 13px/1 var(--sans); fill: var(--ink-soft); text-anchor: middle; opacity: 0; transition: opacity 1s ease; }
.hive-cell.is-on .hive-label { opacity: calc(.3 + .7 * var(--lvl)); }
.hive-cell.is-current .hive-label { opacity: 1; fill: var(--ink); }
.is-small .hive-label { font-size: 12px; }

/* The halo behind the newest cell: two of them cross-fade (quick in, slow out); it never moves. */
.hive-glow { opacity: 0; transition: opacity 1s ease; }
.hive-glow.is-on { opacity: 1; transition-duration: .3s; }

/* The walls between consecutive steps stay softly lit as the route, dimming with the cell they
   lead into. */
.hive-edge { --lvl: 1; stroke: #F0B200; stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: opacity .8s ease; }
.hive-edge.is-on { opacity: calc(.12 + .6 * var(--lvl)); }

/* A newly lit cell and its wall fade in quickly (~300ms, FADE_IN in the script); after that the
   slower transitions above handle dimming with age. */
.hive-cell.is-fresh .hive-hex, .hive-cell.is-fresh .hive-label, .hive-edge.is-fresh { transition-duration: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-hive * { animation: none !important; transition: none !important; }
}

/* ---------- Explainer (explainer.js): time, money, opportunity, before the live demo ----------
   An SVG stage in the explainer video's coordinates (860 × 810, origin in the centre), drawn in
   the site's light style. Cards and lines change with data-state; CSS transitions animate it. */

.explainer-section { border-bottom: 1px solid var(--line); }
.explainer-layout { display: grid; }
.explainer-layout .section-head { margin-bottom: 28px; }
.explainer {
  position: relative; overflow: hidden; width: 100%; max-width: 600px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 24px;
}
.explainer [hidden] { display: none !important; } /* explainer.js shows the stage and buttons once styles apply */
.explainer-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 4px; background: var(--line); }
.explainer-bar span { display: block; height: 100%; background: var(--honey); transform: scaleX(0); transform-origin: left; }
.explainer-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 0 18px; }
.explainer-skip { font: 400 0.8125rem/1.3 var(--mono); color: var(--muted); text-underline-offset: 3px; }
/* Sound: an obvious ink pill while muted ("Tap for sound"), a quiet outline once on ("Mute"). */
.explainer-sound {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream);
  font: 600 0.9375rem/1 var(--sans); white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(28, 26, 22, .5);
}
.explainer-sound:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.explainer-sound svg { width: 22px; height: 22px; flex: none; }
.explainer-sound .sound-off { display: none; }
.explainer-sound[data-on] { background: transparent; color: var(--ink); box-shadow: none; }
.explainer-sound[data-on]:hover { background: rgba(28, 26, 22, .06); }
.explainer-sound[data-on] .sound-waves { display: none; }
.explainer-sound[data-on] .sound-off { display: inline; }
.explainer-skip:hover { color: var(--ink); }
.explainer-stage { position: relative; aspect-ratio: 860 / 810; margin-top: -8px; }
.explainer-svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Captions: two lines reserved, so the card never jumps; the word being spoken gets the honey highlighter. */
.explainer-caption {
  min-height: calc(2 * 1.3em + 32px); margin: 0 18px; padding: 12px 2px 20px; border-top: 1px solid var(--line);
  text-align: center; text-wrap: balance;
  font: 600 clamp(1.125rem, 4.4vw, 1.5rem)/1.3 var(--sans); color: var(--ink);
}
.explainer-caption .is-now { background: linear-gradient(transparent 58%, var(--honey) 58%, var(--honey) 92%, transparent 92%); }
.explainer-note {
  position: absolute; left: 0; right: 0; bottom: 4%; padding: 0 22px; text-align: center; text-wrap: balance;
  font: 400 0.75rem/1.45 var(--mono); color: var(--muted);
}
.explainer-transcript { padding: 4px 22px 22px; color: var(--ink-soft); }
/* Playing: the transcript is for screen readers only. Without JavaScript only the transcript shows. */
.js .explainer:not([data-static]) .explainer-transcript {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html:not(.js) .explainer > :not(.explainer-transcript) { display: none; }
html:not(.js) .explainer-transcript { padding-top: 22px; }
.explainer[data-static] :is(.explainer-bar, .explainer-caption, .explainer-note, [data-ex-sound], [data-ex-replay]) { display: none; }

/* End screen over the held last frame. */
.explainer-end {
  position: absolute; left: 0; right: 0; bottom: 12px; display: grid; justify-items: center; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.explainer[data-ended] .explainer-end { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* The end screen owns the caption line: nothing from the captions may show beside it. */
.explainer[data-ended] .explainer-caption { visibility: hidden; }
.explainer-live { min-height: 60px; padding: 0 34px; font-size: 1.125rem; box-shadow: 0 14px 30px -14px rgba(28, 26, 22, .45); }
.explainer[data-static] .explainer-end { position: static; padding-bottom: 24px; }

/* Stage pieces */
.explainer-svg text { text-anchor: middle; dominant-baseline: central; }
.ex-scene { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ex-scene.is-current { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.ex-node { transition: opacity .45s ease; }
.ex-node[data-state="hidden"] { opacity: 0; }
.ex-node[data-state="dimmed"], .ex-scene[data-focus] .ex-node:not(.is-focused):not(.ex-focus) { opacity: .38; }
.ex-body { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.2, .8, .3, 1.2), filter .45s ease; }
.ex-node[data-state="hidden"] .ex-body { transform: translateY(12px) scale(.94); }

.ex-cell { fill: var(--cream); stroke: var(--line-strong); stroke-width: 3.5; stroke-linejoin: round; transition: fill .45s ease, stroke .45s ease; }
.ex-icon { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s ease; }
.ex-label { font: 600 34px var(--sans); fill: var(--muted); transition: fill .45s ease; }
.ex-hex[data-state="active"] .ex-cell { fill: var(--honey-wash); stroke: var(--honey); }
.ex-hex[data-state="active"] .ex-icon, .ex-hex[data-state="won"] .ex-icon { stroke: var(--ink); }
.ex-hex:is([data-state="active"], [data-state="won"], [data-state="red"]) .ex-label { fill: var(--ink); }
.ex-hex[data-state="active"] .ex-body { filter: drop-shadow(0 0 14px rgba(245, 184, 0, .45)); }
.ex-hex[data-state="won"] .ex-cell { fill: var(--honey); stroke: var(--honey-deep); }
.ex-hex[data-state="won"] .ex-body { filter: drop-shadow(0 0 18px rgba(245, 184, 0, .6)); }
.ex-hex[data-state="red"] .ex-cell { fill: #F6E4DA; stroke: #A4462F; }
/* The logo's honey box vanishes on a honey card, so the card swaps to the cream-box version. */
.ex-logo { transition: opacity .45s ease; }
.ex-logo-on-honey, .ex-hex[data-state="won"] .ex-logo:not(.ex-logo-on-honey) { opacity: 0; }
.ex-hex[data-state="won"] .ex-logo-on-honey { opacity: 1; }
.ex-hex[data-state="red"] .ex-icon { stroke: #A4462F; }

.ex-line { stroke: var(--line-strong); stroke-width: 3; stroke-dasharray: 9 11; stroke-linecap: round; transition: stroke .45s ease, opacity .45s ease; }
.ex-line[data-state="hidden"] { opacity: 0; }
.ex-line[data-state="active"] { stroke: #E5AB00; stroke-width: 4; }
.ex-line[data-state="dim"] { opacity: .35; }
.ex-token circle { fill: var(--ink); }
.ex-token .ex-icon { stroke: var(--cream); }

.ex-badge circle { fill: var(--paper); stroke-width: 3; }
.ex-badge.is-red circle { stroke: #A4462F; }
.ex-badge.is-red .ex-icon { stroke: #A4462F; }
.ex-badge.is-honey circle { stroke: var(--honey); }
.ex-badge.is-honey .ex-icon { stroke: var(--honey-deep); }

.ex-title { font: 400 70px var(--serif); letter-spacing: -0.01em; fill: var(--ink); }
.ex-tag rect { fill: var(--cream); stroke: var(--line-strong); stroke-width: 2.5; transition: fill .45s ease, stroke .45s ease; }
.ex-tag text { font: 500 30px var(--mono); fill: var(--muted); transition: fill .45s ease; }
.ex-tag[data-state="active"] rect { fill: var(--honey-wash); stroke: var(--honey); }
.ex-tag[data-state="active"] text { fill: var(--ink-soft); }
.ex-clock rect { fill: var(--paper); stroke: var(--line-strong); stroke-width: 2.5; transition: stroke .45s ease; }
.ex-clock text { font: 500 38px var(--mono); fill: var(--ink); transition: fill .45s ease; }
.ex-clock[data-state="red"] rect { stroke: #A4462F; }
.ex-clock[data-state="red"] text { fill: #A4462F; }
.ex-clock[data-state="red"] .ex-icon { stroke: #A4462F; }

.ex-banner rect { fill: var(--honey); }
.ex-banner text { font: 600 36px var(--sans); fill: var(--ink); }
.ex-banner.is-red rect { fill: #F6E4DA; stroke: #A4462F; stroke-width: 2.5; }
.ex-banner.is-red text { fill: #A4462F; }
.ex-banner[data-state="hidden"] .ex-body { transform: scale(.85); }
.ex-focus { fill: none; stroke: var(--honey-deep); stroke-width: 3; stroke-dasharray: 10 8; }

.ex-unit { fill: var(--cream); stroke: var(--line-strong); stroke-width: 2; transition: fill .3s ease, stroke .3s ease; }
.ex-unit.is-red { fill: #F6E4DA; stroke: #A4462F; }
.ex-stat { font: 400 128px var(--serif); letter-spacing: -0.02em; fill: var(--ink); }
.ex-stat-label { font: 500 34px var(--sans); fill: var(--ink-soft); }

/* Jumps (replay, reduced motion) skip the transitions. */
.explainer.is-seeking *, .explainer[data-static] * { transition: none !important; }

/* ---------- Demo (the centerpiece): the race, then the savings calculator ----------
   demo.js plays the race. Without JavaScript everything shows in its finished state; with it,
   the .js rules hide what hasn't happened yet and .is-in / .is-typing reveal it. */

.demo-section { background: var(--paper); border-bottom: 1px solid var(--line); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }

.race {
  position: relative; overflow: hidden; display: grid; gap: 14px;
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 24px; padding: 14px;
}
/* Thin progress bar along the top edge; it hands over to the honey line on Part 2 at the end. */
.race-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--line); }
.race-bar span { display: block; height: 100%; background: var(--honey); transform: scaleX(0); transform-origin: left; transition: opacity .5s ease; }
.race[data-state="done"] .race-bar span { opacity: 0; transition-delay: .2s; }

.race-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 4px 0; }
.race-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-left: auto; }
.race-controls[hidden], .race-controls [hidden] { display: none; }
.race-replay { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.race-skip {
  padding: 6px 2px; background: none; border: 0; cursor: pointer;
  font: 400 0.8125rem/1.3 var(--mono); color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.race-skip:hover { color: var(--ink); }
.race-sound {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink-soft);
}
.race-sound:hover { border-color: var(--ink); color: var(--ink); }
.race-sound svg { width: 20px; height: 20px; }
.race-sound .sound-off { display: none; }
.race-sound[aria-pressed="false"] { color: var(--muted); }
.race-sound[aria-pressed="false"] .sound-waves { display: none; }
.race-sound[aria-pressed="false"] .sound-off { display: inline; }

/* Says plainly that the inquiry is an example, and invites the visitor to send it. */
.race-intro { display: grid; justify-items: start; gap: 8px; padding: 0 4px; }
.race-example {
  padding: 6px 12px; border: 1px solid var(--honey); border-radius: 999px; background: var(--honey-wash);
  font: 500 0.75rem/1.35 var(--mono); letter-spacing: 0.02em; color: var(--ink-soft);
}
.race-hint { font-size: 0.9375rem; color: var(--muted); }

/* The lead form, pre-filled and editable. What's sent shows in both lanes. */
.race-lead { display: grid; gap: 14px; padding: 18px; }
.race-send { display: none; } /* needs JavaScript to do anything */
.js .race-send { display: grid; margin-top: 2px; }
.race-lead-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.race-lead-title h3 { font-size: 1.25rem; }
.race-lead-title small { font: 400 0.75rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.field { display: grid; gap: 6px; }
.field label { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 1rem; line-height: 1.4; /* 16px keeps iOS from zooming in on focus */
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 12px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--honey-wash); }
.field textarea { resize: none; }

/* The two lanes: stacked on phones ("With Hive" second), side by side from 720px. */
.lanes { display: grid; gap: 14px; }
.lane { position: relative; display: grid; grid-template-rows: auto 1fr; align-content: start; overflow: hidden; }
/* Shown in both lanes until the inquiry is sent. */
.lane .lane-idle {
  display: none; position: absolute; left: 0; right: 0; top: 112px; max-width: none; padding: 0 18px;
  text-align: center; font: 400 0.8125rem/1.4 var(--mono); color: var(--muted);
}
.js .race[data-state="idle"] .lane-idle { display: block; }
.js .race[data-state="idle"] :is(.wait, .slow-log) { visibility: hidden; }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lane-head h3 { display: flex; align-items: center; gap: 9px; font-size: 1.25rem; line-height: 1.2; }
.lane-head h3 svg { width: 24px; height: 24px; flex: none; }
.lane-sub { margin-top: 3px; font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
.lane-clock, .lane-timer { flex: none; text-align: right; }
.lane-clock time, .lane-timer time { display: block; font: 500 1.375rem/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lane-clock small, .lane-timer small { display: block; margin-top: 5px; font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lane-slow .lane-head h3 { color: var(--ink-soft); }
/* "· AI assistant" beside the lane name, in the subtitle's mono style. In a narrow lane (phones,
   tablets) it moves under the name, without the dot, flush with the "Texting" line below. */
.lane-fast { container-type: inline-size; }
.lane-fast .lane-head h3 { flex-wrap: wrap; row-gap: 2px; }
.lane-role { margin-left: -3px; font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
@container (max-width: 420px) {
  .lane-role { flex-basis: 100%; margin-left: 0; }
  .lane-role-dot { display: none; }
}
.lane-fast .lane-timer time { color: var(--honey-deep); }

.lane-body { display: grid; align-content: start; gap: 18px; padding: 18px; }
.inbox-item {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.inbox-from { min-width: 0; }
.inbox-from b { display: block; font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-from small { display: block; font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
.inbox-badge {
  padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--cream);
  font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.inbox-text { grid-column: 2 / -1; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); overflow-wrap: anywhere; }
.wait { font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); }
.wait b { display: block; margin-top: 4px; font: 400 clamp(1.75rem, 6vw, 2.25rem)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.slow-log { display: grid; gap: 12px; padding-left: 14px; border-left: 1px dashed var(--line-strong); }
.slow-log li { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.slow-log time { display: block; font: 500 0.75rem/1.4 var(--mono); color: var(--ink-soft); }

/* Outcomes carry a small hexagon: honey when won, muted red when lost. */
.outcome { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.outcome::before {
  content: ""; flex: none; width: 14px; height: 16px; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.outcome-lost { color: #A4462F; background: #F6E4DA; border: 1px solid #EBC9BA; }
.outcome-won { color: var(--ink); background: var(--honey-wash); border: 1px solid var(--honey); }
.outcome-won::before { background: var(--honey-deep); }

/* Stat captions that fade in at the matching moment; the full figures are in "Why speed matters". */
.stat-note { display: grid; gap: 4px; padding: 10px 14px; background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--honey); border-radius: 10px; }
.stat-note p { font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.stat-note cite { font: 400 0.6875rem/1.4 var(--mono); font-style: normal; color: var(--muted); }
.stat-note a { text-underline-offset: 3px; }
.race-chat li.stat-note { align-self: stretch; max-width: none; margin: 2px 0; }
.race-chat .stat-note p { padding: 0; border-radius: 0; }
.slow-log li.stat-note { margin-left: -6px; }

.race-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 6px; }
.race-chat li { position: relative; max-width: 86%; }
.race-chat li[data-from="lead"] { align-self: flex-start; }
.race-chat li[data-from="ai"] { align-self: flex-end; }
.race-chat p { padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.race-chat li[data-from="lead"] p { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.race-chat li[data-from="ai"] p { background: var(--ink); color: var(--cream); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.race-results { display: grid; gap: 8px; padding: 10px 16px 18px; }

/* Typing dots (added by demo.js), drawn over the top of the bubble that's about to appear. */
.dots { position: absolute; top: 0; display: flex; gap: 5px; padding: 14px; border-radius: 18px; opacity: 0; transition: opacity .2s ease; }
li[data-from="lead"] .dots { left: 0; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--muted); }
li[data-from="ai"] .dots { right: 0; background: var(--ink); border-bottom-right-radius: 6px; color: var(--cream); }
/* "AI reply · 0:42" over the first reply; its typing dots sit below the tag, where the bubble lands. */
.reply-tag { display: block; margin-bottom: 5px; text-align: right; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.04em; color: var(--honey-deep); }
.race-chat li:has(.reply-tag) .dots { top: 23px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot-bounce 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.race[data-paused] .dots i { animation-play-state: paused; }
.race-chat li.is-typing .dots { opacity: 1; }

/* What hasn't happened yet (only when JavaScript plays the race). */
.js .race .inbox-item, .js .race .slow-log li, .js .race .outcome, .js .race .stat-note, .js .race .race-chat p, .js .race .reply-tag {
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .3, 1.25);
}
.js .race .is-in, .js .race .slow-log li.is-in, .js .race .is-in > p, .js .race .is-in > .reply-tag { opacity: 1; transform: none; }

/* Part 2. Its honey line sweeps across as the progress bar fades, then the calculator unfolds. */
.calc-fold { position: relative; padding: 22px 4px 4px; }
.calc-fold::before {
  content: ""; position: absolute; top: 0; left: -14px; right: -14px; height: 3px; background: var(--honey);
  transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.4, 0, .2, 1) .2s;
}
.race[data-calc-open] .calc-fold::before { transform: scaleX(1); }
.js .race:not([data-calc-open]) .calc-fold::before { transition: none; }
.calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.calc-hint { font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); }
.calc-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .8s cubic-bezier(.2, .7, .2, 1) .5s; }
.calc-inner { min-height: 0; overflow: hidden; transition: opacity .6s ease .7s; }
.js .race:not([data-calc-open]) .calc-body { grid-template-rows: 0fr; }
.js .race:not([data-calc-open]) .calc-inner { opacity: 0; }

.calc-intro { display: grid; gap: 8px; padding-top: 20px; max-width: 640px; }
.calc-intro h3 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.08; }
.calc-intro p { color: var(--muted); }
.calc-intro .calc-lead { font-weight: 500; color: var(--ink-soft); }
.calc { display: grid; gap: 14px; margin-top: 24px; }

.calc-inputs { display: grid; gap: 22px; padding: 22px 20px; }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; }
.slider label { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-soft); }
.slider output { font: 500 0.9375rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Range inputs: a honey fill up to the thumb (--fill, set by demo.js) on a cream-line track. */
.slider input {
  --fill: 50%;
  grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--honey) var(--fill), var(--line-strong) var(--fill)); }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink);
}
.slider input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.slider input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--honey); }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.slider input:focus-visible { outline: none; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px var(--honey-wash); }
.slider input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px var(--honey-wash); }

/* Results on ink, like the stats section. */
.calc-out { display: grid; gap: 16px; align-content: start; }
.results { display: grid; gap: 1px; background: #3A362E; border: 1px solid #3A362E; border-radius: 18px; overflow: hidden; }
.result { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--ink); color: var(--cream); }
.result-name { font-size: 0.9375rem; color: #E8E0CB; }
.result-figure { font: 400 2.25rem/1 var(--serif); letter-spacing: -0.02em; color: var(--honey); font-variant-numeric: tabular-nums; }
.result-main .result-figure { font-size: clamp(3rem, 12vw, 4.5rem); }
.result-formula { font: 400 0.75rem/1.5 var(--mono); color: #A39A86; }
.result-figure.result-phrase { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
/* Time saved: full width under the money figures, the per-agent share beside the team total. */
.result-time { grid-column: 1 / -1; gap: 16px; }
.result-time > div { display: grid; gap: 8px; align-content: start; }
.result-sub { font-size: 1.0625rem; line-height: 1.4; color: #E8E0CB; }
.result-sub b { font: 400 1.75rem/1 var(--serif); color: var(--honey); font-variant-numeric: tabular-nums; }
.calc-assume { padding-top: 16px; border-top: 1px solid var(--line); font: 400 0.75rem/1.5 var(--mono); color: var(--muted); }
.calc-footnote { font: 400 0.8125rem/1.5 var(--mono); color: var(--muted); }

/* Closing reminder: the calculator covers one system; the call covers the rest. */
.calc-close { display: grid; gap: 18px; justify-items: start; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.calc-close p { max-width: 62ch; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }
.calc-close a:not(.btn) { color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* What happens after booking, in small text under the button. */
.calc-next { display: grid; gap: 10px; justify-items: start; }
.calc-close .calc-next p { max-width: 36ch; font: 400 0.8125rem/1.5 var(--mono); color: var(--muted); }
/* Where the AI's answers come from, under the race. */
.race-note { max-width: 72ch; padding: 0 4px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }

.demo-note { margin-top: 16px; font: 400 0.8125rem/1.5 var(--mono); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .race *, .race *::before, .race *::after { animation: none !important; transition: none !important; }
}

/* ---------- How it works ---------- */

.how-list { border-top: 1px solid var(--ink); }
.how-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.how-list .num { font: 500 0.875rem/1.9 var(--mono); color: var(--honey-deep); }
.how-list h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 6px; }
.how-list p { color: var(--muted); }
.how .section-head h2 em { font-style: italic; }

/* ---------- Stats ---------- */

.stats-section { background: var(--ink); color: var(--cream); }
.stats-section .label { color: var(--honey); }
.stats-section .section-head p:not(.label) { color: #B9B09C; }
.stats { display: grid; gap: 1px; background: #3A362E; border: 1px solid #3A362E; border-radius: var(--radius); overflow: hidden; }
.stat { display: grid; gap: 10px; align-content: start; padding: 28px 24px; background: var(--ink); }
.stat-figure { font: 400 clamp(3rem, 10vw, 4.25rem)/1 var(--serif); color: var(--honey); letter-spacing: -0.03em; }
.stat-label { color: #E8E0CB; }
.stat-source { font: 400 0.75rem/1.4 var(--mono); font-style: normal; color: #8F8775; }
.stat-source a { text-underline-offset: 3px; }
.stats-section :focus-visible { outline-color: var(--honey); }

/* ---------- Other systems ---------- */

.systems { display: grid; gap: 14px; }
.system { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.system svg { width: 40px; height: 40px; margin-bottom: 8px; }
.system h3 { font-size: 1.5rem; line-height: 1.2; }
.system p { color: var(--muted); }

/* ---------- About ---------- */

/* overflow-x: clip keeps the honeycomb accent from causing sideways scrolling on phones. */
.about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: clip; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.about-photo { position: relative; margin: 0 auto; width: 100%; max-width: 360px; }
/* Same faint cells as the hero, fading out at the edges; static. */
.about-comb {
  position: absolute; left: -22%; right: -22%; top: -16%; bottom: -10%; width: 144%; height: 126%; pointer-events: none;
  fill: none; stroke: #E2D5AA; stroke-width: 1.2;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.about-portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--cream);
  box-shadow: 0 22px 44px -22px rgba(28, 26, 22, .28), 0 2px 8px rgba(28, 26, 22, .06);
}
/* multiply turns the photo's white background into the card's cream, so there's no white box.
   The photo is scaled to 94% of the card's height and sits on its bottom edge, which leaves the
   top of the hair about 9% below the top of the card; the sides stay filled and are cropped. */
.about-portrait img {
  position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none;
  transform: translateX(-50%); mix-blend-mode: multiply;
}
.about-portrait.is-missing { display: grid; place-items: center; }
.about-portrait.is-missing::before { content: "JM"; font: 400 4.5rem/1 var(--serif); color: var(--honey-deep); opacity: .5; }
.about-photo figcaption { position: relative; margin-top: 16px; text-align: center; font: 400 0.8125rem/1.5 var(--sans); color: var(--muted); text-wrap: balance; }
.about-copy .section-head { margin-bottom: 24px; }
.about-text { display: grid; gap: 18px; max-width: 60ch; }
.about-text p { color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- Call to action ---------- */

.cta { padding: 88px 0; }
.cta-card { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 48px 26px; background: var(--honey); border-radius: 28px; }
.cta-card > :not(.cta-mark) { position: relative; }
.cta-card .label { color: var(--ink); }
.cta-card h2 { font-size: clamp(2.25rem, 8vw, 4rem); line-height: 1.02; max-width: 13ch; }
.cta-card p:not(.label) { max-width: 34rem; font-size: 1.0625rem; }
.cta-card .btn { justify-self: start; }
.cta-card small { font: 400 0.8125rem/1.4 var(--mono); }
.cta-mark { position: absolute; right: -60px; bottom: -70px; width: 300px; height: 300px; opacity: 0.12; pointer-events: none; }

/* ---------- 404 page (404.html) ---------- */

.not-found { position: relative; overflow: hidden; padding: 72px 0 96px; }
.not-found .wrap { position: relative; }
.not-found h1 { font-size: clamp(2.6rem, 9vw, 4.25rem); line-height: 1.02; max-width: 13ch; margin: 22px 0 24px; }
/* The booking card's house, large and faint at the right; only where there's room beside the text. */
.not-found-mark { display: none; }

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

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .brand svg { width: 32px; height: 32px; }
.site-footer p { font: 400 0.8125rem/1.5 var(--mono); color: var(--muted); }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .js .hero-hive { height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .cta-card { padding: 64px 56px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-time { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .result-main { grid-column: 1 / -1; padding: 26px 24px; }
}

/* The two lanes side by side once each has room for the chat (stacked on phones). */
@media (min-width: 720px) {
  .lanes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .nav-links { display: flex; }
  .hero { padding: 104px 0 112px; }
  /* The animation covers the right half of the hero, full height, so it sits level with the
     headline; the text keeps to the left half (the wrap's left edge to the middle, minus a gap). */
  .hero .wrap { position: static; }
  /* Wide enough for the two buttons side by side; on narrow desktops it may run ~30px into the
     grid's half, where the grid has already faded out (and that half ignores clicks). */
  .hero-copy { position: relative; z-index: 1; max-width: min(520px, calc(50vw - var(--gutter) + 32px)); }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding: 0 20px; font-size: 0.9375rem; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); }
  .js .hero-visual { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; margin: 0; pointer-events: none; }
  /* Focus higher up, so the lit cells sit level with the headline rather than the buttons. */
  .js .hero-hive { --hive-focus-y: 36%; position: absolute; inset: 0; height: auto; }
  /* The script keeps lit cells above the caption (it reads where the caption sits). */
  .js .hero-hive-caption { position: absolute; left: 0; right: 0; top: 62%; margin: 0; padding: 0 16px; }
  .section, .cta { padding: 128px 0; }

  /* Photo column ~40%, text ~60%. */
  .about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .about-photo { max-width: 420px; margin: 0; }

  /* Explainer: the intro beside the animation. */
  .explainer-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 64px; align-items: center; }
  .explainer-layout .section-head { margin-bottom: 0; }
  .explainer { margin: 0; justify-self: end; }

  /* Lead form: name and phone stacked on the left, the message beside them. */
  .race { gap: 18px; padding: 18px; }
  .race-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "title title" "name message" "phone message" ". send"; padding: 20px 22px; }
  .js .race-send { grid-area: send; justify-items: end; }
  .calc-close { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .race-lead-title { grid-area: title; }
  .field-name { grid-area: name; }
  .field-phone { grid-area: phone; }
  .field-message { grid-area: message; grid-template-rows: auto 1fr; }
  .field-message textarea { height: 100%; }
  .lane-body { padding: 22px; }
  .calc-fold::before { left: -18px; right: -18px; }
  .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 18px; }
  .calc-inputs { padding: 26px 24px; }

  .how { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .how .section-head { position: sticky; top: 40px; }
  .how-list li { grid-template-columns: 80px 1fr; padding: 32px 0; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .systems { grid-template-columns: repeat(4, 1fr); }
  .cta-card { padding: 96px 80px; }
  .cta-mark { width: 460px; height: 460px; right: -40px; bottom: -110px; }
  .site-footer .wrap { grid-auto-flow: column; justify-content: space-between; align-items: center; }

  .not-found { padding: 128px 0 160px; }
  /* bottom: -25px is the 2 empty units under the legs (400px / 32 × 2), so the house stands on the footer line. */
  .not-found-mark { display: block; position: absolute; right: 6%; bottom: -25px; width: 400px; height: 400px; opacity: .07; }
}
