/* ============================================================
   ROWSYS — The Operational Readiness Platform
   Design system: from the Rowsys homepage + About mockups (see ROWSYS MOCKUP SKIN at the end)
   WCAG 2.2 AA throughout, AAA contrast for body copy
   ============================================================ */

/* ---------- Tokens (Forethought-inspired: ice mint + deep petrol + lime/teal) ---------- */
:root {
  /* Surfaces */
  --paper: #F7FDFC;        /* ice-mint canvas */
  --paper-2: #FFFFFF;      /* white section alternation */
  --paper-3: #E9F4F1;      /* mint-100 fills */
  --card: #FFFFFF;
  --ink: #0D212D;          /* deep petrol — body text on mint ≈ 15.4:1 */
  --ink-soft: #3D5361;     /* petrol-600 — secondary ≈ 7.4:1 */
  --line: #D9E6E3;         /* mint hairlines */
  --line-soft: #E7F0EE;

  /* Dark surfaces — Forethought petrol */
  --pine-950: #081821;
  --pine-900: #0D212D;     /* dark section bg */
  --pine-800: #16303E;
  --pine-700: #23455A;
  --pine-600: #2E8FA3;
  --pine-link: #16506B;    /* steel-blue links ≈ 7.8:1 */

  /* Signal — Rowsys periwinkle accent (from the logo) + lime pop */
  --flame: #7785FF;        /* periwinkle: rules, focus, hover borders, graphics */
  --flame-deep: #4F5DE0;   /* hover text on light ≈ 5.1:1 */
  --flame-ink: #4350CF;    /* text-safe periwinkle on light ≈ 6.2:1 */
  --accent-on-dark: #A5AEFF; /* periwinkle text on petrol ≈ 7.6:1 */
  --accent-soft: #ECEEFF;  /* periwinkle tint fill */
  --lime: #C9F66F;         /* Forethought lime — dark-bg accents, accent CTA */
  --lime-deep: #B7EC50;

  /* On dark */
  --mist: #F7FDFC;         /* text on petrol ≈ 14.9:1 */
  --mist-soft: #A9C3CE;    /* secondary on petrol ≈ 8.6:1 */
  --dark-line: #24404F;

  /* Status */
  --ok-bg: #DDEEE2; --ok-text: #13472B;
  --warn-bg: #F7EAD2; --warn-text: #6E3A00;
  --risk-bg: #F6DCD6; --risk-text: #8A1F11;

  /* Type — Forethought: Manrope headings, Poppins body, Geist Mono data tags */
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;

  /* Fluid scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.94rem);
  --step-0: clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1: clamp(1.19rem, 1.13rem + 0.32vw, 1.38rem);
  --step-2: clamp(1.43rem, 1.33rem + 0.50vw, 1.72rem);
  --step-3: clamp(1.72rem, 1.55rem + 0.83vw, 2.22rem);
  --step-4: clamp(2.06rem, 1.80rem + 1.30vw, 2.86rem);
  --step-5: clamp(2.47rem, 2.06rem + 2.05vw, 3.70rem);
  --step-6: clamp(2.96rem, 2.34rem + 3.10vw, 4.85rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
  --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;

  --container: 74rem;
  --container-wide: 86rem;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.07);
  --focus-ring: 3px solid var(--flame);

  /* Flat GitBook surfaces (former glass slots now resolve flat) */
  --glass-bg: #FFFFFF;
  --glass-bg-strong: #FFFFFF;
  --glass-border: var(--line);
  --glass-edge: transparent;
  --glass-blur: none;
  --glass-dark-bg: rgba(255, 255, 255, 0.06);
  --glass-dark-border: rgba(255, 255, 255, 0.15);
}

/* Larger canvases (QHD / 4K): scale the whole rem system up */
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2600px) { html { font-size: 21px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, li { max-width: 68ch; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 em, h2 em, h3 em {
  font-family: inherit;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
a { color: var(--pine-link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--flame-deep); }
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--flame); color: var(--paper); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2.5rem, var(--container-wide)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--paper); }

/* Kicker: mono tag label, the "drawing number" motif */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: var(--space-4);
}
.kicker::before {
  content: ""; width: 1.6rem; height: 2px;
  background: var(--flame); flex: none;
}
.on-dark .kicker { color: #FFB08A; }
.on-dark .kicker::before { background: var(--flame); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.on-dark .lede { color: var(--mist-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: var(--step-0);
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--flame); color: var(--pine-950);
  border-color: var(--flame);
}
.btn-primary:hover { background: #F0672F; border-color: #F0672F; color: var(--pine-950); }
.btn-primary .btn-arrow { transition: transform 0.18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-secondary { color: var(--mist); border-color: var(--mist); }
.on-dark .btn-secondary:hover { background: var(--mist); color: var(--pine-950); }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--step-0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(24,36,32,0.08); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding: 0.85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.16em;
}
.brand-tag {
  display: none;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  border-left: 1px solid var(--line); padding-left: 0.65rem; margin-left: 0.1rem;
  line-height: 1.3;
}
@media (min-width: 1100px) { .brand-tag { display: block; } }
.nav-links {
  display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.9rem);
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: var(--step--1);
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--flame-deep); }
.nav-links a[aria-current="page"],
.nav-links a[aria-current="true"] {
  color: var(--pine-link);
  border-bottom-color: var(--flame);
}
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-cta .btn { padding: 0.62rem 1.25rem; min-height: 44px; font-size: var(--step--1); }
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; cursor: pointer;
  min-width: 48px; min-height: 44px;
}
.nav-toggle-bars { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--space-4) 0 var(--space-6);
    box-shadow: 0 24px 40px rgba(24,36,32,0.16);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
  .nav-links a {
    display: block; padding: 0.9rem 0.25rem; font-size: var(--step-0);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-menu .nav-cta { width: min(100% - 2.5rem, var(--container)); margin: var(--space-4) auto 0; }
  .nav-menu .nav-cta .btn { width: 100%; }
  .nav-cta-desktop { display: none; }
}
@media (min-width: 921px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
  .nav-menu .nav-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-950); color: var(--mist);
  padding: var(--space-8) 0 var(--space-6);
  border-top: 4px solid var(--flame);
}
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1.4fr repeat(4, 1fr);
  margin-bottom: var(--space-7);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-promise {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.25; max-width: 18ch; color: var(--mist);
}
.footer-col h2 {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mist-soft); margin-bottom: var(--space-4); font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--mist); text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: #FFB08A; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--dark-line); padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--step--1); color: var(--mist-soft);
  font-family: var(--font-mono);
}

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--pine-900); color: var(--mist); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--mist); }
.section-dark p { color: var(--mist-soft); }
.section-dark a { color: #BFE3CF; }
.section-dark a:hover { color: #FFB08A; }
.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-4); }

/* Grid-paper texture for hero + feature sections */
.grid-paper {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.section-dark.grid-paper {
  background-image:
    linear-gradient(rgba(239,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,244,238,0.05) 1px, transparent 1px);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-9); }
.hero-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-6); margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: italic; color: var(--pine-700);
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}
.hero .lede { margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-proof {
  margin-top: var(--space-6);
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding: 0; list-style: none;
}
.hero-proof li { display: flex; align-items: center; gap: 0.5rem; }
.hero-proof .tick { color: var(--pine-700); font-weight: 700; }

/* Staggered load-in */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero [data-rise] { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero [data-rise="2"] { animation-delay: 0.12s; }
.hero [data-rise="3"] { animation-delay: 0.24s; }
.hero [data-rise="4"] { animation-delay: 0.36s; }
.hero [data-rise="5"] { animation-delay: 0.48s; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-rise] { animation: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.card-grid { display: grid; gap: var(--space-5); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Link cards (industry / module cards) */
.link-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--pine-700);
  color: var(--ink);
}
.link-card:hover .card-cta { color: var(--flame-deep); }
.link-card:hover .card-cta .btn-arrow { transform: translateX(4px); }
.link-card .card-tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--flame-ink);
}
.link-card h3 { font-size: var(--step-1); }
.link-card p { font-size: var(--step--1); color: var(--ink-soft); flex: 1; }
.card-cta {
  font-weight: 700; font-size: var(--step--1); color: var(--pine-link);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.card-cta .btn-arrow { transition: transform 0.18s ease; }
.card-glyph { width: 44px; height: 44px; color: var(--pine-700); }
.section-dark .link-card { background: var(--pine-800); border-color: var(--dark-line); color: var(--mist); }
.section-dark .link-card h3 { color: var(--mist); }
.section-dark .link-card p { color: var(--mist-soft); }
.section-dark .link-card .card-cta { color: #BFE3CF; }
.section-dark .link-card:hover { border-color: var(--flame); color: var(--mist); }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.chip-warn { background: var(--warn-bg); color: var(--warn-text); }
.chip-risk { background: var(--risk-bg); color: var(--risk-text); }
.chip-neutral { background: var(--paper-3); color: var(--ink-soft); }

/* ---------- The Digital Thread ---------- */
.thread { list-style: none; padding: 0; margin: 0; counter-reset: thread; display: grid; gap: 0; }
.thread-h {
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.thread li { position: relative; counter-increment: thread; padding: var(--space-5) var(--space-4) var(--space-4); text-align: center; }
.thread-h li::before {
  content: ""; position: absolute; top: 1.05rem; left: calc(50% + 1.4rem); right: calc(-50% + 1.4rem);
  height: 2px; background: var(--dark-line);
}
.thread-h li:last-child::before { display: none; }
.thread-node {
  width: 2.1rem; height: 2.1rem; margin: 0 auto var(--space-3);
  border-radius: 50%;
  border: 2px solid var(--flame);
  background: var(--pine-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  color: var(--mist);
  position: relative; z-index: 1;
}
.thread-node::after { content: counter(thread, decimal-leading-zero); }
.thread-label { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); display: block; }
.thread-sub { font-size: 0.8rem; color: var(--mist-soft); display: block; margin-top: 0.3rem; }
@media (max-width: 860px) {
  .thread-h { grid-auto-flow: row; grid-auto-columns: unset; }
  .thread-h li { text-align: left; display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 var(--space-4); padding: var(--space-3) 0; }
  .thread-h .thread-node { margin: 0; grid-row: span 2; }
  .thread-h li::before { top: calc(2.1rem + 0.75rem); bottom: -0.85rem; left: 1.02rem; right: auto; width: 2px; height: auto; }
}

/* Module thread nav (prev/next along the thread) */
.thread-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
  border-top: 2px solid var(--ink); padding-top: var(--space-6);
}
@media (max-width: 680px) { .thread-nav { grid-template-columns: 1fr; } }
.thread-nav a {
  text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem;
  padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); color: var(--ink);
}
.thread-nav a:hover { border-color: var(--pine-700); box-shadow: var(--shadow-card); }
.thread-nav .dir { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-ink); }
.thread-nav .next { text-align: right; align-items: flex-end; }

