/* =========================================================
   STRATUM — Home
   Fluid system: clamp(min, start + slope·vw, max)
   Viewport range 320px → 1920px (leggo.dev/tools/clamp-generator)
   Everything in rem, so browser zoom & user font size keep working.
   ========================================================= */

/* ---- Fonts: self-hosted Geist (SIL OFL), latin subset ---- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  /* ---- Colour ---- */
  --void: #08080c;
  --graphite: #111118;
  --deep: #0a0a10;
  --core: #050508;
  --panel: #1a1a23;
  --panel-2: #23232e;
  --line: #2e2e39;
  --line-soft: rgba(255, 255, 255, 0.08);
  --frost: #f4f3f8;
  --frost-2: #d9d8e3;
  --muted: #a09fb0;
  --violet: #7c6cff;
  --violet-soft: #b3a9ff;
  --violet-btn-a: #6a5af0;
  --violet-btn-b: #4b3dd4;
  --indigo: #4f5bff;
  --ember: #ff5a26;
  --ember-a: #ff6b35;
  --ember-b: #c9330f;
  --ember-soft: #ff8a5c;
  --teal: #2ee6c5;

  /* ---- Type ---- */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- Fluid scale (min @320 → max @1920) ---- */
  --fs-display: clamp(2.75rem, 1.4rem + 6.75vw, 9.5rem);       /* 44 → 152 */
  --fs-h2: clamp(2.125rem, 1.6rem + 2.625vw, 4.75rem);         /* 34 → 76 */
  --fs-h2s: clamp(1.875rem, 1.5rem + 1.875vw, 3.75rem);        /* 30 → 60 */
  --fs-h3: clamp(1.375rem, 1.2375rem + 0.6875vw, 2.0625rem);   /* 22 → 33 */
  --fs-stat-xl: clamp(2.75rem, 2.4rem + 1.75vw, 4.5rem);       /* 44 → 72 */
  --fs-stat: clamp(1.625rem, 1.45rem + 0.875vw, 2.5rem);       /* 26 → 40 */
  --fs-stat-s: clamp(1.375rem, 1.275rem + 0.5vw, 1.875rem);    /* 22 → 30 */
  --fs-lead: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);           /* 16 → 20 */
  --fs-body: clamp(0.9375rem, 0.9125rem + 0.125vw, 1.0625rem); /* 15 → 17 */
  --fs-small: clamp(0.8125rem, 0.7937rem + 0.0938vw, 0.9062rem); /* 13 → 14.5 */
  --fs-label: clamp(0.6875rem, 0.6625rem + 0.125vw, 0.8125rem); /* 11 → 13 */

  --sp-section: clamp(3.5rem, 2.8rem + 3.5vw, 7rem);           /* 56 → 112 */
  --sp-gutter: clamp(1rem, 0.15rem + 4.25vw, 5.25rem);         /* 16 → 84 */
  --sp-xl: clamp(2.5rem, 2rem + 2.5vw, 5rem);                  /* 40 → 80 */
  --sp-l: clamp(2rem, 1.575rem + 2.125vw, 4.125rem);           /* 32 → 66 */
  --sp-m: clamp(1rem, 0.7875rem + 1.0625vw, 2.0625rem);        /* 16 → 33 */
  --sp-s: clamp(0.75rem, 0.625rem + 0.625vw, 1.375rem);        /* 12 → 22 */

  --r-xl: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);               /* 20 → 32 */
  --r-l: clamp(1rem, 0.8625rem + 0.6875vw, 1.6875rem);         /* 16 → 27 */
  --r-m: clamp(0.875rem, 0.8rem + 0.375vw, 1.25rem);           /* 14 → 20 */
  --r-btn: 0.875rem;
  --r-chip: 0.5rem;

  /* ---- Effects ---- */
  --shadow-depth: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2rem 4rem -2rem rgba(0, 0, 0, 0.95);
  --glow-violet: 0 0.75rem 1.75rem -0.875rem rgba(106, 90, 240, 0.5);
  --glow-ember: 0 1.875rem 3.75rem -1.5rem rgba(255, 90, 38, 0.65);
  --glass: rgba(17, 17, 24, 0.6);
  --blur: blur(1.125rem);

  /* ---- Layout ---- */
  --container: 90rem;
  --rail: 0rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 75em) {
  :root { --rail: 4.5rem; }
}

/* Ultra-wide (>1920px): grow the root so every rem scales with the screen.
   Snippet from leggo.dev/tools/clamp-generator */
@media screen and (min-width: 1921px) {
  :root { --zoom-speed: 0.00833; }
  html { font-size: clamp(1rem, calc(1rem + (100vw - 1920px) * var(--zoom-speed)), 2.5rem); }
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
  margin: 0;
  background: var(--void);
  color: var(--frost);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; } /* <picture> wrappers must not change the image layout */
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 0.375rem; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--r-btn); background: var(--frost); color: var(--void); transform: translateY(-200%); transition: transform 0.2s; }
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: calc(var(--sp-gutter) + var(--rail)) var(--sp-gutter);
}

