/* PATCH: snapshot result box redesigned (owner feedback) + new components for the
   free-vs-paid boundary grid, the single synthetic proof sample, and the
   operator-program note. Tokens-only: the :root block is untouched; every new rule
   composes existing tokens. Run npm run design:check / design:contrast after apply. */
/* ============================================================
   Operon — first website
   Design tokens
   Generated-from: design/tokens.json (canonical W3C DTCG token
   source; see /DESIGN.md). Token-mapped values below are verified
   by `npm run design:check`. The rgba() alpha layers are kept as
   authored — their solid composites are the normative token hexes.
   ============================================================ */
:root {
  --bg: #08090b;
  --bg-raised: #0d0f13;
  --bg-overlay: #0a0b0e;  /* opaque overlays (mobile nav dropdown) */
  --bg-card: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --text-secondary: rgba(226, 230, 237, 0.68);
  --text-tertiary: rgba(226, 230, 237, 0.58); /* ≥4.5:1 on --bg/--bg-raised (WCAG AA) */
  --border-input: rgba(255, 255, 255, 0.35);  /* ≥3:1 on --bg-raised (WCAG 1.4.11) */
  --accent: #7b87ff;      /* indigo */
  --accent-2: #b195ff;    /* violet */
  --accent-bright: #9d8bff; /* gradient end for the primary action */
  --accent-dim: rgba(123, 135, 255, 0.14);
  --on-accent: #0a0a14;   /* near-black text on accent fills */
  --error: #ff9a9a;       /* form errors (status-danger-dark) */
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1120px;
  --nav-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: rgba(123, 135, 255, 0.35); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent); /* was #0a0a12 — Δ2/255 blue channel, imperceptible */
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Typography ============ */
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 640;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.kicker {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-sub {
  margin-top: 16px;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 28px rgba(123, 135, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 10px 34px rgba(123, 135, 255, 0.32);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 8px; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 34px; height: 34px; color: var(--text); flex-shrink: 0; }
.wordmark {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* visually recenters wide tracking */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vh, 150px) 0 clamp(80px, 11vh, 130px);
  background:
    radial-gradient(ellipse 60% 45% at 78% 38%, rgba(123, 135, 255, 0.1), transparent 65%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 100% 100%, 28px 28px;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--container); }
.hero-orbit {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: min(760px, 78vw);
  aspect-ratio: 1;
  color: var(--text);
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 74%);
  mask-image: radial-gradient(circle at center, black 55%, transparent 74%);
}
.orbit-slow, .orbit-medium, .orbit-fast { transform-origin: 400px 400px; }
.orbit-slow   { animation: orbit 140s linear infinite; }
.orbit-medium { animation: orbit 95s linear infinite reverse; }
.orbit-fast   { animation: orbit 70s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  max-width: 480px;
}

/* ============ Sections ============ */
.section { padding: clamp(72px, 10vh, 120px) 0; }
.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.ladder-head { margin-top: clamp(64px, 9vh, 104px); }

/* ============ Step cards (How it works) ============ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.step-card:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.step-num {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step-num::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.93rem; color: var(--text-secondary); }

/* ============ Service cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent-2);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--text-secondary); }

/* ============ Audit section ============ */
.audit-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.check-list {
  margin: 28px 0 34px;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background:
    radial-gradient(circle at center, var(--accent) 0 3px, transparent 3.5px);
  opacity: 0.9;
}
.audit-deliverables {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(123, 135, 255, 0.05), transparent 45%),
    var(--bg-raised);
  display: grid;
  gap: 22px;
}
.deliverables-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.deliverable {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.deliverable-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-dim);
}
.deliverable h3 { margin-bottom: 5px; font-size: 0.98rem; }
.deliverable p { font-size: 0.9rem; color: var(--text-secondary); }

