/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ----------
   The ember canvas draws the limb at data-horizon × canvas height and the flare at
   data-sun-x × canvas width. The canvas box is sized from the stage so the limb lands
   exactly on the stage's bottom edge (height = stage / --limb), and it is shifted so the
   flare sits under --mark-x, where the Prometheus mark stands. */
.home-hero {
  --mark-x: calc(var(--sun-x) * 100%);
  --mw: 100%;
  --mark-h: min(84%, 620px, 46vw);
  --strip-reserve: 204px;
  padding: 0;
}
.home-hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(600px, calc(100svh - var(--strip-reserve)));
  padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(64px, 9vh, 104px);
}
.home-hero .home-hero__media {
  inset: 0 auto auto calc(var(--mark-x) - var(--sun-x) * var(--mw));
  width: var(--mw);
  height: calc(100% / var(--limb));
}
/* Fade the canvas into the page below the settings strip. */
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 9, 12, 0));
  pointer-events: none;
}

/* The mark stands on the limb; its base dissolves into the light. */
.home-hero__monument {
  position: absolute;
  left: var(--mark-x);
  bottom: 0;
  height: var(--mark-h);
  aspect-ratio: 467 / 720;
  transform: translate(-50%, 5%);
  pointer-events: none;
}
.home-hero__halo,
.home-hero__flare {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
  animation: home-breathe 7.5s ease-in-out infinite;
}
.home-hero__halo {
  top: 34%;
  width: 190%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 211, 161, 0.2), rgba(242, 161, 91, 0.09) 42%, rgba(242, 161, 91, 0) 72%);
}
.home-hero__flare {
  top: 27%;
  width: 62%;
  aspect-ratio: 1 / 1.25;
  background: radial-gradient(closest-side, rgba(255, 238, 214, 0.34), rgba(255, 211, 161, 0.1) 55%, rgba(255, 211, 161, 0) 80%);
  mix-blend-mode: screen;
  animation-delay: -1.2s;
}
@keyframes home-breathe {
  0%, 100% { opacity: 0.55; scale: 0.94; }
  50% { opacity: 1; scale: 1.04; }
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
}
/* Wide enough on desktop for the concept's two-line break: "Your entire health / system,
   finally in sync." The P's stem starts about 12% into the mark's box, right of this. */
.home-hero__copy { position: relative; max-width: min(740px, 52vw); }
/* A soft scrim keeps the copy readable over city lights and rising sparks. */
.home-hero__copy::before {
  content: "";
  position: absolute;
  inset: -22% -16% -22% -45%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 9, 12, 0.62), rgba(7, 9, 12, 0));
  pointer-events: none;
}
.home-hero h1 { font-size: clamp(2.45rem, 1.1rem + 3.5vw, 4.25rem); max-width: 11.5em; }
.home-hero .lede { max-width: 33em; }
.home-hero__words { margin-top: 4px; }


.home-hero__strip {
  position: relative;
  z-index: 1;
  padding-top: clamp(22px, 3.2vh, 40px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.home-hero__strip .eyebrow { position: relative; margin-bottom: 24px; }
/* A soft shadow under the eyebrow where the limb's haze and link arcs pass behind it. */
.home-hero__strip .eyebrow::after {
  content: "";
  position: absolute;
  inset: -14px -32px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 9, 12, 0.72), rgba(7, 9, 12, 0));
  pointer-events: none;
}
@media (min-width: 1100px) {
  .home-hero__strip { padding-top: 44px; }
}
.home-hero__strip .settings-row li { text-shadow: 0 1px 12px rgba(7, 9, 12, 0.9); text-wrap: balance; }
.home-hero__strip .icon-ring { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.07), rgba(7, 9, 12, 0.72) 70%); }

