/* ============================================================
   Ordo · styles.css
   Palette and type per ordo-brand-guidelines.md (v3.0)
   "The operating system for revenue."
   ============================================================ */

:root {
  /* ----------------------------------------------------------
     Ordo brand palette · Pine + Ordo Green + Mint
     Warm paper canvas, deep-pine dark grounds, signature green,
     mint for accents on dark, brass as a rare premium whisper,
     danger red reserved for revenue-leak semantics only.
     ---------------------------------------------------------- */
  --pine: #0E3B2E;          /* anchor — dark sections, primary buttons, logo */
  --pine-soft: #134A39;     /* lifted pine (gradient top) */
  --pine-deep: #09271E;     /* deepest pine (gradient base) */
  --green: #1F8A66;         /* signature interactive green — links, accents */
  --green-2: #1A7557;       /* green hover */
  --mint: #4FD1A0;          /* bright accent on dark grounds, focus glows */
  --brass: #C2A15B;         /* premium accent — hairline detail, max 5% */

  --ink: #0A0F0D;           /* primary text, near-black with a green cast */
  --ink-soft: #2A332E;      /* body / secondary text */
  --ink-dim: #5A6560;       /* muted / meta text */

  --slate: #46524D;         /* secondary text, captions */
  --stone: #8A938E;         /* placeholder, disabled */
  --mist: #C9CFC9;          /* input outlines */
  --cloud: #E7E9E4;         /* subtle fills */

  --paper: #F5F4EF;         /* primary canvas (warm white) */
  --paper-2: #FFFFFF;       /* cards / elevated surfaces */
  --paper-3: #ECEAE3;       /* subtle section banding / hovers */
  --line: #DDDBD2;          /* hairline borders on light */

  --danger: #D2483D;        /* SEMANTIC red — leak ledger only, never CTAs */
  --danger-dark: #B23A30;

  /* Dark grounds (hero, final CTA, dossier, footer, featured card) */
  --dark: #0E3B2E;          /* pine */
  --dark-2: #1C2421;        /* graphite — lifted panel on dark */
  --dark-3: #134A39;        /* pine-soft */
  --on-dark: #F2F3EE;       /* text on dark */
  --on-dark-dim: #A7B3AC;   /* muted text on dark */
  --line-on-dark: rgba(242, 243, 238, 0.14);

  /* Legacy aliases → mapped onto the Ordo system so existing rules resolve */
  --navy: var(--pine);
  --navy-2: var(--dark-2);
  --navy-3: var(--dark-3);
  --white: var(--paper-2);
  --graphite: var(--dark-2);
  --accent: var(--green);
  --accent-2: var(--green-2);
  --accent-soft: rgba(31, 138, 102, 0.10);
  --blue: var(--green);
  --gold: var(--brass);
  --grey: var(--line);
  --leak: var(--danger);
  --leak-dark: var(--danger-dark);
  --red: var(--danger);
  --red-dark: var(--danger-dark);
  --ink-on-dark: var(--on-dark);
  --ink-on-dark-dim: var(--on-dark-dim);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Radius lock: two values only */
  --r-s: 8px;
  --r-m: 14px;

  /* Rhythm */
  --section-pad: clamp(5rem, 3.5rem + 4vw, 8rem);
  --container: 1140px;

  /* Motion — Ordo standard easing */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-optical-sizing: auto;
}
h2 { font-size: clamp(1.9rem, 1.45rem + 1.7vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--navy); color: var(--white); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 70;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-s);
  font-weight: 600;
}
.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

/* Primary CTA: solid ink on light surfaces, evergreen on hover */
.btn--red { background: var(--ink); color: var(--paper-2); }
.btn--red:hover { background: var(--accent); }
/* Inverted inside dark bookends so the primary CTA stays visible */
.hero .btn--red,
.cta-final .btn--red,
.section--dark .btn--red { background: var(--paper-2); color: var(--ink); }
.hero .btn--red:hover,
.cta-final .btn--red:hover,
.section--dark .btn--red:hover { background: var(--gold); color: var(--ink); }

