/*
    ============================================================
    MediaBlaze beta landing page — single-file, self-contained.
    No external fonts/scripts are loaded so this renders offline
    and can be dropped anywhere (static host, S3, etc.) as-is.

    Palette:
      --bg / --bg-alt   near-black broadcast background tones
      --ink / --ink-dim text colors (off-white, muted grey)
      --accent          electric blue -> cyan gradient (CTA, links)
      --line            hairline borders / dividers
    ============================================================
  */
  :root {
  --shot-1: url('../assets/shot1.jpg');
  --shot-2: url('../assets/shot2.jpg');
  --shot-3: url('../assets/shot3.jpg');
  --shot-4: url('../assets/shot4.jpg');
    --bg: #0a0e14;
    --bg-alt: #0f1420;
    --card: #11161f;
    --shot-bg: #05070b;
    --ink: #f4f5f7;
    --ink-dim: #9aa3b2;
    --ink-faint: #5c6577;
    --accent: #37b6ff;
    --accent-2: #22d3ee;
    --line: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --maxw: 1120px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }

  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Subtle broadcast-style background texture: faint horizontal scanlines + radial glow */
  .bg-texture {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(ellipse 900px 500px at 50% -10%, rgba(55, 182, 255, 0.16), transparent 60%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
  }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 20, 0.75);
    border-bottom: 1px solid var(--line);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    text-decoration: none;
  }
  .logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    flex-shrink: 0;
  }
  .badge {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
  }
  .nav-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
  }

  /* ---------- Hero ---------- */
  .hero {
    padding: 88px 24px 64px;
    text-align: center;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-dim);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
  }
  .eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
  }
  h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 auto 20px;
    max-width: 800px;
    font-weight: 700;
  }
  h1 .grad {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .subhead {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--ink-dim);
    max-width: 620px;
    margin: 0 auto 40px;
  }

  /* Signup form */
  .signup {
    max-width: 460px;
    margin: 0 auto;
  }
  .signup-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .signup input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 15px;
  }
  .signup input[type="email"]::placeholder { color: var(--ink-faint); }
  .signup input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(55, 182, 255, 0.18);
  }
  .signup button {
    flex: 0 0 auto;
    padding: 14px 22px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #06121c;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .signup button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(55, 182, 255, 0.3); }
  .signup button:active { transform: translateY(0); }
  .form-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-faint);
  }
  .form-error {
    margin-top: 12px;
    font-size: 13px;
    color: #ff8383;
    display: none;
  }
  .form-success {
    display: none;
    max-width: 460px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--ink);
    font-size: 14px;
  }

  /* ---------- Sections shared ---------- */
  section { padding: 72px 24px; }
  .section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
  .section-head .kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
  }
  .section-head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
  }
  .section-head p { color: var(--ink-dim); font-size: 16px; margin: 0; }

  /* ---------- Features ---------- */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--maxw);
    margin: 0 auto;
  }
  .feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
  }
  .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 182, 255, 0.12);
    color: var(--accent-2);
    margin-bottom: 18px;
    font-size: 20px;
  }
  .feature-card h3 { font-size: 18px; margin: 0 0 10px; }
  .feature-card p { font-size: 14.5px; color: var(--ink-dim); margin: 0; }

  /* ---------- Product tour (real screenshots) ---------- */
  .tour {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 20px;
    max-width: var(--maxw);
    margin: 0 auto;
  }
  .tour-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  /* Each screenshot renders at its own natural aspect ratio — width:100%,
     height:auto, no cropping, no forced box. Forcing a shared fixed-height
     box (first with object-fit:cover, then object-fit:contain) either cut
     off real content (clip labels, table rows) or left large dead letterbox
     bars, because the four source captures are genuinely different shapes
     (a 924x540 app screen vs a 1568x249 editor timeline strip vs a wide
     table crop). Letting cards be different heights in the grid — align-items:
     start below — reads as normal card-grid variation, not as broken. */
  .tour-card .shot {
    display: block;
    width: 100%;
    /* aspect-ratio is set inline per card to the capture's real w/h,
       replicating the old img's natural sizing exactly. */
    background-image: var(--shot);
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 1px solid var(--line);
  }
  /* Magnifier inset ("loupe"): a second rendering of the same --shot image,
     zoomed via background-size and aimed via background-position, so the
     dense app UI stays readable at card size. Geometry is all percentages
     (computed by infrastructure/scripts — see apply_loupe.py in the session
     that generated this) so it survives the responsive 2-col -> 1-col grid.
     Zoom is capped near the capture's native resolution; retaking the
     screenshots at 2x would allow stronger magnification. */
  .lens {
    position: absolute;
    transform: translate(-50%, -50%);
    background-image: var(--shot);
    background-repeat: no-repeat;
    /* Backfills the sliver of lens that can poke past the image edge. */
    background-color: var(--shot-bg);
    border: 2px solid rgba(55, 182, 255, 0.85);
    /* Drop shadow lifts the loupe off the screenshot; the faint outer ring
       echoes the accent color without reading as a focus outline. */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(55, 182, 255, 0.12);
    pointer-events: none;
    transition: transform 0.2s ease;
  }
  .lens-circle { border-radius: 50%; }
  .lens-pill { border-radius: 999px; }
  /* Subtle affordance: the loupe swells slightly when the card is hovered. */
  .tour-card:hover .lens { transform: translate(-50%, -50%) scale(1.05); }
  .tour-card .tour-body { padding: 18px 20px 20px; }
  .tour-card h3 { font-size: 16px; margin: 0 0 8px; }
  .tour-card p { font-size: 13.5px; color: var(--ink-dim); margin: 0; line-height: 1.55; }
  .tour-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-faint);
    margin: 22px auto 0;
    max-width: 560px;
  }
  @media (max-width: 760px) {
    .tour { grid-template-columns: 1fr; }
  }

  /* ---------- How it works ---------- */
  .steps {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
  }
  .step {
    position: relative;
    padding: 24px 20px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  }
  .step .num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
  }
  .step h4 { margin: 0 0 8px; font-size: 16px; }
  .step p { margin: 0; font-size: 13.5px; color: var(--ink-dim); }

  /* ---------- Who it's for ---------- */
  .audience {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }
  .pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }
  .pill {
    font-size: 13.5px;
    color: var(--ink-dim);
    border: 1px solid var(--line);
    background: var(--card);
    padding: 8px 14px;
    border-radius: 999px;
  }

  /* ---------- Final CTA ---------- */
  .cta-final {
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cta-final h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 14px; }
  .cta-final p { color: var(--ink-dim); margin: 0 0 36px; }

  /* ---------- Footer ---------- */
  footer {
    padding: 40px 24px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13px;
  }

  @media (max-width: 860px) {
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .signup-row { flex-direction: column; }
    .signup button { width: 100%; }
  }

  /*
    ============================================================
    HERO REEL — the pipeline, told with the real product UI.

    Rebuilt after the first version framed badly. Three things were
    wrong and are fixed here:

    1. WRONG FRAME SHAPE. A 16/9 window was forcing three wide UI
       strips (780x230, 980x321, 1100x266) through a tall hole, so
       each beat had to be magnified 2-3x just to cover it and the
       screenshots turned to mush. The window is 2:1 now, close to
       the source material, so the same content needs far less
       magnification and stays sharp. --z*a / --z*b hold each beat's
       start and end scale and are re-stated for the narrower 16/9
       window used on phones.

    2. TARGETS PICKED BY ARITHMETIC. The push-ins were aimed using
       the tour's old loupe coordinates. They are now measured off
       the images themselves:
         beat 1  AP + AFP columns, badges and Stage buttons
         beat 2  the badge row down to Approve / Flag a problem
         beat 3  the playhead sitting over the voiceover chips
         beat 4  the CLOUDPORT card and its 7-territory routing line

    3. A MARKER POINTING AT NOTHING. The blue ring was positioned
       independently of the push and kept landing on empty panel.
       It is gone: framing does the pointing.

    The caption now sits below the window rather than over the
    picture, so it can never cover the thing being shown — which is
    what buried the Approve button last time. The app chrome is a
    real title bar above the frame for the same reason.

    Pure CSS: no scripts, no network. Every layer runs one animation
    of the same duration and shows itself only inside its own
    percentage window, so beats, caption and step labels stay in
    lockstep without a JS timer.
    ============================================================
  */
  .reel {
    --reel-dur: 27s;
    /* Beat start/end scales, tuned to the 2:1 window. */
    --z1a: 110%; --z1b: 140%;
    --z2a: 170%; --z2b: 195%;
    --z3a: 153%; --z3b: 190%;
    --z4a: 207%; --z4b: 230%;
    max-width: 1000px;
    margin: 10px auto 34px;
  }

  .reel-window {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--shot-bg);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  /* Title bar: above the picture, not over it. */
  .reel-chrome {
    display: flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 22, 31, 0.96);
  }
  .reel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); opacity: 0.55; }
  .reel-chrome-title {
    font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-dim);
    margin-left: 8px; white-space: nowrap; overflow: hidden;
  }
  .reel-chrome-title b { color: var(--ink); font-weight: 600; }
  .reel-screen { position: relative; display: inline-block; min-width: 132px; vertical-align: bottom; }
  .reel-screen span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
  .reel-screen span:nth-child(1) { animation: rsA var(--reel-dur) linear infinite; }
  .reel-screen span:nth-child(2) { animation: rsB var(--reel-dur) linear infinite; }
  .reel-screen span:nth-child(3) { animation: rsC var(--reel-dur) linear infinite; }
  .reel-screen span:nth-child(4) { animation: rsD var(--reel-dur) linear infinite; }
  .reel-screen span:nth-child(5) { animation: rsE var(--reel-dur) linear infinite; }
  @keyframes rsA { 0%, 17% { opacity: 1; } 20%, 100% { opacity: 0; } }
  @keyframes rsB { 0%, 18% { opacity: 0; } 21%, 35% { opacity: 1; } 38%, 100% { opacity: 0; } }
  @keyframes rsC { 0%, 36% { opacity: 0; } 39%, 53% { opacity: 1; } 56%, 100% { opacity: 0; } }
  @keyframes rsD { 0%, 54% { opacity: 0; } 57%, 69% { opacity: 1; } 72%, 100% { opacity: 0; } }
  @keyframes rsE { 0%, 72% { opacity: 0; } 76%, 97% { opacity: 1; } 100% { opacity: 0; } }

  .reel-frame {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--shot-bg);
  }

  .kb {
    position: absolute; inset: 0;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: background-size, background-position, opacity;
  }
  .kb-1 { background-image: var(--shot-1); animation: kb1 var(--reel-dur) linear infinite; }
  .kb-2 { background-image: var(--shot-2); animation: kb2 var(--reel-dur) linear infinite; }
  .kb-3 { background-image: var(--shot-3); animation: kb3 var(--reel-dur) linear infinite; }
  .kb-4 { background-image: var(--shot-4); animation: kb4 var(--reel-dur) linear infinite; }

  /* Beat 1 — open on all three agency columns, push into AP + AFP so the
     badges and the Stage buttons are legible. */
  @keyframes kb1 {
    0%   { opacity: 0; background-size: var(--z1a) auto; background-position: 50% 50%; }
    3%   { opacity: 1; }
    17%  { opacity: 1; background-size: var(--z1b) auto; background-position: 0% 49%; }
    20%  { opacity: 0; background-size: var(--z1b) auto; background-position: 0% 49%; }
    100% { opacity: 0; background-size: var(--z1a) auto; background-position: 50% 50%; }
  }
  /* Beat 2 — pan left off the spec badges and land on the approval gate. */
  @keyframes kb2 {
    0%, 18% { opacity: 0; background-size: var(--z2a) auto; background-position: 100% 50%; }
    21%  { opacity: 1; }
    35%  { opacity: 1; background-size: var(--z2b) auto; background-position: 0% 100%; }
    38%  { opacity: 0; background-size: var(--z2b) auto; background-position: 0% 100%; }
    100% { opacity: 0; }
  }
  /* Beat 3 — the timeline, then in on the playhead over the voiceover chips. */
  @keyframes kb3 {
    0%, 36% { opacity: 0; background-size: var(--z3a) auto; background-position: 18% 50%; }
    39%  { opacity: 1; }
    53%  { opacity: 1; background-size: var(--z3b) auto; background-position: 61% 95%; }
    56%  { opacity: 0; background-size: var(--z3b) auto; background-position: 61% 95%; }
    100% { opacity: 0; }
  }
  /* Beat 4 — pan off the delivered table onto the CLOUDPORT card. */
  @keyframes kb4 {
    0%, 54% { opacity: 0; background-size: var(--z4a) auto; background-position: 100% 50%; }
    57%  { opacity: 1; }
    69%  { opacity: 1; background-size: var(--z4b) auto; background-position: 0% 50%; }
    73%  { opacity: 0; background-size: var(--z4b) auto; background-position: 0% 50%; }
    100% { opacity: 0; }
  }

  /* ---- Beat 5: on air, business-news treatment ---- */
  .rl-air {
    position: absolute; inset: 0; z-index: 6; opacity: 0;
    animation: rlAir var(--reel-dur) linear infinite;
  }
  @keyframes rlAir {
    0%, 71% { opacity: 0; }
    76%, 97% { opacity: 1; }
    100% { opacity: 0; }
  }
  .rl-air-pic {
    position: absolute; inset: 0;
    background:
      /* A market line climbing the frame, so the on-air beat has a subject.
         Inline SVG so the page still makes no network requests. */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L80 272 L160 288 L240 226 L320 246 L400 180 L480 202 L560 134 L640 154 L720 86 L800 106' fill='none' stroke='%2335d07f' stroke-width='3' opacity='0.5'/%3E%3Cpath d='M0 300 L80 272 L160 288 L240 226 L320 246 L400 180 L480 202 L560 134 L640 154 L720 86 L800 106 L800 400 L0 400 Z' fill='%2335d07f' opacity='0.07'/%3E%3C/svg%3E"),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 76px),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 64px),
      radial-gradient(ellipse 60% 70% at 32% 32%, rgba(90, 140, 190, 0.30), transparent 65%),
      linear-gradient(160deg, #1a2a3d 0%, #101a26 45%, #0a1119 100%);
    background-size: 100% 100%, auto, auto, auto, auto;
  }
  .rl-air-scan {
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 3px),
      radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.5) 100%);
  }
  .rl-bug {
    position: absolute; top: 7%; right: 3%;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; letter-spacing: 0.14em; font-weight: 800; color: #fff;
    background: rgba(200, 30, 40, 0.94); padding: 4px 10px; border-radius: 3px;
  }
  .rl-bug i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: rlBlink 2s steps(1) infinite; }
  @keyframes rlBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.25; } }
  .rl-clock {
    position: absolute; top: 7%; left: 3%;
    font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.45); padding: 4px 10px; border-radius: 3px;
    font-variant-numeric: tabular-nums;
  }
  .rl-lower {
    position: absolute; left: 0; bottom: 17%; max-width: 80%;
    transform: translateX(-102%);
    animation: rlLower var(--reel-dur) cubic-bezier(0.2, 0.85, 0.2, 1) infinite;
  }
  @keyframes rlLower {
    0%, 77% { transform: translateX(-102%); }
    82%, 94% { transform: translateX(0); }
    97%, 100% { transform: translateX(-102%); }
  }
  .rl-lower-bar {
    background: linear-gradient(90deg, #d81f2a, #a3151f);
    color: #fff; text-transform: uppercase; font-weight: 800;
    font-size: clamp(12px, 1.9vw, 19px); letter-spacing: 0.005em;
    padding: 8px 20px 8px 24px; border-radius: 0 3px 0 0;
  }
  .rl-lower-sub {
    background: rgba(8, 14, 24, 0.95); color: #cfe0f2;
    font-size: clamp(9px, 1.1vw, 11.5px); letter-spacing: 0.09em; text-transform: uppercase;
    padding: 5px 20px 6px 24px; border-radius: 0 0 3px 0;
    border-left: 3px solid #d81f2a;
  }
  /* Ticker crawl: one strip rendered twice and translated -50%, so the loop
     is seamless — the second copy sits exactly where the first began. */
  .rl-band {
    position: absolute; left: 0; right: 0; bottom: 0;
    font-variant-numeric: tabular-nums;
    transform: translateY(105%);
    animation: rlBand var(--reel-dur) cubic-bezier(0.2, 0.85, 0.2, 1) infinite;
  }
  @keyframes rlBand {
    0%, 79% { transform: translateY(105%); }
    84%, 95% { transform: translateY(0); }
    98%, 100% { transform: translateY(105%); }
  }
  .rl-crawl {
    display: flex; overflow: hidden;
    background: linear-gradient(180deg, #0d1826, #060c14);
    border-top: 2px solid #d81f2a;
    padding: 5px 0;
  }
  .rl-crawl-track { display: flex; flex: none; animation: rlCrawl 22s linear infinite; }
  @keyframes rlCrawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .rl-crawl-track > div { display: flex; flex: none; }
  .rl-tick {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 0 14px; font-size: clamp(9px, 1.15vw, 11.5px);
    letter-spacing: 0.06em; color: #e8eef6; white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.10);
  }
  .rl-tick b { font-weight: 700; }
  .rl-tick .up { color: #35d07f; }
  .rl-tick .dn { color: #ff5d5d; }

  /* ---- Caption: below the window, so it can never cover the picture ---- */
  .reel-cap { position: relative; height: 46px; margin: 14px 4px 0; }
  .reel-cap > div { position: absolute; left: 0; right: 0; top: 0; opacity: 0; text-align: center; }
  .reel-cap b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .reel-cap span { display: block; color: var(--ink-dim); font-size: 13px; margin-top: 3px; }
  .reel-cap > div:nth-child(1) { animation: rcA var(--reel-dur) linear infinite; }
  .reel-cap > div:nth-child(2) { animation: rcB var(--reel-dur) linear infinite; }
  .reel-cap > div:nth-child(3) { animation: rcC var(--reel-dur) linear infinite; }
  .reel-cap > div:nth-child(4) { animation: rcD var(--reel-dur) linear infinite; }
  .reel-cap > div:nth-child(5) { animation: rcE var(--reel-dur) linear infinite; }
  @keyframes rcA { 0% { opacity: 0; } 3%, 17% { opacity: 1; } 20%, 100% { opacity: 0; } }
  @keyframes rcB { 0%, 19% { opacity: 0; } 22%, 35% { opacity: 1; } 38%, 100% { opacity: 0; } }
  @keyframes rcC { 0%, 37% { opacity: 0; } 40%, 53% { opacity: 1; } 56%, 100% { opacity: 0; } }
  @keyframes rcD { 0%, 55% { opacity: 0; } 58%, 69% { opacity: 1; } 72%, 100% { opacity: 0; } }
  @keyframes rcE { 0%, 73% { opacity: 0; } 77%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }

  /* ---- Step labels ---- */
  .reel-steps { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
  .reel-step {
    font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ink-faint); border: 1px solid var(--line); background: var(--card);
    padding: 5px 12px; border-radius: 999px;
    animation: reelStep var(--reel-dur) linear infinite;
  }
  @keyframes reelStep {
    0%, 17% { color: var(--ink); border-color: rgba(55,182,255,0.55); background: rgba(55,182,255,0.10); }
    20%, 100% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
  }
  .reel-step.s2 { animation-name: reelStep2; }
  @keyframes reelStep2 {
    0%, 18% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
    21%, 35% { color: var(--ink); border-color: rgba(55,182,255,0.55); background: rgba(55,182,255,0.10); }
    38%, 100% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
  }
  .reel-step.s3 { animation-name: reelStep3; }
  @keyframes reelStep3 {
    0%, 36% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
    39%, 53% { color: var(--ink); border-color: rgba(55,182,255,0.55); background: rgba(55,182,255,0.10); }
    56%, 100% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
  }
  .reel-step.s4 { animation-name: reelStep4; }
  @keyframes reelStep4 {
    0%, 54% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
    57%, 69% { color: var(--ink); border-color: rgba(55,182,255,0.55); background: rgba(55,182,255,0.10); }
    72%, 100% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
  }
  .reel-step.s5 { animation-name: reelStep5; }
  @keyframes reelStep5 {
    0%, 74% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
    77%, 97% { color: #fff; border-color: rgba(200,30,40,0.7); background: rgba(200,30,40,0.22); }
    100% { color: var(--ink-faint); border-color: var(--line); background: var(--card); }
  }

  /* A phone gets a taller window, so every beat needs more scale to cover it
     without letterboxing. Same framing, restated for 16/9. */
  @media (max-width: 700px) {
    .reel {
      --z1a: 112%; --z1b: 148%;
      --z2a: 192%; --z2b: 216%;
      --z3a: 174%; --z3b: 206%;
      --z4a: 235%; --z4b: 258%;
    }
    .reel-frame { aspect-ratio: 16 / 9; }
    .reel-cap { height: 62px; }
    .reel-cap b { font-size: 13.5px; }
    .reel-cap span { font-size: 12px; }
    .reel-step { font-size: 9.5px; padding: 4px 9px; }
    .reel-chrome-title { font-size: 10.5px; }
  }

  /* Motion-sensitive visitors get the on-air frame as a still. */
  @media (prefers-reduced-motion: reduce) {
    .reel *, .reel { animation: none !important; }
    .kb { opacity: 0; }
    .rl-air { opacity: 1; }
    .rl-lower, .rl-band { transform: none; }
    .reel-cap > div { opacity: 0; }
    .reel-cap > div:nth-child(5) { opacity: 1; }
    .reel-screen span { opacity: 0; }
    .reel-screen span:nth-child(5) { opacity: 1; }
    .reel-step.s5 { color: #fff; border-color: rgba(200,30,40,0.7); background: rgba(200,30,40,0.22); }
  }

  /* ---------- Spec strip (under the hero reel) ---------- */
  .specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 940px;
    margin: 0 auto;
  }
  .spec { background: var(--bg-alt); padding: 18px 20px; }
  .spec b {
    display: block; font-size: 20px; color: var(--ink); font-weight: 700;
    letter-spacing: -0.01em; margin-bottom: 4px;
  }
  .spec span { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }
  @media (max-width: 780px) { .specs { grid-template-columns: 1fr 1fr; } }

  /* ---------- Deep-dive section: copy on one side, detail card on the other ---------- */
  .deep {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .deep.flip .deep-copy { order: 2; }
  /* Grid items default to min-width:auto, so a wide child (the MRSS sample,
     which is white-space: pre) would otherwise set the grid's width and push
     the whole page sideways on a phone. */
  .deep > * { min-width: 0; }
  .deep-copy h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 16px;
  }
  .deep-copy > p { color: var(--ink-dim); margin: 0 0 18px; font-size: 15.5px; }
  .deep-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
  .deep-list li {
    position: relative; padding-left: 24px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.55;
  }
  .deep-list li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 8px; height: 8px; border-radius: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
  }
  .deep-list li b { color: var(--ink); font-weight: 600; }

  /* The panel beside the copy — a plain, non-screenshot illustration of the
     same idea, built from the page's own primitives so it stays crisp. */
  .panel {
    min-width: 0;
    overflow-wrap: anywhere;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    font-size: 13px;
  }
  .panel-head {
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .panel-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
    margin-bottom: 8px; background: var(--bg-alt); color: var(--ink-dim);
  }
  .panel-row:last-child { margin-bottom: 0; }
  .panel-row .k { color: var(--ink); font-weight: 600; flex: 1; min-width: 0; }
  .panel-row .v { color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
  .tick { color: #3ddc97; flex: none; }
  .warn { color: #f5b83d; flex: none; }

  /* Monospace detail — feed XML, terminal-ish facts. Broadcast plumbing
     looks like plumbing; showing it is the point. */
  .code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; line-height: 1.7; color: var(--ink-dim);
    background: var(--shot-bg); border: 1px solid var(--line);
    border-radius: 10px; padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: pre;
  }
  .code .tag { color: var(--accent); }
  .code .val { color: #f5b83d; }
  .code .cmt { color: var(--ink-faint); }

  @media (max-width: 900px) {
    .deep { grid-template-columns: 1fr; gap: 28px; }
    .deep.flip .deep-copy { order: 0; }
  }

  /* ---------- Capability matrix ---------- */
  .matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 40px;
  }
  .matrix-col h4 {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .matrix-col ul { list-style: none; margin: 0; padding: 0; }
  .matrix-col li {
    font-size: 13.5px; color: var(--ink-dim); line-height: 1.5;
    padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .matrix-col li:last-child { border-bottom: 0; }
  .matrix-col li b { color: var(--ink); font-weight: 600; }
  @media (max-width: 900px) { .matrix { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .matrix { grid-template-columns: 1fr; } }

  /* ---------- Agency row ---------- */
  .agencies {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px;
  }
  .agency {
    border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
    background: var(--bg-alt);
  }
  .agency b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
  .agency span { font-size: 12px; color: var(--ink-faint); }
  @media (max-width: 600px) { .agencies { grid-template-columns: 1fr; } }

  /* ==========================================================
     MULTI-PAGE SITE CHROME
     Added when the single landing page became a brochure site.
     Nav, sub-nav, page headers, cross-links and the shared CTA
     band — everything that has to look identical on nine pages.
     ========================================================== */

  /* ---------- Primary nav ---------- */
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-links a {
    font-size: 14px; color: var(--ink-dim); text-decoration: none;
    padding: 6px 0; border-bottom: 1px solid transparent;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.on { color: var(--ink); border-bottom-color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 18px; }
  @media (max-width: 860px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
  }
  @media (max-width: 700px) {
    /* The word mark and the CTA are what a phone needs; the section links
       live in the footer, which every page carries in full. */
    .nav-links { display: none; }
  }

  /* ---------- Sub-nav, for the pages under Product ---------- */
  .subnav {
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
  }
  .subnav .wrap { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .subnav-label {
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-faint); margin-right: 6px;
  }
  .subnav a {
    font-size: 13px; color: var(--ink-dim); text-decoration: none;
    padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
  }
  .subnav a:hover { color: var(--ink); background: var(--card); }
  .subnav a.on { color: var(--ink); background: var(--card); border-color: var(--line); }

  /* ---------- Interior page header ---------- */
  .page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
  .page-head h1 {
    font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em;
    margin: 12px 0 18px; max-width: 17ch;
  }
  .page-head p {
    color: var(--ink-dim); font-size: clamp(15px, 1.7vw, 18px);
    max-width: 62ch; margin: 0; line-height: 1.6;
  }
  .page-head .kicker { margin-bottom: 0; }

  /* ---------- Cross-links to other pages ---------- */
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .card-link {
    display: block; text-decoration: none;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); padding: 20px 22px;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }
  .card-link:hover { border-color: rgba(55, 182, 255, 0.45); transform: translateY(-2px); }
  .card-link h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
  .card-link p { margin: 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; }
  .card-link .go { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent); }

  /* ---------- Secondary links under a card grid ---------- */
  /* Deliberately quieter than .card-link: these are a second layer of depth,
     not a fifth stage. Sized and spaced to read as a footnote to the grid. */
  .cards-more {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ink-dim);
    display: flex;
    align-items: baseline;
    gap: 8px 18px;
    flex-wrap: wrap;
  }
  .cards-more a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
  }
  .cards-more a:hover { border-bottom-color: var(--accent); }
  /* The chevron is decorative and generated rather than typed into the markup,
     so the link text stays clean for screen readers and for the sitemap. */
  .cards-more a::after { content: " \203A"; }

  /* ---------- Shared closing CTA band ---------- */
  .cta-band {
    border-top: 1px solid var(--line);
    background:
      radial-gradient(ellipse 700px 300px at 50% 0%, rgba(55, 182, 255, 0.10), transparent 70%),
      var(--bg-alt);
    text-align: center;
  }
  .cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
  .cta-band p { color: var(--ink-dim); margin: 0 auto 28px; max-width: 56ch; }

  /* ---------- Footer ---------- */
  .site-footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 36px;
    color: var(--ink-faint); font-size: 13px;
  }
  .footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
    padding-bottom: 32px; border-bottom: 1px solid var(--line);
  }
  .footer-grid h4 {
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-dim); margin: 0 0 12px;
  }
  .footer-grid ul { list-style: none; margin: 0; padding: 0; }
  .footer-grid li { margin-bottom: 8px; }
  .footer-grid a { color: var(--ink-faint); text-decoration: none; }
  .footer-grid a:hover { color: var(--ink); }
  .footer-blurb { color: var(--ink-faint); line-height: 1.6; max-width: 46ch; margin: 10px 0 0; }
  .footer-legal { padding-top: 22px; }
  @media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

  /* ---------- Prose blocks used on interior pages ---------- */
  .lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink); line-height: 1.6; max-width: 62ch; }
  .note {
    border-left: 3px solid var(--accent); background: var(--card);
    padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--ink-dim);
    font-size: 14px; line-height: 1.6; margin: 26px 0;
  }
  .note b { color: var(--ink); }

  /* Screenshot figure, for interior pages that show one full-width. */
  .figure { margin: 0; }
  .figure .frame {
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--shot-bg);
    box-shadow: 0 24px 60px -30px rgba(0,0,0,0.85);
  }
  .figure img { display: block; width: 100%; height: auto; }
  .figure figcaption {
    margin-top: 12px; font-size: 13px; color: var(--ink-dim); text-align: center;
  }

  /* Two-column stat/fact row used under interior page heads. */
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .facts div { background: var(--bg-alt); padding: 18px 20px; }
  .facts b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
  .facts span { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }

  /* Keyboard skip link — visible only when focused. */
  .skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--accent); color: #06121c; font-weight: 700;
    padding: 10px 16px; border-radius: 0 0 8px 0; text-decoration: none;
  }
  .skip:focus { left: 0; }
