/* ==========================================================================
   CodeROG hero experiments — /heroes/
   Shared shell for pinned, scroll-driven heroes (.hx) plus the gallery page.
   Experiments only: not part of the site stylesheet. Uses the design tokens.

   Markup contract (the hero script fills .hx__stage and adds the rest):
   <section class="hx" data-theme="dark">
     <div class="hx__sticky">
       <div class="hx__stage"> static fallback art </div>
       <div class="hx__shade"></div>
       <div class="hx__content cr-container"> <div class="hx__copy">…</div> </div>
     </div>
   </section>
   States set by the script: .is-live (pinned + scrubbed), .is-static (reduced
   motion: one composed frame), .is-fallback (no WebGL), .is-ready (canvas in).
   ========================================================================== */

.hx {
  --hx-bg: var(--n-1000);
  --hx-length: 520vh;
  position: relative;
  background: var(--hx-bg);
  color: var(--text);
}
.hx.is-live { height: var(--hx-length); }

.hx__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; isolation: isolate;
  background: var(--hx-bg);
}

.hx__stage { position: absolute; inset: 0; z-index: 0; }
.hx__stage canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hx.is-ready .hx__stage canvas { opacity: 1; }

/* ---- static art: shown before the scene loads, and kept when WebGL is missing ---- */
.hx-fallback {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 70% at 68% 46%, rgb(77 91 250 / 0.34), transparent 70%),
    radial-gradient(40% 50% at 86% 20%, rgb(144 133 254 / 0.2), transparent 70%),
    radial-gradient(50% 60% at 30% 90%, rgb(47 107 255 / 0.12), transparent 70%),
    var(--hx-bg);
}
.hx-fallback__core {
  position: absolute; left: 66%; top: 46%;
  width: clamp(120px, 15vw, 210px); aspect-ratio: 1;
  translate: -50% -50%;
  display: grid; place-items: center;
}
.hx-fallback__core img { width: 100%; height: 100%; filter: drop-shadow(0 24px 60px rgb(77 91 250 / 0.6)); }
.hx-fallback__core i {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%; aspect-ratio: 1;
  box-shadow: inset 0 0 0 1px rgb(135 146 255 / 0.28);
}
.hx-fallback__core i:nth-of-type(1) { width: 190%; }
.hx-fallback__core i:nth-of-type(2) { width: 300%; box-shadow: inset 0 0 0 1px rgb(135 146 255 / 0.16); }
.hx-fallback__core i:nth-of-type(3) { width: 440%; box-shadow: inset 0 0 0 1px rgb(135 146 255 / 0.09); }
.hx.is-ready .hx-fallback { visibility: hidden; }

/* ---- legibility shade over the scene, and a soft hand-off to the page below ---- */
.hx__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(11 12 23 / 0.9) 0%, rgb(11 12 23 / 0.66) 26%, rgb(11 12 23 / 0) 58%),
    linear-gradient(180deg, rgb(11 12 23 / 0.7) 0%, rgb(11 12 23 / 0) 16%),
    linear-gradient(0deg, var(--n-950) 0%, rgb(18 19 33 / 0) 14%);
}

/* extra shade behind the copy while the camera flies close to objects (--hx-busy is set by the script, 0..1) */
.hx__shade::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 62% at 16% 50%, rgb(11 12 23 / 0.86) 0%, rgb(11 12 23 / 0.6) 45%, rgb(11 12 23 / 0) 100%);
  opacity: var(--hx-busy, 0);
}

/* ---- projected labels that follow objects in the scene ---- */
.hx__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hx-label {
  position: absolute; left: 0; top: 0;
  padding: 5px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--n-150);
  background: rgb(18 19 33 / 0.62);
  box-shadow: inset 0 0 0 1px rgb(135 146 255 / 0.3);
  opacity: 0; will-change: transform, opacity;
}

/* ---- HTML copy ---- */
.hx__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + var(--s-16)) var(--s-96);
  pointer-events: none;
}
.hx__copy {
  display: flex; flex-direction: column; gap: var(--s-24);
  width: 100%; max-width: 540px;
  pointer-events: auto;
}
.hx__copy h1 { text-shadow: 0 2px 30px rgb(11 12 23 / 0.8); }
.hx__copy p { color: var(--n-200); max-width: 46ch; text-shadow: 0 1px 16px rgb(11 12 23 / 0.9); }
.hx__actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-8); }

