/* ============================================================
   Data Center City — Power with Purpose™
   Dark futuristic scrollytelling site. Plain CSS, no build step.
   Fonts: Sora (display) + Inter (UI/body), self-hosted.
   ============================================================ */

:root {
  --bg:        #0a0b0d;
  --bg-soft:   #0c0e11;
  --surface:   #0f1113;
  --surface-2: #141619;
  --border:    rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  --text:      #f3f5f8;
  --text-dim:  #9a9fa8;
  --text-mute: #6c7078;
  --label:     #8a8d93;

  --accent:    #6ab7f5;
  --accent-dim: #3b6f9e;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1360px;
  --gutter: clamp(1.1rem, 2.8vw, 2.4rem);
  --radius: 18px;
  --dot: rgba(255, 255, 255, 0.055);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-ui);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Global dot-matrix background (fixed behind all content).
   Hidden on initial load (pure black); fades in once the user scrolls past the hero. */
.bg-dots {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0; transition: opacity 0.9s ease;
}
body.bg-on .bg-dots { opacity: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #04121f; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Dotted grid background, applied to dark sections */
.dotgrid {
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
}

/* ============================================================
   Logo lockup (mark + wordmark + tagline)
   ============================================================ */
.loader-logo { width: min(420px, 72vw); height: auto; }
.masthead-logo { width: clamp(220px, 24vw, 340px); height: auto; }
.footer-logo { width: clamp(200px, 22vw, 300px); height: auto; }
.brand__logo { height: 30px; width: auto; }

/* ============================================================
   Preloader
   ============================================================ */
/* The intro IS the top of the page. It starts as a full-screen loader, then collapses
   into the masthead — one continuous layout, so the content below slides up naturally
   as this section shrinks and the loading bar disappears. The nav never leaves. */
.intro {
  min-height: 100vh; min-height: 100dvh; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vh, 4.5rem) 1rem clamp(1.5rem, 4vh, 2.5rem);
  transition: min-height 1.2s cubic-bezier(0.5, 0, 0.15, 1), padding 1.2s cubic-bezier(0.5, 0, 0.15, 1);
}
.intro__logo { width: clamp(300px, 42vw, 640px); height: auto; transition: width 1.2s cubic-bezier(0.5, 0, 0.15, 1); }
.intro__loader {
  width: min(720px, 86vw); margin-top: clamp(2rem, 6vh, 3.5rem);
  transition: opacity 0.5s ease, max-height 0.9s ease, margin-top 0.9s ease;
  max-height: 80px; overflow: hidden;
}
.intro__bar { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.intro__bar span { display: block; height: 100%; width: 0%; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width 0.12s linear; }
.intro__status { margin-top: 0.8rem; font-size: 0.82rem; color: var(--text); letter-spacing: 0.02em; }
.intro__status #loader-pct { color: var(--text-dim); margin-left: 0.35rem; }
.intro__tagline {
  position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 11vh, 6rem); margin: 0;
  font-size: clamp(0.66rem, 1vw, 0.78rem); letter-spacing: 0.28em; color: var(--text-dim); text-align: center;
  transition: opacity 0.5s ease;
}
/* loaded → the loader smoothly collapses into the masthead (above the nav): the logo just
   shrinks, the bar + tagline fade, and the content below slides up. The nav never leaves. */
body.loaded .intro { min-height: clamp(185px, 24vh, 285px); padding-top: clamp(1.2rem, 3vh, 2rem); padding-bottom: 0; }
body.loaded .intro__logo { width: clamp(240px, 24vw, 360px); }
body.loaded .intro__loader { opacity: 0; max-height: 0; margin-top: 0; pointer-events: none; }
body.loaded .intro__tagline { opacity: 0; pointer-events: none; }

/* ============================================================
   Masthead + sticky nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin-inline: auto; padding: 0.85rem var(--gutter); }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 26px; }
.brand__name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.16em; font-size: 0.92rem; }

.nav__menu { display: flex; align-items: center; gap: 2.1rem; }
.nav__menu a {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em;
  color: var(--text-mute); transition: color 0.2s; position: relative; padding: 0.3rem 0;
}
.nav__menu a:hover { color: var(--text); }
.nav__menu a.is-active { color: var(--text); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }

/* ============================================================
   Shared typography blocks
   ============================================================ */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.72rem;
  font-weight: 600; color: var(--label); text-align: center;
}
.display {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; color: var(--text);
}
.display--center { text-align: center; max-width: 36ch; margin-inline: auto; text-wrap: balance; }
.accent { color: var(--accent); }