.btn--blue { background: var(--accent); color: #fff; }
.btn--blue:hover { background: var(--accent-2); }
.btn--ghost {
  color: var(--ink-on-dark);
  border: 1px solid var(--line-on-dark);
}
.btn--ghost:hover { border-color: rgba(242, 239, 233, 0.45); }
.btn--outline {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.btn--outline:hover { border-color: var(--ink); }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }
.btn--nav { padding: 0.7rem 1.1rem; font-size: 0.875rem; }

/* ---------- Eyebrow (max one per 3 sections) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-dim);
  margin-bottom: 1.25rem;
}
.eyebrow--gold { color: var(--gold); }
.section--light .eyebrow, .section--grey .eyebrow,
.approach .eyebrow { color: var(--green-2); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__brand:hover { text-decoration: none; }
.nav__shield { height: 30px; width: auto; flex: none; color: var(--pine); }
/* Ordo mark — ring "O" with trailing signal lines feeding in from the left */
.ordo-mark { display: block; }
.ordo-mark line, .ordo-mark .om-ring { stroke: currentColor; fill: none; }
.ordo-mark .om-dot { fill: currentColor; }
.nav__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a:not(.btn) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--pine-soft) 0%, var(--pine) 52%, var(--pine-deep) 100%);
  color: var(--ink-on-dark);
  padding-top: clamp(5rem, 3.25rem + 3vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 3rem + 2vw, 5rem);
  overflow: hidden;
}
.hero__grid-bg, .cta-final__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.9rem, 1.8rem + 4.4vw, 5.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--mint);
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; }
.js .reveal-line > span {
  transform: translateY(112%);
  animation: line-up 750ms var(--ease-out) forwards;
}
.js .reveal-line:nth-child(2) > span { animation-delay: 110ms; }
@keyframes line-up { to { transform: translateY(0); } }

.hero__sub {
  max-width: 34rem;
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.hero__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-on-dark-dim);
}

/* --- Hero console: "the operating system for revenue" --- */
.hero__console { min-width: 0; }
.os {
  padding: clamp(1.1rem, 0.7rem + 1vw, 1.6rem);
  border-radius: var(--r-m);
  border: 1px solid var(--line-on-dark);
  background:
    linear-gradient(180deg, rgba(242, 243, 238, 0.06), rgba(9, 39, 30, 0.28));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(242, 243, 238, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.os__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.os__id {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-on-dark);
}
.os__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31, 138, 102, 0.55);
}
.js .os__dot { animation: os-pulse 2.6s var(--ease-out) infinite; }
@keyframes os-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 138, 102, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(31, 138, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 102, 0); }
}
.os__live {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--green);
}

.os__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.os__chart-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-on-dark-dim);
}
.os__chart-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.os__graph { display: block; width: 100%; height: auto; overflow: visible; }
.os__stop--top { stop-color: var(--green); stop-opacity: 0.32; }
.os__stop--bot { stop-color: var(--green); stop-opacity: 0; }
.os__area { fill: url(#osFill); }
.os__line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.os__tip { fill: #fff; stroke: var(--green); stroke-width: 2; }

.os__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}
.os__tile {
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-s);
  border: 1px solid var(--line-on-dark);
  background: rgba(9, 39, 30, 0.35);
}
.os__tile-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--ink-on-dark-dim);
  margin-bottom: 0.3rem;
}
.os__tile-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.os__pipe {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.os__stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-s);
  border: 1px solid var(--line-on-dark);
  background: rgba(9, 39, 30, 0.3);
}
.os__stage-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--ink-on-dark);
}
.os__flag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  /* default (no-JS) = healthy final state */
  color: var(--green);
  background: rgba(31, 138, 102, 0.14);
  transition: color 380ms var(--ease-out), background-color 380ms var(--ease-out);
}
.os__flag::after { content: "LIVE"; }
/* With JS, stages start in the leak state, then seal one by one (.is-sealed) */
.js .os__flag { color: var(--red); background: rgba(210, 72, 61, 0.16); }
.js .os__flag::after { content: "LEAK"; }
.js .os__stage.is-sealed .os__flag { color: var(--green); background: rgba(31, 138, 102, 0.16); }
.js .os__stage.is-sealed .os__flag::after { content: "LIVE"; }

/* --- Metrics strip --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-dark);
  border-block: 1px solid var(--line-on-dark);
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.metrics__item {
  padding: 1.5rem 1.25rem;
  text-align: left;
  background: rgba(242, 239, 233, 0.04);
}
.metrics__item dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-on-dark-dim);
  margin-bottom: 0.4rem;
}
.metrics__item dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  color: #fff;
  letter-spacing: -0.02em;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: var(--section-pad); }
.section--light { background: var(--white); }
.section--grey { background: var(--paper-3); }
.section--dark {
  background: var(--graphite);
  color: var(--ink-on-dark);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--bordered { border-top: 1px solid var(--grey); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section__head h2 { margin-bottom: 1.1rem; }
.section__head p { font-size: 1.1rem; }
.section--dark .section__head p { color: var(--ink-on-dark-dim); }

.section__kicker {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy);
  max-width: 44rem;
}

/* ============================================================
   Leak ledger
   ============================================================ */
