/* ===========================
   RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: oklch(0.62 0.18 27 / 0.35);
  color: oklch(0.98 0.005 60);
}

/* Focus visible — keyboard navigation polish */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 120ms var(--ease-out);
}
a:focus-visible,
button:focus-visible {
  outline-offset: 4px;
}
.nav-cta:focus-visible,
.cfg-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 100px;
}
.link-cta:focus-visible {
  outline-offset: 6px;
  border-radius: 4px;
}

:root {
  /* Color — OKLCH, tinted toward red */
  --bg:          oklch(0.135 0.006 25);
  --bg-1:        oklch(0.16 0.008 25);
  --bg-2:        oklch(0.2 0.01 25);

  --text:        oklch(0.96 0.005 60);
  --text-2:      oklch(0.7 0.012 50);
  --text-3:      oklch(0.5 0.012 40);
  --text-dim:    oklch(0.35 0.012 40);

  --accent:      oklch(0.62 0.18 27);
  --accent-soft: oklch(0.62 0.18 27 / 0.12);
  --accent-bdr:  oklch(0.62 0.18 27 / 0.3);

  --live:        oklch(0.78 0.16 145);

  --border:      oklch(1 0 0 / 0.06);
  --border-2:    oklch(1 0 0 / 0.1);
  --border-3:    oklch(1 0 0 / 0.15);

  /* Easing — Emil curves */
  --ease-out:        cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer:     cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain overlay — fixed, no repaint cost */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===========================
   TYPOGRAPHY HELPERS
   =========================== */
.display {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text);
  font-feature-settings: 'liga' on;
}
.display em {
  font-style: italic;
  color: var(--accent);
}

.num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-feature-settings: 'tnum' on, 'ss01' on;
}

/* ===========================
   FOLIO / EDITORIAL CHROME
   =========================== */
.folio,
.folio-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.folio {
  color: var(--accent);
}

.folio-rule {
  height: 1px;
  background: var(--border-2);
  flex: 1;
  max-width: 80px;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 28px;
  background: oklch(0.135 0.006 25 / 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-bdr);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
  will-change: transform;
}
.nav-cta:hover {
  background: oklch(0.92 0.005 60);
}
.nav-cta:active {
  transform: scale(0.97);
}
.nav-cta-arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease-out);
}
.nav-cta:hover .nav-cta-arrow {
  transform: translate(2px, -2px);
}

/* ===========================
   PAGE GUTTER
   =========================== */
.hero,
.problem,
.schematic-section,
.specimen,
.config-section,
.cta-section,
.folio-divider,
.footer {
  padding-left: 28px;
  padding-right: 28px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding-top: 140px;
  padding-bottom: 120px;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'eyebrow eyebrow'
    'headline spec';
  column-gap: 64px;
  row-gap: 56px;
  align-items: end;
}

.hero-eyebrow {
  grid-area: eyebrow;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-headline {
  grid-area: headline;
  max-width: 720px;
}

.hero-spec {
  grid-area: spec;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.hero-headline h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.92;
  font-size: clamp(3.8rem, 9.5vw, 7.8rem);
}

.h-line {
  display: block;
}
.h-1 {
  color: var(--text-2);
  font-style: normal;
}
.h-2 {
  color: var(--text);
}
.h-2 em {
  color: var(--accent);
  font-style: italic;
  position: relative;
}

.hero-lede {
  margin-top: 36px;
  max-width: 540px;
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--text-2);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* Link-style CTA (anti SaaS button) */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  letter-spacing: -0.005em;
  transition: transform 220ms var(--ease-out), color 180ms ease;
  will-change: transform;
}
.link-cta-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 600ms var(--ease-out-strong);
}
.link-cta:hover .link-cta-line {
  transform-origin: left;
  transform: scaleX(1);
}
.link-cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 500ms var(--ease-out-strong);
}
.link-cta:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}
.link-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  transition: transform 220ms var(--ease-out);
}
.link-cta:hover .link-cta-arrow {
  transform: translate(2px, -2px);
}
.link-cta:active {
  transform: scale(0.985);
}