.lede { color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.lede--center { text-align: center; max-width: 62ch; margin-inline: auto; }

.statement {
  font-family: var(--font-display); font-weight: 600; color: var(--text);
  font-size: clamp(1.35rem, 3.2vw, 2.4rem); line-height: 1.35; text-align: center;
  max-width: 24ch; margin-inline: auto;
}
.statement--sm { font-size: clamp(1.1rem, 2.2vw, 1.55rem); color: var(--text); max-width: 40ch; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; height: 165vh; }
/* Content is top-aligned so, in the landed view, the headline + lede + sphere sit just below
   the masthead-above-nav; the hero pins and the sphere grows as you scroll (masthead scrolls
   away naturally, nav rises to the top — matches the video). */
.hero__pin { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(3.25rem, 6.5vh, 4.5rem) 0 clamp(1.5rem, 4vh, 2.5rem); }
.hero__inner { text-align: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.12;
  max-width: none; text-wrap: balance;
  margin: 0 auto 1.4rem;
}
.hero__lede { color: var(--text-dim); max-width: 70ch; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.sphere-wrap { position: relative; margin: clamp(1.2rem, 3vh, 2.2rem) auto 0; width: min(860px, 88%); }
.sphere-stage {
  position: relative; z-index: 0; margin: 0 auto; width: 100%; aspect-ratio: 2 / 1;
  border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(106,183,245,0.07), transparent 70%),
    var(--surface);
  overflow: visible;
  transition: border-color 0.5s ease, background 0.5s ease;
}
/* as the sphere expands on scroll, the card chrome dissolves into a free particle field */
.hero.is-expanding .sphere-stage { border-color: transparent; background: transparent; }
.sphere-stage::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-mute); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.sphere-stage canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.sphere-stage.is-live::after { display: none; }

/* "THIS ISN'T JUST INFRASTRUCTURE" message, fades in as the sphere expands */
/* Accessible text only — the visible message is painted onto the sphere canvas so it
   composites correctly above the WebGL/canvas layer (an HTML overlay can't). */
.sphere-msg {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(4rem, 11vh, 8rem) 0; position: relative; }
.purpose .purpose__intro { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.purpose .lockup { margin-bottom: 0.5rem; }
.purpose .stats { margin-top: clamp(2.5rem, 6vh, 4rem); max-width: 1120px; margin-inline: auto; }
.purpose .statement { margin-top: clamp(3.5rem, 9vh, 6.5rem); max-width: 30ch; }

/* Purpose is a pinned slide-up sequence (like the video): the reel of steps
   translates up as you scroll, so the 4 stat boxes, the "Power with Purpose
   reframes…" line, then the consequence boxes each slide into place — no blank
   gap to scroll past, and each settles centered in the viewport. */
.purpose { position: relative; padding: 0; }
.purpose__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* Each group is overlaid in the pinned viewport. JS drives them per scroll phase: the current
   group sits centred; the previous one shrinks + rises to the top; the next slides up from
   below. So the head (logo + "is a break" + lede) shrinks while the stats slide up beneath it,
   matching design d04 → d05 → d06 → d07. */
.pgroup { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
          will-change: transform; transform-origin: 50% 50%;
          transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1); }
.pgroup .container { width: 100%; }
.pgroup[data-g="1"], .pgroup[data-g="2"], .pgroup[data-g="3"] { transform: translateY(100vh); }
/* invisible scroll-snap anchors so a flick advances one step (set by JS) */
.psnap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.purpose .purpose__lede { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.42; max-width: 52ch; }
.purpose .purpose__megawatt { margin: 0 auto clamp(2rem, 5vh, 3rem); max-width: 48ch; font-size: clamp(1rem, 1.65vw, 1.3rem); line-height: 1.4; }
.purpose__stats .stats { margin-top: 0; }
.purpose .statement--reframe { margin-top: 0; max-width: min(1120px, 92%); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.34; }
.purpose__consequence .statement--sm { margin-top: 0; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }

/* Fallback (reduced motion): groups stack compactly, no pin or overlay. */
@media (prefers-reduced-motion: reduce) {
  .purpose__pin { position: static; height: auto; overflow: visible; }
  .pgroup { position: static; inset: auto; opacity: 1 !important; transform: none !important; padding: clamp(2.5rem, 6vh, 4rem) 0; }
}

/* paradigm uses the global dot matrix (transparent section) */
.paradigm .eyebrow { margin-bottom: 1.1rem; }
.paradigm .display { margin-bottom: clamp(2.5rem, 6vh, 4rem); }

/* ============================================================
   Stats row
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat {
  /* solid black box, light border, bright glow along the top edge (per design) */
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02) 34%, rgba(255,255,255,0) 62%),
    #050506;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  padding: 1.6rem 1.5rem 1.7rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
/* hover → the box enlarges and lifts above its neighbours */
.stat:hover {
  transform: scale(1.07);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 46px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
/* grow-in as the boxes slide into view (staggered); `backwards` fill avoids a flash and
   doesn't clash with the :hover transform once it's done */
.stats.stats-active .stat { animation: statGrow 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.stats.stats-active .stat:nth-child(2) { animation-delay: 0.07s; }
.stats.stats-active .stat:nth-child(3) { animation-delay: 0.14s; }
.stats.stats-active .stat:nth-child(4) { animation-delay: 0.21s; }
@keyframes statGrow { from { transform: scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.5rem; min-height: 2.5rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -0.01em; }
.stat__icon { width: 30px; height: 30px; color: var(--text-dim); }
.stat__globes { display: inline-flex; align-items: center; gap: 7px; }
.stat__globes svg { width: 38px; height: 38px; color: var(--text-dim); }
.stat__label { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* ============================================================
   "Not just capacity — but consequence" boxes
   ============================================================ */
.consequence { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 720px; margin: clamp(2.5rem, 6vh, 4rem) auto 0; }
.consequence__box {
  border: 1px solid var(--border); border-radius: 14px; padding: 1.9rem 1.5rem; text-align: center;
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.4;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
}
@media (max-width: 560px) { .consequence { grid-template-columns: 1fr; } }

/* ============================================================
   Compare cards (paradigm shift)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.compare-card {
  display: grid; grid-template-columns: 1fr minmax(150px, 200px);
  gap: 1.5rem; align-items: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; min-height: 380px;
}
.compare-card--reverse { grid-template-columns: minmax(150px, 200px) 1fr; }
.compare-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem; }
.compare-card__sub { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--label); margin-bottom: 1.6rem; }
.compare-card__list dt { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 0.35rem; }
.compare-card__list dd { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.2rem; }
.compare-card__list dd:last-child { margin-bottom: 0; }
.compare-card__media { border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.compare-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   The New Regional Benchmark
   ============================================================ */
.benchmark .lede--center { margin-top: 0.6rem; }
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: clamp(2.5rem, 6vh, 4rem); max-width: 1000px; margin-inline: auto; }
.bench-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; text-align: center;
}
.bench-card--accent { border-color: rgba(106,183,245,0.25); box-shadow: 0 0 60px rgba(106,183,245,0.06) inset; }
.bench-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; padding-bottom: 1.3rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--border); }
.bench-card__metrics > div { margin-bottom: 1.5rem; }
.bench-card__metrics > div:last-child { margin-bottom: 0; }
.bench-card__metrics dt { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--label); margin-bottom: 0.45rem; }
.bench-card__metrics dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* ============================================================
   A legacy of scale (carousel)
   ============================================================ */
.eyebrow--left { text-align: left; }
.legacy__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.legacy__head .eyebrow { margin-bottom: 0.8rem; }
.legacy__head .display { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.legacy__intro { color: var(--text-dim); font-size: 0.98rem; line-height: 1.6; align-self: end; }

.legacy__tabs { display: flex; gap: 2rem; margin-top: 2.2rem; border-bottom: 1px solid var(--border); }
.tab { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--text-mute); padding: 0 0 0.9rem; position: relative; }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }

.legacy__carousel { position: relative; margin-top: 2.2rem; }
.legacy__track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.legacy__track::-webkit-scrollbar { display: none; }
.facility { flex: 0 0 clamp(260px, 28vw, 340px); scroll-snap-align: start; }
.facility__img {
  aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106,183,245,0.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.facility__img::after {
  content: attr(data-place); color: var(--text-mute); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.facility__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.legacy__track[hidden] { display: none; }
.facility__name { margin-top: 0.9rem; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.legacy__next {
  position: absolute; right: 0.5rem; top: 38%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px);
  color: var(--text); display: grid; place-items: center; transition: border-color 0.2s, background 0.2s;
}
.legacy__next:hover { border-color: var(--accent); }
.legacy__next svg { width: 22px; }

/* ============================================================
   Chapter layout (sticky rail + scrolling content blocks)
   ============================================================ */
.chapter { padding: clamp(3rem, 7vh, 6rem) 0; }
.chapter__grid { display: grid; grid-template-columns: 210px 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.chapter__rail { position: sticky; top: 92px; align-self: start; }
.chapter__rail ul { display: flex; flex-direction: column; gap: 1.45rem; }
.chapter__rail a {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-mute);
  transition: color 0.25s, transform 0.25s;
}
.chapter__rail a.is-active { color: var(--text); transform: translateX(4px); }

/* content blocks — each occupies roughly a viewport so the rail can track it */
.cblock { min-height: clamp(540px, 80vh, 1000px); display: flex; flex-direction: column; justify-content: center; padding: 5vh 0; }
.cblock__title { font-size: clamp(1.9rem, 4.2vw, 3.3rem); margin-bottom: 1rem; text-align: left; max-width: 18ch; }
.cblock__lede { color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 64ch; margin-bottom: 2rem; }
.cblock__big {
  font-family: var(--font-display); font-weight: 400; color: var(--text);
  font-size: clamp(1.3rem, 2.4vw, 2.05rem); line-height: 1.42; max-width: 30ch; max-width: 62ch;
}
.cblock__sub { color: var(--text); font-size: 1.05rem; margin-bottom: 1.4rem; }
.cblock__result { margin-top: 2.2rem; font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.5rem); }
.dim { color: var(--text-mute); }

.pullquote {
  border-left: 2px solid var(--accent); padding-left: 1.3rem; margin-top: 2.6rem;
  color: var(--accent); font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.5;
}
.statement--left { text-align: left; max-width: none; margin-inline: 0; margin-top: 2.4rem; }

/* shared image placeholders */
.imgcard__img, .modalities__img, .wideimg__img {
  border: 1px solid var(--border); border-radius: 12px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106,183,245,0.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.imgcard__img::after, .modalities__img::after, .wideimg__img::after {
  content: attr(data-place); position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-mute); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* image-caption cards (market shift) */
.imgcards--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.imgcard__img { aspect-ratio: 16 / 10; }
.imgcard__img img, .modalities__img img, .wideimg__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.imgcard figcaption { margin-top: 0.85rem; color: var(--text-dim); font-size: 0.95rem; }

/* market shift — "inference is overtaking training" chart card + list */
.inferencecard {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-top: 2.8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  padding: clamp(1.8rem, 4vw, 3rem);
}
.inferencecard__head { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; }
.inferencecard__head sup { color: var(--accent); font-size: 0.6em; }
.inferencecard__chart svg { width: 100%; height: auto; }
.inferencecard__chart text { fill: var(--text-mute); font-size: 9px; letter-spacing: 0.12em; font-family: var(--font-ui); }
.inferencecard__chart .chart-axis { fill: var(--text-dim); }
.inferencecard__foot { grid-column: 1 / -1; margin-top: 0.4rem; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--text-mute); }
@media (max-width: 720px) { .inferencecard { grid-template-columns: 1fr; } }

.marketlist { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.marketlist li { color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.15rem); border-left: 2px solid var(--border); padding-left: 1rem; }

/* framework modalities */
.modalities { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 1.5rem; }
.modality { margin-bottom: 1.8rem; }
.modality:last-child { margin-bottom: 0; }
.modality h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.4rem; }
.modality p { color: var(--text-dim); }
.modalities__img { aspect-ratio: 16 / 10; }
.modalities__media figcaption { margin-top: 0.9rem; color: var(--text-dim); font-size: 0.9rem; }

