/* ============================================================
   THEASISX — Digital Intelligence Core
   Design System
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  /* Surfaces */
  --ink:          #050708;
  --ink-2:        #080B0C;
  --surface:      #0C1011;
  --graphite:     #161B1D;
  --graphite-2:   #222A2C;

  /* Accent — THEASISX emerald */
  --em:           #00E08A;
  --em-bright:    #7CFFC6;
  --em-deep:      #073D2A;
  --em-glow:      rgba(0, 224, 138, 0.55);
  --em-faint:     rgba(0, 224, 138, 0.10);

  /* Type */
  --cream:        #EDEBE4;
  --cream-2:      #B9BDB8;
  --cream-3:      #7E8582;
  --cream-4:      #4A5150;

  /* Hairlines */
  --line:         rgba(237, 235, 228, 0.09);
  --line-2:       rgba(237, 235, 228, 0.16);

  /* Fonts */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --gut:      clamp(20px, 4.2vw, 64px);
  --maxw:     1560px;
  --nav-h:    78px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur:       0.8s;
}

/* ---------- 2. RESET ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  /* Last line of defence: nothing may ever scroll this page sideways. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-loading { overflow: hidden; height: 100vh; }
body.nav-open   { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--em); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  transform: translateY(-200%);
  background: var(--em); color: var(--ink);
  padding: 12px 20px; border-radius: 3px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { transform: none; }

/* ---------- 3. TYPOGRAPHY ---------- */

/* Massive condensed display — Archivo variable, width axis compressed */
.display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 68, 'wght' 700;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin: 0;
}

/* Sizes are tuned so the longest line in each slot fits its container.
   Archivo at wdth 68 averages ~0.42em per uppercase glyph, so a 19-character
   line needs roughly 8em of width — that ceiling sets .d-hero. */
/* The hero fills a viewport, so its type is bounded by height as well as
   width — otherwise a short window pushes the CTAs below the fold. */
.d-hero { font-size: clamp(2.35rem, min(10.8vw, 18vh), 10rem); }
.d-xxl { font-size: clamp(3rem, 10.4vw, 11rem); }
.d-xl  { font-size: clamp(2.5rem, 7.4vw, 7.6rem); }
.d-lg  { font-size: clamp(2.1rem, 5.6vw, 5.4rem); }
.d-md  { font-size: clamp(1.7rem, 3.8vw, 3.4rem); }
.d-sm  { font-size: clamp(1.35rem, 2.5vw, 2.3rem); line-height: 0.95; }

/* Metadata / eyebrow */
.meta {
  font-family: var(--mono);
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--em);
  flex: none;
  opacity: 0.85;
}
.meta.no-rule::before { display: none; }
.meta .idx { color: var(--em); }

/* Body copy */
.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  line-height: 1.5;
  color: var(--cream-2);
  font-weight: 300;
  letter-spacing: -0.011em;
  max-width: 60ch;
}
.copy {
  font-size: clamp(0.95rem, 1.02vw, 1.075rem);
  line-height: 1.68;
  color: var(--cream-3);
  font-weight: 400;
  max-width: 62ch;
}
.copy strong, .lede strong { color: var(--cream); font-weight: 500; }

.em { color: var(--em); }
.dim { color: var(--cream-4); }

/* ---------- 4. LAYOUT ---------- */

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

section { position: relative; }

.section-pad { padding-block: clamp(96px, 15vh, 200px); }

/* Section top rule + index */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 84px);
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream-4);
}

/* ---------- 5. WEBGL CANVAS LAYER ---------- */

#core-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
#core-canvas.ready { opacity: 1; }

/* Content sits above the canvas */
.page { position: relative; z-index: 2; }

/* Sections that need to sit *behind* nothing but let the core breathe */
.veil {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(5,7,8,0.92) 0%, rgba(5,7,8,0.72) 45%, rgba(5,7,8,0.25) 100%);
}
.veil.soft {
  background: linear-gradient(180deg, transparent 0%, rgba(5,7,8,0.82) 18%, rgba(5,7,8,0.9) 82%, transparent 100%);
}

/* ---------- 6. FILM GRAIN + VIGNETTE ---------- */