.ledger {
  border: 1px solid var(--grey);
  border-radius: var(--r-m);
  overflow: hidden;
  background: #fff;
}
.ledger__row {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 1fr;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  border-top: 1px solid var(--grey);
  font-size: 0.98rem;
  transition: background-color 160ms ease;
}
.ledger__row:hover:not(.ledger__row--head) { background: var(--paper-3); }
.ledger__row--head {
  border-top: none;
  background: var(--navy);
  color: var(--ink-on-dark-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-block: 0.85rem;
}
.ledger__source {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--graphite);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.ledger__id {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--red);
  flex: none;
}
.ledger__cost {
  color: var(--navy);
  font-weight: 500;
}

/* ============================================================
   Approach
   ============================================================ */
.approach {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 60rem;
}
.approach__title { margin-bottom: 2.75rem; }

.rail {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}
.rail::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--grey);
}
.rail__stage {
  position: relative;
  padding-bottom: 2.5rem;
}
.rail__stage:last-child { padding-bottom: 0; }
.rail__marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
}
.rail__stage h3 { margin-bottom: 0.5rem; }
.rail__stage > p { max-width: 36rem; }
.rail__deliverable {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-2);
}

/* ============================================================
   About Ruan
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.about__portrait {
  position: relative;
  margin: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -34px rgba(20, 17, 13, 0.45);
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-on-dark);
  background: linear-gradient(180deg, transparent 55%, rgba(20, 17, 13, 0.55) 100%);
  pointer-events: none;
}
.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.about__caption {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.4rem);
  bottom: clamp(0.9rem, 2vw, 1.4rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-on-dark);
}
.about__caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.about__body h2 { margin: 0.6rem 0 1.4rem; }
.about__lead { font-size: 1.08rem; color: var(--graphite); margin-bottom: 1.1rem; }
.about__body > p { margin-bottom: 1.1rem; max-width: 40rem; }
.about__disciplines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 1.4rem;
}
.about__disciplines li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ink-on-dark);
}
.about__creds {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.9rem;
}
.about__creds li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.about__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 161, 91, 0.20);
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 360px; }
}

/* ============================================================
   Evidence dossier
   ============================================================ */
.dossier {
  border: 1px solid rgba(242, 239, 233, 0.1);
  border-radius: var(--r-m);
  overflow: hidden;
  background: rgba(33, 28, 23, 0.55);
}
.dossier__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}
.dossier__tab {
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-on-dark-dim);
  border-right: 1px solid rgba(248, 250, 252, 0.1);
  border-top: 3px solid transparent;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.dossier__tab:last-child { border-right: none; }
.dossier__tab:hover { color: #fff; background: rgba(248, 250, 252, 0.04); }
.dossier__tab[aria-selected="true"] {
  color: #fff;
  background: rgba(248, 250, 252, 0.05);
  border-top-color: var(--gold);
}
.dossier__tab-id {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.dossier__panel { padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); }
.js .dossier__panel:not([hidden]) { animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dossier__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 3vw, 3.5rem);
}
.dossier__context {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-on-dark-dim);
  margin-bottom: 1.1rem;
}
.dossier__text h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  margin-bottom: 1.25rem;
}
.dossier__text p { margin-bottom: 1rem; font-size: 0.99rem; color: var(--ink-on-dark); }
.dossier__text strong { color: #fff; font-weight: 600; }
.dossier__results {
  display: grid;
  gap: 1px;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: var(--r-s);
  overflow: hidden;
  align-self: start;
}
.result {
  background: var(--graphite);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.result__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  white-space: nowrap;
}
.result__label {
  font-size: 0.85rem;
  color: var(--ink-on-dark-dim);
  text-align: right;
}
.dossier__insight {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-on-dark);
  max-width: 52rem;
}

/* ============================================================
   Builds
   ============================================================ */