/* distributed-ai hex card */
.hexcard { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)); padding: clamp(1.8rem, 4vw, 3rem); margin-top: 1.8rem; }
.hexcard__head { text-align: center; color: var(--text); font-size: 1.1rem; margin-bottom: 2.4rem; }
.hexcompare { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); }
.hexcompare__col { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hexcompare__col img { width: clamp(120px, 15vw, 190px); height: auto; }
.hexcompare__label { color: var(--text-dim); font-family: var(--font-display); font-size: 1.1rem; }
.hexcompare__vs { color: var(--text-mute); font-size: 1.05rem; }

/* icon cards (the platform / sovereign) */
.iconrow { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.iconrow--5 { grid-template-columns: repeat(5, 1fr); }
.iconrow--4 { grid-template-columns: repeat(4, 1fr); }
.iconcard {
  border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem 1rem; min-height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center;
}
.iconcard span { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--text); line-height: 1.4; }
.iconcard .ico { width: 36px; height: 36px; color: var(--text); }
.iconcard--lg { min-height: 210px; }

/* feature cards (industries / why dcc) */
.featurecards { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.featurecards--3 { grid-template-columns: repeat(3, 1fr); }
.featurecards--4 { grid-template-columns: repeat(4, 1fr); }
.featurecard {
  border: 1px solid var(--border); border-radius: 14px; padding: 1.7rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  display: flex; flex-direction: column; min-height: 220px;
}
.featurecard .ico { width: 26px; height: 26px; color: var(--text-dim); margin-bottom: 1.1rem; }
.featurecard h3 { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text); margin-bottom: 1.3rem; }
.featurecard p { margin-top: auto; }
.featurecard p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }

/* one system wide image */
.wideimg__img { aspect-ratio: 24 / 9; margin-top: 1rem; }

.ico { display: block; }

/* ============================================================
   Infrastructure pillars
   ============================================================ */
.chapter__rail-head { font-size: 0.64rem; letter-spacing: 0.14em; color: var(--text-mute); line-height: 1.6; margin-bottom: 1.6rem; }
.chapter__rail-head span { display: block; }

.bigstatement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; margin-bottom: 0.6rem; }
#i-intro .cblock__lede { margin-bottom: 2.4rem; max-width: 52ch; }
#i-intro .bigstatement:last-child { margin-bottom: 0; }

.pillar__sub { color: var(--text-dim); font-size: 1.05rem; margin: -0.3rem 0 1rem; }
.pillar__context { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.1rem 0 0.4rem; }
.tag { font-size: 0.85rem; color: var(--text-dim); }
.tag--warn::before { content: "▲ "; color: #e0a23b; }
.tag--ok::before { content: "● "; color: #4ade80; }

.diagram { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; margin-top: 1.6rem; }
.callout { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; }
.callout__label { display: block; font-size: 0.64rem; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.6rem; }
.callout p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.diagram__media { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.diagram__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.callout--full { display: block; max-width: 540px; margin-top: 1.6rem; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.pillar__target { margin-top: 1.5rem; font-family: var(--font-display); color: var(--text); font-size: 1.1rem; }

.statement-screen { text-align: center; }
.statement-screen .eyebrow { margin-bottom: 1.6rem; }
.statement-screen .statement { margin-bottom: 1.4rem; }
.statement-screen .lede--center { margin-bottom: 2.4rem; }

/* ============================================================
   The System
   ============================================================ */
.system-screen { text-align: center; }
.system-screen .lede--center { margin-bottom: 1rem; }
.system-diagram { max-width: 660px; margin: 1.5rem auto; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.system-diagram img { width: 100%; height: auto; }
.system-screen .statement--sm { margin-top: 1.5rem; }

/* ============================================================
   Execution engine (stepper)
   ============================================================ */
.engine__stepper { display: flex; align-items: center; gap: 0.4rem; justify-content: center; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1.1rem; width: fit-content; margin: 0 auto clamp(2rem, 5vh, 3.5rem); background: var(--surface); }
.engine__steplabel { font-size: 0.64rem; letter-spacing: 0.18em; color: var(--text-mute); margin-right: 0.9rem; }
.step { width: 40px; height: 32px; border-radius: 7px; color: var(--text-mute); font-size: 0.85rem; letter-spacing: 0.05em; transition: color 0.2s, background 0.2s; display: grid; place-items: center; }
.step--link { text-decoration: none; }
.step:hover { color: var(--text-dim); }
.step.is-active { color: var(--text); background: rgba(255,255,255,0.07); }
.engine__panel[hidden] { display: none; }
.engine__panel .display--center { margin-bottom: 0.7rem; }
.engine__panel .lede--center { margin-bottom: clamp(2rem, 5vh, 3rem); }
.engine__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.engine__col { display: flex; flex-direction: column; gap: 1.1rem; }
.engine__media {
  aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: 14px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, rgba(106,183,245,0.08), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.engine__media::after { content: attr(data-place); position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-mute); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ============================================================
   Join the movement
   ============================================================ */
.join__inner { text-align: center; }
.join__eyebrow { margin-top: 1rem; }
.join__lines { margin: clamp(2.5rem, 7vh, 5rem) auto clamp(2.5rem, 7vh, 5rem); max-width: none; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.35; }
.join__cta { color: var(--text-dim); font-size: 1rem; line-height: 1.9; }
.join__cta a { color: var(--accent); }
.join__cta a:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.9rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.2s; }
.btn--primary { background: var(--accent); color: #04121f; box-shadow: 0 0 30px rgba(106,183,245,0.22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(106,183,245,0.35); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2rem, 4vh, 3rem); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.site-footer__tagline { color: var(--text-dim); max-width: 46ch; font-size: 0.95rem; }
.site-footer__cols { display: flex; gap: clamp(2.5rem, 8vw, 7rem); flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.site-footer__col h4 { font-size: 0.64rem; letter-spacing: 0.16em; color: var(--text-mute); margin-bottom: 0.9rem; font-weight: 500; }
.site-footer__col p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__links { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-dim); }
.site-footer__links span { color: var(--text-mute); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__base { width: 100%; max-width: var(--maxw); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.5rem; color: var(--text-mute); font-size: 0.78rem; letter-spacing: 0.04em; }
.site-footer__totop { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; transition: border-color 0.2s; }
.site-footer__totop:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal { padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 10vh, 7rem); }
.legal__wrap { max-width: 780px; margin-inline: auto; }
.legal__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1.4rem; letter-spacing: -0.01em; }
.legal__intro { color: var(--text-dim); max-width: 62ch; margin-bottom: 3rem; line-height: 1.7; }
.legal__intro .legal__brand { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--text-mute); display: block; margin-bottom: 0.7rem; }
.legal section { margin-bottom: 2.6rem; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.8rem; }
.legal p { color: var(--text-dim); margin-bottom: 0.8rem; line-height: 1.7; }
.legal ul { color: var(--text-dim); line-height: 1.9; margin: 0 0 0.8rem; padding-left: 0; list-style: none; }
.legal a { color: var(--accent); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
/* snappy "settle into place" reveal (crisp ease-out), with directional variants */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal--right { transform: translateX(72px); }
.reveal--left { transform: translateX(-72px); }
.reveal--scale { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Scroll snapping — each screen glides smoothly, then settles into place.
   Proximity (not mandatory) so long chapters stay freely scrollable.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) and (min-width: 820px) {
  html { scroll-snap-type: y proximity; }
  .section, .chapter, .cblock, .site-footer {
    scroll-snap-align: start; scroll-margin-top: 62px;
  }
  /* the hero and purpose run their own pinned scroll animations — exclude them so
     snapping never interrupts the sphere expansion or the purpose slide-up. */
  .hero, .purpose { scroll-snap-align: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .legacy__head { grid-template-columns: 1fr; gap: 1rem; }
  .legacy__intro { align-self: start; }
}
@media (max-width: 680px) {
  .bench { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .chapter__grid { grid-template-columns: 1fr; }
  .chapter__rail { display: none; }
  .cblock { min-height: auto; padding: 7vh 0; }
  .modalities { grid-template-columns: 1fr; }
  .imgcards--3, .featurecards--3, .featurecards--4, .iconrow--5, .iconrow--4 { grid-template-columns: repeat(2, 1fr); }
  .hexcompare { gap: 1.5rem; }
  .diagram { grid-template-columns: 1fr; }
  .diagram__media { order: -1; }
  .engine__grid { grid-template-columns: 1fr; }
  .engine__media { order: -1; }
  .site-footer__base { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 560px) {
  .imgcards--3, .featurecards--3, .featurecards--4, .iconrow--5, .iconrow--4 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 1.3rem; background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 1.6rem var(--gutter); transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .compare-card, .compare-card--reverse { grid-template-columns: 1fr; }
  .compare-card__media { min-height: 200px; }
  .compare-card--reverse .compare-card__media { order: -1; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
