/* ==========================================================================
   BRAIN GROUP - chrome on black, cinematic minimal
   Theme: dark, locked (brand). Shapes: pills for interactive, 18px panels.
   Accent: monochrome chrome. No secondary hues anywhere.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-raise: #0a0a0d;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(12, 12, 15, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f2f2f4;
  --muted: rgba(242, 242, 244, 0.66);
  --dim: rgba(242, 242, 244, 0.42);
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9de 38%, #74747c 74%, #b9b9c0 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --side: clamp(20px, 5vw, 96px);
  --radius-panel: 18px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(255, 255, 255, 0.85);
  color: #050506;
}

/* ---------- chrome headline treatment ---------- */

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   INTRO - the logo "film": strokes draw, beam sweeps, wordmark resolves
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.intro__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

.intro__logo {
  width: clamp(170px, 26vw, 260px);
  height: auto;
  opacity: 0;
  transform: scale(0.72) translateY(14px);
  filter: blur(24px) brightness(2.4);
  animation: intro-materialize 1.5s var(--ease) forwards;
  animation-delay: 0.2s;
}

@keyframes intro-materialize {
  60% {
    filter: blur(3px) brightness(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

.intro__wordmark {
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  animation: intro-word 0.9s var(--ease) forwards;
  animation-delay: 1.45s;
}

.intro__brand {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro__group {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.9em;
  margin-right: -0.9em;
  color: var(--dim);
}

@keyframes intro-word {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro__beam {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 1px;
  height: 124%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0;
  animation: intro-beam 1.2s var(--ease);
  animation-delay: 1.2s;
  pointer-events: none;
}

@keyframes intro-beam {
  0% {
    opacity: 0;
    transform: translateX(-90px);
  }
  35% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(90px);
  }
}

body.is-ready .intro {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .intro__stage {
  transform: scale(1.12);
  opacity: 0;
}

body.skip-intro .intro {
  display: none;
}

/* ==========================================================================
   BACKGROUND SYSTEM
   ========================================================================== */

.background-system {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(60% 45% at 50% 108%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  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'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-lens {
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 27%, transparent 68%);
  transform: translate3d(calc(var(--cursor-x, -600px) - 50%), calc(var(--cursor-y, -600px) - 50%), 0);
  opacity: var(--cursor-visible, 0);
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--side);
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  width: 44px;
  height: auto;
  filter: brightness(1.35) contrast(1.05);
}

.brand-logo__type {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-logo__type span {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}

.brand-logo__type small {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.74em;
  margin-right: -0.74em;
  color: var(--dim);
}

.primary-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
}

.primary-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s ease;
  padding: 6px 0;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.partner-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--panel);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
  white-space: nowrap;
}

.partner-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.partner-button:active {
  transform: scale(0.98);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}

.menu-button span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-button span:first-child {
  top: 18px;
}

.menu-button span:last-child {
  top: 25px;
}

.menu-button.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-button.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
  text-align: center;
}

.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 500;
  padding: 10px 20px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--text);
}

.mobile-menu__cta {
  margin-top: 18px;
  font-size: 1.05rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ==========================================================================
   REVEAL SYSTEM
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--side) 28px;
  gap: 20px;
  --hero-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at calc(50% + var(--pointer-x) * 8%) calc(45% + var(--pointer-y) * 6%), black, transparent 68%);
}

.hero::after {
  content: "BRAIN GROUP  /  INTELLIGENCE INFRASTRUCTURE  /  ATHENS";
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .32em;
  color: rgba(255,255,255,.2);
  pointer-events: none;
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(470px, 1.35fr) minmax(250px, 0.64fr);
  align-items: center;
  gap: clamp(8px, 1.4vw, 24px);
}

