    /* ============================================================
       DESIGN SYSTEM - Light theme from peripamo-landing
       ============================================================ */

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

    :root {
      /* Surfaces */
      --surface-base: #F9F9F9;
      --surface-paper: #FFFFFF;
      --surface-well: #F2F4F4;
      --surface-anchor: #2D3435;

      /* Text */
      --on-surface: #2D3435;
      --on-surface-variant: #596061;
      --on-primary: #F8F8F8;

      /* Accent */
      --secondary: #D4AF37;
      --on-secondary: #FFF8EF;

      /* Borders */
      --outline-variant: #ACB3B4;
      --ghost-border: rgba(172, 179, 180, 0.15);
      --ghost-border-hover: rgba(172, 179, 180, 0.30);

      /* Shadows */
      --ghost-shadow: 0px 4px 20px rgba(45, 52, 53, 0.06);

      /* Typography */
      --font-headline: 'Be Vietnam Pro', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --tracking-tight: -0.02em;
      --tracking-display: -0.04em;
    }

    html {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      scroll-behavior: auto; /* GSAP handles smooth scroll */
    }

    body {
      font-family: var(--font-body);
      color: var(--on-surface);
      background: var(--surface-base);
      overflow-x: hidden;
      line-height: 1.5;
      letter-spacing: var(--tracking-tight);
    }

    /* ============================================================
       PREFERS-REDUCED-MOTION
       ============================================================ */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* ============================================================
       NAVBAR - Light glassmorphic (from landing page)
       ============================================================ */

    .navbar {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 48px);
      max-width: 1360px;
      z-index: 100;
      background: rgba(255, 255, 255, 0.50);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--ghost-border);
      border-radius: 16px;
      box-shadow: var(--ghost-shadow);
      transition: background 0.3s ease;
    }

    .navbar-inner {
      padding: 0 28px;
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navbar-logo {
      height: 32px;
      display: flex;
      align-items: center;
    }

    .navbar-logo img {
      height: 26px;
      width: auto;
    }

    .navbar-links {
      display: flex;
      gap: 24px;
      list-style: none;
      white-space: nowrap;
    }

    .navbar-links a {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--on-surface);
      text-decoration: none;
      transition: color 0.2s;
    }

    .navbar-links a:hover {
      color: var(--secondary);
    }

    .navbar-cta {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 7px 18px;
      background: var(--secondary);
      color: var(--on-secondary);
      text-decoration: none;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .navbar-cta:hover {
      opacity: 0.85;
    }

    /* Navbar dark variant (for dark hero) */
    .navbar.hero-dark {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.06);
    }

    .navbar.hero-dark .navbar-links a {
      color: rgba(255, 255, 255, 0.7);
    }

    .navbar.hero-dark .navbar-links a:hover {
      color: #FFFFFF;
    }

    .navbar.hero-dark .navbar-burger span {
      background: rgba(255, 255, 255, 0.8);
    }

    /* Hamburger */
    .navbar-burger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      position: relative;
      width: 24px;
      height: 18px;
    }

    .navbar-burger span {
      display: block;
      width: 100%;
      height: 1.5px;
      background: var(--on-surface);
      position: absolute;
      left: 0;
      transition: transform 0.3s, opacity 0.3s;
    }

    .navbar-burger span:nth-child(1) { top: 0; }
    .navbar-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .navbar-burger span:nth-child(3) { bottom: 0; }

    .navbar-burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .navbar-burger.open span:nth-child(2) { opacity: 0; }
    .navbar-burger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

    /* Mobile menu overlay */
    .mobile-menu {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 99;
      background: rgba(10, 10, 15, 0.70);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .mobile-menu.open {
      display: flex;
      opacity: 1;
      pointer-events: all;
    }

    .mobile-menu a {
      font-family: var(--font-headline);
      font-size: 1.5rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      padding: 16px 0;
      transition: color 0.2s;
    }

    .mobile-menu a:hover {
      color: var(--secondary);
    }

    .mobile-menu .mobile-menu-cta {
      margin-top: 24px;
      font-size: 12px;
      font-family: var(--font-body);
      font-weight: 600;
      letter-spacing: 0.06em;
      padding: 10px 28px;
      background: var(--secondary);
      color: #FFF8EF;
      text-transform: uppercase;
    }

    /* ============================================================
       SCENE BASE
       ============================================================ */
    .scene {
      min-height: 100vh;
      width: 100%;
      position: relative;
      overflow: hidden;
      will-change: transform;
    }

    .scene-inner {
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 4rem;
      height: 100vh;
      display: flex;
      align-items: center;
    }

    /* ============================================================
       SCROLL NAV DOTS
       ============================================================ */
    .scroll-nav {
      position: fixed;
      right: 2rem;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .scroll-nav-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(172, 179, 180, 0.3);
      border: none;
      cursor: pointer;
      transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
      padding: 0;
    }

    .scroll-nav-dot:hover {
      background: var(--outline-variant);
      transform: scale(1.3);
    }

    .scroll-nav-dot.active {
      background: var(--secondary);
      transform: scale(1.4);
      box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    }

    /* ============================================================
       SCENE 0 -- HERO
       ============================================================ */
    /* Hero: dark → light on scroll (matching main landing page) */
    #scene-hero {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0a0a0f;
      position: relative;
      padding-top: 80px;
      overflow: hidden;
    }

    #scene-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--surface-base);
      opacity: var(--hero-fade, 0);
      z-index: 0;
    }

    .hero-bg-orb {
      position: absolute;
      width: 800px;
      height: 800px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 40%, transparent 70%);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      will-change: transform;
      opacity: calc(1 - var(--hero-fade, 0));
    }

    .hero-bg-orb-2 {
      position: absolute;
      width: 600px;
      height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
      top: 30%;
      left: 60%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      opacity: calc(1 - var(--hero-fade, 0));
    }

    .hero-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 1000px;
      padding: 0 2rem;
      position: relative;
      z-index: 2;
    }

    .hero-title {
      font-family: var(--font-headline);
      font-size: clamp(3rem, 6vw, 5.5rem);
      font-weight: 700;
      letter-spacing: var(--tracking-display);
      line-height: 0.92;
      color: color-mix(in srgb, #FFFFFF calc((1 - var(--hero-fade, 0)) * 100%), var(--on-surface));
      margin-bottom: 1.5rem;
      opacity: 0;
      position: relative;
      z-index: 2;
    }

    .hero-title .accent {
      color: var(--secondary);
    }

    .hero-subtitle {
      font-family: var(--font-body);
      font-size: clamp(13px, 1.5vw, 14px);
      font-weight: 400;
      color: color-mix(in srgb, rgba(255,255,255,0.5) calc((1 - var(--hero-fade, 0)) * 100%), var(--on-surface-variant));
      line-height: 1.7;
      margin-bottom: 3.5rem;
      max-width: 600px;
      opacity: 0;
      position: relative;
      z-index: 2;
    }

    /* Glassmorphic input panel -- dark for contrast */
    .hero-input-panel {
      background: var(--surface-anchor);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 1.5rem 2rem;
      width: 100%;
      max-width: 680px;
      opacity: 0;
      position: relative;
      z-index: 2;
    }

    .hero-input-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(248, 248, 248, 0.4);
      margin-bottom: 0.75rem;
      display: block;
    }

    .hero-input-text {
      font-family: var(--font-mono);
      font-size: 1rem;
      color: var(--on-primary);
      line-height: 1.7;
      min-height: 1.7em;
    }

    .hero-input-cursor {
      display: inline-block;
      width: 2px;
      height: 1.1em;
      background: var(--secondary);
      vertical-align: text-bottom;
      animation: cursor-blink 1s step-end infinite;
    }

    @keyframes cursor-blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    /* Scroll indicator */
    .scroll-indicator {
      position: absolute;
      bottom: 3rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      opacity: 0;
    }

    .scroll-indicator-text {
      font-family: var(--font-body);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.4);
      position: relative;
      z-index: 2;
    }

    .scroll-indicator-line {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, var(--secondary), transparent);
      animation: scroll-pulse 2s ease-in-out infinite;
    }

    @keyframes scroll-pulse {
      0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
      50% { opacity: 1; transform: scaleY(1); }
    }

    /* ============================================================
       SCENE 1 -- MALA DISPATCHES
       ============================================================ */
    #scene-dispatch {
      background: var(--surface-paper);
    }

    .dispatch-inner {
      width: 100%;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .dispatch-title {
      position: absolute;
      top: 10vh;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      z-index: 5;
    }

    .dispatch-title .label {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--secondary);
      margin-bottom: 0.75rem;
      opacity: 0;
    }

    .dispatch-title h2 {
      font-family: var(--font-headline);
      font-size: clamp(2rem, 4vw, 3.5rem);
      font-weight: 700;
      letter-spacing: var(--tracking-display);
      color: var(--on-surface);
      opacity: 0;
    }

    .dispatch-flow {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      width: 100%;
      max-width: 700px;
    }

    .dispatch-query {
      background: var(--surface-well);
      border: 1px solid var(--ghost-border);
      padding: 1.5rem 2rem;
      width: 100%;
      text-align: left;
      opacity: 0;
    }

    .dispatch-query-text {
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--on-surface);
      line-height: 1.6;
      font-style: italic;
    }

    .dispatch-console {
      background: var(--surface-anchor);
      border: 1px solid rgba(255, 255, 255, 0.06);
      padding: 1.75rem 2rem;
      width: 100%;
      max-width: 480px;
      opacity: 0;
    }

    .console-line {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: rgba(248, 248, 248, 0.5);
      line-height: 2.2;
      opacity: 0;
    }

    .console-prompt {
      color: var(--secondary);
      font-weight: 400;
    }

    .console-val {
      color: var(--on-primary);
      font-weight: 400;
    }

    .console-ok {
      color: #28ca42;
    }

    /* ============================================================
       AGENT SCENES -- SHARED SPLIT LAYOUT
       ============================================================ */
    .agent-split {
      display: flex;
      align-items: center;
      gap: 4rem;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      padding: 2rem 4rem;
      min-height: 100vh;
      box-sizing: border-box;
    }

    /* Full-screen agent intro overlay */
    .agent-intro {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      z-index: 5;
      padding: 2rem;
      opacity: 0;
    }

    .agent-intro-label {
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--secondary);
      margin-bottom: 1.5rem;
      opacity: 0;
    }

    .agent-intro-name {
      font-family: var(--font-headline);
      font-size: clamp(4rem, 10vw, 8rem);
      font-weight: 300;
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      color: var(--on-surface);
      line-height: 0.9;
      margin-bottom: 1.5rem;
      opacity: 0;
    }

    .agent-intro-role {
      font-family: var(--font-body);
      font-size: clamp(1rem, 2vw, 1.25rem);
      color: var(--on-surface-variant);
      max-width: 500px;
      line-height: 1.6;
      opacity: 0;
    }

    .agent-intro-role strong {
      color: var(--on-surface);
      font-weight: 600;
    }

    .agent-info {
      flex: 0 0 38%;
      max-width: 38%;
    }

    .agent-panel {
      flex: 1;
      min-width: 0;
    }

    .agent-label {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--secondary);
      margin-bottom: 1rem;
      opacity: 0;
    }

    .agent-name {
      font-family: var(--font-headline);
      font-size: clamp(3rem, 5vw, 4.5rem);
      font-weight: 300;
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      line-height: 1;
      color: var(--on-surface);
      margin-bottom: 0.75rem;
      opacity: 0;
    }

    .agent-role {
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--on-surface-variant);
      margin-bottom: 2rem;
      line-height: 1.7;
      opacity: 0;
    }

    .agent-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      opacity: 0;
    }

    .agent-tag {
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: var(--on-surface);
      border: 1px solid var(--ghost-border);
      background: var(--surface-well);
      padding: 6px 12px;
    }

    /* Terminal panel -- dark for contrast (like code blocks) */
    .terminal-panel {
      background: var(--surface-anchor);
      border: 1px solid rgba(255, 255, 255, 0.06);
      padding: 2rem 1.75rem;
      position: relative;
      overflow: hidden;
      opacity: 0;
      max-height: 80vh;
    }

    /* Parallax background orbs -- light-friendly */
    .scene-bg-orb {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      will-change: transform;
    }
    .scene-bg-orb--gold {
      background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    }
    .scene-bg-orb--grey {
      background: radial-gradient(circle, rgba(45, 52, 53, 0.03) 0%, transparent 60%);
    }
    .scene-bg-orb--large {
      width: 900px;
      height: 900px;
    }
    .scene-bg-orb--medium {
      width: 500px;
      height: 500px;
    }

    /* Agent thinking state */
    .terminal-thinking {
      font-family: var(--font-body);
      font-size: 0.85rem;
      color: rgba(248, 248, 248, 0.5);
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      opacity: 0;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-style: italic;
    }

    .thinking-icon {
      color: var(--secondary);
      font-size: 0.5rem;
      animation: pulse-think 1.5s ease-in-out infinite;
    }

    @keyframes pulse-think {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 1; }
    }

    /* ── Tool call: expand/collapse system ── */
    .tool-call {
      margin-bottom: 0.5rem;
      opacity: 0;
      transform: translateX(20px);
      position: relative;
    }

    /* Expanded state - the "working" view */
    .tool-expanded {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(212, 175, 55, 0.2);
      padding: 1.25rem;
      overflow: hidden;
      max-height: 200px;
    }

    .tool-expanded-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .tool-working-dot {
      width: 8px;
      height: 8px;
      background: var(--secondary);
      border-radius: 50%;
      animation: pulse-work 1s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes pulse-work {
      0%, 100% { opacity: 0.4; transform: scale(0.8); }
      50% { opacity: 1; transform: scale(1.2); }
    }

    .tool-expanded-name {
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--on-primary);
    }

    .tool-expanded-body {
      padding-left: 1.75rem;
    }

    .tool-expanded-detail {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: rgba(248, 248, 248, 0.45);
      line-height: 1.8;
      letter-spacing: 0.01em;
    }

    .tool-expanded-detail span {
      display: block;
    }

    .tool-expanded-detail .val {
      color: var(--secondary);
      font-weight: 400;
    }

    .tool-progress {
      height: 2px;
      background: rgba(255, 255, 255, 0.06);
      margin-top: 1rem;
      overflow: hidden;
    }

    .tool-progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--secondary), rgba(212, 175, 55, 0.4));
    }

    /* Collapsed state - the "done" view */
    .tool-collapsed {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0 1.25rem;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
    }

    .tool-done-icon {
      width: 18px;
      height: 18px;
      border: 1.5px solid var(--secondary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 9px;
      color: var(--secondary);
      font-weight: 700;
    }

    .tool-collapsed-name {
      font-family: var(--font-body);
      font-size: 0.8rem;
      color: rgba(248, 248, 248, 0.5);
    }

    .tool-collapsed-result {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: var(--secondary);
      margin-left: auto;
    }

    /* SVG chart area */
    .chart-area {
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
      width: 100%;
      opacity: 0;
    }

    .chart-area svg {
      width: 100%;
      display: block;
    }

    /* Synthesis line */
    .synthesis-text {
      font-family: var(--font-body);
      font-size: 1rem;
      color: rgba(248, 248, 248, 0.7);
      line-height: 1.7;
      margin-top: 1.25rem;
      opacity: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 1.25rem;
    }

    .synthesis-text strong {
      color: var(--secondary);
      font-weight: 700;
      font-size: 1.1rem;
    }

    .hero-subtitle strong {
      color: var(--on-surface);
    }

    .finale-synthesis-text strong {
      color: var(--on-surface);
    }

    /* ============================================================
       SCENE 2 -- AIDA
       ============================================================ */
    #scene-aida {
      background: var(--surface-base);
    }

    /* Bar chart -- inside dark terminal */
    .bar-chart-bar {
      transition: height 0.01s;
    }

    .bar-chart-label {
      font-family: var(--font-mono);
      font-size: 10px;
      fill: rgba(248, 248, 248, 0.4);
    }

    .bar-chart-value {
      font-family: var(--font-mono);
      font-size: 9px;
      fill: rgba(248, 248, 248, 0.6);
    }

    /* ============================================================
       SCENE 3 -- AAIFA
       ============================================================ */
    #scene-aaifa {
      background: var(--surface-paper);
    }

    /* ============================================================
       SCENE 4 -- AAICA
       ============================================================ */
    #scene-aaica {
      background: var(--surface-base);
    }

    .rating-matrix {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 2px;
      margin: 1rem 0;
      opacity: 0;
      max-width: 320px;
    }

    .rating-cell {
      padding: 0.5rem 0.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: rgba(248, 248, 248, 0.4);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      transition: all 0.5s ease;
    }

    .rating-cell.highlight {
      background: rgba(212, 175, 55, 0.12);
      border-color: var(--secondary);
      color: var(--secondary);
      box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    }

    .rating-display {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin: 1.25rem 0;
      opacity: 0;
    }

    .rating-grade {
      font-family: var(--font-headline);
      font-size: 3.5rem;
      font-weight: 700;
      color: var(--secondary);
      letter-spacing: -0.03em;
      text-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
      line-height: 1;
    }

    .rating-details {
      padding-left: 1.5rem;
      border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rating-detail-row {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: rgba(248, 248, 248, 0.5);
      margin-bottom: 0.35rem;
    }

    .rating-detail-row .value {
      color: var(--on-primary);
      margin-left: 0.5rem;
    }

    /* ============================================================
       SCENE 5 -- AIRO + AICO DUAL
       ============================================================ */
    #scene-dual {
      background: var(--surface-paper);
    }

    .dual-split {
      display: flex;
      align-items: center;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 4rem;
      height: 100vh;
      gap: 0;
    }

    .dual-half {
      flex: 1;
      padding: 2rem 3rem;
    }

    .dual-divider {
      width: 1px;
      height: 40vh;
      background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
      flex-shrink: 0;
      opacity: 0;
      box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    }

    .dual-label {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--secondary);
      margin-bottom: 0.75rem;
      opacity: 0;
    }

    .dual-name {
      font-family: var(--font-headline);
      font-size: clamp(3rem, 5vw, 4.5rem);
      font-weight: 300;
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      color: var(--on-surface);
      margin-bottom: 0.5rem;
      opacity: 0;
    }

    .dual-role {
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--on-surface-variant);
      margin-bottom: 2rem;
      line-height: 1.7;
      opacity: 0;
    }

    /* KRI Dots */
    .kri-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .kri-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      opacity: 0;
      transform: translateX(-20px);
    }

    .kri-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .kri-dot.green { background: #28ca42; box-shadow: 0 0 10px rgba(40, 202, 66, 0.4); }
    .kri-dot.amber { background: #ffbd2e; box-shadow: 0 0 10px rgba(255, 189, 46, 0.4); }
    .kri-dot.red { background: #ff5f57; box-shadow: 0 0 10px rgba(255, 95, 87, 0.4); }

    .kri-label {
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--on-surface-variant);
    }

    .kri-value {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--on-surface);
      margin-left: auto;
    }

    /* Compliance checks */
    .compliance-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .compliance-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      opacity: 0;
      transform: translateX(20px);
    }

    .compliance-check {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1.5px solid var(--secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--secondary);
      font-size: 0.65rem;
    }

    .compliance-text {
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--on-surface-variant);
    }

    .compliance-status {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      margin-left: auto;
      padding: 0.2rem 0.5rem;
      border-radius: 2px;
    }

    .compliance-status.pass {
      color: #28ca42;
      background: rgba(40, 202, 66, 0.1);
    }

    .compliance-status.review {
      color: #ffbd2e;
      background: rgba(255, 189, 46, 0.1);
    }

    /* ============================================================
       SCENE 6 -- COMPOUNDING
       ============================================================ */
    #scene-compound {
      background: var(--surface-paper);
    }

    .compound-inner {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 4rem;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .compound-headline {
      font-family: var(--font-headline);
      font-size: clamp(4rem, 12vw, 9rem);
      font-weight: 800;
      color: var(--on-surface);
      letter-spacing: var(--tracking-display);
      margin-bottom: 4rem;
      opacity: 0;
    }

    .compound-insight {
      font-family: var(--font-body);
      font-size: 0.85rem;
      color: var(--on-surface-variant);
      line-height: 1.9;
      max-width: 480px;
      opacity: 0;
    }

    .compound-insight strong {
      color: var(--secondary);
      font-weight: 600;
    }

    /* ============================================================
       SCENE 7 -- MALA SYNTHESIZES + CTA
       ============================================================ */
    #scene-finale {
      background: var(--surface-base);
    }

    .finale-inner {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 4rem;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
    }

    .finale-synthesis {
      margin-bottom: 3rem;
      opacity: 0;
    }

    .finale-synthesis-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 400;
      letter-spacing: 0.05em;
      text-transform: none;
      color: var(--secondary);
      margin-bottom: 1.5rem;
    }

    .finale-headline {
      font-family: var(--font-headline);
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 300;
      letter-spacing: var(--tracking-display);
      color: var(--on-surface);
      line-height: 1.2;
      margin-bottom: 1rem;
      opacity: 0;
      transform: translateY(20px);
    }

    .finale-headline strong {
      font-weight: 700;
      color: var(--secondary);
    }

    .finale-synthesis-text {
      font-family: var(--font-body);
      font-size: clamp(13px, 1.5vw, 14px);
      color: var(--on-surface-variant);
      line-height: 1.8;
      max-width: 650px;
    }

    .finale-challenge {
      margin-top: 2.5rem;
      margin-bottom: 2.5rem;
      opacity: 0;
    }

    .finale-challenge-text {
      font-family: var(--font-headline);
      font-size: clamp(1.2rem, 2.5vw, 1.8rem);
      font-weight: 300;
      color: var(--on-surface);
      letter-spacing: var(--tracking-display);
    }

    .finale-challenge-text strong {
      font-weight: 700;
      color: var(--secondary);
    }

    .finale-challenge-sub {
      font-family: var(--font-body);
      font-size: 0.9rem;
      color: var(--on-surface-variant);
      margin-top: 0.5rem;
      font-style: italic;
    }

    .finale-cta {
      display: flex;
      gap: 1rem;
      align-items: center;
      opacity: 0;
    }

    .btn-primary {
      font-family: var(--font-headline);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--on-secondary);
      background: var(--secondary);
      border: none;
      border-radius: 24px;
      padding: 0.85rem 2.2rem;
      cursor: pointer;
      letter-spacing: 0.02em;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
    }

    .btn-ghost {
      font-family: var(--font-headline);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--on-surface-variant);
      background: transparent;
      border: 1px solid var(--ghost-border);
      border-radius: 24px;
      padding: 0.85rem 2.2rem;
      cursor: pointer;
      letter-spacing: 0.02em;
      transition: border-color 0.3s ease, color 0.3s ease;
      text-decoration: none;
    }

    .btn-ghost:hover {
      border-color: var(--outline-variant);
      color: var(--on-surface);
    }

    .finale-particles {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      width: 2px;
      height: 2px;
      background: var(--secondary);
      border-radius: 50%;
      opacity: 0;
    }

    /* ============================================================
       FOOTER -- From landing page
       ============================================================ */
    .footer {
      background: var(--surface-anchor);
      color: var(--on-primary);
      padding: 80px 40px 40px;
      margin-top: 0;
    }

    .footer-inner {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 48px;
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-logo {
      height: 28px;
      width: auto;
      margin-bottom: 20px;
    }

    .footer-col-title {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(248, 248, 248, 0.4);
      margin-bottom: 20px;
    }

    .footer-col ul {
      list-style: none;
    }

    .footer-col li {
      margin-bottom: 10px;
    }

    .footer-col a {
      font-size: 13px;
      color: rgba(248, 248, 248, 0.7);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-col a:hover {
      color: var(--secondary);
    }

    .footer-email {
      color: var(--secondary);
      text-decoration: none;
      font-size: 13px;
      display: inline-block;
      margin-bottom: 16px;
    }

    .footer-address {
      font-size: 12px;
      color: rgba(248, 248, 248, 0.4);
      line-height: 1.6;
    }

    .footer-bottom {
      max-width: 1400px;
      margin: 48px auto 0;
      padding-top: 24px;
      border-top: 1px solid rgba(248, 248, 248, 0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-bottom-text {
      font-size: 11px;
      color: rgba(248, 248, 248, 0.3);
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px 24px;
    }

    .footer-cert {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(248, 248, 248, 0.65);
      border: 1px solid rgba(212, 175, 55, 0.45);
      padding: 7px 12px;
      white-space: nowrap;
    }

    .footer-cert-mark {
      width: 16px;
      height: 16px;
      display: block;
      flex-shrink: 0;
    }

    /* ============================================================
       RESPONSIVE -- TABLET
       ============================================================ */
    @media (max-width: 1024px) {
      .navbar {
        width: calc(100% - 32px);
      }

      .agent-split {
        flex-direction: column;
        gap: 2rem;
        padding: 4rem 2rem;
        justify-content: center;
      }

      .agent-info {
        flex: none;
        max-width: 100%;
        text-align: center;
      }

      .agent-tags { justify-content: center; }

      .agent-panel { width: 100%; }

      .dual-split {
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        justify-content: center;
      }

      .dual-divider {
        width: 40vw;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--secondary), transparent);
      }

      .dual-half { padding: 1.5rem; }

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

    /* ============================================================
       RESPONSIVE -- MOBILE
       ============================================================ */
    @media (max-width: 768px) {
      .scroll-nav { display: none; }

      .scene-inner,
      .agent-split,
      .dual-split,
      .finale-inner {
        padding: 3rem 1.5rem;
      }

      .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
      }

      .compound-inner {
        padding: 0 1.5rem;
      }

      .agent-name {
        font-size: 2.5rem;
      }

      .rating-grade {
        font-size: 3.5rem;
      }

      .finale-cta {
        flex-direction: column;
      }
    }

    @media (max-width: 600px) {
      .navbar {
        width: calc(100% - 24px);
        top: 10px;
        border-radius: 12px;
      }

      .navbar-links {
        display: none;
      }

      .navbar-burger {
        display: block;
      }

      .navbar-cta {
        display: none;
      }

      .navbar-inner {
        padding: 0 16px;
        height: 46px;
      }

      .footer {
        padding: 60px 20px 30px;
      }

      .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    /* ============================================================
       NOSCRIPT FALLBACK
       ============================================================ */


/* ============================================================
   Extracted inline styles
   These replace former style="..." attributes so the site
   can ship style-src without 'unsafe-inline'.
   Declarations are kept identical to the originals.
   ============================================================ */
.u-top-20 { top: 20%; }
.u-right-n15 { right: -15%; }
.u-bottom-10 { bottom: 10%; }
.u-left-n10 { left: -10%; }
.u-opacity-0 { opacity: 0; }
.u-top-30 { top: 30%; }
.u-left-n20 { left: -20%; }
.u-top-n10 { top: -10%; }
.u-right-10 { right: 10%; }
.u-bottom-20 { bottom: 20%; }
.u-right-n5 { right: -5%; }
.u-top-n20 { top: -20%; }
.u-left-20 { left: 20%; }
.rating-cell--blank { background: transparent; border: none; }
.rating-cell--muted { background: transparent; border-color: transparent; font-weight: 500; color: rgba(248, 248, 248, 0.5); }
.u-center-abs { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.compliance-check--warning { border-color: #ffbd2e; color: #ffbd2e; }
