/* ==========================================================================
   higgs.css - THE FOUNDATION SEQUENCE (site-fable-higgsfield Home)
   Standalone stylesheet for the cinematic Home. Depth pages keep styles.css
   + v3.css and are reskinned by higgs-depth.css.
   Palette and type are DESIGN.md law: Inter only, seven colours, 60/30/10.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* DESIGN.md tokens */
  --blue: #0074fe;
  --ink: #000e11;
  --paper: #fcfcfc;
  --grey: #d8d8d8;
  --ice: #d8ecf3;
  --navy: #003584;
  --cyan: #68b4d6;

  /* Derived atmosphere (packaging of the tokens, not new colours) */
  --ink-92: rgba(0, 14, 17, 0.92);
  --ink-72: rgba(0, 14, 17, 0.72);
  --ice-88: rgba(216, 236, 243, 0.88);
  --ice-64: rgba(216, 236, 243, 0.64);
  --ice-40: rgba(216, 236, 243, 0.4);
  --ice-16: rgba(216, 236, 243, 0.16);
  --ice-08: rgba(216, 236, 243, 0.08);
  --cyan-45: rgba(104, 180, 214, 0.45);
  --cyan-25: rgba(104, 180, 214, 0.25);

  --font: 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type shading for text set over artwork: a crisp inner edge plus a
     soft ink halo, so overlay copy reads on any brightness */
  --text-shade: 0 1px 2px rgba(0, 14, 17, 0.92), 0 3px 20px rgba(0, 14, 17, 0.8);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--ink);
  color: var(--ice-88);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.hg-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.hg-skip {
  position: fixed; top: -48px; left: 16px; z-index: 300;
  background: var(--blue); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-weight: 400; font-size: 0.9rem;
  transition: top 0.2s var(--ease-out);
}
.hg-skip:focus-visible { top: 12px; }

/* ---------- Type registers ---------- */
.hg-display {
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--paper);
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  text-wrap: balance;
}
.hg-display--ink { color: var(--ink); }
.hg-blue { color: var(--blue); }
.hg-blue-ice { color: var(--ice); font-weight: 620; }

.hg-lead {
  font-weight: 250;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ice-88);
  max-width: 34em;
}

.hg-ann {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-64);
  font-weight: 400;
}

.hg-link {
  display: inline-block;
  font-weight: 400;
  color: var(--ice);
  border-bottom: 1px solid var(--cyan-45);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.hg-link:hover { color: var(--blue); border-color: var(--blue); }
.hg-link--ink { color: var(--ink); border-color: rgba(0, 14, 17, 0.35); }
.hg-link--ink:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Buttons: brand pill ---------- */
.hg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 12px 26px;
  min-height: 44px;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}
.hg-btn--primary { background: var(--blue); color: var(--paper); }
.hg-btn--primary:hover { background: #2a89ff; transform: translateY(-2px); }
.hg-btn--ghost { border: 1px solid var(--ice-40); color: var(--ice); }
.hg-btn--ghost:hover { border-color: var(--blue); color: var(--paper); transform: translateY(-2px); }
.hg-btn--lg { padding: 16px 34px; font-size: 1.05rem; }

.hg-ctarow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hg-ctasub { margin-top: 14px; }

/* ---------- Bands ---------- */
.hg-band--void { background: var(--ink); }
.hg-band--ice {
  background: linear-gradient(180deg, var(--paper) 0%, var(--ice) 100%);
  color: var(--ink);
}
.hg-band--ice .hg-ann { color: rgba(0, 14, 17, 0.55); }
.hg-band--deep {
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(0, 116, 254, 0.5) 0%, rgba(0, 53, 132, 0) 60%),
    linear-gradient(180deg, #001d4a 0%, var(--navy) 38%, #00286b 66%, var(--ink) 100%);
}

/* ==========================================================================
   HEADER + NAV
   ========================================================================== */
.hg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.hg-header.is-scrolled {
  background: var(--ink-72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--ice-08);
}
.hg-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
/* The white horizontal lockup, glyph-tight artwork: CSS height = symbol
   height. 30px puts the lockup at ~154px wide, well above the 80px brand
   minimum, and actually readable. */
.hg-nav__logo { display: inline-flex; align-items: center; }
.hg-nav__logo img { height: 30px; width: auto; }
@media (max-width: 900px) { .hg-nav__logo img { height: 26px; } }
.hg-nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.hg-nav__link {
  font-size: 0.92rem; font-weight: 350; color: var(--ice-88);
  transition: color 0.25s;
}
.hg-nav__link:hover { color: var(--paper); }
.hg-nav__cta { padding: 10px 22px; font-size: 0.9rem; }
.hg-nav__toggle { display: none; }

@media (max-width: 900px) {
  .hg-nav__toggle {
    display: grid; gap: 5px; padding: 10px; z-index: 120;
  }
  .hg-nav__toggle span {
    width: 24px; height: 1.5px; background: var(--ice);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  body.menu-open .hg-nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .hg-nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .hg-nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hg-nav__links {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(0, 14, 17, 0.97);
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s, visibility 0.35s;
  }
  body.menu-open .hg-nav__links { visibility: visible; opacity: 1; }
  .hg-nav__link { font-size: 1.6rem; font-weight: 620; letter-spacing: -0.01em; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Fixed drawing-set HUD ---------- */
.hg-hud {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  mix-blend-mode: exclusion;
  pointer-events: none;
}
.hg-hud .hg-ann { color: var(--ice-88); }
.hg-hud__label { color: var(--ice-64); }
@media (max-width: 1099px) { .hg-hud { display: none; } }

/* ==========================================================================
   MEDIA LAYERS (video + still + veil)
   ========================================================================== */
.hg-media { position: absolute; inset: 0; overflow: hidden; }
.hg-media__still,
.hg-media__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hg-media__video { opacity: 0; transition: opacity 1.2s ease; }
.hg-media__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hg-media__video { display: none; }
  .hg-media.is-motion-opt-in .hg-media__video { display: block; transition: none; }
}
.hg-film-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ice-40); border-radius: 999px;
  background: var(--ink-72); color: var(--ice);
  letter-spacing: 0.12em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
html.js .hg-film-toggle { display: inline-flex; }
.hg-film-toggle::before {
  content: ''; width: 7px; height: 7px;
  border: 1px solid currentColor; border-radius: 50%;
}
.hg-film-toggle[aria-pressed='true']::before { background: currentColor; }
.hg-film-toggle:hover { border-color: var(--ice); color: var(--paper); background: var(--ink-92); }
@media (min-width: 1100px) {
  .hg-film-toggle { right: 160px; }
}
@media (max-width: 700px) {
  .hg-film-toggle { right: 20px; top: 96px; bottom: auto; }
}
.hg-media__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 14, 17, 0.86) 0%, rgba(0, 14, 17, 0.44) 46%, rgba(0, 14, 17, 0.12) 74%, rgba(0, 14, 17, 0.32) 100%),
    linear-gradient(180deg, rgba(0, 14, 17, 0.55) 0%, rgba(0, 14, 17, 0) 26%, rgba(0, 14, 17, 0) 62%, var(--ink) 100%);
}
.hg-media__veil--cta {
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(0, 14, 17, 0.42) 30%, rgba(0, 14, 17, 0.5) 70%, rgba(0, 14, 17, 0.88) 100%);
}

/* ==========================================================================
   C1. HERO
   ========================================================================== */
.hg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.hg-hero__media { z-index: -1; }
.hg-hero__inner {
  position: relative;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(64px, 9vh, 110px);
}
.hg-hero__eyebrow { margin-bottom: 22px; }
.hg-hero__title { font-size: clamp(2.6rem, 6.7vw, 6.5rem); max-width: 11.5em; }
.hg-hero__row {
  margin-top: clamp(26px, 3.6vh, 42px);
  display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 6vw, 96px);
  align-items: flex-start;
}
.hg-benefits { display: grid; gap: 8px; }
.hg-benefits li {
  position: relative; padding-left: 22px;
  font-weight: 300; font-size: 0.98rem; color: var(--ice-88);
}
.hg-benefits li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 1.5px; background: var(--blue);
}
.hg-hero__cta { margin-top: clamp(28px, 4vh, 46px); }