.hero__grid > * {
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.15vw, 4.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-line {
  display: block;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate3d(var(--line-x, 0px), var(--line-y, 0px), 0);
  transition: letter-spacing 0.7s var(--ease);
}

.hero-copy:hover .hero-line {
  letter-spacing: -0.038em;
}

.hero-copy__text {
  margin-top: 26px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.cta:active {
  transform: scale(0.98);
}

.cta--primary {
  background: linear-gradient(180deg, #ffffff, #c9c9cf);
  color: #0a0a0c;
  box-shadow: 0 10px 34px rgba(255, 255, 255, 0.08);
}

.cta--primary:hover {
  box-shadow: 0 14px 44px rgba(255, 255, 255, 0.16);
}

.cta--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
}

.cta--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- brain stage ---------- */

.brain-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: visible;
  min-height: min(72vh, 690px);
  z-index: 2;
}

.brain-stage::before {
  content: "BRAIN\A SYSTEM";
  white-space: pre;
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: -2;
  transform: translate(-50%, -50%) scaleY(1.12);
  font-size: clamp(6rem, 11vw, 11rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.08em;
  text-align: center;
  color: rgba(255,255,255,.027);
  -webkit-text-stroke: 1px rgba(255,255,255,.045);
  pointer-events: none;
}

.brain-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5%;
  z-index: -1;
  width: 112%;
  height: 32%;
  transform: translateX(-50%) perspective(430px) rotateX(68deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, #000 0%, transparent 68%);
  opacity: .38;
  pointer-events: none;
}

.brain-stage__tilt {
  position: relative;
  display: grid;
  place-items: center;
  will-change: transform;
  transform-style: preserve-3d;
  width: min(100%, 650px);
  transform: perspective(1200px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)) translate3d(0, calc(var(--hero-progress) * 36px), 0) scale(calc(1 - var(--hero-progress) * 0.05));
}

.brain-stage__img {
  position: relative;
  z-index: 4;
  width: min(100%, 610px);
  max-height: min(78vh, 720px);
  object-fit: contain;
  animation: brain-float 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}

.brain-stage__echo {
  position: absolute;
  z-index: 1;
  width: min(100%, 610px);
  max-height: min(78vh, 720px);
  object-fit: contain;
  opacity: 0.27;
  filter: blur(21px) brightness(1.8);
  transform: translate3d(calc(var(--pointer-x) * -12px), calc(var(--pointer-y) * -9px), -80px) scale(1.065);
  mix-blend-mode: screen;
  pointer-events: none;
}

.brain-portal {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: 138%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(-100px);
  pointer-events: none;
}

.brain-portal__ring {
  position: absolute;
  inset: var(--ring-inset);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brain-portal__ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 20deg, transparent 0 14%, rgba(255,255,255,.55) 16%, transparent 18% 47%, rgba(255,255,255,.2) 49%, transparent 52% 82%, rgba(255,255,255,.42) 84%, transparent 87%);
  mask: radial-gradient(transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.brain-portal__ring--one { --ring-inset: 4%; border-width: 2px; animation: portal-spin 28s linear infinite; }
.brain-portal__ring--two { --ring-inset: 14%; animation: portal-spin 19s linear infinite reverse; }
.brain-portal__ring--three { --ring-inset: 25%; border-style: dashed; animation: portal-spin 44s linear infinite; }

.brain-portal__crosshair {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.055) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(255,255,255,.055) 50%, transparent 50.1%);
}

@keyframes portal-spin { to { transform: rotate(360deg); } }

.brain-stage__scan {
  position: absolute;
  z-index: 6;
  left: 10%;
  right: 10%;
  top: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  opacity: 0;
  animation: brain-scan 6.8s var(--ease) infinite;
  pointer-events: none;
}

@keyframes brain-scan {
  0%, 12% { opacity: 0; transform: translateY(40px); }
  18% { opacity: .7; }
  58% { opacity: .18; }
  66%, 100% { opacity: 0; transform: translateY(520px); }
}

.brain-telemetry {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .17em;
  color: rgba(255,255,255,.38);
}

.brain-telemetry__item { position: absolute; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.brain-telemetry__item i { width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: telemetry-blink 2s steps(2) infinite; }
.brain-telemetry__item--a { top: 17%; left: -3%; }
.brain-telemetry__item--b { top: 32%; right: -9%; }
.brain-telemetry__item--c { bottom: 15%; left: 0; }
@keyframes telemetry-blink { 50% { opacity: .2; } }

.hero-rail {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 9px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-rail__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .28em;
  color: rgba(255,255,255,.32);
  animation: data-rail 28s linear infinite;
}

.hero-rail__track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 9px rgba(255,255,255,.6);
}

@keyframes data-rail { to { transform: translateX(-50%); } }

@keyframes brain-float {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(10px);
  }
}

.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.brain-ring--outer {
  width: 118%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: ring-spin 90s linear infinite;
}

.brain-ring--inner {
  width: 96%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.05);
  animation: ring-spin 60s linear infinite reverse;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.brain-stage__glow {
  position: absolute;
  bottom: 4%;
  width: 62%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(6px);
  animation: glow-pulse 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow-pulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

/* ---------- brand panel ---------- */

.brand-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: perspective(900px) rotateY(-5deg) translateZ(20px);
  transform-origin: 100% 50%;
  box-shadow: -24px 28px 70px rgba(0,0,0,.34);
  transition: transform .7s var(--ease), border-color .4s ease;
}

.brand-panel:hover {
  transform: perspective(900px) rotateY(0deg) translateZ(26px);
  border-color: rgba(255,255,255,.16);
}

.brand-panel__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
}