.builds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.build {
  border: 1px solid var(--grey);
  border-radius: var(--r-m);
  padding: 1.9rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.build:hover { transform: translateY(-4px); border-color: #CBD5E1; }
.build__type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-2);
  margin-bottom: 0.8rem;
}
.build h3 { margin-bottom: 0.7rem; }
.build > p { font-size: 0.96rem; flex-grow: 1; }
.build__stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}
.build__stack li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--r-s);
  color: var(--slate);
}

/* ============================================================
   Services / packages
   ============================================================ */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.package {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: var(--r-m);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.package__tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-2);
  margin-bottom: 0.55rem;
}
.package--featured .package__tier { color: var(--mint); }
.package h3 { margin-bottom: 0.5rem; }
.package__for {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 1.4rem;
}
.package ul {
  list-style: none;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.package ul li {
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}
.package ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 2px;
  background: var(--blue);
}
.package__outcome {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}
.package .btn { align-self: flex-start; }

.package--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ink-on-dark);
}
.package--featured h3 { color: #fff; }
.package--featured .package__for { color: var(--ink-on-dark-dim); }
.package--featured ul li::before { background: var(--gold); }
.package--featured .package__outcome { color: var(--ink-on-dark); }
/* Primary CTA on the pine featured card inverts to paper, like the dark bookends */
.package--featured .btn--red { background: var(--paper-2); color: var(--ink); }
.package--featured .btn--red:hover { background: var(--mint); color: var(--pine); }
.package__flag {
  position: absolute;
  top: -0.8rem;
  left: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gold);
  color: var(--graphite);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-s);
}

/* ============================================================
   Process timeline + testimonial
   ============================================================ */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.timeline__phase {
  border-top: 3px solid var(--navy);
  padding-top: 1.4rem;
}
.timeline__weeks {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.6rem;
}
.timeline__phase h3 { margin-bottom: 0.9rem; font-size: 1.2rem; }
.timeline__phase ul { list-style: none; display: grid; gap: 0.45rem; }
.timeline__phase ul li {
  font-size: 0.94rem;
  padding-left: 1.2rem;
  position: relative;
}
.timeline__phase ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 2px;
  background: var(--gold);
}

.testimonial {
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  border-left: 3px solid var(--gold);
  padding-left: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  max-width: 50rem;
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--graphite);
  margin-bottom: 1rem;
}
.testimonial figcaption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 0.85rem; }
.faq__item {
  border: 1px solid var(--grey);
  border-radius: var(--r-s);
  background: #fff;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--graphite);
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--blue);
  flex: none;
  transition: transform 200ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.97rem;
  max-width: 65ch;
}

/* ============================================================
   Final CTA + footer
   ============================================================ */
.cta-final {
  position: relative;
  background: linear-gradient(165deg, var(--pine-soft) 0%, var(--pine) 52%, var(--pine-deep) 100%);
  color: var(--ink-on-dark);
  padding-block: clamp(5rem, 4rem + 3vw, 7.5rem);
  overflow: hidden;
  text-align: center;
}
.cta-final__inner { position: relative; max-width: 46rem; }
.cta-final h2 {
  color: #fff;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: 1.1rem;
}
.cta-final p { margin-bottom: 2rem; font-size: 1.1rem; }
.cta-final__note {
  margin: 1.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-on-dark-dim);
}

.footer {
  background: var(--graphite);
  color: var(--ink-on-dark-dim);
  padding-block: 3rem;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--on-dark);
  text-decoration: none;
}
.footer__lockup:hover { text-decoration: none; }
.footer__lockup .ordo-mark { color: var(--mint); }
.footer__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-on-dark-dim);
  font-size: 0.96rem;
  max-width: 22rem;
}
.footer__meta { font-size: 0.9rem; text-align: right; }
.footer__meta a { color: var(--ink-on-dark); }
.footer__fine { margin-top: 0.6rem; font-size: 0.78rem; }

/* ============================================================
   Reveal system (JS-gated so no-JS users see everything)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* staggered children for grids */
