:root {
  color-scheme: dark;
  --black: #020306;
  --black-soft: #070a10;
  --panel: rgba(7, 10, 17, 0.7);
  --white: #f3f5f8;
  --muted: #a8adb8;
  --dim: #717783;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --spectral-cyan: #42d9ff;
  --spectral-blue: #3978ff;
  --spectral-amber: #ffb452;
  --spectral-red: #ff4f31;
  --page-padding: clamp(1.25rem, 3.2vw, 3.8rem);
  --content-width: 1500px;
  --sans: "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
textarea,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

::selection {
  color: #020306;
  background: #eaf4ff;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#shader-canvas,
.ambient-fallback,
.page-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#shader-canvas {
  z-index: 0;
  opacity: 0.98;
}

.ambient-fallback {
  z-index: -1;
  background:
    radial-gradient(ellipse 58% 54% at 50% 46%, rgba(2, 3, 6, 0.99) 0 36%, rgba(2, 3, 6, 0.9) 58%, rgba(2, 3, 6, 0.22) 82%, transparent 100%),
    radial-gradient(circle 54vw at -18vw -22vw, transparent 0 43vw, rgba(35, 94, 255, 0.35) 44vw, rgba(35, 219, 255, 0.42) 45.2vw, rgba(255, 178, 62, 0.34) 46.4vw, rgba(255, 65, 33, 0.24) 47.2vw, transparent 49vw),
    radial-gradient(circle 48vw at 116vw 22vh, transparent 0 38vw, rgba(255, 166, 55, 0.32) 39vw, rgba(49, 218, 255, 0.4) 40.2vw, rgba(42, 90, 255, 0.3) 41.5vw, transparent 44vw),
    radial-gradient(circle 48vw at -14vw 118vh, transparent 0 38vw, rgba(31, 93, 255, 0.3) 39vw, rgba(39, 211, 255, 0.38) 40.2vw, rgba(255, 135, 45, 0.23) 41.4vw, transparent 44vw),
    radial-gradient(circle 54vw at 112vw 126vh, transparent 0 43vw, rgba(38, 87, 255, 0.3) 44vw, rgba(44, 210, 255, 0.36) 45.1vw, rgba(255, 177, 67, 0.25) 46.3vw, transparent 49vw),
    #020306;
  filter: saturate(112%);
}


.shader-failed #shader-canvas {
  display: none;
}

.shader-failed .ambient-fallback {
  z-index: 0;
}

.page-noise {
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem var(--page-padding);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 3, 6, 0.68);
  backdrop-filter: blur(22px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--content-width);
  min-height: 52px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.72rem;
  width: max-content;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.wordmark-mark {
  width: 1.55rem;
  height: 1.55rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3.4rem);
}

.primary-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.87rem;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.text-link:focus-visible,
.example-prompts button:focus-visible,
.agent-reset:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--spectral-cyan);
  outline-offset: 4px;
}

.button-light {
  background: var(--white);
  color: #07090d;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.button-light:hover {
  background: #ffffff;
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(3, 5, 9, 0.18);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 8.5rem var(--page-padding) 5rem;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 50% 48% at 50% 48%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38) 72%, rgba(0, 0, 0, 0.72)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent 24%, transparent 75%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1120px, 100%);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 1000px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 7.2vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-copy {
  max-width: 610px;
  margin: 2rem 0 0;
  color: rgba(236, 239, 245, 0.74);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  letter-spacing: -0.018em;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.agent-stage {
  position: relative;
  width: min(920px, 100%);
  margin-top: clamp(2.5rem, 5vh, 4.2rem);
}

.agent-glow {
  position: absolute;
  inset: -14% 8% auto;
  height: 72%;
  opacity: 0.48;
  background: radial-gradient(ellipse at center, rgba(64, 155, 255, 0.26), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
}

.agent-form {
  position: relative;
  display: grid;
  min-height: 96px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 1.05rem;
  padding: 1rem 1rem 1rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 1.35rem;
  background: rgba(3, 6, 12, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(26px) saturate(135%);
  isolation: isolate;
}

.agent-form::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  content: "";
  background: linear-gradient(102deg, rgba(63, 185, 255, 0.85), rgba(255, 255, 255, 0.15) 28%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 175, 70, 0.72));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.agent-form:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 28px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(48, 129, 255, 0.08);
}

.terminal-mark {
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.3rem;
}

#agent-input {
  width: 100%;
  max-height: 8rem;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.45;
}

#agent-input::placeholder {
  color: rgba(235, 238, 245, 0.48);
}

#agent-input:disabled {
  opacity: 0.55;
}

