/* ═══════════════════════════════════════════════════════════════
   AXIOM CAD — styles.css
   Constrain everything. Doubt nothing.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:     #F8F7F4;
  --paper-2:   #F2F0E9;
  --ink:       #111118;
  --ink-soft:  #2A2A35;
  --ink-mute:  #6E6E78;
  --indigo:    #4338CA;
  --indigo-2:  #5A4FE2;
  --ok:        #16a34a;
  --rule:      rgba(17, 17, 24, 0.12);
  --rule-2:    rgba(17, 17, 24, 0.06);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
@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;
  }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Fade-in the content wrapper, NOT body — body cannot use transform
   because any transform ancestor breaks position:fixed descendants. */
.page-fade-target {
  animation: pageFadeIn 0.7s ease-out both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Active nav link indicator */
.nav__links a.is-current {
  color: var(--indigo);
  position: relative;
}
.nav__links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--indigo);
}

/* ─── Page template (non-home pages) ─────────────────────────── */
.page-hero {
  padding: 11rem var(--pad) 5rem;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(var(--rule-2) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, var(--rule-2) 1px, transparent 1px) 0 0 / 50px 50px,
    var(--paper);
}
.page-hero__inner {
  max-width: var(--max); margin: 0 auto;
}
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 1.25rem 0 1.5rem;
  max-width: 20ch;
}
.page-lede {
  font-size: 1.2rem; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.page-meta {
  margin-top: 2rem;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

/* Longform (about, privacy, terms body) */
.section--longform { padding: 6rem var(--pad) 9rem; }
.longform {
  max-width: 780px; margin: 0 auto;
}
.longform__h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  line-height: 1.2;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-2);
}
.longform__h2:first-child {
  margin-top: 0; padding-top: 0; border-top: 0;
}
.longform p {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.longform p:last-child { margin-bottom: 0; }
.inline-link {
  color: var(--indigo);
  border-bottom: 1px solid var(--indigo);
  transition: color .2s;
}
.inline-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Placeholder for content still to be written */
.tbd, .tbd-inline {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(67,56,202,.08);
  border: 1px dashed rgba(67,56,202,.4);
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.longform p.tbd {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ─── Contact page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 960px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: block;
  padding: 2.5rem 2rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.contact-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper-2);
}
.contact-card__num {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.1em;
  margin-bottom: .6rem;
}
.contact-card__label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}
.contact-card__title {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-card p {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.contact-card__addr {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--indigo);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.contact-email {
  max-width: 960px;
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-email__label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.contact-email__addr {
  font-family: var(--mono); font-size: 1.1rem; font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
  transition: opacity .2s;
}
.contact-email__addr:hover { opacity: 0.7; }
.contact-meta {
  max-width: 960px;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.contact-meta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 780px) { .contact-meta__grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-meta__label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--indigo);
  margin-bottom: .85rem;
}
.contact-meta__block p {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.contact-meta__block p:first-of-type {
  color: var(--ink);
  font-weight: 500;
}

/* ─── About profile card ────────────────────────────────────── */
.profile {
  padding: 2.5rem 2rem;
  margin-bottom: 4rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.profile__label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: .75rem;
}
.profile__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: .85rem;
}
.profile__tagline {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 55ch;
}
.profile__chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.chip {
  display: inline-block;
  padding: .45rem .85rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 99px;
  transition: all .2s;
}
.chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Achievement list on About page */
.achievement-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.achievement-list li {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 3rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: all .2s;
}
.achievement-list li:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateX(3px);
}
.achievement-list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem; top: 1.1rem;
  width: 22px; height: 22px;
  background: var(--indigo);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.achievement-list li strong { color: var(--ink); }

/* ─── Licensing notice ───────────────────────────────────── */
.licensing {
  background: var(--ink);
  color: var(--paper);
  padding: 7rem var(--pad);
  border-top: 1px solid rgba(248,247,244,.1);
  position: relative;
  overflow: hidden;
}
.licensing::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.licensing__inner {
  max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 980px) {
  .licensing__inner { grid-template-columns: 1fr; gap: 3.5rem; }
}
.licensing__eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--indigo-2);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--indigo-2);
  display: inline-block;
  margin-bottom: 1.5rem;
}
.licensing__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.licensing__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(248,247,244,.7);
  margin-bottom: 2.25rem;
  max-width: 46ch;
}
.licensing__sub strong { color: var(--paper); font-weight: 500; }
.licensing__links {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.licensing__links .btn--primary {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.licensing__links .btn--primary:hover {
  background: var(--indigo); border-color: var(--indigo); color: var(--paper);
}
.licensing__links .btn--ghost {
  color: var(--paper); border-color: rgba(248,247,244,.3);
}
.licensing__links .btn--ghost:hover {
  background: rgba(248,247,244,.08); border-color: var(--paper);
}

.licensing__grid {
  display: grid;
  gap: 1rem;
}
.lic-card {
  display: block;
  padding: 1.75rem 1.75rem;
  background: rgba(248,247,244,.04);
  border: 1px solid rgba(248,247,244,.14);
  color: var(--paper);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.lic-card:hover {
  background: rgba(248,247,244,.08);
  border-color: var(--indigo-2);
  transform: translateX(6px);
}
.lic-card__num {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  color: var(--indigo-2);
  letter-spacing: 0.12em;
  margin-bottom: .3rem;
}
.lic-card__label {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  color: rgba(248,247,244,.5);
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.lic-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: .5rem;
  color: var(--paper);
}
.lic-card p {
  font-size: 0.9rem; line-height: 1.55;
  color: rgba(248,247,244,.65);
  margin-bottom: 1rem;
}
.lic-card__more {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--indigo-2);
  letter-spacing: 0.06em;
  transition: color .2s;
}
.lic-card:hover .lic-card__more { color: var(--paper); }

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(67,56,202,.08); padding: 1px 5px; border-radius: 3px; color: var(--indigo); }
em { font-style: italic; font-family: var(--serif); }
strong { font-weight: 600; }

.ok { color: var(--ok); font-weight: 500; }
.accent { color: var(--indigo); }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
  padding: 0 var(--pad);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(248,247,244,0.6) 100%);
  backdrop-filter: blur(40px) saturate(1.9);
  -webkit-backdrop-filter: blur(40px) saturate(1.9);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 -1px 0 rgba(255,255,255,0.2) inset,
    0 12px 40px -12px rgba(17,17,24,.18);
  color: var(--ink);
  transition: background .3s ease, box-shadow .3s ease;
  /* Stay floating even with mobile rubber-band scrolling */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  will-change: background;
}
.nav.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(248,247,244,0.42) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -1px 0 rgba(255,255,255,0.25) inset,
    0 14px 48px -14px rgba(17,17,24,.22);
}
.nav__brand {
  display: flex; align-items: center; gap: .9rem;
  color: var(--ink);
  height: 100%;
  transition: transform .25s ease;
}
.nav__brand:hover { transform: translateX(-1px); }
.nav__logo {
  height: 92px; width: 92px; display: block; flex-shrink: 0;
  color: var(--ink);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nav__brand:hover .nav__logo { transform: rotate(-6deg); }
.nav__text {
  height: 58px; width: auto; display: block;
  color: var(--ink);
}
@media (max-width: 760px) {
  .nav { height: 80px; }
  .nav__logo { height: 88px; width: 88px; }
  .nav__text  { height: 44px; }
}
@media (max-width: 480px) {
  .nav__text { height: 38px; }
  .nav__logo { height: 76px; width: 76px; }
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover { color: var(--indigo); }
.nav__cta {
  font-family: var(--mono); font-size: 0.78rem !important;
  padding: .55rem 1.1rem; background: var(--ink); color: var(--paper) !important;
  border-radius: 99px; transition: all .2s;
}
.nav__cta:hover { background: var(--indigo) !important; transform: translateY(-1px); }
@media (max-width: 880px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  border: 1px solid transparent; border-radius: 99px;
  cursor: pointer; transition: all .2s ease;
}
.btn--primary {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--indigo); border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(67,56,202,.5);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(17,17,24,.04); }

/* ─── Dot indicator ───────────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--indigo); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(67,56,202,.55);
  animation: pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
.dot--ok { background: var(--ok); box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,56,202,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(67,56,202,0); }
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 10rem var(--pad) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  z-index: -1;
}
.hero__noise {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(67,56,202,.06), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(67,56,202,.04), transparent 50%);
  z-index: -1;
}

/* Hero corner annotations */
.hero__corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  display: flex; flex-direction: column; gap: 2px;
  padding: .5rem .8rem;
  border: 1px solid var(--rule);
  background: rgba(248,247,244,.4);
  backdrop-filter: blur(4px);
}
.hero__corner::before {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--indigo);
}
.hero__corner--tl { top: 5rem; left: var(--pad); }
.hero__corner--tl::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.hero__corner--tr { top: 5rem; right: var(--pad); align-items: flex-end; }
.hero__corner--tr::before { top: -5px; right: -5px; border-left: 0; border-bottom: 0; }
.hero__corner--bl { bottom: 2rem; left: var(--pad); }
.hero__corner--bl::before { bottom: -5px; left: -5px; border-right: 0; border-top: 0; }
.hero__corner--br { bottom: 2rem; right: var(--pad); align-items: flex-end; }
.hero__corner--br::before { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
@media (max-width: 1080px) { .hero__corner { display: none; } }

.hero__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 5rem;
  align-items: center;
  min-height: calc(100vh - 16rem);
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
}