/* ============ Pills (status labels) ============ */
.pill {
  display: inline-block;
  padding: 3px 12px;
  margin-left: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
  vertical-align: 2px;
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; /* fallback for browsers without alt-text content syntax */
  content: "+" / ""; /* empty alt: keep the glyph out of the accessible name */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ============ Proof of work ============
   The dashed "coming soon" placeholder cards are retired (OPE-398 §6): the section
   now carries ONE clearly-labeled synthetic worked example. */
.proof-sample {
  display: grid;
  gap: 14px;
  max-width: 860px;
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(123, 135, 255, 0.05), transparent 45%),
    var(--bg-raised);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.proof-sample:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.proof-sample h3 { font-size: 1.15rem; }
.proof-sample p { font-size: 0.95rem; color: var(--text-secondary); max-width: 62ch; }
.proof-sample-cta { font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.proof-sample:hover .proof-sample-cta { color: var(--accent-2); }
.pill-synthetic {
  margin-left: 0;
  width: fit-content;
  white-space: normal;
  padding: 5px 14px;
}
.proof-note {
  margin-top: 20px;
  max-width: 720px;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}
.proof-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.proof-note a:hover { color: var(--text); }

/* ============ About ============ */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-body { margin-top: 20px; display: grid; gap: 16px; }
.about-body p { color: var(--text-secondary); }
.principles { display: grid; gap: 14px; }
.principles li {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-card);
}
.principles h3 { margin-bottom: 6px; font-size: 0.98rem; }
.principles p { font-size: 0.9rem; color: var(--text-secondary); }

/* ============ Contact ============ */
.section-contact {
  background:
    radial-gradient(ellipse 55% 60% at 50% 115%, rgba(123, 135, 255, 0.12), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.contact-container { max-width: 780px; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-tag {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text); }
.footer-meta { display: grid; gap: 6px; }
.footer-legal { font-size: 0.82rem; color: var(--text-tertiary); }
.footer-agent-links { font-size: 0.78rem; color: var(--text-tertiary); }
.footer-agent-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-agent-links a:hover { color: var(--text); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-orbit { right: -280px; opacity: 0.55; }
}

/* Desktop nav needs ~860px to fit; switch to the hamburger before it wraps. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: none;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin: 16px 0 0; }
}

@media (max-width: 820px) {
  .audit-layout, .about-layout { grid-template-columns: 1fr; }
  /* Below this width the orbit graphic can drift over the hero copy. */
  .hero-orbit { display: none; }
}

@media (max-width: 640px) {
  .step-grid, .card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .cta-row .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-slow, .orbit-medium, .orbit-fast { animation: none; }
  .btn, .card, .step-card { transition: none; }
}

/* ============================================================
   OPERON-REHEARSAL-1 additions (composed from existing tokens
   only — the :root token block above is untouched).
   ============================================================ */

/* ---- Private preview banner (visible without JS, above the nav) ---- */
.preview-banner {
  margin: 0;
  padding: 10px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--accent-dim);
  border-bottom: 1px solid var(--border);
}

/* ---- Inert controls (visibly disabled, never dead-looking-live) ---- */
.is-inert {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-inert:hover { transform: none; box-shadow: none; }

/* Nav preview pill spacing (replaces the old nav CTA button) */
.nav-links .pill { margin-left: 6px; }
@media (max-width: 900px) {
  .nav-links .pill { margin: 16px 0 0; align-self: flex-start; }
}

/* ---- (Retired) Snapshot card ----
   The 6-question Operating Friction Snapshot is retired (R5 ruling / OPE-334 D2):
   the SPOF Continuity Check at /diagnostic/ is THE free rung. The #snapshot-card,
   .card-option, .card-nav, .snapshot-doc and print-result rules that lived here are
   removed with the section; card/ leaves the deploy in the same change. */

/* ---- Risk-brief order block (UX panel B1: a real, named order path) ---- */
.step-card-order { grid-column: span 2; }
.order-block {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(123, 135, 255, 0.05), transparent 45%),
    var(--bg-raised);
}
.order-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.order-block > p:not(.order-label) { font-size: 0.93rem; color: var(--text-secondary); max-width: 62ch; }
.order-block .cta-row { margin-top: 18px; }
.order-fine {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.order-fine a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.order-fine a:hover { color: var(--text); }
@media (max-width: 1024px) { .step-card-order { grid-column: span 2; } }
@media (max-width: 640px) { .step-card-order { grid-column: auto; } }

/* ---- Free vs. paid boundary (OPE-398 §4) ---- */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.boundary-col {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.boundary-col:nth-child(2) {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(123, 135, 255, 0.05), transparent 45%),
    var(--bg-card);
}
.boundary-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.boundary-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.boundary-rows { margin: 0; }
.boundary-rows dt {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.boundary-rows dd {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.boundary-rows dd a { color: var(--accent); }
.boundary-rows dd a:hover { color: var(--accent-2); }
.boundary-note {
  margin-top: 26px;
  max-width: 720px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
@media (max-width: 1024px) { .boundary-grid { grid-template-columns: 1fr; } }

/* ---- Operator-program note (contact section; third engine, low-key) ---- */
.operator-note {
  margin-top: 44px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-card);
  text-align: left;
}
.operator-kicker {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.operator-note p:not(.operator-kicker) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 66ch;
}
/* Closing line of the offer deliverables panel */
.deliverables-note {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .proof-sample, .boundary-col { transition: none; }
}

/* Long status pills must wrap on narrow screens —
   nowrap pills wider than the viewport caused horizontal overflow at 375px. */
@media (max-width: 480px) {
  .pill { white-space: normal; text-align: center; }
}

/* ---- Mobile fold (UX panel m1): tighter banner + hero so the primary CTA
   lands at or above the fold at 375×812. Verify on device before deploy. ---- */
@media (max-width: 640px) {
  .preview-banner { padding: 8px 16px; font-size: 0.8rem; }
  .hero { padding-top: 44px; padding-bottom: 64px; }
  .eyebrow { margin-bottom: 14px; padding: 5px 12px; font-size: 0.74rem; }
  h1 { font-size: clamp(2.02rem, 8.6vw, 2.3rem); }
  .lede { margin-top: 14px; font-size: 1.02rem; }
  .cta-row { margin-top: 22px; }
  .hero-note { margin-top: 20px; }
}

/* ---- Screen-reader-only utility (card progress live region) ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SELL-NOW-1 W4 — story section ("A business coming into focus")
   Static-SVG narrative path is the shipped baseline (JS off,
   reduced motion, ≤820px). story.js adds .story-enhanced on
   capable desktop and re-tells the same beats on a sticky canvas.
   Composed from existing tokens only — :root above is untouched.
   ============================================================ */

.story-head { max-width: 720px; margin-bottom: 44px; }

.story-beats { max-width: 760px; }

/* Narrative path: each beat carries a node marker and the segment of
   path below it. Dashed gray = not yet confirmed (beats 2–4); from the
   approval beat on (beats 5–8) the marker fills and the path runs solid
   indigo — the solid/hollow rule, applied to the page itself. */
.story-beat {
  position: relative;
  padding: 0 0 60px 42px;
}
.story-beat::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: -4px;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.28);
}
.story-beat:last-child { padding-bottom: 8px; }
.story-beat:last-child::before { display: none; }
.story-beat::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  background: transparent;
}
.story-turn::before,
.story-turn ~ .story-beat::before {
  border-left-style: solid;
  border-left-color: var(--accent);
}
.story-turn::after,
.story-turn ~ .story-beat::after {
  border: 1px solid var(--accent);
  background: var(--accent);
}

.story-figure {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
}
.story-figure svg { width: 100%; height: auto; }

/* Figure line/node vocabulary (SVG classes; CSP forbids style attrs) */
.sf-g { stroke: currentColor; }
.sf-a { stroke: var(--accent); }
.sf-a2 { stroke: var(--accent-2); }
.sf-fg { fill: currentColor; }
.sf-fa { fill: var(--accent); }
.sf-fa2 { fill: var(--accent-2); }
.sf-chip { stroke: var(--border-strong); fill: rgba(255, 255, 255, 0.03); }
.sf-label { fill: var(--text-secondary); font: 500 11px var(--font); letter-spacing: 0.02em; }
.sf-mini { fill: var(--text-tertiary); font: 600 9px var(--font); letter-spacing: 0.08em; }

.story-text {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
}
.story-close .story-text {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
}
.story-close .cta-row { margin-top: 24px; }
.story-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  max-width: 56ch;
}