.brand-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.brand-card img {
  width: 32px;
  height: auto;
  flex: none;
  filter: brightness(1.35);
}

.brand-card span {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.brand-card strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-card small {
  font-size: 0.76rem;
  color: var(--dim);
  line-height: 1.4;
}

.brand-card i,
.world-card__link i {
  font-style: normal;
  color: var(--dim);
  transition: transform 0.35s var(--ease), color 0.35s ease;
}

.brand-card:hover i {
  color: var(--text);
  transform: translate(2px, -2px);
}

.view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--text);
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: end;
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}

.stats dt {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats dd {
  font-size: 0.82rem;
  color: var(--dim);
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.neural,
.brands,
.manifesto,
.finale {
  padding: clamp(90px, 12vh, 150px) var(--side);
}

.neural__heading,
.brands__heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vh, 70px);
}

.neural h2,
.brands h2,
.manifesto h2,
.finale h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.neural__heading p {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 300;
  max-width: 52ch;
}

/* ==========================================================================
   NEURAL MAP
   ========================================================================== */

.neural__map {
  display: grid;
  gap: 28px;
  justify-items: center;
  perspective: 1200px;
}

.neural-map {
  position: relative;
  width: min(100%, 980px);
  aspect-ratio: 10 / 6.4;
  isolation: isolate;
  transform-style: preserve-3d;
  --map-x: 0px;
  --map-y: 0px;
}

.neural-map::before,
.neural-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.neural-map::before {
  z-index: -2;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 32%, transparent 68%);
  filter: blur(10px);
  opacity: 0.9;
}

.neural-map::after {
  z-index: -1;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.025), 0 0 80px rgba(255, 255, 255, 0.025);
}

.neural-map__aura {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(32vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  animation: ring-spin 80s linear infinite;
  pointer-events: none;
}

.neural-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.n-link {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.15;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.n-link--ghost {
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 8;
}

.n-link.is-active {
  stroke: rgba(255, 255, 255, 0.72);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.n-pulse {
  fill: #ffffff;
  opacity: 0.92;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.n-origin {
  fill: rgba(255, 255, 255, 0.45);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.neural-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(132px, 17vw, 178px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.085) 0%, rgba(8, 8, 10, 0.98) 48%, #050506 76%);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.055),
    0 0 0 12px rgba(255, 255, 255, 0.018),
    0 0 34px rgba(255, 255, 255, 0.105),
    0 0 76px rgba(255, 255, 255, 0.065);
  overflow: hidden;
  z-index: 3;
  transform: translate(-50%, -50%) translateZ(38px);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.neural-core::before,
.neural-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.neural-core::before {
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.neural-core::after {
  display: none;
}

.neural-core img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 78%;
  height: 78%;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
  margin: auto;
  transform: none;
  animation: core-breathe 5s ease-in-out infinite alternate;
}

@keyframes core-breathe {
  from {
    filter: brightness(1.03) contrast(1.04);
  }
  to {
    filter: brightness(1.09) contrast(1.05);
  }
}

.neural-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease, translate 0.5s var(--ease);
  z-index: 4;
}

.neural-node:hover,
.neural-node.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  translate: 0 -3px;
}

.neural-node:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.neural-detail {
  text-align: center;
  max-width: 480px;
  min-height: 86px;
}

.neural-detail h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.neural-detail p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

.capability-index {
  width: min(100%, 1280px);
  margin: clamp(64px, 9vh, 110px) auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.capability-card {
  position: relative;
  grid-column: span 4;
  min-height: 220px;
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 90% 8%, rgba(255,255,255,.055), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 62%),
    var(--panel);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s ease, background .4s ease;
}

.capability-card:nth-child(n + 4) {
  grid-column: span 3;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.045), transparent 66%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.25);
  background-color: rgba(255,255,255,.025);
}

.capability-card:hover::before {
  transform: translateX(110%);
}

.capability-card > span {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--dim);
}

.capability-card h3 {
  max-width: 19ch;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.capability-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ==========================================================================
   BRANDS
   ========================================================================== */

.brands__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--panel-strong);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--ease), box-shadow 0.4s ease;
}

.world-card--live:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.world-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.world-card__top img {
  height: auto;
  filter: brightness(1.25);
}

.world-card__status {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.world-card__status--live {
  color: var(--text);
  border-color: var(--line);
}

.world-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.world-card__tag {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.85;
}

.world-card > p:not(.world-card__tag) {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.94rem;
  max-width: 46ch;
}

.world-card__link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.world-card--live:hover .world-card__link {
  color: var(--text);
}

.world-card--live:hover .world-card__link i {
  color: var(--text);
  transform: translate(2px, -2px);
}

.world-card--soon {
  background: var(--panel);
  gap: 8px;
}

.world-card--soon h3 {
  font-size: 1.2rem;
  color: var(--muted);
}

.world-card--soon > p {
  font-size: 0.88rem;
}

.world-card--system {
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,255,255,.018) 30px),
    var(--panel-strong);
}

