:root {
  --near-black: #09090b;
  --warm-white: #f5f1ea;
  --warm-white-strong: #fffdf8;
  --ink: #13151a;
  --muted-ink: #525863;
  --rule: rgba(19, 21, 26, 0.12);
  --rule-dark: rgba(255, 255, 255, 0.1);
  --surface-dark: rgba(12, 13, 18, 0.72);
  --surface-light: rgba(255, 253, 248, 0.72);
  --violet: #7266ff;
  --blue: #57a4ff;
  --cyan: #74d7ff;
  --focus: #8dbdff;
  --shadow-soft: 0 24px 80px rgba(4, 7, 14, 0.1);
  --shell-width: min(1120px, calc(100vw - 48px));
  --shell-wide-width: min(1280px, calc(100vw - 48px));
  --hero-top: 104px;
  --transition-fast: 220ms ease;
  color-scheme: dark light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 10px;
}

code,
pre {
  font-family: "SFMono-Regular", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
}

pre {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

pre code {
  display: block;
  min-width: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--warm-white-strong);
  color: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

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

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.shell-wide {
  width: var(--shell-wide-width);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid var(--rule-dark);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark,
.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.wordmark {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.section-link {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.section-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(114, 102, 255, 0.9), rgba(116, 215, 255, 0.85));
  opacity: 0;
  transform: scaleX(0.65);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.section-link:hover,
.section-link:focus-visible,
.section-link.is-active,
.section-link[aria-current="location"] {
  color: rgba(255, 255, 255, 0.96);
}

.section-link.is-active::after,
.section-link[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 100svh;
  margin-top: -72px;
  padding-top: var(--hero-top);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(114, 102, 255, 0.2), transparent 38%),
    radial-gradient(circle at 82% 26%, rgba(87, 164, 255, 0.18), transparent 34%),
    radial-gradient(circle at 60% 80%, rgba(116, 215, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #07080c 0%, #0b0d12 55%, #101218 100%);
  color: rgba(255, 255, 255, 0.94);
  overflow: clip;
}

#hero-canvas,
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-noise {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 55%);
  mix-blend-mode: screen;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding: 120px 0 72px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero-panel h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 46rem;
  margin: 24px 0 0;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.74);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(114, 102, 255, 0.9), rgba(87, 164, 255, 0.84));
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li,
.border-card,
.process-block {
  border: 1px solid var(--rule);
  border-radius: 22px;
}

.hero-facts li {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.editorial-section {
  padding: 96px 0;
  background: var(--warm-white);
}

.editorial-section-muted {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.02));
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 34px;
}

.section-label {
  color: var(--muted-ink);
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lead-block {
  padding: 28px 0;
}

.big-statement {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.body-stack {
  display: grid;
  gap: 16px;
  color: var(--muted-ink);
}

.highlight-grid,
.process-grid,
.model-grid {
  display: grid;
  gap: 18px;
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.border-card {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 253, 248, 0.64);
  box-shadow: var(--shadow-soft);
}

.border-card h3,
.process-block h3,
.access-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.card-index,
.process-number {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.figure-section {
  padding-top: 74px;
}

.capability-figure {
  margin: 0;
}

.capability-figure img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.capability-figure figcaption {
  margin-top: 16px;
  max-width: 68rem;
  color: var(--muted-ink);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-block {
  padding: 24px;
  background: rgba(255, 253, 248, 0.82);
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.evidence-list,
.link-list {
  margin: 0;
  padding-left: 20px;
}

.boundary-copy {
  display: grid;
  gap: 16px;
  align-content: start;
  color: var(--muted-ink);
}

.model-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.model-grid > * {
  min-width: 0;
}

.link-list li + li,
.evidence-list li + li {
  margin-top: 10px;
}

.license-note {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.site-footer {
  padding: 32px 0 48px;
  background: #ece6dd;
  border-top: 1px solid var(--rule);
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-shell p {
  margin: 0;
  color: var(--muted-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 960px) {
  :root {
    --shell-width: min(100vw - 32px, 960px);
    --shell-wide-width: min(100vw - 32px, 1120px);
  }

  .nav-shell,
  .footer-shell,
  .two-column,
  .evidence-layout,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell,
  .footer-shell {
    display: grid;
  }

  .site-nav,
  .hero-facts,
  .highlight-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding-bottom: 18px;
  }

  .hero-shell {
    padding-top: 132px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-top: 120px;
  }

  .editorial-section {
    padding: 72px 0;
  }

  .hero-shell {
    padding-top: 148px;
    padding-bottom: 56px;
  }

  .hero-copy,
  .hero-facts li,
  .body-stack,
  .capability-figure figcaption,
  .boundary-copy,
  .site-nav,
  .footer-links {
    font-size: 0.97rem;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .border-card,
  .process-block,
  pre {
    padding: 20px;
  }

  pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .button:hover {
    transform: none;
  }

  .hero-panel {
    background:
      radial-gradient(circle at 18% 18%, rgba(114, 102, 255, 0.16), transparent 38%),
      radial-gradient(circle at 82% 26%, rgba(87, 164, 255, 0.14), transparent 34%),
      linear-gradient(180deg, #07080c 0%, #0b0d12 100%);
  }
}
