/* Substrate Capital — original VC firm site */

:root {
  --bg: #07080a;
  --bg-2: #0e1014;
  --line: rgba(232, 228, 220, 0.06);
  --line-strong: rgba(232, 228, 220, 0.14);
  --ui-white: rgba(255, 255, 255, 0.69);
  --text: var(--ui-white);
  --muted: var(--ui-white);
  --muted-2: var(--ui-white);
  --accent: #ff2a3a;            /* T-1000 hot red */
  --accent-warm: #ff5462;
  --chrome-1: #f4f4f6;
  --chrome-2: #8a8c92;
  --chrome-3: #3a3c42;
  --display: "TerminatorRealNFI", "Black Ops One", "Bebas Neue", "Anton", "Oswald", "Instrument Serif", sans-serif;
  --serif: var(--display);
  --sans: var(--display);
  --mono: var(--display);
}

/* If the user uploads the original .ttf, this @font-face takes precedence
   over the fallback (Black Ops One). Paths tried, in order. */
@font-face {
  font-family: "TerminatorRealNFI";
  src: url("uploads/terminator real nfi.ttf") format("truetype"),
       url("uploads/terminator real nfi.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ui-white);
  font-family: var(--display);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

body,
button,
input,
textarea,
select,
a,
.site,
.site *,
.nav,
.nav *,
.orb-ui,
.orb-ui *,
.orb-ui__response,
.orb-ui__response * {
  font-family: var(--display) !important;
  color: var(--ui-white) !important;
  -webkit-text-fill-color: currentColor;
}

/* layout */
.site {
  min-height: 100vh;
}

.frame {
  padding-inline: 40px;
  max-width: 1640px;
  margin: 0 auto;
}

/* top nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: normal;
  color: var(--ui-white);
  text-shadow: 0 0 12px rgba(255, 42, 58, 0.4);
}

.nav__time {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.nav__logo-mark {
  width: 22px; height: 22px;
  position: relative;
}

.nav__logo-mark::before,
.nav__logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.nav__logo-mark::after { transform: scale(0.55); }

.nav__right { display: flex; gap: 28px; align-items: center; }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sound-toggle__dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}
.sound-toggle.on .sound-toggle__dot {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 8px currentColor;
}

/* HERO */
.hero {
  --orb-bg-core: 255, 36, 52;
  --orb-bg-mid: 255, 36, 52;
  --orb-bg-soft: 255, 64, 72;
  --orb-bg-highlight: 255, 64, 72;
  --orb-bg-shadow: 24, 2, 6;
  --orb-visual-radius: clamp(103px, 26vmin, 195px);
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background:
    radial-gradient(150% 130% at 60% 8% in oklab,
      rgba(var(--orb-bg-highlight), 0.32) 0%,
      rgba(var(--orb-bg-highlight), 0.24) 14%,
      rgba(var(--orb-bg-core), 0.18) 28%,
      rgba(var(--orb-bg-core), 0.12) 44%,
      rgba(var(--orb-bg-core), 0.06) 62%,
      rgba(var(--orb-bg-shadow), 0.04) 82%,
      transparent 110%),
    radial-gradient(160% 140% at 50% 50% in oklab,
      rgba(var(--orb-bg-core), 0.22) 0%,
      rgba(var(--orb-bg-core), 0.17) 18%,
      rgba(var(--orb-bg-core), 0.12) 36%,
      rgba(var(--orb-bg-core), 0.07) 56%,
      rgba(var(--orb-bg-core), 0.025) 78%,
      transparent 110%),
    rgb(7, 8, 10);
  transition: background 1.4s cubic-bezier(.2,.7,.2,1);
}

/* Glass blur layer — duplicates the radial gradients into a heavily-blurred
   pseudo-element so every transition reads as one continuous wash. Sits
   beneath the orb canvas (z-index 0 → canvas/UI are higher in the stacking
   context created by the .hero positioned ancestor + isolate). */
.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(150% 130% at 60% 8% in oklab,
      rgba(var(--orb-bg-highlight), 0.32) 0%,
      rgba(var(--orb-bg-highlight), 0.24) 14%,
      rgba(var(--orb-bg-core), 0.18) 28%,
      rgba(var(--orb-bg-core), 0.12) 44%,
      rgba(var(--orb-bg-core), 0.06) 62%,
      transparent 110%),
    radial-gradient(160% 140% at 50% 50% in oklab,
      rgba(var(--orb-bg-core), 0.22) 0%,
      rgba(var(--orb-bg-core), 0.14) 30%,
      rgba(var(--orb-bg-core), 0.06) 62%,
      transparent 110%);
  filter: blur(100px) saturate(1.04);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
}

/* Тонкое статичное звёздное поле. Несколько слоёв с разными размерами тайла
   убирают видимое повторение. CSS-only, рендерится один раз. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.72;
  background-image:
    radial-gradient(1.6px 1.6px at 17% 23%, rgba(255,255,255,0.95), transparent 65%),
    radial-gradient(1.4px 1.4px at 62% 88%, rgba(220,225,255,0.80), transparent 65%),
    radial-gradient(2px 2px at 81% 12%, rgba(255,240,235,0.90), transparent 65%),
    radial-gradient(1.2px 1.2px at 34% 71%, rgba(200,210,255,0.70), transparent 65%),
    radial-gradient(1.5px 1.5px at 92% 47%, rgba(255,255,255,0.75), transparent 65%),
    radial-gradient(1.4px 1.4px at 8% 64%, rgba(235,225,255,0.70), transparent 65%),
    radial-gradient(1.2px 1.2px at 47% 14%, rgba(255,255,255,0.60), transparent 65%),
    radial-gradient(1.7px 1.7px at 26% 91%, rgba(250,235,225,0.78), transparent 65%),
    radial-gradient(1.1px 1.1px at 74% 39%, rgba(255,255,255,0.55), transparent 65%),
    radial-gradient(1.3px 1.3px at 53% 52%, rgba(210,220,255,0.60), transparent 65%);
  background-size:
    320px 320px, 410px 410px, 280px 280px, 540px 540px, 360px 360px,
    470px 470px, 250px 250px, 600px 600px, 380px 380px, 510px 510px;
  background-repeat: repeat;
}

.hero[data-orb-tone="thinking"] {
  --orb-bg-core: 198, 78, 255;
  --orb-bg-mid: 198, 78, 255;
  --orb-bg-soft: 220, 130, 255;
  --orb-bg-highlight: 220, 130, 255;
  --orb-bg-shadow: 12, 4, 24;
}

.hero[data-orb-tone="answering"] {
  --orb-bg-core: 88, 208, 255;
  --orb-bg-mid: 88, 208, 255;
  --orb-bg-soft: 188, 236, 255;
  --orb-bg-highlight: 188, 236, 255;
  --orb-bg-shadow: 2, 10, 18;
}

/* Soft radial nebula halo — no diagonal streaks, no hard shafts.
   Parallax is driven by --mx / --my set from JS (range roughly -1..1). */
.hero__nebula {
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
  mix-blend-mode: screen;
  opacity: 0.95;
  --mx: 0;
  --my: 0;
  filter: brightness(1.08) contrast(1.04);
  -webkit-mask-image:
    radial-gradient(circle at 50% 50%, transparent 0 12vmin, rgba(0,0,0,0.50) 22vmin, #000 60vmin);
  mask-image:
    radial-gradient(circle at 50% 50%, transparent 0 12vmin, rgba(0,0,0,0.50) 22vmin, #000 60vmin);
  transition: opacity 1.4s ease;
}
.hero[data-orb-tone="thinking"] .hero__nebula {
  opacity: 1;
}
.hero[data-orb-tone="answering"] .hero__nebula {
  opacity: 0.98;
}
.hero__nebula::before,
.hero__nebula::after {
  content: "";
  position: absolute;
  inset: -6%;
  pointer-events: none;
  will-change: transform, opacity;
}
/* Multi-stop radial gradients in OKLab — many color stops + perceptual
   interpolation kill the concentric banding rings. */
.hero__nebula::before {
  background:
    radial-gradient(62% 52% at 50% 50% in oklab,
      rgba(var(--orb-bg-highlight), 0.55) 0%,
      rgba(var(--orb-bg-highlight), 0.42) 12%,
      rgba(var(--orb-bg-core), 0.32) 26%,
      rgba(var(--orb-bg-core), 0.22) 42%,
      rgba(var(--orb-bg-core), 0.12) 58%,
      rgba(var(--orb-bg-core), 0.05) 74%,
      transparent 94%),
    radial-gradient(105% 90% at 50% 50% in oklab,
      rgba(var(--orb-bg-core), 0.28) 0%,
      rgba(var(--orb-bg-core), 0.20) 24%,
      rgba(var(--orb-bg-core), 0.12) 48%,
      rgba(var(--orb-bg-core), 0.05) 72%,
      transparent 100%);
  filter: blur(96px);
  transform: translate3d(calc(var(--mx) * 2.4%), calc(var(--my) * 1.8%), 0) scale(1.12);
  animation: nebula-breathe 14s ease-in-out infinite alternate;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.hero__nebula::after {
  background:
    radial-gradient(48% 40% at 38% 44% in oklab,
      rgba(var(--orb-bg-soft), 0.32) 0%,
      rgba(var(--orb-bg-soft), 0.22) 22%,
      rgba(var(--orb-bg-soft), 0.12) 44%,
      rgba(var(--orb-bg-soft), 0.05) 68%,
      transparent 92%),
    radial-gradient(44% 38% at 64% 58% in oklab,
      rgba(var(--orb-bg-highlight), 0.28) 0%,
      rgba(var(--orb-bg-highlight), 0.20) 24%,
      rgba(var(--orb-bg-highlight), 0.11) 46%,
      rgba(var(--orb-bg-highlight), 0.04) 70%,
      transparent 92%);
  filter: blur(110px);
  opacity: 0.92;
  transform: translate3d(calc(var(--mx) * -3.6%), calc(var(--my) * -2.6%), 0) scale(1.16);
  animation: nebula-breathe-slow 22s ease-in-out infinite alternate;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
/* Fine grain dither — breaks remaining banding rings without dimming the halo. */
.hero__nebula-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
@keyframes nebula-breathe {
  0%   { opacity: 0.78; }
  100% { opacity: 1; }
}
@keyframes nebula-breathe-slow {
  0%   { opacity: 0.70; }
  100% { opacity: 0.95; }
}
@media (max-width: 520px) {
  .hero__nebula {
    inset: -14%;
    opacity: 0.55;
  }
  .hero__nebula::before {
    transform: translate3d(calc(var(--mx) * 1.4%), calc(var(--my) * 1.0%), 0) scale(1.05);
  }
  .hero__nebula::after {
    transform: translate3d(calc(var(--mx) * -2.0%), calc(var(--my) * -1.4%), 0) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__nebula::before,
  .hero__nebula::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.hero__corner {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ui-white);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 12px rgba(0, 20, 30, 0.8);
}
.hero__corner--tl { top: 90px; left: 40px; }
.hero__corner--tr { top: 90px; right: 40px; }
.hero__corner--bl { bottom: 28px; left: 40px; }
.hero__corner--br { bottom: 28px; right: 40px; }
.hero__corner-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  45% { opacity: 0.2; }
}

.hero__rule {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.hero__rule--h {
  left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero__rule--v {
  top: 90px; bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero[data-activated="true"] .hero__canvas {
  animation: hero-scene-fade-in 1.35s cubic-bezier(.16, 1, .3, 1);
}

.hero__orb-trigger {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(206px, 52vmin, 390px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 4;
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hero__orb-trigger:focus { outline: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 100% at 50% 40%, transparent 35%, rgba(7,8,10,0.5) 80%, var(--bg)),
    linear-gradient(180deg, transparent 78%, rgba(7,8,10,0.7) 92%, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero__stack {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 120px;
}

.hero__overline {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ui-white);
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(255, 42, 58, 0.4);
}
.hero__overline-time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.hero__orb-space {
  /* invisible spacer that reserves room for the orb (drawn behind by canvas) */
  flex: 0 0 auto;
  width: 1px;
  height: clamp(380px, 52vh, 620px);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}

.hero__title {
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(11px, 1.5vw, 24px) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.08em !important;
  max-width: 16ch !important;
  margin: 28px auto 28px !important;
  text-transform: uppercase;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #d8d8dc 18%,
      #6a6c72 38%,
      #2a2c32 52%,
      #1a1c20 56%,
      #5a5c62 68%,
      #c8cad0 84%,
      #f4f4f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0,0,0,0.6))
    drop-shadow(0 0 30px rgba(255, 42, 58, 0.18));
}
.hero__title em {
  font-style: normal;
  background:
    linear-gradient(180deg,
      #ff8a92 0%,
      #ff2a3a 35%,
      #6a0a14 55%,
      #ff2a3a 80%,
      #ff8a92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 42, 58, 0.5));
}
/* ============ ORB INTERACTION UI ============ */
.orb-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2vh;
  margin: 0 auto;
  z-index: 6;
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.orb-ui__state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(220, 240, 248, 0.55);
  margin-bottom: 4px;
  height: 16px;
}

.orb-ui__state-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(232, 228, 220, 0.5);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.orb-ui__state-dot--idle {
  background: rgba(255, 36, 52, 0.62);
  box-shadow: 0 0 8px rgba(255, 36, 52, 0.34);
}
.orb-ui__state-dot--waking,
.orb-ui__state-dot--generating {
  background: #ff982e;
  box-shadow: 0 0 13px rgba(255, 152, 46, 0.88);
  animation: orb-pulse 1.2s ease-in-out infinite;
}
.orb-ui__state-dot--typing {
  background: #92dcff;
  box-shadow: 0 0 14px rgba(146, 220, 255, 0.9);
  animation: orb-pulse 0.72s ease-in-out infinite;
}
.orb-ui__state-dot--speaking {
  background: rgba(178, 232, 255, 0.95);
  box-shadow: 0 0 18px rgba(128, 214, 255, 0.9), 0 0 28px rgba(134, 218, 255, 0.35);
  transform: scale(1.25);
}
.orb-ui__state-dot--climax {
  background: #bceeff;
  box-shadow: 0 0 16px #9edfff;
  transform: scale(1.4);
}
.orb-ui__state-dot--calming {
  background: rgba(255, 64, 78, 0.7);
  box-shadow: 0 0 8px rgba(255, 64, 78, 0.52);
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.4); opacity: 1; }
}

.orb-ui__state-sent {
  color: rgba(220, 240, 248, 0.7);
}
.orb-ui__state-sent--positive { color: oklch(0.88 0.18 95); }
.orb-ui__state-sent--technical { color: #9cc7e8; }
.orb-ui__state-sent--neutral { color: rgba(220, 240, 248, 0.55); }

.orb-ui__chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orb-ui__chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 16px 9px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(232, 228, 220, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.orb-ui__chip::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ff2a3a;
  box-shadow: 0 0 6px rgba(255, 42, 58, 0.7);
}
.orb-ui__chip:not(:disabled):hover {
  border-color: rgba(255, 42, 58, 0.35);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 18px rgba(255, 42, 58, 0.12);
}
.orb-ui__chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.orb-ui__chip:not(:disabled):hover { /* duplicate cleanup removed */ }
.orb-ui__chip:disabled { /* cleanup */ }

.hero__response-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.hero__response-anchor > * {
  pointer-events: none;
}

/* Frameless response — text only, centred on the orb's centre, with a
   layered shadow for legibility against bright particles in the core. */
.orb-ui__response {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68) !important;
  font-family: var(--display) !important;
  font-size: clamp(9px, 1.55vmin, 12px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.035em;
  text-align: center;
  white-space: pre-wrap;
  width: min(calc(var(--orb-visual-radius) * 1.34), calc(100vw - 56px));
  max-height: calc(var(--orb-visual-radius) * 1.34);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.90),
    0 0 20px rgba(0, 0, 0, 0.68),
    0 0 4px rgba(0, 0, 0, 0.76);
  pointer-events: none;
  opacity: 0;
  animation: orb-response-in 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
}

.orb-ui__response[data-settled="true"] {
  opacity: 0.55;
}
.orb-ui__response[data-settled="true"]:hover {
  opacity: 0.98;
  transition-duration: 0.3s;
}

.orb-ui__response-text {
  position: relative;
  z-index: 1;
  display: block;
  max-height: inherit;
  overflow: hidden;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
}

.orb-ui__cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 2px;
  animation: orb-cursor 1s steps(2) infinite;
  font-weight: 500;
}
@keyframes orb-cursor {
  50% { opacity: 0; }
}

/* ============ ORB GREETING ============ */
.orb-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 260px;
  opacity: 1;
  overflow: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 1.35s ease,
    transform 1.35s cubic-bezier(.16, 1, .3, 1),
    max-height 1.35s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, max-height;
}
.orb-greeting[data-visible="false"] {
  max-height: 0;
  opacity: 0;
  transform: none;
  pointer-events: none;
}
.orb-greeting[data-visible="false"] .orb-greeting__hail,
.orb-greeting[data-visible="false"] .orb-greeting__link {
  opacity: 0 !important;
  pointer-events: none !important;
}
.orb-greeting[data-visible="true"][data-returning="true"] {
  transition-duration: 1.8s;
}
@keyframes greeting-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes greeting-return {
  0%   { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(10px); }
  55%  { opacity: 0.72; filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.orb-greeting__hail {
  display: none;
}
.orb-greeting__hail-mark {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 6px;
}

.orb-greeting__links {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 0;
  height: 0;
  display: block;
  pointer-events: none;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.orb-greeting__link {
  position: absolute;
  left: 0;
  top: 0;
  --planet-color: rgb(var(--orb-bg-core));
  --planet-glow: rgb(var(--orb-bg-highlight));
  width: calc(var(--planet-size) + 20mm);
  height: calc(var(--planet-size) + 20mm);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  pointer-events: auto;
  transform:
    rotate(var(--orbit-start))
    translateX(var(--orbit-radius))
    rotate(var(--orbit-start-inverse))
    translate(-50%, -50%);
  animation: planet-orbit var(--orbit-duration) linear infinite;
  animation-delay: var(--orbit-delay);
  transition: filter 0.25s ease;
  will-change: transform, filter;
}
.orb-greeting[data-visible="true"][data-returning="true"] .orb-greeting__hail {
  animation: greeting-return 1.45s cubic-bezier(.16, 1, .3, 1) both;
}
.orb-greeting__link:hover,
.orb-greeting__link:focus-visible {
  filter: brightness(1.18) saturate(1.14);
  animation-play-state: paused;
}
/* Glow-only marker: no planet body, highlight, edge, or particles. */
.orb-greeting__planet {
  position: relative;
  display: block;
  width: var(--planet-size);
  height: var(--planet-size);
  min-width: 2mm;
  min-height: 2mm;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle,
      color-mix(in srgb, var(--planet-glow) 56%, transparent) 0%,
      color-mix(in srgb, var(--planet-color) 38%, transparent) 32%,
      color-mix(in srgb, var(--planet-color) 14%, transparent) 58%,
      transparent 84%);
  box-shadow: none;
  filter: blur(0.42mm) saturate(1.5);
  mix-blend-mode: screen;
  opacity: 0.64;
  transition: opacity 0.32s ease;
  transform: translateZ(0);
}
.orb-greeting__link:hover .orb-greeting__planet,
.orb-greeting__link:focus-visible .orb-greeting__planet {
  opacity: 0.92;
}
.orb-greeting__planet::before {
  content: "";
  position: absolute;
  inset: -0.9mm;
  border-radius: inherit;
  background:
    radial-gradient(circle,
      color-mix(in srgb, var(--planet-glow) 44%, transparent) 0%,
      color-mix(in srgb, var(--planet-color) 24%, transparent) 42%,
      transparent 76%);
  filter: blur(1mm);
  opacity: 0.78;
  z-index: -1;
}
.orb-greeting__link:hover {
  z-index: 4;
}
.orb-greeting__link--sound[aria-pressed="false"] .orb-greeting__planet {
  opacity: 0.42;
  filter: blur(0.48mm) saturate(0.9);
}
.orb-greeting__link--sound .orb-greeting__link-main {
  min-width: 58px;
  max-width: min(76px, calc(100vw - 72px));
}
.orb-greeting__link--sound .orb-greeting__link-label {
  font-size: 9px;
  letter-spacing: 0.10em;
}

.orb-greeting__link-main {
  position: absolute;
  left: calc(50% + max(14px, var(--planet-size) * 0.58));
  bottom: calc(50% + max(10px, var(--planet-size) * 0.42));
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 112px;
  max-width: min(190px, calc(100vw - 80px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  /* labels are dimmed when not focused (-30%), full opacity on hover */
  opacity: 0.63;
  transform: translate(0, 0) scale(1);
  filter: none;
  pointer-events: auto;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.94),
    0 2px 12px rgba(0, 0, 0, 0.82);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(.16, 1, .3, 1),
    filter 0.32s ease;
}
.orb-greeting__link-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.69);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-greeting__link-tag {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-greeting__link-arrow {
  position: absolute;
  right: 7px;
  top: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.46);
  opacity: 0;
  transition: color 0.22s, transform 0.22s;
}
.orb-greeting__link:hover .orb-greeting__link-main,
.orb-greeting__link:focus-visible .orb-greeting__link-main,
.orb-greeting__link:hover .orb-greeting__link-arrow,
.orb-greeting__link:focus-visible .orb-greeting__link-arrow {
  opacity: 1;
}
.orb-greeting__link:hover .orb-greeting__link-main,
.orb-greeting__link:focus-visible .orb-greeting__link-main {
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}
.orb-greeting__link:hover .orb-greeting__link-arrow {
  color: rgba(255, 255, 255, 0.69);
  transform: translate(2px, -2px);
}
@keyframes planet-orbit {
  from {
    transform:
      rotate(var(--orbit-start))
      translateX(var(--orbit-radius))
      rotate(var(--orbit-start-inverse))
      translate(-50%, -50%);
  }
  to {
    transform:
      rotate(var(--orbit-end))
      translateX(var(--orbit-radius))
      rotate(var(--orbit-end-inverse))
      translate(-50%, -50%);
  }
}
@keyframes planet-surface {
  from { transform: rotate(0deg) scale(1); opacity: 0.48; }
  to { transform: rotate(36deg) scale(1.08); opacity: 0.86; }
}

@media (max-width: 760px) {
  .orb-greeting__links {
    width: 0;
    height: 0;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      radial-gradient(130% 90% at 72% -8%, rgba(var(--orb-bg-highlight), 0.40) 0%, rgba(var(--orb-bg-core), 0.22) 24%, transparent 68%),
      radial-gradient(110% 80% at 62% 26%, rgba(var(--orb-bg-soft), 0.22), rgba(var(--orb-bg-core), 0.14) 40%, transparent 80%),
      linear-gradient(128deg, transparent 0 18%, rgba(var(--orb-bg-highlight), 0.10) 30%, rgba(var(--orb-bg-core), 0.05) 44%, transparent 66%),
      radial-gradient(200% 170% at 50% 50%, rgba(var(--orb-bg-core), 0.32), rgba(var(--orb-bg-mid), 0.16) 38%, rgba(var(--orb-bg-mid), 0.06) 62%, transparent 88%),
      rgb(7, 8, 10);
  }
  .hero::before {
    opacity: 0.95;
    filter: saturate(1.28) brightness(1.18);
  }
  .hero__nebula {
    inset: -18%;
    opacity: 0.98;
    filter: brightness(1.14) contrast(1.06);
    -webkit-mask-image:
      radial-gradient(circle at 50% 50%, transparent 0 17vmin, rgba(0,0,0,0.60) 28vmin, #000 58vmin);
    mask-image:
      radial-gradient(circle at 50% 50%, transparent 0 17vmin, rgba(0,0,0,0.60) 28vmin, #000 58vmin);
  }
  .hero__nebula::before {
    filter: blur(28px) brightness(1.14) contrast(1.06);
  }
  .hero__nebula::after {
    filter: blur(10px) brightness(1.15) contrast(1.06);
  }
  .nav {
    padding: 16px;
  }
  .sound-toggle {
    white-space: nowrap;
    font-size: 9px;
  }
  .orb-ui {
    bottom: 1.25vh;
    padding-inline: 16px;
    max-width: 100vw;
    overflow: visible;
  }
  .orb-ui__state {
    position: relative;
    z-index: 10;
    font-size: 8px;
  }
  .orb-greeting {
    width: 100%;
    max-height: none;
  }
  .orb-greeting__hail {
    width: 100%;
    max-width: 100%;
    padding-inline: 8px;
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .orb-greeting__links {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 30;
    width: 0;
    height: 0;
    overflow: visible;
  }
  .orb-greeting__link {
    width: calc(var(--planet-size) + 20mm);
    height: calc(var(--planet-size) + 20mm);
    left: 0;
    top: 0;
    padding: 0;
    transform:
      rotate(var(--orbit-start))
      translateX(var(--orbit-radius))
      rotate(var(--orbit-start-inverse))
      translate(-50%, -50%);
    animation: planet-orbit var(--orbit-duration) linear infinite;
    animation-delay: var(--orbit-delay);
    z-index: 20;
    will-change: transform, filter;
  }
  .orb-greeting__link-label {
    font-size: 9px;
  }
  .orb-greeting__link-tag {
    font-size: 7px;
  }
  .orb-greeting__link-main {
    top: auto;
    bottom: calc(50% + 8px);
    min-width: 112px;
    max-width: min(150px, 38vw);
    padding: 0;
    opacity: 1;
    filter: none;
    transform: none;
    background: transparent;
    border-color: transparent;
  }
  .orb-greeting__link:hover .orb-greeting__link-main,
  .orb-greeting__link:focus-visible .orb-greeting__link-main {
    transform: none;
  }
  .orb-greeting__link:nth-child(1) .orb-greeting__link-main,
  .orb-greeting__link:nth-child(2) .orb-greeting__link-main,
  .orb-greeting__link:nth-child(6) .orb-greeting__link-main {
    left: auto;
    right: calc(50% + max(12px, var(--planet-size) * 0.48));
    text-align: right;
  }
  .orb-greeting__link:nth-child(3) .orb-greeting__link-main,
  .orb-greeting__link:nth-child(4) .orb-greeting__link-main,
  .orb-greeting__link:nth-child(5) .orb-greeting__link-main,
  .orb-greeting__link:nth-child(7) .orb-greeting__link-main {
    left: calc(50% + max(12px, var(--planet-size) * 0.48));
    right: auto;
    text-align: left;
  }
}

@keyframes orb-response-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.hero__title, .hero__meta, .hero__scroll {
  text-shadow: 0 2px 30px rgba(0, 20, 30, 0.6);
}

.hero__meta {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 14px;
}

.hero__meta strong {
  color: var(--text);
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: drop 2s infinite;
}
@keyframes drop {
  0% { transform: translateY(-8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* SECTION COMMON */
.section {
  position: relative;
  padding: 140px 40px;
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.section__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
}
.section__index span:last-child { color: var(--text); }

.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  max-width: 14ch;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.section__title em {
  font-style: normal;
  background:
    linear-gradient(180deg, #ff8a92, #ff2a3a 50%, #8a0a14 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 42, 58, 0.4));
}

.section__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.section__body-left {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__body-right {
  max-width: 920px;
}

.section__body-right p {
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 300;
}

.section__body-right p strong {
  color: var(--accent);
  font-weight: 400;
}

/* manifesto graphic */
.manifesto-graphic {
  margin-top: 100px;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* EDGE — three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 100px;
  background: var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.pillar {
  background: var(--bg);
  padding: 48px 32px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.4s;
}
.pillar:hover {
  background: var(--bg-2);
}
.pillar:hover .pillar__glyph circle,
.pillar:hover .pillar__glyph line,
.pillar:hover .pillar__glyph polygon,
.pillar:hover .pillar__glyph path {
  stroke: var(--accent);
}

.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 32px;
}

.pillar__glyph {
  width: 90px;
  height: 90px;
  margin-bottom: 28px;
}
.pillar__glyph * {
  transition: stroke 0.4s;
}

.pillar__canvas {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: block;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(20,22,26,1), rgba(11,12,14,1));
}

.scan-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.team-grid,
.section--team {
  position: relative;
}
/* sub-canvases: re-tint chartreuse paths into the chrome/red palette */
.pillar__canvas, .scan-grid {
  filter: hue-rotate(180deg) saturate(0.85);
}

.pillar__name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pillar__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: auto;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 100px;
  background: var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.member {
  background: var(--bg);
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.member:hover { background: var(--bg-2); }

.member__portrait {
  aspect-ratio: 1 / 1;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(232,228,220,0.04) 0 8px, transparent 8px 16px),
    var(--bg-2);
  border: 1px solid var(--line);
}

.member__portrait-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 0.3s, transform 0.5s;
}
.member:hover .member__portrait-mono {
  color: var(--accent);
  transform: scale(1.05);
}

.member__name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.member__role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 6px;
}

.member__plus {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 18px; height: 18px;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}
.member:hover .member__plus {
  opacity: 1;
  transform: rotate(90deg);
  color: var(--accent);
}

/* ============ LINK ROW (darkexpress index) ============ */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.link-row {
  display: grid;
  grid-template-columns: 80px 1fr auto 160px 32px;
  align-items: center;
  gap: 28px;
  padding: 26px 32px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.link-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.link-row:hover {
  background: var(--bg-2);
}
.link-row:hover::before {
  transform: scaleY(1);
}

.link-row__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.link-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.link-row__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #d8d8dc 30%,
      #8a8c92 55%,
      #4a4c52 65%,
      #c8cad0 85%,
      #f4f4f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5));
}
.link-row:hover .link-row__title {
  background:
    linear-gradient(180deg, #ff8a92, #ff2a3a 50%, #8a0a14);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 42, 58, 0.5));
}

.link-row__sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.link-row__platform {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.link-row__graphic {
  width: 160px;
  height: 80px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 50%, rgba(20,22,26,1), rgba(11,12,14,1));
}
.link-row__graphic > canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.link-row__arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  text-align: right;
  transition: color 0.3s, transform 0.3s;
}
.link-row:hover .link-row__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .link-row {
    grid-template-columns: 50px 1fr 28px;
    grid-template-areas:
      "num body arrow"
      ".   sub  ."
      ".   plat .";
    gap: 8px 16px;
    padding: 22px 18px;
  }
  .link-row__num { grid-area: num; }
  .link-row__body { grid-area: body; }
  .link-row__platform { grid-area: plat; }
  .link-row__arrow { grid-area: arrow; }
  .link-row__graphic { display: none; }
  .link-row__title { font-size: 24px; }
}

/* PORTFOLIO MARQUEE */
.portfolio {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg);
}
.portfolio__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-left: 40px;
  margin-bottom: 20px;
}
.portfolio__track {
  display: flex;
  gap: 80px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.portfolio__item {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 80px;
}
.portfolio__item::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
  padding: 140px 40px 40px;
  border-top: 1px solid var(--line);
  position: relative;
}

.footer__mega {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  max-width: 18ch;
  margin-bottom: 80px;
  font-weight: 400;
  text-transform: uppercase;
}
.footer__mega {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.footer__mega em {
  font-style: normal;
  background:
    linear-gradient(180deg, #ff8a92, #ff2a3a 50%, #8a0a14);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 42, 58, 0.4));
}

.footer__judgment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(920px, 100%);
}
.footer__judgment-kicker,
.footer__judgment-date {
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.2;
  letter-spacing: 0.22em;
  color: rgba(232, 228, 220, 0.45);
}
.footer__judgment-main {
  color: #f4f4f6;
  text-shadow:
    0 0 18px rgba(255, 42, 58, 0.45),
    0 0 42px rgba(255, 42, 58, 0.18);
}
.footer__judgment em {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.04em;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 18px 28px 18px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.footer__cta::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff2a3a;
  box-shadow: 0 0 10px rgba(255, 42, 58, 0.7);
  transform: translateY(-50%);
  animation: dx-blink 2.4s ease-in-out infinite;
}
@keyframes dx-blink {
  0%, 80%, 100% { opacity: 1; }
  88% { opacity: 0.3; }
}
.footer__cta:hover {
  border-color: rgba(255, 42, 58, 0.45);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 28px rgba(255, 42, 58, 0.2);
}
.footer__cta-arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.footer__cta:hover .footer__cta-arrow {
  transform: translateX(4px);
}

.footer__bottom {
  margin-top: 140px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 20px;
}
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a:hover { color: var(--accent); }

/* subtle grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: overlay;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: grain-shift 4s steps(8) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-3px, 4px); }
  25%  { transform: translate(2px, -2px); }
  37%  { transform: translate(-5px, -1px); }
  50%  { transform: translate(3px, 5px); }
  62%  { transform: translate(-1px, -3px); }
  75%  { transform: translate(4px, 2px); }
  87%  { transform: translate(-2px, -4px); }
  100% { transform: translate(0, 0); }
}

/* utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.fade-in.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 900px) {
  .section { padding: 80px 24px; }
  .frame, .nav { padding-inline: 24px; }
  .hero { padding: 0 18px 40px; }
  .section__head, .section__body { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__meta { text-align: left; }
  .hero__stack { padding-top: 96px; }
  .hero__orb-space { height: clamp(300px, 45vh, 460px); }
  .hero__corner { font-size: 9px; }
  .hero__corner--tl, .hero__corner--tr { top: 80px; }
  .hero__corner--tl, .hero__corner--bl { left: 18px; }
  .hero__corner--tr, .hero__corner--br { right: 18px; }
}

/* Turing reaction-diffusion + star field — now the full hero background.
   Opaque: Turing pattern lives inside the orb circle, fades to black with
   procedurally generated twinkling stars beyond.                          */
.hero__turing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   IDLE / ACTIVATION MODE
   The site loads in a desaturated "pale white" state. Tapping
   the orb flashes once and switches into the live red scene.
   ========================================================= */

/* Hide the old nav sound toggle if still rendered anywhere. */
.sound-toggle { display: none !important; }

/* Dormant state: the orb is compressed to a tiny pinprick of light.
   We dampen the nebula and tighten the background glow so the dot reads
   crisply at the centre of the void. */
.hero[data-activated="false"] .hero__nebula {
  opacity: 0.18;
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1);
}
.hero[data-activated="true"] .hero__nebula {
  transition: opacity 1.2s cubic-bezier(.2,.7,.2,1);
  animation: hero-nebula-fade-in 1.55s cubic-bezier(.16, 1, .3, 1);
}
.hero[data-activated="true"] .orb-ui {
  animation: hero-ui-fade-in 1.25s cubic-bezier(.16, 1, .3, 1);
}
.hero[data-activated="false"] {
  background:
    radial-gradient(28% 22% at 50% 50%, rgba(var(--orb-bg-core), 0.42) 0%, rgba(var(--orb-bg-core), 0.10) 38%, transparent 78%),
    rgb(7, 8, 10);
}

/* Activation hint floating just below the orb. */
.hero__activate-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(120px, 30vmin, 230px));
  transform: translateX(-50%);
  z-index: 7;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(240, 240, 245, 0.78);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
  pointer-events: none;
  animation: activate-hint-pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.hero__activate-hint-mark {
  color: rgba(220, 224, 235, 0.55);
  margin-right: 8px;
}
@keyframes activate-hint-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* The orb itself is pointing the user to tap. Gentle scale breathing on
   the trigger button so the dormant state feels alive. */
.hero[data-activated="false"] .hero__orb-trigger {
  animation: orb-breathe 3s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.025); }
}

/* Full-screen first-activation fade. It masks the instant state switch
   after the first tap, then reveals the live scene smoothly. */
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  background: rgb(7, 8, 10);
  mix-blend-mode: normal;
  will-change: opacity;
}
.hero[data-flash="true"] .hero__flash {
  animation: hero-first-activate-fade 1.45s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes hero-first-activate-fade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hero-scene-fade-in {
  0% {
    opacity: 0.28;
    filter: blur(6px) brightness(0.42) saturate(0.72);
  }
  55% {
    opacity: 0.82;
    filter: blur(1.5px) brightness(0.86) saturate(0.92);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@keyframes hero-nebula-fade-in {
  0% {
    opacity: 0.08;
    filter: blur(8px) brightness(0.35) saturate(0.65);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@keyframes hero-ui-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   PLANETS: off-screen until activated, then fade/fly in smoothly,
   gain a soft comet-tail and twinkle like real stars.
   ========================================================= */

/* In dormant state, planets are parked far off-screen so they
   are never visible (and not even rendered if `showGreeting` is
   false because the greeting block hides them). */
.hero[data-activated="false"] .orb-greeting__link {
  opacity: 0 !important;
  pointer-events: none !important;
  transform:
    rotate(var(--orbit-start))
    translateX(calc(var(--orbit-radius) + 140vmax))
    rotate(var(--orbit-start-inverse))
    translate(-50%, -50%) !important;
  animation: none !important;
}

/* When the hero flips into active mode, planets fly in over ~1.1s
   from far off-screen onto their final orbital radius, then start
   the normal orbital rotation. */
.hero[data-activated="true"] .orb-greeting__link {
  animation:
    planet-enter 1.08s cubic-bezier(.16, 1, .3, 1) 0.14s both,
    planet-orbit var(--orbit-duration) linear 1.18s infinite,
    planet-twinkle var(--twinkle-duration, 4.2s) ease-in-out var(--twinkle-delay, 0s) infinite;
  animation-delay: 0.14s, 1.18s, var(--twinkle-delay, 0s);
}

/* Stagger entry so planets arrive from different directions/angles. */
.hero[data-activated="true"] .orb-greeting__link:nth-child(1) { --twinkle-duration: 4.6s; --twinkle-delay: 0.1s; animation-delay: 0.12s, 1.18s, 0.1s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(2) { --twinkle-duration: 3.4s; --twinkle-delay: 0.8s; animation-delay: 0.20s, 1.18s, 0.8s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(3) { --twinkle-duration: 5.2s; --twinkle-delay: 0.3s; animation-delay: 0.28s, 1.18s, 0.3s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(4) { --twinkle-duration: 3.8s; --twinkle-delay: 1.4s; animation-delay: 0.36s, 1.18s, 1.4s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(5) { --twinkle-duration: 4.9s; --twinkle-delay: 0.6s; animation-delay: 0.44s, 1.18s, 0.6s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(6) { --twinkle-duration: 3.1s; --twinkle-delay: 1.9s; animation-delay: 0.52s, 1.18s, 1.9s; }
.hero[data-activated="true"] .orb-greeting__link:nth-child(7) { --twinkle-duration: 4.1s; --twinkle-delay: 1.1s; animation-delay: 0.60s, 1.18s, 1.1s; }

@keyframes planet-enter {
  from {
    transform:
      rotate(var(--orbit-start))
      translateX(calc(var(--orbit-radius) + 140vmax))
      rotate(var(--orbit-start-inverse))
      translate(-50%, -50%);
    opacity: 0;
    filter: blur(2px) brightness(1.6);
  }
  60% {
    opacity: 1;
    filter: blur(0.6px) brightness(1.35);
  }
  to {
    transform:
      rotate(var(--orbit-start))
      translateX(var(--orbit-radius))
      rotate(var(--orbit-start-inverse))
      translate(-50%, -50%);
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

/* Tiny brightness/scale oscillation — real-star-style scintillation
   driven by phase variance via the per-planet --twinkle-* vars above.
   This piggybacks on the rotation transform so it doesn't disturb
   orbital motion: we only animate opacity + a sub-pixel scale via filter. */
@keyframes planet-twinkle {
  0%, 100% { filter: brightness(1)    saturate(1)    blur(0); }
  20%      { filter: brightness(0.72) saturate(1.05) blur(0.18px); }
  37%      { filter: brightness(1.18) saturate(1.12) blur(0); }
  58%      { filter: brightness(0.84) saturate(0.95) blur(0.22px); }
  76%      { filter: brightness(1.08) saturate(1.08) blur(0); }
}

/* Comet-style tail trailing the planet toward the central orb.
   The link rotates with the orbit so "to the right" in its local
   frame is along the radial axis — we use ::before on the planet
   span to draw a long, soft, comet-like trail. */
.orb-greeting__planet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% - var(--planet-size) * 0.45);
  width: clamp(8mm, 14mm, 18mm);
  height: calc(var(--planet-size) * 0.78);
  transform: translateY(-50%);
  pointer-events: none;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--planet-glow) 78%, transparent) 0%,
    color-mix(in srgb, var(--planet-color) 38%, transparent) 28%,
    color-mix(in srgb, var(--planet-color) 14%, transparent) 58%,
    transparent 100%
  );
  filter: blur(0.9mm) saturate(1.4);
  opacity: 0.55;
  mix-blend-mode: screen;
  border-radius: 50%;
  z-index: -2;
  animation: planet-tail-flicker 1.7s ease-in-out infinite;
  transition: opacity 0.32s ease;
}
.orb-greeting__link:hover .orb-greeting__planet::after,
.orb-greeting__link:focus-visible .orb-greeting__planet::after {
  opacity: 0.92;
}
@keyframes planet-tail-flicker {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scaleX(1); }
  50%      { opacity: 0.68; transform: translateY(-50%) scaleX(1.12); }
}

/* Mobile: pull the activate hint a touch higher and tighten its size. */
@media (max-width: 520px) {
  .hero__activate-hint {
    top: calc(50% + clamp(96px, 26vmin, 180px));
    font-size: 9.5px;
    letter-spacing: 0.28em;
  }
  .orb-greeting__planet::after {
    width: clamp(6mm, 11mm, 14mm);
    height: calc(var(--planet-size) * 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__activate-hint { animation: none; opacity: 0.85; }
  .hero[data-activated="false"] .hero__orb-trigger { animation: none; }
  .hero[data-activated="true"] .orb-greeting__link {
    animation:
      planet-enter 0.5s linear 0.04s both,
      planet-orbit var(--orbit-duration) linear 0.55s infinite;
  }
  .orb-greeting__planet::after { animation: none; }
}
