/**
 * DROOLY.AI homepage — "Retro-futurist premium"
 * ------------------------------------------------------------------
 * Layout discipline: enormous type, one idea per viewport section,
 * massive whitespace, cinematic reveals. Skin: 1980s personal-computing
 * warmth — six-stripe spectrum, beige/CRT nostalgia, rounded geometry.
 *
 * The spectrum band is generic 1980s design language applied to DROOLY'S
 * OWN triangle-eye mark and UI. It is never drawn in any fruit silhouette
 * and implies no affiliation with any hardware company.
 *
 * Scoped to `body.home-v2` so every other page keeps the Time Gods chrome.
 * Loaded AFTER styles.css; overrides only what the homepage needs.
 *
 * Contract notes kept from hard-won bugs elsewhere in this repo:
 *  - never a bare `1fr` in grid-template-columns (that is minmax(auto,1fr)
 *    and blows out narrow viewports) — always minmax(0, 1fr).
 *  - coarse-pointer rules are or-shaped, never (pointer: coarse) alone.
 *  - every tappable clears 44px on BOTH axes.
 */

body.home-v2 {
  /* --- warm CRT foundation ------------------------------------- */
  --hv-espresso: #17120e;
  --hv-espresso-2: #1f1811;
  --hv-espresso-3: #2a2118;
  --hv-paper: #f4ead8;
  --hv-paper-2: #e9dbc2;
  --hv-ink: #f8f0e2;
  --hv-ink-dim: #d9cbb4;
  --hv-ink-mute: #a99b85;
  --hv-ink-dark: #1a1410;
  --hv-ink-dark-dim: #4a3d30;

  /* --- the six-stripe spectrum (warm sunset order) -------------- */
  --hv-s1: #e8552f;
  --hv-s2: #f2892c;
  --hv-s3: #f5c242;
  --hv-s4: #4fa96b;
  --hv-s5: #2e8fb5;
  --hv-s6: #7b4fa3;
  /* signature note from the mark's pupil — keeps the brand legible */
  --hv-mint: #7fe8d0;

  --hv-band: linear-gradient(90deg,
    var(--hv-s1) 0 16.666%, var(--hv-s2) 16.666% 33.333%,
    var(--hv-s3) 33.333% 50%, var(--hv-s4) 50% 66.666%,
    var(--hv-s5) 66.666% 83.333%, var(--hv-s6) 83.333% 100%);
  --hv-band-soft: linear-gradient(90deg,
    rgba(232, 85, 47, .9), rgba(242, 137, 44, .9), rgba(245, 194, 66, .9),
    rgba(79, 169, 107, .9), rgba(46, 143, 181, .9), rgba(123, 79, 163, .9));

  --hv-round: 18px;
  --hv-round-sm: 12px;
  --hv-round-pill: 999px;
  --hv-shell: min(calc(100% - 40px), 1180px);
  --hv-serif: "EB Garamond", "Instrument Serif", Iowan Old Style, Georgia, "Times New Roman", serif;

  background: var(--hv-espresso);
  color: var(--hv-ink);
}

/* CRT phosphor wash + very low-opacity scanlines over the whole page.
   Fixed + pointer-events:none so it never eats a tap. */
body.home-v2::before,
body.home-v2::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body.home-v2::before {
  background:
    radial-gradient(ellipse 70% 45% at 12% -6%, rgba(245, 194, 66, .16), transparent 62%),
    radial-gradient(ellipse 60% 40% at 92% 4%, rgba(232, 85, 47, .12), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 108%, rgba(46, 143, 181, .10), transparent 65%);
}
body.home-v2::after {
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .55;
}
@media (prefers-contrast: more) {
  body.home-v2::after { display: none; }
}
body.home-v2 .site-header,
body.home-v2 main,
body.home-v2 .site-footer,
body.home-v2 .launch-rail { position: relative; z-index: 1; }