/* Shifts via background-position, not transform: a fixed layer inset past
   the viewport edge adds horizontal overflow on narrow screens. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.7s steps(3) infinite;
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  33%  { background-position: -14px 9px; }
  66%  { background-position: 11px -12px; }
  100% { background-position: 0 0; }
}

.vignette {
  position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, transparent 42%, rgba(0,0,0,0.55) 100%);
}

/* ---------- 7. LOADER ---------- */

#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; width: min(440px, 82vw); }

.loader-mark {
  width: clamp(120px, 17vw, 190px);
  margin: 0 auto 34px;
  color: var(--cream);
  opacity: 0;
  animation: mark-in 1s var(--ease-out) 0.15s forwards;
}
@keyframes mark-in { to { opacity: 1; } }

.loader-mark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.5s var(--ease-io) forwards;
}
.loader-mark path:nth-child(1) { animation-delay: 0.10s; }
.loader-mark path:nth-child(2) { animation-delay: 0.20s; }
.loader-mark path:nth-child(3) { animation-delay: 0.30s; }
.loader-mark path:nth-child(4) { animation-delay: 0.40s; }
.loader-mark path:nth-child(5) { animation-delay: 0.50s; }
.loader-mark path:nth-child(6) { animation-delay: 0.60s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.loader-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-4);
  margin-bottom: 22px;
}

.loader-bar {
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute; inset: 0 100% 0 0;
  background: var(--em);
  box-shadow: 0 0 14px var(--em-glow);
}

.loader-pct {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--em);
  font-variant-numeric: tabular-nums;
}

/* ---------- 8. NAVIGATION ---------- */

#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s, border-color 0.5s, height 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  background: rgba(6, 9, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  height: 64px;
}
#nav.hidden { transform: translateY(-100%); transition: transform 0.45s var(--ease-out), background 0.5s; }

.nav-row {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  justify-self: start;
  color: var(--cream);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--em); }
.nav-logo svg { width: 34px; height: auto; }
.nav-logo .wm {
  font-family: var(--display);
  font-variation-settings: 'wdth' 84, 'wght' 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 2px;
}

.nav-links {
  display: flex; gap: clamp(18px, 2.4vw, 40px);
  justify-self: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--cream-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--em);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { justify-self: end; display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle i {
  display: block; width: 20px; height: 1.5px; background: var(--cream);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.nav-open .nav-toggle i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
#nav-drawer {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(5, 7, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--nav-h) + 40px) var(--gut) 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
body.nav-open #nav-drawer { opacity: 1; visibility: visible; }

#nav-drawer .dl a {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'wdth' 74, 'wght' 700;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.06;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(24px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
body.nav-open #nav-drawer .dl a { transform: none; opacity: 1; }
body.nav-open #nav-drawer .dl a:nth-child(1) { transition-delay: 0.06s; }
body.nav-open #nav-drawer .dl a:nth-child(2) { transition-delay: 0.12s; }
body.nav-open #nav-drawer .dl a:nth-child(3) { transition-delay: 0.18s; }
body.nav-open #nav-drawer .dl a:nth-child(4) { transition-delay: 0.24s; }
body.nav-open #nav-drawer .dl a:nth-child(5) { transition-delay: 0.30s; }

#nav-drawer .dmeta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--cream-4); line-height: 2;
}
#nav-drawer .dmeta a:hover { color: var(--em); }

/* ---------- 9. BUTTONS ---------- */

.btn {
  --bg: transparent;
  --fg: var(--cream);
  --bd: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out), border-color 0.4s;
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--em);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover { color: var(--ink); border-color: var(--em); }
.btn:hover::before { transform: translateY(0); }
.btn .ar { transition: transform 0.45s var(--ease-out); }
.btn:hover .ar { transform: translateX(4px); }

.btn--solid { --bg: var(--em); --fg: var(--ink); --bd: var(--em); }
.btn--solid::before { background: var(--cream); transform: translateY(101%); }
.btn--solid:hover { color: var(--ink); border-color: var(--cream); }

.btn--sm { padding: 11px 20px; font-size: 10.5px; }