.link-cta-large {
  font-size: 1.25rem;
  gap: 16px;
}
.link-cta-large .link-cta-arrow {
  width: 36px;
  height: 36px;
}

/* ===========================
   HERO SPEC (double-bezel)
   =========================== */
.spec-shell {
  background: oklch(0.18 0.01 25 / 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.04) inset;
}

.spec-core {
  background: oklch(0.16 0.008 25);
  border-radius: 12px;
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
}

.spec-core::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.15), transparent);
}

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.spec-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.spec-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 oklch(0.78 0.16 145 / 0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.16 145 / 0.5); }
  60%       { box-shadow: 0 0 0 8px oklch(0.78 0.16 145 / 0); }
}

.spec-list {
  display: flex;
  flex-direction: column;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}
.spec-row dd {
  font-size: 0.88rem;
  color: var(--text);
  text-align: right;
}

.spec-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'eyebrow'
      'headline'
      'spec';
    row-gap: 48px;
  }
  .hero-spec { max-width: 100%; }
  .hero-headline h1 {
    font-size: clamp(3.2rem, 13vw, 5rem);
  }
}

/* ===========================
   FOLIO DIVIDER
   =========================== */
.folio-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
}

/* ===========================
   PROBLEM
   =========================== */
.problem {
  padding-top: 96px;
  padding-bottom: 112px;
}

.prob-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 80px;
}

.prob-head h2.display {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
}

.prob-body { max-width: 640px; }

.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 56ch;
}

.pains {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pains li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.pains li:first-child { border-top: 1px solid var(--border); }

.pain-n {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  padding-top: 2px;
}

.pain-c h3 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.pain-c p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 54ch;
}

.pull {
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.pull p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.015em;
  max-width: 22ch;
}

@media (max-width: 960px) {
  .prob-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

/* ===========================
   SCHEMATIC
   =========================== */
.schematic-section {
  padding-top: 96px;
  padding-bottom: 120px;
}

.sch-head {
  max-width: 1280px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 80px;
  align-items: end;
}
.sch-head h2.display {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
}
.sch-lede {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 56ch;
}

.schematic {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1200 / 460;
  background: oklch(0.155 0.007 25);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--text-3);
}

.sch-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sch-lines .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.sch-active .sch-lines .line {
  opacity: 1;
}
.sch-active .sch-lines .line[data-delay="200"] { transition-delay: 200ms; }
.sch-active .sch-lines .line[data-delay="400"] { transition-delay: 400ms; }
.sch-active .sch-lines .line[data-delay="600"] { transition-delay: 600ms; }
.sch-active .sch-lines .line[data-delay="700"] { transition-delay: 700ms; }
.sch-active .sch-lines .line[data-delay="800"] { transition-delay: 800ms; }

.sch-marks { opacity: 0; transition: opacity 600ms var(--ease-out) 900ms; }
.sch-active .sch-marks { opacity: 1; }