.hg-hero__hud { position: absolute; inset: 0; pointer-events: none; }
.hg-hero__hud span { position: absolute; }
.hg-hero__hud-tl { top: 96px; left: var(--gutter); }
.hg-hero__hud-tr { top: 96px; right: var(--gutter); }
.hg-hero__hud-bl { bottom: 28px; left: var(--gutter); }
@media (max-width: 700px) { .hg-hero__hud-tr, .hg-hero__hud-bl { display: none; } }
@media (max-width: 360px) { .hg-hero__hud-tl { display: none; } }

/* ========================================================================== 
   C2. PROOF (ice)
   ========================================================================== */
.hg-proof { padding-block: clamp(84px, 13vh, 150px); }
.hg-proof__ann { margin-bottom: 26px; }
.hg-proof__lead {
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  color: var(--ink);
  max-width: 17em;
  text-wrap: balance;
}
.hg-proof__lead .word { display: inline-block; }
.hg-proof__foot {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 14px 42px; align-items: baseline;
}
.hg-proof__support { font-weight: 300; color: rgba(0, 14, 17, 0.72); }

/* ==========================================================================
   C3. PROBLEM (void)
   ========================================================================== */
.hg-problem { padding-block: clamp(100px, 15vh, 180px); position: relative; }
.hg-problem .hg-ann { margin-bottom: 18px; }
.hg-problem__lead { margin-top: 26px; }

/* ---------- The handoff deck: three villain cards, one dying pass ---------- */
.hg-deck {
  position: relative;
  margin-top: clamp(56px, 9vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.8vw, 56px);
  max-width: 1160px;
  perspective: 1200px;
}
.hg-deck__arrows {
  position: absolute;
  top: -105px; left: 0;
  width: 100%; height: auto;
  z-index: 3;
  pointer-events: none;
}
.hg-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ice-16);
  background: var(--ink);
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.hg-card::after {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid var(--ice-08);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}
.hg-card:hover {
  border-color: rgba(0, 116, 254, 0.55);
  box-shadow: 0 28px 70px rgba(0, 116, 254, 0.22);
}
.hg-card__art { aspect-ratio: 3 / 4; }
.hg-card__art img { width: 100%; height: 100%; object-fit: cover; }
.hg-card__plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 72px 22px 20px;
  background: linear-gradient(180deg, rgba(0, 14, 17, 0) 0%, rgba(0, 14, 17, 0.58) 28%, rgba(0, 14, 17, 0.92) 58%, rgba(0, 14, 17, 0.97) 100%);
}
.hg-card__tag { margin-bottom: 8px; color: var(--cyan); text-shadow: var(--text-shade); }
.hg-card__name {
  font-weight: 620; font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.015em; color: var(--paper);
  line-height: 1.15;
  text-shadow: var(--text-shade);
}
.hg-card__line {
  margin-top: 6px; font-weight: 250; font-size: 0.95rem; color: var(--ice-88);
  text-shadow: var(--text-shade);
}

@media (max-width: 900px) {
  .hg-deck { grid-template-columns: 1fr; gap: 52px; max-width: 420px; }
  .hg-deck__arrows { display: none; }
  .hg-card + .hg-card::before {
    content: '';
    position: absolute; top: -46px; left: 50%;
    height: 40px;
    border-left: 2px dashed var(--cyan-45);
  }
}

/* ---------- THE ANSWER: the B catches the dropped pass ---------- */
.hg-answer {
  position: relative;
  margin-top: clamp(28px, 4vh, 48px);
  padding-top: 80px;
  max-width: 1160px;
}
.hg-answer__blueprint {
  position: absolute; right: -60px; top: -20px;
  width: min(620px, 56vw); height: 105%;
  background: url('../img/blueprint-lines.png') right top / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  mask-image: radial-gradient(85% 85% at 68% 42%, rgba(0,0,0,1), transparent 100%);
  -webkit-mask-image: radial-gradient(85% 85% at 68% 42%, rgba(0,0,0,1), transparent 100%);
}
.hg-answer__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(300px, 30vw);
  align-items: center;
  gap: 34px;
}
.hg-answer__figure { position: relative; }
.hg-answer__stub {
  position: absolute;
  left: calc(50% - 1px); top: -132px;
  width: 2px; height: 118px;
  background: linear-gradient(180deg, rgba(0, 116, 254, 0.15), var(--blue));
  transform-origin: top;
}
.hg-answer__symbol {
  position: absolute; top: 50%; left: 50%;
  width: 37%; height: auto;
  margin-left: -18.5%; margin-top: -18.5%;
}
.hg-answer__track { position: relative; }
.hg-answer__line { position: absolute; background: var(--blue); }
.hg-answer__line--h {
  left: 0; right: -34px; top: 5px; height: 2px;
  transform-origin: right;
}
.hg-answer__line--v { display: none; }
.hg-answer__chips {
  position: relative;
  display: flex; justify-content: space-between;
  max-width: 86%;
}
.hg-chip { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hg-chip__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 0 12px rgba(0, 116, 254, 0.7);
}
.hg-chip__label { color: var(--ice-88); letter-spacing: 0.22em; }

.hg-answer__copy { margin-top: clamp(40px, 6vh, 64px); max-width: 620px; }
.hg-answer__tag { color: var(--blue); margin-bottom: 14px; }
.hg-answer__title {
  font-weight: 620; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  color: var(--paper);
}
.hg-answer__support { margin-top: 14px; font-weight: 250; font-size: clamp(1.02rem, 1.4vw, 1.25rem); color: var(--ice-88); }
.hg-answer__cta { margin-top: 30px; }

@media (max-width: 900px) {
  .hg-answer { padding-top: 24px; }
  .hg-answer__blueprint { right: -30px; width: 80vw; opacity: 0.1; }
  .hg-answer__stage { grid-template-columns: 1fr; gap: 40px; }
  .hg-answer__figure { order: -1; max-width: 250px; margin-inline: auto; }
  .hg-answer__stub { top: -46px; height: 40px; }
  .hg-answer__line--h { display: none; }
  .hg-answer__line--v {
    display: block;
    left: 5px; top: 0; bottom: 0; width: 2px;
    transform-origin: top;
  }
  .hg-answer__chips { flex-direction: column; gap: 26px; max-width: none; padding-left: 0; }
  .hg-chip { flex-direction: row; gap: 16px; }
}

/* ==========================================================================
   C4. THE FOUNDATION SEQUENCE
   Default: stacked cinematic chapters (mobile, reduced motion, no JS).
   .hg-seq--pinned (set by GSAP context on desktop) switches the theatre to
   an absolute crossfade stack driven by the scrub timeline.
   ========================================================================== */
.hg-seq { position: relative; padding-top: clamp(100px, 15vh, 180px); }
.hg-seq__head { margin-bottom: clamp(48px, 8vh, 90px); }
.hg-seq__head .hg-ann { margin-bottom: 18px; }

.hg-seq__theatre { position: relative; }

.hg-stage { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; }
.hg-stage__media { position: absolute; inset: 0; overflow: hidden; }
.hg-stage__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(0, 14, 17, 0.18) 18%, rgba(0, 14, 17, 0.05) 45%, rgba(0, 14, 17, 0.62) 82%, var(--ink) 100%);
}
.hg-stage__media img { width: 100%; height: 100%; object-fit: cover; }
.hg-stage__copy {
  position: relative;
  padding: 0 var(--gutter) clamp(48px, 8vh, 84px);
  max-width: min(680px, 92vw);
  margin-left: max(calc((100vw - var(--container)) / 2), 0px);
}
.hg-stage__index { margin-bottom: 10px; color: var(--cyan); }
.hg-stage__title {
  font-weight: 620; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  color: var(--paper);
}
.hg-stage__line {
  margin-top: 14px;
  font-weight: 250; font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  color: var(--ice-88); max-width: 30em;
}

