/* ============================================================
   THE CATHEDRAL OF MEMORY — Micron concept redesign
   Deep cool darkness · luminous strata · chip cross-section banding
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #05080f;
  --ink-2: #070c16;
  --ink-3: #0a1120;
  --stratum-line: rgba(110, 231, 255, 0.14);
  --stratum-line-strong: rgba(110, 231, 255, 0.35);
  --cyan: #6ee7ff;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --text: #dfe9f5;
  --text-dim: #8fa3bd;
  --text-faint: #55677f;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ribbon-h: 44px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.6;
  padding-bottom: var(--ribbon-h); /* ribbon never obscures content */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; }

::selection { background: rgba(110, 231, 255, 0.28); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110,231,255,.35), rgba(167,139,250,.35));
  border-radius: 5px;
  border: 2px solid var(--ink);
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--cyan);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: top 0.15s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Grain overlay (local data-URI, tile-sized) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--stratum-line);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 23px; width: auto; }
.site-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  position: relative;
  transition: color 0.12s var(--ease-out); /* light caches: near-instant */
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s var(--ease-out);
}
.site-nav a:hover { color: var(--cyan); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-depth {
  font-size: 0.7rem;
  color: var(--cyan);
  border: 1px solid var(--stratum-line-strong);
  padding: 0.3rem 0.7rem;
  min-width: 9ch;
  text-align: center;
}

/* ---------- Shared section scaffolding ---------- */
.stratum {
  position: relative;
  padding: clamp(6rem, 12vh, 10rem) 2.5rem;
  border-top: 1px solid var(--stratum-line);
  overflow: hidden;
  scroll-margin-top: 3.5rem;
}
.strata-mark {
  position: absolute;
  top: 1.4rem; left: 2.5rem; right: 2.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  pointer-events: none;
}
.section-head {
  max-width: 1100px;
  margin: 0 auto clamp(3rem, 7vh, 5rem);
}
.eyebrow {
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.eyebrow .tick {
  width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  display: inline-block;
}
.display {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #f2f7ff;
  margin-bottom: 1.6rem;
}
.display .dot { color: var(--cyan); }
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.75;
}

/* ---------- Reveal motion (transform/opacity only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO — STRATUM 00 / SURFACE
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: none;
  padding-top: 8rem;
  background:
    radial-gradient(ellipse 90% 60% at 70% 20%, rgba(167, 139, 250, 0.07), transparent 60%),
    radial-gradient(ellipse 80% 55% at 20% 80%, rgba(110, 231, 255, 0.06), transparent 60%),
    var(--ink);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,15,0.5) 0%, transparent 30%, transparent 65%, var(--ink) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #f4f9ff;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .luminous {
  background: linear-gradient(92deg, var(--cyan) 0%, #bff3ff 38%, var(--violet) 75%, var(--cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
.hero-sub {
  margin-top: 2.2rem;
  max-width: 44ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
}
.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.btn-lumen {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--cyan);
  transition: background 0.12s var(--ease-out), color 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
.btn-lumen:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(110, 231, 255, 0.35), inset 0 0 18px rgba(110, 231, 255, 0.12);
}
.hero-note {
  font-size: 0.7rem;
  color: var(--text-faint);
}
.hero-flower {
  position: relative;
  max-width: 780px;
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  width: 100%;
}
.hero-flower img {
  width: 100%;
  mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 55%, transparent 100%);
}
.hero-flower figcaption,
.split-figure figcaption,
.hbm-image figcaption,
.terr-banner figcaption,
.bed-figure figcaption {
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  margin-top: 0.8rem;
  text-align: right;
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.cue-line {
  width: 1px; height: 3.2rem;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cueDrop 2.2s var(--ease-out) infinite;
  order: 2;
}
.scroll-cue { flex-direction: column; }
.cue-line { order: -1; }
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.25; }
}

/* ============================================================
   HBM — STRATUM 01 / THE TOWER
   ============================================================ */
.hbm {
  background:
    radial-gradient(ellipse 70% 50% at 18% 40%, rgba(110, 231, 255, 0.05), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding-bottom: clamp(7rem, 14vh, 12rem);
}
/* cross-section banding motif */
.banding {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 78px,
    rgba(110, 231, 255, 0.025) 78px,
    rgba(110, 231, 255, 0.025) 79px
  );
}
.hbm-stage {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1.2fr) minmax(200px, 260px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* --- The authored 12-high tower --- */
.hbm-tower {
  position: relative;
  padding: 2rem 0 0;
}
.tower-glow {
  position: absolute;
  inset: -10% -30%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(110, 231, 255, 0.10) 20%, rgba(110, 231, 255, 0.16) 55%, rgba(167, 139, 250, 0.14) 85%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 50% 55%, rgba(110, 231, 255, 0.18), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.tower-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  perspective: 900px;
}
.tower-stack li {
  --hue: calc(190 + var(--i) * 2.5);
  position: relative;
  height: 30px;
  background:
    linear-gradient(180deg,
      hsla(var(--hue), 90%, 68%, 0.16) 0%,
      hsla(var(--hue), 90%, 60%, 0.05) 100%);
  border: 1px solid hsla(var(--hue), 95%, 70%, 0.5);
  border-bottom-color: hsla(var(--hue), 95%, 75%, 0.9);
  box-shadow:
    0 0 14px hsla(var(--hue), 95%, 65%, 0.22),
    inset 0 -8px 16px hsla(var(--hue), 95%, 60%, 0.1);
  transform: rotateX(16deg) skewX(-8deg) translateX(calc(var(--i) * -2.5px));
  transition: box-shadow 0.12s var(--ease-out), border-color 0.12s var(--ease-out);
}
.tower-stack li:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(110, 231, 255, 0.55), inset 0 -8px 20px rgba(110, 231, 255, 0.22);
}
.tower-stack li.base {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0.06));
  border-color: rgba(167, 139, 250, 0.65);
}
.die-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) skewX(8deg);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  white-space: nowrap;
}
.tower-caption {
  margin-top: 1.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-align: center;
}