/* ---------- Stats / proof ---------- */
.stat-row { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  border-top: 3px solid var(--flame);
  padding-top: var(--space-4);
}
.stat .stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-5); line-height: 1; color: var(--mist);
  display: block; margin-bottom: var(--space-2);
}
.stat p { font-size: var(--step--1); color: var(--mist-soft); }
.stat-note { font-size: var(--step--1); color: var(--mist-soft); margin-top: var(--space-5); font-style: italic; }

/* ---------- Split (problem) section ---------- */
.split { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-panel { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); }
.split-before { background: var(--paper-2); color: var(--ink); }
.split-before h3, .split-before p { color: var(--ink); }
.split-before ul li { color: var(--ink); }
.split-after { background: var(--pine-800); color: var(--mist); border-color: var(--dark-line); }
.split-after h3, .split-after p { color: var(--mist); }
.split-after ul li { color: var(--mist-soft); }
.split-label {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: var(--space-4);
}
.split-before .split-label { background: var(--risk-bg); color: var(--risk-text); }
.split-after .split-label { background: var(--ok-bg); color: var(--ok-text); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist .ck {
  flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.15rem;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pine-700); color: var(--paper); font-size: 0.8rem; font-weight: 700;
}
.checklist .ck-x { background: var(--risk-bg); color: var(--risk-text); }
.section-dark .checklist .ck { background: var(--flame); color: var(--pine-950); }

/* ---------- Detail / definition lists ---------- */
.spec-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.spec-list > div {
  display: grid; grid-template-columns: minmax(10rem, 0.8fr) 2fr; gap: var(--space-4);
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .spec-list > div { grid-template-columns: 1fr; gap: var(--space-2); } }
.spec-list dt { font-family: var(--font-mono); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--flame-ink); }
.spec-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: var(--space-5) var(--space-6);
  font-weight: 700; font-size: var(--step-0);
  list-style: none; position: relative; padding-right: 3.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--space-6); top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 400; color: var(--flame-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 var(--space-6) var(--space-5); color: var(--ink-soft); }
.faq details > div p + p { margin-top: var(--space-3); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pine-900);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  color: var(--mist);
  display: grid; gap: var(--space-5);
  grid-template-columns: 1.5fr auto; align-items: center;
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(239,244,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,244,238,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cta-band h2 { color: var(--mist); font-size: var(--step-3); margin-bottom: var(--space-3); }
.cta-band p { color: var(--mist-soft); }
.cta-band .btn { position: relative; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: var(--space-4) 0 0; font-size: var(--step--1); font-family: var(--font-mono); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--flame-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.form-shell {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem);
}
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: var(--step--1); }
.form-field .hint { font-size: 0.82rem; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius);
  background: #FFFFFF;
  min-height: 48px;
  width: 100%;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: var(--focus-ring); outline-offset: 1px; border-color: var(--ink);
}
.form-field [aria-invalid="true"] { border-color: #B42318; border-width: 2px; }
.field-error { color: #8A1F11; font-size: 0.85rem; font-weight: 600; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-status[role="alert"] { border-left: 4px solid #B42318; background: var(--risk-bg); color: var(--risk-text); padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-weight: 600; }
.form-success {
  border-left: 4px solid var(--pine-700); background: var(--ok-bg); color: var(--ok-text);
  padding: var(--space-6); border-radius: var(--radius-lg);
}
.form-success h2 { color: var(--ok-text); font-size: var(--step-2); margin-bottom: var(--space-3); }

/* ---------- Assessment ---------- */
/* Each dimension is one card; its two questions sit inside, split by a hairline. */
.assess-dimension {
  margin: 0 0 var(--space-5); min-width: 0;
  background: #0B122B; border: 1px solid var(--line);
  padding: var(--space-6) var(--space-6) var(--space-3);
}
.assess-dimension legend {
  /* float pulls the legend inside the card so it doesn't cut the top border */
  float: left; width: 100%; padding: 0 0 var(--space-4); margin: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em;
}
.assess-dimension legend + * { clear: both; }
.assess-q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin-top: var(--space-4); }
.assess-q .q-text { font-weight: 700; margin-bottom: var(--space-4); max-width: none; }
.assess-options { display: grid; gap: var(--space-2); }
.assess-option { position: relative; }
.assess-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.assess-option label {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.8rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-size: var(--step--1);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.assess-option label::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem;
  border-radius: 50%; border: 2px solid var(--ink-soft); background: #fff;
}
.assess-option input:checked + label { border-color: var(--pine-700); background: var(--ok-bg); }
.assess-option input:checked + label::before { border-color: var(--pine-700); background: radial-gradient(circle, var(--pine-700) 45%, #fff 50%); }
.assess-option input:focus-visible + label { outline: var(--focus-ring); outline-offset: 2px; }
.assess-progress { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--space-5); }

.assess-result-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6); background: var(--card); margin-top: var(--space-4);
}
.assess-result-card.at-risk { border-left: 5px solid #B42318; }
.assess-result-card.attention { border-left: 5px solid #B25E00; }
.assess-result-card.strong { border-left: 5px solid var(--pine-700); }
.assess-result-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.assess-result-head h3 { font-size: var(--step-1); }
.assess-fix { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--line); }
.assess-fix .fix-label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-ink); display: block; margin-bottom: var(--space-2); }

/* ---------- Calculator ---------- */
.calc-shell { display: grid; gap: var(--space-6); grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 900px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-output {
  background: var(--pine-900); color: var(--mist);
  border-radius: var(--radius-lg); padding: var(--space-6);
  position: sticky; top: 6rem;
}
.calc-output h3 { color: var(--mist); margin-bottom: var(--space-5); font-size: var(--step-1); }
.calc-metric { border-top: 1px solid var(--dark-line); padding: var(--space-4) 0; }
.calc-metric .calc-value { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.05; color: #FFB08A; display: block; }
.calc-metric p { color: var(--mist-soft); font-size: var(--step--1); margin-top: var(--space-1); }
.calc-disclaimer { font-size: 0.8rem; color: var(--mist-soft); margin-top: var(--space-5); font-style: italic; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; }
table.compare caption { text-align: left; padding: var(--space-5) var(--space-6) 0; font-weight: 700; font-size: var(--step-1); font-family: var(--font-display); }
table.compare th, table.compare td { padding: var(--space-4) var(--space-6); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: var(--step--1); }
table.compare thead th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
table.compare tbody th { font-weight: 700; }
table.compare .neg { color: var(--risk-text); }
table.compare .pos { color: var(--ok-text); font-weight: 600; }

/* ---------- Prose (guides) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-3); margin: var(--space-8) 0 var(--space-4); }
.prose h3 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.prose blockquote {
  border-left: 4px solid var(--flame); padding: var(--space-3) var(--space-5);
  background: var(--paper-2); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic; margin: var(--space-5) 0;
}
.prose .answer-box {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pine-700);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin: var(--space-5) 0;
}
.prose .answer-box p { font-size: var(--step-0); }
.toc { background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; }
.toc h2 { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-3); }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: var(--space-7) 0 var(--space-8); }
.page-hero h1 { margin-bottom: var(--space-5); max-width: 22ch; }
.page-hero .lede { max-width: 44rem; }
.page-hero .hero-ctas { margin-top: var(--space-6); }

/* ---------- Persona strip ---------- */
.persona-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .persona-grid { grid-template-columns: 1fr; } }
.persona {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); padding: var(--space-5);
}
.persona .persona-role { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame-ink); display: block; margin-bottom: var(--space-3); }
.persona blockquote { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--step-1); font-style: italic; line-height: 1.3; }
.persona p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Illustration frame ---------- */
.art-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.art-frame figcaption {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
}

/* SVG thread draw animation */
.draw-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.in .draw-path, .hero .draw-path { animation: draw 2.2s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw-path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } }

/* Pulse dot on dashboards */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-ctas, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   ROWSYS MOCKUP SKIN (Nov 2026)
   Values taken from the Homepage and About design mockups:
   navy canvas, gridded hero, copper Geist Mono labels, numbered
   ledgers instead of cards, dot-grid and blueprint sections, an
   ice-blue light band, 6px buttons, white contact card.
   ============================================================ */

/* ---------- Tokens: navy (default) ---------- */
:root {
  --paper: #080E23;
  --paper-2: #090F24;
  --paper-3: #111B3A;
  --card: #0B122B;
  --ink: #F2E5D5;            /* ≈ 16:1 on navy */
  --ink-soft: #AEB2C4;       /* ≈ 8.9:1 */
  --lede: #C9CFEA;           /* ≈ 12:1 */
  --muted: #A9B2D6;          /* ≈ 8.7:1 */
  --line: rgba(242, 229, 213, 0.16);
  --line-strong: #232C52;
  --line-soft: rgba(242, 229, 213, 0.08);

  --pine-950: #050A1A;
  --pine-900: #090F24;
  --pine-800: #111B3A;
  --pine-700: #26355B;
  --pine-600: #4054FF;
  --pine-link: #A5AEFF;      /* ≈ 8.6:1 */

  --accent: #4054FF;         /* mockup "accent" prop */
  --accent-hover: #3247E0;
  --blue-light: #7380FF;     /* accent words, hover ≈ 5.4:1 */
  --periwinkle: #7785FF;     /* rules, focus */
  --flame: #7785FF;
  --flame-deep: #7380FF;
  --flame-ink: #A5AEFF;
  --copper: #C8946A;         /* ≈ 7.2:1 */
  --coral: #E39A7C;          /* "today" / "is not" labels ≈ 8.3:1 on #0B122B */
  --lime: #7380FF;           /* legacy slot */
  --accent-on-dark: #A5AEFF;
  --accent-soft: rgba(64, 84, 255, 0.16);

  --mist: #F2E5D5;
  --mist-soft: #C9CFEA;
  --dark-line: rgba(242, 229, 213, 0.16);

  --neg-text: #FF9C8C;
  --pos-text: #8FE0B0;
  --err-text: #FFA394;

  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", Consolas, "SFMono-Regular", monospace;

  --container: 75rem;        /* 1200px */
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 6px;
  --radius-lg: 0px;
  --radius-pill: 6px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.32);
  --focus-ring: 3px solid var(--flame);
}

/* ---------- Tokens: ice-blue light band ---------- */
.section-light {
  --paper: #F2F6FB;
  --card: #FFFFFF;
  --ink: #080E23;            /* ≈ 17:1 */
  --ink-soft: #3B4266;       /* ≈ 9.4:1 */
  --lede: #3B4266;
  --muted: #3B4266;
  --line: rgba(8, 14, 35, 0.2);
  --line-soft: rgba(8, 14, 35, 0.1);
  --pine-link: #2E3FD6;      /* ≈ 6.5:1 */
  --blue-light: #2E3FD6;
  --flame: #2E3FD6;
  --flame-ink: #2E3FD6;
  --copper: #7A4E27;         /* ≈ 6.9:1 */
  --coral: #A3261A;
  --neg-text: #8A1F11;
  --pos-text: #13472B;
  --err-text: #8A1F11;
  background: radial-gradient(circle, rgba(64, 84, 255, 0.16) 1px, transparent 1.25px) 0 0 / 24px 24px, #F2F6FB;
  color: var(--ink);
}