/* ---- chapter rail: where we are in the timeline ---- */
.hx__rail {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--s-32);
  display: flex; align-items: center; gap: var(--s-16);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-subdued); pointer-events: none;
}
.hx__rail b { font-weight: 500; color: var(--n-150); min-width: 2ch; }
.hx__rail-bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: rgb(175 180 220 / 0.18); overflow: hidden; }
.hx__rail-bar i { position: absolute; inset: 0; background: var(--gradient-brand); transform-origin: 0 50%; transform: scaleX(0); }
.hx__rail-hint { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-8); transition: opacity var(--dur-slow) var(--ease-out); }
.hx__rail-hint::after { content: ""; width: 1px; height: 28px; background: linear-gradient(180deg, var(--brand-400), transparent); animation: hx-hint 1.8s var(--ease-in-out) infinite; transform-origin: 50% 0; }
@keyframes hx-hint { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hx:not(.is-live) .hx__rail { display: none; }

.hx__stats {
  position: absolute; z-index: 4; right: 12px; top: calc(var(--nav-h) + 8px);
  padding: 6px 10px; border-radius: var(--r-lg);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5; white-space: pre;
  color: var(--green-400); background: rgb(11 12 23 / 0.8);
}

@media (max-width: 767px) {
  .hx__content { align-items: flex-end; padding-block: var(--nav-h) var(--s-80); }
  .hx__copy { max-width: none; gap: var(--s-16); }
  .hx__shade {
    background:
      linear-gradient(0deg, rgb(11 12 23 / 0.97) 0%, rgb(11 12 23 / 0.84) 34%, rgb(11 12 23 / 0) 64%),
      linear-gradient(180deg, rgb(11 12 23 / 0.7) 0%, rgb(11 12 23 / 0) 14%);
  }
  .hx__shade::after { display: none; }
  .hx__rail { bottom: var(--s-24); }
  .hx__rail-hint { display: none; }
  .hx-label { font-size: 9px; padding: 4px 8px; }
  .hx-fallback__core { left: 50%; top: 28%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__stage canvas { transition: none; }
  .hx__rail-hint::after { animation: none; }
}

/* ==========================================================================
   Hero 02 — universe with stops (.hx--stops): caption, dot rail, static list
   ========================================================================== */
.hx--stops .hx__content { display: grid; align-items: center; }
.hx--stops .hx__content > * { grid-area: 1 / 1; }
.hx--stops .hx__copy { will-change: opacity; }
.hxs-caption {
  display: flex; flex-direction: column; gap: var(--s-16);
  width: 100%; max-width: 520px;
  opacity: 0; pointer-events: auto; will-change: opacity, transform;
}
.hxs-caption[inert] { pointer-events: none; }
.hxs-caption h2 { text-shadow: 0 2px 30px rgb(11 12 23 / 0.8); }
.hxs-caption p { color: var(--n-200); max-width: 40ch; text-shadow: 0 1px 16px rgb(11 12 23 / 0.9); }
.hxs-caption__num { font-family: var(--font-mono); letter-spacing: 0.1em; }

.hxs-rail {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: var(--s-24);
  display: flex; align-items: center; gap: var(--s-16);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-subdued);
}
.hxs-rail__num { font-weight: 500; color: var(--n-150); min-width: 2ch; }
.hxs-rail__dots { display: flex; align-items: center; }
.hxs-rail__dots button { display: grid; place-items: center; width: 20px; height: 28px; border-radius: var(--r-sm); }
.hxs-rail__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(175 180 220 / 0.32); transition: width var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.hxs-rail__dots button:hover i { background: var(--n-150); }
.hxs-rail__dots button[aria-current] i { width: 18px; border-radius: 6px; background: var(--brand-400); box-shadow: 0 0 12px rgb(102 114 255 / 0.9); }
.hxs-rail__name { color: var(--n-150); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxs-rail .hx__rail-hint { margin-left: auto; }

.hxs-list { position: relative; z-index: 1; padding-block: var(--gap-2xl); background: var(--n-950); }
.hxs-list__grid { list-style: none; padding: 0; display: grid; gap: var(--gap-sm); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.hxs-list__item { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s-24); border-radius: var(--r-2xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.hxs-list__item:hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--border); }

@media (max-width: 767px) {
  .hx--stops .hx__content { align-items: end; }
  .hxs-caption { max-width: none; gap: var(--s-12); }
  .hxs-rail { gap: var(--s-8); bottom: var(--s-16); }
  .hxs-rail__dots button { width: 15px; }
  .hxs-rail__dots i { width: 5px; height: 5px; }
  .hxs-rail__dots button[aria-current] i { width: 11px; }
  .hxs-rail__name { display: none; }
}

/* ==========================================================================
   Hero 04 — luxe look (.hx--luxe): near-black stage, lighter type, hairlines
   ========================================================================== */
.hx--luxe { --hx-bg: #050508; }
.hx--luxe .hx__shade {
  background:
    linear-gradient(90deg, rgb(5 5 8 / 0.9) 0%, rgb(5 5 8 / 0.62) 26%, rgb(5 5 8 / 0) 58%),
    linear-gradient(180deg, rgb(5 5 8 / 0.7) 0%, rgb(5 5 8 / 0) 16%),
    linear-gradient(0deg, var(--n-950) 0%, rgb(18 19 33 / 0) 12%);
}
.hx--luxe .hx__shade::after { background: radial-gradient(70% 62% at 16% 50%, rgb(5 5 8 / 0.88) 0%, rgb(5 5 8 / 0.6) 45%, rgb(5 5 8 / 0) 100%); }
.hx--luxe .hx-fallback {
  background:
    radial-gradient(50% 60% at 68% 46%, rgb(77 91 250 / 0.2), transparent 70%),
    radial-gradient(40% 50% at 86% 20%, rgb(255 240 220 / 0.06), transparent 70%),
    var(--hx-bg);
}
.hx--luxe .hx__copy { gap: var(--s-32); }
.hx--luxe .hx__copy h1, .hx--luxe .hxs-caption h2 { font-weight: var(--fw-light); letter-spacing: -0.022em; }
.hx--luxe .hx__copy p, .hx--luxe .hxs-caption p { font-weight: var(--fw-light); color: var(--n-300); max-width: 38ch; }
.hx--luxe .cr-btn { font-weight: var(--fw-regular); letter-spacing: 0.04em; }
.hx--luxe .cr-btn--gradient { box-shadow: none; }
.hx--luxe .cr-btn--secondary { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hx--luxe .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); }
.hx--luxe .hxs-caption { gap: var(--s-20); max-width: 440px; padding-top: var(--s-24); border-top: 1px solid rgb(255 255 255 / 0.18); }
.hx--luxe .hxs-caption__num { font-size: 10px; letter-spacing: 0.3em; color: var(--n-300); }
.hx--luxe .hx-label {
  padding: 7px 0 0; border-radius: 0; background: none; box-shadow: none;
  border-top: 1px solid rgb(255 255 255 / 0.35);
  font-size: 9.5px; letter-spacing: 0.24em; color: var(--n-300);
}
.hx--luxe .hxs-rail { font-size: 10px; letter-spacing: 0.26em; gap: var(--s-20); }
.hx--luxe .hxs-rail__dots button { width: 14px; }
.hx--luxe .hxs-rail__dots i { width: 1px; height: 9px; border-radius: 0; background: rgb(255 255 255 / 0.3); transition: height var(--dur-slow) var(--ease-smooth), background-color var(--dur) var(--ease-out); }
.hx--luxe .hxs-rail__dots button:hover i { background: #fff; }
.hx--luxe .hxs-rail__dots button[aria-current] i { width: 1px; height: 22px; border-radius: 0; background: #fff; box-shadow: none; }
.hx--luxe .hx__rail-hint::after { background: linear-gradient(180deg, #fff, transparent); }
@media (max-width: 767px) {
  .hx--luxe .hx__shade {
    background:
      linear-gradient(0deg, rgb(5 5 8 / 0.97) 0%, rgb(5 5 8 / 0.85) 34%, rgb(5 5 8 / 0) 64%),
      linear-gradient(180deg, rgb(5 5 8 / 0.7) 0%, rgb(5 5 8 / 0) 14%);
  }
  .hx--luxe .hxs-rail__dots button { width: 12px; }
  .hx--luxe .hxs-caption { padding-top: var(--s-16); }
}

/* ==========================================================================
   Experiment pages: slim top bar, notes below the hero, gallery
   ========================================================================== */
.hx-bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgb(11 12 23 / 0.7), rgb(11 12 23 / 0));
}
.hx-bar--solid { position: sticky; top: 0; background: var(--bg-frosted); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 -1px 0 var(--border-subtle); }
.hx-bar__inner { display: flex; align-items: center; gap: var(--s-16); }
.hx-bar__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); padding-left: var(--s-16); border-left: 1px solid var(--border); }
.hx-bar__links { margin-left: auto; display: flex; align-items: center; gap: var(--s-8); }
@media (max-width: 599px) { .hx-bar__tag { display: none; } }

.hx-notes { display: grid; gap: var(--gap-lg); grid-template-columns: 1fr; }
@media (min-width: 900px) { .hx-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hx-notes > div { display: flex; flex-direction: column; gap: var(--s-12); padding: var(--s-32); border-radius: var(--r-3xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.hx-notes ul { display: flex; flex-direction: column; gap: var(--s-8); padding-left: 1.1em; color: var(--text-subdued); font-size: var(--text-sm); line-height: 1.5; }
.hx-notes code, .hx-code { font-family: var(--font-mono); font-size: 0.86em; color: var(--text-primary); }
.hx-snippet { margin-top: var(--gap-lg); padding: var(--s-24); border-radius: var(--r-2xl); background: var(--n-1000); box-shadow: inset 0 0 0 1px var(--border-subtle); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--n-200); overflow-x: auto; white-space: pre; }

.hx-gallery { display: grid; gap: var(--gap-lg); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.hx-tile {
  display: flex; flex-direction: column;
  border-radius: var(--r-3xl); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: translate var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
a.hx-tile:hover { translate: 0 -4px; background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); }
.hx-tile__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--n-1000); }
.hx-tile__art .hx-fallback__core { left: 50%; top: 50%; width: 22%; }
.hx-tile__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 82% 16%, #cfd4ff, transparent),
    radial-gradient(1.5px 1.5px at 72% 78%, #aab3ff, transparent), radial-gradient(1px 1px at 24% 70%, #fff, transparent),
    radial-gradient(1px 1px at 44% 12%, #cfd4ff, transparent), radial-gradient(1.5px 1.5px at 92% 58%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #aab3ff, transparent), radial-gradient(1px 1px at 58% 90%, #fff, transparent);
  opacity: 0.7;
}
.hx-tile__body { display: flex; flex-direction: column; gap: var(--s-8); padding: var(--s-24); }
.hx-tile__meta { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-8); font-family: var(--font-mono); font-size: 11px; color: var(--text-subdued); }
.hx-tile__meta span { padding: 4px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--border); }
.hx-tile--empty { align-items: center; justify-content: center; min-height: 280px; background: transparent; box-shadow: none; border: 1px dashed var(--border); color: var(--text-subdued); text-align: center; padding: var(--s-32); gap: var(--s-8); }

/* ==========================================================================
   Hero 07 — "Design it. Build it. Grow it." (design-build-grow.js)
   A self-playing vector animation beside the copy. The script sets --a
   (0..1, how lit a phrase is) and --p (0..1, progress through its beat) on
   each .hd__word, and .is-live / .is-static / .is-ready on the section.
   ========================================================================== */
.hd {
  --hd-bg: #050508;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--nav-h) + var(--s-24)) var(--s-64);
  background: var(--hd-bg); color: #fff;
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 56% at 72% 46%, rgb(77 91 250 / 0.17) 0%, rgb(77 91 250 / 0) 100%),
    radial-gradient(40% 40% at 8% 100%, rgb(139 124 255 / 0.08) 0%, rgb(139 124 255 / 0) 100%);
}
.hd__inner {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
}
.hd__copy { display: grid; gap: var(--s-32); justify-items: start; }
.hd__title {
  margin: 0; display: grid; justify-items: start;
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(2.6rem, 5.3vw, 4.75rem); line-height: 1.06; letter-spacing: -0.026em;
}
.hd__word {
  --a: 1; --p: 0;
  position: relative; display: inline-flex; align-items: baseline; gap: 0.42em;
  padding-block: 0.05em; color: #fff; text-decoration: none; white-space: nowrap;
  opacity: calc(0.44 + 0.56 * var(--a));
}
.hd__word em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hd__word small {
  font: var(--fw-medium) 11px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--n-300);
  opacity: var(--a); transform: translateX(calc((1 - var(--a)) * -8px));
}
.hd__word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, #6672ff, #c9c0ff);
  transform-origin: 0 50%; transform: scaleX(var(--p)); opacity: var(--a);
}
.hd__word:hover, .hd__word:focus-visible { opacity: 1; }
.hd__word:focus-visible { outline: 1px solid var(--brand-400); outline-offset: 6px; border-radius: 4px; }
.hd__lede { margin: 0; max-width: 40ch; font-weight: var(--fw-light); color: var(--n-300); }
.hd__actions { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.hd .cr-btn--secondary { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.hd .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.06); }