/* =========================================================
   Typography helpers
   ========================================================= */
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.h2--s { font-size: var(--fs-h2s); line-height: 1.04; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: #c9c8d4; }
.lead--soft { max-width: 34rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: var(--fs-label); }
.tnum { font-variant-numeric: tabular-nums; }
.ember-text { font-family: var(--mono); font-size: var(--fs-label); color: var(--ember-soft); }
.text-gradient {
  font-style: normal;
  background: linear-gradient(90deg, #b3a9ff 0%, #7c6cff 45%, #ff6b35 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.link { display: inline-flex; align-items: center; gap: 0.375em; font-weight: 600; text-decoration: none; color: var(--violet-soft); transition: color 0.2s; }
.link:hover { color: var(--frost); }

/* =========================================================
   Atoms
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  /* --mx/--my: magnetic pull toward the pointer (main.js); no jump on hover */
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.6s var(--ease), box-shadow 0.5s ease, background-color 0.3s, border-color 0.3s, background-position 0.7s var(--ease);
}
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); transition-duration: 0.15s; }
.btn--sm { min-height: 2.875rem; padding: 0 1.125rem; font-size: 0.875rem; }
.btn--primary {
  background: linear-gradient(150deg, #8b7dff, var(--violet-btn-a) 35%, var(--violet-btn-b)) 100% 0 / 180% 100%;
  color: #fff;
  box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { background-position: 0 0; box-shadow: 0 1rem 2.25rem -0.875rem rgba(106, 90, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(0.625rem); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sliding thumb (main.js): button pairs and tabs ----------
   The group becomes a stacking context so the thumb (z-index -1) sits above
   the group's own background but under the labels. */
.has-thumb { position: relative; isolation: isolate; }
.thumb {
  position: absolute; z-index: -1; pointer-events: none;
  background: linear-gradient(150deg, var(--violet-btn-a), var(--violet-btn-b));
  box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* In a thumb row every button wears the ghost look; the thumb supplies the violet */
.btn-row .thumb { border-radius: var(--r-btn); }
.btn-row.has-thumb .btn {
  background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none; backdrop-filter: none; color: #fff; transform: none;
  transition: border-color 0.35s, background-color 0.35s;
}
.btn-row.has-thumb .btn.is-lit { background: transparent; border-color: transparent; }

/* ---------- Icons: one inline SVG sprite, one stroke style ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.3s var(--ease), rotate 0.45s var(--ease); }
/* Arrows nudge in their own direction when their link, button or card is hovered */
:is(a, button):hover .i--r { translate: 0.2em 0; }
:is(a, button):hover .i--d { translate: 0 0.2em; }
:is(a, button):hover .i--ur { translate: 0.15em -0.15em; }

/* One round button everywhere: frost disc, dark arrow */
.round-btn {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--frost); color: var(--void); font-size: 1.125rem; text-decoration: none;
  transition: background-color 0.3s;
}
.round-btn .i { stroke-width: 2.25; }
/* Inside a round button the arrow itself never slides */
:is(a, button):hover .round-btn .i { translate: none; }

/* Down arrows levitate: on hover of the whole card or link the disc lifts,
   bobs gently and glows from below; pressing sets it back down and the glow goes out. */
.round-btn { transition: background-color 0.3s, translate 0.4s var(--ease), scale 0.2s var(--ease), box-shadow 0.4s var(--ease); }
a:hover .round-btn:has(.i--d) {
  background: #fff; translate: 0 -0.375rem;
  box-shadow: 0 0.75rem 1.25rem -0.5rem rgba(124, 108, 255, 0.45), 0 0 1.25rem rgba(124, 108, 255, 0.18);
  animation: rb-bob 1.3s ease-in-out 0.4s infinite alternate;
}
a:active .round-btn:has(.i--d) {
  translate: 0 0; scale: 0.94; box-shadow: none; animation: none;
  transition-duration: 0.3s, 0.15s, 0.15s, 0.15s;
}
@keyframes rb-bob { from { transform: translateY(0); } to { transform: translateY(-0.1875rem); } }

/* The up-right arrow turns to point right while its card is hovered */
a:hover .round-btn:has(.i--ur) { background: #fff; }
a:hover .round-btn .i--ur { rotate: 45deg; }

.pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.875rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.625rem);
  font-size: 0.8125rem; font-weight: 500; color: var(--frost-2);
}
.pill--glass { background: rgba(8, 8, 12, 0.65); }

.dot { display: inline-block; width: 0.4375rem; height: 0.4375rem; border-radius: 999px; flex-shrink: 0; }
.dot--live { background: var(--teal); box-shadow: 0 0 0.375rem rgba(46, 230, 197, 0.45); }
.dot--ember { background: var(--ember); box-shadow: 0 0 0.625rem var(--ember); }

.chip-violet { border-radius: 0.375rem; padding: 0.2rem 0.5rem; background: rgba(124, 108, 255, 0.18); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--violet-soft); vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { border-radius: var(--r-chip); padding: 0.4rem 0.75rem; background: var(--panel-2); font-size: 0.8125rem; color: var(--frost-2); }

.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.1875rem 0.625rem; font-size: 0.75rem; font-weight: 500; }
.status--live { color: var(--teal); background: rgba(46, 230, 197, 0.1); border: 1px solid rgba(46, 230, 197, 0.3); }
.status--build { color: var(--ember-soft); background: rgba(255, 90, 38, 0.12); border: 1px solid rgba(255, 90, 38, 0.4); }

/* ---- Cards ---- */
.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-depth);
}
.card__body { padding: var(--sp-m); display: flex; flex-direction: column; gap: 0.875rem; }
.card--glass { background: rgba(26, 26, 35, 0.72); backdrop-filter: var(--blur); border-color: var(--line-soft); }
.card--ember {
  border: 0; color: #fff;
  background: linear-gradient(155deg, var(--ember-a) 0%, var(--ember-b) 60%, #5a1606 100%);
  box-shadow: var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.card--violet {
  border: 0; color: #fff;
  background: linear-gradient(155deg, #7c6cff 0%, #4b3dd4 60%, #1e1660 100%);
  box-shadow: 0 2.5rem 4.5rem -2rem rgba(106, 90, 240, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.num { font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.card--violet .num { color: #fff; }

.kpis { display: flex; flex-wrap: wrap; gap: var(--sp-m) var(--sp-l); }
.kpis div { display: flex; flex-direction: column; gap: 0.125rem; }
.kpis strong { font-size: var(--fs-stat); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.kpis div > span { font-size: var(--fs-small); color: var(--muted); }

/* =========================================================
   Header
   ========================================================= */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: 1rem; transition: padding 0.3s var(--ease); }
.header.is-scrolled { padding-top: 0.5rem; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h); padding: 0 0.625rem 0 1.25rem;
  border-radius: var(--r-m);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, 0.8);
}
.logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.logo__mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; fill: none; stroke-width: 1.9; }
.logo__word { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; }
.nav__links { display: none; position: relative; isolation: isolate; gap: clamp(0rem, -0.6rem + 1.2vw, 0.75rem); font-size: 0.9375rem; }
.nav__links a { display: block; padding: 0.5rem 0.8125rem; border-radius: 999px; text-decoration: none; color: var(--frost-2); transition: color 0.3s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--frost); }
/* Orange underline (main.js): rests under the section you are in, slides to the link under the pointer */
.nav__pill {
  position: absolute; z-index: -1; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; pointer-events: none;
  opacity: 0; scale: 0.92;
  transition: translate 0.5s var(--ease), width 0.5s var(--ease), opacity 0.35s, scale 0.35s var(--ease);
}
.nav__pill.is-on { opacity: 1; scale: 1; }
.nav__pill::after {
  content: ""; position: absolute; left: 50%; bottom: -0.3125rem; width: 0.875rem; height: 2px; border-radius: 2px; translate: -50% 0;
  background: var(--ember); box-shadow: 0 0 0.5rem rgba(255, 90, 38, 0.7); opacity: 0.9;
}
.nav__actions { display: flex; align-items: center; gap: 0.625rem; }
.nav__portal { display: none; align-items: center; gap: 0.375em; font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--frost-2); padding: 0 0.75rem; }
.nav__actions .btn { display: none; }

.burger { display: grid; place-content: center; gap: 0.375rem; width: 2.875rem; height: 2.875rem; border-radius: var(--r-btn); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.burger span { display: block; width: 1.125rem; height: 2px; border-radius: 2px; background: var(--frost); transition: transform 0.3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(0.25rem) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-0.25rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + 1.75rem) var(--sp-gutter) auto;
  padding: 1.25rem; border-radius: var(--r-l);
  background: rgba(17, 17, 24, 0.92); backdrop-filter: var(--blur); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-depth);
}
.mobile-menu ul { display: grid; }
.mobile-menu li a { display: block; padding: 0.875rem 0.25rem; font-size: 1.25rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.mobile-menu__foot { display: grid; gap: 0.625rem; margin-top: 1.25rem; }

@media (min-width: 40em) {
  .nav__actions .btn { display: inline-flex; }
}
@media (min-width: 64em) {
  .nav__links { display: flex; }
  .nav__portal { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}

/* =========================================================
   Depth gauge
   ========================================================= */
.depth {
  display: none;
  position: fixed; z-index: 40;
  left: calc(var(--sp-gutter) * 0.5 + 0.5rem); top: 50%;
  height: min(60vh, 32rem); width: 3.5rem;
  transform: translateY(-40%);
  pointer-events: none;
}
.depth__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.depth__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--depth-p, 0)); background: linear-gradient(180deg, var(--ember), var(--violet) 45%, var(--indigo)); }
.depth__marks li {
  position: absolute; left: 50%; top: calc(var(--at) * 100%);
  transform: translate(-50%, -50%);
  padding: 0.125rem 0.375rem; border-radius: 999px;
  background: var(--void); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.625rem; color: var(--muted);
}
.depth__now {
  position: absolute; left: 50%; top: calc(var(--depth-p, 0) * 100%);
  transform: translate(-50%, -50%);
  min-width: 4.25rem; padding: 0.4rem 0.5rem; border-radius: 999px; text-align: center;
  background: var(--ember); color: #160602;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 1.5rem rgba(255, 90, 38, 0.7);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.depth.is-deep .depth__now { background: var(--violet-btn-a); color: #fff; box-shadow: 0 0 1.5rem rgba(106, 90, 240, 0.8); }

.depth-chip {
  position: fixed; z-index: 40; right: 1rem; bottom: 1rem;
  padding: 0.5rem 0.875rem; border-radius: 999px;
  background: rgba(17, 17, 24, 0.8); backdrop-filter: var(--blur); border: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ember-soft);
  opacity: 0; transform: translateY(0.5rem); transition: opacity 0.3s, transform 0.3s;
}
.depth-chip.is-visible { opacity: 1; transform: none; }