.world-card--system:hover {
  border-color: rgba(255,255,255,.28);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.world-card--social {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 58%),
    var(--panel-strong);
}

.world-card--social:hover {
  border-color: rgba(255,255,255,.28);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */

.partners {
  padding: clamp(90px, 12vh, 150px) var(--side);
  border-top: 1px solid var(--line-soft);
}

.partners__heading {
  max-width: 760px;
  margin-bottom: clamp(38px, 6vh, 66px);
}

.partners__heading .eyebrow {
  margin-bottom: 18px;
}

.partners__heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line-soft);
}

.partner-tile {
  position: relative;
  min-height: 210px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 58%);
  transition: background .45s ease, transform .5s var(--ease);
}

.partner-tile + .partner-tile {
  border-left: 1px solid var(--line-soft);
}

.partner-tile:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.065), transparent 62%);
  transform: translateY(-4px);
}

.partner-tile > span {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--dim);
}

.partner-tile h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: .02em;
}

.partner-tile small {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */

.manifesto {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, 0.025), transparent 60%);
}

.manifesto__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto p {
  margin: 28px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-weight: 300;
}

/* ==========================================================================
   FINALE
   ========================================================================== */

.finale__inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding: clamp(20px, 5vh, 60px) 0;
}

.finale__mark {
  width: 84px;
  height: auto;
  animation: core-breathe 5s ease-in-out infinite alternate;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(50px, 8vh, 80px) var(--side) 30px;
  background: rgba(3, 3, 4, 0.6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 44px;
}

.site-footer__brand {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
}

.site-footer__brand > p {
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 300;
}

.site-footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer__col > p {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.site-footer__col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s ease;
  width: fit-content;
}

.site-footer__col a:hover {
  color: var(--text);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--dim);
}

.cb-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.cb-credit a:hover {
  color: var(--text);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .capability-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card,
  .capability-card:nth-child(n + 4) {
    grid-column: auto;
  }

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

  .world-card--system {
    grid-column: auto;
  }
  .hero {
    min-height: 0;
    padding-bottom: 40px;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "copy brain"
      "panel panel";
    align-items: center;
    row-gap: 40px;
  }

  .hero-copy {
    grid-area: copy;
  }

  .brain-stage {
    grid-area: brain;
  }

  .brand-panel {
    grid-area: panel;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    transform: none;
  }

  .brand-panel__label,
  .view-all {
    grid-column: 1 / -1;
  }

  .stats {
    justify-content: start;
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .partner-button {
    display: none;
  }
}

@media (max-width: 768px) {
  .capability-index {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capability-card {
    min-height: 190px;
  }

  .hero::after {
    display: none;
  }
  .hero {
    padding-top: calc(var(--header-h) + 12px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brain"
      "copy"
      "panel";
    row-gap: 8px;
  }

  .brain-stage__img {
    width: min(72vw, 340px);
  }

  .brain-stage {
    min-height: min(73vh, 580px);
    overflow: clip;
  }

  .brain-stage::before {
    font-size: 22vw;
    opacity: .65;
  }

  .brain-stage::after {
    width: 130%;
    bottom: 8%;
  }

  .brain-stage__tilt {
    width: min(92vw, 390px);
  }

  .brain-stage__echo {
    width: min(72vw, 340px);
  }

  .brain-telemetry {
    display: none;
  }

  .hero-rail {
    margin-top: 22px;
  }

  .hero-copy {
    text-align: center;
    min-width: 0;
    width: 100%;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    overflow-wrap: anywhere;
  }

  .hero-copy__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .cta {
    width: min(100%, 270px);
    justify-content: center;
  }

  .brand-panel {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
  }

  .neural-map {
    aspect-ratio: 10 / 11;
  }

  .neural-map__aura {
    width: min(58vw, 240px);
  }

  .neural-core {
    width: clamp(112px, 31vw, 148px);
  }

  .neural-node {
    padding: 8px 13px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .brands__grid {
    grid-template-columns: 1fr;
  }

  .world-card--system {
    grid-column: auto;
  }

  .partners__grid {
    grid-template-columns: 1fr;
  }

  .partner-tile + .partner-tile {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__base {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .neural-map {
    aspect-ratio: 10 / 12.2;
  }

  .neural-node {
    padding: 7px 10px;
    font-size: 0.54rem;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .intro {
    display: none;
  }

}