.hero__label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em;
  padding: .5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(248,247,244,.6);
  margin-bottom: 2rem;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero__tagline .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: lineIn 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__tagline .line:nth-child(1) { animation-delay: .1s; }
.hero__tagline .line:nth-child(2) { animation-delay: .25s; }
.hero__tagline .line:nth-child(3) { animation-delay: .45s; }
.hero__tagline .line--accent {
  font-style: italic;
  color: var(--indigo);
  font-weight: 400;
  position: relative;
}
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero__sub {
  font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft);
  max-width: 38rem; margin-bottom: 1.2rem;
  opacity: 0; animation: lineIn 0.9s .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__callout {
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--indigo);
  background: rgba(67,56,202,.05);
  max-width: 38rem;
  margin-bottom: 2rem;
  opacity: 0; animation: lineIn 0.9s .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__callout strong { display: block; margin-top: .3rem; color: var(--ink); }

.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem;
  opacity: 0; animation: lineIn 0.9s 1s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  opacity: 0; animation: lineIn 0.9s 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
.stat__num {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat__unit {
  font-size: 0.9rem; color: var(--ink-mute); margin-left: 2px;
  font-family: var(--mono); font-weight: 400;
}
.stat__label {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: .5rem;
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .stat__num { font-size: 1.6rem; }
}

/* Blueprint panel */
.hero__right {
  opacity: 0;
  animation: lineIn 1.1s .5s cubic-bezier(.2,.8,.2,1) forwards;
}
.blueprint {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow:
    8px 8px 0 var(--ink),
    8px 8px 0 1.5px var(--ink);
  position: relative;
  transition: transform .4s ease;
}
.blueprint:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--ink), 11px 11px 0 1.5px var(--ink);
}
.blueprint__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}
.blueprint__title {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em;
}
.blueprint__status {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: .5rem;
  color: var(--ok); font-weight: 600;
}
.blueprint__svg {
  display: block;
  width: 100%;
  background: var(--paper);
}
.blueprint__footer {
  display: flex; justify-content: space-between;
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--mono); font-size: 0.68rem;
}
.bp-meta { display: flex; gap: .5rem; color: var(--ink-soft); }
.bp-meta span { color: var(--ink-mute); }