/* Section name bubble: pops out of the depth reading when a new section is reached (main.js) */
.depth__note {
  position: absolute; top: 50%; left: calc(100% + 0.625rem);
  padding: 0.5rem 0.875rem; border-radius: 0.75rem; white-space: nowrap;
  font-family: var(--font); font-size: 0.875rem; font-weight: 500; letter-spacing: -0.005em; color: var(--frost);
  background: rgba(17, 17, 24, 0.82); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(124, 108, 255, 0.4);
  box-shadow: 0 0.75rem 2rem -0.75rem rgba(0, 0, 0, 0.9), 0 0 1.5rem -0.5rem rgba(124, 108, 255, 0.45);
  translate: 0 -50%; transform-origin: left center; opacity: 0; pointer-events: none;
}
.depth__note:empty { display: none; }
.depth-chip .depth__note { left: auto; right: calc(100% + 0.625rem); transform-origin: right center; }

@media (min-width: 75em) {
  .depth { display: block; }
  .depth-chip { display: none; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; padding-block: var(--sp-section); }
.section--tight { padding-top: 0; }
.section--graphite { background: var(--graphite); }
.section--deep { background: var(--deep); }
.section--core { background: var(--core); }
.glow-tr { background: radial-gradient(45rem 26rem at 88% 4%, rgba(79, 91, 255, 0.16), transparent 70%), var(--graphite); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-m) var(--sp-l); margin-bottom: var(--sp-l); }
.section-head > div:first-child { display: grid; gap: 1.125rem; }
.section-head__aside { display: grid; gap: 1rem; max-width: 28rem; }

/* =========================================================
   01 Hero
   ========================================================= */
.hero { position: relative; isolation: isolate; }
.hero__track { position: relative; }
.hero__stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0) 50%, var(--void) 100%),
    linear-gradient(90deg, rgba(8, 8, 12, 0.94) 0%, rgba(8, 8, 12, 0.72) 50%, rgba(8, 8, 12, 0.4) 100%);
}
.hero__inner { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-l); padding-top: calc(var(--header-h) + var(--sp-xl) + 1rem); padding-bottom: var(--sp-l); }
.hero__title { display: flex; flex-direction: column; font-size: var(--fs-display); font-weight: 600; line-height: 0.95; letter-spacing: -0.055em; }
.strata { width: min(100%, 56rem); height: clamp(2.25rem, 1.8rem + 2.2vw, 4.5rem); margin: 0.12em 0 0.08em; filter: drop-shadow(0 0 0.375rem rgba(124, 108, 255, 0.7)); overflow: visible; }
.strata__line { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2s var(--ease) forwards; }
.strata__line:nth-child(2) { animation-delay: 0.1s; }
.strata__line:nth-child(3) { animation-delay: 0.2s; }
.strata__line:nth-child(4) { animation-delay: 0.3s; }
.strata__line:nth-child(5) { animation-delay: 0.4s; }
.strata__line--violet { stroke: var(--violet); stroke-width: 2; }
.strata__line--ember { stroke: var(--ember); stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Headline phrases share one grid cell, so the title never changes size between them */
.hero__swap { display: grid; }
.hero__phrase { grid-area: 1 / 1; }
.hero__phrase:not(:first-child) { display: none; }
.hero__phrase .w { display: inline-block; }

.hero__foot { display: grid; gap: var(--sp-m); align-items: end; }
.hero__lead { display: grid; gap: var(--sp-m); max-width: 31rem; }

.hero__after { display: grid; gap: var(--sp-m); padding-top: var(--sp-m); padding-bottom: var(--sp-m); }
.hero__telemetry { display: grid; gap: 1rem; }
.hero__side { display: grid; gap: 1rem; align-content: end; }
.hero__note { font-size: var(--fs-small); color: var(--muted); }
.hero__slot { display: none; }
.js .hero__cards:not(.is-in) .bars i { animation-play-state: paused; }
.hero__cards { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; }

.live-card { padding: 1.25rem; display: grid; gap: 0.875rem; border-radius: var(--r-l); }
.live-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; }
.live-card__value { font-size: var(--fs-stat-s); font-weight: 600; letter-spacing: -0.03em; }
.bars { display: flex; align-items: flex-end; gap: 0.3125rem; height: 4.375rem; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 0.3125rem; background: var(--line); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.bars i.on { background: linear-gradient(180deg, var(--violet), #3b2fb0); }
.bars i.peak { background: linear-gradient(180deg, var(--ember-a), var(--ember-b)); box-shadow: 0 0 1.25rem rgba(255, 90, 38, 0.6); }
.bars i:nth-child(2n) { animation-delay: 0.08s; }
.bars i:nth-child(3n) { animation-delay: 0.16s; }
@keyframes grow { from { transform: scaleY(0.1); } }

.ember-card { padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; border-radius: var(--r-l); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }
.ember-card strong { font-size: var(--fs-stat-xl); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }

.statbar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--r-l); background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--line-soft);
}
.statbar__item { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid var(--line-soft); }
.statbar__item:nth-child(-n + 2) { border-top: 0; }
.statbar__item:nth-child(2n) { border-left: 1px solid var(--line-soft); }
.statbar__item strong { font-size: var(--fs-stat-s); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.statbar__item:not(.statbar__cta) > span { font-size: var(--fs-small); color: var(--muted); }
.statbar__cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; text-decoration: none; border-left: 0 !important; }
.statbar__cta > span:first-child { display: grid; gap: 0.25rem; }
.statbar__cta strong { font-size: 1rem; }

@media (min-width: 48em) {
  .hero__cards { max-width: 34rem; }
}
@media (min-width: 64em) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__cards { grid-template-columns: 18.75rem 13.75rem; }
  .statbar { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); }
  .statbar__item { border-top: 0; }
  .statbar__item + .statbar__item { border-left: 1px solid var(--line-soft); }
  .statbar__cta { grid-column: auto; }
}

/* ---------- Hero scroll scene (enabled by main.js) ----------
   The track adds --scene-len of scroll. The stage is 100lvh tall so it also
   covers the strip under a collapsing mobile toolbar, while the content is
   laid out in the always-visible 100svh. --p (0 → 1) is the scroll progress. */
.hero.is-scene { --scene-len: 130svh; }
.hero.is-scene .hero__track { height: calc(100vh + var(--scene-len)); height: calc(100lvh + var(--scene-len)); }
.hero.is-scene .hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; }
.hero.is-scene .hero__inner { flex: none; height: 100vh; height: 100svh; }
.hero.is-scene .hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--void); opacity: calc((var(--p, 0) - 0.72) * 2.2);
}
/* The telemetry rises over the last part of the scene. Its empty boxes let clicks through
   to the lead, which ends up over .hero__slot. main.js sizes the slot and sets
   --after-pull so the slot meets the lead exactly when the scene ends. */