/* ─── chrome overrides ─────────────────────────────────────────── */
/* Brand lockup: the spectrum-banded triangle-eye (transparent SVG) plus a
   type wordmark. The v3 wordmark PNG is white-on-BLACK and paints a hard
   black slab on a warm header, so the homepage sets the mark itself instead
   of a raster lockup. If the SVG fails to load the wordtext still reads. */
.hv-brand { gap: 12px; }
.hv-brand img { width: 40px; height: 40px; }
.hv-brandword {
  font-family: var(--tg-sans);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--hv-ink);
  line-height: 1;
}
.hv-brandword i { font-style: normal; color: var(--hv-mint); }
body.home-v2 .main-nav a.button-primary {
  background: var(--hv-paper);
  border-color: transparent;
  color: var(--hv-ink-dark);
  border-radius: var(--hv-round-pill);
  font-weight: 700;
}
body.home-v2 .main-nav a.button-primary:hover { background: var(--hv-mint); color: var(--hv-ink-dark); }
body.home-v2 .site-header {
  background: rgba(23, 18, 14, .78);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 0;
}
body.home-v2 .site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--hv-band);
  opacity: .9;
}
body.home-v2 .site-header.is-scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
/* Header nav links inherit a 44px height from styles.css but only text width.
   On these pages give them the second axis too — 44px on BOTH axes is the
   floor that has shipped broken here before. */
body.home-v2 .main-nav a { color: var(--hv-ink-dim); min-width: 44px; justify-content: center; }
body.home-v2 .main-nav a:hover { color: var(--hv-ink); }
body.home-v2 .header-status { color: var(--hv-ink-mute); }
body.home-v2 .header-status-dot { background: var(--hv-mint); box-shadow: 0 0 0 4px rgba(127, 232, 208, .16); }

body.home-v2 .launch-rail {
  background: var(--hv-espresso-2);
  border-block: 0;
  color: var(--hv-ink-dim);
}
body.home-v2 .launch-rail a,
body.home-v2 .footer-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
body.home-v2 .launch-rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--hv-band);
}

/* ─── shared homepage primitives ───────────────────────────────── */
.hv-shell { width: var(--hv-shell); margin-inline: auto; }

.hv-section {
  padding: clamp(96px, 15vw, 200px) 0;
  position: relative;
}
.hv-section.is-paper {
  background: var(--hv-paper);
  color: var(--hv-ink-dark);
}
.hv-section.is-paper::before,
.hv-section.is-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--hv-band);
}

.hv-eyebrow {
  margin: 0 0 26px;
  font-family: var(--tg-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hv-ink-mute);
}
.is-paper .hv-eyebrow { color: #7a6a52; }

/* The one type gesture the whole page hangs on. */
.hv-display {
  margin: 0;
  font-family: var(--hv-serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 9.2vw, 7rem);
  line-height: .96;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hv-h2 {
  margin: 0;
  font-family: var(--hv-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hv-h3 {
  margin: 0;
  font-family: var(--hv-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hv-lede {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(1.12rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--hv-ink-dim);
  text-wrap: pretty;
}
.is-paper .hv-lede { color: var(--hv-ink-dark-dim); }
.hv-body { margin: 20px 0 0; color: var(--hv-ink-dim); max-width: 62ch; }
.is-paper .hv-body { color: var(--hv-ink-dark-dim); }
.hv-wide { max-width: 46ch; }

.hv-serif-em { font-family: var(--hv-serif); font-style: italic; font-weight: 500; }

/* Spectrum rule — the era gesture, used under headlines + as a divider. */
.hv-rule {
  width: clamp(120px, 22vw, 260px);
  height: 10px;
  margin: 34px 0 0;
  border: 0;
  border-radius: var(--hv-round-pill);
  background: var(--hv-band);
}
.hv-rule.is-full { width: 100%; }

/* Chunky rounded buttons with a spectrum sweep on hover. 44px both axes. */
.hv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  min-width: 56px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: var(--hv-round-pill);
  background: var(--hv-paper);
  color: var(--hv-ink-dark);
  font-family: var(--tg-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms var(--tg-ease), box-shadow 180ms var(--tg-ease), background-color 180ms var(--tg-ease), color 180ms var(--tg-ease);
}
.hv-btn > span { position: relative; z-index: 1; }
.hv-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hv-band-soft);
  transform: translateY(101%);
  transition: transform 320ms var(--tg-ease);
}
.hv-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .38); }
.hv-btn:hover::before { transform: translateY(0); }
.hv-btn:hover { color: #fff; }
.hv-btn:active { transform: translateY(0); }
.hv-btn:focus-visible {
  outline: 3px solid var(--hv-mint);
  outline-offset: 4px;
}
.hv-btn.is-ghost {
  background: transparent;
  border-color: rgba(248, 240, 226, .34);
  color: var(--hv-ink);
}
.is-paper .hv-btn.is-ghost { border-color: rgba(26, 20, 16, .28); color: var(--hv-ink-dark); }
.hv-btn.is-ghost:hover { border-color: transparent; color: #fff; }

.hv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hv-link {
  display: inline;
  font-weight: 650;
  color: var(--hv-mint);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.is-paper .hv-link { color: #1d6b8f; }
/* Standalone (non-inline) links are real targets: 44px on BOTH axes. */
.hv-actions .hv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
}
.hv-link:focus-visible { outline: 3px solid var(--hv-mint); outline-offset: 4px; border-radius: 4px; }

/* Status pills — honest labels, era-styled. */
.hv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: var(--hv-round-pill);
  font-family: var(--tg-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid currentColor;
}
.hv-pill.is-live { color: #58c98a; }
.is-paper .hv-pill.is-live { color: #2f7d51; }
.hv-pill.is-staged { color: var(--hv-s3); }
.is-paper .hv-pill.is-staged { color: #97701a; }
.hv-pill.is-adult { color: var(--hv-s1); }

/* ─── reveals ───────────────────────────────────────────────────
   Gated on `.reveal-on`, which ONLY home.js adds. With JS blocked or
   broken the page paints in full — an unconditional `opacity: 0` here
   would hide the entire site behind a script, which is exactly the kind
   of fragility this homepage is arguing against. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms var(--tg-ease), transform 760ms var(--tg-ease);
  transition-delay: calc(var(--hv-i, 0) * 90ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hv-btn, .hv-btn::before { transition: none; }
  .hv-mark-spin { animation: none !important; }
}

/* ─── hero ─────────────────────────────────────────────────────── */
.hv-hero {
  position: relative;
  padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hv-hero .hv-lede { max-width: 40ch; }
.hv-hero-note {
  margin: 34px 0 0;
  max-width: 52ch;
  font-family: var(--tg-mono);
  font-size: .76rem;
  line-height: 1.75;
  color: var(--hv-ink-mute);
}

/* ART SLOT — see index.html. Sized so a future original character render
   drops straight in at 4/5 without touching layout. */
.hv-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(23, 18, 14, .85), transparent 60%),
    linear-gradient(180deg, #2b1b3f 0%, #6a2f56 34%, #c4562f 62%, #f0a03a 82%, #f6d27a 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
}
.hv-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* retro sun bands behind the mark */
.hv-art::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: min(78%, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(23, 18, 14, .34) 34px 42px),
    linear-gradient(180deg, #ffd98a, #ff8a3c 60%, #e8552f);
  opacity: .72;
}
.hv-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
  opacity: .5;
}
.hv-art-mark {
  position: relative;
  z-index: 2;
  width: min(54%, 268px);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .45));
}
.hv-art-cap {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  margin: 0;
  font-family: var(--tg-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* ─── proof ticker ─────────────────────────────────────────────── */
.hv-ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  margin: 0;
  border-radius: var(--hv-round);
  overflow: hidden;
  background: rgba(248, 240, 226, .12);
}
.hv-ticker > div {
  background: var(--hv-espresso-2);
  padding: 26px 22px;
  min-height: 128px;
}
.hv-ticker dt {
  margin: 0 0 14px;
  font-family: var(--tg-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hv-ink-mute);
}
.hv-ticker dd { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.hv-ticker dd small { display: block; margin-top: 6px; font-size: .78rem; font-weight: 500; color: var(--hv-ink-mute); }

/* ─── two-column narrative ─────────────────────────────────────── */
.hv-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* the inversion table */
.hv-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  border-radius: var(--hv-round);
  overflow: hidden;
  background: rgba(26, 20, 16, .16);
}
.hv-compare > div { background: var(--hv-paper); padding: 24px 26px; min-height: 112px; }
.hv-compare .hv-c-head {
  font-family: var(--tg-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7a6a52;
  margin: 0 0 10px;
}
.hv-compare p:last-child { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.hv-compare .is-them { background: var(--hv-paper-2); color: #6a5a45; }
.hv-compare .is-us { position: relative; font-weight: 650; }
.hv-compare .is-us::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--hv-band);
}

/* ─── layer stack ──────────────────────────────────────────────── */
.hv-layers { display: grid; list-style: none; padding: 0; gap: 2px; margin: 0; border-radius: var(--hv-round); overflow: hidden; background: rgba(248, 240, 226, .12); }
.hv-layer {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 24px;
  background: var(--hv-espresso-2);
}
.hv-layer-n { font-family: var(--tg-mono); font-size: .8rem; color: var(--hv-ink-mute); }
.hv-layer h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.01em; }
.hv-layer p { margin: 0; color: var(--hv-ink-mute); font-size: .95rem; line-height: 1.5; }

/* ─── cards ────────────────────────────────────────────────────── */
.hv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
/* Inside a two-column narrative the cards read as a stacked list, not a ragged grid. */
.hv-split .hv-cards { grid-template-columns: minmax(0, 1fr); }
.hv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--hv-round);
  background: var(--hv-espresso-2);
  border: 2px solid rgba(248, 240, 226, .10);
  transition: transform 240ms var(--tg-ease), border-color 240ms var(--tg-ease);
}
.is-paper .hv-card { background: rgba(255, 255, 255, .5); border-color: rgba(26, 20, 16, .12); }
.hv-card:hover { transform: translateY(-4px); border-color: rgba(248, 240, 226, .26); }
.hv-card p { margin: 0; color: var(--hv-ink-mute); line-height: 1.55; }
.is-paper .hv-card p { color: var(--hv-ink-dark-dim); }
.hv-card .hv-pill { align-self: flex-start; }
.hv-card .hv-actions { margin-top: auto; padding-top: 8px; }

.hv-shot {
  margin: 0 0 4px;
  border-radius: var(--hv-round-sm);
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--hv-espresso-3);
}
.hv-shot img { width: 100%; height: 100%; object-fit: cover; }

/* Source-trail / directory cards: whole card is the target, so it needs a
   real hit area and a real focus ring. */
.hv-signal { gap: 8px; text-decoration: none; min-height: 132px; }
.hv-signal strong { font-size: 1.06rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.hv-signal small { margin-top: auto; color: var(--hv-ink-mute); font-size: .78rem; }
.is-paper .hv-signal small { color: #7a6a52; }
.hv-signal-tag {
  font-family: var(--tg-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hv-ink-mute);
}
.is-paper .hv-signal-tag { color: #7a6a52; }
.hv-signal:focus-visible { outline: 3px solid var(--hv-mint); outline-offset: 4px; }
.is-paper .hv-signal:focus-visible { outline-color: #1d6b8f; }
.hv-signal::after { content: ""; height: 4px; border-radius: 999px; background: var(--hv-band); opacity: 0; transition: opacity 200ms var(--tg-ease); }
.hv-signal:hover::after { opacity: 1; }

/* Photo variant of the art frame — no sunset gradient, no CRT stripes. */
.hv-art-photo { background: var(--hv-espresso-2); aspect-ratio: 561 / 720; }
.hv-art-photo::before, .hv-art-photo::after { content: none; }
.hv-art-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03) sepia(.14); }
.hv-art-photo figcaption { z-index: 3; }
.hv-art-photo .source-badge {
  position: static;
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--hv-round-pill);
  background: rgba(23, 18, 14, .88);
  border: 1px solid rgba(248, 240, 226, .22);
  color: var(--hv-ink);
  font-size: .62rem;
  letter-spacing: .14em;
  backdrop-filter: none;
}

/* ─── founder band ─────────────────────────────────────────────── */
.hv-founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hv-founder-portrait { margin: 0; border-radius: var(--hv-round); overflow: hidden; position: relative; }
.hv-founder-portrait img { width: 100%; height: auto; filter: saturate(.72) contrast(1.04) sepia(.18); }
.hv-founder-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--hv-band);
}
.hv-role {
  margin: 18px 0 0;
  font-family: var(--tg-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hv-ink-mute);
}
.is-paper .hv-role { color: #7a6a52; }
.hv-quote {
  margin: 30px 0 0;
  font-family: var(--hv-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

/* ─── heartbeat slot ───────────────────────────────────────────── */
.hv-heartbeat-mount { margin-top: 40px; }

/* ─── closing ──────────────────────────────────────────────────── */
.hv-close { text-align: center; }
.hv-close .hv-lede { margin-inline: auto; }
.hv-close .hv-actions { justify-content: center; }
.hv-close .hv-rule { margin-inline: auto; }
.hv-mark-spin { width: 96px; height: 96px; margin: 0 auto 30px; display: block; }

/* ─── footer ───────────────────────────────────────────────────── */
body.home-v2 .site-footer { background: var(--hv-espresso-2); border-top: 0; position: relative; }
body.home-v2 .site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--hv-band);
}
body.home-v2 .footer-nav a { color: var(--hv-ink-mute); }
body.home-v2 .footer-nav a:hover { color: var(--hv-ink); }
body.home-v2 .footer-brand p { color: var(--hv-ink-mute); }

/* ─── responsive ───────────────────────────────────────────────────
   Gates are width-first and or-shaped; a coarse pointer never gates a
   layout rule on its own. */
@media (max-width: 1020px) {
  .hv-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hv-art { max-width: 460px; aspect-ratio: 5 / 4; }
  .hv-split { grid-template-columns: minmax(0, 1fr); }
  .hv-founder { grid-template-columns: minmax(0, 1fr); }
  .hv-founder-portrait { max-width: 380px; }
  .hv-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px), (max-height: 460px) and (orientation: landscape) {
  .hv-section { padding: clamp(72px, 16vw, 120px) 0; }
}
@media (max-width: 720px) {
  body.home-v2 { --hv-shell: min(calc(100% - 32px), 1180px); }
  body.home-v2 .launch-rail-sep { display: none; }
  .hv-layer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hv-layer-n { order: -1; }
  .hv-compare { grid-template-columns: minmax(0, 1fr); }
  .hv-btn { width: 100%; }
  .hv-actions { gap: 12px; }
  .hv-ticker > div { min-height: 112px; padding: 22px 18px; }
}
@media (max-width: 420px) {
  .hv-ticker { grid-template-columns: minmax(0, 1fr); }
}
/* Hover affordances only where hover is real; tap devices get the flat state. */
@media (hover: none) {
  .hv-btn:hover { transform: none; box-shadow: none; }
  .hv-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  .hv-lede, .hv-body, .hv-card p, .hv-layer p { color: var(--hv-ink); }
  .is-paper .hv-lede, .is-paper .hv-body, .is-paper .hv-card p { color: var(--hv-ink-dark); }
  .hv-btn.is-ghost { border-color: var(--hv-ink); }
}
@media print {
  body.home-v2::before, body.home-v2::after { display: none; }
  .hv-art { display: none; }
}