.js .builds.reveal .build,
.js .packages.reveal .package,
.js .timeline.reveal .timeline__phase {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js .reveal.in-view .build,
.js .reveal.in-view .package,
.js .reveal.in-view .timeline__phase {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal.in-view > :nth-child(2) { transition-delay: 70ms; }
.js .reveal.in-view > :nth-child(3) { transition-delay: 140ms; }

/* Ledger rows slide in from the left, like entries being logged */
.js .ledger.reveal .ledger__row {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js .ledger.reveal.in-view .ledger__row {
  opacity: 1;
  transform: translateX(0);
}
.js .ledger.reveal.in-view .ledger__row:nth-child(2) { transition-delay: 60ms; }
.js .ledger.reveal.in-view .ledger__row:nth-child(3) { transition-delay: 120ms; }
.js .ledger.reveal.in-view .ledger__row:nth-child(4) { transition-delay: 180ms; }
.js .ledger.reveal.in-view .ledger__row:nth-child(5) { transition-delay: 240ms; }
.js .ledger.reveal.in-view .ledger__row:nth-child(6) { transition-delay: 300ms; }

/* Rail markers pop once the stage scrolls into view */
.js .approach__rail.reveal .rail__marker {
  transform: scale(0.5);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 320ms var(--ease-out);
}
.js .approach__rail.reveal.in-view .rail__marker { opacity: 1; }
.js .approach__rail.reveal.in-view .rail__marker { transform: scale(1); }
.js .approach__rail.reveal.in-view .rail__stage:nth-child(2) .rail__marker { transition-delay: 150ms; }
.js .approach__rail.reveal.in-view .rail__stage:nth-child(3) .rail__marker { transition-delay: 300ms; }

/* Testimonial: quiet crossfade only, no movement */
.js .testimonial.reveal { transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__console { max-width: 460px; }
  .approach { grid-template-columns: 1fr; }
  .founder-card { position: static; }
  .dossier__body { grid-template-columns: 1fr; }
  .builds, .packages { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 200ms var(--ease-out), opacity 200ms ease;
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) {
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__links .btn { margin-top: 1rem; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .ledger__row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem 1.4rem; }
  .ledger__row--head { display: none; }
  .ledger__cost { font-family: var(--font-mono); font-size: 0.8rem; }
  .dossier__tabs { grid-template-columns: 1fr 1fr; }
  .dossier__tab { border-bottom: 1px solid rgba(248, 250, 252, 0.1); }
  .builds, .packages { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

/* ============================================================
   Reduced motion: collapse everything to static
   ============================================================ */
@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;
  }
  .js .reveal,
  .js .reveal-line > span,
  .js .builds.reveal .build,
  .js .packages.reveal .package,
  .js .timeline.reveal .timeline__phase,
  .js .ledger.reveal .ledger__row,
  .js .approach__rail.reveal .rail__marker {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .js .os__dot { animation: none; }
  .js .orbit-ring, .js .orbit-ring .orbit-chip { animation: none; }
  .scroll-progress { display: none; }
}

/* ============================================================
   Orbit · the stack I build on and connect (Builds section)
   Two counter-rotating rings of tool logos around the RD core.
   ============================================================ */
.orbit { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem); }
.orbit-stage {
  position: relative;
  margin: 0 auto;
  width: min(620px, 92vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(20, 17, 13, 0.16);
}
.orbit-ring--1 { width: 58%; height: 58%; }
.orbit-ring--2 { width: 92%; height: 92%; }
.js .orbit-ring--1 { animation: orbit-spin 46s linear infinite; }
.js .orbit-ring--2 { animation: orbit-spin-rev 70s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }
.orbit-sat { position: absolute; width: 0; height: 0; }
.orbit-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 50px;
  margin: -25px 0 0 -50px;
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 14px;
  box-shadow: 0 10px 24px -14px rgba(20, 17, 13, 0.28);
  padding: 9px 13px;
  transition: box-shadow 200ms var(--ease-out);
}
.js .orbit-ring--1 .orbit-chip { animation: orbit-spin-rev 46s linear infinite; }
.js .orbit-ring--2 .orbit-chip { animation: orbit-spin 70s linear infinite; }
.orbit-chip img {
  max-height: 24px;
  max-width: 78px;
  object-fit: contain;
  transition: transform 200ms var(--ease-out);
}
.orbit-chip:hover { box-shadow: 0 16px 30px -16px rgba(20, 17, 13, 0.38); }
.orbit-chip:hover img { transform: scale(1.12); }
.orbit-core {
  position: relative;
  z-index: 3;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(140% 140% at 50% 25%, var(--navy-3), var(--navy) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: 0 0 0 10px rgba(194, 161, 91, 0.08), 0 0 0 22px rgba(194, 161, 91, 0.04), 0 24px 50px -24px rgba(9, 39, 30, 0.5);
}
.orbit-core__shield { width: 66px; height: auto; color: var(--mint); }
.orbit-note {
  margin: 1.6rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--slate);
}
@media (max-width: 640px) {
  .orbit-chip { width: 78px; height: 40px; margin: -20px 0 0 -39px; padding: 6px 8px; border-radius: 11px; }
  .orbit-chip img { max-height: 18px; max-width: 58px; }
  .orbit-core { width: 112px; height: 112px; }
  .orbit-core__shield { width: 44px; }
}

/* ============================================================
   Motion upgrades · hero draw-on, scroll rail, card depth, magnetic CTAs
   ============================================================ */

/* ---- Hero console: reveal + chart draw (triggered by .is-live from JS) ---- */
.js .hero__console .os__bar,
.js .hero__console .os__chart,
.js .hero__console .os__tiles,
.js .hero__console .os__pipe {
  opacity: 0;
  transform: translateY(14px);
}
.js .hero__console.is-live .os__bar,
.js .hero__console.is-live .os__chart,
.js .hero__console.is-live .os__tiles,
.js .hero__console.is-live .os__pipe {
  animation: os-rise 560ms var(--ease-out) forwards;
}
.js .hero__console.is-live .os__chart { animation-delay: 120ms; }
.js .hero__console.is-live .os__tiles { animation-delay: 220ms; }
.js .hero__console.is-live .os__pipe  { animation-delay: 320ms; }
@keyframes os-rise { to { opacity: 1; transform: translateY(0); } }

.js .hero__console .os__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero__console.is-live .os__line { animation: os-draw 1100ms var(--ease-out) 260ms forwards; }
@keyframes os-draw { to { stroke-dashoffset: 0; } }

.js .hero__console .os__area,
.js .hero__console .os__tip { opacity: 0; }
.js .hero__console.is-live .os__area { animation: os-fade 700ms var(--ease-out) 640ms forwards; }
.js .hero__console.is-live .os__tip  { animation: os-fade 400ms var(--ease-out) 1200ms forwards; }
@keyframes os-fade { to { opacity: 1; } }

/* ---- Approach rail: spine fills as you scroll, markers light up ---- */
.rail::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 2px;
  height: calc((100% - 20px) * var(--rail-progress, 0));
  background: linear-gradient(var(--navy), var(--blue));
  border-radius: 2px;
}
.js .rail__marker {
  transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.js .rail__stage.is-active .rail__marker {
  background: var(--brass);
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(194, 161, 91, 0.20);
}

/* ---- Card depth: cursor spotlight + tilt (build + package cards) ---- */
.build,
.package:not(.package--featured) {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  background:
    radial-gradient(220px circle at var(--mx) var(--my), rgba(31, 138, 102, var(--spot)), transparent 65%),
    var(--paper-2);
}
.package--featured {
  --mx: 50%;
  --my: 50%;
  --spot: 0;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(194, 161, 91, var(--spot)), transparent 60%),
    var(--pine);
}
.js .build,
.js .package {
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.js .build.is-tilting,
.js .package.is-tilting {
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  box-shadow: 0 24px 50px -28px rgba(11, 31, 58, 0.45);
}

/* ---- Magnetic CTA: JS sets the transform; keep it smooth on release ---- */
.js .btn--red,
.js .btn--blue {
  will-change: transform;
}

/* ---- Floating WhatsApp FAB · ping ring + unread badge + auto-peek label ---- */
.fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 90;
  display: flex;
  align-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(18, 42, 30, 0.5);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.fab:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 18px 38px -12px rgba(18, 42, 30, 0.55);
}
.fab:active { transform: scale(0.97); }
.fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.45), 0 18px 38px -12px rgba(18, 42, 30, 0.55);
}
.fab__icon {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab__icon svg { position: relative; width: 28px; height: 28px; }
.js .fab__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fab-ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fab-ping {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
.fab__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  border: 2px solid #fff;
}
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: max-width 320ms var(--ease-out), opacity 240ms var(--ease-out), padding 320ms var(--ease-out);
}
.fab:hover .fab__label,
.fab:focus-visible .fab__label,
.fab.peek .fab__label { max-width: 190px; opacity: 1; padding-right: 20px; }

/* ---- Reduced-motion: settle everything to final state, no autoplay ---- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__console .os__bar,
  .js .hero__console .os__chart,
  .js .hero__console .os__tiles,
  .js .hero__console .os__pipe { opacity: 1; transform: none; animation: none; }
  .js .hero__console .os__line { stroke-dashoffset: 0; animation: none; }
  .js .hero__console .os__area,
  .js .hero__console .os__tip { opacity: 1; animation: none; }
  .js .os__dot { animation: none; }
  .js .fab__icon::before { animation: none; }
}

/* ============================================================
   Premium polish · typography, atmosphere, depth
   (Fraunces display + Inter body + IBM Plex Mono labels)
   ============================================================ */

/* Anchor offset so the sticky nav never covers a jumped-to section */
section[id] { scroll-margin-top: 88px; }

/* Display typography: stronger weight + scale contrast, even line breaks */
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.hero__title {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h2 { font-weight: 500; letter-spacing: -0.012em; }
.section__head h2 { font-size: clamp(2.05rem, 1.5rem + 2vw, 3.1rem); }
.about__body h2 { font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.55rem); line-height: 1.08; }

/* Body measure + reading comfort on Geist */
.hero__sub, .section__head p, .about__lead, .about__body > p { max-width: 60ch; }

/* Film grain: fixed, pointer-events-none, faint. Adds tactile depth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero atmosphere: a low gold glow + deeper navy field behind the grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(79, 209, 160, 0.16), transparent 60%),
    radial-gradient(70% 60% at 12% 88%, rgba(194, 161, 91, 0.12), transparent 64%);
}
.hero__inner, .hero .container { position: relative; z-index: 1; }

/* Refined hero supporting line */
.hero__note {
  letter-spacing: 0.01em;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1rem;
  max-width: 38rem;
}

/* Gold hairline brand motif: a short accent rule on light-section heads */
.section--light .section__head h2::after,
.section--grey .section__head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass), rgba(194, 161, 91, 0));
}