.hero.is-scene .hero__after { position: relative; z-index: 1; margin-top: var(--after-pull, -30svh); }
.hero.is-scene .hero__after, .hero.is-scene .hero__telemetry, .hero.is-scene .hero__side { pointer-events: none; }
.hero.is-scene .hero__cards, .hero.is-scene .statbar, .hero.is-scene .hero__side .hero__note { pointer-events: auto; }
.hero.is-scene .hero__slot { display: block; height: var(--lead-h, 0); }
.hero.is-scene .hero__lead { position: relative; z-index: 2; }

.hero.is-scene .hero__phrase:not(:first-child) { display: block; }
.hero.is-scene .hero__phrase .w {
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.hero.is-scene .hero__phrase:not(.is-active) { pointer-events: none; }
.hero.is-scene .hero__phrase:not(.is-active) .w { opacity: 0; filter: blur(0.08em); transform: translateY(0.55em) rotate(3deg); transition-delay: calc(var(--i, 0) * 0.04s); }
.hero.is-scene .hero__phrase.is-past .w { transform: translateY(-0.55em) rotate(-3deg); }

/* The strata lines drift apart as the scene descends */
.hero.is-scene .strata__line { translate: 0 calc(var(--p, 0) * var(--drift, 0) * 1px); }
.hero.is-scene .strata__line:nth-child(1) { --drift: -10; }
.hero.is-scene .strata__line:nth-child(2) { --drift: -5; }
.hero.is-scene .strata__line:nth-child(4) { --drift: 5; }
.hero.is-scene .strata__line:nth-child(5) { --drift: 10; }

@media (min-width: 64em) {
  .hero.is-scene { --scene-len: 160svh; }
}
/* Lead (31rem) + gap + cards (33.5rem) fit side by side from here */
@media (min-width: 75em) {
  .hero__telemetry { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* =========================================================
   02 Logos marquee
   ========================================================= */
.logos { padding-block: var(--sp-l); background: var(--void); border-bottom: 1px solid var(--line-soft); }
.logos__title { margin-bottom: 1.5rem; font-size: var(--fs-small); color: var(--muted); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .marquee__track { display: flex; flex-shrink: 0; gap: var(--sp-xl); padding-right: var(--sp-xl); animation: marquee 40s linear infinite; }
.marquee__track li { --hl: 0; font-size: var(--fs-stat-s); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap;
  color: color-mix(in srgb, #d9d8e3 calc(var(--hl) * 100%), #7a7989); }
/* main.js takes over: speed follows scroll, slows under the pointer, names light up as they pass the middle */
.marquee.is-driven .marquee__track { animation: none; will-change: transform; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =========================================================
   03 Solutions bento
   ========================================================= */
.bento { display: grid; gap: 1.25rem; grid-template-areas: "colo" "inter" "cloud" "res" "ai"; }
.bento__colo { grid-area: colo; display: flex; flex-direction: column; }
.bento__inter { grid-area: inter; min-height: 20rem; }
.bento__cloud { grid-area: cloud; }
.bento__res { grid-area: res; justify-content: space-between; min-height: 17rem; text-decoration: none; color: inherit; }
.bento__ai { grid-area: ai; }

.card__media { position: relative; height: clamp(14rem, 10rem + 12vw, 20rem); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--panel) 100%); }
.card:hover .card__media img, .post:hover img { transform: scale(1.04); }

.bento__inter-img { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.bento__inter::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--panel) 30%, rgba(26, 26, 35, 0.55) 65%, rgba(26, 26, 35, 0.1) 100%); }
.bento__inter-body { position: relative; z-index: 2; height: 100%; justify-content: space-between; gap: var(--sp-m); max-width: 30rem; }
.bento__inter-body > div:first-child { display: grid; gap: 0.75rem; }

.zones { display: grid; gap: 0.5rem; margin-top: auto; }
.zones li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: var(--panel-2); font-size: var(--fs-small); }
.zones li > span:first-child { display: inline-flex; align-items: center; gap: 0.625rem; }

.bento__res-head { display: flex; justify-content: space-between; align-items: flex-start; }
.bento__res-head > div { display: grid; gap: 0.625rem; }
.bento__res > div:last-child { display: grid; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; }
.big { font-size: var(--fs-stat-xl); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }

.bento__ai {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem var(--sp-m);
  padding: var(--sp-m); text-decoration: none;
  background: linear-gradient(90deg, var(--panel) 0%, #1f1a3d 100%);
  transition: border-color 0.3s;
}
.bento__ai:hover { border-color: rgba(124, 108, 255, 0.5); }
.bento__ai-text { flex: 1 1 16rem; }
.bento__ai-go { display: inline-flex; align-items: center; gap: 0.875rem; font-weight: 600; color: var(--violet-soft); }

@media (min-width: 48em) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "colo inter" "colo cloud" "res res" "ai ai"; }
  .bento__colo .card__media { flex: 1; height: auto; min-height: 14rem; }
}
@media (min-width: 64em) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(20rem, auto) minmax(18rem, auto) auto; grid-template-areas: "colo inter inter" "colo cloud res" "ai ai ai"; }
  .bento__inter-img { width: 62%; opacity: 1; }
  .bento__inter-body { max-width: 50%; }
}

/* =========================================================
   04 Why underground
   ========================================================= */
.split { display: grid; gap: var(--sp-l); align-items: center; }
.photo-panel { position: relative; min-height: 26rem; height: 100%; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 3rem 5.5rem -2.5rem rgba(0, 0, 0, 0.95); }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 16, 0.2) 0%, transparent 40%, rgba(10, 10, 16, 0.85) 100%); }
.photo-panel__tag { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 1; }
.photo-panel__note { position: absolute; z-index: 1; inset: auto 1.25rem 1.25rem; padding: 1.25rem; border-radius: var(--r-l); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  isolation: isolate; transition: border-color 1.8s ease, box-shadow 1.8s ease; }
.photo-panel__note > span { position: relative; z-index: 1; }
/* Frost (main.js): ice grows in from the corners along the edge of the glass; the
   pointer's warmth melts it locally and it freezes back. Kept to the rim. */