/* Blueprint SVG animations */
.bp-rect { stroke-dasharray: 1020; stroke-dashoffset: 1020; animation: draw 2s .3s forwards; }
.bp-hole { stroke-dasharray: 100.5; stroke-dashoffset: 100.5; animation: draw 1s forwards; }
.bp-axis { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.8s 1s forwards; }
.bp-node { opacity: 0; animation: nodeIn .4s ease forwards; }
.bp-node:nth-of-type(6) { animation-delay: 1s; }
.bp-node:nth-of-type(7) { animation-delay: 1.15s; }
.bp-node:nth-of-type(8) { animation-delay: 1.3s; }
.bp-node:nth-of-type(9) { animation-delay: 1.45s; }
.bp-dim, .bp-label, .bp-call { opacity: 0; animation: lineIn .6s 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } from { opacity: 0; transform: scale(2); } }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--ink-mute);
  animation: floaty 2.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}
@media (max-width: 1080px) { .hero__scroll { display: none; } }

/* ═══════════════ MARQUEE ═══════════════ */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 1.2rem 0;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex; gap: 2.5rem;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.15em;
  animation: scroll 32s linear infinite;
  white-space: nowrap;
}
.marquee__track span:not(:nth-child(even)) {
  color: var(--paper);
}
.marquee__track span:nth-child(even) {
  color: var(--indigo-2);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ═══════════════ SECTIONS ═══════════════ */
.section { padding: 9rem var(--pad); position: relative; }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section + .section { border-top: 1px solid var(--rule-2); }
.section__title { margin-bottom: 2rem; }
.section__lede { margin-bottom: 5rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--indigo);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--indigo);
  margin-bottom: 1.5rem;
}
.section__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.025em; line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 24ch;
}
.section__lede {
  font-size: 1.15rem; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 3.5rem;
}

/* ─── Insight — prediction vs constraint comparison ─────────── */
.insight__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 3rem;
}
.cmp {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.cmp--bad  { box-shadow: 6px 6px 0 rgba(220,38,38,.85); }
.cmp--good { box-shadow: 6px 6px 0 var(--ink); }
.cmp--bad:hover  { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 rgba(220,38,38,.85); }
.cmp--good:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }

.cmp__badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em;
  padding: .35rem .7rem;
  background: rgba(220,38,38,.1);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,.35);
  border-radius: 2px;
}
.cmp__badge--ok {
  background: rgba(22,163,74,.1);
  color: var(--ok);
  border-color: rgba(22,163,74,.35);
}
.cmp__svg {
  width: 100%; height: auto; display: block;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.cmp__rows {
  display: flex; flex-direction: column; gap: .5rem;
  font-family: var(--mono); font-size: 0.78rem;
}
.cmp__row {
  display: flex; align-items: center; gap: .6rem;
  color: #dc2626;
}
.cmp__row--ok { color: var(--ok); }
.cmp__ico {
  font-family: var(--sans); font-weight: 700; font-size: .9rem;
  width: 1.1rem; text-align: center;
}

.cmp__arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  color: var(--indigo);
}
.cmp__arrow svg { width: 48px; height: 24px; }
.cmp__arrow span {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--indigo);
}