.agent-submit {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.agent-submit:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.agent-submit:disabled {
  cursor: wait;
  opacity: 0.45;
}

.agent-submit.is-loading span {
  display: block;
  animation: agent-pulse 900ms ease-in-out infinite alternate;
}

.agent-meta {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.4rem 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
}

.agent-meta p {
  margin: 0;
}

.agent-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.agent-output {
  margin-top: 0.8rem;
  padding: 1.25rem 1.4rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(4, 7, 13, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  text-align: left;
  backdrop-filter: blur(24px);
}

.agent-output[hidden] {
  display: none;
}

.agent-output-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-orbit {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid rgba(100, 198, 255, 0.82);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 181, 82, 0.16), 0 0 14px rgba(68, 178, 255, 0.48);
}

#agent-answer {
  margin: 0.9rem 0 0;
  color: rgba(244, 246, 249, 0.88);
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.example-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.example-prompts button {
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font-size: 0.72rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-prompts button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: var(--page-padding);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.scroll-cue i::after {
  display: block;
  width: 50%;
  height: 100%;
  content: "";
  background: rgba(255, 255, 255, 0.8);
  animation: scan-line 2.2s ease-in-out infinite;
}

.reveal {
  animation: reveal-in 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-title.reveal { animation-delay: 80ms; }
.hero-copy.reveal { animation-delay: 150ms; }
.hero-actions.reveal { animation-delay: 220ms; }
.agent-stage.reveal { animation-delay: 300ms; }
.example-prompts.reveal { animation-delay: 380ms; }

.section {
  position: relative;
  z-index: 4;
  background: var(--black);
}

.section-shell {
  width: min(var(--content-width), calc(100% - (2 * var(--page-padding))));
  margin: 0 auto;
  padding: clamp(6.5rem, 11vw, 11rem) 0;
}

.section-platform {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 3rem;
  align-items: end;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-intro > p:last-child,
.sticky-copy > p,
.research-copy > p,
.company-detail p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}

.capability-grid {
  display: grid;
  margin-top: clamp(4rem, 8vw, 8rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 60%);
  transition: background 300ms ease;
}

.capability-card:hover {
  background: linear-gradient(145deg, rgba(71, 144, 255, 0.08), rgba(255, 181, 82, 0.025) 75%, transparent);
}

.card-index {
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.capability-symbol {
  position: relative;
  width: 124px;
  height: 124px;
  margin: auto;
  opacity: 0.78;
}

.capability-symbol::before,
.capability-symbol::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.capability-symbol::after {
  inset: 35%;
  border-color: rgba(75, 185, 255, 0.72);
  box-shadow: 0 0 24px rgba(45, 139, 255, 0.23);
}

.symbol-world::before { border-radius: 18%; transform: rotate(45deg); }
.symbol-world::after { border-radius: 14%; transform: rotate(45deg); }
.symbol-planning::before { border-radius: 50% 15% 50% 15%; transform: rotate(22deg); }
.symbol-planning::after { border-radius: 15% 50% 15% 50%; transform: rotate(-22deg); }
.symbol-deploy::before { inset: 21% 12%; border-radius: 50%; transform: rotateX(64deg); }
.symbol-deploy::after { inset: 35% 25%; border-radius: 50%; transform: rotateX(64deg); }

.capability-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.capability-card p {
  max-width: 26ch;
  margin: 0;
  color: var(--dim);
  font-size: 0.87rem;
}

.section-solutions {
  border-top: 1px solid var(--line);
  background: #05070b;
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 10vw, 10rem);
}

.sticky-copy {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.sticky-copy h2 {
  max-width: 8ch;
}

.sticky-copy > p {
  max-width: 45ch;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.3rem;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
}

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

.solution-list article {
  display: grid;
  min-height: 165px;
  align-items: center;
  grid-template-columns: 50px 1fr auto;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: padding 240ms ease, background 240ms ease;
}

.solution-list article:hover {
  padding: 0 1.2rem;
  background: rgba(255, 255, 255, 0.025);
}

.solution-list article > span {
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.solution-list h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.25vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.solution-list p {
  margin: 0.4rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.solution-list i {
  color: rgba(255, 255, 255, 0.44);
  font-style: normal;
}

.section-research {
  padding: var(--page-padding);
  border-top: 1px solid var(--line);
}

.research-frame {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  grid-template-columns: 1.25fr 0.75fr;
  border: 1px solid var(--line);
  background: #030509;
}

.research-visual {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 48%, rgba(32, 76, 131, 0.2), transparent 35%),
    linear-gradient(130deg, #030509, #080d16);
}

.research-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(54vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 40% 42%, transparent 0 22px, rgba(100, 180, 255, 0.07) 23px 24px),
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.16), transparent 4%),
    radial-gradient(circle at 45% 46%, rgba(35, 103, 196, 0.16), rgba(2, 3, 7, 0.92) 65%);
  box-shadow:
    inset -70px -50px 110px rgba(0, 0, 0, 0.9),
    0 0 100px rgba(46, 125, 255, 0.1);
  transform: translate(-50%, -50%);
}

.research-sphere::before,
.research-sphere::after {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgba(80, 176, 255, 0.18);
  border-radius: 50%;
  transform: rotateX(72deg) rotateZ(18deg);
}

.research-sphere::after {
  inset: -4%;
  border-color: rgba(255, 175, 77, 0.12);
  transform: rotateY(74deg) rotateZ(-25deg);
}

.research-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

.research-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 5rem);
}

.research-copy h2 {
  font-size: clamp(2.7rem, 4.5vw, 5rem);
}

.research-copy > p {
  margin-top: 2rem;
}

.research-copy ul {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.research-copy li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.research-copy li span {
  color: var(--dim);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.section-company {
  background: #eef1f4;
  color: #090b0f;
}

.company-shell h2 {
  max-width: 1130px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.4vw, 8rem);
  font-weight: 400;
  line-height: 0.94;
}

.section-company .eyebrow {
  color: rgba(0, 0, 0, 0.48);
}

.company-detail {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.company-detail p {
  max-width: 620px;
  color: rgba(0, 0, 0, 0.62);
}

.section-company .button-light {
  background: #090b0f;
  color: #fff;
}

.site-footer {
  padding: 5rem var(--page-padding) 2rem;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-top,
.footer-bottom {
  display: grid;
  max-width: var(--content-width);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
}

.footer-top {
  min-height: 170px;
}

.footer-top p {
  justify-self: center;
  color: var(--dim);
  font-size: 0.85rem;
}

.footer-top > a:last-child {
  justify-self: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.86rem;
}

.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
}

.footer-bottom > span:nth-child(2) {
  justify-self: center;
}

.footer-bottom > div {
  display: flex;
  justify-self: end;
  gap: 1.5rem;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scan-line {
  0%, 100% { transform: translateX(-110%); }
  50% { transform: translateX(210%); }
}

@keyframes agent-pulse {
  from { opacity: 0.25; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 0.8rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: currentColor;
    transition: transform 200ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(380px, 100%);
    height: 100svh;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
    padding: 7rem 2rem 2rem;
    border-left: 1px solid var(--line);
    background: rgba(2, 4, 8, 0.96);
    transform: translateX(100%);
    transition: transform 240ms ease;
    backdrop-filter: blur(24px);
  }

  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { font-size: 1.6rem; letter-spacing: -0.04em; }
  .header-cta { display: none; }

  .section-intro,
  .split-shell,
  .research-frame {
    grid-template-columns: 1fr;
  }

  .section-intro .eyebrow { grid-column: auto; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-copy { position: static; }
  .sticky-copy h2 { max-width: 12ch; }
  .research-visual { min-height: 580px; border-right: 0; border-bottom: 1px solid var(--line); }
  .research-sphere { width: min(80vw, 520px); }
}

@media (max-width: 640px) {
  :root { --page-padding: 1.1rem; }
  .site-header { padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .wordmark { font-size: 0.73rem; letter-spacing: 0.1em; }
  .wordmark-mark { width: 1.35rem; height: 1.35rem; }
  .hero { min-height: auto; padding-top: 8.2rem; padding-bottom: 6rem; }
  .hero-title { font-size: clamp(3.7rem, 16vw, 5.8rem); }
  .hero-copy { max-width: 33ch; margin-top: 1.5rem; }
  .hero-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .agent-stage { margin-top: 2.3rem; }
  .agent-form { min-height: 78px; gap: 0.65rem; padding: 0.8rem 0.7rem 0.8rem 1rem; border-radius: 1rem; }
  .terminal-mark { font-size: 1rem; }
  #agent-input { font-size: 0.95rem; }
  .agent-submit { width: 46px; height: 46px; }
  .agent-meta { align-items: flex-start; gap: 0.7rem; text-align: left; }
  .example-prompts { display: none; }
  .scroll-cue { display: none; }
  .section-shell { padding: 6rem 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 320px; }
  .solution-list article { min-height: 145px; grid-template-columns: 34px 1fr auto; }
  .research-frame { min-height: 0; }
  .research-visual { min-height: 440px; }
  .research-copy { padding: 2rem 1.35rem 3rem; }
  .company-detail { align-items: stretch; grid-template-columns: 1fr; }
  .company-detail .button { width: 100%; }
  .footer-top,
  .footer-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-top { align-items: start; }
  .footer-top p,
  .footer-top > a:last-child,
  .footer-bottom > span:nth-child(2),
  .footer-bottom > div { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
