:root {
  --bg: #0a0c0f;
  --surface: #11151a;
  --surface-2: #151a20;
  --text: #f1eee7;
  --muted: #9aa1a9;
  --muted-2: #6f7780;
  --line: rgba(241, 238, 231, 0.12);
  --line-strong: rgba(241, 238, 231, 0.2);
  --accent: #ff6a2a;
  --max: 1220px;
  --pad: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 10;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.section-shell,
.site-header {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-mark { width: 31px; height: 31px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); }

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-index,
.card-code {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
}
.eyebrow { color: var(--accent); margin-bottom: 28px; }
.section-index { color: var(--muted-2); padding-top: 8px; }

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 1000px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(52px, 7.8vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.hero-title span { color: var(--accent); }
.hero-copy {
  max-width: 680px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #0a0c0f; border-color: var(--accent); }
.button-secondary { background: rgba(255,255,255,0.02); }

.hero-grid {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(52vw, 700px);
  aspect-ratio: 1;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(62deg) rotateZ(-18deg);
  transform-origin: center;
}

.statement,
.capabilities,
.horizon,
.principles,
.closing {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  padding-top: clamp(80px, 10vw, 150px);
  padding-bottom: clamp(80px, 10vw, 150px);
  border-bottom: 1px solid var(--line);
}

.kicker { margin: 0 0 24px; color: var(--accent); font-size: 14px; }
.statement-content h2,
.section-intro h2,
.horizon h2,
.closing h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5.3vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.body-copy {
  max-width: 790px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
}

.capabilities { grid-template-rows: auto auto; }
.capabilities > .section-index { grid-row: 1 / span 2; }
.section-intro { max-width: 760px; margin-bottom: 42px; }
.section-intro h2 { font-size: clamp(34px, 4vw, 54px); }
.section-intro p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 650px; }
.capability-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.capability-card {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.card-code { color: var(--accent); }
.capability-card h3 {
  margin: 64px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -0.025em;
}
.capability-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.horizon-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.horizon h2 { font-size: clamp(40px, 5vw, 68px); }
.horizon-copy { padding-top: 44px; }
.horizon-copy p { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 22px; }
.horizon-copy .horizon-note {
  margin-top: 34px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.principle-list { border-top: 1px solid var(--line); }
.principle-row {
  display: grid;
  grid-template-columns: 56px minmax(220px, .65fr) 1fr;
  gap: 28px;
  align-items: center;
  min-height: 105px;
  border-bottom: 1px solid var(--line);
}
.principle-row > span { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.principle-row strong { font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.principle-row p { color: var(--muted); line-height: 1.6; }

.closing { align-items: end; }
.closing h2 { font-size: clamp(40px, 5.2vw, 70px); }
.closing .button { justify-self: start; }

.site-footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { color: var(--text); }

.reveal { animation: rise 700ms both; }
.reveal:nth-child(2) { animation-delay: 80ms; }
.reveal:nth-child(3) { animation-delay: 140ms; }
.reveal:nth-child(4) { animation-delay: 200ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .button { transition: none; }
}

@media (max-width: 900px) {
  .site-header { min-height: 78px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 640px; }
  .statement,
  .capabilities,
  .horizon,
  .principles,
  .closing { grid-template-columns: 1fr; gap: 36px; }
  .capabilities > .section-index { grid-row: auto; }
  .capability-grid { grid-column: 1; }
  .horizon-layout { grid-template-columns: 1fr; gap: 24px; }
  .horizon-copy { padding-top: 0; }
  .closing .button { justify-self: start; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .site-header { padding-inline: 20px; }
  .brand { font-size: 16px; }
  .nav .nav-cta { padding: 9px 12px; border: 1px solid var(--line); }
  .hero { min-height: 610px; padding-top: 70px; padding-bottom: 70px; }
  .hero-title { font-size: clamp(45px, 13vw, 64px); }
  .hero-copy { font-size: 16px; }
  .hero-grid { width: 90vw; right: -40%; bottom: -4%; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 230px; }
  .capability-card h3 { margin-top: 46px; }
  .principle-row {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .principle-row p { grid-column: 2; margin: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 36px; padding-bottom: 36px; }
}