/* Tighten mono labels on the new Geist Mono (it runs a touch wide) */
.eyebrow, .build__type, .rail__deliverable, .dossier__tab-id,
.ledger__id, .package__flag, .timeline__weeks, .about__caption {
  letter-spacing: 0.02em;
}

/* ============================================================
   Trust chips · "no handoff" (about) + "built for / not for" (services)
   ============================================================ */
.about__trust,
.cta-final__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about__trust { color: var(--ink-soft); margin: 1.4rem 0 0.4rem; }
.about__trust li,
.cta-final__trust li {
  position: relative;
  padding-left: 1.25rem;
}
.about__trust li::before,
.cta-final__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.fit__col {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--paper-2);
  padding: 1.5rem 1.6rem;
}
.fit__col--yes {
  border-color: rgba(31, 138, 102, 0.32);
  background: rgba(31, 138, 102, 0.045);
}
.fit__head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}
.fit__col--yes .fit__head { color: var(--green-2); }
.fit__col--no .fit__head { color: var(--ink-dim); }
.fit__col ul { list-style: none; display: grid; gap: 0.6rem; }
.fit__col li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.fit__col--yes li::before { content: "+"; color: var(--green-2); }
.fit__col--no li::before { content: "–"; color: var(--ink-dim); }
.fit__col li::before {
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================================
   Lead form (inside the dark final-CTA bookend)
   ============================================================ */
.lead-form {
  max-width: 640px;
  margin: 2.25rem auto 0;
  text-align: left;
}
.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-on-dark-dim);
}
.field input,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-on-dark);
  background: rgba(242, 239, 233, 0.05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-s);
  padding: 0.8rem 0.9rem;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  width: 100%;
}
.field select { appearance: none; cursor: pointer; }
.field input::placeholder { color: var(--ink-on-dark-dim); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(242, 239, 233, 0.08);
}
.field input:user-invalid,
.field select:user-invalid { border-color: var(--leak); }
.lead-form__submit { margin-top: 1.4rem; width: 100%; }
.lead-form__status {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}
.lead-form__status.is-ok { color: #7FD1A8; }
.lead-form__status.is-error { color: #F0A097; }
/* Honeypot: visually and programmatically removed from the flow */
.lead-form__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
.cta-final__alt {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-on-dark-dim);
}
.cta-final__alt a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cta-final__alt a:hover { color: #fff; }
.cta-final__trust {
  justify-content: center;
  color: var(--ink-on-dark-dim);
  margin-top: 1.6rem;
}

@media (max-width: 560px) {
  .fit { grid-template-columns: 1fr; }
  .lead-form__grid { grid-template-columns: 1fr; }
}