.insight__tag {
  margin-top: 2.5rem;
  font-size: 1.05rem; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}
.insight__tag strong { color: var(--indigo); display: block; font-size: 1.15rem; margin-bottom: .3rem; }

/* ─── LM flow — simple 3-step ──────────────────────────────── */
.lm-flow {
  margin-top: 3.5rem;
  padding: 2.25rem 2rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.lm-flow__headline {
  text-align: center;
  margin-bottom: 2.25rem;
}
.lm-flow__tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--indigo);
  padding: .35rem .75rem;
  background: rgba(67,56,202,.08);
  border: 1px solid rgba(67,56,202,.3);
  margin-bottom: 1rem;
}
.lm-flow__headline h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.lm-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
}
.lm-step {
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.lm-step:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.lm-step--ai   { background: rgba(67,56,202,.04); }
.lm-step--math { background: rgba(22,163,74,.04); }

.lm-step__num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
}
.lm-step__icon {
  color: var(--indigo);
  margin-top: .3rem;
}
.lm-step--math .lm-step__icon { color: var(--ok); }

.lm-step h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.15rem; line-height: 1.3;
  color: var(--ink);
  margin-top: .25rem;
}
.lm-step p {
  font-size: 0.92rem; line-height: 1.55;
  color: var(--ink-soft);
}
.lm-step__quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem;
  color: var(--indigo);
  padding: .5rem .75rem;
  border-left: 2px solid var(--indigo);
  background: rgba(67,56,202,.06);
  text-align: left;
  width: 100%;
}

.lm-step__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  padding: 0 .25rem;
}
.lm-step__arrow svg { width: 44px; height: 20px; }

.lm-step__wall {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 .5rem;
}
.lm-step__wall-line {
  width: 2px; flex: 1; min-height: 20px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 12px);
}
.lm-step__wall-label {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
  padding: .5rem 0;
  white-space: nowrap;
}

.lm-flow__punch {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.lm-flow__punch strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif); font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

@media (max-width: 980px) {
  .lm-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .lm-step__arrow { transform: rotate(90deg); padding: .25rem 0; }
  .lm-step__wall { flex-direction: row; padding: .5rem 0; }
  .lm-step__wall-line {
    width: auto; height: 2px; flex: 1; min-height: 0;
    background: repeating-linear-gradient(to right, var(--ink) 0 6px, transparent 6px 12px);
  }
  .lm-step__wall-label { padding: 0 .75rem; white-space: normal; }
}
@media (max-width: 640px) {
  .lm-flow { padding: 1.5rem 1.25rem; box-shadow: 4px 4px 0 var(--ink); }
  .lm-step__quote { font-size: 0.9rem; }
}

@media (max-width: 880px) {
  .insight__compare {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cmp__arrow { transform: rotate(90deg); padding: .5rem 0; }
}

/* ─── Viewer ──────────────────────────────────────────────────── */
.section--viewer { background: var(--paper-2); }

.viewer {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
}
.viewer__canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at center, #FAF9F5 0%, #E8E5DC 100%);
  position: relative;
  cursor: grab;
  touch-action: pan-y;
}
.viewer__canvas:active { cursor: grabbing; }
.viewer__canvas canvas { display: block; touch-action: pan-y; }

.viewer__hud {
  position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  pointer-events: none;
}
.viewer__hud-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: .55rem .85rem;
  background: rgba(248,247,244,.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.8rem;
}
.viewer__hud-item span {
  font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
}
.viewer__hud-item b { font-weight: 600; }