/* --- Flagship image --- */
.hbm-image { position: relative; }
.image-halo {
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(167, 139, 250, 0.22), rgba(110, 231, 255, 0.1) 55%, transparent 75%);
  filter: blur(26px);
  pointer-events: none;
}
.hbm-image img {
  position: relative;
  width: 100%;
  mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 60%, transparent 99%);
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 60%, transparent 99%);
}

/* --- Stats --- */
.hbm-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.stat dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}
.stat dd {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.stat-prefix {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan);
}
.stat-num {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 500;
  color: #f2f7ff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(110, 231, 255, 0.35);
}
.stat-unit { font-size: 0.68rem; color: var(--cyan); }

/* ============================================================
   DRAM — STRATUM 02
   ============================================================ */
.dram {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}
.dram-bands {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}
.dram-bands span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stratum-line) 20%, var(--stratum-line) 80%, transparent);
}
.split {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-figure { order: 1; }
.chip-list {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--stratum-line);
}
.chip-list li {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--stratum-line);
  transition: background 0.12s var(--ease-out), padding-left 0.12s var(--ease-out);
}
.chip-list li:hover {
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.06), transparent 70%);
  padding-left: 0.8rem;
}
.chip-list .mono {
  color: var(--cyan);
  font-size: 0.78rem;
  min-width: 7.5ch;
}
.chip-list em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.split-figure { position: relative; }
.split-figure img {
  border: 1px solid var(--stratum-line);
  box-shadow: 0 0 60px rgba(110, 231, 255, 0.07);
}

/* ============================================================
   NAND — STRATUM 03
   ============================================================ */
.nand {
  background:
    radial-gradient(ellipse 60% 45% at 80% 20%, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--ink);
}
.nand-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.nand-card {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--stratum-line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out), transform 0.25s var(--ease-out);
}
.nand-card:hover {
  border-color: var(--stratum-line-strong);
  box-shadow: 0 0 44px rgba(110, 231, 255, 0.14);
  transform: translateY(-4px);
}
.nand-card img { width: 100%; }
.nand-card-body { padding: 1.4rem 1.5rem 1.6rem; border-top: 1px solid var(--stratum-line); }
.nand-card-body h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #eef4ff;
  margin-bottom: 0.4rem;
}
.nand-card-body .mono { font-size: 0.66rem; color: var(--text-faint); letter-spacing: 0.16em; }
.nand-facts {
  border: 1px solid var(--stratum-line);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.05), transparent);
  display: flex;
  align-items: center;
  padding: 2rem;
}
.nand-facts dl { display: flex; flex-direction: column; gap: 2rem; width: 100%; }
.nand-facts dt { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--text-faint); margin-bottom: 0.5rem; }
.nand-facts dd { font-size: 0.82rem; color: var(--cyan); letter-spacing: 0.1em; }

/* ============================================================
   TERRITORIES — STRATUM 04
   ============================================================ */