/* Text link with rule */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--em);
  padding-bottom: 4px;
  position: relative;
}
.tlink::after {
  content: ''; position: absolute; left: 0; bottom: 0; right: 0;
  height: 1px; background: currentColor; opacity: 0.4;
  transform-origin: right; transform: scaleX(1);
  transition: transform 0.45s var(--ease-out);
}
.tlink:hover::after { transform: scaleX(0); }
.tlink .ar { transition: transform 0.4s var(--ease-out); }
.tlink:hover .ar { transform: translateX(5px); }

/* ---------- 10. CUSTOM CURSOR ---------- */

#cursor, #cursor-dot {
  position: fixed; top: 0; left: 0;
  z-index: 120; pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s;
}
#cursor.on, #cursor-dot.on { opacity: 1; }

#cursor {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(237,235,228,0.45);
  display: grid; place-items: center;
  transition: width 0.42s var(--ease-out), height 0.42s var(--ease-out),
              background 0.42s, border-color 0.42s, opacity 0.3s;
}
#cursor .clabel {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  white-space: nowrap;
}
#cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--em);
}

#cursor.hot {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--em); border-color: var(--em);
}
#cursor.hot .clabel { opacity: 1; transform: none; }
body.cursor-active #cursor-dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  #cursor, #cursor-dot { display: none !important; }
}

/* ---------- 11. TEXT REVEAL PRIMITIVES ---------- */

/* Reveal primitives.
   The hidden start state is applied by JS (gsap.set), never by CSS.
   If scripting fails, is blocked, or the ticker never runs, the page still
   reads — text is visible by default and animation is the enhancement. */
.rv-line { display: block; overflow: hidden; }
.rv-line > span { display: block; will-change: transform; }

.rv-clip { will-change: clip-path; }

/* Animated connector rule between sections */
.connector {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-inline: var(--gut);
  overflow: hidden;
}
.connector::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
  transform: translateX(var(--sweep, -100%));
  will-change: transform;
}

/* ---------- 12. HERO ---------- */

#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: calc(var(--nav-h) + 10px) clamp(22px, 4vh, 48px);
  position: relative;
}

#hero h1 { margin-top: 0.3em; }
#hero h1 .rv-line > span { padding-bottom: 0.055em; }

/* Supporting copy and actions sit under the full-width headline. */
.hero-under {
  margin-top: clamp(22px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: end;
}
.hero-under .copy { max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  margin-top: clamp(22px, 4vh, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}

.scroll-cue {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-3);
}
.scroll-cue .track {
  width: 1px; height: 34px; background: var(--line-2);
  position: relative; overflow: hidden;
}
.scroll-cue .track i {
  position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--em);
  animation: cue 2.1s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-110%); }
  55%  { transform: translateY(255%); }
  100% { transform: translateY(255%); }
}

.hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-4);
}
.hero-tags span { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ---------- 13. STAGE CAPTIONS (scroll-scrub narrative) ---------- */

#narrative { position: relative; height: 500vh; }
.narr-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding-inline: var(--gut);
  /* The captions animate through filter: blur(), which expands their ink
     area and would otherwise add horizontal scroll on narrow viewports. */
  overflow: hidden;
}
/* Scrim so the captions stay legible over the core — essential on mobile,
   where the object fills the frame behind the type. */
.narr-sticky::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 42% at 50% 50%, rgba(5,7,8,0.86) 0%, rgba(5,7,8,0.55) 55%, transparent 100%);
}

.narr-stage {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
  max-width: 22ch;
}
.narr-stage .meta { justify-content: center; margin-bottom: 18px; }
.narr-stage .sub {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-3);
}

/* ---------- 14. INTRO ---------- */

.intro-stack .d-lg + .d-lg { margin-top: 0.1em; }
.intro-body {
  margin-top: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* ---------- 16. ECOSYSTEM ---------- */

#ecosystem .eco-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
}

.eco-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 660px;
  width: 100%;
  margin-inline: auto;
}
.eco-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* The viewBox is 100x100 stretched to the stage, so stroke width must be
   decoupled from the coordinate system or it scales into thick bars. */
.eco-svg line {
  stroke: var(--em);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.22;
  transition: opacity 0.4s, stroke-width 0.4s;
}
.eco-svg line.lit { opacity: 0.9; stroke-width: 2; }