.frost { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-panel__note.is-frozen {
  border-color: rgba(196, 230, 255, 0.3);
  box-shadow: var(--shadow-depth), inset 0 0 2rem rgba(150, 210, 255, 0.1), inset 0 1px 0 rgba(225, 242, 255, 0.2);
}
.photo-panel__note strong { transition: color 1.8s ease, text-shadow 1.8s ease; }
.photo-panel__note.is-frozen strong { color: #e8f6ff; text-shadow: 0 0 1.5rem rgba(140, 205, 255, 0.35); }
.photo-panel__note > span:first-of-type { display: grid; gap: 0.25rem; font-size: 0.8125rem; }
.photo-panel__note strong { font-size: var(--fs-stat); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.photo-panel__meta { font-size: 0.8125rem; text-align: right; line-height: 1.5; color: var(--muted); }
.split__copy { display: grid; gap: var(--sp-m); }

.features { display: grid; gap: var(--sp-m) var(--sp-l); }
.features li { display: grid; gap: 0.75rem; align-content: start; }
.features h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.icon-box { display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: var(--r-btn); background: rgba(124, 108, 255, 0.14); border: 1px solid rgba(124, 108, 255, 0.3); }
.icon-box svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: var(--violet-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Feature icon micro-animations ----------
   One short motion per icon in a shared 6 s cycle, staggered so only one icon
   moves at a time; the waves breathe continuously but by under a pixel. Every
   keyframe list starts and ends at rest, so reduced motion shows static icons.
   Paused until the block has been revealed. */
.icon-box svg * { transform-box: fill-box; }
.js [data-reveal]:not(.is-in) .icon-box * { animation-play-state: paused; }

/* Shield: a light runs once around the outline, then a check mark draws in */
.ico-trace { stroke: #fff; stroke-dasharray: 18 82; stroke-dashoffset: 100; opacity: 0; animation: ico-trace 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.ico-check { stroke-dasharray: 10; stroke-dashoffset: 10; animation: ico-check 6s var(--ease) infinite; }
@keyframes ico-trace {
  0% { stroke-dashoffset: 100; opacity: 0; }
  4%, 22% { opacity: 1; }
  28%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ico-check {
  0%, 22% { stroke-dashoffset: 10; opacity: 1; }
  32%, 52% { stroke-dashoffset: 0; opacity: 1; }
  62%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Bolt: a spark runs along the edge and the bolt glows ember for a moment */
.ico-fill { fill: var(--ember); stroke: none; opacity: 0; animation: ico-flash 6s ease-out 1.5s infinite; }
.ico-charge { stroke: var(--ember-soft); stroke-dasharray: 22 78; stroke-dashoffset: 100; opacity: 0; animation: ico-trace 6s cubic-bezier(0.45, 0, 0.55, 1) 1.5s infinite; }
@keyframes ico-flash {
  0%, 20% { opacity: 0; }
  27% { opacity: 0.5; }
  45%, 100% { opacity: 0; }
}

/* Lock: the shackle lifts, clicks shut, and the keyhole lights up */
.ico-shackle { animation: ico-shackle 6s var(--ease) 3s infinite; }
.ico-keyhole { fill: var(--violet-soft); stroke: none; animation: ico-keyhole 6s ease-out 3s infinite; }
@keyframes ico-shackle {
  0% { translate: 0 0; }
  7%, 15% { translate: 0 -0.15rem; }
  19% { translate: 0 0.03rem; }
  22%, 100% { translate: 0 0; }
}
@keyframes ico-keyhole {
  0%, 18% { fill: var(--violet-soft); }
  21% { fill: var(--ember-soft); }
  40%, 100% { fill: var(--violet-soft); }
}

/* Waves: the two lines breathe out of phase and a data packet rides the lower one */
.ico-wave { animation: ico-bob 3.2s ease-in-out infinite alternate; }
.ico-wave--2 { animation-delay: -1.6s; }
.ico-packet { stroke: #fff; stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: 0; animation: ico-trace 6s cubic-bezier(0.45, 0, 0.55, 1) 4.5s infinite; }
@keyframes ico-bob {
  from { translate: 0 -0.04rem; }
  to { translate: 0 0.04rem; }
}

@media (min-width: 40em) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: stretch; }
  .photo-panel { min-height: 40rem; }
  .split__copy { align-content: center; }
}

/* =========================================================
   05 Campuses
   ========================================================= */
.campuses { display: grid; gap: 1.25rem; }

/* Network console: telemetry bar, map stage, legend */
.map { padding: var(--sp-s); display: grid; grid-template-rows: auto 1fr auto; gap: 0.875rem; }
.map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0 0.25rem; font-size: var(--fs-small); color: var(--muted); }
.map__bar b { font-family: var(--mono); font-weight: 500; color: var(--frost); font-variant-numeric: tabular-nums; }

.map__stage {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 720 / 560;
  border-radius: calc(var(--r-xl) - 0.5rem); border: 1px solid var(--line-soft);
  background: radial-gradient(90% 80% at 64% 42%, rgba(79, 66, 200, 0.16), transparent 70%), linear-gradient(180deg, #0c0c13, #08080c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 4rem rgba(0, 0, 0, 0.6);
}
/* fine dot grid, fading out to the edges */
.map__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 243, 248, 0.1) 1px, transparent 1.25px) 0 0 / 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(75% 75% at 60% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(75% 75% at 60% 50%, #000 30%, transparent 100%);
}
/* HUD corner brackets */
.map__stage::after {
  --c: rgba(179, 169, 255, 0.5); --l: 1rem;
  content: ""; position: absolute; inset: 0.75rem; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px, linear-gradient(var(--c), var(--c)) left top / 1px var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px, linear-gradient(var(--c), var(--c)) right top / 1px var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px, linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px, linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l);
  background-repeat: no-repeat;
}
.map__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map__topo path { fill: none; stroke: rgba(179, 169, 255, 0.1); stroke-width: 1; }
.map__topo path.is-index { stroke: rgba(179, 169, 255, 0.22); }
.map__bathy path { fill: none; stroke: rgba(244, 243, 248, 0.12); stroke-dasharray: 2 6; }
.map__coast { fill: none; stroke: rgba(244, 243, 248, 0.5); stroke-width: 1.25; }
.map__coast-glow { fill: none; stroke: rgba(124, 108, 255, 0.12); stroke-width: 9; }
.map__ticks { fill: none; stroke: rgba(244, 243, 248, 0.22); }
.map__label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; fill: var(--muted); }
.map__label--sub { font-size: 9px; fill: rgba(160, 159, 176, 0.6); }
.map__spot text, .map__scale text, .map__north text { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; fill: rgba(160, 159, 176, 0.7); }
.map__scale path, .map__north path { fill: none; stroke: rgba(244, 243, 248, 0.45); stroke-linecap: round; stroke-linejoin: round; }

/* Subsea cables flow in towards Harbor */
.map__subsea path { fill: none; stroke: rgba(244, 243, 248, 0.4); stroke-dasharray: 1 2; }
.map.is-live .map__subsea path { animation: map-inflow 3s linear infinite; }
@keyframes map-inflow { to { stroke-dashoffset: 6; } }

/* Dark fibre: a light packet runs along every live route */
.route { transition: opacity 0.4s; }
.route__base { fill: none; stroke: rgba(124, 108, 255, 0.45); stroke-width: 1.5; transition: stroke 0.4s, stroke-width 0.4s; }
.route__pulse { fill: none; stroke: #dcd7ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 3px rgba(124, 108, 255, 0.95)); }
.map.is-live .route__pulse { opacity: 0.5; animation: map-run 3s linear var(--d, 0s) infinite; }
@keyframes map-run { to { stroke-dashoffset: 0; } }
.route.is-hot .route__base { stroke: var(--violet); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(124, 108, 255, 0.8)); }
.map.is-live .route.is-hot .route__pulse { opacity: 1; }
.map:has(.route.is-hot) .route:not(.is-hot) { opacity: 0.7; }
.route--planned .route__base { stroke: var(--ember); stroke-opacity: 0.65; stroke-dasharray: 1.6 1.6; }
.map.is-live .route--planned .route__base { animation: map-march 5s linear infinite; }
@keyframes map-march { to { stroke-dashoffset: -16; } }
.route--planned.is-hot .route__base { stroke: var(--ember-soft); stroke-opacity: 1; stroke-width: 1.75; filter: drop-shadow(0 0 4px rgba(255, 90, 38, 0.7)); }

/* Nodes */
.pin { cursor: pointer; }
.pin__hit { fill: transparent; }
.pin__ring { fill: rgba(8, 8, 12, 0.9); stroke: rgba(179, 169, 255, 0.55); stroke-width: 1.25; transition: fill 0.3s, stroke 0.3s; }
.pin__core { fill: var(--frost); }
.pin__orbit, .pin__wave { fill: none; transform-box: fill-box; transform-origin: center; opacity: 0; transition: opacity 0.3s; }
.pin__orbit { stroke: var(--violet-soft); stroke-dasharray: 2 4; }
.pin__wave { stroke: var(--violet); stroke-width: 1.5; }
.pin__led { fill: var(--teal); }
.map.is-live .pin__led { animation: map-led 2.6s ease-in-out var(--d, 0s) infinite; }
@keyframes map-led { 50% { opacity: 0.25; } }
.pin:hover .pin__ring { stroke: var(--violet-soft); }
.pin.is-active .pin__ring { fill: rgba(124, 108, 255, 0.3); stroke: #fff; }
.pin.is-active .pin__orbit { opacity: 0.8; }
.map.is-live .pin.is-active .pin__orbit { animation: map-orbit 12s linear infinite; }
.map.is-live .pin.is-active .pin__wave { animation: map-wave 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
@keyframes map-orbit { to { rotate: 360deg; } }
@keyframes map-wave { from { scale: 0.6; opacity: 0.9; } to { scale: 2; opacity: 0; } }
.pin--planned .pin__ring { stroke: rgba(255, 90, 38, 0.75); stroke-dasharray: 3 2.5; }
.pin--planned .pin__core { fill: var(--ember); }
.pin--planned .pin__orbit, .pin--planned .pin__wave { stroke: var(--ember); }
.pin--planned.is-active .pin__ring { fill: rgba(255, 90, 38, 0.22); stroke: var(--ember-soft); }
.map__code { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; fill: rgba(244, 243, 248, 0.55); transition: opacity 0.3s; }
.map.has-callout .map__code.is-active { opacity: 0; }

/* Callout that glides to the active node */
.map__callout {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  display: grid; gap: 0.125rem; padding: 0.5rem 0.75rem 0.5625rem; white-space: nowrap;
  border-radius: 0.625rem; border: 1px solid rgba(124, 108, 255, 0.45);
  background: rgba(10, 10, 16, 0.82); -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem);
  box-shadow: 0 0.75rem 2rem -0.75rem rgba(0, 0, 0, 0.9), 0 0 1.5rem -0.5rem rgba(124, 108, 255, 0.5);
  translate: 2rem -50%;
  transition: left 0.6s var(--ease), top 0.6s var(--ease), translate 0.6s var(--ease), border-color 0.3s;
}
.map__callout::before { content: ""; position: absolute; top: 50%; right: 100%; width: 1.25rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(179, 169, 255, 0.8)); }
.map__callout.is-flip { translate: calc(-100% - 2rem) -50%; }
.map__callout.is-flip::before { right: auto; left: 100%; background: linear-gradient(90deg, rgba(179, 169, 255, 0.8), transparent); }
.map__callout > * { transition: opacity 0.15s; }
.map__callout.is-swap > * { opacity: 0; }
.map__callout-code { display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--muted); }
.map__callout-code i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0.5rem var(--teal); }
.map__callout strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.map__callout-meta { font-size: 0.75rem; color: var(--violet-soft); }
.map__callout.is-build { border-color: rgba(255, 90, 38, 0.5); }
.map__callout.is-build .map__callout-code i { background: var(--ember); box-shadow: 0 0 0.5rem var(--ember); }
.map__callout.is-build .map__callout-meta { color: var(--ember-soft); }

.map__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.map__legend > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.line-key { width: 1.125rem; height: 2px; background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.line-key--subsea { height: 1px; background: repeating-linear-gradient(90deg, rgba(244, 243, 248, 0.6) 0 2px, transparent 2px 5px); box-shadow: none; }

@media (max-width: 39.99em) {
  .map__code, .map__spot, .map__label--sub { display: none; }
  .map__callout { padding: 0.375rem 0.5625rem 0.4375rem; translate: 1.375rem -50%; }
  .map__callout.is-flip { translate: calc(-100% - 1.375rem) -50%; }
  .map__callout::before { width: 0.75rem; }
  .map__callout strong { font-size: 0.8125rem; }
}

/* Campus list: one violet highlight glides between the cards (main.js) */
.campus-list { display: grid; gap: 0.625rem; }
.campus {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; gap: 0.375rem; padding: 1.125rem 1.25rem;
  border-radius: var(--r-l); border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.25s, background-color 0.25s;
}
.campus:hover { border-color: #3a3a47; }
.campus[aria-pressed="true"] { border-color: rgba(124, 108, 255, 0.6); background: linear-gradient(90deg, #211d40, var(--panel)); box-shadow: var(--glow-violet); }
.campus__top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; color: var(--muted); }
.campus__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.campus__meta { font-size: var(--fs-small); color: var(--muted); }
.campus-rail .thumb {
  border-radius: var(--r-l); border: 1px solid rgba(124, 108, 255, 0.6);
  background: linear-gradient(90deg, rgba(75, 61, 212, 0.38), rgba(26, 26, 35, 0) 85%);
  box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: opacity 0.5s 0.6s;
}
.campus-rail .thumb::before {
  content: ""; position: absolute; left: -1px; top: 24%; bottom: 24%; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--violet-soft); box-shadow: 0 0 0.75rem var(--violet);
}
.js .campus-rail[data-reveal]:not(.is-in) .thumb { opacity: 0; }
.campus-rail.has-thumb .campus { background: rgba(26, 26, 35, 0.6); }
.campus-rail.has-thumb .campus[aria-pressed="true"] { background: transparent; border-color: transparent; box-shadow: none; }

@media (min-width: 64em) {
  .campuses { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}

/* =========================================================
   06 Industries tabs
   ========================================================= */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.tabs__list { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.375rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list [role="tab"] { flex-shrink: 0; min-height: 2.75rem; padding: 0 1.125rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.tabs__list [role="tab"]:hover { color: var(--frost); }
.tabs__list [aria-selected="true"] { background: linear-gradient(150deg, var(--violet-btn-a), var(--violet-btn-b)); color: #fff; box-shadow: var(--glow-violet); }
.tabs__list .thumb { border-radius: 999px; }
.tabs__list.has-thumb [aria-selected="true"] { background: transparent; box-shadow: none; }
.tabs__panel { padding: var(--sp-l) var(--sp-m); display: grid; gap: var(--sp-m); animation: tab-fade 0.4s ease-out; }
.tabs__panel > div { display: grid; gap: 1rem; align-content: start; max-width: 34rem; }
.checks { display: grid; gap: 0.625rem; align-content: start; }
.checks li { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: var(--panel-2); }
.checks li::before {
  /* Same language as .icon-box: violet tint, thin border, rounded square, stroke icon */
  content: ""; flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 0.4375rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3a9ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E") center / 0.875rem no-repeat, rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(124, 108, 255, 0.3);
}
@keyframes tab-fade { from { opacity: 0; } }
@keyframes tab-in { from { opacity: 0; translate: calc(var(--tab-dir, 1) * 1.25rem) 0; } }
@keyframes check-pop { from { opacity: 0; scale: 0.4; } 60% { scale: 1.12; } }
.tabs__panel > div > *, .checks li { animation: tab-in 0.6s var(--ease) both; }
.tabs__panel > div > :nth-child(2) { animation-delay: 50ms; }
.tabs__panel > div > :nth-child(3) { animation-delay: 100ms; }
.checks li:nth-child(1) { animation-delay: 120ms; }
.checks li:nth-child(2) { animation-delay: 190ms; }
.checks li:nth-child(3) { animation-delay: 260ms; }
.checks li::before { animation: check-pop 0.5s var(--ease) both; animation-delay: inherit; }
.checks li:nth-child(n)::before { animation-delay: calc(var(--d, 0ms) + 180ms); }
.checks li:nth-child(1) { --d: 120ms; } .checks li:nth-child(2) { --d: 190ms; } .checks li:nth-child(3) { --d: 260ms; }
.checks li { transition: background-color 0.3s, translate 0.4s var(--ease); }
.checks li:hover { background: #262632; translate: 0.25rem 0; }
@media (min-width: 64em) {
  .tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); padding: var(--sp-l); }
}

/* =========================================================
   07 Trust
   ========================================================= */
.trust { display: grid; gap: var(--sp-l); align-items: center; }
.trust__copy { display: grid; gap: var(--sp-m); }
/* Certificate tiles. The <li> stays put and keeps the soft drop shadow; the
   inner .cert card rises and leans, driven by --lift (0–1) and --rx/--ry from
   main.js. The moving layer carries no outer shadow, so it stays small and
   renders cleanly in 3D. Without JS the cards simply rest flat. */
.certs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.certs li { --lift: 0; display: grid; border-radius: var(--r-m); box-shadow: 0 1.25rem 2rem -1.5rem rgba(0, 0, 0, 0.9); perspective: 37.5rem; }
.cert {
  display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; padding: 0.75rem 0.875rem;
  /* The outline is painted as a background layer under a transparent border, not as a
     real border: Firefox can flood a rounded border across the whole box while it is
     tilted in 3D. Same for the seal below. */
  border-radius: var(--r-m); border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(180deg, #393945, var(--line) 40%) border-box;
  /* rises towards the viewer rather than up the screen, so it never slides over the row above */
  transform: translateY(calc(var(--lift) * -0.25rem)) translateZ(calc(var(--lift) * 1.25rem)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  /* keep the tilted card simple for Firefox: no real borders, no transformed children */
}
.cert__seal {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  font-size: 1.125rem; color: var(--violet-soft);
  border: 1px solid transparent;
  background: linear-gradient(#242239, #242239) padding-box, linear-gradient(#322f5a, #322f5a) border-box;
}
.cert__seal .i { stroke-width: 1.6; }
.cert__text { display: grid; gap: 0.125rem; min-width: 0; }
.cert__text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.cert__text span { font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
@media (max-width: 39.99em) {
  .cert { gap: 0.625rem; padding: 0.625rem 0.75rem; }
  .cert__seal { width: 1.875rem; height: 1.875rem; font-size: 1rem; border-radius: 0.5rem; }
}
@media (min-width: 40em) { .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

/* =========================================================
   08 Testimonials
   ========================================================= */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 85%); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.quote { scroll-snap-align: start; padding: var(--sp-m); display: flex; flex-direction: column; gap: 1.5rem; }
.quote blockquote { margin: 0; font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem); line-height: 1.4; letter-spacing: -0.015em; }
.quote figcaption { display: flex; align-items: center; gap: 0.875rem; margin-top: auto; }
.quote figcaption > span:last-child { display: grid; font-size: 0.9375rem; }
.quote figcaption .muted { font-size: var(--fs-small); }
.avatar { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: linear-gradient(150deg, #2a2550, #1a1a23); border: 1px solid rgba(124, 108, 255, 0.4); font-family: var(--mono); font-size: 0.8125rem; color: var(--violet-soft); flex-shrink: 0; }
img.avatar { object-fit: cover; padding: 0; width: 3.25rem; height: 3.25rem; }
.quote:first-child { background: linear-gradient(160deg, #221d45 0%, var(--panel) 60%); border-color: rgba(124, 108, 255, 0.35); }
@media (min-width: 64em) {
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}

/* =========================================================
   09 Insights
   ========================================================= */
.insights { display: grid; gap: 1.25rem; }
.post { display: flex; flex-direction: column; gap: 0.875rem; padding: 0.75rem 0.75rem var(--sp-m); text-decoration: none; transition: border-color 0.3s, transform 0.3s var(--ease); }
.post:hover { border-color: #3a3a47; transform: translateY(-0.25rem); }
.post__media { height: clamp(12rem, 9rem + 8vw, 15rem); border-radius: calc(var(--r-xl) - 0.5rem); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post__meta { display: flex; align-items: center; gap: 0.75rem; padding-inline: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.tag { border-radius: var(--r-chip); padding: 0.25rem 0.5rem; background: rgba(124, 108, 255, 0.16); color: var(--violet-soft); }
.post h3 { padding-inline: 0.5rem; font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
@media (min-width: 48em) { .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .insights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   10 Core · AI
   ========================================================= */
.section--core { background: radial-gradient(50rem 30rem at 70% 30%, rgba(106, 90, 240, 0.12), transparent 70%), var(--core); }
.core {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: var(--sp-m);
  padding: var(--sp-l) var(--sp-m);
  border-radius: var(--r-xl); border: 1px solid rgba(124, 108, 255, 0.3);
  box-shadow: 0 3rem 7.5rem -2.5rem rgba(106, 90, 240, 0.65);
}
.core__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.core::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.95) 100%); }
.core__copy { display: grid; gap: var(--sp-m); max-width: 42rem; }
.build-card { padding: 1.375rem; display: grid; gap: 0.875rem; border-radius: var(--r-l); max-width: 20rem; }
.build-card__head, .build-card__row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.build-card__row { font-size: 0.8125rem; }
.progress { height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--ember-a), var(--ember)); box-shadow: 0 0 0.875rem rgba(255, 90, 38, 0.7); }
@media (min-width: 64em) {
  .core { min-height: 34rem; padding: var(--sp-xl); align-content: center; }
  .core::before { background: linear-gradient(90deg, rgba(5, 5, 8, 0.96) 0%, rgba(5, 5, 8, 0.78) 45%, rgba(40, 20, 120, 0.2) 100%); }
  .build-card { position: absolute; right: var(--sp-l); bottom: var(--sp-l); width: 19rem; }
}

/* =========================================================
   11 Final CTA + form
   ========================================================= */
.cta { display: grid; gap: var(--sp-l); padding: var(--sp-l) var(--sp-m); background: var(--graphite); }
.cta__copy { display: grid; gap: 1rem; align-content: start; }
.noc { display: grid; gap: 0.25rem; margin-top: 0.5rem; padding: 1rem 1.25rem; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); }
.noc a { font-family: var(--mono); font-weight: 500; text-decoration: none; color: var(--teal); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 3.25rem; padding: 0 1rem;
  border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 0.25rem rgba(124, 108, 255, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form__note { font-size: var(--fs-small); }
.form__note.is-success { color: var(--teal); }
@media (min-width: 40em) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .cta { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: var(--sp-xl); }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; overflow: hidden; padding-top: var(--sp-section); background: var(--core); border-top: 1px solid var(--line-soft); }
.footer__top { display: grid; gap: var(--sp-l); }
.footer__brand { display: grid; gap: 1rem; max-width: 24rem; align-content: start; }
.subscribe { display: flex; gap: 0.5rem; padding: 0.375rem; border-radius: calc(var(--r-btn) + 0.375rem); border: 1px solid var(--line); background: var(--panel); }
.subscribe input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0.75rem; }
.subscribe input:focus { outline: none; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-m); }
.footer__h { margin-bottom: 0.875rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--frost); }
.footer__cols ul { display: grid; gap: 0.625rem; }
.footer__cols a { text-decoration: none; color: var(--frost-2); transition: color 0.2s; }
.footer__cols a:hover { color: var(--violet-soft); }
.footer__contact ul { gap: 1rem; }
.footer__k { display: block; margin-bottom: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.footer__contact a, .footer__contact address { font-style: normal; color: var(--frost); overflow-wrap: break-word; }
.footer__contact a:hover { color: var(--violet-soft); }
.noc__mail { color: var(--violet-soft) !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--sp-xl); padding-block: 1.5rem; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a { display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; }
.footer__legal a:hover { color: var(--frost); }
/* Wordmark arrival (main.js): parked below the clipped footer edge, then it rolls up
   fast, decelerates hard like a braking car, overshoots a touch and settles back. */
.footer__word.is-parked { translate: 0 110%; }
.footer__word.is-arrived { translate: 0 0; animation: word-arrive 1.9s both; }
@keyframes word-arrive {
  0% { translate: 0 110%; filter: blur(0.03em); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  62% { translate: 0 -4%; filter: blur(0); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  82% { translate: 0 1.2%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  100% { translate: 0 0; }
}
.footer__word {
  margin: 0 0 -0.18em; text-align: center; line-height: 0.8;
  font-size: clamp(4.5rem, 0.9rem + 18vw, 22rem); font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.35) 0%, rgba(124, 108, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__contact { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .footer__contact { grid-column: auto; }
}
@media (min-width: 64em) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }

/* =========================================================
   Reveal on scroll (only when JS is on)
   ========================================================= */
/* Adapted from a GSAP "animated content" pattern, in CSS: rise by --reveal-dist and
   fade in with power3.out. --rd is the batch delay, --ri × --rs the stagger inside a
   group (all set by main.js). Uses `translate`, so element transforms stay untouched,
   and the rules switch off once .is-done is set. */
:root { --reveal-dist: clamp(2.5rem, 2rem + 2.5vw, 5rem); --reveal-ease: cubic-bezier(0.215, 0.61, 0.355, 1); }
.js [data-reveal]:not([data-reveal="stagger"]):not(.is-done),
.js [data-reveal="stagger"]:not(.is-done) .reveal-item {
  opacity: 0; translate: 0 var(--reveal-dist);
  transition: opacity 0.8s var(--reveal-ease), translate 0.8s var(--reveal-ease);
  transition-delay: calc(var(--rd, 0ms) + var(--ri, 0) * var(--rs, 80ms));
}
.js [data-reveal].is-in:not(.is-done):not([data-reveal="stagger"]),
.js [data-reveal="stagger"].is-in:not(.is-done) .reveal-item { opacity: 1; translate: none; }

/* ---------- Custom cursor (main.js) ----------
   Only once a mouse has moved (html.has-cursor). The native cursor is hidden,
   except in text fields where the custom one steps aside for the caret. */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, [contenteditable="true"]) { cursor: text !important; }
.cursor { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__ring span, .cursor__dot span { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__ring span {
  width: 2.25rem; height: 2.25rem; border: 1px solid rgba(179, 169, 255, 0.5);
  transition: scale 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor__dot span {
  width: 0.375rem; height: 0.375rem; background: var(--frost);
  box-shadow: 0 0 0.625rem 0.125rem rgba(124, 108, 255, 0.75);
  transition: scale 0.3s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.cursor.is-link .cursor__ring span { scale: 1.65; background: rgba(124, 108, 255, 0.12); border-color: rgba(244, 243, 248, 0.6); }
.cursor.is-link .cursor__dot span { scale: 1.2; background: var(--ember-soft); box-shadow: 0 0 0.75rem 0.1875rem rgba(255, 90, 38, 0.6); }
.cursor.is-down .cursor__ring span { scale: 0.8; }
.cursor.is-link.is-down .cursor__ring span { scale: 1.35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js .reveal-item { opacity: 1 !important; translate: none !important; }
  .strata__line { stroke-dashoffset: 0; }
  .route__pulse, .pin__wave { display: none; }
}

/* =========================================================
   Motion pass: bento, images, failover diagram, zone bars
   ========================================================= */
/* Cards lift a touch under the pointer */
.bento > .card { transition: translate 0.5s var(--ease), border-color 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .bento > .card.is-done:hover, .js .bento > .card:not([data-reveal]):hover, html:not(.js) .bento > .card:hover { translate: 0 -0.25rem; }
  .bento > .card:not(.card--violet):hover { border-color: #3a3a48; }
}

/* Scroll parallax on photos (main.js sets --py); scaled up a little so edges never show */
.is-para { scale: 1.12; translate: 0 var(--py, 0px); }

/* Resilience: traffic runs to campus A, A drops, traffic swings to B, A comes back */
.failover { display: block; width: min(100%, 17rem); height: auto; margin-block: auto; overflow: visible; }
.failover__wire { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.25; }
.failover__src { fill: #fff; }
.failover__node circle { fill: #1e1660; stroke: #fff; stroke-width: 1.5; transition: none; }
.failover__node--a circle { animation: fo-node-a 9s var(--ease) infinite; }
.failover__node--b circle { animation: fo-node-b 9s var(--ease) infinite; }
.failover__pkt { fill: #fff; opacity: 0; offset-rotate: 0deg; }
.failover__pkt--a { offset-path: path("M14 32 H70 C96 32 100 14 126 14 H222"); animation: fo-run-a 9s linear infinite; }
.failover__pkt--b { offset-path: path("M14 32 H70 C96 32 100 50 126 50 H222"); animation: fo-run-b 9s linear infinite; }
.failover__pkt--2 { animation-delay: -0.75s; }
@keyframes fo-run-a {
  0% { offset-distance: 0%; opacity: 0; } 2% { opacity: 1; } 15% { offset-distance: 100%; opacity: 1; } 15.01% { offset-distance: 0%; opacity: 0; }
  17% { opacity: 1; } 30% { offset-distance: 100%; opacity: 1; } 30.01%, 70% { offset-distance: 0%; opacity: 0; }
  72% { opacity: 1; } 85% { offset-distance: 100%; opacity: 1; } 85.01% { offset-distance: 0%; opacity: 0; }
  87% { opacity: 1; } 100% { offset-distance: 100%; opacity: 1; }
}
@keyframes fo-run-b {
  0%, 36% { offset-distance: 0%; opacity: 0; } 38% { opacity: 1; } 51% { offset-distance: 100%; opacity: 1; } 51.01% { offset-distance: 0%; opacity: 0; }
  53% { opacity: 1; } 66% { offset-distance: 100%; opacity: 1; } 66.01%, 100% { offset-distance: 0%; opacity: 0; }
}
@keyframes fo-node-a { 0%, 31% { fill: #fff; opacity: 1; } 34%, 66% { fill: #1e1660; opacity: 0.45; } 70%, 100% { fill: #fff; opacity: 1; } }
@keyframes fo-node-b { 0%, 36% { fill: #1e1660; } 40%, 66% { fill: #fff; } 70%, 100% { fill: #1e1660; } }
.js .bento__res:not(.is-in) .failover * { animation-play-state: paused; }

/* Sovereign Cloud: a strip of uptime ticks per zone (main.js), the newest one ticks in now and then */
.zones li { gap: 0.875rem; }
.zones li > span:first-child, .zones li > span:last-child { flex: none; }
.zones__bars { flex: 1 1 0; min-width: 0; height: 0.875rem; display: flex; justify-content: flex-end; gap: 2px; overflow: hidden; }
.zones__bars.is-tight { visibility: hidden; }
.zones__bars i { flex: none; width: 3px; height: 100%; border-radius: 1px; background: rgba(46, 230, 197, 0.45); transform-origin: bottom; }
.zones__bars i.is-dim { background: rgba(46, 230, 197, 0.22); }
.js [data-zones] .zones__bars i { scale: 1 0; transition: scale 0.5s var(--ease); transition-delay: calc(var(--k) * 14ms); }
.js [data-zones].is-on .zones__bars i { scale: 1 1; }
.zones__bars i.is-new { animation: zone-tick 1.2s var(--ease); }
@keyframes zone-tick { from { scale: 1 0; background: #b8fff0; } 40% { background: #b8fff0; } }
[data-zones] { grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
@container (max-width: 17rem) { .zones__bars { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .failover__pkt { display: none; }
  .is-para { scale: 1; translate: none; }
  .js [data-zones] .zones__bars i { scale: 1 1; }
}
