:root {
  --ink: #070809;
  --paper: #f1f2ef;
  --muted: #9da09c;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #ff604d;
  --cyan: #a8f2ee;
  --pad: clamp(24px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

#webgl-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 36%, rgba(64, 126, 126, 0.16), transparent 28%),
    #070809;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 76px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}

.brand-mark {
  width: 25px;
  height: 25px;
  position: relative;
  display: inline-block;
}

.brand-mark i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--paper);
  border-radius: 50%;
}

.brand-mark i:nth-child(1) { left: 0; top: 7px; }
.brand-mark i:nth-child(2) { right: 0; top: 7px; }
.brand-mark i:nth-child(3) { left: 7px; top: 0; }

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 12px;
  color: #c6c8c5;
}

.desktop-nav a,
.contact-link {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.contact-link:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.icon-button,
.menu-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1px;
  background: currentColor;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.contact-link {
  font-size: 12px;
}

.contact-link span,
.text-link span {
  color: var(--accent);
  margin-left: 8px;
}

.menu-button {
  width: 34px;
  height: 34px;
  display: none;
}

.menu-button span {
  display: block;
  height: 1px;
  width: 20px;
  margin: 5px auto;
  background: currentColor;
}

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

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 128px var(--pad) 60px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 9, 0.98) 0%, rgba(7, 8, 9, 0.82) 41%, rgba(7, 8, 9, 0.12) 68%, rgba(7, 8, 9, 0.34) 100%);
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 76px 0 0 31%;
  z-index: -3;
  overflow: hidden;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: saturate(0.72) contrast(1.15) brightness(0.9);
  transform: scale(1.05);
  animation: hero-breathe 12s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  to { transform: scale(1.12) translateX(-1.5%); }
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan);
  opacity: 0.55;
  animation: scan 7s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-12vh); }
  to { transform: translateY(75vh); }
}

.specimen-orbit {
  position: absolute;
  border: 1px solid rgba(168, 242, 238, 0.45);
  border-radius: 50%;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 26vw;
  aspect-ratio: 1;
  animation: orbit 18s linear infinite;
}

.orbit-two {
  width: 19vw;
  aspect-ratio: 1;
  border-color: rgba(255, 96, 77, 0.4);
  animation: orbit 12s linear infinite reverse;
}

.specimen-orbit::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  position: absolute;
  top: 12%;
  left: 12%;
}

@keyframes orbit {
  to { rotate: 360deg; }
}

.specimen-tag {
  position: absolute;
  font-family: monospace;
  font-size: 10px;
  color: var(--cyan);
  border-left: 1px solid currentColor;
  padding-left: 8px;
}

.tag-a { top: 23%; left: 64%; }
.tag-b { bottom: 20%; left: 48%; color: #fff; }

.hero-copy {
  width: min(760px, 70vw);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #878b87;
  font: 9px monospace;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  50% { transform: scaleY(0.45); transform-origin: top; opacity: 0.45; }
}

.scene-section {
  isolation: isolate;
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(58px, 8.3vw, 132px);
  line-height: 0.81;
  font-weight: 500;
  margin: 34px 0 42px;
  max-width: 920px;
}

.hero-intro {
  margin-left: clamp(0px, 16vw, 250px);
  width: min(420px, 100%);
  color: #bec1bd;
  line-height: 1.65;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #747773;
  padding: 0 0 10px;
  margin: 20px 0 0 clamp(0px, 16vw, 250px);
  font-size: 12px;
}

.hero-index {
  position: absolute;
  right: var(--pad);
  bottom: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 10px monospace;
  color: #b4b6b3;
}

.hero-index div {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 25%, #555 25%);
}

.manifesto,
.capabilities,
.contact {
  padding: 150px var(--pad);
}

.manifesto {
  background: linear-gradient(
    90deg,
    rgba(7, 8, 9, 0.92) 0%,
    rgba(7, 8, 9, 0.72) 48%,
    rgba(7, 8, 9, 0.24) 78%,
    rgba(7, 8, 9, 0.5) 100%
  );
}

.manifesto h2,
.capabilities h2,
.contact h2,
.insight h2 {
  font-size: clamp(42px, 6vw, 94px);
  line-height: 0.98;
  font-weight: 400;
  margin: 38px 0 84px;
}

em {
  color: var(--cyan);
  font-family: Georgia, serif;
  font-weight: 400;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10vw;
  align-items: end;
  padding-left: 24vw;
}

.manifesto-grid > p {
  color: #aeb1ad;
  font-size: 15px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metrics div {
  padding: 30px 20px 0 0;
  display: flex;
  flex-direction: column;
  min-height: 130px;
  border-right: 1px solid var(--line);
}

.metrics strong {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 400;
}

.metrics span {
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
}

.platforms {
  padding: 70px var(--pad) 130px;
  background: rgba(223, 225, 221, 0.94);
  color: #111311;
  backdrop-filter: blur(4px);
}

.platform-stage {
  min-height: 790px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
}

.platform-visual {
  height: min(72vw, 720px);
  position: relative;
  overflow: hidden;
  background: #bfc2bd;
}

.platform-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
}

.platform-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.1);
  transition: opacity 300ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
}

.platform-visual.changing img {
  opacity: 0.18;
  transform: scale(1.08);
}

.visual-label {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  color: #fff;
  font: 11px monospace;
}

.target-reticle {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  right: 18%;
  top: 22%;
}

.target-reticle::before,
.target-reticle::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.target-reticle::before { width: 70px; height: 1px; left: -9px; top: 26px; }
.target-reticle::after { height: 70px; width: 1px; top: -9px; left: 26px; }