.hg-seq__rail, .hg-seq__counter { display: none; }

/* Pinned theatre mode (GSAP desktop context adds .hg-seq--pinned) */
.hg-seq--pinned .hg-seq__theatre { height: 100vh; overflow: clip; }
.hg-seq--pinned .hg-stage {
  position: absolute; inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
}
.hg-seq--pinned .hg-seq__rail {
  display: block;
  position: absolute; left: var(--gutter); top: 50%; z-index: 5;
  height: min(46vh, 420px); width: 1px;
  transform: translateY(-50%);
}
.hg-seq__railtrack, .hg-seq__railfill {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--ice-16);
}
.hg-seq__railfill { background: var(--blue); height: 100%; transform-origin: top; transform: scaleY(0); }
.hg-seq__node {
  position: absolute; left: -3.5px; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--cyan-45);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.hg-seq__node:nth-of-type(3) { top: 0; }
.hg-seq__node:nth-of-type(4) { top: 25%; }
.hg-seq__node:nth-of-type(5) { top: 50%; }
.hg-seq__node:nth-of-type(6) { top: 75%; }
.hg-seq__node:nth-of-type(7) { top: 100%; }
.hg-seq__node.is-lit {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0, 116, 254, 0.8);
}
.hg-seq--pinned .hg-seq__counter {
  display: block;
  position: absolute; right: var(--gutter); top: 50%; z-index: 5;
  transform: translateY(-50%) rotate(90deg); transform-origin: center;
  letter-spacing: 0.3em;
}
.hg-seq--pinned .hg-stage__copy { padding-bottom: clamp(56px, 9vh, 96px); }

/* ==========================================================================
   THE FROST PANES: wipe the winter off the glass to uncover the answer
   ========================================================================== */
.hg-panes { padding-block: clamp(70px, 10vh, 120px) clamp(90px, 13vh, 150px); }
.hg-panes .hg-ann { margin-bottom: 16px; }
.hg-panes__title {
  font-weight: 620; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  color: var(--paper);
}
.hg-panes__hint { margin-top: 14px; color: var(--cyan); }
.hg-panes__hint-touch { display: none; }
@media (pointer: coarse) {
  .hg-panes__hint-fine { display: none; }
  .hg-panes__hint-touch { display: inline; }
}
.hg-panes__row {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.hg-pane {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ice-16);
  background: var(--ink);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.hg-pane.is-revealed {
  border-color: rgba(0, 116, 254, 0.55);
  box-shadow: 0 28px 70px rgba(0, 116, 254, 0.2);
}

.hg-pane__after { position: absolute; inset: 0; z-index: 1; }
.hg-pane__after img { width: 100%; height: 100%; object-fit: cover; }
.hg-pane__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 14, 17, 0.32) 0%, rgba(0, 14, 17, 0) 32%, rgba(0, 14, 17, 0.3) 52%, rgba(0, 14, 17, 0.82) 74%, rgba(0, 14, 17, 0.95) 100%);
}
.hg-pane__answer { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; }
.hg-pane__atag { color: var(--cyan); margin-bottom: 10px; text-shadow: var(--text-shade); }
.hg-pane__alead {
  font-weight: 620; letter-spacing: -0.015em; line-height: 1.2;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  color: var(--paper);
  text-shadow: var(--text-shade);
}
.hg-pane__asupport {
  margin-top: 8px; font-weight: 250; font-size: 0.92rem; color: var(--ice-88);
  text-shadow: var(--text-shade);
}

.hg-pane__frostwrap { position: absolute; inset: 0; z-index: 2; }
.hg-pane__frost {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: opacity 0.7s ease;
  cursor: crosshair;
}
.hg-pane.is-revealed .hg-pane__frost { opacity: 0; pointer-events: none; }
.hg-pane__q {
  position: absolute; inset: 0;
  padding: 24px 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: linear-gradient(180deg, rgba(0, 14, 17, 0) 40%, rgba(0, 14, 17, 0.38) 62%, rgba(0, 14, 17, 0.72) 84%, rgba(0, 14, 17, 0.82) 100%);
}
.hg-pane.is-revealed .hg-pane__q { opacity: 0 !important; }
.hg-pane__chips { color: var(--ice); text-shadow: var(--text-shade); }
.hg-pane__question {
  font-weight: 620; letter-spacing: -0.015em; line-height: 1.22;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--paper);
  text-shadow: var(--text-shade);
  text-wrap: balance;
}

.hg-pane__toggle {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 2px;
  border-bottom: 1px solid var(--cyan-25);
  color: var(--ice-64);
  letter-spacing: 0.12em;
  text-shadow: var(--text-shade);
  transition: border-color 0.3s, color 0.3s;
}
.hg-pane__toggle::before {
  content: ''; width: 6px; height: 6px;
  border: 1px solid currentColor; border-radius: 50%;
}
.hg-pane__toggle[aria-expanded='true']::before { background: currentColor; }
.hg-pane__toggle:hover { border-color: var(--ice-64); color: var(--paper); }

.hg-panes__foot { margin-top: clamp(36px, 5vh, 52px); }

@media (max-width: 900px) {
  .hg-panes__row { grid-template-columns: 1fr; max-width: 420px; }
}

/* Frost shimmer while still frozen (motion only) */
@media (prefers-reduced-motion: no-preference) {
  .hg-pane__frostwrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(216, 236, 243, 0.12) 46%, transparent 62%);
    background-size: 240% 100%;
    animation: hgShimmer 5.5s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
  }
  .hg-pane.is-revealed .hg-pane__frostwrap::after { display: none; }
}
@keyframes hgShimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* No JS: the pane opens flat, question above answer, nothing withheld */
html:not(.js) .hg-pane { aspect-ratio: auto; }
html:not(.js) .hg-pane__frostwrap { position: static; }
html:not(.js) .hg-pane__frost, html:not(.js) .hg-pane__toggle { display: none; }
html:not(.js) .hg-pane__q { position: static; padding-bottom: 0; }
html:not(.js) .hg-pane__after { position: static; }
html:not(.js) .hg-pane__after img { aspect-ratio: 3 / 4; }
html:not(.js) .hg-pane__answer { position: static; }
html:not(.js) .hg-pane__veil { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hg-pane__frost, .hg-pane__q { transition: none; }
}

.hg-seq__foot { padding: clamp(40px, 6vh, 64px) var(--gutter) clamp(90px, 13vh, 150px); }

/* ==========================================================================
   C5. THINK.GO. (the hinge)
   ========================================================================== */
.hg-method {
  position: relative;
  padding-block: clamp(110px, 16vh, 200px);
  overflow: clip;
}
.hg-method__grid {
  position: absolute; inset: -1px;
  background:
    repeating-linear-gradient(90deg, var(--ice-08) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, var(--ice-08) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(75% 65% at 50% 45%, rgba(0,0,0,0.9), transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, rgba(0,0,0,0.9), transparent 100%);
}
.hg-method__inner { position: relative; text-align: center; }
.hg-method__inner > .hg-ann { margin-bottom: 22px; }
.hg-method__title { display: grid; gap: 14px; justify-items: center; }
.hg-method__decode {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 1;
  color: var(--paper);
}
.hg-method__decode .hg-go { color: var(--blue); }
.hg-method__subline {
  font-weight: 250; font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ice-64); letter-spacing: 0;
}
/* ---------- The loop film plate ---------- */
.hg-loopfilm {
  position: relative;
  margin: clamp(40px, 6vh, 72px) auto 0;
  max-width: 1060px;
}
.hg-loopfilm .hg-media {
  position: relative; inset: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ice-16);
  box-shadow: 0 34px 90px rgba(0, 116, 254, 0.14);
}
.hg-loopfilm__stage { position: relative; }
.hg-loopfilm__tick {
  position: absolute; width: 14px; height: 14px;
  border: 0 solid var(--cyan-45);
}
.hg-loopfilm__tick--tl { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; }
.hg-loopfilm__tick--tr { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.hg-loopfilm__tick--bl { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; }
.hg-loopfilm__tick--br { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }
.hg-loopfilm__caption {
  margin-top: 12px;
  display: flex; justify-content: space-between; gap: 16px;
}
.hg-loopfilm__phase { color: var(--cyan); }

/* ---------- The four method sentences, phase-synced ---------- */
.hg-phases {
  margin: clamp(34px, 5vh, 58px) auto 0;
  max-width: 1060px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: left;
}
.hg-phase {
  border-top: 1px solid var(--ice-16);
  padding-top: 14px;
  font-weight: 250;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.5;
  color: var(--ice-88);
  transition: opacity 0.5s ease, border-color 0.5s ease;
}
.hg-phase__tag { display: block; margin-bottom: 10px; color: var(--cyan); transition: color 0.5s ease; }
html.js.hg-motion .hg-phase { opacity: 0.34; }
html.js.hg-motion .hg-phase.is-live { opacity: 1; border-top-color: var(--blue); }
.hg-phase.is-live .hg-phase__tag { color: var(--blue); }
@media (max-width: 900px) { .hg-phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hg-phases { grid-template-columns: 1fr; } }

.hg-method__link { margin-top: clamp(34px, 5vh, 48px); }

/* ==========================================================================
   C6. WHO IT'S FOR (ice)
   ========================================================================== */
.hg-who { padding-block: clamp(100px, 14vh, 170px); }
.hg-who .hg-ann { margin-bottom: 18px; }
.hg-who__list { margin-top: clamp(40px, 6vh, 64px); display: grid; gap: 20px; max-width: 640px; }
.hg-who__row {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 14, 17, 0.12);
  font-weight: 350; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink);
}
.hg-check { width: 24px; height: 24px; flex: 0 0 auto; }
.hg-who__cta { margin-top: 44px; }

/* ==========================================================================
   C7. SECURITY (deep)
   ========================================================================== */
.hg-secure { position: relative; padding-block: clamp(120px, 18vh, 220px); overflow: clip; }
.hg-secure__lines {
  position: absolute; inset: 0; opacity: 0.35;
  background:
    repeating-linear-gradient(90deg, rgba(252, 252, 252, 0.07) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(252, 252, 252, 0.05) 0 1px, transparent 1px 120px);
  mask-image: radial-gradient(90% 80% at 50% 100%, rgba(0,0,0,1), transparent 100%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 100%, rgba(0,0,0,1), transparent 100%);
}
.hg-secure__inner { position: relative; text-align: center; }
.hg-secure__inner .hg-ann { color: var(--ice-64); margin-bottom: 22px; }
.hg-secure__inner .hg-display { margin-inline: auto; max-width: 15em; }
.hg-secure__tagline {
  margin-top: 30px;
  font-weight: 250; font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--ice-88);
}

/* ==========================================================================
   C8. FINAL CTA
   ========================================================================== */
.hg-cta {
  position: relative;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center;
  isolation: isolate;
  padding-block: clamp(100px, 14vh, 160px);
}
.hg-cta__media { z-index: -1; }
.hg-cta__inner { width: 100%; }
.hg-cta__row {
  margin-top: clamp(40px, 6vh, 64px);
  display: flex; flex-wrap: wrap; gap: 40px clamp(48px, 7vw, 110px);
  align-items: flex-start;
}
.hg-cta__action .hg-ctasub { max-width: 34em; }
.hg-agenda {
  border: 1px solid var(--ice-16);
  background: rgba(0, 14, 17, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 26px 30px;
  max-width: 380px;
}
.hg-agenda__tag { margin-bottom: 16px; color: var(--cyan); }
.hg-agenda__list { display: grid; gap: 12px; }
.hg-agenda__list li {
  position: relative; padding-left: 24px;
  font-weight: 300; font-size: 0.98rem; color: var(--ice-88);
}
.hg-agenda__list li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 13px; height: 1.5px; background: var(--blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hg-footer {
  border-top: 1px solid var(--ice-08);
  background: var(--ink);
  padding-top: clamp(60px, 8vh, 90px);
}
.hg-footer__grid {
  display: grid; gap: 44px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: clamp(48px, 7vh, 72px);
}
@media (max-width: 900px) { .hg-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hg-footer__grid { grid-template-columns: 1fr; } }
.hg-footer__brand img { height: 32px; width: auto; }
.hg-footer__tagline { margin-top: 18px; font-weight: 250; color: var(--ice-64); max-width: 22em; }
.hg-footer__col { display: grid; gap: 12px; align-content: start; justify-items: start; }
.hg-footer__col h2 { margin-bottom: 6px; }
.hg-footer__col a:not(.hg-btn) {
  font-weight: 300; font-size: 0.95rem; color: var(--ice-88);
  transition: color 0.25s;
}
.hg-footer__col a:not(.hg-btn):hover { color: var(--blue); }
.hg-footer__muted { font-weight: 300; font-size: 0.95rem; color: var(--ice-40); }
.hg-footer__note {
  display: block; font-size: 0.78rem; color: var(--ice-40); margin-top: 2px;
}
.hg-footer__bottom {
  border-top: 1px solid var(--ice-08);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between;
}
.hg-footer__legal { font-size: 0.8rem; font-weight: 300; color: var(--ice-40); max-width: 62em; }
.hg-footer__legal-links { display: flex; gap: 22px; }
.hg-footer__legal-links a { font-size: 0.8rem; color: var(--ice-64); }
.hg-footer__legal-links a:hover { color: var(--blue); }

/* ==========================================================================
   THE THREE WINS (closes the sequence section, bridges into Think.Go.)
   Win 01 sprawl lanes, win 02 maturity console, win 03 no-AI workflow.
   Donor skeletons (21st.dev) reskinned to the DESIGN.md tokens.
   ========================================================================== */
.hg-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* The wins band: the official immersive brand gradient (p.26 orb) at the
   deep register. The orb rises behind the demos; ink seams top and bottom
   keep the band living inside the void; C7 keeps full saturation. */
.hg-winsband { position: relative; margin-top: clamp(72px, 10vh, 128px); }
.hg-winsband::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/wins/immersive.jpg') right center / cover no-repeat;
  opacity: 0.38;
}
.hg-winsband::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--ink) 0%, rgba(0, 14, 17, 0.62) 12%,
    rgba(0, 14, 17, 0.55) 50%,
    rgba(0, 14, 17, 0.62) 88%, var(--ink) 100%);
}
.hg-winsband > * { position: relative; z-index: 1; }

.hg-wins { padding-block: clamp(56px, 8vh, 96px) clamp(90px, 13vh, 150px); }
/* the thin five-stop brand ramp rule (guidelines p.52), exact DESIGN.md stops */
.hg-wins::before {
  content: ''; display: block;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, #d8ecf3 0%, #68b4d6 33%, #0074fe 56%, #003584 80%, #000e11 100%);
  margin-bottom: clamp(40px, 6vh, 64px);
}
.hg-wins__title {
  font-weight: 620; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--paper);
  margin-top: 14px;
  text-wrap: balance;
}
.hg-wins__lede { margin-top: 14px; font-weight: 250; color: var(--ice-64); max-width: 34em; }

.hg-win {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
  margin-top: clamp(56px, 8vh, 96px);
}
/* a max-content marquee track must never widen its grid column */
.hg-win__copy, .hg-win__demo { min-width: 0; }
.hg-win--ai .hg-win__copy { order: 2; }
.hg-win__tag { color: var(--cyan); }
.hg-win__head {
  font-weight: 620; letter-spacing: -0.018em; line-height: 1.1;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  color: var(--paper); margin-top: 12px;
  text-wrap: balance;
}
.hg-win__body { margin-top: 14px; font-weight: 250; color: var(--ice-64); max-width: 30em; }
@media (max-width: 980px) {
  .hg-win { grid-template-columns: 1fr; align-items: start; }
  .hg-win--ai .hg-win__copy { order: 0; }
}

/* --- Win 01: the sprawl lanes (logo-timeline donor) --- */
.hg-lanes {
  border: 1px solid var(--ice-16); border-radius: 18px;
  background: linear-gradient(180deg, rgba(216, 236, 243, 0.03), rgba(216, 236, 243, 0.005));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hg-lane { position: relative; padding-block: 15px; }
.hg-lane + .hg-lane { border-top: 1px solid var(--ice-08); }
.hg-lane::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ice-16) 0 6px, transparent 6px 15px);
}
.hg-lane__track {
  position: relative;
  display: flex; width: max-content;
  animation: hgDrift var(--drift, 64s) linear infinite;
}
.hg-lane--1 .hg-lane__track { --drift: 66s; }
.hg-lane--2 .hg-lane__track { --drift: 84s; animation-direction: reverse; }
.hg-lane--3 .hg-lane__track { --drift: 72s; }
.hg-lane--4 .hg-lane__track { --drift: 92s; animation-direction: reverse; }
.hg-lane:hover .hg-lane__track { animation-play-state: paused; }
.hg-lane__set { display: inline-flex; gap: 12px; padding-right: 12px; }
@keyframes hgDrift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hg-lane__track { animation: none; } }

.hg-tool {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ice-64);
  border: 1px solid var(--ice-16); border-radius: 999px;
  padding: 7px 14px 7px 11px;
  background: rgba(0, 14, 17, 0.45);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.hg-tool--text { padding-left: 14px; }
