/* Page-specific styles for zipline-global.
   Loaded AFTER shared/styles.css, so anything here wins.
   Most of this is components that exist nowhere else: the hero pipeline
   dashboard, the Readiness Check and document mocks, the Screen/Manage/
   Comply/Land tabs, and the clearance board. */

  /* --- neutralise shared decorations this page doesn't use --- */
  /* shared paints a hand-drawn marker highlight behind .hero h1 .accent */
  .hero h1 .accent::before { content: none; }
  .hero h1 .accent { white-space: normal; }

:root {
    --midnight: #0B1223;
    --ink: #1a2139;
    --blue: #3B5BF5;
    --blue-glow: rgba(59, 91, 245, 0.12);
    --blue-deep: #2842c8;
    --ivory: #FAF8F4;
    --cream: #F3F0EA;
    --warm: #E8E3DA;
    --gold: #C9A96E;
    --gold-glow: rgba(201, 169, 110, 0.18);
    --gold-ink: #8a6d3b;
    --burgundy: #8C1455;
    --text: #3a3a4a;
    --text-muted: #7a7a8e;
    --white: #ffffff;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ivory);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
  }

  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
  }

  img { display: block; max-width: 100%; }
  a { text-decoration: none; color: inherit; }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    letter-spacing: -0.1px;
    border-radius: 50px;
  }
  .btn-primary { padding: 14px 32px; background: var(--blue); color: #fff; }
  .btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,91,245,0.3); }
  .btn-secondary { padding: 14px 32px; background: transparent; color: var(--midnight); border: 1.5px solid var(--midnight); }
  .btn-secondary:hover { background: var(--midnight); color: #fff; transform: translateY(-2px); }
  .btn-sm { padding: 11px 24px; }

  /* ---------- Nav ---------- */
  #nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    transition: all 0.4s var(--ease);
  }
  #nav.scrolled {
    padding: 14px 40px;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  }
  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo img { height: 28px; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    /* contains the decorative blur blob, which otherwise pushed ~20px of
       phantom horizontal overflow past the viewport at narrow widths */
    overflow: clip;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr; /* ~44% copy / 56% dashboard */
    align-items: center;
    gap: 56px;
    padding: 120px 40px 80px;
  }
  .hero-copy { position: relative; z-index: 2; }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 26px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
  .hero h1 {
    /* capped lower than the section H2s — the copy column is only ~44% wide */
    font-size: clamp(32px, 3.4vw, 45px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--midnight);
    margin-bottom: 22px;
  }
  .hero h1 .accent { color: var(--blue); }
  .hero .subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 34px;
    max-width: 540px;
  }
  .hero .subtitle .sep { color: var(--gold); margin: 0 8px; }
  .cta-pair { display: flex; gap: 14px; flex-wrap: wrap; }

  /* Hero visual */
  .hero-visual { position: relative; z-index: 1; }
  .hero-visual::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: var(--blue-glow);
    filter: blur(70px);
    top: -40px; right: -40px;
    z-index: -1;
  }
  .hero-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    background: var(--white);
  }
  .hero-img img { width: 100%; height: auto; }
  .float-card {
    position: absolute;
    z-index: 3; /* must sit above .hero-mock */
    bottom: -20px; left: -30px;
    background: var(--white);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--warm);
  }
  .float-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--blue-glow);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .float-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; }
  .float-meta .ttl { font-size: 14px; font-weight: 700; color: var(--midnight); }
  .float-meta .sub { font-size: 12px; color: var(--text-muted); }

  /* ---------- Section headers ---------- */
  .section { padding: 100px 40px; }
  .section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
  .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--midnight);
  }
  .section-head .lede {
    font-size: 17px;
    color: var(--text-muted);
    margin-top: 18px;
    line-height: 1.7;
  }

  /* ---------- Status pills ---------- */
  .stage-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
  }
  .stage-status.live { background: var(--blue-glow); color: var(--blue); }
  .stage-status.exploring { background: var(--gold-glow); color: var(--gold-ink); }
  .stage-status.on-dark { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
  .stage-status .sdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  /* ---------- Stat / detail cards ---------- */
  .detail-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--warm);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 16px 48px rgba(0,0,0,0.03);
  }
  .detail-card {
    background: var(--white);
    text-align: center;
    padding: 36px 22px 32px;
    transition: background 0.35s var(--ease);
  }
  .detail-card:hover { background: var(--cream); }
  .detail-card .dstat {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--blue);
    margin-bottom: 12px;
  }
  .detail-card .dlabel { font-size: 13.5px; font-weight: 500; color: var(--text-muted); line-height: 1.5; }

  /* ---------- Gate track (the gauntlet) ---------- */
  .gate-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .gate-card {
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 36px rgba(0,0,0,0.025);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .gate-card:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 20px 50px rgba(0,0,0,0.055); }
  .gate-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--blue);
    margin-bottom: 10px;
  }
  .gate-card h4 { font-size: 15.5px; font-weight: 800; color: var(--midnight); letter-spacing: -0.2px; margin-bottom: 6px; line-height: 1.25; }
  .gate-card p { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
  .gate-note {
    max-width: 1080px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
  }
  .gate-note strong { color: var(--midnight); font-weight: 700; }

  /* ---------- Problem cards (2x2) ---------- */
  .change-grid {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .change-card {
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 20px;
    padding: 38px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 16px 48px rgba(0,0,0,0.03);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }
  .change-card:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 26px 64px rgba(0,0,0,0.06); }
  .change-icon {
    width: 54px; height: 54px;
    border-radius: 15px;
    background: var(--blue-glow);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
  }
  .change-icon svg { width: 27px; height: 27px; stroke: var(--blue); stroke-width: 1.8; fill: none; }
  .change-card h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 10px;
  }
  .change-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

  /* ================= Confidence tabs ================= */
  .tabs { max-width: 1040px; margin: 0 auto; }
  .tablist { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
  .tab {
    position: relative; overflow: hidden;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -0.1px;
    padding: 11px 26px; border-radius: 50px; cursor: pointer;
    background: var(--white); color: var(--text-muted); border: 1px solid var(--warm);
    transition: all 0.35s var(--ease);
  }
  .tab:hover { background: var(--cream); color: var(--midnight); }
  .tab.is-on { background: var(--midnight); color: #fff; border-color: var(--midnight); }
  .tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
  .tab.is-on.timing .bar { animation: tabBar 5s linear forwards; }

  .panels {
    background: var(--white); border: 1px solid var(--warm);
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 20px 60px rgba(0,0,0,0.04);
  }
  .panel { display: none; grid-template-columns: 1fr 1fr; min-height: 316px; }
  .panel.is-on { display: grid; }
  .panel-copy { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
  .panel-copy h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--midnight); margin-bottom: 11px; }
  .panel-copy p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 600; color: var(--midnight);
    background: var(--ivory); border: 1px solid var(--warm);
    padding: 7px 13px; border-radius: 50px;
  }
  .chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
  .chip.reg { background: var(--blue-glow); border-color: rgba(59,91,245,0.22); color: var(--blue-deep); font-weight: 700; letter-spacing: 0.2px; }

  .panel-vis {
    position: relative; overflow: hidden;
    background: radial-gradient(circle at 30% 18%, rgba(59,91,245,0.18), transparent 62%), linear-gradient(160deg, #131d36 0%, var(--midnight) 66%);
    display: flex; align-items: center; justify-content: center; padding: 28px;
  }
  .vis { width: 268px; }
  .vis-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 11px; padding: 10px 13px; margin-bottom: 9px;
  }
  .vis-row:last-child { margin-bottom: 0; }
  .vis-k { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9); flex: 1; }
  .vis-s { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; }
  .vis-tick {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    background: #0E9E78; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; line-height: 1;
    box-shadow: 0 3px 10px rgba(14,158,120,0.35);
  }
  .vis-track { flex: 1; height: 4px; border-radius: 50px; background: rgba(255,255,255,0.12); overflow: hidden; }
  .vis-track i { display: block; height: 100%; width: 0; background: #60a5fa; border-radius: 50px; }
  .vis-scan {
    position: absolute; left: 0; right: 0; top: -18%; height: 18%; opacity: 0;
    background: linear-gradient(to bottom, rgba(59,91,245,0) 0%, rgba(96,165,250,0.26) 100%);
    border-bottom: 2px solid rgba(120,180,255,0.9);
    box-shadow: 0 2px 18px 2px rgba(59,91,245,0.5);
    pointer-events: none;
  }
  .vis-cap {
    margin-top: 14px; text-align: center;
    font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }
  .vis-cap b { color: #8fa5ff; }

  /* ================= Clearance board ================= */
  .board {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  }
  .bcol {
    background: var(--white); border: 1px solid var(--warm);
    border-radius: 16px; padding: 16px 16px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 12px 36px rgba(0,0,0,0.025);
  }
  .bcol-h {
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase;
    color: var(--blue); margin-bottom: 11px; line-height: 1.3;
  }
  .bchk {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 11.5px; line-height: 1.35; color: var(--text);
    padding: 4px 0;
  }
  .bt {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    background: var(--warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 800; line-height: 1; color: transparent;
  }
  .bchk.on .bt { background: #0E9E78; color: #fff; }
  .bchk.intl .bl::after {
    content: 'INTL'; margin-left: 6px;
    font-size: 7.5px; font-weight: 800; letter-spacing: 0.6px;
    color: var(--blue); background: var(--blue-glow);
    padding: 2px 5px; border-radius: 4px; white-space: nowrap;
  }
  .board-foot {
    max-width: 1080px; margin: 22px auto 0;
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted);
  }
  .board-foot .pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--midnight); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.2px;
    padding: 9px 16px; border-radius: 50px;
  }
  .board-foot .pill i { width: 6px; height: 6px; border-radius: 50%; background: #2dc79c; }

  /* ================= Integrations ================= */
  .integ { max-width: 940px; margin: 0 auto; text-align: center; }
  .integ-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
  .integ-lab {
    font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 12px;
  }
  .ichip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--warm);
    border-radius: 12px; padding: 13px 20px;
    font-size: 14px; font-weight: 700; letter-spacing: -0.2px; color: var(--midnight);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 10px 30px rgba(0,0,0,0.025);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .ichip:hover { transform: translateY(-2px); box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 18px 44px rgba(0,0,0,0.055); }
  .ichip i { width: 7px; height: 7px; border-radius: 50%; background: #0E9E78; flex-shrink: 0; }
  .ichip.partner i { background: var(--gold); }
  .integ-note { font-size: 12.5px; color: var(--text-muted); margin-top: 18px; }
  .integ-principle {
    max-width: 700px; margin: 26px auto 0;
    font-size: 15.5px; line-height: 1.6; font-weight: 600; color: var(--midnight);
    padding-top: 22px; border-top: 1px solid var(--warm);
  }
  .integ-principle span { color: var(--text-muted); font-weight: 400; }

  /* ---------- Quote cards ---------- */
  .qgrid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  }
  .qcard {
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 20px;
    padding: 30px 32px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 16px 48px rgba(0,0,0,0.03);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }
  .qcard:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 26px 64px rgba(0,0,0,0.06); }
  .qcard h3 {
    font-size: clamp(19px, 1.9vw, 23px);
    font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
    color: var(--midnight); margin-bottom: 15px;
  }
  .qcard blockquote {
    font-size: 14px; line-height: 1.6; font-style: italic; color: var(--text);
    border-left: 3px solid var(--blue); padding-left: 14px; margin-bottom: 13px;
  }
  /* figures rather than speech — no quote marks, no italic */
  .qcard blockquote.fig { font-style: normal; font-weight: 600; color: var(--midnight); font-size: 15px; }
  .qcard blockquote.fig b { color: var(--blue); font-weight: 800; }
  .qcard cite {
    font-style: normal; font-size: 11px; font-weight: 700;
    letter-spacing: 0.3px; color: var(--text-muted);
  }

  /* ---------- Content blocks ---------- */
  .blocks { max-width: 1080px; margin: 0 auto; }
  .content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 20px 60px rgba(0,0,0,0.04);
    margin-bottom: 28px;
    background: var(--white);
  }
  .content-visual { position: relative; min-height: 400px; overflow: hidden; }
  .content-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--ease); }
  .content-block:hover .content-visual img { transform: scale(1.04); }
  .content-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
  .content-text .stage-status { margin-bottom: 18px; align-self: flex-start; }
  .content-text h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--midnight);
    margin: 0 0 16px;
  }
  .content-text p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
  .content-text p + p { margin-top: 14px; }
  .content-text .how-list + p { margin-top: 18px; }
  .content-text .quote {
    font-style: italic;
    color: var(--text);
    border-left: 3px solid var(--blue);
    padding-left: 16px;
    margin-bottom: 16px;
  }
  .content-text .attrib {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.2px;
  }
  .content-block.reverse .content-visual { order: 2; }

  .how-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
  .how-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
  }
  .how-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--blue);
  }

  /* ================= Product mocks ================= */
  /* Shared shell. Fixed internal width, scaled to fit — keeps type legible
     rather than reflowing to unreadable sizes inside the 400px block. */
  .content-visual.is-mock {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at 26% 16%, rgba(59,91,245,0.16), transparent 62%),
      linear-gradient(160deg, #131d36 0%, var(--midnight) 66%);
  }
  /* zoom (not transform:scale) so the layout box shrinks with the visual —
     avoids dead space and horizontal overflow at narrow widths. */
  .mock-frame { width: 452px; flex: 0 0 auto; }
  @media (max-width: 1080px) { .mock-frame { zoom: 0.9; } }

  .mock-win {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  }
  .mock-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px;
    background: var(--midnight);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
  .mb-ttl { font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
  .mb-live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.2px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
  }
  .mb-live i { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

  /* ---------- Hero mock · Overseas pipeline ----------
     One-shot on load (not looping) — a hero that restarts every few seconds
     is distracting. Only the overdue flag keeps a slow pulse. */
  .hero-mock { width: 580px; max-width: 100%; position: relative; z-index: 1; }
  .hero-mock .mock-win { box-shadow: 0 24px 80px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.05); }

  .op-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--warm); }
  .op-stat { background: var(--ivory); padding: 11px 12px; }
  .op-sval { font-size: 17px; font-weight: 800; color: var(--midnight); letter-spacing: -0.5px; line-height: 1.05; white-space: nowrap; }
  .op-sval em { font-style: normal; color: var(--blue); }
  .op-sval small { font-size: 10px; font-weight: 700; letter-spacing: 0; color: var(--text-muted); }
  .op-slab { font-size: 8.5px; font-weight: 600; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.15px; line-height: 1.3; }

  .op-rows { background: var(--white); }
  .op-row {
    display: grid; grid-template-columns: 28px 1fr auto auto;
    gap: 10px; padding: 9px 14px;
    border-top: 1px solid var(--cream);
    align-items: start;
  }
  .op-av {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--blue-glow); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.2px;
  }
  .op-main { min-width: 0; }
  .op-name { font-size: 12px; font-weight: 800; color: var(--midnight); letter-spacing: -0.1px; display: flex; align-items: center; }
  .op-name span { font-size: 9.5px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1px; margin-left: 6px; }
  /* inline SVG flags, not emoji — Windows Chrome has no flag emoji font */
  .op-flag { width: 15px; height: 11px; border-radius: 2px; margin-right: 7px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.10); }
  .op-prog { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
  .op-track { width: 118px; height: 4px; border-radius: 50px; background: var(--warm); overflow: hidden; flex-shrink: 0; }
  .op-track i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 50px; }
  .op-track.done i { background: #0E9E78; }
  .op-elapsed { font-size: 9px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
  .op-next { font-size: 9.5px; line-height: 1.35; margin-top: 4px; color: var(--text); }
  .op-next b { color: var(--blue); font-weight: 800; }
  .op-next.late { color: #8a5f11; font-weight: 600; }
  .op-next.late b { color: #8a5f11; }

  /* Fit score. Scores deliberately do NOT track source country — the Filipino
     candidate outscores one UK candidate — so the column can never be read as
     ranking people by where they trained. */
  .op-fit { text-align: center; min-width: 32px; padding-top: 1px; }
  .op-fit .fl { display: block; font-size: 7px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }
  .op-fit .fv { display: block; font-size: 15px; font-weight: 800; color: var(--midnight); letter-spacing: -0.4px; line-height: 1.15; }

  .op-right { text-align: right; }
  .op-stage {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 8px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 4px 8px; border-radius: 50px; white-space: nowrap;
    background: var(--blue-glow); color: var(--blue);
  }
  .op-stage.done { background: rgba(14,158,120,0.13); color: #0b7d5f; }
  .op-stage.late { background: rgba(228,156,58,0.2); color: #8a5f11; }
  .op-land { font-size: 9.5px; font-weight: 700; color: var(--midnight); margin-top: 6px; white-space: nowrap; }
  .op-land span { font-weight: 500; color: var(--text-muted); }

  /* next-best-action strip — lives inside the panel rather than as a floating
     card, which at 6 rows would always cover one of them */
  .op-foot {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .op-foot .nba {
    width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
    background: rgba(59,91,245,0.28);
    display: flex; align-items: center; justify-content: center;
  }
  .op-foot .nba svg { width: 13px; height: 13px; stroke: #8fa5ff; fill: none; stroke-width: 2; }
  .op-foot .nba-ttl { font-size: 9px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: #8fa5ff; }
  .op-foot .nba-txt { font-size: 10.5px; color: rgba(255,255,255,0.82); margin-top: 2px; }
  .op-foot .nba-txt b { color: #fff; font-weight: 700; }

  /* ---------- Mock 1 · Readiness Check ---------- */
  .rc-body { padding: 12px; height: 222px; position: relative; }
  .rc-slot { position: absolute; left: 12px; right: 12px; height: 58px; }
  .rc-slot.s1 { top: 12px; }
  .rc-slot.s2 { top: 82px; }
  .rc-slot.s3 { top: 152px; z-index: 2; } /* rides over the others while re-ranking */

  .rc-row {
    position: relative;
    height: 58px;
    display: flex; align-items: center; gap: 11px;
    padding: 0 13px;
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  }
  .rc-row.flag { border-color: rgba(228,156,58,0.5); background: #fffaf1; }

  .rc-av {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue-glow);
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.2px;
  }
  .rc-row.flag .rc-av { background: rgba(228,156,58,0.18); color: #996b17; }

  .rc-main { flex: 1; min-width: 0; }
  .rc-name { font-size: 13px; font-weight: 800; color: var(--midnight); letter-spacing: -0.1px; }
  .rc-src { font-size: 10.5px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1px; }
  .rc-meta { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
  .rc-path { font-size: 11px; font-weight: 600; color: var(--blue); }
  .rc-est { font-size: 10.5px; color: var(--text-muted); }
  .rc-reason { font-size: 10.5px; line-height: 1.35; color: #8a5f11; font-weight: 500; }

  .rc-fit { flex-shrink: 0; text-align: center; min-width: 30px; }
  .rc-fit .fl { display: block; font-size: 7px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }
  .rc-fit .fv { display: block; font-size: 14px; font-weight: 800; color: var(--midnight); letter-spacing: -0.4px; line-height: 1.15; }
  .rc-row.flag .rc-fit .fv { color: var(--text-muted); }

  .rc-right { flex-shrink: 0; text-align: right; width: 78px; }
  .rc-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 4px 9px; border-radius: 50px;
    white-space: nowrap;
  }
  .rc-badge.ok { background: rgba(14,158,120,0.13); color: #0b7d5f; }
  .rc-badge.warn { background: rgba(228,156,58,0.22); color: #8a5f11; }

  .rc-score { margin-top: 8px; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
  .rc-sval { font-size: 12px; font-weight: 800; color: var(--midnight); }
  .rc-track { width: 50px; height: 5px; border-radius: 50px; background: var(--warm); overflow: hidden; }
  .rc-track i { display: block; height: 100%; width: 0; border-radius: 50px; background: var(--blue); }

  /* skeleton shown before a row resolves */
  .rc-skel { position: absolute; inset: 0; display: flex; align-items: center; gap: 11px; padding: 0 13px; background: inherit; border-radius: 11px; }
  .rc-skel .sk-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--warm); }
  .rc-skel .sk-txt { flex: 1; }
  .rc-skel span.b { display: block; height: 8px; border-radius: 3px; background: var(--warm); }
  .rc-skel .sk-a { width: 46%; }
  .rc-skel .sk-b { width: 30%; margin-top: 8px; background: var(--cream); }
  .rc-skel .sk-r { width: 60px; flex-shrink: 0; }

  .rc-foot {
    padding: 11px 14px;
    border-top: 1px solid var(--warm);
    background: var(--ivory);
    font-size: 10.5px; font-weight: 600; color: var(--text-muted);
  }
  .rc-foot b { color: #0b7d5f; font-weight: 800; }
  .rc-foot em { font-style: normal; color: #8a5f11; font-weight: 800; }

  /* Assessment panel — the score has to show its working. A bare percentage
     next to a country is exactly the reading we must not invite. */
  .ra { border-top: 1px solid var(--warm); background: var(--ivory); padding: 13px 14px 14px; }
  .ra-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
  .ra-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--blue); }
  .ra-who { font-size: 11.5px; font-weight: 800; color: var(--midnight); }
  .ra-who span { font-weight: 500; color: var(--text-muted); }
  .ra-fit { margin-left: auto; font-size: 8.5px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-muted); }
  .ra-fit b { font-size: 15px; font-weight: 800; color: var(--midnight); letter-spacing: -0.4px; margin-left: 3px; }

  .ra-line { display: grid; grid-template-columns: 66px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; }
  .ra-line .k { font-size: 9px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); }
  .ra-line .v { font-size: 10.5px; color: var(--text); }
  .ra-line .t { font-size: 9px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap; }
  .ra-line .t.ok { color: #0b7d5f; }
  .ra-line .t.q { color: #8a5f11; }

  .ra-sum {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--warm);
    font-size: 10px; line-height: 1.5; color: var(--text-muted);
  }
  .ra-sum b { display: block; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--midnight); margin-bottom: 4px; }

  /* ---------- Mock 2 · Document intelligence ---------- */
  .di-stage { position: relative; height: 400px; background: #0d1426; overflow: hidden; }

  /* Synthetic certificate — deliberately generic. No real letterhead or seal:
     a real credential image would be a real person's document. */
  .di-doc {
    /* top/bottom bands left clear so the status and result chips don't sit on the doc */
    position: absolute; inset: 42px 150px 46px 18px;
    background: #fdfcf9;
    border-radius: 4px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  .di-dhead { font-size: 9.5px; font-weight: 800; letter-spacing: 2px; color: #2c3550; text-align: center; }
  .di-dsub { font-size: 8px; font-weight: 600; letter-spacing: 0.9px; color: #8b93a8; text-align: center; margin-top: 4px; }
  .di-rule { height: 1px; background: #d8d3c8; margin: 11px 0 13px; }
  .di-field { margin-bottom: 13px; }
  .di-flabel { font-size: 6.5px; font-weight: 700; letter-spacing: 1px; color: #a9b0c0; text-transform: uppercase; }
  .di-fline { height: 7px; border-radius: 2px; background: #dfdbd2; margin-top: 5px; }
  .di-fline.w80 { width: 80%; } .di-fline.w62 { width: 62%; } .di-fline.w45 { width: 45%; } .di-fline.w70 { width: 70%; }
  .di-seal {
    position: absolute; right: 18px; bottom: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px dashed #cfc8ba; opacity: 0.7;
  }
  .di-sig { position: absolute; left: 20px; bottom: 22px; width: 80px; height: 6px; border-radius: 2px; background: #dfdbd2; }

  .di-scan {
    position: absolute; left: 0; right: 0; top: -16%; height: 16%;
    pointer-events: none; opacity: 0;
    background: linear-gradient(to bottom, rgba(59,91,245,0) 0%, rgba(59,91,245,0.10) 55%, rgba(96,165,250,0.30) 100%);
    border-bottom: 2px solid rgba(120,180,255,0.95);
    box-shadow: 0 2px 20px 2px rgba(59,91,245,0.55);
  }
  .di-br { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(120,180,255,0.7); pointer-events: none; }
  .di-br.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
  .di-br.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
  .di-br.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
  .di-br.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }

  .di-status {
    position: absolute; top: 10px; left: 38px; /* clears the tl corner bracket */
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(11,18,35,0.88);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(96,165,250,0.4);
    color: #fff; font-size: 9px; font-weight: 600; letter-spacing: 0.2px;
    padding: 6px 11px; border-radius: 50px; white-space: nowrap;
  }
  .di-status i { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

  .di-chip {
    position: absolute; right: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.1px;
    padding: 6px 10px; border-radius: 50px;
    background: #0E9E78; color: #fff;
    box-shadow: 0 5px 16px rgba(14,158,120,0.4);
    white-space: nowrap; opacity: 0; transform: scale(0.5);
  }
  .di-chip.c1 { top: 88px; }
  .di-chip.c2 { top: 132px; }
  .di-chip.c3 { top: 176px; }
  .di-chip.c4 { top: 220px; }
  .di-chip.warn { top: 264px; background: #E49C3A; color: #3a2400; box-shadow: 0 5px 16px rgba(228,156,58,0.5); }
  .di-chip.src {
    top: 308px; background: var(--blue); color: #fff;
    box-shadow: 0 5px 18px rgba(59,91,245,0.55);
  }
  .di-result {
    position: absolute; left: 12px; bottom: 11px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(11,18,35,0.9);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9);
    font-size: 9px; font-weight: 700; letter-spacing: 0.15px;
    padding: 6px 11px; border-radius: 50px; white-space: nowrap; opacity: 0;
  }
  .di-result .ok { color: #2dc79c; }
  .di-result .fl { color: #f0b45f; }
  .di-result .dv { color: rgba(255,255,255,0.25); }

  /* ---------- Mock animations ----------
     Gated on .visible so loops don't burn CPU before the block is scrolled to.
     The existing IntersectionObserver already adds .visible to .reveal blocks. */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rcRowIn {
      0%   { opacity: 0; transform: translateY(7px); }
      5%   { opacity: 1; transform: translateY(0); }
      89%  { opacity: 1; transform: translateY(0); }
      100% { opacity: 0; transform: translateY(0); }
    }
    @keyframes rcSkelOut { 0%, 15% { opacity: 1; } 21%, 100% { opacity: 0; } }
    @keyframes rcPop {
      0%, 16%   { opacity: 0; transform: scale(0.86); }
      21%       { opacity: 1; transform: scale(1.07); }
      26%, 100% { opacity: 1; transform: scale(1); }
    }
    @keyframes rcFade { 0%, 17% { opacity: 0; } 24%, 100% { opacity: 1; } }
    @keyframes rcFill { 0%, 19% { width: 0; } 36%, 100% { width: var(--w); } }
    /* the rising row moves slightly later so the two descending rows have
       mostly vacated — stops the cards visibly colliding mid-swap */
    @keyframes rcDown { 0%, 55% { transform: translateY(0); } 63%, 100% { transform: translateY(70px); } }
    @keyframes rcUp   { 0%, 60% { transform: translateY(0); } 69%, 100% { transform: translateY(-140px); } }
    @keyframes raIn   { 0%, 72% { opacity: 0; transform: translateY(8px); } 80%, 100% { opacity: 1; transform: translateY(0); } }
    .visible .ra { animation: raIn 9s var(--ease) infinite both; }
    @keyframes rcFoot { 0%, 68% { opacity: 0; } 75%, 100% { opacity: 1; } }
    @keyframes mockPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

    /* clearance board — 34 checks cascade to cleared, per-item delay set inline */
    @keyframes bChk {
      0%   { background: var(--warm); color: transparent; transform: scale(1); }
      55%  { background: #0E9E78; color: #fff; transform: scale(1.28); }
      100% { background: #0E9E78; color: #fff; transform: scale(1); }
    }
    @keyframes bRow { from { opacity: 0.45; } to { opacity: 1; } }
    .visible .bchk .bt { animation: bChk 0.5s var(--ease) forwards; animation-delay: var(--d); }
    .visible .bchk      { opacity: 0.45; animation: bRow 0.5s var(--ease) forwards; animation-delay: var(--d); }

    /* confidence tabs — each panel replays its own beat when it becomes active */
    @keyframes tabBar   { from { width: 0; } to { width: 100%; } }
    @keyframes visRowIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes visTick  { 0% { opacity: 0; transform: scale(0.3); } 60% { transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
    @keyframes visFill  { from { width: 0; } to { width: var(--w); } }
    @keyframes visSweep { 0% { top: -18%; opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
    @keyframes visCap   { from { opacity: 0; } to { opacity: 1; } }

    .panel.is-on .vis-row   { opacity: 0; animation: visRowIn 0.5s var(--ease) forwards; }
    .panel.is-on .vis-row:nth-child(1) { animation-delay: 0.05s; }
    .panel.is-on .vis-row:nth-child(2) { animation-delay: 0.15s; }
    .panel.is-on .vis-row:nth-child(3) { animation-delay: 0.25s; }
    .panel.is-on .vis-row:nth-child(4) { animation-delay: 0.35s; }
    .panel.is-on .vis-tick  { opacity: 0; animation: visTick 0.45s var(--ease) forwards; }
    .panel.is-on .vis-tick.d1 { animation-delay: 0.65s; }
    .panel.is-on .vis-tick.d2 { animation-delay: 0.95s; }
    .panel.is-on .vis-tick.d3 { animation-delay: 1.25s; }
    .panel.is-on .vis-tick.d4 { animation-delay: 1.55s; }
    .panel.is-on .vis-track i { animation: visFill 0.9s var(--ease) forwards; animation-delay: 0.5s; }
    .panel.is-on .vis-cap   { opacity: 0; animation: visCap 0.6s var(--ease) forwards; animation-delay: 1.8s; }
    .panel.is-on .vis-scan  { animation: visSweep 2.6s cubic-bezier(0.45,0,0.55,1) 0.2s; }

    /* hero pipeline — one-shot, plays once on load */
    @keyframes opRowIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes opFill  { from { width: 0; } to { width: var(--w); } }
    @keyframes opLate  { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

    .visible .op-stat { opacity: 0; animation: opRowIn 0.7s var(--ease) forwards; }
    .visible .op-stat:nth-child(2) { animation-delay: 0.08s; }
    .visible .op-stat:nth-child(3) { animation-delay: 0.16s; }
    .visible .op-row { opacity: 0; animation: opRowIn 0.7s var(--ease) forwards; }
    .visible .op-stat:nth-child(4) { animation-delay: 0.24s; }
    .visible .op-row:nth-child(1) { animation-delay: 0.34s; }
    .visible .op-row:nth-child(2) { animation-delay: 0.46s; }
    .visible .op-row:nth-child(3) { animation-delay: 0.58s; }
    .visible .op-row:nth-child(4) { animation-delay: 0.70s; }
    .visible .op-row:nth-child(5) { animation-delay: 0.82s; }
    .visible .op-row:nth-child(6) { animation-delay: 0.94s; }
    .visible .op-track i { animation: opFill 1.1s var(--ease) forwards; animation-delay: 0.6s; }
    .visible .op-stage.late, .visible .op-next.late { animation: opLate 2.4s ease-in-out infinite; animation-delay: 1.4s; }

    .visible .rc-row     { animation: rcRowIn 9s var(--ease) infinite both; }
    .visible .rc-skel    { animation: rcSkelOut 9s var(--ease) infinite both; }
    .visible .rc-badge   { animation: rcPop 9s var(--ease) infinite both; }
    .visible .rc-meta    { animation: rcFade 9s var(--ease) infinite both; }
    .visible .rc-score   { animation: rcFade 9s var(--ease) infinite both; }
    .visible .rc-track i { animation: rcFill 9s var(--ease) infinite both; }
    .visible .rc-foot    { animation: rcFoot 9s var(--ease) infinite both; }
    .visible .mb-live i  { animation: mockPulse 1.4s ease-in-out infinite; }

    /* Resolve stagger — rows 2 and 3 resolve after row 1.
       .rc-row is deliberately NOT delayed: the three cards must share one
       cycle so they fade in and out together. Delaying the container too
       drifts them out of phase and a row visibly vanishes on its own. */
    .visible .s2 .rc-skel, .visible .s2 .rc-badge,
    .visible .s2 .rc-meta, .visible .s2 .rc-score, .visible .s2 .rc-track i { animation-delay: 0.32s; }
    .visible .s3 .rc-skel, .visible .s3 .rc-badge,
    .visible .s3 .rc-meta, .visible .s3 .rc-score, .visible .s3 .rc-track i { animation-delay: 0.64s; }

    /* re-rank: arrival order settles into ranked order */
    .visible .s1 { animation: rcDown 9s var(--ease) infinite both; }
    .visible .s2 { animation: rcDown 9s var(--ease) infinite both; }
    .visible .s3 { animation: rcUp 9s var(--ease) infinite both; }

    @keyframes diSweep {
      0%   { top: -16%; opacity: 0; }
      6%   { opacity: 1; }
      82%  { opacity: 1; }
      100% { top: 100%; opacity: 0; }
    }
    @keyframes diPop {
      0%   { opacity: 0; transform: scale(0.4); }
      9%   { opacity: 1; transform: scale(1.14); }
      16%  { transform: scale(1); }
      92%  { opacity: 1; transform: scale(1); }
      100% { opacity: 0; transform: scale(1); }
    }
    @keyframes diIn {
      0%   { opacity: 0; transform: translateY(6px); }
      12%  { opacity: 1; transform: translateY(0); }
      92%  { opacity: 1; }
      100% { opacity: 0; }
    }

    .visible .di-scan     { animation: diSweep 5.2s cubic-bezier(0.45,0,0.55,1) infinite; }
    .visible .di-status i { animation: mockPulse 1.4s ease-in-out infinite; }
    .visible .di-chip     { animation: diPop 5.2s var(--ease) infinite; }
    .visible .di-chip.c1  { animation-delay: 0.8s; }
    .visible .di-chip.c2  { animation-delay: 1.25s; }
    .visible .di-chip.c3  { animation-delay: 1.7s; }
    .visible .di-chip.c4  { animation-delay: 2.15s; }
    .visible .di-chip.warn{ animation-delay: 2.65s; }
    .visible .di-chip.src { animation-delay: 3.2s; }
    .visible .di-result   { animation: diIn 5.2s var(--ease) infinite; animation-delay: 3.7s; }
  }

  /* Reduced motion — pin both mocks to their finished state. */
  @media (prefers-reduced-motion: reduce) {
    .rc-skel, .di-scan, .vis-scan { display: none; }
    .rc-track i, .op-track i, .vis-track i { width: var(--w); }
    .vis-row, .vis-tick, .vis-cap { opacity: 1; transform: none; }
    .bchk { opacity: 1; }
    .bchk .bt { background: #0E9E78; color: #fff; }
    .di-chip, .di-result { opacity: 1; transform: scale(1); }
    .s1, .s2 { transform: translateY(70px); }
    .s3 { transform: translateY(-140px); }
    .ra { opacity: 1; transform: none; }
  }

  /* ---------- Pull quote ---------- */
  .pullquote { background: var(--cream); padding: 110px 40px; }
  .pullquote-inner { max-width: 900px; margin: 0 auto; text-align: center; }
  .pullquote .mark { font-size: 64px; line-height: 0.5; color: var(--blue); font-weight: 800; }
  .pullquote blockquote {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.6px;
    color: var(--midnight);
    margin: 28px 0 26px;
  }
  .pullquote blockquote .accent { color: var(--blue); }
  .pullquote cite {
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
  }

  /* ---------- Dark sub-point card ---------- */
  .subpoint {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--midnight);
    border-radius: 24px;
    padding: 52px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  }
  .subpoint .eyebrow { color: var(--gold); }
  .subpoint h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: #fff; letter-spacing: -0.6px; line-height: 1.2; margin-bottom: 14px; }
  .subpoint p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.7); }
  .subpoint p .tag { color: rgba(255,255,255,0.95); font-weight: 600; }

  .isnt-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .isnt-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,0.8);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .isnt-list li:last-child { border-bottom: none; padding-bottom: 0; }
  .isnt-list .mk {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; line-height: 1;
    margin-top: 1px;
  }
  .isnt-list .mk.yes { background: rgba(59,91,245,0.25); color: #8fa5ff; }
  .isnt-list .mk.no { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
  .isnt-list li strong { color: #fff; font-weight: 700; }

  /* ---------- Phase cards ---------- */
  .phase-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .phase-card {
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 16px 48px rgba(0,0,0,0.03);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .phase-card:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 22px 56px rgba(0,0,0,0.06); }
  .phase-card .stage-status { margin-bottom: 18px; }
  .phase-card h4 { font-size: 19px; font-weight: 800; color: var(--midnight); letter-spacing: -0.3px; margin-bottom: 10px; }
  .phase-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

  /* ---------- Image banner (stats) ---------- */
  .banner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
  .banner-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 20px 60px rgba(0,0,0,0.04); }
  .banner-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
  .banner-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 300px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(11,18,35,0.82) 0%, rgba(11,18,35,0.35) 45%, transparent 75%);
  }
  .banner-stat { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.05; }
  .banner-label { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.75); margin-top: 8px; max-width: 340px; }

  /* ---------- Partner / book section (dark) ---------- */
  .book {
    position: relative;
    background: var(--midnight);
    padding: 110px 40px 120px;
    overflow: hidden;
  }
  .book::before, .book::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
  }
  .book::before { width: 600px; height: 600px; top: -280px; right: -160px; }
  .book::after { width: 460px; height: 460px; bottom: -240px; left: -140px; border-color: rgba(255,255,255,0.03); }
  .book-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
  .book .eyebrow { color: var(--gold); }
  .book h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 20px;
  }
  .book > .book-inner > p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 34px; }
  .partner-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
    margin-bottom: 40px;
  }
  .partner-list li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px 22px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.68);
  }
  .partner-list li strong { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
  .book .cta-pair { justify-content: center; }
  .book .btn-primary { background: #fff; color: var(--midnight); }
  .book .btn-primary:hover { background: var(--gold); color: var(--midnight); box-shadow: 0 8px 30px rgba(201,169,110,0.35); }
  .book .btn-secondary { border-color: rgba(255,255,255,0.25); color: #fff; }
  .book .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
  .book-trust { margin-top: 30px; font-size: 13px; color: rgba(255,255,255,0.4); }

  /* ---------- Footer ---------- */
  footer {
    background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 28px 40px;
  }
  .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-inner .flogo img { height: 22px; opacity: 0.5; transition: opacity 0.3s var(--ease); }
  .footer-inner .flogo:hover img { opacity: 0.8; }
  .footer-note { font-size: 12px; color: rgba(255,255,255,0.3); }
  .socials { display: flex; gap: 18px; }
  .socials a { color: rgba(255,255,255,0.3); transition: all 0.3s var(--ease); }
  .socials a:hover { color: var(--gold); transform: translateY(-2px); }
  .socials svg { width: 18px; height: 18px; fill: currentColor; }

  /* ---------- Reveal animations ---------- */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes subtleBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

    .reveal { opacity: 0; }
    .reveal.visible { animation: revealUp 0.9s var(--ease) forwards; }
    .reveal-d1.visible { animation-delay: 0.08s; }
    .reveal-d2.visible { animation-delay: 0.16s; }
    .reveal-d3.visible { animation-delay: 0.24s; }
    .reveal-d4.visible { animation-delay: 0.32s; }
    .float-card { animation: subtleBob 5s ease-in-out infinite; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 120px 24px 60px;
      gap: 48px;
    }
    .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .gate-grid { grid-template-columns: repeat(2, 1fr); }
    .phase-grid { grid-template-columns: 1fr; }
    .panel.is-on { grid-template-columns: 1fr; }
    .panel-vis { order: -1; min-height: 260px; }
    .panel-copy { padding: 34px 30px; }
    .qgrid { grid-template-columns: 1fr; }
    .board { grid-template-columns: repeat(2, 1fr); }
    .content-block { grid-template-columns: 1fr; }
    .content-visual { min-height: 280px; }
    .content-visual.is-mock { min-height: 0; padding: 22px; }
    .mock-frame { zoom: 0.86; }
    .content-block.reverse .content-visual { order: -1; }
    .banner { grid-template-columns: 1fr; }
    .subpoint { grid-template-columns: 1fr; gap: 32px; padding: 42px 36px; }
    .partner-list { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    #nav { padding: 16px 20px; }
    #nav.scrolled { padding: 12px 20px; }
    .hero { padding: 100px 20px 48px; }
    .hero h1 { font-size: 32px; }
    .section { padding: 80px 20px; }
    .pullquote { padding: 80px 20px; }
    .book { padding: 80px 20px 88px; }
    footer { padding: 24px 20px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .content-block, .banner-card, .subpoint { border-radius: 16px; }
    .content-text { padding: 32px 24px; }
    /* Tuned so the 452px frame lands inside a 360px viewport without clipping:
       360 - 40 section padding - 20 mock padding = 300 available; 452 x 0.66 = 298. */
    .board { grid-template-columns: 1fr; }
    .content-visual.is-mock { padding: 10px; }
    .mock-frame { zoom: 0.66; }
    .change-grid { grid-template-columns: 1fr; }
    .change-card { padding: 30px 28px; }
    .gate-grid { grid-template-columns: 1fr; }
    .subpoint { padding: 32px 24px; }
    .float-card { display: none; }
    .cta-pair .btn { width: 100%; }
  }

  /* 1081–1200: ease the split back to even and tighten the buttons so the two
     hero CTAs stay on one line. */
  @media (max-width: 1200px) and (min-width: 1081px) {
    .hero { grid-template-columns: 1fr 1fr; gap: 44px; }
    .hero-mock { width: 520px; }
    .hero .cta-pair .btn { padding: 13px 24px; }
  }

  /* Below 1081 a two-column hero can't hold both: `1fr` won't shrink past the
     dashboard's 520px min-content, so the copy column collapses to ~365px and
     the CTAs wrap. Stack instead — deliberately earlier than the 900px
     breakpoint the rest of the page uses. Sets nothing the later 900/600
     blocks also set, so source order stays safe. */
  @media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
  }

  /* Phone: don't shrink 580px of fixed UI to 55% — that lands type at ~5px.
     Go fluid instead and drop the lowest-value column so it still reads. */
  @media (max-width: 660px) {
    .hero-mock { width: 100%; max-width: 440px; }
    .op-stats { grid-template-columns: repeat(2, 1fr); }
    .op-row { grid-template-columns: 26px 1fr auto; gap: 9px; padding: 9px 12px; }
    .op-av { width: 26px; height: 26px; }
    .op-elapsed { display: none; }
    .op-land { display: none; }
    .op-track { width: 100%; max-width: 150px; }
  }
