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

    :root {
      --ocean-deep: #060e1a;
      --ocean-mid: #0a1628;
      --ocean-surface: #0f1e30;
      --panel: #132038;
      --border: #1e3450;
      --border-hover: #2a4a6b;
      --panel-hover: #182a44;
      --text-primary: #e8eef4;
      --text-secondary: #8899aa;
      --text-muted: #556677;
      --accent: #00e5a0;
      --accent-glow: rgba(0, 229, 160, 0.15);
      --cta: #ff6b35;
      --cta-hover: #ff8855;
      --gold: #e9c46a;
      --purple: #a78bfa;
      --info: #60a5fa;
      --font-display: 'DM Serif Display', Georgia, serif;
      --font-body: 'IBM Plex Sans', system-ui, sans-serif;
      --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
    }

    html { scroll-behavior: smooth; }

    /* Skip-to-content link -- visually hidden until focused */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 1rem;
      z-index: 9999;
      padding: 0.75rem 1.5rem;
      background: var(--accent);
      color: var(--ocean-deep);
      font-weight: 600;
      font-size: 0.9rem;
      border-radius: 0 0 8px 8px;
      text-decoration: none;
      transition: top 0.2s;
    }
    .skip-link:focus {
      top: 0;
      outline: none;
    }

    /* Focus indicators -- visible focus ring for keyboard navigation */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      border-radius: 4px;
    }
    .nav-dropdown-toggle:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      border-radius: 4px;
    }
    .btn-cta:focus-visible, .btn-secondary:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    body {
      font-family: var(--font-body);
      background: var(--ocean-deep);
      color: var(--text-primary);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background:
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(0, 229, 160, 0.03), transparent),
        radial-gradient(ellipse 600px 400px at 80% 70%, rgba(255, 107, 53, 0.02), transparent);
      pointer-events: none;
      z-index: 0;
    }

    /* =============== NAVIGATION =============== */
    nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .nav-logo {
      font-family: var(--font-mono);
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--text-primary);
      text-decoration: none;
      letter-spacing: -0.02em;
    }
    .nav-logo span { color: var(--accent); }
    .nav-logo:hover { text-decoration: none; }

    .nav-links { display: flex; gap: 1.75rem; align-items: center; }
    .nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
    .nav-links a:hover { color: var(--text-primary); }
    .nav-cta { background: var(--accent) !important; color: var(--ocean-deep) !important; padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600 !important; font-size: 0.82rem !important; letter-spacing: 0.01em; transition: opacity 0.2s; }
    .nav-cta:hover { opacity: 0.88; background: var(--accent) !important; text-decoration: none !important; }

    /* Dropdown nav */
    .nav-dropdown { position: relative; }
    .nav-dropdown-toggle {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .nav-dropdown-arrow { font-size: 0.65rem; opacity: 0.6; }
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      padding-top: 0.5rem;
      z-index: 100;
    }
    .nav-dropdown-menu-inner {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.5rem 0;
      min-width: 180px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    .nav-dropdown-menu a {
      display: block;
      padding: 0.5rem 1rem !important;
      font-size: 0.83rem !important;
      color: var(--text-secondary) !important;
      white-space: nowrap;
    }
    .nav-dropdown-menu a:hover {
      color: var(--text-primary) !important;
      background: rgba(0, 229, 160, 0.06);
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }

    /* Mobile nav groups */
    .nav-mobile-group {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      padding: 0.5rem 0 0.25rem;
      margin-top: 0.5rem;
    }
    .nav-mobile-group:first-child { margin-top: 0; }
    .nav-mobile a { font-size: 1rem !important; padding: 0.6rem 0 !important; }

    .nav-hamburger {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      background: transparent;
      border: 0;
      border-radius: 0;
      color: inherit;
      box-shadow: none;
      -webkit-appearance: none;
      appearance: none;
    }
    .nav-hamburger span {
      display: block; width: 22px; height: 2px;
      background: var(--text-primary);
      transition: transform 0.3s, opacity 0.3s;
    }
    .nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-hamburger.active span:nth-child(2) { opacity: 0; }
    .nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-mobile {
      display: none;
      position: fixed;
      top: 60px; left: 0; right: 0; bottom: 0;
      background: rgba(6, 14, 26, 0.98);
      flex-direction: column;
      padding: 2rem;
      gap: 1.5rem;
      z-index: 99;
    }
    .nav-mobile.active { display: flex; }
    .nav-mobile a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; font-weight: 500; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }

    /* Standalone nav link (outside dropdowns, e.g. "For Racers") */
    .nav-link-standalone { white-space: nowrap; }

    /* =============== HERO =============== */
    .hero {
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 0 auto;
      padding: 5rem 2rem 1rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 3rem;
      align-items: center;
    }

    .hero-content h1 { 
      font-family: var(--font-display); 
      font-size: clamp(2rem, 4.5vw, 3.2rem); 
      line-height: 1.1; 
      margin-bottom: 1rem; 
    }
    .hero-content h1 em { font-style: normal; color: var(--cta); }

    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

    .hero-sub { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1.5rem; font-weight: 300; line-height: 1.7; }
    /* =============== SECTIONS =============== */
    section {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      padding: 3.5rem 2rem;
    }

    .divider { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
    .divider hr { border: none; border-top: 1px solid var(--border); }
    .form-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.6rem; }

    /* =============== FOOTER =============== */
    footer { position: relative; z-index: 1; padding: 3rem 2rem 2rem; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }
    .footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; margin-bottom: 2rem; }
    .footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; }
    .footer-col a { display: block; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; padding: 0.25rem 0; }
    .footer-col a:hover { color: var(--accent); }
    .footer-col .footer-cta-primary { color: var(--accent); font-weight: 600; }
    .footer-col .footer-cta-primary:hover { opacity: 0.85; }
    .footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
    .footer-brand { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; text-decoration: none; display: block; }
    .footer-brand:hover { color: var(--text-primary); text-decoration: none; }
    .footer-brand span { color: var(--accent); }
    .footer-bottom p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }

    /* =============== RESPONSIVE =============== */
    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
      .hero-content { text-align: center; }

    }

    @media (max-width: 768px) {
      nav { padding: 0 1rem; }
      .nav-links { display: none; }
      .nav-hamburger { display: flex; }
      .hero { padding: 4.5rem 1rem 1.5rem; }
      section { padding: 2.5rem 1rem; }

      .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    }

    @media (max-width: 480px) {
      .hero-content h1 { font-size: 1.7rem; }

      .footer-grid { grid-template-columns: 1fr; }
    }

    /* =======================================================================
       FEATURE PAGE STYLES
       Added to support /features/*.html pages
       ======================================================================= */

    /* Feature Hero Section */
    .feature-hero {
      padding: 100px 2rem 3rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .breadcrumb {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 2rem;
    }
    .breadcrumb a {
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.2s;
    }
    .breadcrumb a:hover { color: var(--accent); }
    .breadcrumb .sep {
      margin: 0 0.5rem;
      color: var(--text-muted);
    }

    .feature-hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    .feature-hero .hero-content {
      padding-top: 0;
    }
    .feature-hero .hero-content h1 {
      font-family: var(--font-display);
      font-size: 2.4rem;
      line-height: 1.2;
      margin-bottom: 1.25rem;
    }
    .feature-hero .hero-content h1 em {
      color: var(--accent);
      font-style: italic;
    }

    .hero-visual {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .hero-visual svg {
      display: block;
      width: 100%;
      height: auto;
    }
    .hero-visual--padded {
      padding: 1.5rem;
    }

    /* Photo Hero Variant - full-width background image with dark overlay */
    .feature-hero--photo {
      position: relative;
      max-width: none;
      padding: 140px 2rem 4rem;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      text-align: center;
    }
    .feature-hero--photo::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(10, 14, 20, 0.75) 0%,
        rgba(10, 14, 20, 0.6) 50%,
        rgba(10, 14, 20, 0.8) 100%
      );
      z-index: 1;
    }
    .feature-hero--photo .breadcrumb,
    .feature-hero--photo h1,
    .feature-hero--photo .hero-sub {
      position: relative;
      z-index: 2;
    }
    .feature-hero--photo .breadcrumb {
      color: rgba(255, 255, 255, 0.6);
    }
    .feature-hero--photo .breadcrumb a {
      color: rgba(255, 255, 255, 0.7);
    }
    .feature-hero--photo .breadcrumb a:hover {
      color: var(--accent);
    }
    .feature-hero--photo h1 {
      font-family: var(--font-display);
      font-size: 2.4rem;
      line-height: 1.2;
      color: #ffffff;
      margin-bottom: 1rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }
    .feature-hero--photo .hero-sub {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.1rem;
      font-weight: 300;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    .feature-hero--photo .photo-credit {
      position: relative;
      z-index: 2;
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.35);
      margin-top: 2rem;
    }
    .feature-hero--photo .photo-credit a {
      color: rgba(255, 255, 255, 0.45);
      text-decoration: none;
    }
    .feature-hero--photo .photo-credit a:hover {
      color: rgba(255, 255, 255, 0.7);
    }

    .feature-badge {
      display: inline-block;
      padding: 0.35rem 0.75rem;
      font-size: 0.75rem;
      font-weight: 600;
      border-radius: 20px;
      border: 1px solid;
      margin-bottom: 1rem;
    }

    .lead {
      font-size: 1.1rem;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }

    /* Buttons */
    .btn-cta {
      display: inline-block;
      background: var(--accent);
      color: var(--ocean-deep);
      padding: 0.65rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .btn-cta:hover {
      opacity: 0.88;
      text-decoration: none;
    }
    .btn-secondary {
      display: inline-block;
      color: var(--text-secondary);
      padding: 0.65rem 1.25rem;
      font-size: 0.88rem;
      font-weight: 500;
      text-decoration: none;
      transition: color 0.2s;
    }
    .btn-secondary:hover {
      color: var(--accent);
    }
    .btn-tertiary {
      display: inline-block;
      color: var(--text-muted);
      padding: 0.65rem 1.25rem;
      font-size: 0.8rem;
      font-weight: 400;
      text-decoration: none;
      transition: color 0.2s;
    }
    .btn-tertiary:hover {
      color: var(--accent);
    }

    /* Content Sections */
    .content-section {
      padding: 3rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .section-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }
    .content-section h2 {
      font-family: var(--font-display);
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }
    .content-section > p {
      color: var(--text-secondary);
      margin-bottom: 2rem;
    }

    /* Opt-in readability for long-form prose */
    .prose {
      max-width: 680px;
    }
    .prose p {
      line-height: 1.7;
    }

    /* =====================================================
       COMPONENT LIBRARY: Detail Grid + Card System
       All grid variants and card variants live here only.
       No duplicate declarations elsewhere in this file.
       ===================================================== */

    /* --- Grid: base (responsive auto-fit) --- */
    .detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }

    /* --- Grid: fixed-column variants --- */
    .detail-grid--narrow {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }
    .detail-grid--2col {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }
    .detail-grid--3col {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }
    .detail-grid--4col {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }

    /* 2x2 grid: desktop 2 columns / 2 rows. Use for exactly 4 cards where
       paired grouping reads better than a 4-across row (e.g. step overviews). */
    .detail-grid--2x2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }

    /* --- Grid: responsive breakpoints --- */
    @media (max-width: 768px) {
      .detail-grid--2col { grid-template-columns: 1fr; }
      .detail-grid--3col { grid-template-columns: 1fr; }
      .detail-grid--2x2  { grid-template-columns: 1fr; }
    }
    @media (max-width: 960px) {
      .detail-grid--4col { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 560px) {
      .detail-grid--4col { grid-template-columns: 1fr; }
    }

    /* --- Card: base --- */
    .detail-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
    }
    .detail-card h3 {
      font-size: 1.1rem;
      margin: 1rem 0 0.5rem;
    }
    .detail-card h4 {
      font-size: 1.05rem;
      font-weight: 600;
      margin: 0 0 0.75rem 0;
    }
    .detail-card p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }
    .detail-card p + a {
      display: inline-block;
      margin-top: 0.5rem;
    }
    .detail-card figure {
      margin: 1rem 0 0 0;
    }
    .detail-card figure img {
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    /* --- Card: modifiers (always used with .detail-card base) --- */
    .detail-card--accent h4    { color: var(--accent); }
    .detail-card--gradient     { background: linear-gradient(135deg, var(--panel) 0%, var(--ocean-mid) 100%); }

    /* Two Column Layout -- prose only.
       Use for bare text/prose columns. Do NOT use with .detail-card or .callout children.
       For card/callout pairs, use .detail-grid--2col instead. */
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }

    /* Content Row -- text + image side-by-side.
       Default: text left, image right. Use .content-row--reverse for image left.
       Children: .content-row-text and .content-row-visual.
       Mobile: stacks single-column, text on top. */
    .content-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
      align-items: center;
      margin-top: 1.5rem;
    }
    .content-row--reverse { direction: rtl; }
    .content-row--reverse > * { direction: ltr; }
    .content-row-text h2 { margin-top: 0; }
    .content-row-visual img {
      display: block;
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    /* Callout Box */
    .callout {
      background: var(--ocean-mid);
      border-left: 3px solid var(--accent);
      padding: 1rem 1.25rem;
      border-radius: 0 8px 8px 0;
      margin: 1.5rem 0;
    }
    .callout p {
      margin: 0;
      font-size: 0.95rem;
    }

    /* CTA Band */
    .cta-band {
      background: linear-gradient(135deg, var(--panel) 0%, var(--ocean-mid) 100%);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 3rem 2rem;
      text-align: center;
    }
    .cta-band h2 {
      font-family: var(--font-display);
      font-size: 1.6rem;
      margin-bottom: 0.75rem;
    }
    .cta-band p {
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
    }

    /* Trust Badges */

    .badge {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      font-weight: 600;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
    }

    /* =======================================================================
       METHODOLOGY PAGE STYLES
       Scientific notation, formula boxes, coefficient tables
       ======================================================================= */

    .formula-note {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-top: 0.5rem;
    }

    /* Mobile Responsive for Feature Pages */
    @media (max-width: 768px) {
      .feature-hero {
        padding: 80px 1.25rem 2rem;
      }
      .feature-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      .feature-hero .hero-content h1 {
        font-size: 1.8rem;
      }
      .feature-hero--photo {
        padding: 100px 1.25rem 3rem;
      }
      .feature-hero--photo h1 {
        font-size: 1.8rem;
      }
      .hero-visual {
        order: -1;
      }
      .two-col {
        grid-template-columns: 1fr;
      }
      .content-row {
        grid-template-columns: 1fr;
      }
      .content-row--reverse { direction: ltr; }
      .detail-grid {
        grid-template-columns: 1fr;
      }
      .content-section {
        padding: 2rem 1.25rem;
      }

    }

    /* ==========================================================
       METHODOLOGY PAGE STYLES (from methodology.html)
       Pipeline cascade, formula blocks, reference tables, flags
       ========================================================== */

    /* Pipeline cascade */
    .pipeline-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      margin-top: 2rem;
      position: relative;
    }
    .pipeline-grid .pipeline-step {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 1rem;
      padding: 1.25rem 0;
      position: relative;
    }
    .pipeline-grid .pipeline-step:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 27px;
      bottom: 0;
      top: 56px;
      width: 2px;
      background: linear-gradient(to bottom, #00e5a0, rgba(0, 229, 160, 0.15));
    }
    .step-number {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(0, 229, 160, 0.08);
      border: 2px solid rgba(0, 229, 160, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--accent);
      position: relative;
      z-index: 1;
      flex-shrink: 0;
    }
    .step-body h3 {
      font-family: var(--font-display);
      font-size: 1.1rem;
      margin-bottom: 0.25rem;
    }
    .step-subtitle {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }
    .step-body p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    /* Key formula blocks */
    .formula-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 8px;
      padding: 1.25rem 1.5rem;
      margin: 1.25rem 0;
    }
    .formula-block .formula-label {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }
    .formula-block code {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--text-primary);
      display: block;
      margin: 0.3rem 0;
      line-height: 1.7;
    }
    .formula-block .formula-note {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      font-style: italic;
    }

    /* Detail section tables */
    .detail-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1rem;
      font-size: 0.82rem;
    }
    .detail-table th {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      text-align: left;
      padding: 0.6rem 0.75rem;
      border-bottom: 2px solid var(--border);
    }
    .detail-table td {
      padding: 0.5rem 0.75rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-secondary);
      vertical-align: top;
    }
    .detail-table td:first-child {
      font-family: var(--font-mono);
      font-size: 0.78rem;
      color: var(--text-primary);
      white-space: nowrap;
    }
    .detail-table tr:hover td {
      background: rgba(0, 229, 160, 0.03);
    }

    /* Tier labels */
    .tier-label {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent);
      background: rgba(0, 229, 160, 0.08);
      border: 1px solid rgba(0, 229, 160, 0.2);
      padding: 0.25rem 0.75rem;
      border-radius: 100px;
      display: inline-block;
      margin-bottom: 1rem;
    }

    /* Collapsible reference sections */
    details.ref-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 1rem;
      overflow: hidden;
    }
    details.ref-block summary {
      padding: 1rem 1.25rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-primary);
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 0.2s;
    }
    details.ref-block summary::-webkit-details-marker { display: none; }
    details.ref-block summary::after {
      content: '\25B6';
      font-size: 0.7rem;
      color: var(--text-muted);
      transition: transform 0.2s;
    }
    details.ref-block[open] summary::after {
      transform: rotate(90deg);
    }
    details.ref-block summary:hover {
      background: rgba(0, 229, 160, 0.03);
    }
    details.ref-block .ref-content {
      padding: 0 1.25rem 1.25rem;
    }

    @media (max-width: 768px) {
      .pipeline-grid .pipeline-step { grid-template-columns: 40px 1fr; }
      .step-number { width: 40px; height: 40px; font-size: 0.9rem; }
      .pipeline-grid .pipeline-step:not(:last-child)::after { left: 19px; top: 44px; }
    }

    /* =============== SCREENSHOT DISPLAY =============== */
    .screenshot-figure {
      margin: 2.5rem auto 0;
      max-width: 520px;
      text-align: center;
    }
    .screenshot-figure img {
      width: 100%;
      border-radius: 12px;
      border: 1px solid var(--border);
    }
    .screenshot-figure figcaption {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.75rem;
      line-height: 1.5;
    }

    /* --- Screenshot inline: width-hugging figure, left-aligned caption --- */
    .screenshot-inline {
      display: table;
      width: 100%;
      margin: 2rem 0 0;
    }
    .screenshot-inline img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 12px;
      border: 1px solid var(--border);
    }
    .screenshot-inline figcaption {
      display: table-caption;
      caption-side: bottom;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.6rem;
      line-height: 1.5;
      text-align: left;
    }

    @media (max-width: 768px) {
      .screenshot-figure { max-width: 100%; }
    }

    /* =============== FEATURE IMAGE ===============
       Centered standalone image inside a content-section.
       Replaces inline: max-width:600px; width:100%; border-radius:8px
       Usage: <img class="img-feature" ...>
       For wider images use .img-feature--wide (700px max)
    ============================================= */
    .img-feature {
      display: block;
      width: 100%;
      max-width: 600px;
      margin: 1.5rem auto 0;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .img-feature--wide {
      max-width: 700px;
    }
    .content-section--centered {
      text-align: center;
    }

    /* =============== INLINE FIGURE ===============
       Full-width figure with styled figcaption.
       Replaces inline figure/figcaption styling on methodology pages.
       Usage: <figure class="figure-inline"><img ...><figcaption>...</figcaption></figure>
    ============================================= */
    .figure-inline {
      margin: 2rem 0;
      text-align: center;
    }
    .figure-inline img {
      max-width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
    }
    .figure-inline figcaption {
      margin-top: 0.75rem;
      font-size: 0.9rem;
      color: var(--text-muted);
      font-style: italic;
      line-height: 1.5;
    }

    /* =============== DATA TABLE ===============
       Canonical comparison/data table.
       Replaces all inline table/th/td styles on expert-mode and digital-twin.
       Usage:
         <div class="table-scroll">
           <table class="data-table">
             <thead><tr>
               <th>Label</th>
               <th class="col-header-accent">Col A</th>
             </tr></thead>
             <tbody><tr>
               <td>Row label</td>
               <td class="col-check">&#x2713;</td>
               <td class="col-dash">&mdash;</td>
               <td class="col-note">Read-only</td>
             </tr></tbody>
           </table>
         </div>
    ============================================= */
    .table-scroll {
      overflow-x: auto;
      width: 100%;
    }
    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.88rem;
    }
    .data-table th {
      text-align: left;
      padding: 0.6rem 0.75rem;
      border-bottom: 1px solid rgba(0,229,160,0.25);
      color: var(--text-secondary);
      font-family: var(--font-mono);
      font-weight: 600;
      font-size: 0.72rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .data-table th.col-header-accent {
      color: var(--accent);
      text-align: center;
    }
    .data-table td {
      padding: 0.45rem 0.75rem;
      color: var(--text-primary);
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .data-table tr:last-child td {
      border-bottom: none;
    }
    .data-table td.col-check  { text-align: center; color: var(--accent); }
    .data-table td.col-dash   { text-align: center; color: var(--text-muted); }
    .data-table td.col-note   { text-align: center; color: var(--text-secondary); font-size: 0.8rem; }

    /* =============== CTA STACK ===============
       Vertical centered button stack (used on 404).
       Replaces inline flex column layout.
       Usage: <div class="cta-stack"><a class="btn-cta">...</a></div>
    ============================================= */
    .cta-stack {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
      max-width: 300px;
      margin: 0 auto;
    }
    .cta-stack .btn-cta,
    .cta-stack .btn-secondary {
      width: 100%;
      text-align: center;
    }

    /* =============== DIAGRAM CENTERING ===============
       Constrains inline SVG diagrams to a readable width.
       Replaces inline: max-width:400px/420px; margin:0 auto
       Usage: <div class="diagram-sm"> or <div class="diagram-md">
    ============================================= */
    .diagram-sm { max-width: 400px; margin: 0 auto; }
    .diagram-md { max-width: 420px; margin: 0 auto; }
    .diagram-lg { max-width: 680px; margin: 0 auto; }


    .detail-card--gradient h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      margin-bottom: 0.5rem;
    }
    .detail-card--gradient p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .detail-card--clickable {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      transition: border-color 0.2s, transform 0.2s;
    }
    .detail-card--clickable:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }
    .detail-card--centered {
      text-align: center;
    }