@media (max-width: 1280px) {
  .home-hero { --mark-x: 69%; --mw: 105%; --mark-h: min(82%, 560px, 45vw); }
}
@media (max-width: 1100px) {
  .home-hero { --mark-x: 70%; --mw: 107%; --mark-h: min(78%, 500px, 44vw); }
  .home-hero__copy { max-width: 49vw; }
}
@media (max-width: 900px) {
  /* Canvas left edge = 50% - 0.68 × 160% = -58.8%, right edge = 101.2%: the planet bleeds off
     both sides (at 150% it stopped at 98%, a hard cut through the planet). */
  .home-hero { --mark-x: 50%; --mw: 160%; --mark-h: clamp(270px, 58vw, 420px); }
  .home-hero__stage { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  /* Room under the copy for the ascent: its whole box (the peak label sits at the top edge)
     plus a clear gap below the buttons. */
  .home-hero__stage::after { content: ""; display: block; flex: none; height: calc(var(--mark-h) + 40px); }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero__copy { max-width: 620px; }
  .home-hero__copy::before { inset: -18% -10% -10% -30%; }
  .home-hero__words { display: none; }
  .home-hero__strip { padding-top: 36px; padding-bottom: 40px; }
  .home-hero::after { height: 300px; background: linear-gradient(0deg, var(--bg) 14%, rgba(7, 9, 12, 0.6) 60%, rgba(7, 9, 12, 0)); }
}
@media (max-width: 640px) {
  /* Settings as a compact two-column list: icon beside label. */
  .home-hero__strip .eyebrow { margin-bottom: 22px; }
  .home-hero__strip .settings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .home-hero__strip .settings-row li { flex-direction: row; align-items: center; gap: 12px; text-align: left; font-size: 0.875rem; line-height: 1.3; }
  .home-hero__strip .icon-ring { width: 40px; height: 40px; }
  .home-hero__strip .icon-ring svg { width: 18px; height: 18px; }
}

/* ---------- Products overview ---------- */
.home-products__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.home-products__head .section-head { max-width: 700px; }
.home-products__all { flex: none; padding-bottom: 8px; }
.home-products__grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.home-products__grid .pcard { min-height: 292px; }
.home-products__grid .pcard h3 { font-size: 1.3rem; }
.home-products__more {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 12em minmax(0, 1fr);
  align-items: start;
  gap: 18px 48px;
}
.home-products__count { color: var(--text-2); font-size: var(--fs-small); line-height: 1.45; }
.home-products__num { display: block; font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; margin-bottom: 2px; }
/* Every other platform, named: a quiet index rather than a row of unlabelled icons. */
.home-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 2px 16px;
}
.home-index__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  margin-left: -4px;
  border-radius: 10px;
  color: var(--text);
  transition: background-color 0.25s;
}
.home-index__item .pmark { border-radius: 8px; }
.home-index__text { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.home-index__name { font-size: 0.875rem; font-weight: 500; line-height: 1.3; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.home-index__item:hover { background: color-mix(in srgb, var(--p) 9%, transparent); }
.home-index__item:hover .home-index__name, .home-index__item:focus-visible .home-index__name { border-color: color-mix(in srgb, var(--p) 75%, transparent); }
.home-index .badge { padding: 2px 7px; font-size: 0.625rem; letter-spacing: 0.06em; }

@media (max-width: 1180px) {
  .home-products__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-products__grid .pcard { grid-column: span 2; min-height: 0; }
  .home-products__grid .pcard:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 720px) {
  .home-products__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-products__grid .pcard,
  .home-products__grid .pcard:nth-child(n + 4) { grid-column: auto; }
  .home-products__grid .pcard { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding: 20px; }
  .home-products__grid .pcard > .flex { grid-row: 1 / span 2; align-self: start; }
  .home-products__grid .pcard .link-arrow { display: none; }
  .home-products__more { grid-template-columns: minmax(0, 1fr); }
  .home-products__count { max-width: 16em; }
}

/* ---------- Revenue pipeline ---------- */
.home-pipeline__head { max-width: 780px; }
.home-pipe {
  --node: 84px;
  --gap: 24px;
  --inset: calc((100% - 3 * var(--gap)) / 8);
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 6vw, 84px);
}
/* The thread lights the band it runs through, faintly. */
.home-pipe::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc(var(--node) / 2 - 90px);
  height: 180px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 161, 91, 0.075), rgba(242, 161, 91, 0));
  pointer-events: none;
}
.home-pipe__steps {
  list-style: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.home-pipe__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  padding-bottom: 6px;
}
.home-pipe__link:focus-visible { outline-offset: 6px; }
.home-pipe__node {
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 30%, #1a232d, #0d1319 72%);
  box-shadow: 0 0 0 10px var(--bg-2), 0 18px 44px -18px color-mix(in srgb, var(--p) 55%, transparent);
  transition: border-color 0.3s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.home-pipe__link:hover .home-pipe__node,
.home-pipe__link:focus-visible .home-pipe__node {
  border-color: color-mix(in srgb, var(--p) 65%, transparent);
  box-shadow: 0 0 0 10px var(--bg-2), 0 18px 54px -14px color-mix(in srgb, var(--p) 80%, transparent);
  transform: translateY(-3px);
}
.home-pipe__stage {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--p) 62%, var(--text));
}
.home-pipe__name { margin-top: 10px; font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; }
.home-pipe__role { margin-top: 8px; max-width: 18.5em; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: balance; }

