:root {
  --bg-0: #030712;
  --bg-1: #050b14;
  --bg-2: #07111f;
  --bg-3: #0b1628;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --blue: #2563eb;
  --mint: #5eead4;
  --white: #ffffff;
  --ink: #e5e7eb;
  --mute: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --glass: rgba(7, 17, 31, 0.72);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  --wide: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(900px 500px at 10% 8%, rgba(139, 92, 246, 0.08), transparent 50%),
    var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
}

canvas {
  pointer-events: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--cyan);
  color: var(--bg-0);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  z-index: 7;
  opacity: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 62%);
  transition: opacity 0.4s ease;
}

body.is-pointer .cursor-glow {
  opacity: 1;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.micro {
  font-size: 0.68rem;
  color: var(--mute);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.text-grad {
  background: linear-gradient(105deg, var(--cyan) 0%, #67e8f9 38%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--white);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 42ch;
  color: var(--mute);
  font-size: 1.05rem;
}

.lede.faint {
  margin-top: 16px;
  font-size: 0.92rem;
}

.section {
  position: relative;
  padding: 120px 24px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 64px;
  max-width: 720px;
}

.section-intro .lede {
  margin-top: 22px;
}

.evolve-line {
  margin-top: 18px;
  color: var(--cyan);
  letter-spacing: 0.18em;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: pulse 2.4s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 10px 40px rgba(34, 211, 238, 0.18);
  border-color: var(--cyan);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--white);
}

.btn-glass {
  background: rgba(3, 7, 18, 0.45);
  border: 1px solid rgba(34, 211, 238, 0.35);
  backdrop-filter: blur(12px);
}

.btn-glass:hover,
.btn-glass:focus-visible {
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
  border-color: var(--cyan);
}

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(34, 211, 238, 0.18);
}

.header-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--white);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.nav-desktop {
  display: flex;
  gap: 28px;
}

.nav-desktop a {
  position: relative;
  font-size: 0.9rem;
  color: var(--mute);
  padding: 8px 0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--white);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  width: 100%;
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  justify-self: end;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s ease, top 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 48px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--white);
}

.mobile-nav .btn {
  margin-top: 18px;
  width: fit-content;
  font-size: 1rem;
}

.mobile-nav .micro {
  margin-top: 40px;
}

body.nav-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 28px) 24px 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  mask-image: radial-gradient(ellipse at 78% 48%, black 18%, transparent 72%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 28px;
}

.hero-meta {
  font-size: 0.72rem;
  color: var(--mute);
}

.hero-meta span {
  color: var(--cyan);
  margin: 0 8px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.ai-core {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
}

.core-orbit,
.core-hex,
.core-nucleus,
.core-web {
  position: absolute;
}

.core-orbit {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
}

.core-orbit-a {
  width: 86%;
  height: 86%;
  animation: spin 28s linear infinite;
  border-top-color: var(--cyan);
}

.core-orbit-b {
  width: 64%;
  height: 64%;
  border-color: rgba(139, 92, 246, 0.35);
  border-left-color: var(--violet);
  animation: spin-rev 22s linear infinite;
}

.core-orbit-c {
  width: 42%;
  height: 42%;
  border-style: dashed;
  animation: spin 16s linear infinite;
}

.core-hex {
  width: 28%;
  height: 28%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12));
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.15);
}

.core-nucleus {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 38%, #0b1628 70%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
}

.core-pulse {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 50%;
  animation: pulse-ring 3.2s ease-out infinite;
}

.core-web {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spin-rev {
  to { transform: rotate(-360deg); }
}
@keyframes pulse-ring {
  from { transform: scale(0.85); opacity: 0.8; }
  to { transform: scale(1.55); opacity: 0; }
}

.lab-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  animation: floaty 7s ease-in-out infinite;
}

.lab-chip:nth-child(odd) {
  animation-duration: 8.5s;
}

.chip-key { color: var(--mute); }
.chip-val { color: var(--cyan); }