/* ============================================================
   UTILITY CLASSES (v6.1 -- inline style cleanup)
   ============================================================ */

/* Spacing */
.mt-sm  { margin-top: 0.75rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 1.5rem; }
.mt-xl  { margin-top: 2rem; }
.mb-lg  { margin-bottom: 1.5rem; }

/* Text color */
.text-accent    { color: var(--accent); }
.text-cta       { color: var(--cta); }
.text-gold      { color: var(--gold); }
.text-purple    { color: var(--purple); }
.text-info      { color: var(--info); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }

/* Feature badge variants */
.feature-badge--cta    { background: rgba(255, 107, 53, 0.08); border-color: rgba(255, 107, 53, 0.25); color: var(--cta); }
.feature-badge--accent { background: rgba(0, 229, 160, 0.08); border-color: rgba(0, 229, 160, 0.25); color: var(--accent); }
.feature-badge--purple { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.25); color: var(--purple); }
.feature-badge--info   { background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.25); color: var(--info); }

/* Section closer (centered summary line below card grids) */
.section-closer { font-size: 0.95rem; color: var(--text-secondary); margin-top: 1.5rem; text-align: center; }

/* Text size utilities */
.text-sm  { font-size: 0.88rem; }
.text-xs  { font-size: 0.8rem; }