.viewer__controls {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-top: 1.5px solid var(--ink);
  background: var(--paper-2);
}
.vw-btn {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  padding: .55rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.vw-btn:hover { background: var(--ink); color: var(--paper); }
.vw-btn.is-active { background: var(--ink); color: var(--paper); }
.vw-btn--toggle.is-active { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.vw-group { margin-left: auto; display: flex; gap: .5rem; }
@media (max-width: 640px) { .vw-group { margin-left: 0; width: 100%; } }

.viewer__note {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  max-width: 70ch;
}
.viewer__note svg { flex-shrink: 0; color: var(--indigo); }
.mobile-only { display: none; }
@media (max-width: 760px) {
  .mobile-only { display: inline; color: var(--indigo); font-weight: 500; }
}

/* ─── Pipeline ────────────────────────────────────────────────── */
.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 1080px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .pipeline { grid-template-columns: 1fr; } }

.stage {
  padding: 1.75rem 1.25rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  position: relative;
  transition: all .3s;
  animation: stageIn .7s var(--d, 0s) cubic-bezier(.2,.8,.2,1) both;
}
.stage:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}
.stage--emph {
  background: var(--ink);
  color: var(--paper);
}
.stage--emph .stage__name,
.stage--emph .stage__num { color: var(--paper); }
.stage--emph .stage__tool { color: var(--indigo-2); }
.stage--emph .stage__desc { color: rgba(248,247,244,.75); }
.stage--emph code { background: rgba(90,79,226,.25); color: #B8B0FF; }

.stage__num {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.stage__name {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 400; letter-spacing: -0.02em;
  margin-bottom: .3rem;
}
.stage__tool {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--indigo);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.stage__desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

@keyframes stageIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Describe / build / prove visual flow ────────────────── */
.describe__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}
.describe__card {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.describe__card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.describe__label {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.describe__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  padding: 0 .25rem;
}
.describe__arrow svg { width: 44px; height: 20px; }

/* Note card (plain English request) */
.describe__card--note { background: #fffdf5; }
.note {
  position: relative;
  padding: 1rem 1.25rem;
  min-height: 200px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(67,56,202,.12) 27px,
    rgba(67,56,202,.12) 28px
  );
  border-left: 3px solid #dc2626;
}
.note__text {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 28px;
  color: var(--ink);
}
.note__line { display: block; }

/* Engine box (the mystery black box) */
.describe__card--engine {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.describe__card--engine .describe__label { color: rgba(248,247,244,.5); }
.engine-box {
  position: relative;
  padding: 1.5rem .5rem;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  overflow: hidden;
}
.engine-box__pulse {
  position: absolute; inset: 50% auto auto 50%;
  width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,56,202,.35) 0%, rgba(67,56,202,0) 70%);
  animation: enginePulse 3.5s ease-in-out infinite;
}
@keyframes enginePulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity: .55; }
  50%      { transform: translate(-50%,-50%) scale(1.15); opacity: .9;  }
}
.engine-box__mark {
  width: 160px; height: auto;
  color: var(--paper);
  position: relative; z-index: 1;
}
.brain-node {
  transform-origin: center;
  animation: brainPulse 1.8s ease-in-out infinite;
}
@keyframes brainPulse {
  0%, 100% { opacity: 0.4; r: 2.5; }
  50%      { opacity: 1;   r: 4.2; }
}
.engine-box__label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--indigo-2);
  position: relative; z-index: 1;
}
.engine-box__timings {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  border-top: 1px solid rgba(248,247,244,.15);
  padding-top: .9rem;
}
.eb-stat { text-align: center; }
.eb-stat span {
  display: block;
  font-family: var(--mono); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(248,247,244,.45);
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.eb-stat b {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  color: var(--paper);
}

/* Part preview card */
.describe__card--part { background: var(--paper-2); }
.part-preview {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: .5rem;
}
.part-preview svg { display: block; width: 100%; height: auto; }
.part-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem;
}
.pc {
  display: flex; align-items: baseline; gap: .35rem;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-soft);
}
.pc b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.7rem;
}
.pc__tick {
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
}

.describe__punch {
  margin-top: 2.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.describe__punch strong {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .25rem;
}

@media (max-width: 1080px) {
  .describe__flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .describe__arrow { transform: rotate(90deg); padding: .25rem 0; }
}
@media (max-width: 540px) {
  .part-checks { grid-template-columns: 1fr; }
}
.code {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 1.5rem 1.25rem;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
  background:
    linear-gradient(var(--rule-2) 1px, transparent 1px) 0 0 / 100% 1.7em;
}
.code .kw  { color: var(--indigo); font-weight: 600; }
.code .ty  { color: #B45309; }
.code .fn  { color: var(--ink); font-weight: 600; }
.code .num { color: #0F766E; }
.code .str { color: #B45309; }
.code .id  { color: var(--ink-soft); }
.code .com { color: var(--ink-mute); font-style: italic; }
.code .ok  { color: var(--ok); font-weight: 600; }
.code .key { color: var(--indigo); }

.code--cert { background: var(--paper); }

/* ─── Cert ────────────────────────────────────────────────────── */
.cert {
  max-width: 720px; margin: 0 auto;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
  margin-bottom: 4rem;
  position: relative;
}
.cert::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 20px,
    rgba(67,56,202,.02) 20px, rgba(67,56,202,.02) 40px
  );
  pointer-events: none;
}
.cert__header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.cert__seal {
  padding: 4px 10px;
  background: var(--ok);
  color: var(--paper);
  font-weight: 700; letter-spacing: 0.15em;
  font-size: 0.7rem;
}
.cert__file { flex: 1; }
.cert__tol { color: var(--indigo-2); }

.checks {
  max-width: 820px; margin: 0 auto;
  padding: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.checks__title {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}
.checks__list { list-style: none; display: grid; gap: .8rem; }
.checks__list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checks__list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--ok); font-weight: 700;
}
.checks__list li b { color: var(--ink); }

/* ─── Principle diagram ──────────────────────────────────────── */
.section--principle {
  background: var(--paper-2);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.principle-diag {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
  margin-top: 2rem;
}
.principle-diag__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
}
.pd__title {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em;
}
.pd__status {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: .5rem;
  color: var(--ok); font-weight: 600;
}
.principle-diag__svg {
  display: block; width: 100%; height: auto;
  background: var(--paper);
}
.principle-diag__footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--mono); font-size: 0.7rem;
}
.pd__meta { display: flex; gap: .5rem; color: var(--ink-soft); }
.pd__meta span { color: var(--ink-mute); }