/* ---- Progressive enhancement (set by story.js on capable desktop only:
   JS on, pointer-fine viewport >820px, no reduced-motion preference).
   The static figures hide; a sticky canvas behind the beats re-tells the
   same eight beats, driven purely by scroll position (no timers). ---- */
.story-stage { display: none; }
.story-enhanced .story-stage {
  display: block;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  pointer-events: none;
  z-index: 0;
}
.story-enhanced .story-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.story-enhanced .story-beats { position: relative; z-index: 1; }
.story-enhanced .story-figure { display: none; }
.story-enhanced .story-beat {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  max-width: 480px;
}
.story-enhanced .story-beat::before,
.story-enhanced .story-beat::after { display: none; }
.story-enhanced .story-text,
.story-enhanced .story-note {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.story-enhanced .story-close {
  align-items: flex-start;
}

/* Belt-and-braces: even if the class is present, reduced motion and
   narrow screens always get the static narrative path. */
@media (prefers-reduced-motion: reduce) {
  .story-enhanced .story-stage { display: none; }
  .story-enhanced .story-figure { display: block; }
  .story-enhanced .story-beat {
    min-height: 0;
    display: block;
    padding: 0 0 60px 42px;
  }
  .story-enhanced .story-beat:last-child { padding-bottom: 8px; }
  .story-enhanced .story-beat::before,
  .story-enhanced .story-beat::after { display: block; }
  .story-enhanced .story-beat:last-child::before { display: none; }
  .story-enhanced .story-text,
  .story-enhanced .story-note {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 820px) {
  .story-enhanced .story-stage { display: none; }
  .story-enhanced .story-figure { display: block; }
  .story-enhanced .story-beat {
    min-height: 0;
    display: block;
    padding: 0 0 60px 42px;
  }
  .story-enhanced .story-beat:last-child { padding-bottom: 8px; }
  .story-enhanced .story-beat::before,
  .story-enhanced .story-beat::after { display: block; }
  .story-enhanced .story-beat:last-child::before { display: none; }
  .story-enhanced .story-text,
  .story-enhanced .story-note {
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---- Print: the snapshot-card print path is retired with the card; keep a
   plain legible fallback (dark backgrounds don't print). ---- */
@media print {
  .preview-banner, .nav, .footer, .hero-orbit { display: none; }
  * { background: transparent !important; color: #000 !important; box-shadow: none !important; }
  body { background: #fff !important; }
}