/* Stat display -- large mono-font accent number inside a card */
.stat {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* Inline link styling */
.link-accent { color: var(--accent); text-decoration: none; font-weight: 600; }
.link-cta    { color: var(--cta); }

/* Detail card heading colors */
.detail-card h3.text-accent { color: var(--accent); }
.detail-card h3.text-cta    { color: var(--cta); }
.detail-card h3.text-gold   { color: var(--gold); }
.detail-card h3.text-info   { color: var(--info); }

/* CE-specific heading inline colors */
h3.text-accent { margin-bottom: 0.5rem; }

/* CE page: image display variants */
.hero-visual--transparent { padding: 0 1rem 1rem 1rem; background: transparent; border: none; }
.two-col > div > :first-child { margin-top: 0; }

.img-rounded             { width: 100%; border-radius: 12px; }

/* ============================================================
   GENUINE NEW DEFINITIONS (v8.4 -- ghost class resolution)
   All use existing design tokens. No magic numbers.
   ============================================================ */

/* Text alignment utility -- was assumed to exist, was not defined */
.text-center { text-align: center; }

/* Zero top margin -- paragraph continuation after a heading or dl */
.mt-0 { margin-top: 0; }

/* Onboarding box -- callout card variant for "What to have ready" in contact.html
   Uses panel background and border like detail-card, left-accent like callout */


/* ======================================================================
   HOMEPAGE-SCOPED STYLES (body.homepage)
   ====================================================================== */

.homepage {
  --panel: #0d1b2a;
  --panel-hover: #111f33;
  min-height: 100vh;
}
.homepage a { color: var(--accent); text-decoration: none; }
.homepage a:hover { text-decoration: underline; }
.homepage a.btn-cta,
.homepage a.nav-cta { color: var(--ocean-deep); text-decoration: none; }
.homepage a.hero-cta { color: #fff; text-decoration: none; }
.homepage a.hero-cta:hover,
.homepage a.nav-cta:hover { text-decoration: none; }
.homepage a.btn-tertiary,
.homepage a.hero-secondary { color: var(--text-secondary); text-decoration: none; }
.homepage a.btn-secondary:hover,
.homepage a.hero-secondary:hover { color: var(--text-primary); text-decoration: none; }
.homepage em { font-style: italic; color: var(--accent); }
.homepage h1 { font-family: var(--font-display); font-size: 2.8rem; line-height: 1.15; margin-bottom: 1rem; color: var(--text-primary); }
.homepage h2 { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.25; margin-bottom: 0.75rem; color: var(--text-primary); }
.homepage h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; }
.homepage nav { max-width: 1200px; }
.homepage .nav-links a:not(.nav-cta) { transition: color 0.2s; }
.homepage .content-section { max-width: 960px; }
.homepage .lead { max-width: 640px; }
.homepage .divider { max-width: 960px; }
.homepage .hero { max-width: 1200px; }

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.9rem; background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2); border-radius: 100px;
  font-size: 0.7rem; color: var(--accent); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }

/* Hero buttons */
.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-cta { display: inline-block; padding: 0.8rem 1.75rem; background: var(--cta); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: background 0.2s, transform 0.15s; }
.hero-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.hero-secondary { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.25rem; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s; }
.hero-secondary:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* Sim preview (tablet frame) */
.sim-preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.sim-viewport {
  position: relative;
  background: var(--ocean-deep);
}
.sim-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s;
}
.sim-viewport.loading img { opacity: 0.5; }

/* Homepage 3D perspective on tablet frame */
.homepage .sim-preview {
  transform: perspective(1000px) rotateY(-10deg) rotateX(6deg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,160,0.08);
}

/* Hero rotator */
.homepage .hero-rotator { position: relative; width: 100%; }
.homepage .hero-rotator picture {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.homepage .hero-rotator picture:first-child { position: relative; }
.homepage .hero-rotator picture.active { opacity: 1; }
.homepage .hero-rotator img { width: 100%; height: auto; display: block; }

/* Proof bar */
.homepage .proof-bar { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.homepage .proof-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; padding: 1.5rem 0; flex-wrap: wrap;
}
.homepage .proof-item { text-align: center; }
.homepage .proof-item .proof-num {
  font-family: var(--font-mono); font-size: 1.15rem;
  font-weight: 700; color: var(--accent);
}
.homepage .proof-item .proof-label {
  font-size: 0.72rem; color: var(--text-muted);
  font-weight: 500; margin-top: 0.15rem;
}

/* Feature cards */
.homepage .detail-card--clickable {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.homepage .detail-card--clickable p { font-size: 0.85rem; line-height: 1.55; flex-grow: 1; margin-bottom: 0; }
.homepage .detail-card--clickable h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.homepage .card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem; flex-shrink: 0;
}
.homepage .card-icon.accent-bg  { background: rgba(0, 229, 160, 0.1); }
.homepage .card-icon.gold-bg    { background: rgba(245, 158, 11, 0.1); }
.homepage .card-icon.cta-bg     { background: rgba(59, 130, 246, 0.1); }
.homepage .card-icon.purple-bg  { background: rgba(167, 139, 250, 0.1); }
.homepage .card-link {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; color: var(--accent);
  margin-top: 1rem; letter-spacing: 0.03em;
}

/* How-it-works steps */
.homepage .how-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.homepage .how-step { text-align: center; min-width: 160px; }
.homepage .how-step .step-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem;
}
.homepage .how-step h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.2rem; }
.homepage .how-step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.homepage .how-arrow { font-size: 1.2rem; color: var(--accent); font-weight: 700; }