.coords {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.65rem;
  color: var(--mute);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Status bar */
.status-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-item {
  background: var(--bg-1);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.status-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.08em;
}

.status-value.accent {
  color: var(--cyan);
}

.neural-thread {
  display: block;
  width: 100%;
  height: 80px;
  opacity: 0.85;
}

.lab-section {
  background: radial-gradient(800px 280px at 90% 0%, rgba(139, 92, 246, 0.07), transparent 60%);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.six {
  grid-template-columns: repeat(3, 1fr);
}

.lift-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(11, 22, 40, 0.9), rgba(5, 11, 20, 0.9));
  border: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.lift-card:hover,
.lift-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.35);
}

.card-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.lift-card:hover .card-grid-bg {
  opacity: 1;
  animation: grid-shift 8s linear infinite;
}

@keyframes grid-shift {
  to { background-position: 18px 18px; }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}

.tech-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
}

.card-num {
  font-size: 0.75rem;
  color: var(--mute);
}

.lift-card h3 {
  margin-bottom: 10px;
  position: relative;
}

.lift-card p {
  color: var(--mute);
  font-size: 0.95rem;
  position: relative;
}

.card-arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--cyan);
  position: relative;
}

.card-arrow svg {
  width: 22px;
  height: 22px;
}

.neural-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.lift-card:hover .neural-line {
  transform: scaleX(1);
}

/* Research papers */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.paper-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(11, 22, 40, 0.65), rgba(3, 7, 18, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 0.7rem;
  color: var(--mute);
}

.stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--mint);
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 4px 8px;
}

.paper-card h3 {
  margin-bottom: 12px;
}

.paper-card p {
  color: var(--mute);
  min-height: 4.6em;
}

.paper-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.paper-meta dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.paper-meta dd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 4px;
}

.paper-diagram {
  width: 100%;
  height: 70px;
  opacity: 0.9;
}

/* Experiment viz */
.experiment-viz {
  padding-top: 40px;
}

.viz-frame {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.8), rgba(3, 7, 18, 0.95));
  overflow: hidden;
}

.viz-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.viz-head .kicker {
  margin: 0;
}

.viz-stage {
  position: relative;
  height: min(68vh, 620px);
  min-height: 420px;
}

.viz-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viz-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: radial-gradient(circle at 40% 35%, rgba(34, 211, 238, 0.28), rgba(3, 7, 18, 0.9) 62%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--white);
  z-index: 2;
}

.viz-node {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(5, 11, 20, 0.78);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.viz-node[data-node="input"] { left: 6%; top: 46%; }
.viz-node[data-node="reason"] { left: 22%; top: 14%; }
.viz-node[data-node="predict"] { right: 8%; top: 16%; }
.viz-node[data-node="generate"] { right: 6%; top: 62%; }
.viz-node[data-node="learn"] { left: 28%; bottom: 12%; }

.viz-tags {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  z-index: 2;
}

.viz-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* Intelligence stack */
.intel-stack {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 42px;
}

.intel-stack::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.35;
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 28px 24px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  opacity: 0.38;
  transform: translateX(-8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease), background 0.5s ease, border-color 0.5s ease;
}

.stack-layer::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--mute);
}

.stack-layer.is-on {
  opacity: 1;
  transform: none;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.06), transparent 55%);
  border-color: rgba(34, 211, 238, 0.18);
}

.stack-layer.is-on::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}

.stack-index {
  color: var(--mute);
  font-size: 0.78rem;
  padding-top: 6px;
}

.stack-layer h3 {
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.stack-layer p {
  color: var(--mute);
  max-width: 58ch;
}

/* Solutions */
.split-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  max-width: none;
}

.solutions-list {
  border-top: 1px solid var(--line);
}

.solution-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr;
  gap: 20px;
  align-items: center;
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.35s var(--ease);
}

.solution-row:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.06), transparent);
  padding-left: 16px;
}

.solution-row .mono {
  color: var(--cyan);
  font-size: 0.78rem;
}

.solution-row p {
  color: var(--mute);
}

/* Tech marquee */
.tech-section {
  padding-bottom: 80px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 22px 0;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}

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

/* Experiments */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.exp-card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 18px 18px 24px;
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.exp-card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-4px);
}

.exp-screen {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.4), rgba(3, 7, 18, 0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(34, 211, 238, 0.05) 8px);
  border: 1px solid rgba(34, 211, 238, 0.15);
  margin-bottom: 18px;
  min-height: 140px;
  display: grid;
  place-items: center;
}