/* Ember thread through the node centres, with one travelling spark. */
.home-pipe__thread {
  position: absolute;
  top: calc(var(--node) / 2);
  left: var(--inset);
  right: var(--inset);
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 161, 91, 0.2), rgba(242, 161, 91, 0.65) 50%, rgba(242, 161, 91, 0.2));
}
.home-pipe__spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 8px 2px rgba(255, 211, 161, 0.75), 0 0 24px 7px rgba(242, 161, 91, 0.3);
  animation: home-run-x 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.home-pipe__spark::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 211, 161, 0), rgba(255, 211, 161, 0.85));
}
@keyframes home-run-x {
  0% { left: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes home-run-y {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Loop back from Salvage to Capture. */
.home-pipe__loop {
  position: relative;
  margin: 34px var(--inset) 0;
  height: 46px;
  border: 1px dashed rgba(242, 161, 91, 0.42);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}
.home-pipe__loop::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-left: 1px solid rgba(242, 161, 91, 0.85);
  border-top: 1px solid rgba(242, 161, 91, 0.85);
  transform: rotate(45deg);
}
.home-pipe__loop-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.home-pipe__loop-label svg { width: 16px; height: 16px; color: var(--ember); flex: none; }

@media (max-width: 760px) {
  .home-pipe { --node: 64px; --gap: 22px; --inset: calc((100% - 3 * var(--gap)) / 8); padding-right: 46px; }
  .home-pipe::before { display: none; }
  .home-pipe__steps { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .home-pipe__link { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 20px; align-content: center; height: 100%; text-align: left; padding-bottom: 0; }
  .home-pipe__node { grid-row: 1 / span 3; align-self: center; box-shadow: 0 0 0 8px var(--bg-2), 0 14px 34px -14px color-mix(in srgb, var(--p) 55%, transparent); }
  .home-pipe__link:hover .home-pipe__node,
  .home-pipe__link:focus-visible .home-pipe__node { box-shadow: 0 0 0 8px var(--bg-2), 0 14px 40px -12px color-mix(in srgb, var(--p) 80%, transparent); }
  .home-pipe__stage { margin-top: 0; }
  .home-pipe__name { margin-top: 4px; font-size: 1.25rem; }
  .home-pipe__role { margin-top: 2px; max-width: none; }
  .home-pipe__thread { top: var(--inset); bottom: var(--inset); left: calc(var(--node) / 2); right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(242, 161, 91, 0.2), rgba(242, 161, 91, 0.65) 50%, rgba(242, 161, 91, 0.2)); }
  .home-pipe__spark { margin: -3.5px 0 0 -3px; animation-name: home-run-y; }
  .home-pipe__spark::before { top: auto; bottom: 3px; right: 3px; width: 1px; height: 64px; background: linear-gradient(180deg, rgba(255, 211, 161, 0), rgba(255, 211, 161, 0.85)); }
  .home-pipe__loop { position: absolute; top: var(--inset); bottom: var(--inset); right: 0; width: 30px; height: auto; margin: 0; border: 1px dashed rgba(242, 161, 91, 0.42); border-left: 0; border-radius: 0 20px 20px 0; }
  .home-pipe__loop::before { top: -5px; left: -1px; transform: rotate(-45deg); }
  .home-pipe__loop-label { left: auto; right: 0; top: 50%; bottom: auto; translate: 50% -50%; padding: 12px 0; writing-mode: vertical-rl; rotate: 180deg; }
  .home-pipe__loop-label svg { rotate: 90deg; }
}

/* ---------- Approach band ---------- */
.home-approach {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 46vw, 740px);
  padding-block: clamp(80px, 9vw, 128px);
}
.home-approach__scene {
  position: absolute;
  inset: 0 0 0 auto;
  width: 78%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 44%), linear-gradient(180deg, #000 78%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 44%), linear-gradient(180deg, #000 78%, transparent 99%);
  mask-composite: intersect;
}
.home-approach__scene svg { width: 100%; height: 100%; }
/* Warm the dawn a touch where the sun sits, without adding spectacle. */
.home-approach__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 46% 52% at 80% 60%, rgba(255, 196, 140, 0.2), rgba(242, 161, 91, 0.07) 50%, rgba(242, 161, 91, 0) 75%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.home-approach::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(11, 16, 22, 0) 18%);
  pointer-events: none;
}
.home-approach__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.home-approach__copy { max-width: 520px; align-self: center; }
.home-approach__copy h2 { margin-top: 20px; }
.home-approach__copy .lede { margin-top: 22px; }
.home-approach__copy .actions { margin-top: 36px; }
.home-approach__words { text-shadow: 0 1px 14px rgba(7, 9, 12, 0.6); }