.sch-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(140px, 13.5vw, 168px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

/* Output nodes (right column) have no tag/note, so center the box on --y */
.sch-output {
  transform: translateY(calc(-50% + 8px));
}
.sch-active .sch-output {
  transform: translateY(-50%);
}
.sch-active .sch-node {
  opacity: 1;
  transform: translateY(0);
}
.sch-active .sch-drive { transition-delay: 100ms; }
.sch-active .sch-llm   { transition-delay: 350ms; }
.sch-active .sch-yt    { transition-delay: 600ms; }
.sch-active .sch-disc  { transition-delay: 700ms; }
.sch-active .sch-tk    { transition-delay: 800ms; }

.sch-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.sch-box {
  background: oklch(0.18 0.01 25);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.sch-box-accent {
  background: oklch(0.62 0.18 27 / 0.08);
  border-color: var(--accent-bdr);
  position: relative;
}
.sch-active .sch-box-accent::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: sch-thinking 2.6s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes sch-thinking {
  0%, 100% { opacity: 0; transform: scale(1); }
  40%       { opacity: 0.6; transform: scale(1.015); }
  80%       { opacity: 0; transform: scale(1.03); }
}
.sch-name {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.sch-box-accent .sch-name { color: var(--accent); }
.sch-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.sch-note {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
  max-width: 170px;
}

/* Hover on nodes */
@media (hover: hover) and (pointer: fine) {
  .sch-node:hover .sch-box {
    transform: translateY(-2px);
    border-color: var(--border-3);
  }
}

.sch-foot {
  max-width: 1280px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.sch-stat {
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sch-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sch-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .sch-head { grid-template-columns: 1fr; row-gap: 24px; }
  .schematic {
    aspect-ratio: auto;
    height: auto;
    padding: 24px 20px;
  }
  .sch-svg { display: none; }
  .sch-node,
  .sch-output {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    border-left: 2px solid var(--accent-bdr);
    padding-left: 16px;
    margin-bottom: 24px;
  }
  .sch-active .sch-node,
  .sch-active .sch-output { transform: none; opacity: 1; }
  .sch-node:last-child { margin-bottom: 0; }
  .sch-note { max-width: 100%; }
  .sch-foot { grid-template-columns: 1fr; }
  .sch-box-accent { border-left-color: var(--accent); }
}

/* ===========================
   SPECIMEN
   =========================== */
.specimen {
  padding-top: 96px;
  padding-bottom: 120px;
}

.spec-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 64px;
  align-items: start;
}

.spec-intro h2.display {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 24px;
}
.spec-intro p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 44ch;
}

.anno {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.anno > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.anno dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 2px;
}
.anno dd {
  font-size: 0.9rem;
  color: var(--text);
}

/* Specimen frame — double bezel */
.specimen-frame {
  position: relative;
}

.frame-shell {
  background: oklch(0.18 0.01 25 / 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 30px 60px -30px oklch(0 0 0 / 0.5);
}
.frame-core {
  background: oklch(0.1 0.005 25);
  border-radius: 10px;
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: oklch(0.13 0.006 25);
}
.frame-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-3);
}
.frame-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-2);
}