.exp-screen svg {
  width: 90%;
  height: 120px;
}

.exp-card .micro {
  margin-bottom: 8px;
}

.exp-card p {
  color: var(--mute);
  margin: 10px 0 16px;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 5px 8px;
}

/* Approach */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.principles article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.principles .mono {
  color: var(--cyan);
  font-size: 0.78rem;
}

.principles h3 {
  margin: 18px 0 12px;
}

.principles p {
  color: var(--mute);
}

/* Collaboration */
.collab-section {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(11, 22, 40, 0.8), var(--bg-0) 70%);
}

.collab-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.collab-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collab-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 760px;
}

.collab-copy p {
  margin: 22px auto 0;
  color: var(--mute);
  max-width: 52ch;
}

.collab-copy .micro {
  margin-top: 28px;
}

.collab-copy .kicker {
  margin-bottom: 16px;
}

.collab-label {
  position: absolute;
  top: 18%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--mute);
  z-index: 2;
}

.collab-label.left { left: 6%; }
.collab-label.right { right: 6%; color: var(--cyan); }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.snapshot-note {
  margin-top: -8px;
}

.metric {
  padding: 28px 8px;
  border-top: 1px solid var(--line);
}

.metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--white);
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--mute);
}

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-card {
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.note-card .mono {
  color: var(--cyan);
  font-size: 0.75rem;
}

.note-card h3 {
  margin: 24px 0 14px;
  font-size: 1.45rem;
}

.note-card p {
  color: var(--mute);
}

.note-meta {
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.65rem;
  color: var(--mute);
}

/* CTA */
.cta-section {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #010409;
}

.cta-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
}

.cta-inner .lede {
  margin: 24px auto 0;
}

.cta-inner .hero-actions {
  justify-content: center;
}

.cta-inner .micro {
  margin-top: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.lab-panel {
  margin-top: 40px;
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(11, 22, 40, 0.5);
}

.lab-panel > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--mute);
}

.contact-form label.full,
.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--mint);
}

.form-status.is-error {
  color: #fca5a5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 24px 28px;
  background: var(--bg-1);
}

.footer-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 48px;
}

.footer-brand .tagline {
  font-family: var(--font-display);
  color: var(--white);
  margin: 18px 0 10px;
}

.footer-brand p {
  color: var(--mute);
  max-width: 36ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.footer-cols h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-cols a {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-cols a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(100%, var(--wide));
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mute);
  font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* Responsive */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-desktop {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-layout,
  .research-grid,
  .card-grid.six,
  .exp-grid,
  .principles,
  .metrics,
  .notes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid,
  .footer-inner,
  .split-intro {
    grid-template-columns: 1fr;
  }
  .status-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .solution-row {
    grid-template-columns: 60px 1fr;
  }
  .solution-row p {
    grid-column: 2;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 88px 18px;
  }
  .hero {
    padding-top: calc(var(--header-h) + 18px);
    align-items: flex-start;
  }
  .hero-layout,
  .card-grid.six,
  .research-grid,
  .exp-grid,
  .footer-cols,
  .principles,
  .metrics,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .collab-label {
    display: none;
  }
  .hero-stage {
    min-height: 420px;
    order: 2;
  }
  .hero-copy {
    order: 1;
  }
  .lab-chip:nth-of-type(n+5) {
    display: none;
  }
  .hero-canvas {
    mask-image: radial-gradient(ellipse at 50% 70%, black 20%, transparent 78%);
    opacity: 0.55;
  }
  .status-bar {
    grid-template-columns: 1fr 1fr;
  }
  .viz-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .viz-stage {
    min-height: 520px;
    height: 560px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .intel-stack {
    padding-left: 28px;
  }
  .stack-layer {
    grid-template-columns: 1fr;
    padding-left: 8px;
  }
}

@media (max-width: 520px) {
  .status-bar {
    grid-template-columns: 1fr;
  }
  .lab-chip {
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cursor-glow { display: none; }
  .marquee-track { animation: none; }
  .reveal, .stack-layer {
    opacity: 1;
    transform: none;
  }
}