/* ─── Capabilities ───────────────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}
@media (max-width: 980px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .caps { grid-template-columns: 1fr; } }

.cap {
  padding: 2.25rem 1.75rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
  position: relative;
}
.cap:nth-child(3n) { border-right: 0; }
.cap:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 980px) {
  .cap { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule) !important; }
  .cap:nth-child(2n) { border-right: 0 !important; }
  .cap:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 640px) {
  .cap { border-right: 0 !important; }
  .cap:last-child { border-bottom: 0 !important; }
}
.cap:hover { background: var(--paper-2); }
.cap__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  margin-bottom: 1.5rem;
  transition: all .25s;
}
.cap:hover .cap__icon {
  background: var(--indigo); color: var(--paper);
  border-color: var(--indigo);
  transform: rotate(-4deg);
}
.cap h3 {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: .65rem;
  line-height: 1.15;
}
.cap p {
  font-size: 0.92rem; line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Built for ──────────────────────────────────────────────── */
.builtfor {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
  margin-top: 1rem;
}
@media (max-width: 780px) { .builtfor { grid-template-columns: 1fr; } }
.bf {
  padding: 2.5rem 2rem;
  display: flex; gap: 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.bf:nth-child(2n) { border-right: 0; }
.bf:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 780px) {
  .bf { border-right: 0; }
  .bf:last-child { border-bottom: 0; }
  .bf:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
.bf:hover { background: var(--paper-2); }
.bf__num {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.1em;
  padding-top: .3rem;
}
.bf__body { flex: 1; }
.bf__body h3 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: .6rem;
}
.bf__body p {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── CTA ─────────────────────────────────────────────────────── */
.section--cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.section--cta .section__inner { padding: 3rem 0; }
.cta h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.025em; line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 16ch;
  margin-inline: auto;
}
.cta h2 em { color: var(--indigo-2); }
.cta p {
  font-size: 1.1rem; line-height: 1.65;
  color: rgba(248,247,244,.75);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}
.cta__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.section--cta .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section--cta .btn--primary:hover { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.section--cta .btn--ghost { color: var(--paper); border-color: rgba(248,247,244,.3); }
.section--cta .btn--ghost:hover { background: rgba(248,247,244,.08); border-color: var(--paper); }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem var(--pad) 2.5rem;
  border-top: 1px solid rgba(248,247,244,.08);
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(248,247,244,.1);
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 3rem; }
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
.footer__col-title {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--indigo-2);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.footer__list { list-style: none; display: grid; gap: .7rem; }
.footer__list a {
  font-size: 0.9rem;
  color: rgba(248,247,244,.72);
  transition: color .2s;
}
.footer__list a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2.5rem;
}
@media (max-width: 640px) {
  .footer__bottom { justify-content: center; text-align: center; }
}
.footer__brand {
  display: flex; align-items: center; gap: 1rem;
  color: var(--paper);
}
.footer__logo {
  width: 88px; height: 88px; display: block; flex-shrink: 0;
  color: var(--paper);
}
.footer__text {
  height: 68px; width: auto; display: block;
  color: var(--paper);
}
@media (max-width: 640px) {
  .footer__logo { width: 68px; height: 68px; }
  .footer__text { height: 50px; }
}
.footer__tag {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem;
  color: rgba(248,247,244,.6);
}
.footer__meta {
  font-family: var(--mono); font-size: 0.72rem;
  color: rgba(248,247,244,.4);
  letter-spacing: 0.05em;
}
.footer__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(248,247,244,.55);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(248,247,244,.18);
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.footer__back:hover {
  color: var(--paper);
  border-color: rgba(248,247,244,.5);
  background: rgba(248,247,244,.04);
}
@media (max-width: 780px) {
  .footer__inner { justify-content: center; text-align: center; }
}

/* ─── Hero byline / founder credit ─────────────────────────── */
.hero__byline {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--ink-mute);
  margin-top: -1rem;
  margin-bottom: 2.25rem;
  padding: .55rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(248,247,244,.55);
  opacity: 0; animation: lineIn .9s .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero__byline a { color: var(--ink); transition: color .2s; }
.hero__byline a:hover { color: var(--indigo); }
.hero__byline em { font-family: var(--serif); font-style: italic; color: var(--indigo); }
.hero__byline svg { color: var(--indigo); flex-shrink: 0; }