.eco-hub {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 40%, rgba(0,224,138,0.14), rgba(5,7,8,0.9) 68%);
  box-shadow: 0 0 60px rgba(0,224,138,0.14), inset 0 0 40px rgba(0,224,138,0.06);
}
.eco-hub svg { width: 46%; color: var(--cream); }
.eco-hub::after {
  content: ''; position: absolute; inset: -10%;
  border: 1px solid var(--em-faint); border-radius: 50%;
  animation: hub-pulse 4.2s var(--ease-io) infinite;
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.09); opacity: 0.15; }
}

.eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: clamp(62px, 9.4%, 92px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(9, 13, 14, 0.86);
  backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: clamp(8px, 0.62vw, 9.5px);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-2);
  text-align: center; line-height: 1.25; padding: 4px;
  transition: border-color 0.4s var(--ease-out), color 0.4s, background 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.eco-node:hover, .eco-node.active {
  border-color: var(--em); color: var(--em);
  background: rgba(0, 224, 138, 0.08);
  box-shadow: 0 0 26px rgba(0,224,138,0.28);
}

.eco-readout {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2.4vw, 34px);
  min-height: 190px;
}
.eco-readout .rk {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--em); margin-bottom: 14px;
}
.eco-readout h3 { margin-bottom: 14px; }
.eco-readout .swap { transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.eco-readout.swapping .swap { opacity: 0; transform: translateY(10px); }

/* ---------- 17. HORIZONTAL SOLUTIONS ---------- */

#solutions { position: relative; }
.hs-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hs-head {
  padding-inline: var(--gut);
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding-bottom: clamp(20px, 3.4vh, 44px);
}
.hs-track {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  padding-inline: var(--gut);
  will-change: transform;
}
.sol-card {
  flex: none;
  width: clamp(280px, 33vw, 460px);
  height: clamp(360px, 52vh, 560px);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(20px, 2.2vw, 34px);
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(165deg, rgba(24,30,32,0.86) 0%, rgba(8,11,12,0.92) 62%);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.sol-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 80% 0%, rgba(0,224,138,0.13), transparent 62%);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.sol-card:hover { border-color: var(--line-2); transform: translateY(-6px); }
.sol-card:hover::before { opacity: 1; }

.sol-card .sc-top { position: relative; }
.sol-card .sc-ix {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--cream-4); margin-bottom: clamp(30px, 6vh, 70px); display: block;
}
.sol-card h3 { margin-bottom: 14px; }
.sol-card .sc-desc { font-size: 0.95rem; line-height: 1.6; color: var(--cream-2); font-weight: 300; }
.sol-card .sc-foot { position: relative; }
.sol-card .sc-rows {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-bottom: 20px;
  display: grid; gap: 7px;
}
.sol-card .sc-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sol-card .sc-row dt { color: var(--cream-4); }
.sol-card .sc-row dd { color: var(--cream-2); margin: 0; text-align: right; }

.hs-progress {
  margin-top: clamp(18px, 3vh, 34px);
  padding-inline: var(--gut);
  max-width: var(--maxw); margin-inline: auto; width: 100%;
}
.hs-progress .bar { height: 1px; background: var(--line); position: relative; }
.hs-progress .bar i {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--em); box-shadow: 0 0 10px var(--em-glow);
}

/* ---------- 19. AI SECTION ---------- */

.ai-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(38px, 5.5vw, 72px);
}
.ai-cap {
  background: rgba(7, 10, 11, 0.86);
  padding: clamp(22px, 2.4vw, 34px);
  min-height: 190px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: background 0.55s var(--ease-out);
}
.ai-cap::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--em);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.ai-cap:hover { background: rgba(13, 18, 19, 0.95); }
.ai-cap:hover::after { transform: scaleX(1); }
.ai-cap .aik { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--em); }
.ai-cap h3 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 74, 'wght' 700;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  text-transform: uppercase; line-height: 1.02; letter-spacing: -0.012em;
}
.ai-cap p { font-size: 0.9rem; line-height: 1.6; color: var(--cream-3); }