.frame-body {
  padding: 18px 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ml {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.terminal-active .ml-1 { transition-delay: 100ms; opacity: 1; transform: none; }
.terminal-active .ml-2 { transition-delay: 380ms; opacity: 1; transform: none; }
.terminal-active .ml-3 { transition-delay: 880ms; opacity: 1; transform: none; }
.terminal-active .ml-4 { transition-delay: 1080ms; opacity: 1; transform: none; }
.terminal-active .ml-5 { transition-delay: 1580ms; opacity: 1; transform: none; }
.terminal-active .ml-6 { transition-delay: 1840ms; opacity: 1; transform: none; }
.terminal-active .ml-7 { transition-delay: 2020ms; opacity: 1; transform: none; }
.terminal-active .ml-8 { transition-delay: 2260ms; opacity: 1; transform: none; }

.mt {
  font-size: 0.66rem;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 58px;
}

.mk {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
  min-width: 78px;
  text-align: center;
}
.mk.drive { background: oklch(0.6 0.13 80 / 0.15); color: oklch(0.82 0.13 80); }
.mk.tx    { background: oklch(0.65 0.13 250 / 0.13); color: oklch(0.78 0.13 250); }
.mk.ai    { background: var(--accent-soft); color: var(--accent); }
.mk.ok    { background: oklch(0.65 0.14 145 / 0.13); color: oklch(0.8 0.14 145); }
.mk.done  { background: oklch(0.65 0.14 145 / 0.18); color: oklch(0.85 0.14 145); }

.mv em { color: var(--text); font-style: normal; font-weight: 500; }

.ml-done {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ml-done .mv {
  color: var(--text);
  font-weight: 500;
}

.cur {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  font-weight: 700;
}
@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 960px) {
  .spec-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

/* ===========================
   CONFIGURATIONS
   =========================== */
.config-section {
  padding-top: 96px;
  padding-bottom: 120px;
}

.cfg-head {
  max-width: 1280px;
  margin: 0 auto 64px;
}
.cfg-head h2.display {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  max-width: 18ch;
}

.cfg-table {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cfg {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.cfg-pro {
  background: oklch(0.16 0.008 25);
}

.cfg-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.cfg-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.cfg-desc {
  font-size: 0.96rem;
  color: var(--text-2);
  max-width: 36ch;
}

.cfg-price {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.cfg-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.cfg-recur {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-2);
}
.cfg-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

.cfg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.cfg-list li {
  font-size: 0.92rem;
  color: var(--text-2);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.cfg-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.cfg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: oklch(0.2 0.01 25);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 220ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  will-change: transform;
}
.cfg-cta:hover {
  background: oklch(0.24 0.012 25);
  border-color: var(--border-3);
}
.cfg-cta:active {
  transform: scale(0.97);
}

.cfg-cta-pro {
  background: var(--accent);
  color: var(--text);
  border-color: transparent;
}
.cfg-cta-pro:hover {
  background: oklch(0.66 0.18 27);
  border-color: transparent;
}

.cfg-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.1);
  transition: transform 220ms var(--ease-out);
}
.cfg-cta:hover .cfg-arrow {
  transform: translate(2px, -2px);
}

.cfg-guar {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .cfg-table {
    grid-template-columns: 1fr;
  }
  .cfg { padding: 36px 28px; }
}

/* ===========================
   CTA FINAL
   =========================== */
.cta-section {
  padding-top: 96px;
  padding-bottom: 120px;
}

.cta-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: 80px;
  align-items: end;
}

.cta-display {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.93;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  color: var(--text);
}
.cta-display em {
  color: var(--accent);
  font-style: italic;
}

.cta-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 460px;
}

.cta-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
}

.cta-fine {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .cta-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 28px;
}

.ftr {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ftr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.ftr-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.ftr-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 800ms var(--ease-out-strong),
              transform 800ms var(--ease-out-strong),
              filter 800ms var(--ease-out-strong);
  will-change: transform, opacity, filter;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger pain items on reveal */
.pains li.reveal:nth-child(1) { transition-delay: 0ms; }
.pains li.reveal:nth-child(2) { transition-delay: 80ms; }
.pains li.reveal:nth-child(3) { transition-delay: 160ms; }
.pains li.reveal:nth-child(4) { transition-delay: 240ms; }

.anno > div.reveal:nth-child(1) { transition-delay: 0ms; }
.anno > div.reveal:nth-child(2) { transition-delay: 70ms; }
.anno > div.reveal:nth-child(3) { transition-delay: 140ms; }
.anno > div.reveal:nth-child(4) { transition-delay: 210ms; }

.sch-stat.reveal:nth-child(1) { transition-delay: 0ms; }
.sch-stat.reveal:nth-child(2) { transition-delay: 100ms; }
.sch-stat.reveal:nth-child(3) { transition-delay: 200ms; }

.h-line.reveal:not(.reveal-in) {
  filter: blur(8px);
}
.h-line.h-1.reveal { transition-delay: 0ms; }
.h-line.h-2.reveal { transition-delay: 120ms; }

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .status-dot { animation: none; }
  .cur { animation: none; }
}

/* ===========================
   MOBILE TIGHTEN
   =========================== */
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .hero,
  .problem,
  .schematic-section,
  .specimen,
  .config-section,
  .cta-section,
  .folio-divider,
  .footer { padding-left: 18px; padding-right: 18px; }

  .hero-headline h1 { font-size: 3rem; }
  .hero-lede { font-size: 1rem; }

  .pains li { grid-template-columns: 40px 1fr; gap: 16px; }
}