/* ─── Research heritage strip ──────────────────────────────── */
.research {
  padding: 5rem var(--pad) 5rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(248,247,244,.08);
  border-bottom: 1px solid rgba(248,247,244,.08);
}
.research__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}
.research__eyebrow {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--indigo-2);
  padding-bottom: .25rem;
  border-bottom: 1px solid rgba(90,79,226,.4);
  display: inline-block;
  margin-bottom: 1rem;
}
.research__headline {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 1rem;
}
.research__blurb {
  font-size: 0.98rem; line-height: 1.65;
  color: rgba(248,247,244,.65);
  max-width: 48ch;
}
.research__blurb strong { color: var(--paper); font-weight: 500; }
.research__col--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.research-card {
  padding: 1.1rem 1.15rem;
  background: rgba(248,247,244,.03);
  border: 1px solid rgba(248,247,244,.12);
  transition: transform .35s, background .35s, border-color .35s;
}
.research-card:hover {
  transform: translateY(-3px);
  background: rgba(248,247,244,.06);
  border-color: var(--indigo-2);
}
.research-card__tag {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--indigo-2);
  margin-bottom: .4rem;
}
.research-card__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.1rem;
  color: var(--paper);
  line-height: 1.25;
  margin-bottom: .35rem;
}
.research-card__meta {
  font-family: var(--mono); font-size: 0.65rem;
  color: rgba(248,247,244,.55);
  line-height: 1.5;
}
.research-card__meta strong { color: var(--paper); font-weight: 600; }

@media (max-width: 980px) {
  .research__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  .research { padding: 3.5rem var(--pad); }
  .research__col--cards { grid-template-columns: 1fr; }
}

/* ─── Trusted by strip ──────────────────────────────────────── */
.trusted {
  padding: 4rem var(--pad) 4rem;
  background: var(--paper-2);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.trusted__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.75rem;
}
.trusted__label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.trusted__logos {
  display: flex; align-items: center; gap: 2.25rem;
  flex-wrap: wrap; justify-content: center;
}
.trusted__logo {
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.trusted__logo:hover { opacity: 1; transform: translateY(-2px); }
.trusted__logo--moog img {
  height: 140px; width: auto; display: block;
  object-fit: contain;
}
.trusted__divider {
  width: 1px; height: 36px;
  background: var(--rule);
}
.trusted__note {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  max-width: 32ch;
}
@media (max-width: 640px) {
  .trusted { padding: 3rem var(--pad); }
  .trusted__logos { gap: 1.25rem; flex-direction: column; }
  .trusted__divider { width: 36px; height: 1px; }
  .trusted__logo--moog img { height: 64px; }
  .trusted__note { text-align: center; }
}

/* ─── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1.is-visible { transition-delay: .08s; }
.reveal--delay-2.is-visible { transition-delay: .16s; }
.reveal--delay-3.is-visible { transition-delay: .24s; }
.reveal--delay-4.is-visible { transition-delay: .32s; }
.reveal--delay-5.is-visible { transition-delay: .40s; }

/* Stagger children via CSS counter trick */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1),
              transform .8s cubic-bezier(.2,.8,.2,1);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: .00s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .08s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .16s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .24s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .32s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; opacity: 1; transform: none; }