/* ---------- 20. STATS ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--ink);
  padding: clamp(28px, 3.6vw, 56px) clamp(18px, 2vw, 30px);
  display: flex; flex-direction: column; gap: 10px;
}
.stat .sv {
  font-family: var(--display);
  font-variation-settings: 'wdth' 70, 'wght' 700;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 0.88; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .sk {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cream-3);
}
.stat .sn { font-size: 0.82rem; color: var(--cream-4); line-height: 1.5; }

.qual-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
}
.qual {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-2);
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}
.qual:hover { border-color: var(--em); color: var(--em); background: rgba(0,224,138,0.05); }

/* ---------- 23. DIFFERENCE (pinned) ---------- */

#difference { position: relative; }
.dif-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
}
.dif-stage { position: relative; width: 100%; }
.dif-line {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
}
.dif-line .dl-n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--em); display: block; margin-bottom: 20px;
}
.dif-rail {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px;
}
.dif-rail i {
  display: block; width: 30px; height: 1px; background: var(--line-2);
  transition: background 0.5s, width 0.5s var(--ease-out);
}
.dif-rail i.on { background: var(--em); width: 52px; }

/* ---------- 24. FINALE ---------- */

#finale {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-block: clamp(80px, 12vh, 150px);
}
.finale-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(30px, 5vh, 54px);
}
.finale-mark {
  margin-top: clamp(60px, 11vh, 130px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.finale-mark svg { width: clamp(96px, 13vw, 150px); color: var(--cream); }
.finale-mark .fm-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--cream-4);
}

/* ---------- 25. FOOTER ---------- */

#footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  position: relative; z-index: 3;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 90px);
}
.foot-col .fk {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream-4); margin-bottom: 18px;
}
.foot-col li + li { margin-top: 10px; }
.foot-col a, .foot-col address {
  font-size: 0.9rem; color: var(--cream-2); font-style: normal; line-height: 1.7;
  transition: color 0.3s;
}
.foot-col a:hover { color: var(--em); }

.foot-brand svg { width: 54px; color: var(--cream); margin-bottom: 18px; }
.foot-brand .fb-line { font-size: 0.9rem; color: var(--cream-3); max-width: 34ch; line-height: 1.65; }

.foot-statement {
  padding-block: clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.foot-statement h2 { color: var(--cream); }

.foot-base {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cream-4);
}
.foot-base a:hover { color: var(--em); }

/* ---------- 26. RESPONSIVE ---------- */

@media (max-width: 1180px) {
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --nav-h: 66px; }

  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-row { grid-template-columns: 1fr auto; }

  .hero-under { grid-template-columns: 1fr; align-items: start; }

  .intro-body { grid-template-columns: 1fr; }

  #ecosystem .eco-wrap { grid-template-columns: 1fr; }
  .eco-readout { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; min-height: 0; }


}

@media (max-width: 720px) {
  :root { --gut: 20px; }

  .display { font-variation-settings: 'wdth' 74, 'wght' 700; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  #hero { justify-content: flex-end; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .narr-stage { max-width: 15ch; }


  .sol-card { width: 78vw; height: 62vh; }

  .ai-cap-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .foot-top { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 10px; }

}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- 27. MOTION PREFERENCES ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain { animation: none; }
  .rv-line > span { transform: none !important; }
  .rv-fade { opacity: 1 !important; transform: none !important; }
  .rv-clip { clip-path: none !important; }
  .narr-stage { position: relative; opacity: 1 !important; }
  #narrative { height: auto; }
  .narr-sticky { position: relative; height: auto; display: grid; gap: 90px; padding-block: 90px; }
  .dif-line { position: relative; opacity: 1 !important; transform: none !important; top: auto; margin-bottom: 60px; }
  .dif-sticky { position: relative; height: auto; padding-block: 90px; }
  .dif-rail { display: none; }
}

/* No-WebGL / fallback backdrop so the page never looks empty */
body.no-webgl {
  background:
    radial-gradient(60% 50% at 50% 22%, rgba(0,224,138,0.10), transparent 70%),
    radial-gradient(50% 40% at 78% 76%, rgba(0,224,138,0.06), transparent 72%),
    var(--ink);
  background-attachment: fixed;
}
body.no-webgl #core-canvas { display: none; }