.hg-tool__icon {
  width: 15px; height: 15px; flex: none;
  display: block;
  fill: currentColor;
}
.hg-tool:hover {
  color: var(--brand, var(--ice));
  border-color: color-mix(in srgb, var(--brand, #d8ecf3) 55%, transparent);
  background: color-mix(in srgb, var(--brand, #d8ecf3) 9%, rgba(0, 14, 17, 0.45));
}

.hg-rail { position: relative; margin-top: 16px; }
.hg-rail__svg {
  position: absolute; left: 6px; right: 6px; top: 50%;
  width: calc(100% - 12px); height: 2px; transform: translateY(-50%);
}
.hg-rail__path { stroke: var(--blue); stroke-width: 2; fill: none; }
.hg-rail__cats { position: relative; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hg-cat {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ice-88);
  border: 1px solid var(--ice-16); border-radius: 999px;
  padding: 7px 13px;
  background: var(--ink);
}
.hg-cat--end { border-color: rgba(0, 116, 254, 0.55); color: var(--paper); box-shadow: 0 0 22px rgba(0, 116, 254, 0.16); }
@media (max-width: 700px) { .hg-rail__svg { display: none; } }

/* --- Win 02: THE ASCENT, the maturity ladder drawn as brand monoline
       (Higgsfield plate + live beacons; animated-ai-input donor soul lives
       in the model roster's cycling highlight) --- */
.hg-console {
  position: relative; overflow: hidden;
  border: 1px solid var(--ice-16); border-radius: 18px;
  background: linear-gradient(180deg, rgba(216, 236, 243, 0.04), rgba(216, 236, 243, 0.01));
  padding: clamp(18px, 2.4vw, 26px);
}
.hg-console::after, .hg-flow::after {
  content: ''; position: absolute; right: -50px; top: -30px;
  width: min(540px, 62%); height: 120%;
  background: url('../img/blueprint-lines.png') right top / cover no-repeat;
  opacity: 0.09; pointer-events: none;
  mask-image: radial-gradient(80% 80% at 72% 30%, rgba(0, 0, 0, 1), transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 72% 30%, rgba(0, 0, 0, 1), transparent 100%);
}
.hg-console > *, .hg-flow > * { position: relative; z-index: 1; }
.hg-console__head { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.hg-console__status { color: var(--ice-40); }

.hg-ascent {
  position: relative; margin-top: 18px;
  border: 1px solid var(--ice-08); border-radius: 12px;
  overflow: hidden; background: #000a0d;
}
.hg-ascent__plate { display: block; width: 100%; height: auto; }
.hg-beacon {
  position: absolute; width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(216, 236, 243, 0.95) 0 3px, rgba(104, 180, 214, 0.35) 4px 10px, transparent 11px);
  opacity: 0.22;
  transition: opacity 0.4s, filter 0.4s;
}
.hg-beacon.is-lit { opacity: 1; filter: drop-shadow(0 0 12px rgba(0, 116, 254, 0.6)); }
.hg-beacon.is-active::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0, 116, 254, 0.65);
  animation: hgPing 1.8s ease-out infinite;
}
@keyframes hgPing { 0% { transform: scale(0.35); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hg-beacon.is-active::after { animation: none; } }

.hg-rungs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.hg-rung {
  appearance: none; text-align: left; cursor: pointer;
  color: inherit; font: inherit;
  background: rgba(0, 14, 17, 0.45);
  border: 1px solid var(--ice-16); border-radius: 12px;
  padding: 12px 14px;
  display: grid; gap: 6px; align-content: start;
  transition: border-color 0.3s, background-color 0.3s;
}
.hg-rung:hover { border-color: var(--cyan-45); }
.hg-rung:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hg-rung.is-active { border-color: rgba(0, 116, 254, 0.6); background: rgba(0, 116, 254, 0.07); }
.hg-rung__idx { color: var(--cyan); }
.hg-rung__name { font-weight: 620; letter-spacing: -0.01em; font-size: 0.92rem; color: var(--paper); }
@media (max-width: 760px) { .hg-rungs { grid-template-columns: repeat(2, 1fr); } }

.hg-ascent__progress {
  height: 2px; margin-top: 14px; border-radius: 2px;
  background: var(--ice-08); overflow: hidden;
}
.hg-ascent__fill {
  display: block; height: 100%; width: 100%;
  background: var(--blue);
  transition: width 0.5s var(--ease-out);
}
/* No JS: the ladder rests achieved, every beacon lit, full progress */
html:not(.js) .hg-beacon { opacity: 1; }

.hg-models {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ice-08);
}
.hg-models__label { margin-right: 4px; }
.hg-models__note { color: var(--ice-40); margin-left: 4px; }
.hg-model {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ice-64);
  border: 1px solid var(--ice-16); border-radius: 9px;
  padding: 5px 10px;
  background: rgba(0, 14, 17, 0.45);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.hg-model.is-hot {
  color: var(--paper);
  border-color: rgba(0, 116, 254, 0.6);
  box-shadow: 0 0 18px rgba(0, 116, 254, 0.18);
}

/* --- Win 03: the playable orchestration canvas (n8n-workflow-block donor:
       draggable nodes, live edges, a run that sends a packet through) --- */
.hg-flow {
  position: relative; overflow: hidden;
  border: 1px solid var(--ice-16); border-radius: 18px;
  background: linear-gradient(180deg, rgba(216, 236, 243, 0.04), rgba(216, 236, 243, 0.01));
  padding: clamp(18px, 2.4vw, 26px);
}
.hg-flow__head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.hg-flow__badge {
  color: var(--cyan);
  border: 1px solid var(--cyan-45); border-radius: 999px;
  padding: 6px 12px;
}
.hg-flow__name { color: var(--ice-88); }
.hg-flow__run {
  appearance: none; cursor: pointer;
  margin-left: auto;
  color: var(--paper);
  background: rgba(0, 116, 254, 0.14);
  border: 1px solid rgba(0, 116, 254, 0.55); border-radius: 999px;
  padding: 7px 16px;
  transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.hg-flow__run:hover { background: rgba(0, 116, 254, 0.26); }
.hg-flow__run:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hg-flow__run[disabled] { opacity: 0.55; cursor: default; }
.hg-flow__engine {
  color: var(--ice-40);
  border: 1px solid var(--ice-16); border-radius: 999px;
  padding: 6px 12px;
}
html:not(.js) .hg-flow__run { display: none; }

.hg-flow__canvas {
  position: relative; margin-top: 18px;
  height: 430px;
  border: 1px solid var(--ice-08); border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(216, 236, 243, 0.025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(216, 236, 243, 0.025) 0 1px, transparent 1px 44px),
    rgba(0, 10, 13, 0.6);
  overflow: hidden;
}
.hg-flow__edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.hg-edge {
  fill: none;
  stroke: var(--ice-64); stroke-width: 1.6;
  stroke-dasharray: 7 5;
  opacity: 0.8;
  transition: stroke 0.3s, opacity 0.3s;
}
.hg-edge.is-hot { stroke: var(--blue); opacity: 1; }
.hg-packet { fill: var(--blue); opacity: 0; filter: drop-shadow(0 0 8px rgba(0, 116, 254, 0.85)); }

.hg-fnodes { list-style: none; }
.hg-fnode {
  position: absolute; left: var(--x); top: var(--y);
  width: 42%; max-width: 240px; min-width: 150px;
  border: 1px solid var(--ice-16); border-radius: 12px;
  background: rgba(0, 14, 17, 0.85);
  padding: 11px 13px;
  display: grid; gap: 5px; align-content: start;
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (pointer: fine) { .hg-fnode { cursor: grab; } .hg-fnode.is-drag { cursor: grabbing; } }
.hg-fnode__type { color: var(--cyan); }
.hg-fnode__title { font-weight: 620; letter-spacing: -0.01em; font-size: 0.92rem; color: var(--paper); }
.hg-fnode__desc { font-weight: 300; font-size: 0.78rem; line-height: 1.4; color: var(--ice-64); }
.hg-fnode--done { border-color: rgba(0, 116, 254, 0.5); }
.hg-fnode.is-run { border-color: rgba(0, 116, 254, 0.75); box-shadow: 0 0 24px rgba(0, 116, 254, 0.22); }

.hg-flow__stats { margin-top: 16px; color: var(--ice-40); }
.hg-flow__hint { color: var(--ice-40); }
@media (pointer: coarse), (max-width: 900px) { .hg-flow__hint { display: none; } }

/* Mobile and narrow: the canvas relaxes to a stacked chain; edges retire */
@media (max-width: 900px) {
  .hg-flow__canvas { height: auto; padding: 14px; }
  .hg-flow__edges { display: none; }
  .hg-fnodes { display: grid; gap: 14px; }
  .hg-fnode { position: static; width: auto; min-width: 0; }
  .hg-fnode + .hg-fnode { position: relative; }
  .hg-fnode + .hg-fnode::before {
    content: ''; position: absolute; left: 26px; top: -15px;
    width: 1px; height: 15px;
    background: var(--cyan-45);
  }
}

.hg-wins__foot {
  margin-top: clamp(56px, 8vh, 92px);
  display: grid; gap: 12px; justify-items: start;
}
.hg-wins__bridge { color: var(--ice-40); }

/* ==========================================================================
   MOTION PRE-STATES
   Only when JS confirmed GSAP + motion allowed (html.js.hg-motion).
   Everything renders complete without JS or under reduced motion.
   ========================================================================== */
html.js.hg-motion [data-rise] { opacity: 0; transform: translateY(28px); }
html.js.hg-motion .hg-proof__lead .word { opacity: 0.14; }

/* Strokes that draw on entry stay hidden until their tween owns them */
html.js.hg-motion .hg-check__stroke,
html.js.hg-motion .hg-conline { visibility: hidden; }
html.js.hg-motion .hg-card { opacity: 0; }
html.js.hg-motion .hg-answer__reveal { opacity: 0; transform: translateY(24px); }
html.js.hg-motion .hg-answer__line--h { transform: scaleX(0); }
html.js.hg-motion .hg-answer__line--v { transform: scaleY(0); }
html.js.hg-motion .hg-answer__stub { transform: scaleY(0); }
html.js.hg-motion .hg-answer__symbol { opacity: 0; }
html.js.hg-motion .hg-rung { opacity: 0.22; transform: translateY(10px); }
html.js.hg-motion .hg-fnode { opacity: 0; transform: translateY(14px); }
html.js.hg-motion .hg-ascent { clip-path: inset(0 100% 0 0); }
html.js.hg-motion .hg-rail__path { visibility: hidden; }

/* ==========================================================================
   THE SURVEY (Start Your Blueprint, depth page in the hg world)
   The five-step flow becomes a drafting session: the visitor's progress
   draws the Foundation on the survey instrument. Flow machinery classes
   (.flow-step, .chip, .progress, .focus-card, .faq__*) are main.js
   contracts and keep their names; everything is scoped to .hg-surveypage.
   ========================================================================== */

/* Generic drafting grid field, reusable on any void band */
.hg-gridfield {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(216, 236, 243, 0.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(216, 236, 243, 0.045) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

.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;
}

.hg-narrow { max-width: 720px; }

/* ---------- The survey band ---------- */
.hg-survey {
  position: relative;
  padding: calc(76px + clamp(48px, 9vh, 88px)) 0 clamp(72px, 10vh, 120px);
  min-height: 100svh;
  isolation: isolate;
}
.hg-survey .hg-gridfield { z-index: -1; opacity: 0.7; }

.hg-survey__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 380px);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

/* Sheet register: dashes + mono step counter */
.hg-survey__register {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(36px, 6vh, 60px);
}
.hg-surveypage .progress { display: flex; gap: 8px; }
.hg-surveypage .progress span {
  width: 34px; height: 2px; background: var(--ice-16);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.hg-surveypage .progress span.done { background: var(--ice-64); }
.hg-surveypage .progress span.now {
  background: var(--blue); box-shadow: 0 0 10px rgba(0, 116, 254, 0.65);
}
.hg-survey__count { display: inline-flex; gap: 14px; }
.hg-survey__count b { font-weight: 400; color: var(--ice-64); }

/* ---------- Flow steps ---------- */
html.js .hg-surveypage .flow-step { display: none; }
html.js .hg-surveypage .flow-step.is-active { display: block; animation: hgStepIn 0.5s var(--ease-out); }
@keyframes hgStepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hg-surveypage .flow-step.is-active { animation: none; }
}
/* No JS: every step renders complete, stacked as one readable document */
html:not(.js) .hg-surveypage .flow-step { display: block; padding: 40px 0; border-top: 1px solid var(--ice-08); }
html:not(.js) .hg-surveypage .flow-step:first-of-type { border-top: 0; padding-top: 0; }
html:not(.js) .hg-surveypage [data-goto] { display: none; }

.hg-survey__step { display: grid; gap: 22px; }
.hg-survey__title {
  font-weight: 620; letter-spacing: -0.024em; line-height: 1.06;
  font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--paper);
}
.hg-survey__title:focus { outline: none; }
.hg-surveypage .flow-heading:focus { outline: none; }
.hg-survey__body { color: var(--ice-64); font-weight: 250; max-width: 44em; }
.hg-survey__cta { display: grid; gap: 12px; justify-items: start; }
.hg-survey__card .hg-survey__title { font-size: 1.32rem; }
.hg-survey__aside { align-self: stretch; }

/* ---------- The check rows (drawn strokes, shared with C6 grammar) ---------- */
.hg-checkrow {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--ice-08);
  color: var(--ice-88); font-weight: 300;
}
.hg-checkrow:last-child { border-bottom: 1px solid var(--ice-08); }
.hg-checkrow .hg-check { flex: 0 0 auto; transform: translateY(3px); }

/* ---------- Questions ---------- */
.hg-surveypage .q { padding: 30px 0 26px; border-top: 1px solid var(--ice-08); display: grid; gap: 16px; }
.hg-surveypage .q:first-of-type { border-top: 0; padding-top: 0; }
.hg-surveypage .q__label {
  display: flex; gap: 16px; align-items: baseline;
  font-weight: 300; font-size: 1.12rem; color: var(--paper); margin: 0;
}
.hg-surveypage .q__n {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  color: var(--cyan-45); flex: 0 0 auto;
}
.hg-surveypage .q__hint, .hg-surveypage .subq {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ice-40); margin: 0;
}
.hg-surveypage .subq { margin-top: 6px; }

.hg-surveypage .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hg-surveypage .chip {
  font: 300 0.92rem/1 var(--font); color: var(--ice-88);
  padding: 10px 16px; border: 1px solid var(--ice-16); border-radius: 999px;
  background: rgba(216, 236, 243, 0.04); cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out),
    color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.hg-surveypage .chip::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ice-16); transition: inherit;
}
.hg-surveypage .chip:hover { border-color: var(--ice-40); }
.hg-surveypage .chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hg-surveypage .chip.is-selected {
  border-color: var(--blue); color: #fcfcfc;
  background: rgba(0, 116, 254, 0.14);
  box-shadow: 0 0 14px rgba(0, 116, 254, 0.22);
}
.hg-surveypage .chip.is-selected::before { background: var(--blue); box-shadow: 0 0 8px rgba(0, 116, 254, 0.8); }