.territories {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink) 100%);
}
.terr-grid {
  max-width: 1280px;
  margin: 0 auto clamp(3rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.terr-card {
  border: 1px solid var(--stratum-line);
  background: var(--ink-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out), transform 0.25s var(--ease-out);
}
.terr-card:hover {
  border-color: var(--stratum-line-strong);
  box-shadow: 0 0 50px rgba(110, 231, 255, 0.12);
  transform: translateY(-4px);
}
.terr-card figure { overflow: hidden; aspect-ratio: 3 / 2; }
.terr-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transition: filter 0.15s var(--ease-out), transform 0.4s var(--ease-out);
}
.terr-card:hover img { filter: saturate(1.05) brightness(1.04); transform: scale(1.03); }
.terr-body { padding: 1.5rem 1.6rem 1.8rem; }
.terr-index { font-size: 0.62rem; color: var(--cyan); letter-spacing: 0.22em; margin-bottom: 0.7rem; }
.terr-body h3 {
  font-size: 1.55rem;
  font-weight: 500;
  color: #eef4ff;
  margin-bottom: 0.6rem;
}
.terr-body p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
.terr-banner {
  max-width: 1280px;
  margin: 0 auto;
}
.terr-banner img {
  width: 100%;
  border: 1px solid var(--stratum-line);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

/* ============================================================
   BEDROCK — STRATUM 05
   ============================================================ */
.bedrock {
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(45, 212, 191, 0.05), transparent 60%),
    var(--ink-2);
}
.bed-figure img { box-shadow: 0 0 70px rgba(45, 212, 191, 0.08); }
.fact-row {
  list-style: none;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.xsection {
  max-width: 1280px;
  margin: clamp(4rem, 8vh, 6rem) auto 0;
}
.xsection-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
}
.xsection svg { width: 100%; height: auto; display: block; }
.xs-text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: #9fdcef;
}
.xs-dim { fill: #55677f; }
.xs-layer rect {
  transition: filter 0.15s var(--ease-out);
}
.xs-layer:hover rect { filter: brightness(1.6); }

/* ============================================================
   PEOPLE — STRATUM 06
   ============================================================ */
.people {
  background:
    radial-gradient(ellipse 60% 50% at 25% 45%, rgba(110, 231, 255, 0.05), transparent 65%),
    var(--ink);
  padding-bottom: clamp(8rem, 16vh, 13rem);
}
.people .btn-lumen { margin-top: 2.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--stratum-line);
  background: var(--ink-2);
  padding: 3.5rem 2.5rem 4.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.footer-logo { height: 26px; width: auto; align-self: flex-start; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.12s var(--ease-out);
}
.footer-nav a:hover { color: var(--cyan); }
.legal {
  font-size: 0.64rem;
  color: #7d90aa;
  letter-spacing: 0.1em;
  max-width: 70ch;
  line-height: 1.8;
}

/* ============================================================
   LATENCY RIBBON
   ============================================================ */
.latency-ribbon {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--ribbon-h);
  z-index: 250;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--stratum-line-strong);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ribbon-track {
  position: relative;
  height: 14px;
  overflow: hidden;
}
.ribbon-ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(110, 231, 255, 0.35) 0px,
    rgba(110, 231, 255, 0.35) 1px,
    transparent 1px,
    transparent 24px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  opacity: 0.5;
}
.ribbon-pulse {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.85), rgba(167, 139, 250, 0.85), transparent);
  filter: blur(2px);
  transform: translateX(-140px);
  will-change: transform;
}
.ribbon-readout {
  padding: 0.35rem 1rem 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.ribbon-readout .dim { color: var(--text-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hbm-stage {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  }
  .hbm-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
  }
  .nand-grid { grid-template-columns: 1fr 1fr; }
  .nand-facts { grid-column: 1 / -1; }
  .nand-facts dl { flex-direction: row; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner { padding: 1rem 1.4rem; }
  .stratum { padding-left: 1.4rem; padding-right: 1.4rem; }
  .strata-mark { left: 1.4rem; right: 1.4rem; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-figure { order: 2; }
  .terr-grid { grid-template-columns: 1fr; }
  .terr-card figure { aspect-ratio: 16 / 9; }
  .hbm-stage { grid-template-columns: 1fr; }
  .hbm-tower { max-width: 320px; margin: 0 auto; width: 100%; }
  .nand-grid { grid-template-columns: 1fr; }
  .nand-facts dl { flex-direction: column; }
  .hero { padding-top: 6.5rem; }
  .header-depth { display: none; }
  .xs-text { font-size: 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-title .luminous { animation: none; }
  .cue-line { animation: none; }
  .ribbon-pulse { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