@media (max-width: 860px) {
  .home-approach { display: block; min-height: 0; padding-top: 0; padding-bottom: 64px; }
  .home-approach__scene { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; max-height: 520px; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .home-approach__inner { position: static; grid-template-columns: minmax(0, 1fr); margin-top: -12px; }
  .home-approach__words { position: absolute; top: 28px; right: var(--gutter); }
}
@media (max-width: 420px) {
  .home-approach__words { font-size: 0.72rem; }
}

/* ---------- Portfolio by area ---------- */
/* One row per area: name | lede | its product marks and count. The whole row links to that area on
   the Products page (the heading link's ::after covers the row). */
.home-areas__list { list-style: none; margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.home-areas__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr);
  gap: 10px 40px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.home-areas__name { font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.15; }
.home-areas__name a { color: var(--text); }
.home-areas__name a::after { content: ""; position: absolute; inset: 0; }
.home-areas__lede { max-width: 32em; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.home-areas__side { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.home-areas__marks { display: flex; flex-wrap: nowrap; gap: 4px; }
.home-areas__marks .pmark { width: 24px; height: 24px; border-radius: 6px; }
.home-areas__marks .pmark--fallback { font-size: 10px; }
.home-areas__count {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  transition: color 0.2s;
}
.home-areas__count svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.home-areas__row:hover .home-areas__count { color: var(--text); }
.home-areas__row:hover .home-areas__count svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .home-areas__count svg { transition: none; } }

@media (max-width: 1100px) {
  /* Name and marks share the first line; the lede runs full width under them. */
  .home-areas__row { grid-template-columns: minmax(0, 1fr) auto; }
  .home-areas__lede { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .home-areas__row { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .home-areas__lede { grid-row: auto; }
  .home-areas__side { justify-content: space-between; margin-top: 4px; }
  .home-areas__marks { gap: 3px; }
  .home-areas__marks .pmark { width: 20px; height: 20px; border-radius: 5px; }
  .home-areas__marks .pmark--fallback { font-size: 9px; }
}

/* ---------- Proof ---------- */
.home-proof__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.home-proof__head .section-head { max-width: 720px; }
.home-proof__more { flex: none; padding-bottom: 8px; }
.home-proof__stats {
  list-style: none;
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.home-proof__stat { position: relative; display: flex; flex-direction: column; padding: 32px 36px 4px; border-left: 1px solid var(--line); }
/* A short ember segment on the rule above each result. */
.home-proof__stat::before { content: ""; position: absolute; top: -1px; left: 36px; width: 56px; height: 1px; background: linear-gradient(90deg, var(--ember), rgba(242, 161, 91, 0)); }
.home-proof__stat:first-child::before { left: 0; }
.home-proof__stat:first-child { padding-left: 0; border-left: 0; }
.home-proof__context { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.home-proof__part { white-space: nowrap; }
/* Three columns: share rows across the results so a context that wraps to two lines
   (1024 and below) does not push one figure lower than its neighbours. */
@media (min-width: 861px) {
  .home-proof__stats { grid-template-rows: repeat(5, auto); }
  .home-proof__stat { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
  .home-proof__by { align-self: end; }
}
.home-proof__value { margin-top: 26px; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); }
.home-proof__value small { font-size: 0.4em; margin-left: 2px; color: var(--text-2); }
.home-proof__stat .stat-label { margin-top: 14px; color: var(--text); font-size: 1rem; font-weight: 500; }
.home-proof__note { margin-top: 4px; color: var(--text-2); font-size: var(--fs-small); }
.home-proof__by { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.home-proof__by a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.home-proof__by a span { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color 0.2s; }
.home-proof__by a:hover span { border-color: color-mix(in srgb, var(--p) 75%, transparent); }

@media (max-width: 860px) {
  .home-proof__stats { grid-template-columns: minmax(0, 1fr); }
  .home-proof__stat, .home-proof__stat:first-child { padding: 28px 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .home-proof__stat::before { left: 0; }
  .home-proof__value { margin-top: 18px; }
  .home-proof__by { padding-top: 14px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-hero__halo, .home-hero__flare { animation: none; opacity: 0.8; }
  .home-pipe__spark { display: none; }
  .home-index__item, .home-pipe__node { transition: none; }
}

/* ---------- Hero top line: news chip + headline facts ---------- */
.home-hero__topline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.home-hero__news {
  display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 5px 16px 5px 5px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(12, 16, 22, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); font-size: 0.875rem; line-height: 1.25;
  transition: border-color 0.25s, background-color 0.25s;
}
.home-hero__news:hover { border-color: color-mix(in srgb, var(--p) 60%, var(--line-strong)); background: rgba(12, 16, 22, 0.8); }
.home-hero__news svg { width: 15px; height: 15px; flex: none; color: var(--ember); transition: transform 0.25s var(--ease); }
.home-hero__news:hover svg { transform: translateX(3px); }
.home-hero__facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.home-hero__facts span + span::before { content: "·"; margin: 0 10px; color: var(--ember); }

/* Very tall windows: size the hero to its content instead of the whole window, so no empty band
   opens above the headline. Laptop-height windows are unaffected. */
.home-hero__stage { min-height: clamp(600px, calc(100svh - var(--strip-reserve)), 940px); }
@media (max-width: 900px) { .home-hero__stage { min-height: 0; } }
@media (max-width: 480px) { .home-hero__news { font-size: 0.8125rem; } .home-hero__facts { font-size: 0.6875rem; } }

/* ---------- Hero ascent: AI-driven growth rising from the sunrise ----------
   Replaces the stone mark. A curve runs flat along the horizon from the flare, then climbs; light-built
   bars rise beneath it, embers accelerate up it, and each milestone names a product's AI capability. */
/* Shifted left of the flare on desktop so the peak clears the People / Technology / Possibility stack. */
.home-hero__ascent { aspect-ratio: 600 / 760; transform: translate(-60%, 0); }
@media (max-width: 900px) { .home-hero__ascent { transform: translate(-50%, 0); } }
.ascent__svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}
.ascent__grid { stroke: rgba(214, 226, 240, 0.07); stroke-width: 1; stroke-dasharray: 2 7; }
.ascent__bar {
  fill: url(#ascent-bar); stroke: rgba(242, 161, 91, 0.3); stroke-width: 1;
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: ascent-grow 1s var(--ease) calc(0.25s + var(--i) * 90ms) both;
}
.ascent__glow { fill: none; stroke: #f2a15b; stroke-opacity: 0.2; stroke-width: 16; stroke-linecap: round; filter: blur(7px); }
.ascent__line { fill: none; stroke: url(#ascent-stroke); stroke-width: 3; stroke-linecap: round; }
.ascent__glow, .ascent__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ascent-draw 2.4s var(--ease) 0.3s forwards; }
.ascent__node {
  fill: #0b1016; stroke: var(--p); stroke-width: 3;
  filter: drop-shadow(0 0 7px var(--p));
  transform-box: fill-box; transform-origin: center;
  animation: ascent-pop 0.5s var(--ease) calc(1.25s + var(--i) * 0.32s) both;
}
.ascent__peak { fill: #fff6ea; filter: drop-shadow(0 0 8px #ffd3a1) drop-shadow(0 0 20px #f2a15b); animation: ascent-pop 0.6s var(--ease) 2.5s both; }
.ascent__particle { fill: #ffe7c7; filter: drop-shadow(0 0 5px #f2a15b); opacity: 0; }
@keyframes ascent-draw { to { stroke-dashoffset: 0; } }
@keyframes ascent-grow { from { transform: scaleY(0); } }
@keyframes ascent-pop { from { opacity: 0; transform: scale(0.2); } }

.ascent__labels { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; pointer-events: none; }
.ascent__label {
  position: absolute; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  background: rgba(10, 14, 19, 0.8); border: 1px solid color-mix(in srgb, var(--p) 45%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translate(calc(-100% - 20px), -50%);
  animation: ascent-label 0.6s var(--ease) calc(1.35s + var(--i) * 0.32s) both;
}
.ascent__label::after { content: ""; position: absolute; top: 50%; right: -20px; width: 14px; height: 1px; background: color-mix(in srgb, var(--p) 70%, transparent); }
.ascent__label-text { font-size: 0.8125rem; line-height: 1.25; color: var(--text); }
.ascent__label-by { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--p) 72%, var(--text)); }
@keyframes ascent-label { from { opacity: 0; transform: translate(calc(-100% - 8px), -50%); } }

.home-hero__ascent .home-hero__halo { left: 70%; top: 46%; width: 150%; }
.home-hero__ascent .home-hero__flare { left: 95.3%; top: 6%; width: 26%; aspect-ratio: 1; }

@media (max-width: 480px) {
  .ascent__label { padding: 5px 9px; }
  .ascent__label-text { font-size: 0.75rem; }
  .ascent__label-by { font-size: 0.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ascent__bar, .ascent__node, .ascent__peak, .ascent__label { animation: none; }
  .ascent__glow, .ascent__line { animation: none; stroke-dashoffset: 0; }
  .ascent__particles { display: none; }
}

/* Labelled sparks (js/pages/home.js): anchored on the limb, rising into the open sky. */
.home-hero__sparks { position: absolute; inset: 0; pointer-events: none; }
.home-spark {
  position: absolute;
  width: 0;
  height: 0;
  animation: home-spark-fade 5.2s linear forwards;
}
.home-spark__tether {
  position: absolute;
  left: -0.5px;
  bottom: 0;
  width: 1px;
  height: 112px;
  background: rgba(242, 161, 91, 0.38);
  transform-origin: 50% 100%;
  animation: home-spark-tether 5.2s linear forwards;
}
.home-spark__chip {
  position: absolute;
  left: -11px;
  bottom: 0;
  display: block;
  height: 24px;
  padding: 0 13px 0 20px;
  border: 1px solid rgba(242, 161, 91, 0.5);
  border-radius: 12px;
  background: rgba(12, 16, 22, 0.84);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  animation: home-spark-rise 5.2s linear forwards;
}
.home-spark__chip::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 6px 1px rgba(242, 161, 91, 0.6);
}
@keyframes home-spark-fade { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes home-spark-rise { from { transform: translateY(-18px); } to { transform: translateY(-112px); } }
@keyframes home-spark-tether { from { transform: scaleY(0.16); } to { transform: scaleY(1); } }