.platform-content h2 {
  font-size: clamp(48px, 5.4vw, 86px);
  line-height: 0.93;
  font-weight: 400;
  margin: 35px 0;
}

.platform-description {
  max-width: 470px;
  color: #555a55;
  font-size: 14px;
  line-height: 1.7;
  min-height: 76px;
}

.platform-tabs {
  margin-top: 70px;
  border-top: 1px solid #a7aaa5;
}

.platform-tab {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid #a7aaa5;
  background: transparent;
  color: #767a75;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease;
}

.platform-tab span {
  font: 9px monospace;
}

.platform-tab.active {
  color: #0e100e;
  padding-left: 14px;
}

.platform-tab:focus-visible {
  outline-color: var(--accent);
  outline-offset: -3px;
}

.platform-tab.active span {
  color: var(--accent);
}

.capabilities {
  background: rgba(12, 14, 14, 0.86);
  backdrop-filter: blur(3px);
}

.capabilities-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.capabilities-heading h2 {
  margin-top: 0;
}

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

.capability-row {
  min-height: 125px;
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 24px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.capability-row:hover {
  background: rgba(168, 242, 238, 0.06);
  padding: 0 18px;
}

.capability-row > span {
  color: var(--accent);
  font: 10px monospace;
}

.capability-row h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
}

.capability-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.capability-row b {
  color: var(--cyan);
  font-weight: 400;
}

.insight {
  min-height: 850px;
  background: rgba(223, 225, 221, 0.94);
  color: #101210;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.insight-image {
  min-height: 650px;
  overflow: hidden;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.15);
  transition: transform 1.2s ease;
}

.insight-image:hover img {
  transform: scale(1.035);
}

.insight-copy {
  padding: 140px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.insight-copy h2 {
  margin-bottom: 38px;
}

.insight-copy > p:not(.section-kicker) {
  max-width: 430px;
  color: #5a5e59;
  line-height: 1.7;
}

.insight-copy .text-link {
  margin-left: 0;
}

.contact {
  min-height: 780px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(168, 242, 238, 0.22);
  border-radius: 50%;
  right: -5vw;
  top: 8%;
}

.contact h2 {
  margin-bottom: 0;
}

.contact-circle {
  position: absolute;
  right: 10vw;
  top: 34%;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #101010;
  font-size: 13px;
  transition: transform 300ms ease, background 300ms ease;
}

.contact-circle:hover {
  transform: scale(1.07) rotate(-4deg);
  background: var(--cyan);
}

.contact-circle b {
  font-size: 20px;
  font-weight: 400;
}

footer {
  padding: 30px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  color: var(--paper);
}

footer p {
  margin: 0;
}

.search-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
  padding: 20vh var(--pad);
  background: rgba(10, 12, 12, 0.97);
  transform: translateY(-100%);
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.search-panel.open {
  transform: translateY(0);
}

.close-search {
  position: absolute;
  right: var(--pad);
  top: 25px;
  font-size: 30px;
}

.search-panel label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.search-panel input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #777;
  color: #fff;
  padding: 10px 0 25px;
  outline: 0;
  font-size: clamp(38px, 7vw, 100px);
}

.search-panel p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .contact-link {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.menu-open .desktop-nav {
    display: flex;
    position: fixed;
    inset: 76px 0 auto;
    height: calc(100vh - 76px);
    padding: 70px var(--pad);
    background: #0b0d0d;
    flex-direction: column;
    align-items: flex-start;
    font-size: 28px;
  }

  .hero {
    min-height: 820px;
    align-items: flex-end;
  }

  .hero::after {
    background: linear-gradient(0deg, var(--ink) 12%, rgba(7,8,9,.5) 65%, rgba(7,8,9,.15));
  }

  .hero-media {
    inset: 76px 0 30% 0;
  }

  .hero-media img {
    object-position: center;
    filter: saturate(0.72) contrast(1.14) brightness(0.78);
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(52px, 16vw, 88px);
    margin-bottom: 28px;
  }

  .hero-intro,
  .text-link {
    margin-left: 0;
  }

  .hero-index {
    display: none;
  }

  .manifesto,
  .capabilities,
  .contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .manifesto {
    background: rgba(7, 8, 9, 0.58);
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .platform-stage,
  .insight {
    grid-template-columns: 1fr;
  }

  .platform-visual {
    height: 120vw;
    max-height: 680px;
  }

  .platform-stage {
    padding-bottom: 40px;
  }

  .platform-tabs {
    margin-top: 40px;
  }

  .capabilities-heading {
    grid-template-columns: 1fr;
  }

  .capability-row {
    grid-template-columns: 35px 1fr 22px;
    gap: 14px;
  }

  .capability-row p {
    display: none;
  }

  .insight-copy {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .contact-circle {
    position: relative;
    right: auto;
    top: auto;
    margin: 70px 0 0 auto;
    width: 180px;
  }

  .contact::before {
    width: 78vw;
    height: 78vw;
    top: auto;
    bottom: 2%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 48px;
  }

  .hero-media {
    bottom: 42%;
  }

  .hero-intro {
    font-size: 13px;
  }

  .manifesto h2,
  .capabilities h2,
  .contact h2,
  .insight h2 {
    font-size: 42px;
    margin-bottom: 48px;
  }

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

  .metrics div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-content h2 {
    font-size: 50px;
  }

  .insight-image {
    min-height: 500px;
  }
}

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