/* ─── Responsive refinements ────────────────────────────────── */
@media (max-width: 1180px) {
  .nav__links { gap: 1.25rem; }
}
@media (max-width: 980px) {
  .hero { padding-top: 7rem; }
  .hero__tagline { font-size: clamp(3rem, 10vw, 5rem); }
  .section { padding: 5rem var(--pad); }
}
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { font-size: 0.72rem !important; padding: .4rem .8rem; }
  .hero { padding: 8.5rem var(--pad) 3rem; min-height: auto; }
  .hero__inner { min-height: auto; }
  .hero__label { margin-bottom: 1.5rem; white-space: normal; line-height: 1.4; }
  .hero__tagline { font-size: clamp(2.5rem, 11vw, 4rem); line-height: .98; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat__num { font-size: 1.5rem; }
  .section { padding: 4.5rem var(--pad); }
  .section__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .cta h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .cta p { font-size: 1rem; }
  .marquee__track { font-size: 0.75rem; gap: 1.5rem; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .trusted__logo--moog img { height: 72px; }
}
@media (max-width: 480px) {
  :root { --pad: 1rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .viewer__hud { gap: .5rem; }
  .viewer__hud-item { font-size: 0.72rem; padding: .4rem .6rem; }
  .viewer__controls { padding: .75rem; gap: .4rem; }
  .vw-btn { font-size: 0.7rem; padding: .45rem .75rem; }
  .vw-group { width: 100%; justify-content: flex-start; }
}
@media (min-width: 1600px) {
  :root { --max: 1400px; }
}

/* ─── Mobile polish ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .section__lede { margin-bottom: 3rem; font-size: 1rem; }
  .page-hero { padding: 8rem var(--pad) 3.5rem; }
  .page-lede { font-size: 1.05rem; }
  .section--longform { padding: 3.5rem var(--pad) 5rem; }
  .longform__h2 { font-size: 1.4rem; margin: 2rem 0 .85rem; padding-top: 1.5rem; }
  .longform p { font-size: 1rem; line-height: 1.65; }
  .licensing { padding: 4.5rem var(--pad); }
  .licensing__inner { gap: 2.5rem; }
  .licensing__sub { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .cta { padding: 0 !important; }
  .cta p { font-size: .95rem; }
  .cta__buttons { flex-wrap: wrap; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__sub { font-size: 1rem; }
  .blueprint { box-shadow: 4px 4px 0 var(--ink); }
  .cert { box-shadow: 5px 5px 0 var(--ink); }
  .principle-diag { box-shadow: 6px 6px 0 var(--ink); margin-top: 1rem; }
  .viewer { box-shadow: 5px 5px 0 var(--ink); }
  .contact-email { padding: 1.5rem 1.5rem; gap: 1rem; }
  .contact-email__addr { font-size: 0.95rem; word-break: break-all; }
  .footer__inner { padding: 3rem var(--pad) 2rem; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer__cols { gap: 2rem; }
  .footer__back { margin-top: .5rem; }
}
@media (max-width: 540px) {
  .section { padding: 3.5rem var(--pad); }
  .section__title { font-size: clamp(1.6rem, 8vw, 2.2rem); margin-bottom: 1rem; }
  .section__lede { margin-bottom: 2.25rem; }
  .hero { padding: 5rem var(--pad) 2.5rem; }
  .hero__tagline { font-size: clamp(2.4rem, 13vw, 3.6rem); margin-bottom: 1.5rem; }
  .hero__label { font-size: 0.62rem; padding: .4rem .75rem; margin-bottom: 1.5rem; }
  .hero__ctas { margin-bottom: 2.25rem; gap: .75rem; }
  .hero__stats { padding-top: 1.75rem; gap: 1rem; }
  .stat__num { font-size: 1.35rem; }
  .btn { padding: .8rem 1.3rem; font-size: 0.88rem; }
  .blueprint__header { padding: .6rem .85rem; }
  .blueprint__title { font-size: 0.62rem; }
  .blueprint__status { font-size: 0.6rem; }
  .blueprint__footer { padding: .6rem .85rem; flex-wrap: wrap; gap: .5rem; }
  .bp-meta { font-size: 0.62rem; }
  .viewer__hud { flex-wrap: wrap; }
  .viewer__controls { flex-wrap: wrap; }
  .licensing__title { font-size: clamp(2rem, 10vw, 3rem); }
  .lic-card { padding: 1.25rem 1.25rem; }
  .lic-card h3 { font-size: 1.2rem; }
  .contact-card { padding: 1.75rem 1.5rem; }
  .contact-card__title { font-size: 1.4rem; }
  .page-title { font-size: clamp(2rem, 10vw, 3rem); }
  .page-hero { padding: 7rem var(--pad) 3rem; }
  .principle-diag__footer { padding: .6rem .85rem; }
  .pd__meta { font-size: 0.62rem; }
  .cert__header { flex-wrap: wrap; gap: .5rem; padding: .75rem .9rem; }
  .code, .code--cert { font-size: 0.72rem; padding: 1rem; }
}

/* ─── Mobile performance ─────────────────────────────────────── */
@media (max-width: 760px) {
  /* Kill expensive blurs on small screens */
  .nav {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(248, 247, 244, 0.94);
  }
  /* Stop the heavy pulsing and radial gradients */
  .engine-box__pulse { animation: none; display: none; }
  .brain-node { animation: none; }
  .bp-hole { animation: none; }
  .bp-node { animation: none; }
  .bp-axis, .bp-label, .bp-call, .bp-dim { animation: none; opacity: 1; }
  .bp-rect { animation: none; }
  /* Hero background effects — expensive on GPU */
  .hero__grid { display: none; }
  .hero__noise { display: none; }
  /* Lighter shadows */
  .blueprint, .viewer, .cert, .principle-diag, .lm-flow, .describe__card {
    box-shadow: 4px 4px 0 var(--ink) !important;
  }
  /* Drop chunky box-shadows on smaller cards entirely */
  .cmp--bad, .cmp--good { box-shadow: 3px 3px 0 var(--ink) !important; }
  .cmp--bad { box-shadow: 3px 3px 0 rgba(220,38,38,.75) !important; }
  /* Disable reveal transition transforms — scroll-triggered transform is jank on mobile */
  .reveal {
    transition: opacity .4s ease;
    transform: none;
  }
  .reveal.is-visible { transform: none; }
  .stagger > * { transition: opacity .4s ease; transform: none; }
  /* Disable hover lifts on touch (they do nothing on touch) */
  .cmp:hover, .lic-card:hover, .lm-step:hover, .describe__card:hover,
  .cap:hover, .trusted__logo:hover, .research-card:hover { transform: none; }
}

/* ─── Selection ───────────────────────────────────────────────── */
::selection { background: var(--indigo); color: var(--paper); }

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }
