/* ============================================================
   Practice Operators — design system v2 "Well-Run Practice"
   Light-first warm premium · one dark governance band
   Display: Bricolage Grotesque · Body: Instrument Sans · Mono: IBM Plex Mono
   ============================================================ */

:root {
  /* surfaces */
  --paper: #F7F4EC;
  --paper-2: #F0ECDF;
  --card: #FFFFFF;
  --ink: #17201B;
  --ink-2: #3A4741;
  --muted: #5E6B65;
  --line: #E4DECE;
  --line-strong: #D3CBB4;

  /* brand green */
  --green-950: #0A2E1F;
  --green-900: #0C3B27;
  --green-800: #0D4B30;
  --green-700: #10603D;
  --green-600: #147A4C;
  --green-500: #1E9C62;
  --mint: #E2F2E8;
  --mint-ink: #0D5434;

  /* status */
  --amber-ink: #8A5D14;
  --amber-bg: #F7E9CC;
  --leak-ink: #9C4A33;
  --leak-bg: #F6E1D9;

  /* dark band */
  --dark: #0D1512;
  --dark-2: #121D18;
  --dark-card: #16231D;
  --dark-text: #E9F0EB;
  --dark-muted: #99A9A0;
  --dark-line: rgba(233, 240, 235, 0.11);
  --run: #3FD98A;
  --run-soft: rgba(63, 217, 138, 0.14);

  /* type */
  --font-display: "Bricolage Grotesque", "Avenir Next", ui-sans-serif, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shape & motion */
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 50px -24px rgba(23, 32, 27, 0.18), 0 4px 14px -8px rgba(23, 32, 27, 0.08);
  --shadow-lift: 0 34px 70px -28px rgba(23, 32, 27, 0.26), 0 6px 18px -10px rgba(23, 32, 27, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
  --section-y: clamp(5.5rem, 10vw, 9.5rem);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -0.02em; margin: 0; font-weight: 640; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--green-700); color: #fff; }
:focus-visible { outline: 2.5px solid var(--green-600); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 10px;
  transition: top 0.2s var(--ease); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0.05;
  mix-blend-mode: multiply;
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 130; pointer-events: none;
}
.progress > i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
section { position: relative; }
.section { padding-block: var(--section-y); }
section[id], .final-cta[id] { scroll-margin-top: 6rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-700);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.45rem 0.95rem; background: rgba(255, 255, 255, 0.6);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 0 3px var(--mint);
}
.dark-band .eyebrow { color: var(--run); border-color: var(--dark-line); background: rgba(233, 240, 235, 0.04); }
.dark-band .eyebrow::before { background: var(--run); box-shadow: 0 0 0 3px var(--run-soft); }

.h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 1.4rem; max-width: 21ch; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 58ch; margin-top: 1.35rem; }
.center { text-align: center; }
.center .h2, .center .lede { margin-inline: auto; }

em.swash { font-style: italic; font-weight: 560; color: var(--green-700); }
.dark-band em.swash { color: var(--run); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 110; width: min(var(--container), calc(100% - 2rem));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.65rem 0.55rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 249, 243, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
  box-shadow: 0 12px 34px -18px rgba(23, 32, 27, 0.25);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 660; font-size: 1.06rem;
  letter-spacing: -0.01em; text-decoration: none;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 0 4px var(--mint);
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.94rem; font-weight: 540; color: var(--ink-2);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease); display: inline-block;
}
.nav-links a:hover { color: var(--ink); transform: translateY(-1px); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card);
  align-items: center; justify-content: center;
}
.menu-btn span { position: relative; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.32s var(--ease), background 0.2s; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.32s var(--ease);
}
.menu-btn span::before { top: -5.5px; } .menu-btn span::after { top: 5.5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; z-index: 105; inset: 0; padding: 6.2rem 1.6rem 2rem;
  background: rgba(247, 244, 236, 0.94);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: none; flex-direction: column; gap: 0.35rem;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu.is-visible { opacity: 1; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 620;
  text-decoration: none; padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--line);
  transform: translateY(14px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.mobile-menu.is-visible a { transform: none; opacity: 1; }
.mobile-menu a.btn {
  margin-top: 1.4rem; justify-content: center;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 600;
  border-bottom: 0; padding: 0.6rem 0.65rem 0.6rem 1.45rem;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.85rem;
  border-radius: 999px; text-decoration: none; border: 0;
  padding: 0.5rem 0.55rem 0.5rem 1.45rem;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  background: var(--green-700); color: #fff;
  transition: transform 0.28s var(--ease-spring), background 0.25s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 14px 30px -14px rgba(16, 96, 61, 0.55);
  overflow: hidden;
}
.btn:hover { background: var(--green-600); transform: translateY(-2px) scale(1.015); box-shadow: 0 20px 40px -16px rgba(16, 96, 61, 0.6); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .orb {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.16); display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease);
}
.btn .orb svg { width: 15px; height: 15px; transition: transform 0.32s var(--ease); }
.btn:hover .orb { background: rgba(255, 255, 255, 0.24); }
.btn:hover .orb svg { transform: translate(2px, -2px); }
.btn--sm { padding: 0.34rem 0.4rem 0.34rem 1.1rem; font-size: 0.92rem; }
.btn--sm .orb { width: 32px; height: 32px; }
.btn--light { background: var(--paper); color: var(--green-900); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.45); }
.btn--light:hover { background: #fff; }
.btn--light .orb { background: var(--green-700); color: #fff; }
.btn--light:hover .orb { background: var(--green-600); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 580; text-decoration: none; color: var(--ink-2);
  padding: 0.85rem 0.4rem; border-radius: 8px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--ink); transform: translateY(-1px); }
.btn-ghost svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateY(2px); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip;
  padding-top: clamp(7.5rem, 14vh, 10.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .wash {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.hero-bg .wash.w1 { width: 640px; height: 640px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(30, 156, 98, 0.22), transparent 65%); }
.hero-bg .wash.w2 { width: 520px; height: 520px; left: -200px; top: 180px; background: radial-gradient(circle, rgba(154, 106, 27, 0.13), transparent 65%); }
.hero-bg .gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 32, 27, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 32, 27, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 65% at 60% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(75% 65% at 60% 20%, #000 30%, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  font-weight: 660; letter-spacing: -0.028em; line-height: 1.02;
  margin-top: 1.5rem; max-width: 15ch;
}
.hero h1 .w { display: inline-block; }
/* rotating headline word (Viktor-style) */
.hero h1 .rot { display: inline-block; position: relative; }
.hero h1 .rot-word {
  display: inline-block; color: var(--green-700); font-style: italic; font-weight: 560;
  will-change: transform, filter, opacity;
}
.hero h1 .rot-word.out { animation: rotOut 0.42s var(--ease) forwards; }
.hero h1 .rot-word.in { animation: rotIn 0.52s var(--ease) forwards; }
@keyframes rotOut { to { opacity: 0; filter: blur(9px); transform: translateY(-0.42em); } }
@keyframes rotIn { from { opacity: 0; filter: blur(11px); transform: translateY(0.5em); } to { opacity: 1; filter: blur(0); transform: none; } }
.reduced .hero h1 .rot-word.out, .reduced .hero h1 .rot-word.in { animation: none; }
.hero-sub { margin-top: 1.6rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.19rem); max-width: 52ch; }
.hero-ctas { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }

.trust-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-strip > div {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.15rem 1rem 0.2rem 0; font-size: 0.9rem; font-weight: 550; color: var(--ink-2);
}
.trust-strip svg { width: 18px; height: 18px; color: var(--green-600); flex: none; }

/* hero entrance — CSS-driven so content is never left hidden if JS/GSAP lags */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero-sub, .hero-ctas > *, .trust-strip > div {
    opacity: 0; animation: heroIn 0.85s var(--ease) both;
  }
  .hero .artifact { opacity: 0; animation: heroFade 1s var(--ease) 0.28s both; }
  .hero .eyebrow { animation-delay: 0.06s; }
  .hero h1 { animation-delay: 0.16s; }
  .hero-sub { animation-delay: 0.42s; }
  .hero-ctas > * { animation-delay: 0.56s; }
  .hero-ctas > *:nth-child(2) { animation-delay: 0.64s; }
  .trust-strip > div { animation-delay: 0.70s; }
  .trust-strip > div:nth-child(2) { animation-delay: 0.76s; }
  .trust-strip > div:nth-child(3) { animation-delay: 0.82s; }
  .trust-strip > div:nth-child(4) { animation-delay: 0.88s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* visual artifact */
.artifact { position: relative; perspective: 1100px; }
.artifact--photo {
  padding: 0.48rem;
  border: 1px solid rgba(211, 203, 180, 0.88);
  border-radius: clamp(1.6rem, 3vw, 2.3rem);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-lift);
  transform-style: preserve-3d;
}
.hero-photo-card {
  position: relative;
  margin: 0;
  width: 100%;
  height: clamp(430px, 46vw, 610px);
  overflow: hidden;
  border-radius: calc(clamp(1.6rem, 3vw, 2.3rem) - 0.48rem);
  background: var(--paper-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.hero-photo-card--audit { height: clamp(390px, 43vw, 570px); }
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-photo-card--audit img { object-position: 44% 50%; }
.hero-photo-card--audit .photo-chip--bottom { display: none; }
.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 21, 18, 0.04), rgba(13, 21, 18, 0.68)),
    linear-gradient(90deg, rgba(13, 21, 18, 0.16), transparent 48%);
}
.photo-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.92);
  color: var(--green-900);
  box-shadow: 0 16px 34px -22px rgba(13, 21, 18, 0.55);
  padding: 0.55rem 0.82rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.photo-chip--top { top: 0.95rem; right: 0.95rem; }
.photo-chip--bottom { right: 0.95rem; bottom: 5.9rem; }
.photo-caption {
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  color: #F9FBF7;
}
.photo-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.photo-caption span {
  display: block;
  max-width: 34ch;
  margin-top: 0.45rem;
  color: rgba(249, 251, 247, 0.84);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* receipt artifact */
.receipt-stack { position: relative; transform-style: preserve-3d; }
.receipt {
  position: relative; background: #FDFCF7; border: 1px solid var(--line);
  border-radius: 14px 14px 4px 4px;
  box-shadow: var(--shadow-lift);
  padding: 1.35rem 1.4rem 1.7rem;
  font-family: var(--font-mono);
  transform: rotate(1.6deg);
  will-change: transform;
}
.receipt::after { /* perforated bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px;
  background:
    linear-gradient(-45deg, transparent 70%, #FDFCF7 71%) 0 0 / 14px 12px repeat-x,
    linear-gradient(45deg, transparent 70%, #FDFCF7 71%) 0 0 / 14px 12px repeat-x;
  transform: translateY(100%);
  filter: drop-shadow(0 6px 5px rgba(23, 32, 27, 0.07));
}
.receipt.ghost {
  position: absolute; inset: 0; z-index: -1;
  box-shadow: 0 18px 40px -22px rgba(23, 32, 27, 0.25);
}
.receipt.ghost.g1 { transform: rotate(-3deg) translate(-14px, 12px); background: #F6F3E9; }
.receipt.ghost.g2 { transform: rotate(5deg) translate(18px, 26px); background: #F2EEE2; }
.receipt-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.8rem; border-bottom: 1.5px dashed var(--line-strong);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.receipt-head strong { color: var(--ink); font-weight: 600; }
.receipt-lines { list-style: none; margin: 0; padding: 0.4rem 0 0; }
.receipt-lines li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: baseline;
  padding: 0.52rem 0; font-size: 0.8rem; border-bottom: 1px solid rgba(23, 32, 27, 0.05);
}
.receipt-lines .t { color: var(--muted); font-size: 0.72rem; }
.receipt-lines .d { color: var(--ink-2); line-height: 1.45; }
.chip {
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.55rem; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.chip--ok { background: var(--mint); color: var(--mint-ink); }
.chip--warn { background: var(--amber-bg); color: var(--amber-ink); }
.chip--esc { background: var(--leak-bg); color: var(--leak-ink); }
.chip--muted { background: #EEEBE0; color: var(--muted); }
.receipt-total {
  margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1.5px dashed var(--line-strong);
  display: flex; gap: 1.1rem; justify-content: space-between; flex-wrap: wrap;
}
.receipt-total b { display: block; font-size: 1.25rem; color: var(--green-700); font-weight: 600; }
.receipt-total span { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.receipt-caption {
  margin-top: 3.1rem; text-align: center; font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--muted);
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden; padding: 0.85rem 0;
  display: flex; user-select: none;
}
.marquee .track {
  display: flex; flex: none; align-items: center; gap: 2.6rem; padding-right: 2.6rem;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); white-space: nowrap;
  animation: marquee 46s linear infinite;
}
.marquee .track svg { width: 12px; height: 12px; color: var(--green-600); flex: none; }
.marquee .track > span { display: inline-flex; align-items: center; gap: 0.55rem; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- leaks ---------- */
.outcomes {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.outcome-grid {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 1rem;
}
.outcome-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(211, 203, 180, 0.82);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.outcome-card--wide { min-height: 430px; }
.outcome-card--tall {
  grid-row: span 2;
  min-height: 100%;
}
.outcome-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.outcome-card:hover img { transform: scale(1.035); }
.outcome-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(13, 21, 18, 0.02) 28%, rgba(13, 21, 18, 0.72));
}
.outcome-copy {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 3vw, 1.45rem);
  right: clamp(1rem, 3vw, 1.45rem);
  bottom: clamp(1rem, 3vw, 1.35rem);
  color: #F9FBF7;
}
.outcome-copy span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.9);
  color: var(--green-900);
  padding: 0.35rem 0.68rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.outcome-copy h3 {
  max-width: 17ch;
  margin-top: 0.75rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: #F9FBF7;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.leak-diagram { margin-top: clamp(2.5rem, 5vw, 4rem); }
.leak-diagram svg { width: 100%; height: auto; }
.pipe-flow { stroke-dasharray: 7 11; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.drip { animation: drip 2.6s var(--ease) infinite; transform-origin: center; opacity: 0; }
.drip.d2 { animation-delay: 0.9s; } .drip.d3 { animation-delay: 1.7s; }
@keyframes drip {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.9; }
  70% { transform: translateY(26px); opacity: 0.7; }
  100% { transform: translateY(34px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pipe-flow, .drip { animation: none; } .drip { opacity: 0.55; } }

.leak-grid {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem;
}
.leak-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.leak-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.leak-card:nth-child(1) { grid-column: span 7; }
.leak-card:nth-child(2) { grid-column: span 5; }
.leak-card:nth-child(3) { grid-column: span 5; }
.leak-card:nth-child(4) { grid-column: span 7; }
.leak-card .num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--leak-ink); display: inline-flex; align-items: center; gap: 0.5rem;
}
.leak-card .num::after { content: ""; height: 1px; width: 34px; background: var(--leak-bg); }
.leak-card h3 { font-size: 1.35rem; font-weight: 620; }
.leak-card p { color: var(--muted); font-size: 0.97rem; }
.kicker {
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em; max-width: 34ch;
  padding-left: 1.4rem; border-left: 3px solid var(--green-600);
}

/* ---------- reframe / comparison ---------- */
.compare {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.1rem; align-items: stretch;
}
.compare-col { border-radius: var(--radius-lg); padding: 1.9rem 1.8rem; }
.compare-col.old { background: transparent; border: 1.5px dashed var(--line-strong); }
.compare-col.new {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.compare-col.new::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
}
.compare-col h3 {
  font-size: 1.02rem; font-weight: 620; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.compare-col.old h3 { color: var(--muted); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.85rem 0; font-size: 0.98rem; border-top: 1px solid var(--line);
}
.compare-col.old li { color: var(--muted); border-top-color: rgba(211, 203, 180, 0.55); }
.compare-col li svg { width: 17px; height: 17px; flex: none; margin-top: 0.22rem; }
.compare-col.old li svg { color: var(--leak-ink); opacity: 0.75; }
.compare-col.new li svg { color: var(--green-600); }
.hold-line {
  margin-top: 1.9rem; display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--mint); color: var(--mint-ink); border-radius: 999px;
  padding: 0.8rem 1.35rem; font-weight: 600; font-size: 0.98rem;
}
.hold-line svg { width: 17px; height: 17px; flex: none; }

/* ---------- lanes bento ---------- */
.lane-grid {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem;
}
.lane {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft); overflow: hidden;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.lane:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.lane--w3 { grid-column: span 3; }
.lane--w2 { grid-column: span 2; }
.lane-head { display: flex; align-items: center; gap: 0.85rem; }
.lane-icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--mint); color: var(--green-700);
  display: grid; place-items: center;
}
.lane-icon svg { width: 21px; height: 21px; }
.lane h3 { font-size: 1.3rem; font-weight: 630; }
.lane .does { color: var(--muted); font-size: 0.97rem; }
.lane .wont {
  margin-top: auto; padding-top: 1rem; border-top: 1.5px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.6; color: var(--ink-2);
  display: flex; gap: 0.6rem;
}
.lane .wont svg { width: 15px; height: 15px; flex: none; margin-top: 0.1rem; color: var(--leak-ink); }
.lane .wont b { color: var(--leak-ink); font-weight: 600; letter-spacing: 0.06em; }

/* lane micro-UIs */
.micro { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #FBFAF4; padding: 0.9rem 1rem; min-height: 74px; display: flex; align-items: center; }
.wave { display: flex; align-items: center; gap: 3.5px; height: 34px; width: 100%; }
.wave i {
  flex: 1; background: var(--green-500); border-radius: 3px; height: 22%;
  animation: wave 1.5s var(--ease) infinite alternate;
}
.wave i:nth-child(3n) { animation-duration: 1.15s; }
.wave i:nth-child(4n) { animation-duration: 1.8s; height: 40%; }
.wave i:nth-child(5n) { animation-duration: 0.95s; }
@keyframes wave { from { transform: scaleY(0.4); } to { transform: scaleY(2.4); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; transform: scaleY(1.4); } }

.mini-chart { display: flex; align-items: flex-end; gap: 7px; height: 52px; width: 100%; }
.mini-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--mint); position: relative; transform-origin: bottom; }
.mini-chart i.hot { background: var(--green-500); }
.mini-chart i.flag { background: var(--amber-bg); outline: 1.5px dashed var(--amber-ink); outline-offset: -1.5px; }
.typer-line { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); width: 100%; line-height: 1.6; min-height: 2.6em; }
.typer-line .cursor { display: inline-block; width: 7px; height: 0.95em; background: var(--green-600); vertical-align: -0.12em; margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sortlist { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.sortlist > div {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.4rem 0.65rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-2);
  transition: transform 0.6s var(--ease-spring);
}
.lane-foot {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  font-size: 0.95rem; padding-top: 0.8rem;
}
.lane-foot b { color: var(--ink-2); font-weight: 600; }

/* ---------- sprint (sticky stack) ---------- */
.sprint-stack { margin-top: clamp(2.8rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.sprint-card {
  position: sticky; top: calc(88px + var(--i, 0) * 3rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start; min-height: 240px;
  will-change: transform;
}
.sprint-card .step {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-700); background: var(--mint); border-radius: 999px; padding: 0.5rem 0.9rem;
  white-space: nowrap;
}
.sprint-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 640; }
.sprint-card p { color: var(--muted); margin-top: 0.8rem; max-width: 56ch; }
.sprint-card .art { margin-top: 1.3rem; }
.ladder {
  margin-top: clamp(2.6rem, 5vw, 3.6rem); text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap;
}
.ladder svg { width: 13px; height: 13px; color: var(--green-600); }

/* ---------- dark governance band ---------- */
.dark-band {
  background: var(--dark); color: var(--dark-text);
  border-radius: clamp(1.8rem, 4vw, 3rem);
  margin-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  padding-block: var(--section-y);
  position: relative; overflow: clip;
}
.dark-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 75% 0%, rgba(63, 217, 138, 0.09), transparent 70%);
}
.dark-band .h2 { color: var(--dark-text); }
.dark-band .lede { color: var(--dark-muted); }
.gov-grid {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: start;
}
.gov-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gov-card {
  background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(233, 240, 235, 0.06);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.gov-card:hover { transform: translateY(-3px); border-color: rgba(63, 217, 138, 0.35); }
.gov-card svg { width: 22px; height: 22px; color: var(--run); }
.gov-card h3 { font-size: 1.12rem; font-weight: 620; margin-top: 0.9rem; color: var(--dark-text); }
.gov-card p { font-size: 0.9rem; color: var(--dark-muted); margin-top: 0.5rem; }
.log-panel {
  background: #0A110E; border: 1px solid var(--dark-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.log-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dark-muted);
}
.log-head .lights { display: flex; gap: 5px; margin-right: 0.4rem; }
.log-head .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-line); }
.log-head .lights i:first-child { background: var(--run); box-shadow: 0 0 8px var(--run-soft); }
.log-body { padding: 1.1rem 1.2rem 1.3rem; font-family: var(--font-mono); font-size: 0.79rem; }
.log-row {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(233, 240, 235, 0.06);
  opacity: 0; transform: translateY(8px);
}
.log-row.is-on { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.no-js .log-row, .reduced .log-row { opacity: 1; transform: none; }
.log-row .t { color: var(--dark-muted); font-size: 0.72rem; }
.log-row .d { color: #C7D4CC; line-height: 1.55; }
.log-row .d .arrow { color: var(--run); }
.log-row .d .warn { color: #E8C583; }
.log-caption { padding: 0 1.2rem 1.1rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--dark-muted); }

/* ---------- who it's for ---------- */
.fit-grid { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.1rem; }
.fit-col { border-radius: var(--radius-lg); padding: 1.9rem 1.8rem; }
.fit-col.yes { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.fit-col.no { border: 1.5px dashed var(--line-strong); }
.fit-col h3 { font-size: 1.15rem; font-weight: 630; margin-bottom: 0.6rem; }
.fit-col.no h3 { color: var(--muted); }
.fit-col li {
  display: flex; gap: 0.75rem; padding: 0.6rem 0; align-items: flex-start; font-size: 0.99rem;
}
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li svg { width: 17px; height: 17px; flex: none; margin-top: 0.24rem; }
.fit-col.yes li svg { color: var(--green-600); }
.fit-col.no li { color: var(--muted); }
.fit-col.no li svg { color: var(--line-strong); }

/* ---------- founder ---------- */
.founder-card {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4.5vw, 3rem); align-items: start;
}
.monogram {
  width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, var(--green-900), var(--green-600));
  color: #EAF6EE; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 640; font-size: 1.7rem; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-soft);
}
.founder-quote {
  font-family: var(--font-display); font-weight: 570; font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -0.015em; line-height: 1.28;
}
.founder-body { color: var(--muted); margin-top: 1.1rem; max-width: 62ch; }
.founder-sig { margin-top: 1.3rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(2.2rem, 4vw, 3rem); max-width: 780px; margin-inline: auto; }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.4rem;
  align-items: center; padding: 1.35rem 0.2rem;
  font-family: var(--font-display); font-weight: 610; font-size: 1.13rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; position: relative; transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s; }
.faq .pm::before, .faq .pm::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink-2); border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.faq .pm::before { width: 11px; height: 1.8px; }
.faq .pm::after { width: 1.8px; height: 11px; }
.faq[open] .pm { transform: rotate(45deg); background: var(--green-700); border-color: var(--green-700); }
.faq[open] .pm::before, .faq[open] .pm::after { background: #fff; }
.faq .faq-a { color: var(--muted); padding: 0 3rem 1.4rem 0.2rem; max-width: 64ch; }
.faq summary:hover { color: var(--green-900); }

/* ---------- final CTA ---------- */
.final-cta {
  position: relative; overflow: clip;
  background: linear-gradient(160deg, var(--green-950), var(--green-800) 55%, var(--green-700));
  color: #F2F8F3; border-radius: clamp(1.8rem, 4vw, 3rem);
  margin-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 110%, rgba(63, 217, 138, 0.28), transparent 70%);
}
.final-cta .eyebrow { color: #A8E3C2; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.final-cta .eyebrow::before { background: var(--run); box-shadow: 0 0 0 3px rgba(63, 217, 138, 0.25); }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 1.4rem auto 0; max-width: 18ch; color: #F6FBF7; }
.final-cta p { color: #BFDCC9; max-width: 56ch; margin: 1.3rem auto 0; font-size: 1.08rem; }
.final-cta .btn { margin-top: 2.2rem; }
.final-cta .reassure { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.74rem; color: #9CC9AD; letter-spacing: 0.03em; }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.2rem; align-items: start; }
.footer .brand { font-size: 1.15rem; }
.footer .tag { color: var(--muted); margin-top: 0.8rem; font-size: 0.92rem; max-width: 46ch; }
.footer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; transition: color 0.2s; }
.footer a:hover { color: var(--green-700); }
.footer-legal {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}
.status-ok { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--green-700); }
.status-ok i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 156, 98, 0.4); } 50% { box-shadow: 0 0 0 6px rgba(30, 156, 98, 0); } }

/* ---------- reveal utilities ---------- */
.rv { opacity: 0; transform: translateY(26px); }
.no-js .rv, .reduced .rv { opacity: 1; transform: none; }
.rv.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ---------- audit page extras ---------- */
.gov-cards--3 { margin-top: clamp(2.4rem, 5vw, 3.6rem); grid-template-columns: repeat(3, 1fr); }
.leak-grid--3 { margin-top: clamp(2.2rem, 4vw, 3rem); }
.leak-grid--3 .leak-card { grid-column: span 4; }

.audit-hero h1 { max-width: 17ch; }
.steps-3 { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.7rem 1.6rem; position: relative;
}
.step-card .n {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--green-700);
  background: var(--mint); border-radius: 999px; padding: 0.4rem 0.8rem; display: inline-block;
}
.step-card h3 { font-size: 1.25rem; margin-top: 1rem; }
.step-card p { color: var(--muted); font-size: 0.96rem; margin-top: 0.55rem; }
.get-list { margin-top: clamp(2.2rem, 4vw, 3rem); display: grid; gap: 1rem; max-width: 820px; }
.get-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.4rem 1.5rem;
}
.get-item svg { width: 20px; height: 20px; color: var(--green-600); flex: none; margin-top: 0.2rem; }
.get-item b { font-weight: 630; }
.get-item p { color: var(--muted); font-size: 0.96rem; margin-top: 0.25rem; }
.booking-box {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  padding: clamp(2rem, 5vw, 3rem); text-align: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.82rem;
}

/* ---------- live loop demo (Clinic Loop ring + operator console) ---------- */
.demo {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 1.2rem;
  align-items: stretch;
}
.demo-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: clamp(1.3rem, 3vw, 2rem);
}
.demo-loop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; }
.demo-loop svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.loop-ring { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.loop-node .nd { fill: var(--card); stroke: var(--line-strong); stroke-width: 2; transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.loop-node text { font-family: var(--font-mono); font-size: 12px; fill: var(--muted); transition: fill 0.4s var(--ease); }
.loop-node.active .nd { fill: var(--green-600); stroke: var(--green-600); }
.loop-node.active text { fill: var(--ink); }
.loop-node.done .nd { fill: var(--mint); stroke: var(--green-500); }
.loop-dot { fill: var(--green-500); filter: drop-shadow(0 0 7px rgba(30, 156, 98, 0.55)); }
.loop-center { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.06em; }
.loop-caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-align: center; max-width: 30ch; }

.demo-console {
  background: #0A110E; border: 1px solid var(--dark-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-height: 360px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.dc-head {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted);
}
.dc-head .lights { display: flex; gap: 5px; margin-right: 0.3rem; }
.dc-head .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-line); }
.dc-head .lights i:first-child { background: var(--run); box-shadow: 0 0 8px var(--run-soft); }
.dc-head .live { margin-left: auto; color: var(--run); display: inline-flex; align-items: center; gap: 0.4rem; }
.dc-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--run); animation: pulse 2s var(--ease) infinite; }
.dc-body {
  padding: 1.05rem 1.15rem; font-family: var(--font-mono); font-size: 0.78rem; color: #C7D4CC;
  flex: 1; display: flex; flex-direction: column; gap: 0.6rem;
  overflow-y: auto; scrollbar-width: thin;
}
.dc-row { opacity: 0; transform: translateY(6px); animation: dcIn 0.4s var(--ease) forwards; line-height: 1.55; }
@keyframes dcIn { to { opacity: 1; transform: none; } }
.dc-row .t { color: var(--dark-muted); }
.dc-row .arrow { color: var(--run); }
.dc-row .warn { color: #E8C583; }
.dc-quote { color: #EAF2EC; border-left: 2px solid var(--dark-line); padding-left: 0.7rem; display: inline-block; }
.dc-draft { color: #A8E3C2; background: rgba(63, 217, 138, 0.06); border: 1px dashed rgba(63, 217, 138, 0.28); border-radius: 9px; padding: 0.55rem 0.7rem; display: inline-block; }
.dc-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; vertical-align: middle; margin-right: 0.5rem; }
.dc-wave i { width: 3px; background: var(--run); border-radius: 2px; height: 30%; animation: dwave 0.9s var(--ease) infinite alternate; }
@keyframes dwave { from { height: 14%; } to { height: 92%; } }
.dc-row .chip { vertical-align: baseline; }
.demo-controls { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.demo-play .orb svg { width: 13px; height: 13px; }
.demo-play[disabled] { opacity: 0.62; cursor: default; transform: none; box-shadow: none; }
.demo-status { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.01em; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .artifact { max-width: 620px; }
  .gov-grid { grid-template-columns: 1fr; }
  .lane--w2 { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav .btn--sm { display: none; }
  .nav--lp .btn--sm { /* LP keeps its only CTA, compact */
    display: inline-flex; white-space: nowrap; font-size: 0.82rem;
    padding: 0.28rem 0.3rem 0.28rem 0.8rem; gap: 0.5rem;
  }
  .nav--lp .btn--sm .orb { width: 27px; height: 27px; }
  .nav--lp .brand { font-size: 0.98rem; }
  .menu-btn { display: inline-flex; }
  .gov-cards--3 { grid-template-columns: 1fr; }
  .leak-grid--3 .leak-card { grid-column: auto; }
  .demo { grid-template-columns: 1fr; }
  .demo-console { min-height: 320px; }
  .outcome-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .outcome-card--wide, .outcome-card--tall, .outcome-card { min-height: 330px; }
  .outcome-card--tall { grid-row: auto; }
  .trust-strip { grid-template-columns: 1fr 1fr; row-gap: 0.3rem; }
  .compare { grid-template-columns: 1fr; }
  .leak-grid { grid-template-columns: 1fr; }
  .leak-card:nth-child(n) { grid-column: auto; }
  .lane-grid { grid-template-columns: 1fr; }
  .lane--w3, .lane--w2 { grid-column: auto; }
  .gov-cards { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; }
  .sprint-card { grid-template-columns: 1fr; gap: 0.9rem; min-height: 0; top: calc(80px + var(--i, 0) * 0.8rem); }
  .sprint-card .step { justify-self: start; }
  .steps-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .faq .faq-a { padding-right: 0.5rem; }
}
.show-sm { display: none; }
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .hero-ctas { align-items: stretch; flex-direction: column; }
  .hero-ctas .btn { justify-content: space-between; }
  .hero h1 .rot-word { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .hero-photo-card { height: auto; min-height: 390px; aspect-ratio: 4 / 5; }
  .hero-photo-card img { object-position: 62% 50%; }
  .hero-photo-card--audit img { object-position: 44% 50%; }
  .photo-chip--bottom { display: none; }
  .photo-caption span { font-size: 0.84rem; }
  .outcome-card { min-height: 300px; }
  .trust-strip { grid-template-columns: 1fr; }
  .receipt { transform: rotate(0.8deg); }
}

/* touch: neutralise tilt */
@media (hover: none) {
  .lane:hover, .leak-card:hover, .gov-card:hover { transform: none; }
}