.hd__stage { position: relative; width: 100%; aspect-ratio: 720 / 560; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.hd.is-ready .hd__stage { opacity: 1; }
.hd.is-ready .hd__stage.is-seek { opacity: 0.12; transition-duration: 0.16s; }
.hd-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hd-svg text { font-family: var(--font-mono); fill: #fff; }
.hd-num { font-size: 7px; fill-opacity: 0.2; }
.hd-tab { font-size: 7.5px; fill-opacity: 0.62; }
.hd-chip { font-size: 8.5px; font-weight: 500; letter-spacing: 0.04em; fill-opacity: 0.86; }
.hd-dim { font-size: 8px; fill-opacity: 0.4; }
.hd-svg .hd-dim--b { fill: #8792ff; fill-opacity: 1; }
.hd-svg .hd-aa { font: var(--fw-light) 46px/1 var(--font-display); letter-spacing: -0.03em; }
.hd.is-static .hd__word::after { display: none; }

@media (max-width: 900px) {
  .hd { min-height: 0; padding-block: calc(var(--nav-h) + var(--s-32)) var(--s-48); }
  .hd__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-32); }
  .hd__copy { gap: var(--s-24); }
  .hd__title { font-size: clamp(2.5rem, 11.5vw, 4rem); }
  .hd__word small { font-size: 10px; letter-spacing: 0.16em; }
  .hd::before { background: radial-gradient(70% 40% at 50% 74%, rgb(77 91 250 / 0.18) 0%, rgb(77 91 250 / 0) 100%); }
}
.hx-tile__art--dbg {
  display: grid; align-content: center; gap: 0.1em; padding-inline: 9%;
  background: radial-gradient(60% 70% at 78% 50%, rgb(77 91 250 / 0.28) 0%, rgb(77 91 250 / 0) 100%), #050508;
  font: var(--fw-light) clamp(1.25rem, 2.4vw, 1.9rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff;
}
.hx-tile__art--dbg span:nth-child(2) { opacity: 0.55; }
.hx-tile__art--dbg span:nth-child(3) { opacity: 0.3; }

/* ==========================================================================
   Hero 08 — "Design it. Build it. Grow it.", type-led (design-build-grow-type.js)
   The phrases are the artwork, centred on a full-width stage. Without the
   script .hb__title is the headline; once the script adds .is-live or
   .is-static the SVG in .hb__stage takes over and the title is kept for
   assistive technology and keyboards. --f (0..1) is set while all three
   phrases are finished.
   ========================================================================== */
.hb {
  --hb-bg: #050508; --hb-font: "Figtree"; --f: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: center; justify-items: center; gap: var(--s-32);
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + var(--s-16)) var(--s-24) var(--s-64);
  background: var(--hb-bg); color: #fff; text-align: center;
}
.hb::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(56% 52% at 50% 44%, rgb(77 91 250 / 0.2) 0%, rgb(77 91 250 / 0) 100%);
}
.hb__title {
  margin: 0; display: grid; justify-items: center;
  font-family: var(--font-display); font-weight: var(--fw-light);
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1.05; letter-spacing: -0.026em;
}
.hb__word { color: #fff; text-decoration: none; }
.hb__word em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb__word small { display: none; }
.hb.is-live .hb__title, .hb.is-static .hb__title {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.hb__stage { display: none; width: min(100%, 1280px); aspect-ratio: 1200 / 600; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.hb.is-live .hb__stage, .hb.is-static .hb__stage { display: block; }
.hb__stage { position: relative; }
.hb__stage::before {      /* static dotted backdrop, kept out of the animated SVG so frames stay cheap */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.13) 0.9px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(58% 62% at 50% 50%, #000 30%, transparent 100%);
}
.hb-svg { position: relative; }
.hb.is-ready .hb__stage { opacity: 1; }
.hb.is-ready .hb__stage.is-seek { opacity: 0.12; transition-duration: 0.16s; }
.hb:has(.hb__word:focus-visible) .hb__stage { outline: 1px solid var(--brand-400); outline-offset: 4px; border-radius: 8px; }
.hb__lede { margin: 0; max-width: 46ch; font-weight: var(--fw-light); color: var(--n-300); opacity: calc(0.72 + 0.28 * var(--f)); }
.hb__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-16); }
.hb .cr-btn--secondary { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.hb .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.06); }