/* ---------- Fields ---------- */
.hg-surveypage .field { display: grid; gap: 8px; }
.hg-surveypage .field label {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ice-64);
}
.hg-surveypage .field--quiet label { color: var(--ice-40); }
.hg-surveypage .input {
  font: 300 1rem/1.4 var(--font); color: var(--paper);
  background: rgba(216, 236, 243, 0.05);
  border: 1px solid var(--ice-16); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.hg-surveypage .input:focus-visible {
  outline: none; border-color: rgba(0, 116, 254, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 116, 254, 0.22);
}
.hg-surveypage .field-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px) { .hg-surveypage .field-grid { grid-template-columns: 1fr; } }
.hg-survey__assure { color: var(--ice-40); font-size: 0.88rem; }
.hg-survey__assure a { color: var(--ice-64); }

/* ---------- Focus cards (result step) ---------- */
.hg-surveypage .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .hg-surveypage .grid-2 { grid-template-columns: 1fr; } }
.hg-surveypage .focus-card {
  position: relative; padding: 24px 26px;
  border: 1px solid var(--ice-16); border-radius: 6px;
  background: rgba(216, 236, 243, 0.03);
  display: grid; gap: 10px; align-content: start;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.hg-surveypage .focus-card h2 { font-size: 1.05rem; font-weight: 620; letter-spacing: -0.01em; color: var(--paper); }
.hg-surveypage .focus-card p { color: var(--ice-64); font-weight: 300; font-size: 0.95rem; }
.hg-surveypage .focus-card.is-lead {
  border-color: rgba(0, 116, 254, 0.6);
  box-shadow: 0 0 26px rgba(0, 116, 254, 0.14);
}
.hg-surveypage .focus-card.is-lead::after {
  content: 'Likely lead';
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
}

/* ---------- Glass plates (result pitch, booking, confirmation) ---------- */
.hg-survey__card {
  border: 1px solid var(--ice-08); border-radius: 10px;
  background: rgba(0, 14, 17, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: clamp(22px, 3.4vw, 32px);
  display: grid; gap: 16px;
}
.hg-survey__card--lift { background: rgba(216, 236, 243, 0.045); }

.hg-surveypage .pending {
  display: inline-block; justify-self: start;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ice-64);
  border: 1px dashed var(--cyan-45); border-radius: 4px;
  padding: 10px 14px;
}
.hg-survey__note { color: var(--ice-40); font-size: 0.88rem; }

/* Link-styled flow buttons (Back, Continue) */
.hg-btn--bare {
  background: none; border: 0; cursor: pointer;
  font: 300 0.95rem/1 var(--font); color: var(--ice-64);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--ice-16);
  padding: 12px 6px; transition: color 0.25s var(--ease-out);
}
.hg-btn--bare:hover { color: var(--paper); }
.hg-btn--bare:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- The survey instrument ---------- */
.hg-inst {
  position: sticky; top: calc(76px + 28px);
  border: 1px solid var(--ice-08); border-radius: 12px;
  background: #000a0d; overflow: hidden; isolation: isolate;
  padding: 22px 22px 18px;
  display: grid; gap: 14px;
  transition: opacity 0.5s var(--ease-out);
}
/* The plate stays clean ink: any backing texture competes with the drawn
   layers, and the instrument must read unambiguously at every state. */
html[data-bh-step="diagnostic"] .hg-inst { opacity: 0.5; }
.hg-inst__head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ice-40);
}
.hg-inst__svg { width: 100%; height: auto; display: block; }
.hg-inst__foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--ice-08); padding-top: 14px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ice-64);
}
.hg-inst__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice-16); flex: 0 0 auto;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.hg-inst.is-running .hg-inst__dot {
  background: var(--blue); box-shadow: 0 0 10px rgba(0, 116, 254, 0.8);
  animation: hgInstPulse 2.2s ease-in-out infinite;
}
@keyframes hgInstPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 116, 254, 0.55); }
  50% { box-shadow: 0 0 16px rgba(0, 116, 254, 0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-inst.is-running .hg-inst__dot { animation: none; }
}

/* ---------- FAQ (ice register) ---------- */
.hg-faqband { padding: clamp(72px, 10vh, 120px) 0; }
.hg-faqband .hg-ann { color: rgba(0, 14, 17, 0.55); }
.hg-faqband .hg-narrow { margin-inline: auto; }
.hg-faq__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vh, 52px); }
.hg-surveypage .faq { border-top: 1px solid rgba(0, 14, 17, 0.14); }
.hg-surveypage .faq__item { border-bottom: 1px solid rgba(0, 14, 17, 0.14); }
.hg-surveypage .faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 21px 2px; font: 400 1.04rem/1.35 var(--font); color: var(--ink);
}
.hg-surveypage .faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hg-surveypage .faq__icon { position: relative; flex: 0 0 16px; height: 16px; }
.hg-surveypage .faq__icon::before,
.hg-surveypage .faq__icon::after {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px;
  background: rgba(0, 14, 17, 0.6);
  transition: transform 0.35s var(--ease-out);
}
.hg-surveypage .faq__icon::after { transform: rotate(90deg); }
.hg-surveypage .faq__item.is-open .faq__icon::before { transform: rotate(45deg); }
.hg-surveypage .faq__item.is-open .faq__icon::after { transform: rotate(135deg); }
.hg-surveypage .faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.hg-surveypage .faq__a > div { overflow: hidden; }
.hg-surveypage .faq__a p {
  padding: 0 2px 22px; max-width: 62ch;
  color: rgba(0, 14, 17, 0.72); font-weight: 300;
}
.hg-surveypage .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
html:not(.js) .hg-surveypage .faq__a { grid-template-rows: 1fr; }
html:not(.js) .hg-surveypage .faq__icon { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hg-surveypage .faq__a, .hg-surveypage .faq__icon::before, .hg-surveypage .faq__icon::after { transition: none; }
}

/* ---------- Survey band responsive ---------- */
@media (max-width: 1023px) {
  .hg-survey__grid { grid-template-columns: 1fr; }
  .hg-survey__aside { display: none; }
}
@media (max-width: 720px) {
  .hg-survey { padding-top: calc(76px + 36px); }
  .hg-survey__register { flex-wrap: wrap; gap: 12px; }
  .hg-surveypage .progress span { width: 26px; }
}

/* ==========================================================================
   THE SURVEY FUNNEL (Gate 1 rework, founder direction)
   One question per full-screen scene, each with its own film. Typeform
   cadence: next, next, end; contact gate before the result. These rules
   deliberately override the earlier survey layout above.
   ========================================================================== */
.hg-survey { padding: 0; }

/* Progress: one thin lit line across the top of the viewport */
.hg-surveypage .progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  display: block; background: rgba(216, 236, 243, 0.1);
}
.hg-surveypage .progress span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, #68b4d6, #0074fe);
  box-shadow: 0 0 12px rgba(0, 116, 254, 0.7);
  transition: width 0.6s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .hg-surveypage .progress span { transition: none; }
}

/* Scene and panel steps fill the viewport */
.hg-surveypage .flow-step { position: relative; isolation: isolate; }
html.js .hg-surveypage .flow-step.is-active { display: flex; flex-direction: column; }
.flow-step.scene, .flow-step.panel { min-height: 100svh; }