/* ---------- Base ---------- */
html { background: #080E23; }
body {
  position: relative;
  background: #080E23;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* Gridded navy-to-indigo hero behind the header and first section (mockup header + hero) */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 84% 18%, rgba(64, 84, 255, 0.19), transparent 30%),
    linear-gradient(142deg, #26355B 0%, #080E23 48%, #050A1A 100%);
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.container, .container-wide { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
::selection { background: var(--accent); color: #FFFFFF; }
a { color: var(--pine-link); }
a:hover { color: var(--blue-light); }
:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
strong { color: var(--ink); font-weight: 600; }
p, li { max-width: 68ch; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.25; }
h4 { letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--blue-light); text-decoration: none; }
.h2-sm { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--lede); text-wrap: pretty; }
.section-head .lede { color: var(--ink-soft); }
.section-light .section-head .lede { color: var(--ink-soft); }

/* Labels: copper Geist Mono, "01 / The demo" */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.kicker::before { display: none; }
.on-dark .kicker, .section-dark .kicker { color: var(--copper); }
.hero-badge, .page-hero .kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper);
  background: none; border: 0; padding: 0; margin: 0;
}
.hero-badge::before, .page-hero .kicker::before {
  content: ""; display: block; flex: 0 0 40px; width: 40px; height: 1px; background: #C8946A; border-radius: 0;
}
.page-hero .kicker { margin-bottom: 1.75rem; }

/* Layout helpers */
.section { padding: 6rem 0; }
.section-tight { padding: 4.5rem 0; }
.stack-lg, .stack-xl, .stack-xxl { display: flex; flex-direction: column; }
.stack-lg { gap: 40px; }
.stack-xl { gap: 48px; }
.stack-xxl { gap: 56px; }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head.wide { max-width: 820px; }
.stack-lg > .section-head, .stack-xl > .section-head, .stack-xxl > .section-head, .split-head .section-head { margin-bottom: 0; }
.section-head h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.section-head .lede { margin: 0; }

/* ---------- Section backgrounds ---------- */
.grid-paper { background-image: none; }
.section-dots, .section-dark, .section-alt {
  background: radial-gradient(circle, rgba(242, 229, 213, 0.1) 1px, transparent 1.25px) 0 0 / 24px 24px, #090F24;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ink); }
.section-dark p, .on-dark p { color: var(--ink-soft); }
.section-dark a { color: var(--pine-link); }
.section-dark a:hover { color: var(--blue-light); }
.blueprint, .section-dark.grid-paper {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, transparent 0, transparent 112px, rgba(115, 128, 255, 0.18) 113px, rgba(115, 128, 255, 0.18) 114px, transparent 115px, transparent 166px, rgba(115, 128, 255, 0.11) 167px, rgba(115, 128, 255, 0.11) 168px, transparent 169px),
    linear-gradient(rgba(115, 128, 255, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.1) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(115, 128, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    #111B3A;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.blueprint .lede { color: var(--lede); }
.blueprint > .container { position: relative; z-index: 1; }
.circuit-art {
  position: absolute; right: -40px; top: 150px; width: min(720px, 60%); height: auto;
  fill: none; stroke: rgba(200, 148, 106, 0.3); stroke-width: 1.5;
}
.access-section, .cta-section {
  background:
    linear-gradient(rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 12% 80%, rgba(64, 84, 255, 0.19), transparent 32%),
    linear-gradient(142deg, #050A1A 0%, #080E23 52%, #26355B 100%);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.access-section .lede, .cta-section .lede { color: var(--lede); }

/* ---------- Header: logo + links on the hero ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  background: rgba(8, 14, 35, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-strong);
  box-shadow: none;
}
.site-header .nav-bar {
  background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  padding: 20px 0;
  gap: 16px 32px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand-logo { height: 28px; width: auto; display: block; }
.nav-links { gap: 4px 28px; }
/* Six nav items: keep two-word labels on one line and tighten the row just above the mobile breakpoint */
@media (min-width: 921px) { .nav-links a { white-space: nowrap; } }
@media (min-width: 921px) and (max-width: 1140px) { .nav-links { gap: 4px 14px; } .nav-links a { font-size: 0.875rem; } .site-header .nav-cta .btn { white-space: nowrap; } }
.nav-links a {
  color: var(--lede); font-size: 0.9375rem; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--blue-light); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--copper); }
.nav-toggle { border: 1px solid #3A4577; border-radius: 6px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
@media (min-width: 921px) {
  .nav-menu { gap: 28px; }
  .nav-menu .nav-cta { display: block; }
}
.site-header .nav-cta .btn { padding: 11px 20px; font-size: 0.9375rem; min-height: 44px; }
@media (max-width: 920px) {
  .nav-menu {
    top: 100%; left: 0; right: 0;
    background: #0B122B;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
  .nav-links a { border-bottom: 1px solid var(--line); color: var(--ink); }
}

/* ---------- Buttons: 6px ---------- */
.btn {
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: none; }
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; min-height: 52px; }
.btn-primary,
.section-dark .btn-primary, .cta-band .btn-primary, .hero .btn-primary, .site-header .nav-cta .btn {
  background: var(--accent); color: #FFFFFF; border-color: var(--accent);
}
.btn-primary:hover,
.section-dark .btn-primary:hover, .cta-band .btn-primary:hover, .hero .btn-primary:hover, .site-header .nav-cta .btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; transform: none;
}
.btn-secondary, .btn-accent,
.on-dark .btn-secondary, .section-dark .btn-secondary, .cta-band .btn-secondary {
  background: transparent; color: #F2E6D5; border: 1px solid #3A4577; font-weight: 500;
}
.btn-secondary:hover, .btn-accent:hover,
.on-dark .btn-secondary:hover, .section-dark .btn-secondary:hover, .cta-band .btn-secondary:hover {
  background: rgba(115, 128, 255, 0.1); color: #F2E6D5; border-color: var(--periwinkle); transform: none;
}
.section-light .btn-secondary { color: var(--ink); border-color: rgba(8, 14, 35, 0.35); }
.btn-primary .btn-arrow { transition: transform 0.18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.play-glyph { width: 11px; height: 11px; flex: none; border: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 3.5rem 0 6rem; text-align: left; background: none; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: none; margin: 0; }
.hero h1 em { color: #7380FF; }
.hero .lede { font-size: 1.1875rem; color: var(--lede); max-width: 34em; margin: 0; }
.hero-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-frame {
  flex: 1 1 420px; min-width: 0; margin: 0; padding: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.photo-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1586 / 992; object-fit: cover; }

/* Interior page heroes */
.page-hero { padding: 3rem 0 5rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.75rem; max-width: 20ch; }
.page-hero h1 em { color: #7380FF; }
.page-hero .lede { max-width: 40rem; }

/* ---------- Ledgers (instead of cards) ---------- */
.ledger { display: flex; flex-direction: column; border-top: 2px solid var(--copper); }
.ledger-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.ledger-num { flex: 0 0 40px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-soft); }
.ledger-row h3 { flex: 1 1 260px; margin: 0; font-size: 1.375rem; }
.ledger-row p { flex: 2 1 340px; margin: 0; color: var(--ink-soft); max-width: none; }

.module-ledger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 0 32px;
  border-top: 2px solid var(--copper);
}
.module-link {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.module-link span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); flex: none; }
.module-link:hover { color: var(--blue-light); }

.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.split-head .section-head { flex: 1 1 420px; min-width: 0; }
.split-head-photo {
  flex: 1 1 360px; min-width: 0; max-width: 520px; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--line);
}
.solution-ledger { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.solution-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 20px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.solution-name { flex: 1 1 280px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.solution-text { flex: 2 1 340px; color: var(--ink-soft); }
.solution-link:hover .solution-name { color: var(--blue-light); }
.solution-link:hover { color: var(--ink); }

/* ---------- Joined comparison (problem; is / is not) ---------- */
.split-joined {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  border: 1px solid var(--line); overflow: hidden;
}
.split-pane { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.split-pane-no { background: #0B122B; }
.split-pane-yes { background: linear-gradient(145deg, #26355B, #111B3A 68%); color: #F2E6D5; }
.split-pane-label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.split-pane-no .split-pane-label { color: var(--coral); }
.split-pane-yes .split-pane-label { color: #A5AEFF; }
.split-pane ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.split-pane li { display: flex; gap: 12px; max-width: none; }
.split-pane-no li { color: var(--ink-soft); }
.split-pane-yes li { color: #F2E6D5; }
.split-pane svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; fill: none; stroke-width: 2; }
.split-pane-no svg { stroke: var(--coral); }
.split-pane-yes svg { stroke: #A5AEFF; }
.strike-mono { font-family: var(--font-mono); font-size: 0.9375rem; text-decoration: line-through; }

/* Legacy before/after panels on interior pages, restyled to match */
.split { gap: 0; border: 1px solid var(--line); }
.split-panel { border-radius: 0; border: 0; padding: 36px; }
.split-before { background: #0B122B; color: var(--ink-soft); }
.split-before ul li { color: var(--ink-soft); }
.split-after { background: linear-gradient(145deg, #26355B, #111B3A 68%); color: #F2E6D5; }
.split-after ul li { color: #F2E6D5; }
.split-label { background: none !important; padding: 0; border-radius: 0; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.split-before .split-label { color: var(--coral) !important; }
.split-after .split-label { color: #A5AEFF !important; }
.checklist .ck { background: none; color: #A5AEFF; width: 1rem; height: 1.2rem; font-size: 0.95rem; border-radius: 0; margin-top: 0.2rem; }
.checklist .ck-x { background: none; color: var(--coral); }
.section-light .checklist .ck { color: #2E3FD6; }

/* ---------- Digital thread ---------- */
.thread-h {
  display: grid; grid-auto-flow: row; grid-auto-columns: unset;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 32px 0;
}
.thread-h li, .thread li {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  border-top: 2px solid var(--periwinkle); padding: 20px 20px 0 0;
}
.thread-h li::before, .thread li::before { display: none; }
.thread-node {
  width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none;
  display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; color: #A5AEFF;
}
.thread-label { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.thread-sub { font-size: 0.9375rem; color: var(--muted); margin: 0; }
/* Seven-step loop on the homepage: lay out 4 + 3 rather than 6 + 1 */
@media (min-width: 861px) { .thread-h.thread-loop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .thread-h li { display: flex; grid-template-columns: none; padding: 20px 0 0; }
  .thread-h .thread-node { grid-row: auto; }
}

.principle-cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.principle-cells > div { padding: 28px; display: flex; flex-direction: column; gap: 8px; background: #0A1029; }
.principle-cells span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.principle-cells p { margin: 0; color: var(--lede); }

.payoff { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 48px; }
.payoff h3 { font-size: 1.625rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; }
.stat { border-top: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stat .stat-value { font-family: var(--font-display); font-size: 3.25rem; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: #F2E6D5; margin: 0; }
.stat p { font-size: 0.9375rem; color: var(--lede); margin: 0; }
.stat-note { font-size: 0.8125rem; color: var(--muted); max-width: 760px; font-style: normal; margin: 0; }

/* ---------- FAQ: heading left, open answers right ---------- */
.faq-split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq-aside .kicker { margin: 0; }
.faq-aside h2 { margin: 0; }
.faq-photo { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; display: block; margin-top: 16px; border: 1px solid var(--line); }
.faq { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--copper); counter-reset: none; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; overflow: visible; }
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: list-item; list-style: disclosure-closed;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  min-height: 44px; padding: 0; position: static;
}
.faq details[open] > summary { list-style: disclosure-open; }
.faq summary::-webkit-details-marker { display: inline; }
.faq summary::before, .faq summary::after { content: none; display: none; }
.faq details > div { padding: 0; margin-top: 8px; color: var(--ink-soft); }
.faq details > div p { color: var(--ink-soft); }

/* ---------- Closing CTA section ---------- */
.cta-band {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.cta-band::before { display: none; }
.cta-band .kicker { margin: 0; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; max-width: 16em; margin: 0; color: var(--ink); }
.cta-band .lede { max-width: 36em; margin: 0; color: var(--lede); }
.cta-actions { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 12px; max-width: none; }
@media (max-width: 860px) { .cta-band { grid-template-columns: none; } }

/* ---------- Demo video ---------- */
#demo { scroll-margin-top: 5rem; }
.video-frame { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.video-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(115, 128, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(115, 128, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.video-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(180deg, rgba(8, 14, 35, 0.3), rgba(8, 14, 35, 0.7));
  color: #F2E6D5;
}
.video-stage.is-started .video-play { display: none; }
.video-play-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #F2E5D5;
  display: flex; align-items: center; justify-content: center; box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play-icon::after { content: none; }
.video-play-icon svg { width: 24px; height: 24px; margin-left: 4px; }
.video-play:hover .video-play-icon { transform: scale(1.05); background: var(--accent-hover); }
.video-play:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: -6px; }
.video-play-label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: #C9CFEA; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.video-frame figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 20px; }
.video-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); text-align: left; max-width: none; }
.chapters {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.chapters li { max-width: none; }
.chapter {
  width: 100%; height: 100%; min-height: 52px; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
}
.chapter-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--copper); }
.chapter:hover { background: rgba(115, 128, 255, 0.1); }
.chapter[aria-current="true"] { background: var(--accent); color: #F2E5D5; }
.chapter[aria-current="true"] .chapter-time { color: #E3E6FF; }
.video-transcript { margin: 0; max-width: none; }
.video-transcript summary { cursor: pointer; color: var(--pine-link); font-weight: 500; font-size: 0.9375rem; padding: 6px 0; min-height: 44px; display: list-item; }
.video-transcript > div {
  margin-top: 12px; padding: 24px 28px; max-width: 56rem;
  background: #0B122B; border: 1px solid var(--line);
  display: grid; gap: 12px;
}
.video-transcript p { color: var(--ink-soft); font-size: 0.9375rem; max-width: none; margin: 0; }
.video-transcript strong { color: var(--ink); }

/* ---------- Get access ---------- */
#get-access { scroll-margin-top: 5rem; }
.access-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.access-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.access-copy .kicker, .access-copy h2, .access-copy .lede { margin: 0; }
.access-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; }
.access-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.access-steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); color: var(--ink); max-width: none; }
.access-steps span { font-family: var(--font-mono); font-size: 0.75rem; color: #A5AEFF; padding-top: 4px; flex: none; }
.access-alt { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.access-alt a { color: #A5AEFF; }

/* ---------- Forms: white contact card ---------- */
.form-shell {
  --ink: #14213D; --ink-soft: #55627A; --muted: #55627A; --line: #D5DCE8;
  --pine-link: #2A5FA0; --err-text: #A3261A; --flame: #3468AB; --card: #FFFFFF;
  background: #FFFFFF; color: #14213D;
  border: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: clamp(24px, 4vw, 40px);
}
.access-card { flex: 1 1 520px; min-width: 0; padding: 0; display: flex; flex-direction: column; }
.form-head { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 40px); background: #F5F7FB; border-bottom: 1px solid #D5DCE8; }
.form-eyebrow { margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #2A6DB0; }
.form-head h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; color: #14213D; }
.form-req { margin: 0; font-size: 0.875rem; color: #55627A; }
.form-body { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.form-grid { gap: 24px 20px; }
.form-field { gap: 6px; }
.form-field label { font-size: 1rem; font-weight: 600; color: #14213D; }
.form-field .hint { font-size: 0.875rem; color: #55627A; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; min-height: 56px; padding: 0 14px;
  border: 1px solid #7D8AA0; border-radius: 8px;
  background: #FFFFFF; color: #14213D; width: 100%; box-sizing: border-box;
}
.form-field textarea { padding: 12px; min-height: 9rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #6B7890; opacity: 1; }
.form-field select option { background: #FFFFFF; color: #14213D; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid #3468AB; outline-offset: 1px; border-color: #14213D; }
.form-field [aria-invalid="true"] { border-color: #A3261A; border-width: 2px; }
.form-shell .field-error { color: #A3261A; font-size: 0.875rem; font-weight: 600; margin: 0; }
.form-shell .field-error:empty { display: none; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.char-count { font-size: 0.875rem; color: #55627A; }
.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px clamp(24px, 4vw, 40px); border-top: 1px solid #D5DCE8;
}
.form-spam { margin: 0; font-size: 0.9375rem; color: #55627A; display: flex; align-items: center; gap: 10px; }
.form-spam svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-shell .btn-primary:not(.btn-send) {
  background: #3468AB; color: #FFFFFF; border: 1px solid #3468AB; border-radius: 6px;
  padding: 18px 28px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600;
}
.form-shell .btn-primary:not(.btn-send):hover { background: #2B5A96; border-color: #2B5A96; color: #FFFFFF; }
/* Send message is the standard primary button, sized like the header's Get access */
.btn-send { padding: 11px 20px; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.btn-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-shell .form-note { color: #55627A; }
.form-shell .form-actions { gap: 16px 24px; }
.form-status {
  border-left: 4px solid #B42318; background: var(--risk-bg); color: var(--risk-text);
  padding: 16px 20px; border-radius: 6px; font-weight: 600; max-width: none; margin: 0 0 20px;
}
.access-card .form-status { margin: 24px clamp(24px, 4vw, 40px) 0; }
.form-status a { color: var(--risk-text); }
.form-success { border-radius: 8px; }
.access-card .form-success { margin: clamp(24px, 4vw, 40px); }
.form-success, .form-success p, .form-success h2, .form-success h3, .form-success a { color: var(--ok-text); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Book a demo: form + aside, stacks on narrow screens */
.demo-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.demo-aside { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-aside { position: static; }
}

/* ---------- Cards (interior pages) ---------- */
.card, .link-card, .persona, .assess-q, .thread-nav a, .toc, .prose .answer-box, .table-wrap, .art-frame, .assess-result-card {
  background: #0B122B; border: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
.section-light .card, .section-light .link-card { background: #FFFFFF; }
.link-card { border-top: 2px solid var(--line); color: var(--ink); }
.link-card:hover, .thread-nav a:hover { border-color: var(--line); border-top-color: var(--periwinkle); box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--ink); }
.link-card h3, .card h3 { color: var(--ink); }
.link-card p, .card p { color: var(--ink-soft); }
.link-card .card-tag, .assess-fix .fix-label { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
/* Plain (non-link) cards that carry a tag and several paragraphs: worked examples, audience pages */
.card > .card-tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase; color: var(--copper); margin-bottom: 0.75rem; }
.card > h3 { font-size: var(--step-1); margin: 0 0 0.6rem; }
.card > p + p { margin-top: 0.85em; }
.card-cta, .section-dark .link-card .card-cta { color: var(--pine-link); }
.link-card:hover .card-cta { color: var(--ink); }
.card-glyph { color: var(--periwinkle); }
.section-dark .link-card, .section-dark .card { background: #0B122B; border-color: var(--line); }
.persona .persona-role { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.persona blockquote { color: var(--ink); font-family: var(--font-body); font-style: normal; font-weight: 500; }
.spec-list { border-top: 2px solid var(--copper); }
.spec-list > div { border-bottom-color: var(--line); }
.spec-list dt { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.spec-list dd { color: var(--ink-soft); }
.chip { border-radius: 4px; backdrop-filter: none; }

/* Assessment, ROI, tables, guides */
.assess-option label { border-radius: 6px; background: #0A1129; border-color: var(--line); color: var(--ink); }
.assess-option label::before { background: #0A1129; border-color: var(--ink-soft); }
.assess-option input:checked + label { border-color: var(--periwinkle); background: rgba(64, 84, 255, 0.18); }
.assess-option input:checked + label::before { border-color: var(--periwinkle); background: radial-gradient(circle, var(--periwinkle) 45%, #0A1129 50%); }
.assess-q .q-text, .assess-dimension legend { color: var(--ink); }
.assess-dimension .assess-q { background: none; border: 0; border-radius: 0; padding: var(--space-5) 0; margin: 0; }
.assess-dimension .assess-q + .assess-q { border-top: 1px solid var(--line); }
@media (max-width: 600px) { .assess-dimension { padding: var(--space-5) var(--space-4) var(--space-2); } }
.assess-progress { color: var(--muted); }
.assess-result-card.strong { border-left: 5px solid #4CAF7D; }
.calc-output {
  border-radius: 0; border: 1px solid var(--line);
  background: linear-gradient(145deg, #26355B, #111B3A 68%);
}
.calc-output h3 { color: var(--ink); }
.calc-metric { border-top-color: var(--line); }
.calc-metric .calc-value { color: #F2E6D5; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; }
.calc-metric p, .calc-disclaimer { color: var(--lede); }
table.compare thead th { font-family: var(--font-mono); font-weight: 400; color: var(--muted); border-bottom-color: var(--copper); }
table.compare th, table.compare td { border-bottom-color: var(--line); color: var(--ink-soft); }
table.compare tbody th { color: var(--ink); }
table.compare .neg { color: var(--neg-text); }
table.compare .pos { color: var(--pos-text); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose blockquote { background: #0B122B; border-left-color: var(--copper); border-radius: 0; color: var(--ink); font-style: normal; }
.prose .answer-box { border-left: 3px solid var(--periwinkle); }
.prose .answer-box p, .prose p, .prose li { color: var(--ink-soft); }
.toc h2 { font-family: var(--font-mono); font-weight: 400; color: var(--copper); }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.8125rem; padding-top: 0.5rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.breadcrumbs li + li::before { color: rgba(242, 229, 213, 0.3); }

/* ---------- About page ---------- */
.about-hero { padding: 4.5rem 0 6rem; }
.about-hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.about-hero-grid .hero-copy { flex: 3 1 480px; }
.about-hero-grid > .lede { flex: 2 1 320px; min-width: 0; margin: 0; }
.statement-panel {
  display: flex; flex-wrap: wrap; gap: 12px 48px;
  padding: 36px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.statement-label { flex: 0 0 200px; margin: 0; padding-top: 6px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.statement-text { flex: 1 1 420px; min-width: 0; margin: 0; font-size: 1.3125rem; line-height: 1.45; color: var(--ink); max-width: none; }
.image-banner-wrap { padding: 4.5rem 0 0; }
.image-banner {
  position: relative; min-height: 520px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line);
}
.image-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.image-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(8, 14, 35, 0.25) 0%, rgba(8, 14, 35, 0.92) 100%), linear-gradient(90deg, rgba(8, 14, 35, 0.7), transparent 60%);
}
.image-banner-copy { position: relative; z-index: 2; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.image-banner-copy .kicker { color: #E0B48F; margin: 0; }
.image-banner-copy h2 { margin: 0; }
.image-banner-copy p { margin: 0; font-size: 1.1875rem; color: #F2E5D5; }
.split-text { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split-text > h2 { flex: 1 1 320px; min-width: 0; margin: 0; }
/* A title column that carries more than the heading, such as the founder portrait */
.split-text-head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.split-text-head h2 { margin: 0; }
.founder-portrait { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.founder-portrait img {
  display: block; width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  filter: grayscale(1); border: 1px solid var(--line-strong);
}
.founder-portrait figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.founder-name { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.founder-role { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); }
.split-text-body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 1.1875rem; color: var(--lede); }
.split-text-body p { margin: 0; max-width: none; text-wrap: pretty; }
.section-light .split-text-body { color: var(--ink-soft); }
.principles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 2px solid var(--copper); background: rgba(8, 14, 35, 0.72); }
.principles li { display: flex; gap: 24px; align-items: baseline; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 1.25rem; color: var(--ink); max-width: none; }
.principles span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--copper); flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #080E23; color: var(--lede); border-top: 1px solid var(--line-strong);
  padding: 4rem 0 2.5rem; font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 40px 32px; margin-bottom: 3rem; }
.footer-promise { margin: 0; font-family: var(--font-body); font-size: 1.375rem; line-height: 1.25; font-weight: 600; font-style: normal; letter-spacing: -0.02em; color: #F2E6D5; max-width: none; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: #A5AEFF; margin-bottom: 10px; }
.footer-col ul { gap: 10px; }
.footer-col a { color: var(--lede); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--blue-light); text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  border-top: 1px solid var(--line-strong); padding-top: 24px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.footer-legal p { margin: 0; }

@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
}

/* Accent words in headlines: upright, no underline (overrides the original base rule) */
.hero h1 em, .page-hero h1 em, .about-hero h1 em {
  font-style: normal; font-weight: inherit; text-decoration: none; color: #7380FF;
}

/* Header: Log in (outline) sits left of Get access */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.site-header .nav-cta .btn-login {
  background: transparent; color: #F2E5D5; border: 1px solid #3A4577; font-weight: 500;
}
.site-header .nav-cta .btn-login:hover { background: rgba(115, 128, 255, 0.1); border-color: var(--periwinkle); color: #F2E5D5; }
@media (min-width: 921px) { .nav-menu .nav-cta { display: flex; } }
@media (max-width: 920px) {
  .nav-menu .nav-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-menu .nav-cta .btn { width: 100%; }
}

/* ---------- Who it is for: two dark panels either side of the handover line ---------- */
.handover-split {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  background: var(--periwinkle);
}
.handover-panel { position: relative; display: flex; flex-direction: column; min-width: 0; background: #080E23; color: #F2E5D5; }
.handover-media { position: relative; }
.handover-media img { display: block; width: 100%; height: 320px; object-fit: cover; transition: filter 0.2s ease; }
.handover-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 14, 35, 0) 50%, rgba(8, 14, 35, 0.85) 100%);
}
.handover-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #080E23; background: #F2E5D5; padding: 9px 16px;
}
.handover-panel--after .handover-tag { left: auto; right: 0; }
.handover-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 36px 88px 36px 40px; }
.handover-panel--after .handover-body { padding: 36px 40px 36px 88px; }
.handover-body h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: #F2E5D5; }
.handover-body p { margin: 0; color: #D2DAEB; }
.handover-points {
  list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(242, 229, 213, 0.16);
  display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: #F2E5D5;
}
.handover-points li { display: flex; gap: 12px; align-items: flex-start; }
.handover-points svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: #A5AEFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.handover-link {
  margin-top: auto; display: block; padding: 10px 0; min-height: 44px; box-sizing: border-box;
  font-weight: 600; color: #C4CCFF; text-decoration: none;
}
.handover-link-tail { white-space: nowrap; }
.handover-link .btn-arrow { display: inline-block; margin-left: 2px; }
/* The whole panel is the link target, as the cards it replaces were */
.handover-link::after { content: ""; position: absolute; inset: 0; }
.handover-link .btn-arrow { transition: transform 0.18s ease; }
.handover-panel:hover .handover-link, .handover-link:focus-visible { color: #F2E5D5; }
.handover-panel:hover .handover-link .btn-arrow { transform: translateX(4px); }
.handover-panel:hover .handover-media img { filter: brightness(1.08); }
.handover-marker {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #F2E5D5; background: #080E23; border: 2px solid var(--periwinkle); padding: 10px 18px; white-space: nowrap;
}
@media (max-width: 860px) {
  .handover-split { grid-template-columns: 1fr; }
  .handover-body, .handover-panel--after .handover-body { padding: 28px 24px; }
  .handover-panel--after .handover-tag { left: 0; right: auto; }
  .handover-media img { height: 240px; }
  /* Stacked: the marker becomes a bar on the seam between the two panels */
  .handover-marker { position: static; transform: none; border: 0; text-align: center; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { .handover-media img, .handover-link .btn-arrow { transition: none; } }

/* ---------- Page hero with a video beside the text (commissioning teams, asset owners) ---------- */
.page-hero--media { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.page-hero--media .page-hero-copy { flex: 1 1 440px; min-width: 0; }
.page-hero--media h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); max-width: none; }
.hero-video {
  flex: 1 1 440px; min-width: 0; margin: 0; padding: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(38, 53, 91, 0.94), rgba(8, 14, 35, 0.98) 68%);
}
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #080E23; }
.hero-video figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 44px; margin-top: 12px; }
.hero-video-note { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); }
.hero-video-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 500; color: #F2E6D5;
  background: transparent; border: 1px solid #3A4577; border-radius: 6px;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-controls { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hero-video-toggle[data-hero-video-sound] svg { width: 16px; height: 16px; }
.hero-video-toggle[aria-pressed="false"] .i-waves, .hero-video-toggle[aria-pressed="true"] .i-mute { display: none; }
.hero-video-toggle[aria-pressed="true"] { border-color: var(--periwinkle); background: rgba(115, 128, 255, 0.16); }
.hero-video-toggle:hover { background: rgba(115, 128, 255, 0.1); border-color: var(--periwinkle); }
.hero-video-toggle svg { width: 11px; height: 11px; }
.hero-video-toggle .i-play, .hero-video-toggle[data-state="paused"] .i-pause { display: none; }
.hero-video-toggle[data-state="paused"] .i-play { display: inline; }

/* Full screen button over the hero video, and the full screen player it opens */
.hero-video-frame { position: relative; }
.hero-video-frame video { cursor: pointer; }
.hero-video-expand {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 500; color: #F2E6D5;
  background: rgba(8, 14, 35, 0.78); border: 1px solid rgba(165, 174, 255, 0.45); border-radius: 6px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-video-expand:hover, .hero-video-expand:focus-visible { background: #4054FF; border-color: #7785FF; }
.hero-video-expand svg { width: 14px; height: 14px; }
.hero-video-expand[hidden] { display: none; }

html.vplayer-open { overflow: hidden; }
.vplayer {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #000; color: #F2E6D5; overflow: hidden;
}
.vplayer::backdrop { background: #000; }
.vplayer-stage { position: relative; width: 100%; height: 100%; }
.vplayer-stage:fullscreen { width: 100%; height: 100%; background: #000; }
.vplayer video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.vplayer-close, .vplayer-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; padding: 0; cursor: pointer; color: #F2E6D5;
  background: rgba(8, 14, 35, 0.72); border: 1px solid rgba(165, 174, 255, 0.4); border-radius: 50%;
}
.vplayer-close:hover, .vplayer-btn:hover, .vplayer-close:focus-visible, .vplayer-btn:focus-visible { background: #4054FF; border-color: #7785FF; }
.vplayer-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.vplayer-close svg { width: 16px; height: 16px; }
.vplayer-btn svg { width: 16px; height: 16px; }
.vplayer-btn[data-vp-play] svg { width: 14px; height: 14px; }
.vplayer-btn .i-play, .vplayer-btn[data-state="paused"] .i-pause { display: none; }
.vplayer-btn[data-state="paused"] .i-play { display: inline; }
.vplayer-btn[aria-pressed="false"] .i-mute, .vplayer-btn[aria-pressed="true"] .i-waves { display: none; }
.vplayer-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 56px max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.78));
}
.vplayer-time { flex: none; min-width: 2.8em; font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; text-align: center; color: #C9CFEA; }
.vplayer-close, .vplayer-bar { transition: opacity 0.25s ease; }
.vplayer.is-idle .vplayer-close, .vplayer.is-idle .vplayer-bar { opacity: 0; pointer-events: none; }
.vplayer.is-idle, .vplayer.is-idle video { cursor: none; }

/* Timeline: a range input with the played part filled (--p is set by main.js) */
.vplayer-timeline {
  --p: 0%; flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.vplayer-timeline::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(to right, #7785FF var(--p), rgba(242, 230, 213, 0.28) var(--p));
}
.vplayer-timeline::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(242, 230, 213, 0.28); }
.vplayer-timeline::-moz-range-progress { height: 5px; border-radius: 3px; background: #7785FF; }
.vplayer-timeline::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -5.5px;
  border-radius: 50%; background: #F2E6D5; border: 0; box-shadow: 0 0 0 4px rgba(119, 133, 255, 0.35);
}
.vplayer-timeline::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #F2E6D5; border: 0; box-shadow: 0 0 0 4px rgba(119, 133, 255, 0.35); }
.vplayer-timeline:focus-visible { outline: 2px solid #A5AEFF; outline-offset: 2px; }
@media (max-width: 560px) {
  .vplayer-bar { gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .vplayer-btn { width: 44px; height: 44px; }
  .vplayer-time { min-width: 2.4em; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .vplayer-close, .vplayer-bar { transition: none; } }

/* ---------- Worked example as a journey (commissioning teams) ----------
   Heading on the left, steps down a thin rail on the right. Each step has a dot on the rail,
   a heading, a paragraph and a small product-like panel (.jm). With JavaScript the rail and
   dots fill as the visitor scrolls (.journey--live, .is-reached, --journey-p from main.js). */
.journey-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 96px; }
.journey-head { flex: 4 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.journey-head > * { margin: 0; }
.journey-head .lede { max-width: 26rem; }
@media (min-width: 1000px) { .journey-head { position: sticky; top: 112px; } }
.journey { position: relative; flex: 6 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.journey::before, .journey::after { content: ""; position: absolute; left: 6px; top: 12px; width: 1px; }
.journey::before { bottom: 0; background: rgba(8, 14, 35, 0.16); }
.journey::after { height: calc(100% - 12px); background: #080E23; transform-origin: 50% 0; transform: scaleY(var(--journey-p, 1)); }
.journey-step { position: relative; display: flex; gap: 32px; }
.journey-marker { flex: none; width: 13px; padding-top: 6px; position: relative; z-index: 1; }
.journey-node {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: #4054FF; border: 2px solid #4054FF; box-shadow: 0 0 0 5px #F2F6FB;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.journey-step--turn .journey-node { background: #7A4E27; border-color: #7A4E27; }
.journey--live .journey-step:not(.is-reached) .journey-node { background: #F2F6FB; border-color: rgba(8, 14, 35, 0.4); }
.journey-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 0 88px; }
.journey-step:last-child .journey-body { padding-bottom: 0; }
.journey-body > * { margin: 0; }
.journey-body h3 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.journey-body p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); max-width: 34rem; }
.journey-body .journey-label {
  font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; font-weight: 600;
  line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.journey-step--turn .journey-label { color: var(--copper); }
.journey--live .journey-body { transition: opacity 0.4s ease; }
.journey--live .journey-step:not(.is-reached) .journey-body { opacity: 0.45; }

/* The panel under each step: a tinted tile holding one or two white panels */
.jm { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 10px; background: #E4EAF5; border-radius: 6px; font-size: 0.875rem; line-height: 1.4; color: #080E23; }
.jm-panel { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: #FFFFFF; border: 1px solid #D5DBEA; border-radius: 4px; }
.jm-wide { flex-basis: 100%; }
.jm-cap { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5A6285; margin-bottom: 2px; }
.jm-mono > span:not(.jm-cap) { font-family: var(--font-mono); font-size: 0.8125rem; color: #3B4266; white-space: nowrap; }
.jm-big { font-size: 2.5rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.jm-soft { color: #5A6285; font-size: 0.8125rem; }
.jm-line { color: #3B4266; }
.jm-chip { display: inline-block; padding: 2px 8px; font-weight: 600; font-size: 0.8125rem; color: #2E3FD6; background: #E5E8FF; border-radius: 3px; white-space: nowrap; }
.jm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #E6EAF2; font-weight: 500; }
.jm-row > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: #3B4266; white-space: nowrap; }
.jm-row small { font-size: 0.75rem; color: #5A6285; }
.jm u { text-decoration: none; padding: 2px 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; border-radius: 3px; }
.jm u.ok { color: #15803D; background: #DCFCE7; }
.jm u.bad { color: #B91C1C; background: #FEE2E2; }
.jm-fail { color: #B91C1C; }
.jm-alert { margin-top: 2px; padding: 8px 12px; font-weight: 600; font-size: 0.8125rem; color: #7A4E27; background: #F6EBDD; border-left: 3px solid #C8946A; }
.jm-pips, .jm-docs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.jm-pips i { width: 10px; height: 10px; border-radius: 2px; background: #C9D0E0; }
.jm-docs i { width: 22px; height: 28px; border-radius: 2px; background: #E6EAF2; border: 1px solid #C9D0E0; }
.jm-pips i.on, .jm-docs i.on { background: #4054FF; border-color: #4054FF; }
.jm-seq, .jm-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jm-seq b, .jm-ver b { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 500; border: 1px solid #C9D0E0; border-radius: 4px; white-space: nowrap; }
.jm-seq b i { font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: #5A6285; }
.jm-seq b.on, .jm-ver b.on { border-color: #4054FF; background: #E5E8FF; color: #2E3FD6; }
.jm-seq b.on i { color: #2E3FD6; }
.jm-seq em, .jm-ver em { flex: none; width: 18px; height: 1px; background: #5A6285; position: relative; }
.jm-seq em::after, .jm-ver em::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #5A6285; border-right: 1px solid #5A6285; transform: rotate(45deg); }
.jm-ver b { font-family: var(--font-mono); font-weight: 600; border-style: dashed; }
.jm-ver b.on { border-style: solid; }
.jm-sign { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid #080E23; font-size: 0.75rem; color: #5A6285; }
.jm-sign svg { width: 96px; height: 28px; fill: none; stroke: #2E3FD6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .journey-step { gap: 20px; }
  .journey-body { padding-bottom: 64px; }
  .journey-body h3 { font-size: 1.4375rem; }
  .jm-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .journey-node, .journey--live .journey-body { transition: none; } }

/* ---------- Problem photo cards (commissioning teams) ----------
   Each problem gets a photo with its number and a copper label, the problem text, and
   a "With Rowsys" line. A dark strip below links down to how it works. */
.problems-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; }
.problems-head > div { flex: 3 1 520px; min-width: 0; }
.problems-head h2 { margin: 0; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.problems-head .lede { flex: 2 1 340px; min-width: 0; margin: 0; font-size: 1.1875rem; }
.problem-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.problem-card { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #D5DBEA; }
.problem-card-media { position: relative; }
.problem-card-media img { display: block; width: 100%; height: 280px; object-fit: cover; }
.problem-card-num {
  position: absolute; left: 0; top: 0; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: #F2E5D5; background: #080E23;
}
.problem-card-tag {
  position: absolute; right: 16px; bottom: 16px; padding: 7px 12px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #080E23; background: #C8946A;
}
.problem-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 0; }
.problem-card-body h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.problem-card-body p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.problem-card-fix {
  display: flex; gap: 12px; align-items: flex-start; margin: 24px 32px 28px; padding-top: 18px;
  border-top: 1px solid #D5DBEA; font-size: 0.9375rem; line-height: 1.55; color: #080E23;
}
.problem-card-fix strong { font-weight: 600; color: #2E3FD6; }
.problem-card-tick { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.problem-card-tick circle { fill: #2E3FD6; }
.problem-card-tick path { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.problems-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 24px 32px; background: #080E23; color: #F2E5D5;
}
.problems-cta p { margin: 0; font-size: 1.25rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.problems-cta p span { color: #A5AEFF; }
@media (max-width: 560px) {
  .problem-card-media img { height: 220px; }
  .problem-card-body { padding: 24px 20px 0; }
  .problem-card-fix { margin: 20px 20px 24px; }
  .problems-cta { padding: 20px; }
}

/* ---------- Data-flow diagram (home, How it works) ----------
   Office on the left, field on the right, Rowsys in the middle. main.js draws the
   wires and plays one flow at a time. Blue runs office to field, copper runs back. */
.flow { --flow-c: #7785FF; display: grid; gap: 28px; }
.flow[data-dir="in"] { --flow-c: #C8946A; }
.flow-stage {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 320px) minmax(180px, 1fr) minmax(0, 320px);
  justify-content: space-between;
}
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-wire { fill: none; stroke: rgba(165, 174, 255, 0.22); stroke-width: 1.25; }
.flow-wire-live { fill: none; stroke: var(--flow-c); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.flow-wire-live.is-on { opacity: 1; }
.flow-spark { fill: var(--flow-c); opacity: 0; }
.flow-spark.is-on { opacity: 1; }
.flow-col { position: relative; display: grid; gap: 10px; }
.flow-col-title {
  margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #F2E5D5;
}
.flow-col-title span { display: block; margin-top: 4px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: #9AA3CC; }
.flow-row {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border: 1px solid rgba(165, 174, 255, 0.16); border-radius: 10px;
  background: rgba(8, 14, 35, 0.72); color: #C9CFEA; cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.flow-dot { flex: none; width: 8px; height: 8px; border-radius: 2px; background: rgba(165, 174, 255, 0.4); transition: background-color 0.3s ease; }
.flow-name { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; font-weight: 500; }
.flow-meta { flex: none; font-family: var(--font-mono); font-size: 11px; color: #9AA3CC; }
.flow-row.is-on { border-color: var(--flow-c); background: #0B122B; color: #F2E5D5; }
.flow-row.is-on .flow-dot { background: var(--flow-c); }
.flow-row.is-on .flow-meta { color: #F2E5D5; }
.flow-core { display: flex; justify-content: center; }
.flow-chip {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 124px; height: 124px; border-radius: 20px;
  background: #080E23; border: 1px solid rgba(165, 174, 255, 0.4);
  box-shadow: 0 0 0 0 rgba(119, 133, 255, 0);
}
.flow-chip img { display: block; width: 56px; height: 56px; }
.flow-chip.is-pulse { animation: flow-pulse 0.7s ease-out; }
@keyframes flow-pulse {
  0% { box-shadow: 0 0 0 0 var(--flow-c); border-color: var(--flow-c); }
  100% { box-shadow: 0 0 0 18px rgba(119, 133, 255, 0); }
}
.flow-caption { display: grid; gap: 12px; justify-items: center; text-align: center; }
.flow-caption > * { margin: 0; }
.flow-status { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.flow-dir { color: var(--flow-c); font-weight: 600; }
.flow-count { color: #9AA3CC; }
.flow-text { width: 100%; max-width: none; min-height: 1.6em; text-wrap: balance; font-size: 1.125rem; line-height: 1.6; color: #F2E5D5; }
.flow-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; border-bottom: 1px solid rgba(165, 174, 255, 0.28); }
.flow-group { display: grid; align-content: start; gap: 16px; padding: 8px 0 28px; box-shadow: 0 2px 0 0 transparent; transition: box-shadow 0.3s ease; }
.flow-group:has(.flow-pip[aria-pressed="true"]) { box-shadow: 0 2px 0 0 var(--flow-c); }
.flow-group h3 { margin: 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: #F2E5D5; }
.flow-pips { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-pip, .flow-toggle {
  font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(165, 174, 255, 0.28); background: transparent; color: #C9CFEA;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.flow-pip:hover, .flow-toggle:hover { border-color: #A5AEFF; color: #F2E5D5; }
.flow-pip[aria-pressed="true"] { background: #F2E5D5; border-color: #F2E5D5; color: #080E23; }
.flow-toggle { min-height: 32px; padding: 0 12px; font-size: 0.75rem; letter-spacing: 0; text-transform: none; border-style: dashed; }
.flow-pip:focus-visible, .flow-toggle:focus-visible { outline: 2px solid #A5AEFF; outline-offset: 2px; }
@media (max-width: 860px) {
  .flow-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow-wires { display: none; }
  .flow-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flow-col-title { grid-column: 1 / -1; }
  .flow-row { min-height: 44px; padding: 0 10px; gap: 8px; }
  .flow-name { font-size: 0.8125rem; }
  .flow-meta { display: none; }
  .flow-core { align-items: center; gap: 14px; }
  .flow-core::before, .flow-core::after {
    content: "\2193"; font-family: var(--font-mono); font-size: 18px; color: var(--flow-c);
  }
  .flow[data-dir="in"] .flow-core::before, .flow[data-dir="in"] .flow-core::after { content: "\2191"; }
  .flow-chip { width: 72px; height: 72px; border-radius: 14px; }
  .flow-chip img { width: 36px; height: 36px; }
  .flow-text { font-size: 1rem; min-height: 4.8em; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-row, .flow-dot, .flow-pip, .flow-toggle { transition: none; }
  .flow-chip.is-pulse { animation: none; }
}
#loop .circuit-art { top: 20px; width: min(520px, 42%); }
.section-head.section-head--full { max-width: none; width: 100%; }
.section-head--full .lede { max-width: none; }
.section-head--full h2 { text-wrap: balance; }
@media (min-width: 861px) and (max-width: 1100px) { .flow-text { min-height: 3.2em; } }
.flow-group { justify-items: center; text-align: center; }
.flow-pips { justify-content: center; }
@media (min-width: 861px) {
  .flow-group:first-child { justify-items: start; text-align: left; }
  .flow-group:first-child .flow-pips { justify-content: flex-start; }
  .flow-group:last-child { justify-items: end; text-align: right; }
  .flow-group:last-child .flow-pips { justify-content: flex-end; }
}
@media (max-width: 860px) {
  .flow[data-dir="self"] .flow-core::before, .flow[data-dir="self"] .flow-core::after { content: none; }
}
@media (min-width: 861px) {
  /* Middle group takes the width its buttons need, so they stay on one row. */
  .flow-groups { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 24px; }
}

/* ---------- Demo chapters as cards (home, 02 / The demo) ----------
   Six equal cards. Each has a small diagram in an inset window, drawn in greys with one
   accent colour, then a number, a short title and one line of text. */
.spec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.spec-card { display: flex; flex-direction: column; padding: 12px; background: rgba(38, 53, 91, 0.42); border: 1px solid rgba(242, 229, 213, 0.08); border-radius: 8px; }
.spec-art { display: flex; align-items: center; justify-content: center; padding: 14px; background: #080E23; border: 1px solid rgba(242, 229, 213, 0.12); border-radius: 5px; }
.spec-art svg { display: block; width: 100%; max-width: 280px; height: auto; }
.spec-art .g { fill: rgba(242, 229, 213, 0.26); }
.spec-art .gc { fill: none; stroke: rgba(242, 229, 213, 0.4); stroke-width: 1.5; }
.spec-art .a { fill: #7785FF; }
.spec-art .w { fill: none; stroke: rgba(242, 229, 213, 0.26); stroke-width: 1.2; }
.spec-art .d { fill: rgba(119, 133, 255, 0.08); stroke: rgba(242, 229, 213, 0.36); stroke-width: 1.2; stroke-dasharray: 4 3; }
.spec-art .doc path, .spec-art .pg, .spec-art .ph { fill: rgba(242, 229, 213, 0.06); stroke: rgba(242, 229, 213, 0.36); stroke-width: 1.2; }
.spec-art .docA { fill: #7785FF; }
.spec-art .tk { fill: none; stroke: #080E23; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spec-art .sig { fill: none; stroke: #7785FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spec-art text { font-family: var(--font-mono); font-size: 10px; fill: rgba(242, 229, 213, 0.72); }
.spec-art text.at { fill: #A5AEFF; font-weight: 600; }
.spec-art text.on { fill: #080E23; font-weight: 700; font-size: 9.5px; }
.spec-copy { display: flex; flex-direction: column; gap: 6px; padding: 18px 8px 10px; }
.spec-copy > * { margin: 0; }
.spec-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--copper); }
.spec-copy h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
.spec-copy p { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); max-width: none; }

/* ---------- Partner story: DC2O Farsight (asset owners) ----------
   Heading and summary, three cards each with a white product panel, a row of figures
   and a light call-to-action box. */
.partner-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; }
.partner-head > div { flex: 3 1 520px; min-width: 0; }
.partner-head h2 { margin: 0; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.partner-head h2 em { font-style: normal; color: #7785FF; }
.partner-head .lede { flex: 2 1 340px; min-width: 0; margin: 0; font-size: 1.1875rem; }
.partner-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.partner-card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; padding: 12px; background: rgba(38, 53, 91, 0.42); border: 1px solid rgba(242, 229, 213, 0.1); border-radius: 8px; }
.partner-art { display: flex; flex-direction: column; min-height: 252px; padding: 18px 20px; background: #FFFFFF; color: #080E23; border-radius: 5px; font-size: 0.875rem; line-height: 1.4; }
.partner-cap { padding-bottom: 10px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5A6285; }
.partner-title { padding-bottom: 10px; font-size: 1.0625rem; font-weight: 600; }
.partner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #E6EAF2; font-weight: 500; }
.partner-row small { font-size: 0.75rem; font-weight: 400; color: #5A6285; white-space: nowrap; }
.partner-chip { padding: 2px 8px; font-size: 0.75rem; font-weight: 600; color: #2E3FD6; background: #E5E8FF; border-radius: 3px; white-space: nowrap; }
.partner-row u.warn { text-decoration: none; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; color: #92400E; background: #FEF3C7; border-radius: 3px; }
.partner-ok { margin-top: auto; padding: 8px 12px; font-size: 0.8125rem; font-weight: 600; color: #15803D; background: #DCFCE7; }
.partner-bars { flex: 1 1 auto; display: flex; align-items: flex-end; gap: 6px; min-height: 120px; padding-bottom: 6px; border-bottom: 1px solid #080E23; }
.partner-bars i { flex: 1 1 0; background: #C9D0E0; }
.partner-bars i.on { background: #4054FF; }
.partner-bars + .partner-row { border-top: 0; padding-top: 10px; }
.partner-copy { display: flex; flex-direction: column; gap: 8px; padding: 22px 10px 12px; }
.partner-copy > * { margin: 0; }
.partner-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.partner-copy h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.partner-copy p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); max-width: none; }
.partner-stats { margin: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-stats > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column-reverse; gap: 6px; padding: 28px 24px 28px 0; }
.partner-stats dt { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); }
.partner-stats dd { margin: 0; color: var(--ink); font-size: 2.5rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.partner-stats dd.on { color: #7785FF; }
.partner-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 36px 40px; background: #F2F6FB; color: #080E23; }
.partner-cta > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.partner-cta h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; color: #080E23; }
.partner-cta p { margin: 0; font-size: 1rem; line-height: 1.55; color: #3B4266; max-width: 38rem; }
.partner-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-cta .btn-secondary { color: #080E23; border-color: rgba(8, 14, 35, 0.35); }
@media (max-width: 560px) { .partner-cta { padding: 28px 20px; } .partner-stats > div { padding: 20px 16px 20px 0; } }

/* ---------- Outcomes as photo cards (asset owners) ----------
   A wide lead card with its photo beside the text, then a row of four photo cards,
   then a closing line with a button. The heading reuses .partner-head. */
.outcome-list, .outcome-rest > ol { list-style: none; margin: 0; padding: 0; }
.outcome-list { display: flex; flex-direction: column; gap: 16px; }
.outcome-lead, .outcome-card { background: #111B3A; border: 1px solid rgba(242, 229, 213, 0.1); }
.outcome-lead { display: flex; flex-wrap: wrap; }
.outcome-lead-media { flex: 3 1 420px; min-width: 0; min-height: 340px; position: relative; }
.outcome-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.outcome-lead .outcome-body { flex: 2 1 340px; min-width: 0; justify-content: center; gap: 14px; padding: 48px 44px; }
.outcome-lead h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.outcome-lead h3 em { font-style: normal; color: #7785FF; }
.outcome-lead p { font-size: 1.125rem; color: #C9CFEA; }
.outcome-rest > ol { display: flex; flex-wrap: wrap; gap: 16px; }
.outcome-card { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; }
.outcome-card img { display: block; width: 100%; height: 190px; object-fit: cover; }
.outcome-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.outcome-body > * { margin: 0; }
.outcome-num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; color: var(--copper); }
.outcome-card h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; }
.outcome-body p { font-size: 0.9688rem; line-height: 1.55; color: var(--ink-soft); max-width: none; }
.outcome-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.outcome-cta p { margin: 0; font-size: 1.25rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.outcome-cta p span { color: #A5AEFF; }
@media (max-width: 560px) { .outcome-lead-media { min-height: 240px; } .outcome-lead .outcome-body { padding: 32px 24px; } }
.outcome-list li { max-width: none; }
.partner-cards li, .spec-grid li { max-width: none; }

/* Book-a-demo form: notes on the left, submit button on the right edge of the form */
.form-actions--end { justify-content: space-between; }
.form-actions--end .btn { order: 2; margin-left: auto; }
.form-actions--end .form-note { order: 1; margin: 0; }