.hb-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hb-svg a { cursor: pointer; }
.hb-t { font: var(--fw-light) 148px/1 var(--font-display); letter-spacing: -0.026em; }
.hb-ghost { fill: none; stroke: #fff; stroke-width: 1; }
.hb-solid { fill: #fff; }
.hb-solid .hb-it { fill: url(#hbG); }
.hb-draw { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.hb-label { font: var(--fw-medium) 11px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; fill: var(--n-300); }
.hb-label__n { fill: #8792ff; }
.hb-tag { font: 10px/1 var(--font-mono); fill: #8792ff; }
.hb-code { font: 13px/1 var(--font-mono); fill: #fff; white-space: pre; }

@media (max-width: 720px) {
  .hb { gap: var(--s-24); padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-16) var(--s-48); align-content: start; min-height: 0; }
  .hb__stage { aspect-ratio: 756 / 600; width: calc(100% + 2 * var(--s-16)); margin-inline: calc(-1 * var(--s-16)); }
  .hb-label { font-size: 17px; letter-spacing: 0.14em; }
  .hb-tag { font-size: 15px; }
  .hb-code { font-size: 18px; }
  .hb__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hb::before { background: radial-gradient(90% 40% at 50% 30%, rgb(77 91 250 / 0.22) 0%, rgb(77 91 250 / 0) 100%); }
}
/* ---- Hero 13 — hero 08 reworked (design-build-grow-type-2.js). Everything is scoped to .hb--2; hero 08 is untouched.
   The stage is sized from the viewport height so the phrases, the line and both buttons fit the first screen.
   --u (set by the script) is how many drawing units make one screen pixel, so small text keeps its size. ---- */
.hb--2 { gap: clamp(14px, 2.6vh, 28px); padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-24) clamp(44px, 9vh, 104px); }
.hb--2 .hb__stage { aspect-ratio: 1200 / 500; margin-inline: 0; width: min(100%, 1400px, max(520px, calc((100svh - var(--nav-h) - 296px) * 2.4))); }
.hb--2 .hb__stage::before { -webkit-mask-image: radial-gradient(50% 70% at 50% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(50% 70% at 50% 50%, #000 20%, transparent 100%); }
.hb--2 .hb-t { font-size: 128px; }
.hb--2 .hb-solid { stroke: #fff; stroke-linejoin: round; }
.hb--2 .hb-solid .hb-it { fill: url(#hb2G); stroke: url(#hb2G); }
.hb--2 .hb-label { font-size: calc(11px * var(--u, 1)); letter-spacing: 0.2em; fill: #fff; }
.hb--2 .hb-desc { font: var(--fw-regular, 400) calc(13px * var(--u, 1))/1 var(--font-display); fill: var(--n-300); }
.hb--2 .hb-tag { font-size: calc(10px * var(--u, 1)); }
.hb--2 .hb-code { font-size: calc(13px * var(--u, 1)); }
.hb--2 .hb-status { font: calc(11px * var(--u, 1))/1 var(--font-mono); letter-spacing: 0.06em; fill: #c9c0ff; }
.hb--2 .hb__lede { max-width: 50ch; }
.hb__what { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.9375rem; color: var(--n-300); }
.hb__what b { font-weight: var(--fw-medium); color: #fff; }
.hb.is-live .hb__what, .hb.is-static .hb__what { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .hb--2 { align-content: start; min-height: 0; gap: var(--s-24); padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-16) var(--s-48); }
  .hb--2 .hb__stage { aspect-ratio: 556 / 570; justify-self: center; margin-inline: calc(-1 * var(--s-16)); width: min(100vw, max(300px, calc((100svh - var(--nav-h) - 320px) * 0.975))); }
  .hb--2 .hb__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hb--2::before { background: radial-gradient(90% 40% at 50% 30%, rgb(77 91 250 / 0.22) 0%, rgb(77 91 250 / 0) 100%); }
}
.hx-tile__art--type2 span { position: relative; }
.hx-tile__art--type2 span:nth-child(n+2) { color: #fff; -webkit-text-stroke: 0; }
.hx-tile__art--type2 span:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; border: 1px solid rgb(102 114 255 / 0.6); box-shadow: 0 0 0 14px rgb(102 114 255 / 0.08); }
/* ---- Hero 14 — heroes 13 and 07 in one drawing (design-build-grow-combined.js). Everything is scoped to .hb--combo.
   One SVG holds the phrases (left) and the product (right); the copy is pulled up into the empty lower-left of the drawing.
   Up to 900px the drawing is the phrases only and the script moves the product below the copy (into .hb__room). ---- */
.hb--combo { display: grid; align-content: center; justify-items: center; gap: 0; text-align: left; padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-24) clamp(32px, 6vh, 72px); }
.hb--combo::before { background: radial-gradient(42% 56% at 74% 46%, rgb(77 91 250 / 0.19) 0%, rgb(77 91 250 / 0) 100%), radial-gradient(36% 44% at 16% 30%, rgb(77 91 250 / 0.1) 0%, rgb(77 91 250 / 0) 100%); }
.hb--combo .hb__wrap { position: relative; width: min(100%, max(900px, min(90%, 1500px, calc((100svh - var(--nav-h) - 96px) * 2.22)))); }      /* centred, with the same margin either side */
.hb--combo .hb__title { justify-items: start; font-size: clamp(2.6rem, 6.4vw, 6rem); }
.hb--combo .hb__stage { aspect-ratio: 1290 / 580; width: 100%; margin-inline: 0; }
.hb--combo .hb__stage::before { -webkit-mask-image: radial-gradient(38% 62% at 74% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(38% 62% at 74% 50%, #000 20%, transparent 100%); }
.hb--combo .hb-svg { pointer-events: none; }
.hb--combo .hb-svg a { pointer-events: auto; }
.hb--combo .hb__copy { position: relative; display: grid; gap: var(--s-24); justify-items: start; margin-top: var(--s-24); }
.hb--combo.is-live .hb__copy, .hb--combo.is-static .hb__copy { margin-top: -14.4%; padding-left: 3.1%; max-width: 45%; box-sizing: border-box; }
.hb--combo .hb__lede { max-width: 37rem; }
.hb--combo .hb__room { height: 0; }
.hb--combo .hb-solid { stroke: #fff; stroke-linejoin: round; }
.hb--combo .hb-solid .hb-it0 { fill: url(#hcW0); stroke: url(#hcW0); }
.hb--combo .hb-solid .hb-it1 { fill: url(#hcW1); stroke: url(#hcW1); }
.hb--combo .hb-solid .hb-it2 { fill: url(#hcW2); stroke: url(#hcW2); }
.hb--combo .hb-label { font-size: calc(11px * var(--u, 1)); letter-spacing: 0.2em; fill: #fff; }
.hb--combo .hb-desc { font: var(--fw-regular, 400) calc(14px * var(--u, 1))/1 var(--font-display); fill: #c6c8d8; }
.hb--combo .hb-tag { font-size: calc(10px * var(--u, 1)); }
.hb--combo .hc-p text { font-family: var(--font-mono); fill: #fff; }
.hb--combo .hc-num { font-size: 7px; fill-opacity: 0.2; }
.hb--combo .hc-tab { font-size: 7.5px; fill-opacity: 0.62; }
.hb--combo .hc-code { font-size: 8px; fill-opacity: 0.95; white-space: pre; }
.hb--combo .hc-chip { font-size: 8.5px; font-weight: 500; letter-spacing: 0.04em; fill-opacity: 0.86; }
.hb--combo .hc-dim { font-size: 8px; fill-opacity: 0.4; }
.hb--combo .hc-p .hc-dim--b { fill: #8792ff; fill-opacity: 1; }
.hb--combo .hc-p .hc-aa { font: var(--fw-light) 46px/1 var(--font-display); letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .hb--combo { align-content: start; min-height: 0; padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-16) var(--s-32); }
  .hb--combo .hb__wrap { width: 100%; display: grid; justify-items: center; }
  .hb--combo .hb__stage { aspect-ratio: 556 / 448; margin-inline: calc(-1 * var(--s-16)); width: min(100vw, max(300px, calc((100svh - var(--nav-h) - 320px) * 1.24))); }
  .hb--combo .hb__stage::before { display: none; }
  .hb--combo.is-live .hb__copy, .hb--combo.is-static .hb__copy { margin-top: var(--s-24); padding-left: 0; max-width: none; }
  .hb--combo .hb__copy { width: 100%; justify-items: center; text-align: center; }
  .hb--combo .hb__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hb--combo .hb__room { width: 100%; }
  .hb--combo::before { background: radial-gradient(90% 30% at 50% 22%, rgb(77 91 250 / 0.22) 0%, rgb(77 91 250 / 0) 100%), radial-gradient(90% 30% at 50% 84%, rgb(77 91 250 / 0.16) 0%, rgb(77 91 250 / 0) 100%); }
}
.hx-tile__art--combo { grid-template-columns: 1fr 1fr; justify-items: start; align-items: center; padding-inline: 8%; font-size: clamp(1.1rem, 2.1vw, 1.7rem); }
.hx-tile__art--combo span { grid-column: 1; }
.hx-tile__art--combo span:nth-child(n+2) { color: #fff; -webkit-text-stroke: 0; }
.hx-tile__art--combo i { grid-column: 2; grid-row: 1 / 4; justify-self: end; width: 86%; aspect-ratio: 38 / 30; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.3); background: linear-gradient(135deg, #4a56f9, #9085fe) 58% 34% / 34% 36% no-repeat, linear-gradient(#fff, #fff) 12% 30% / 34% 6% no-repeat, linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)) 0 0 / 100% 12% no-repeat, #0b0c18; }
.hx-tile__art--type {
  display: grid; align-content: center; justify-items: center; gap: 0.06em;
  background: radial-gradient(60% 70% at 50% 50%, rgb(77 91 250 / 0.3) 0%, rgb(77 91 250 / 0) 100%), #050508;
  font: var(--fw-light) clamp(1.4rem, 2.8vw, 2.2rem)/1.06 var(--font-display); letter-spacing: -0.02em; color: #fff;
}
.hx-tile__art--type span:nth-child(n+2) { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.45); }

/* ==========================================================================
   Hero 09 — "Every layer of your product." (parallax-layers.js)
   A pinned stage; four sheets of line art at different depths in real CSS 3D.
   The script writes transform and opacity only. States on the section:
   .is-live (pinned, scroll-driven), .is-static (reduced motion: one composed
   frame), .is-mobile (stage above the copy), .is-playing (in view, running).
   ========================================================================== */
.hp { --hp-bg: #050508; --hp-length: 280vh; position: relative; background: var(--hp-bg); color: #fff; }
.hp.is-live { height: var(--hp-length); }
.hp__sticky {
  --bgx: 0px; --bgy: 0px;
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate; background: var(--hp-bg);
}
.hp__sticky::before {      /* far back: a faint grid and an indigo glow that barely move */
  content: ""; position: absolute; inset: -40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 52% at 70% 48%, rgb(77 91 250 / 0.2) 0%, rgb(77 91 250 / 0) 100%),
    radial-gradient(circle, rgb(255 255 255 / 0.1) 0.9px, transparent 1.5px) 0 0 / 28px 28px;
  transform: translate3d(var(--bgx), var(--bgy), 0);
}
.hp__sticky::after {       /* vignette, so cropped sheets fade into the frame edges */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 50%, rgb(5 5 8 / 0) 62%, rgb(5 5 8 / 0.7) 100%);
}
.hp__scene { position: absolute; inset: 0; z-index: 1; perspective: 2400px; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.hp.is-ready .hp__scene { opacity: 1; }
.hp-world { position: absolute; left: 50%; top: 50%; width: 900px; height: 650px; margin: -325px 0 0 -450px; transform-style: preserve-3d; will-change: transform; }
.hp-layer { position: absolute; inset: 0; will-change: transform, opacity; }
.hp-sheet { position: absolute; inset: -20px; border-radius: 28px; border: 1px solid rgb(255 255 255 / 0.26); background: rgb(20 22 44 / 0.2); opacity: 0; will-change: opacity; }
.hp-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-art--soft { filter: blur(2.4px); will-change: opacity; }
.hp-art--sharp { opacity: 0; will-change: opacity; }
.hp-mono { font-family: var(--font-mono); fill: #fff; }
.hp-pulse {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px rgb(102 114 255 / 0.9); opacity: 0;
  animation: hp-pulse 3s linear infinite paused;
}
.hp.is-playing .hp-pulse { animation-play-state: running; }
@keyframes hp-pulse {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  14%, 86% { opacity: 1; }
  100% { transform: translate3d(var(--dx), var(--dy), 0); opacity: 0; }
}
.hp__labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hp-label {
  --lead: 26px;
  position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity;
  font: var(--fw-medium) 11px/20px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--n-200);
}
.hp-label b { margin-right: 0.9em; font-weight: var(--fw-medium); color: #8792ff; }
.hp-label::before { content: ""; position: absolute; right: calc(100% + 8px); top: 50%; width: var(--lead); height: 1px; background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.45)); }
.hp__fg { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hp__fg i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgb(150 158 255 / 0.55) 0%, rgb(150 158 255 / 0) 70%); filter: blur(7px); will-change: transform; }
.hp__fg u { position: absolute; width: 150px; height: 1px; rotate: -26deg; opacity: 0.5; background: linear-gradient(90deg, rgb(201 192 255 / 0), rgb(201 192 255 / 0.7), rgb(201 192 255 / 0)); will-change: transform; }
.hp__content { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; pointer-events: none; }
.hp__copy { display: grid; gap: var(--s-32); justify-items: start; max-width: 540px; pointer-events: auto; will-change: transform, opacity; }
.hp__title { margin: 0; font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(2.5rem, 4.5vw, 4.1rem); line-height: 1.07; letter-spacing: -0.026em; text-shadow: 0 2px 30px rgb(5 5 8 / 0.8); }
.hp__title em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp__lede { margin: 0; max-width: 42ch; font-weight: var(--fw-light); color: var(--n-300); text-shadow: 0 1px 16px rgb(5 5 8 / 0.9); }
.hp__actions { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.hp .cr-btn--secondary { background: rgb(5 5 8 / 0.4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.hp .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.06); }

.hp.is-static { height: auto; }
.hp.is-static .hp__labels, .hp.is-static .hp__fg { display: none; }

@media (max-width: 819px) {
  .hp__sticky::before { background: radial-gradient(80% 36% at 50% 30%, rgb(77 91 250 / 0.22) 0%, rgb(77 91 250 / 0) 100%), radial-gradient(circle, rgb(255 255 255 / 0.1) 0.9px, transparent 1.5px) 0 0 / 26px 26px; }
  .hp__content { align-items: flex-end; padding-bottom: var(--s-24); }
  .hp__copy { gap: var(--s-16); max-width: none; }
  .hp__title { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .hp__lede { font-size: 0.95rem; line-height: 1.5; }
  .hp__actions { gap: 10px; }
  .hp__actions .cr-btn { padding-inline: 18px; }
  .hp-label { font-size: 10px; letter-spacing: 0.14em; padding: 0 9px; border-radius: 10px; background: rgb(5 5 8 / 0.72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
  .hp-label::before { display: none; }
  .hp__fg i:nth-child(n+4) { display: none; }
}
.hx-tile__art--layers { display: grid; place-items: center; perspective: 600px; background: radial-gradient(60% 70% at 50% 50%, rgb(77 91 250 / 0.3) 0%, rgb(77 91 250 / 0) 100%), #050508; }
.hx-tile__art--layers span { grid-area: 1 / 1; width: 46%; aspect-ratio: 18 / 13; border-radius: 9px; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(13 14 28 / 0.6); transform: translateY(calc(var(--i) * -17px + 26px)) rotateX(57deg) rotateZ(-30deg); }
.hx-tile__art--layers span:nth-child(3) { border-color: #8792ff; background: rgb(77 91 250 / 0.3); }

/* ==========================================================================
   Hero 10 — "Inside the brackets." (inside-brackets.js)
   A pinned stage and a forward zoom-through. The script places every object
   from its depth; it writes transform and opacity only. Without the script
   the two copy blocks simply stack. States: .is-live (pinned, scroll-driven),
   .is-static (reduced motion: the closing frame), .is-mobile.
   ========================================================================== */
.hz { --hz-bg: #050508; --hz-length: 330vh; position: relative; background: var(--hz-bg); color: #fff; text-align: center; }
.hz__sticky { position: relative; display: grid; gap: var(--s-64); justify-items: center; padding: calc(var(--nav-h) + var(--s-48)) var(--s-24) var(--s-64); }
.hz__scene { display: none; }
.hz__open, .hz__final { display: grid; gap: var(--s-24); justify-items: center; }
.hz__title, .hz__end { margin: 0; font-family: var(--font-display); font-weight: var(--fw-light); letter-spacing: -0.026em; line-height: 1.07; }
.hz__title { font-size: clamp(2.5rem, 4.9vw, 4.6rem); max-width: 9.6em; }
.hz__end { font-size: clamp(2.2rem, 3.9vw, 3.6rem); max-width: 11em; }
.hz__title em, .hz__end em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hz__hint { font: var(--fw-medium) 11px/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--n-400); }
.hz__lede { margin: 0; max-width: 44ch; font-weight: var(--fw-light); color: var(--n-300); }
.hz__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-16); }
.hz .cr-btn--secondary { background: rgb(5 5 8 / 0.4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.hz .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.06); }

.hz.is-live { height: var(--hz-length); }
.hz.is-live .hz__sticky, .hz.is-static .hz__sticky {
  position: sticky; top: 0; display: block; padding: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; overflow: clip; isolation: isolate; background: var(--hz-bg);
}
.hz.is-live .hz__sticky::before, .hz.is-static .hz__sticky::before {      /* stage light and a vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 50%, rgb(5 5 8 / 0) 58%, rgb(5 5 8 / 0.85) 100%);
}
.hz.is-live .hz__scene, .hz.is-static .hz__scene { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.hz.is-ready .hz__scene { opacity: 1; }
.hz__scene > * { position: absolute; left: 50%; top: 50%; }
.hz-light { width: 64vmin; height: 64vmin; border-radius: 50%; background: radial-gradient(circle, rgb(77 91 250 / 0.3) 0%, rgb(77 91 250 / 0.1) 40%, rgb(77 91 250 / 0) 70%); will-change: transform; }
.hz-obj, .hz-mark, .hz-dust, .hz-plane { will-change: transform, opacity; }
.hz-obj svg, .hz-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hz-obj.is-mid { filter: blur(1.1px); }
.hz-obj.is-far { filter: blur(2.6px); }
.hz-mark { width: 228px; height: 600px; margin: -300px 0 0 -114px; }
.hz-dust { border-radius: 50%; background: #fff; }
.hz-dust--v { background: #a99cff; }
.hz-plane { font: var(--fw-medium) 21px/1 var(--font-mono); letter-spacing: 0.36em; text-transform: uppercase; white-space: nowrap; color: var(--n-100); }
.hz-plane b { margin-right: 1em; font-weight: var(--fw-medium); color: #8792ff; }
.hz-mono { font-family: var(--font-mono); fill: #fff; }
.hz-aa { font: var(--fw-light) 54px/1 var(--font-display); letter-spacing: -0.03em; fill: #fff; }
.hz.is-live .hz__open, .hz.is-live .hz__final, .hz.is-static .hz__open, .hz.is-static .hz__final {
  position: absolute; inset: 0; z-index: 4; align-content: center; padding: var(--nav-h) var(--s-24) var(--s-24);
  pointer-events: none; will-change: transform, opacity;
}
.hz.is-live .hz__open > *, .hz.is-live .hz__final > *, .hz.is-static .hz__final > * { pointer-events: auto; }
.hz.is-live .hz__final { opacity: 0; visibility: hidden; }
.hz.is-static { height: auto; }
.hz.is-static .hz__open { display: none; }

@media (max-width: 759px) {
  .hz__title { font-size: clamp(2rem, 9.4vw, 2.7rem); max-width: 6.2em; }
  .hz__end { font-size: clamp(1.8rem, 8.2vw, 2.4rem); max-width: 8.6em; }
  .hz__lede { font-size: 0.95rem; line-height: 1.5; max-width: 30ch; }
  .hz__actions { flex-direction: column; gap: 10px; }
  .hz-plane { font-size: 16px; letter-spacing: 0.26em; }
  .hz.is-live .hz__open, .hz.is-live .hz__final, .hz.is-static .hz__final { padding-inline: var(--s-48); gap: var(--s-16); }
}
.hx-tile__art--brackets { display: grid; place-items: center; background: radial-gradient(50% 60% at 50% 50%, rgb(77 91 250 / 0.36) 0%, rgb(77 91 250 / 0) 100%), #050508; font: var(--fw-light) clamp(2.6rem, 6vw, 4.4rem)/1 var(--font-mono); letter-spacing: 0.18em; color: #8792ff; }

/* ==========================================================================
   Hero 11 — "One team. Many products." (particle-morph.js)
   A full-bleed WebGL canvas of fine particles behind the copy. States:
   .is-live, .is-static (reduced motion: the mark, formed), .is-fallback
   (no WebGL: the static SVG mark stays), .is-ready.
   ========================================================================== */
.hm {
  --hm-bg: #050508;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--nav-h) + var(--s-24)) var(--s-64);
  background: var(--hm-bg); color: #fff;
}
.hm::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 50% at 72% 50%, rgb(77 91 250 / 0.2) 0%, rgb(77 91 250 / 0) 100%);
}
.hm__stage { position: absolute; inset: 0; z-index: -1; }
.hm__stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s var(--ease-out); }
.hm.is-ready .hm__stage canvas { opacity: 1; }
.hm-fallback { position: absolute; left: 72%; top: 50%; width: min(36vw, 420px); translate: -50% -50%; }
.hm-fallback path { fill: none; stroke: #8792ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 9; opacity: 0.9; }
.hm.is-live .hm-fallback, .hm.is-static .hm-fallback { display: none; }
.hm__copy { display: grid; gap: var(--s-32); justify-items: start; max-width: 600px; }
.hm__title { margin: 0; font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.07; letter-spacing: -0.026em; }
.hm__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm__rot { display: block; position: relative; height: 1.14em; }
.hm__word {
  position: absolute; left: 0; top: 0; white-space: nowrap; padding-bottom: 0.12em;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.6s var(--ease-smooth), opacity 0.45s var(--ease-out);
}
.hm__word.is-entering { transform: translate3d(0, 0.5em, 0); opacity: 0; }
.hm__word.is-leaving { transform: translate3d(0, -0.5em, 0); opacity: 0; }
.hm__lede { margin: 0; max-width: 40ch; font-weight: var(--fw-light); color: var(--n-300); }
.hm__actions { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.hm .cr-btn--secondary { background: rgb(5 5 8 / 0.4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.hm .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.06); }
.hm__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm__chips button {
  appearance: none; border: 0; cursor: pointer; padding: 8px 13px; border-radius: 999px;
  font: var(--fw-medium) 10.5px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--n-300); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.hm__chips button:hover { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.hm__chips button[aria-pressed="true"] { color: #fff; background: rgb(102 114 255 / 0.22); box-shadow: inset 0 0 0 1px #8792ff; }
.hm__chips button:focus-visible { outline: 1px solid var(--brand-400); outline-offset: 3px; }
.hm.is-static .hm__chips, .hm.is-fallback .hm__chips { display: none; }

@media (max-width: 819px) {
  .hm { align-items: end; padding-block: var(--nav-h) var(--s-32); }
  .hm::before { background: radial-gradient(80% 34% at 50% 28%, rgb(77 91 250 / 0.22) 0%, rgb(77 91 250 / 0) 100%); }
  .hm-fallback { left: 50%; top: 28%; width: 56vw; }
  .hm__copy { gap: var(--s-16); max-width: none; }
  .hm__title { font-size: clamp(2.1rem, 9.4vw, 2.9rem); }
  .hm__lede { font-size: 0.95rem; line-height: 1.5; }
  .hm__chips { gap: 6px; }
  .hm__chips button { padding: 7px 10px; font-size: 9.5px; letter-spacing: 0.12em; }
  .hm__actions { gap: 10px; }
  .hm__actions .cr-btn { padding-inline: 18px; }
}
.hx-tile__art--dust {
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.5) 0.8px, transparent 1.4px) 0 0 / 9px 9px,
    radial-gradient(50% 60% at 50% 50%, rgb(77 91 250 / 0.36) 0%, rgb(77 91 250 / 0) 100%), #050508;
  -webkit-mask-image: radial-gradient(42% 52% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(42% 52% at 50% 50%, #000 40%, transparent 100%);
}

/* ==========================================================================
   Hero 12 — hero 09's parallax stack with plain-language copy
   (parallax-layers-clear.js). Everything from the .hp block above applies;
   these rules add the rotating headline ending, layer explanations, the
   small-screen legend and the summary row. Hero 09 does not use .hp--clear.
   ========================================================================== */
.hp--clear .hp__copy { max-width: 620px; gap: var(--s-24); }
.hp--clear .hp__title { font-size: clamp(2.1rem, 3.5vw, 3.2rem); }
.hp__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp__rot { display: block; position: relative; height: 1.16em; }
.hp__word {
  position: absolute; left: 0; top: 0; white-space: nowrap; padding-bottom: 0.14em;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.6s var(--ease-smooth), opacity 0.45s var(--ease-out);
}
.hp__word.is-entering { transform: translate3d(0, 0.5em, 0); opacity: 0; }
.hp__word.is-leaving { transform: translate3d(0, -0.5em, 0); opacity: 0; }
/* hero 12 only: the ending lives in its own clipped line box, one headline line tall, with room for descenders;
   the old word slides up and out while the new one slides up and in, and neither is drawn outside the box */
.hp--clear .hp__rot { height: 1.07em; margin-top: 0.06em; padding: 0.1em 0 0.22em; overflow: hidden; box-sizing: content-box; }
.hp--clear .hp__word { top: 0.1em; padding-bottom: 0; }
.hp--clear .hp__word.is-entering { transform: translate3d(0, 1.5em, 0); opacity: 0; }
.hp--clear .hp__word.is-leaving { transform: translate3d(0, -1.5em, 0); opacity: 0; }
.hp--clear .hp__lede { max-width: 46ch; }
.hp__sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; opacity: 0; will-change: opacity; font: var(--fw-medium) 11px/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--n-200); }
.hp__sum li + li::before { content: "·"; margin-right: 14px; color: #8792ff; }
.hp:not(.is-live):not(.is-static) .hp__sum { opacity: 1; }

.hp--clear .hp-label { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; width: 270px; white-space: normal; font: inherit; letter-spacing: 0; text-transform: none; }
.hp--clear .hp-label b { margin: 0; font: var(--fw-medium) 12px/20px var(--font-mono); letter-spacing: 0.1em; color: #8792ff; }
.hp--clear .hp-label strong { font: var(--fw-medium) 13px/20px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.hp--clear .hp-label em { grid-column: 2; font: var(--fw-regular) 15px/1.35 var(--font-sans); font-style: normal; color: var(--n-200); }
.hp--clear .hp-label::before { top: 10px; }
.hp__legend { display: none; }

@media (max-width: 819px) {
  .hp--clear .hp__title { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
  .hp--clear .hp__copy { gap: 14px; }
  .hp--clear .hp__lede { font-size: 0.92rem; }
  .hp__sum { font-size: 9.5px; letter-spacing: 0.12em; gap: 4px 8px; }
  .hp__sum li + li::before { margin-right: 8px; }
  /* the sheets carry only a number; the words are in the list underneath */
  .hp--clear .hp-label { display: block; width: auto; padding: 0; background: none; box-shadow: none; }
  .hp--clear .hp-label strong, .hp--clear .hp-label em { display: none; }
  .hp--clear .hp-label b, .hp__legend b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: var(--fw-medium) 10px/1 var(--font-mono); letter-spacing: 0; color: #fff; background: rgb(77 91 250 / 0.9); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); }
  .hp__legend { display: grid; gap: 11px; position: absolute; z-index: 6; left: var(--s-16); right: var(--s-16); bottom: var(--s-24); margin: 0; padding: 0; list-style: none; pointer-events: none; }
  .hp__legend li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; opacity: 0; will-change: opacity; }
  .hp__legend strong { display: block; font: var(--fw-medium) 11px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
  .hp__legend em { display: block; margin-top: 2px; font: var(--fw-regular) 13.5px/1.35 var(--font-sans); font-style: normal; color: var(--n-200); }
  .hp.is-static .hp__legend { display: none; }
}

/* ==========================================================================
   Hero 15 — "Into the product": scroll push-in (push-in.js)
   The home page's scroll film, drawn in code. The section pins while the
   script zooms a layered SVG scene into the laptop; .hf__screen (the product)
   is positioned over the laptop's screen and ends as a panel on the page.
   --p is scroll progress, --q how far the product has arrived, --m how far
   the screen has turned into the landing panel (all 0..1, set by the script).
   ========================================================================== */
.hf { --p: 0; --q: 0; --m: 0; --hf-bg: #07070e; position: relative; height: var(--hf-length, 320vh); background: var(--hf-bg); color: #fff; }
.hf__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; display: grid;
  background: linear-gradient(180deg, #04050d 0%, #0c1033 42%, #232a78 62%, #5a55c8 72%, #0c0e25 84%, #05060f 100%); }
.hf__scene, .hf__dark, .hf__shade { position: absolute; inset: 0; pointer-events: none; }
.hf-svg { display: block; width: 100%; height: 100%; }
.hf__shade { background: linear-gradient(180deg, rgb(5 6 15 / 0.62) 0%, rgb(5 6 15 / 0.2) 44%, transparent 64%); opacity: calc(1 - var(--p) * 4); }
.hf__dark { background: var(--hf-bg); opacity: 0; }
.hf__content {
  position: relative; align-self: start; justify-self: center; width: 100%; max-width: 940px;
  padding: calc(var(--nav-h) + clamp(28px, 7vh, 84px)) var(--s-24) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-24);
  opacity: calc(1 - var(--p) * 6); translate: 0 calc(var(--p) * -160px);
}
.hf__content h1 { margin: 0; color: #fff; }
.hf__lede { margin: 0; max-width: 44ch; color: rgb(255 255 255 / 0.82); }
.hf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-16); }
.hf .cr-btn--secondary { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hf .cr-btn--secondary:hover { background: rgb(255 255 255 / 0.18); }
.hf.is-past .hf__content { visibility: hidden; }
.hf__hint { position: absolute; left: 50%; bottom: var(--s-24); translate: -50% 0; display: flex; align-items: center; gap: var(--s-8); font: var(--fw-medium) 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); opacity: calc(1 - var(--p) * 10); }
.hf__hint::before { content: ""; width: 1px; height: 28px; background: linear-gradient(180deg, transparent, #fff); }
.hf__end {
  position: absolute; inset: auto 0 0 0; padding: 0 var(--s-24) clamp(20px, 4vh, 44px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-16);
  opacity: calc((var(--p) - 0.86) * 9); translate: 0 calc((1 - var(--p)) * 60px); pointer-events: none;
}
.hf__end p { margin: 0; }
.hf.is-end .hf__end { pointer-events: auto; }
.hf:not(.is-live):not(.is-static) .hf__screen, .hf:not(.is-live) .hf__dark { display: none; }
.hf.is-static { height: auto; }
.hf.is-static .hf__sticky { position: relative; height: 100vh; height: 100svh; }
.hf.is-static .hf__hint, .hf.is-static .hf__end { display: none; }

/* ---- the product on the screen: PLACEHOLDER interface, laid out at its landing size and scaled by the script ---- */
.hf__screen {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; contain: layout paint;
  background: #0b0c17; color: #fff; font-size: 13px; line-height: 1.3;
  box-shadow: 0 0 0 calc(var(--m) * 1px) rgb(255 255 255 / 0.14), 0 calc(var(--m) * 40px) calc(var(--m) * 120px) rgb(74 86 249 / 0.22);
  display: grid; grid-template-columns: 208px minmax(0, 1fr);
}
.hf-ui__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid rgb(255 255 255 / 0.07); background: rgb(255 255 255 / 0.015); }
.hf-ui__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; }
.hf-ui__brand i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #4a56f9, #9085fe); }
.hf-ui__nav { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: rgb(255 255 255 / 0.62); }
.hf-ui__nav::before { content: ""; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.7; }
.hf-ui__nav.is-on { background: rgb(255 255 255 / 0.07); color: #fff; }
.hf-ui__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hf-ui__bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.hf-ui__search { flex: 1; max-width: 420px; padding: 8px 12px; border-radius: 9px; background: rgb(255 255 255 / 0.05); color: rgb(255 255 255 / 0.45); }
.hf-ui__bar b { margin-left: auto; padding: 7px 12px; border-radius: 9px; background: #4a56f9; font-weight: 500; }
.hf-ui__bar u { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f3c1d2, #9085fe); }
.hf-ui__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; padding: 18px 20px 20px; }
.hf-ui__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
.hf-ui__head h2 { margin: 0; font: var(--fw-medium) 22px/1.1 var(--font-display); letter-spacing: -0.01em; color: #fff; }
.hf-ui__head span { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / 0.6); }
.hf-ui__head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fe3a1; }
.hf-ui__card { --d: 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px 16px; border-radius: 12px; background: #121326; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  opacity: clamp(0, calc((var(--q) - var(--d)) * 5), 1); translate: 0 calc(clamp(0, calc(1 - (var(--q) - var(--d)) * 5), 1) * 14px); }
.hf-ui__card h3 { margin: 0; display: flex; justify-content: space-between; font: var(--fw-medium) 13px/1.2 var(--font-display); color: rgb(255 255 255 / 0.72); }
.hf-ui__card h3 em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: rgb(102 114 255 / 0.18); color: #b9b2ff; font-size: 11px; }
.hf-ui__chart { flex: 1; min-height: 60px; width: 100%; }
.hf-ui__chart .ln { fill: none; stroke: #8792ff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--q) - 0.25) * 1.6), 1)); }
.hf-ui__chart .ar { fill: url(#hfUiArea); opacity: clamp(0, calc((var(--q) - 0.6) * 3), 1); }
.hf-ui__days { display: flex; justify-content: space-between; color: rgb(255 255 255 / 0.4); font-size: 11px; }
.hf-ui__rows { display: grid; gap: 11px; align-content: start; }
.hf-ui__row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 12px; color: rgb(255 255 255 / 0.82); }
.hf-ui__row i, .hf-ui__meter { height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.hf-ui__row i::after, .hf-ui__meter::after { content: ""; display: block; height: 100%; width: var(--w, 60%); border-radius: 3px; background: linear-gradient(90deg, #4a56f9, #a99cff); transform-origin: 0 50%; scale: clamp(0, calc((var(--q) - 0.45) * 2.4), 1) 1; }
.hf-ui__trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.hf-ui__bars { flex: 1; min-height: 34px; display: flex; align-items: flex-end; gap: 6px; }
.hf-ui__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: rgb(135 146 255 / 0.5); transform-origin: 50% 100%; scale: 1 clamp(0, calc((var(--q) - 0.5) * 2.4), 1); }
.hf-ui__bars i:last-child { background: #8792ff; }
.hf-ui__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-ui__tags span { padding: 4px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.78); font-size: 12px; }
.hf-ui__tags span.is-live { background: rgb(95 227 161 / 0.14); box-shadow: none; color: #8ff0c0; }
.hf-ui__who { display: flex; }
.hf-ui__who i { width: 26px; height: 26px; margin-right: -7px; border-radius: 50%; border: 2px solid #121326; background: linear-gradient(135deg, #4a56f9, #9085fe); }
.hf-ui__who i:nth-child(2) { background: linear-gradient(135deg, #f3c1d2, #b08cf0); } .hf-ui__who i:nth-child(3) { background: linear-gradient(135deg, #5fe3a1, #4a8cf9); } .hf-ui__who i:nth-child(4) { background: #2a2c52; }
.hf-ui__note { color: rgb(255 255 255 / 0.5); font-size: 12px; }
.hf.is-compact .hf__screen { grid-template-columns: minmax(0, 1fr); font-size: 12.5px; }
.hf.is-compact .hf-ui__side, .hf.is-compact .hf-ui__search { display: none; }
.hf.is-compact .hf-ui__bar { padding: 10px 14px; } .hf.is-compact .hf-ui__bar::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #4a56f9, #9085fe); }
.hf.is-compact .hf-ui__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.hf.is-compact .hf-ui__body > .hf-ui__card:first-of-type { flex: none; height: 150px; }
.hf.is-compact .hf-ui__trio { display: flex; flex-direction: column; gap: 10px; }
.hf.is-compact .hf-ui__head h2 { font-size: 18px; }
.hf.is-compact .hf-ui__card { flex: none; }
.hf.is-compact .hf-ui__bars { flex: none; height: 56px; }
.hf.is-compact .hf-ui__rows { gap: 9px; }
.hf.is-compact .hf__screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 44px; background: linear-gradient(180deg, transparent, #0b0c17); pointer-events: none; }
@media (max-width: 759px) {
  .hf__content { gap: var(--s-16); padding-top: calc(var(--nav-h) + var(--s-24)); }
  .hf__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hf__hint { display: none; }
}
.hx-tile__art--push { display: grid; place-items: center; background: radial-gradient(60% 46% at 50% 56%, rgb(243 179 196 / 0.55) 0%, rgb(122 109 255 / 0.3) 45%, transparent 100%), linear-gradient(180deg, #04050d 0%, #0c1033 45%, #232a78 62%, #0c0e25 63%, #05060f 100%); }
.hx-tile__art--push span { width: 22%; aspect-ratio: 16 / 10; margin-top: 12%; border-radius: 4px; border: 2px solid #7f83b0; background: linear-gradient(135deg, #4a56f9, #9085fe) 12% 30% / 46% 40% no-repeat, #0b0c17; box-shadow: 0 0 40px rgb(102 114 255 / 0.6), 0 9px 0 -6px #9a9cc0; }

/* ---- Hero 16 — hero 15 played backwards from hero 13 (.hf--out). The slot holds a whole hero; it starts as the page
   and ends as the laptop screen. .hf__fit is scaled by the script so the hero stays whole inside the screen. ---- */
.hf--out { --hf-bg: #050508; }
.hf--out .hf__screen { display: block; background: #050508; box-shadow: none; font-size: inherit; line-height: inherit; }
.hf--out.is-compact .hf__screen::after { display: none; }
.hf--out .hf__fit { width: 100%; transform-origin: 50% 0; }
.hf--out .hf__fit > .hb { min-height: 0; height: 100%; }
.hf--out .hf__content, .hf--out.is-past .hf__content { visibility: visible; pointer-events: none; opacity: calc((var(--p) - 0.8) * 7); translate: 0 calc((1 - var(--p)) * -50px); }
.hf--out.is-end .hf__content { pointer-events: auto; }
.hf--out .hf__shade { opacity: calc((var(--p) - 0.6) * 3); }
.hf--out .hf__hint { opacity: calc(1 - var(--p) * 12); }
.hf--out:not(.is-live):not(.is-static) { height: auto; }
.hf--out:not(.is-live):not(.is-static) .hf__sticky { position: relative; height: auto; display: block; }
.hf--out:not(.is-live):not(.is-static) .hf__screen { display: block; position: relative; }
.hf--out:not(.is-live):not(.is-static) :is(.hf__scene, .hf__content, .hf__shade, .hf__hint), .hf--out.is-static .hf__hint { display: none; }
.hx-tile__art--pull span { width: 62%; margin-top: 0; box-shadow: 0 0 60px rgb(102 114 255 / 0.5); background: #050508; display: grid; place-items: center; font: var(--fw-light) clamp(0.7rem, 1.3vw, 1rem)/1.1 var(--font-display); color: #fff; text-align: center; }

/* ---- Hero 17 — hero 14 with six phrases (design-build-grow-six.js). Uses .hb--combo's rules plus these (.hb--six). ---- */
.hb--six .hb__wrap { width: min(100%, max(900px, min(90%, 1500px, calc((100svh - var(--nav-h) - 140px) * 2.02)))); }
.hb--six .hb__stage { aspect-ratio: 1290 / 640; }
.hb--six.is-live .hb__copy, .hb--six.is-static .hb__copy { margin-top: -11.6%; }
.hb--six .hb__title { font-size: clamp(2rem, 4.4vw, 4.2rem); }
.hb--six .hb-solid .hb-it3 { fill: url(#hcW3); stroke: url(#hcW3); }
.hb--six .hb-solid .hb-it4 { fill: url(#hcW4); stroke: url(#hcW4); }
.hb--six .hb-solid .hb-it5 { fill: url(#hcW5); stroke: url(#hcW5); }
/* the description of the phrase being built: one element per phrase plus the general line, stacked in one cell */
.hb__say { display: grid; margin: 0 0 calc(-1 * var(--s-12, 12px)); max-width: 36rem; min-height: 1.4em; font-size: 1rem; line-height: 1.4; font-weight: var(--fw-regular, 400); color: #c9c0ff; }
.hb__say > * { grid-area: 1 / 1; margin: 0; opacity: 0; }
@media (max-width: 900px) {
  .hb--six .hb__wrap { width: 100%; }
  .hb--six .hb__stage { aspect-ratio: 556 / 600; width: min(100vw, max(280px, calc((100svh - var(--nav-h) - 360px) * 0.926))); }
  .hb--six .hb__say { justify-items: center; }
  .hb--six.is-live .hb__copy, .hb--six.is-static .hb__copy { margin-top: var(--s-16); }
}
.hx-tile__art--six { font-size: clamp(0.72rem, 1.25vw, 1rem); line-height: 1.12; }

/* ---- Hero 18 — hero 17 driven by scroll (design-build-grow-scroll.js). Adds .hb--scroll to hero 17's classes.
   While the script has .is-scroll on the section it is tall and .hb__pin sticks; otherwise .hb__pin is transparent to
   layout and the hero behaves like hero 17. --p is the scroll progress; --k on a rail item is how far its chapter is. ---- */
.hb--scroll .hb__pin { display: contents; }
.hb--scroll :is(.hb__rail, .hb__hint) { display: none; }
.hb--scroll.is-scroll { display: block; align-content: normal; justify-items: normal; min-height: 0; height: var(--hb-length, 640vh); padding: 0; overflow: visible; }      /* block containers honour align-content too, so reset the centring */
.hb--scroll.is-scroll::before { display: none; }
.hb--scroll.is-scroll .hb__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; overflow: hidden; isolation: isolate;
  display: grid; align-content: center; justify-items: center;
  padding: calc(var(--nav-h) + var(--s-8, 8px)) var(--s-24) clamp(32px, 6vh, 72px);
}
.hb--scroll.is-scroll .hb__pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 56% at 74% 46%, rgb(77 91 250 / 0.19) 0%, rgb(77 91 250 / 0) 100%), radial-gradient(36% 44% at 16% 30%, rgb(77 91 250 / 0.1) 0%, rgb(77 91 250 / 0) 100%);
}
/* chapter rail: six steps down the right edge; the one being built shows its name and fills as you scroll */
.hb--scroll.is-scroll .hb__rail { position: absolute; right: clamp(14px, 1.9vw, 36px); top: 50%; translate: 0 -50%; display: grid; gap: 6px; justify-items: end; }
.hb__rail button {
  --k: 0; display: flex; align-items: center; gap: 10px; padding: 3px 0 3px 12px; border: 0; background: none; cursor: pointer;
  font: var(--fw-medium) 10px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.5);
}
.hb__rail button span { opacity: 0; translate: 6px 0; transition: opacity 0.25s var(--ease-out), translate 0.25s var(--ease-out); white-space: nowrap; }
.hb__rail button i { position: relative; width: 2px; height: 30px; border-radius: 1px; background: rgb(255 255 255 / 0.16); overflow: hidden; transition: height 0.25s var(--ease-out); }
.hb__rail button i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #6672ff, #c9c0ff); transform-origin: 50% 0; scale: 1 var(--k); }
.hb__rail button.is-on { color: #fff; }
.hb__rail button.is-on i { height: 46px; }
.hb__rail button.is-on span, .hb__rail button:hover span, .hb__rail button:focus-visible span { opacity: 1; translate: 0 0; }
.hb__rail button:hover { color: #fff; }
.hb__rail button:focus-visible { outline: 1px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }
.hb__rail a { margin-top: 10px; font: var(--fw-medium) 10px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.45); text-decoration: none; }
.hb__rail a:hover, .hb__rail a:focus-visible { color: #fff; }
.hb--scroll.is-scroll .hb__hint {
  position: absolute; left: 50%; bottom: clamp(10px, 2.2vh, 22px); translate: -50% 0; display: flex; align-items: center; gap: 10px; pointer-events: none;
  font: var(--fw-medium) 10px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); opacity: calc(1 - var(--p, 0) * 30);
}
.hb--scroll .hb__hint::before { content: ""; width: 1px; height: 22px; background: linear-gradient(180deg, transparent, #fff); animation: hb-hint 1.8s var(--ease-out) infinite; transform-origin: 50% 0; }
@media (max-width: 1160px) { .hb__rail button span { display: none; } }      /* no room for the name beside the chart */
@keyframes hb-hint { 0% { scale: 1 0; opacity: 1; } 60% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hb--scroll .hb__hint::before { animation: none; } }

/* ---- Home page use of hero 19 (.hf--home): the site navbar floats over it, and the closing frame carries the
   home page's own pill, headline and email capture. ---- */
.hf--home { margin-top: calc(var(--nav-h) * -1); }
.hf--home .hf__sticky { --surface-frosted: rgb(255 255 255 / 0.18); --surface-frosted-hover: rgb(255 255 255 / 0.26); --border-subtle: rgb(255 255 255 / 0.24); --text-subdued: rgb(255 255 255 / 0.78); --text-strong: #fff; }
.hf--home .hf__content .cr-hero__actions { justify-content: center; }

/* the logo in the closing frame of the pull-out (heroes 19 and the home page): low on the hill, arriving with the headline */
.hf__brand { position: absolute; left: 50%; bottom: clamp(44px, 11.5vh, 128px); translate: -50% calc((1 - var(--p)) * 40px); opacity: calc((var(--p) - 0.8) * 7); pointer-events: none; }
.hf:not(.is-live) .hf__brand, .hf.is-static .hf__brand { display: none; }
@media (max-width: 759px) { .hf__brand { bottom: clamp(56px, 13vh, 120px); } }