.scene__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.scene__media .hg-media__still,
.scene__media .hg-media__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scene__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 14, 17, 0.62) 0%, rgba(0, 14, 17, 0.24) 42%, rgba(0, 14, 17, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 14, 17, 0.72) 0%, rgba(0, 14, 17, 0.28) 55%, rgba(0, 14, 17, 0.12) 100%);
}
.scene__veil--deep {
  background: linear-gradient(180deg, rgba(0, 14, 17, 0.78) 0%, rgba(0, 14, 17, 0.66) 45%, rgba(0, 14, 17, 0.9) 100%);
}

.scene__inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  gap: 24px; flex: 1;
  padding-top: calc(76px + 24px); padding-bottom: 56px;
}
.scene .q { border: 0; padding: 0; display: grid; gap: 16px; max-width: 880px; }
.scene__idx { color: rgba(104, 180, 214, 0.85); }
.scene__q {
  font-weight: 620; letter-spacing: -0.024em; line-height: 1.05;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); color: var(--paper);
  text-shadow: var(--text-shade); max-width: 15em;
}
.scene__title { text-shadow: var(--text-shade); }
.scene__lead { text-shadow: var(--text-shade); color: var(--ice-88); }
.scene__sub { margin-top: 4px; }
.scene__hint.subq { margin-top: 10px; }

.chips--scene .chip {
  background: rgba(0, 14, 17, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-color: rgba(216, 236, 243, 0.24);
  font-size: 1rem; padding: 12px 18px;
}
.chips--scene .chip:hover { border-color: rgba(216, 236, 243, 0.5); }
.chips--scene .chip.is-selected { background: rgba(0, 116, 254, 0.24); }

.scene__nav { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.scene__error {
  color: #fcfcfc; background: rgba(0, 14, 17, 0.62);
  border-left: 3px solid var(--blue);
  padding: 10px 14px; font-size: 0.92rem; max-width: 46em;
}
.hg-surveypage .input.is-invalid {
  border-color: rgba(0, 116, 254, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 116, 254, 0.28);
}
.field-grid--scene { max-width: 720px; }
.field-grid--scene .input {
  background: rgba(0, 14, 17, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Panel steps (result, booking, confirmation) */
.panel__inner {
  position: relative; z-index: 1; width: 100%; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(76px + 36px); padding-bottom: 72px;
}
.hg-survey__step { max-width: 880px; }

/* Mid-funnel immersion: FAQ and footer step aside until the edges */
html.js[data-bh-step="q1"] .hg-faqband, html.js[data-bh-step="q1"] .hg-footer,
html.js[data-bh-step="q2"] .hg-faqband, html.js[data-bh-step="q2"] .hg-footer,
html.js[data-bh-step="q3"] .hg-faqband, html.js[data-bh-step="q3"] .hg-footer,
html.js[data-bh-step="q4"] .hg-faqband, html.js[data-bh-step="q4"] .hg-footer,
html.js[data-bh-step="q5"] .hg-faqband, html.js[data-bh-step="q5"] .hg-footer,
html.js[data-bh-step="contact"] .hg-faqband, html.js[data-bh-step="contact"] .hg-footer,
html.js[data-bh-step="result"] .hg-faqband, html.js[data-bh-step="result"] .hg-footer,
html.js[data-bh-step="booking"] .hg-faqband, html.js[data-bh-step="booking"] .hg-footer {
  display: none;
}

/* No JS: the funnel reads as one stacked document over the stills */
html:not(.js) .hg-surveypage .flow-step { padding: 0; border-top: 0; }
html:not(.js) .hg-surveypage .flow-step.scene,
html:not(.js) .hg-surveypage .flow-step.panel { min-height: auto; }
html:not(.js) .hg-surveypage .scene__inner,
html:not(.js) .hg-surveypage .panel__inner {
  min-height: auto; padding-top: 72px; padding-bottom: 72px;
}
html:not(.js) .scene__media .hg-media__video { display: none; }
html:not(.js) .hg-surveypage .progress { display: none; }
html:not(.js) .hg-surveypage .scene__error { display: none; }

@media (max-width: 720px) {
  .scene__inner { padding-top: calc(76px + 12px); padding-bottom: 40px; gap: 18px; }
  .chips--scene .chip { font-size: 0.92rem; padding: 10px 14px; }
  .scene__nav .hg-btn--lg { padding-left: 22px; padding-right: 22px; }
}

/* ---------- BlueAI: the free-typed answer as a conversation ---------- */
.hg-surveypage [hidden] { display: none !important; }

.blueai {
  border: 1px solid var(--ice-16); border-radius: 16px;
  background: rgba(0, 14, 17, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 16px 18px; display: grid; gap: 12px;
  max-width: 560px; margin-top: 4px;
}
.blueai__head { display: flex; align-items: center; gap: 10px; }
.blueai__mark { width: 26px; height: 26px; border-radius: 8px; display: block; }
.blueai__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
  border: 1px solid var(--ice-16); box-shadow: 0 0 14px rgba(0, 116, 254, 0.28);
}
.blueai__name {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ice-88); font-weight: 400;
}
.blueai__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 8px rgba(0, 116, 254, 0.8);
  animation: hgInstPulse 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .blueai__dot { animation: none; } }
.blueai__msg { color: var(--ice-64); font-weight: 300; font-size: 0.95rem; margin: 0; }
.blueai__composer { display: flex; gap: 8px; align-items: center; }
.blueai__composer .blueai__input { flex: 1; border-radius: 999px; padding: 11px 16px; }
.blueai__send {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(0, 116, 254, 0.55); background: rgba(0, 116, 254, 0.16);
  color: #fcfcfc; font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.blueai__send:hover { background: var(--blue); box-shadow: 0 0 14px rgba(0, 116, 254, 0.5); }
.blueai__send:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.blueai__echo {
  justify-self: end; max-width: 100%;
  background: rgba(0, 116, 254, 0.22); border: 1px solid rgba(0, 116, 254, 0.5);
  border-radius: 14px 14px 4px 14px; padding: 9px 14px;
  color: #fcfcfc; font-weight: 300; font-size: 0.93rem; margin: 0;
  overflow-wrap: anywhere;
}
.blueai__ack { color: var(--ice-40); margin: 0; }

/* The gate hint: pick something or say it your way */
.scene__gate {
  color: #fcfcfc; background: rgba(0, 116, 254, 0.14);
  border-left: 3px solid var(--blue);
  padding: 9px 13px; font-size: 0.9rem; max-width: 46em; margin: 0;
}
.need-answer .chips--scene { animation: hgNudge 0.5s var(--ease-out); }
@keyframes hgNudge {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .need-answer .chips--scene { animation: none; } }

/* ---------- The result: one reading, personalized ---------- */
.result-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.result-tags span {
  border: 1px solid var(--cyan-45); border-radius: 999px; padding: 6px 12px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ice-88);
}
.result-quote {
  display: grid; gap: 6px; margin: 0; max-width: 46em;
  border-left: 3px solid var(--blue); background: rgba(0, 116, 254, 0.08);
  padding: 12px 16px;
}
.result-quote b { font-weight: 300; font-style: italic; color: #fcfcfc; overflow-wrap: anywhere; }
.result-focus { display: grid; gap: 16px; }
.result-focus .focus-card {
  position: relative; padding: 26px 28px;
  border: 1px solid var(--ice-16); border-radius: 8px;
  background: rgba(216, 236, 243, 0.03);
  display: grid; gap: 12px; align-content: start;
}
.result-focus .focus-card h2 { font-size: 1.3rem; font-weight: 620; letter-spacing: -0.015em; color: var(--paper); }
.result-focus .focus-card p { color: var(--ice-64); font-weight: 300; max-width: 52em; }
.result-focus .focus-card.is-lead {
  border-color: rgba(0, 116, 254, 0.6);
  box-shadow: 0 0 30px rgba(0, 116, 254, 0.16);
  padding: 30px 32px;
}
.result-focus .focus-card.is-lead::after {
  content: 'Your lead focus';
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
}
.focus-card__hook {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #68b4d6 !important; margin: 0;
}
.result-unique { display: grid; gap: 20px; }
/* No JS: every focus reading is part of the document */
html:not(.js) .hg-surveypage .result-focus .focus-card { display: grid; }