/* Engine body */
.homepage .engine-body p {
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.7;
  margin-bottom: 0;
}
.homepage .engine-body p + p { margin-top: 0.75rem; }

/* Persona trails */
.homepage .persona-trails { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.homepage .persona-trails a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.homepage .persona-trails a:hover { text-decoration: underline; }

/* CTA band override */
.homepage .cta-band { background: none; border: none; padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
.homepage .cta-band h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.homepage .cta-band p { font-size: 0.95rem; margin-bottom: 1.75rem; }
.homepage .cta-band .btn-cta { margin-right: 0.5rem; }

/* Footer */
.homepage footer { max-width: 1100px; }
.homepage .footer-brand { color: var(--text-primary); }

/* Homepage responsive - tablet */
@media (max-width: 900px) {
  .homepage .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .homepage .hero-content { text-align: center; }
  .homepage .hero-buttons { justify-content: center; }
  .homepage .sim-preview { transform: none; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
}

/* Homepage responsive - mobile */
@media (max-width: 768px) {
  .homepage .hero { padding: 3rem 1.25rem 2rem; }
  .homepage .hero-content h1 { font-size: 2.2rem; }
  .homepage .hero-sub { font-size: 0.95rem; }
  .homepage .proof-bar-inner { gap: 1.5rem; }
  .homepage .how-steps { flex-direction: column; }
  .homepage .how-arrow { transform: rotate(90deg); }
}

/* Homepage responsive - small mobile */
@media (max-width: 480px) {
  .homepage .hero-content h1 { font-size: 1.85rem; }
  .homepage .hero-buttons { flex-direction: column; }
  .homepage .hero-cta, .homepage .hero-secondary { width: 100%; text-align: center; justify-content: center; }
  .homepage .proof-bar-inner { gap: 1rem; }
}
