  /* ============================================================================
     Polished-mode global styles. !important is FORBIDDEN in this file —
     concentrate all overrides in wireframe.css where wf-mode legitimately
     needs to defeat polished-mode rules. If you find yourself wanting
     !important here, add a more specific selector or rethink the cascade.
     ============================================================================ */
  :root {
    --bg: #f3efe6;
    --paper: #fffaf0;
    --panel: #fbf5e8;
    --ink: #1d221b;
    --muted: #555044;
    --line: #d8cdb8;
    --line-strong: #263027;
    --accent: #d15c2f;
    --accent-2: #176c64;
    --accent-3: #3f5f9a;
    --warn: #b93f1a;
    --gold: #a97819;
    --tile: #e4d4b9;
    --shadow: rgba(45, 36, 20, 0.16);
    --font-serif: ui-serif, Georgia, "Times New Roman", serif;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --surface-paper: color-mix(in srgb, var(--paper) 84%, white 16%);
    --surface-soft: color-mix(in srgb, var(--paper) 88%, var(--tile) 12%);
    --line-faint: color-mix(in srgb, var(--line) 70%, transparent);
    --ease-standard: cubic-bezier(.2,.7,.2,1);
    --ease-soft: cubic-bezier(.22,.8,.32,1);
    --shadow-phone: 0 24px 54px var(--shadow), 0 0 0 8px rgba(255, 250, 240, 0.8);
  }
  * { box-sizing: border-box; }
  html {
    scroll-padding-top: 72px;
    scroll-behavior: smooth;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  html, body {
    margin: 0;
    padding: 0;

    overflow-x: clip;
    background:
      linear-gradient(90deg, rgba(38, 48, 39, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
      linear-gradient(180deg, rgba(38, 48, 39, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
      var(--bg);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  a { color: var(--ink); }

  .toc .toc-title,
  .hero .eyebrow,
  .doc h2,
  .callout .label,
  .two-col .mini .label,
  .table-lite th,
  .cfg-tag,
  .cfg-brief-k,
  .cfg-confirm-eyebrow,
  .cfg-summary-row .k,
  .wf-intro .eyebrow,
  .screen-card .caption,
  .fs-expand,
  .section h3,
  .win-bg .eyebrow-win,
  .win-bg .footer,
  .scout-bubble .who,
  .role-chip,
  .finding-row .finding-who,
  .stake-badge,
  .clf-phase-label,
  .clf-sender,
  .bento-tag,
  .diag-mq-qname,
  .diag-mq-x-labels,
  .diag-mq-y-label {
    text-transform: uppercase;
  }

  .card,
  .cfg-summary-row,
  .role-chip,
  .finding-row,
  .bento-tile {
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .row,
  .clf-bench-row,
  .clf-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mini-ico,
  .bento-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .toc {
    position: fixed;
    left: max(24px, calc((100vw - 1220px) / 2));
    top: 24px;
    z-index: 8;
    width: 190px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
    box-shadow: 8px 8px 0 rgba(38, 48, 39, 0.08);
    font-family: var(--font-sans);
  }
  .toc .toc-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
  }
  .toc a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.25;
    padding: 6px 0;
    border-top: 1px solid var(--line-faint);
    transition: color 0.15s ease;
  }
  .toc a:hover { color: var(--ink); }
  .toc a.toc-active {
    color: var(--ink);
    font-weight: 600;
  }

  main { display: block; }

  .hero {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 640px;
    padding: clamp(64px, 8vw, 112px) 24px 56px;
    position: relative;
    display: grid;
    align-content: end;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 36px 24px auto;
    height: min(56vw, 470px);
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.84), rgba(255, 250, 240, 0.08) 48%, rgba(23, 108, 100, 0.1)),
      repeating-linear-gradient(30deg, transparent 0 30px, rgba(38, 48, 39, 0.06) 30px 31px),
      repeating-linear-gradient(150deg, transparent 0 30px, rgba(38, 48, 39, 0.06) 30px 31px);
    border: 1px solid var(--line);
    border-radius: 8px;
    transform: skewY(-2deg);
    z-index: -2;
  }
  .hero::after {
    content: "";
    position: absolute;
    right: clamp(20px, 8vw, 120px);
    top: 100px;
    width: min(58vw, 620px);
    height: 360px;
    background:
      linear-gradient(150deg, transparent 0 18%, rgba(63, 95, 154, 0.24) 18% 36%, transparent 36% 52%, rgba(209, 92, 47, 0.22) 52% 66%, transparent 66%),
      linear-gradient(30deg, transparent 0 20%, rgba(23, 108, 100, 0.22) 20% 34%, transparent 34% 58%, rgba(169, 120, 25, 0.25) 58% 72%, transparent 72%);
    clip-path: polygon(50% 0, 100% 25%, 100% 72%, 50% 100%, 0 74%, 0 25%);
    opacity: 0.86;
    z-index: -1;
  }
  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 18px;
  }
  .hero h1 {
    max-width: 870px;
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 24px;
  }
  .hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
  }
  .hero .byline {
    color: var(--muted);
    font-size: 14px;
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero .byline strong { color: var(--ink); font-weight: 600; }

  .divider {
    max-width: 900px;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
    font-size: 17px;
    line-height: 1.65;
  }
  .doc, .wf-intro, .screen-card, footer.page-footer {
    font-family: var(--font-sans);
  }
  .doc h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin: 56px 0 8px;
  }
  .doc h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 20px;
  }
  .doc p { margin: 0 0 18px; }
  .doc p strong { font-weight: 600; }
  .doc ul, .doc ol { padding-left: 22px; margin: 0 0 20px; }
  .doc li { margin: 0 0 6px; }

  .callout {
    background: color-mix(in srgb, var(--paper) 82%, var(--accent-2) 18%);
    border: 1px solid color-mix(in srgb, var(--accent-2) 45%, var(--line));
    padding: 18px 20px;
    border-radius: 4px;
    margin: 28px 0;
    font-size: 16px;
  }
  .callout .label {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
  }

  .pull {
    position: relative;
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    padding: 26px 28px 26px 64px;
    margin: 36px 0;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--paper) 70%, var(--tile) 30%) 0%,
      color-mix(in srgb, var(--paper) 92%, var(--tile) 8%) 60%,
      transparent 100%);
    border: 1px solid var(--line-faint);
    border-radius: 4px;
  }
  .pull::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 4px;
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.55;
    pointer-events: none;
  }
  .pull::after {
    display: none;
  }
  .wf-mode .pull {
    background: transparent;
    border: 1px dashed var(--line);
    border-color: var(--ink);
    padding: 8px 0 8px 20px;
  }
  .wf-mode .pull::before,
  .wf-mode .pull::after { display: none; }

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0 24px;
  }
  @media (max-width: 700px) {
    .two-col { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    html, body {
      overflow-x: hidden;
    }
    .hero {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      min-height: auto;
      padding: 96px 24px 44px;
      display: block;
      overflow: visible;
    }
    .hero h1 {
      max-width: 100%;
      font-size: 2rem;
      line-height: 1.08;
      overflow-wrap: break-word;
    }
    .hero .callout,
    .callout {
      width: 100%;
      max-width: 100% !important;
      overflow-wrap: break-word;
    }
    .doc {
      width: 100%;
      max-width: 100%;
      padding-left: 24px;
      padding-right: 24px;
    }
    .doc h3 {
      font-size: 1.55rem;
      letter-spacing: 0;
    }
    .pull {
      font-size: 1.25rem;
      padding: 20px;
    }
    .hero::after {
      top: 66px;
      right: -70px;
      width: 430px;
      opacity: 0.5;
    }
  }
  @media (max-width: 420px) {
    .hero {
      padding-left: 18px;
      padding-right: 18px;
    }
    .hero h1 {
      font-size: 1.85rem;
    }
    .doc {
      padding-left: 18px;
      padding-right: 18px;
    }
  }
  @media (max-width: 1220px) {
    .toc { display: none; }
  }
  .toc {
    transition: opacity 0.25s ease, pointer-events 0s 0.25s;
  }
  .toc.toc--hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .two-col .mini {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    font-size: 15px;
  }
  .two-col .mini .label {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
  }
  .two-col .mini .v {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
  }

  .table-lite {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 12px 0 24px;
  }
  .table-lite th, .table-lite td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .table-lite th {
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .cfg-screen-hd {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-paper);
  }
  .cfg-screen-hd--lock {
    background: color-mix(in srgb, var(--accent-2) 10%, var(--paper));
    border-bottom-color: color-mix(in srgb, var(--accent-2) 28%, var(--line));
  }
  .cfg-screen-hd-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .cfg-screen-hd--lock .cfg-screen-hd-title { color: var(--accent-2); }
  .cfg-screen-hd-sub {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 2px;
  }

  
  .cfg-chat {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 14px;
  }
  .cfg-chat .clf-msg { font-size: 13.5px; max-width: 85%; }
  .cfg-chat .clf-sender { margin-top: 4px; font-size: 11px; }
  .cfg-chat > div { display: flex; flex-direction: column; }
  .cfg-chat > div:has(.clf-msg--user)  { align-items: flex-end; }
  .cfg-chat > div:has(.clf-msg--scout) { align-items: flex-start; }

  
  .cfg-tag {
    display: inline-block;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.10em;
    padding: 2px 6px; border-radius: 3px;
    margin-right: 6px; vertical-align: middle;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
  }
  .cfg-tag--style    { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }

  
  .cfg-confirm-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px 16px 8px;
  }
  .cfg-confirm-body::-webkit-scrollbar { display: none; }
  .cfg-confirm-hero {
    padding: 14px 14px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-2) 8%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--accent-2) 22%, var(--line));
    margin-bottom: 14px;
  }
  .cfg-confirm-eyebrow {
    font-size: 10.5px; letter-spacing: 0.12em;
    color: var(--accent-2); font-weight: 700;
  }
  .cfg-confirm-name {
    font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--ink); margin-top: 4px;
  }
  .cfg-confirm-tagline {
    font-size: 13px; font-style: italic;
    color: var(--muted); margin-top: 4px;
  }

  
  .cfg-summary-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
    font-size: 13px;
  }
  .cfg-summary-row {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .cfg-summary-row .k {
    font-size: 10px; letter-spacing: 0.10em;
    color: var(--muted); font-weight: 600;
  }
  .cfg-summary-row .v { font-weight: 500; line-height: 1.4; color: var(--ink); }

  
  .cfg-cta-bar {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
  }
  .cfg-cta {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    font-family: inherit;
    background: var(--accent-2);
    color: var(--paper);
    border: 1px solid var(--accent-2);
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
  }
  .cfg-cta:hover  { background: color-mix(in srgb, var(--accent-2) 88%, black 12%); }
  .cfg-cta:active { transform: translateY(1px); }
  .cfg-cta--ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
    font-weight: 500;
  }
  .cfg-cta--ghost:hover { background: color-mix(in srgb, var(--tile) 22%, var(--paper)); }

  
  /* ============ Wireframes page · 2-column shell ============ */
  /* Left rail: title + direction card (sticky on wide screens).      */
  /* Right area: carousel where each slide is phone + caption card.   */
  .wf-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 40px 24px 48px;
  }
  .wf-page-side {
    font-family: var(--font-sans);
  }
  .wf-page-side--header .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .wf-page-side--header h2 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin: 0 0 18px;
  }
  .wf-page-side--header .design-note {
    margin-top: 0;
  }
  .wf-page-main { min-width: 0; }

  /* Stage: carousel of phones (left) + a fixed caption panel (right). */
  /* The carousel scrolls; captions cross-fade in place via JS class.  */
  .wf-stage { position: relative; }
  .wf-captions {
    position: relative;
    min-height: 200px;
  }
  .wf-caption {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    padding: 32px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--shadow) 55%, transparent);
    text-align: center;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 280ms var(--ease-soft), transform 280ms var(--ease-soft);
    pointer-events: none;
  }
  .wf-caption > p {
    margin: 0;
    text-wrap: balance;
  }
  .wf-caption.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  @media (min-width: 1100px) {
    .wf-page {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 40px;
      align-items: start;
    }
    .wf-page-side { position: sticky; top: 80px; }

    /* Stage: 2 cols — carousel on the left, caption panel on the right. */
    .wf-stage {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 380px;
      gap: 36px;
      align-items: start;
    }
    .wf-captions {
      position: relative;
      align-self: start;
      min-height: 216px;
      height: 216px;
    }
    .wf-caption {
      position: absolute;
      inset: 0;
    }

    /* Carousel cards fill the main column (override the 100vw default). */
    .wf-page-main .screen-card {
      flex: 0 0 100%;
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      padding: 0 12px;
    }
    .wf-page-main .screens-wrapper { padding: 0; }
    .wf-page-main .screens { padding: 8px 0 12px; }

    /* Override the 100vw carousel scale-dim so card height stays steady. */
    .wf-page-main .screen-card,
    .wf-page-main .screen-card.is-focused {
      transform: none;
      opacity: 1;
      filter: none;
    }
    .wf-page-main .screen-card.is-focused .phone {
      box-shadow: 0 24px 48px rgba(38, 48, 39, 0.18), 0 0 0 6px rgba(255, 250, 240, 0.85);
    }

    /* Carousel-dots: clear breathing room from the wireframes above.   */
    .wf-page-main .carousel-dots { margin-top: 36px; }
  }

  @media (max-width: 1099px) {
    .wf-page {
      display: flex;
      flex-direction: column;
      gap: 28px;
      padding: 32px 20px 48px;
    }
    .wf-stage { display: flex; flex-direction: column; gap: 20px; }
    .wf-captions { min-height: 0; }
    .wf-caption { position: relative; inset: auto; display: none; }
    .wf-caption.is-active { display: block; }
    .wf-page-main .carousel-dots { margin-top: 28px; }
  }

  /* ============ Section ============ */
  .wf-intro {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 24px;
  }
  .wf-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
  }
  @media (max-width: 760px) {
    .wf-intro-grid {
      grid-template-columns: 1fr;
    }
  }
  .wf-intro .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .wf-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
  }
  .wf-intro p {
    color: var(--muted);
    margin: 0;
    max-width: 620px;
  }
  .design-note {
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 76%, var(--accent-2) 24%);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2) 18%, transparent);
  }
  .design-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
  }

  .screens-wrapper {
    padding: 48px 0 56px;
    overflow: hidden;
  }
  .screens {
    display: flex;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 24px 0 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    perspective: 1400px;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen-card {
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transform: scale(0.86);
    opacity: 0.42;
    filter: saturate(0.7);
    transition:
      transform 520ms var(--ease-soft),
      opacity 520ms var(--ease-soft),
      filter 520ms var(--ease-soft);
  }
  .screen-card.is-focused {
    transform: scale(1);
    opacity: 1;
    filter: saturate(1);
  }
  .screen-card.is-focused .phone {
    box-shadow:
      0 38px 72px rgba(38, 48, 39, 0.22),
      0 0 0 8px rgba(255, 250, 240, 0.85);
  }
  .screen-card .caption,
  .screen-card .subcaption {
    width: 100%;
    max-width: 375px;
    padding: 0 24px;
  }
  .screen-card .caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .screen-card .caption strong { color: var(--ink); font-weight: 600; }

  
  .screen-card .phone .content-scroll > *,
  .screen-card .phone .section,
  .screen-card .phone .hot-banner,
  .screen-card .phone .scout-cta-stack,
  .screen-card .phone .win-bg > *,
  .screen-card .phone .share-tray {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 480ms var(--ease-soft),
      transform 480ms var(--ease-soft);
  }
  .screen-card.is-focused .phone .content-scroll > *,
  .screen-card.is-focused .phone .section,
  .screen-card.is-focused .phone .hot-banner,
  .screen-card.is-focused .phone .scout-cta-stack,
  .screen-card.is-focused .phone .win-bg > *,
  .screen-card.is-focused .phone .share-tray {
    opacity: 1;
    transform: translateY(0);
  }
  .screen-card.is-focused .phone .content-scroll > *:nth-child(1),
  .screen-card.is-focused .phone .win-bg > *:nth-child(1),
  .screen-card.is-focused .phone .section:nth-of-type(1) { transition-delay: 80ms; }
  .screen-card.is-focused .phone .content-scroll > *:nth-child(2),
  .screen-card.is-focused .phone .win-bg > *:nth-child(2),
  .screen-card.is-focused .phone .section:nth-of-type(2) { transition-delay: 140ms; }
  .screen-card.is-focused .phone .content-scroll > *:nth-child(3),
  .screen-card.is-focused .phone .section:nth-of-type(3) { transition-delay: 200ms; }
  .screen-card.is-focused .phone .content-scroll > *:nth-child(4),
  .screen-card.is-focused .phone .section:nth-of-type(4) { transition-delay: 260ms; }
  .screen-card.is-focused .phone .content-scroll > *:nth-child(n + 5) { transition-delay: 320ms; }

  @media (prefers-reduced-motion: reduce) {
    .screen-card,
    .screen-card .phone .content-scroll > *,
    .screen-card .phone .section,
    .screen-card .phone .hot-banner,
    .screen-card .phone .scout-cta-stack,
    .screen-card .phone .win-bg > *,
    .screen-card .phone .share-tray {
      transition: none;
      transform: none;
      opacity: 1;
      filter: none;
    }
  }
  /* ============ Section ============ */
  .skel {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--line) 90%, transparent) 0%,
      color-mix(in srgb, var(--line) 60%, transparent) 50%,
      color-mix(in srgb, var(--line) 90%, transparent) 100%
    );
    background-size: 200% 100%;
  }
  .skel + .skel { margin-top: 6px; }
  .skel.w-90 { width: 90%; }
  .skel.w-70 { width: 70%; }
  .skel.w-60 { width: 60%; }
  .skel.w-50 { width: 50%; }
  .skel.tall { height: 12px; }
  .skel-stack { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; }
  .skel-stack.tight { gap: 5px; }
  .screen-card.is-focused .skel {
    animation: skelShimmer 1.6s ease-in-out infinite;
  }
  @keyframes skelShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .screen-card.is-focused .skel { animation: none; }
  }
  /* ============ Section ============ */
  .fs-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    letter-spacing: 0.06em;
    cursor: pointer;
    line-height: 1;
  }
  .fs-expand:hover { background: var(--ink); color: var(--paper); }
  .fs-expand .fs-glyph { font-size: 13px; line-height: 1; }
  @media (max-width: 500px) {
    .fs-expand { font-size: 0; padding: 6px 8px; gap: 0; }
    .fs-expand .fs-glyph { font-size: 13px; }
    .screen-card .caption { padding: 0 16px; }
  }
  /* ============ Section ============ */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 64px;
  }
  .carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--line);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
  }
  .carousel-dots button[aria-selected="true"] {
    background: var(--ink);
    width: 24px;
  }
  /* Carousel chrome */
  .fs-expand { display: inline-flex; }
  .carousel-dots { display: flex; }
  /* ============ Section ============ */
  .fs-modal {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: rgba(20, 20, 20, 0.94);
    color: var(--ink);
    overflow: hidden;
  }
  .fs-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fs-modal::backdrop { background: rgba(20, 20, 20, 0.7); }
  .fs-stage {
    width: 375px;
    height: 812px;
    flex: 0 0 auto;
    transform-origin: center center;
    transform: scale(var(--fs-scale, 1));
  }
  .fs-stage .phone {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }
  .fs-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  .screen-card .subcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
    max-width: 340px;
    line-height: 1.5;
  }

  .phone {
    width: 375px;
    height: 812px;
    background: #fffaf0;
    border: 2px solid var(--line-strong);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-phone);
  }
  .status-bar {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
    font-variant-numeric: tabular-nums;
  }
  .screen-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-paper);
  }
  .section.last { border-bottom: 0; }
  .section h3 {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 600;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 12px;
    background: var(--paper);
    font-weight: 500;
    font-family: inherit;
  }
  button.pill { cursor: pointer; }
  .pill.live {
    border-color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-2) 12%, var(--paper));
    color: var(--accent-2);
  }
  .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    padding: 6px 12px;
    min-height: 44px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
    background: var(--paper);
    font-family: inherit;
    cursor: pointer;
  }
  .tab.on {
    border-color: var(--accent-2);
    color: var(--ink);
    font-weight: 600;
    background: color-mix(in srgb, var(--accent-2) 10%, var(--paper));
  }
  .card {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
  }
  .card.feature {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--paper) 76%, var(--gold) 24%);
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--gold) 22%, transparent);
  }
  .card.compact { padding: 10px 12px; }
  .card-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .avatar {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--accent-2) 18%, var(--paper));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    transform: rotate(45deg);
  }
  .avatar > span { display: block; transform: rotate(-45deg); }
  .avatar.lg { width: 48px; height: 48px; font-size: 14px; }
  .meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .headline { font-weight: 600; font-size: 14px; margin: 0 0 4px; letter-spacing: -0.01em; }
  .quote {
    font-size: 13px;
    font-style: italic;
    color: var(--ink);
    margin: 6px 0 0;
    padding-left: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
  }
  .muted { color: var(--muted); font-size: 12px; }
  .tag { font-size: 11px; color: var(--muted); }
  .actions {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
  }
  .actions span {
    padding: 3px 7px;
    border: 1px dashed var(--line);
    border-radius: 4px;
  }
  .actions button {
    min-height: 44px;
    padding: 3px 10px;
    border: 1px dashed var(--line);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
  }
  .bottom-nav {
    height: 56px;
    border-top: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    font-size: 11px;
    color: var(--muted);
    background: var(--paper);
  }
  .bottom-nav .on { color: var(--ink); font-weight: 600; }
  .bottom-nav button {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
  }
  .content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 48, 39, 0.28) transparent;
  }
  .content-scroll::-webkit-scrollbar { width: 4px; }
  .content-scroll::-webkit-scrollbar-track { background: transparent; }
  .content-scroll::-webkit-scrollbar-thumb {
    background: rgba(38, 48, 39, 0.22);
    border-radius: 999px;
  }
  .content-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 48, 39, 0.4);
  }
  .chat-bubble {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.5;
  }
  .chat-bubble.scout { align-self: flex-start; border-bottom-left-radius: 4px; }
  .chat-bubble.user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    border-bottom-right-radius: 4px;
  }
  .chat-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 48, 39, 0.28) transparent;
  }
  .chat-column::-webkit-scrollbar { width: 4px; }
  .chat-column::-webkit-scrollbar-track { background: transparent; }
  .chat-column::-webkit-scrollbar-thumb {
    background: rgba(38, 48, 39, 0.22);
    border-radius: 999px;
  }
  .chat-column::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 48, 39, 0.4);
  }
  .cta-button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 14px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
  }
  .toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    color: var(--muted);
  }
  .chip.on { border-color: var(--ink); color: var(--ink); background: #f3f0e8; }
  .ref-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
  }
  .ref-row {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: color-mix(in srgb, var(--paper) 96%, var(--ink) 4%);
  }
  .ref-row-hd {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 2px;
  }
  .ref-row-hd strong { color: var(--ink); font-weight: 700; }
  .ref-row-hd span {
    color: var(--accent-2);
    font-weight: 700;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .ref-row-meta {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.35;
  }
  .ref-row--add {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    border-style: dashed;
    padding: 8px 9px;
    cursor: pointer;
  }
  .stat-bars { display: grid; gap: 9px; }
  .stat-line {
    display: grid;
    grid-template-columns: 70px 1fr 28px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
  }
  .bar {
    height: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #efe5d3;
  }
  .bar span { display: block; height: 100%; background: var(--accent-2); }
  .quest-room {
    position: relative;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background:
      linear-gradient(30deg, transparent 0 30px, rgba(38, 48, 39, 0.08) 30px 31px),
      linear-gradient(150deg, transparent 0 30px, rgba(38, 48, 39, 0.08) 30px 31px),
      #eadbc3;
    margin-bottom: 12px;
  }
  .map-label {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
  }
  .scout-token {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--paper);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 5px 5px 0 rgba(38, 48, 39, 0.16);
  }
  .scout-token span { transform: rotate(-45deg); }
  .scout-token.a { left: 74px; top: 92px; }
  .scout-token.b { left: 172px; top: 42px; background: color-mix(in srgb, var(--paper) 68%, var(--accent) 32%); }
  .scout-token.c { left: 238px; top: 142px; background: color-mix(in srgb, var(--paper) 70%, var(--accent-3) 30%); }
  .quest-room .scout-token.a { left: 78px; top: 106px; }
  .quest-room .scout-token.b { left: 170px; top: 82px; }
  .quest-room .scout-token.c { left: 220px; top: 152px; }
  .quest-room .scout-token.d { left: 128px; top: 160px; background: color-mix(in srgb, var(--paper) 68%, var(--gold) 32%); }
  .deal-ticket {
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--paper) 82%, white 18%);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 12px;
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 16%, transparent);
  }
  .deal-ticket .row { padding: 1px 0; }
  .hot-banner {
    margin: 12px 16px;
    padding: 12px 14px;
    border: 1.5px solid var(--warn);
    border-radius: 10px;
    color: var(--warn);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf3ef;
  }
  .inline-link {
    min-height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: right;
    cursor: pointer;
  }
  .win-bg {
    flex: 1;
    background:
      repeating-linear-gradient(135deg, #e9cab4 0 16px, #efd2bd 16px 32px),
      #e9cab4;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px 14px;
    color: #2b1a10;
    overflow: hidden;
  }
  .win-bg .eyebrow-win {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: #6e3a18;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .win-bg .savings {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 14px 0 8px;
    color: #2b1a10;
  }
  .win-bg .savings small {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 4px;
    letter-spacing: -0.01em;
  }
  .win-bg .sub {
    font-size: 12px;
    color: #5a3a26;
    margin-bottom: 14px;
  }
  .win-bg .reveal {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .win-bg .reveal strong { font-weight: 600; }
  .win-bg .scout-quote {
    font-size: 13px;
    font-style: italic;
    padding: 12px 14px;
    background: rgba(255,255,255,0.38);
    border: 1px solid rgba(43, 26, 16, 0.35);
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .win-bg .footer {
    font-size: 10px;
    color: #5a3a26;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.08em;
    margin-top: 10px;
  }
  .share-tray {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    background: var(--paper);
  }
  .share-icon {
    flex: 1;
    text-align: center;
    min-height: 44px;
    padding: 9px 4px;
    font-size: 11px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
  }
  button.ref-row {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  button:focus-visible,
  [data-goto]:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
  }
  /* ============ Section ============ */
  @keyframes wf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.7); }
  }
  @keyframes wf-glow {
    0%, 100% { box-shadow: 5px 5px 0 rgba(38, 48, 39, 0.16), 0 0 0 0 rgba(193, 92, 47, 0); }
    50%      { box-shadow: 5px 5px 0 rgba(38, 48, 39, 0.16), 0 0 0 6px rgba(193, 92, 47, 0.18); }
  }
  @keyframes wf-drift {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%      { transform: rotate(45deg) translate(0, -2px); }
  }
  @keyframes wf-fill {
    from { width: 0; }
  }
  @keyframes wf-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes wf-banner-breath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 69, 28, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(196, 69, 28, 0.12); }
  }

  
  .signal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 6px;
    vertical-align: middle;
    animation: wf-pulse 1.6s ease-in-out infinite;
  }
  .signal-dot.cool { background: var(--accent-3); }

  
  .quest-room .scout-token { animation: wf-drift 5s ease-in-out infinite; }
  .quest-room .scout-token.b { animation-delay: -1.4s; }
  .quest-room .scout-token.c { animation-delay: -2.6s; }
  .quest-room .scout-token.d { animation-delay: -3.8s; }


  .scout-token > span { transition: transform 0.45s ease; }
  .scout-token.speaking { z-index: 2; }
  .scout-token.speaking > span { transform: rotate(-45deg) scale(1.18); }
  .quest-room .scout-token.speaking {
    animation: wf-drift 5s ease-in-out infinite, wf-glow 2.2s ease-in-out infinite;
  }

  
  .scout-bubble {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    max-width: 170px;
    padding: 5px 9px 6px;
    border: 1px solid var(--ink);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.005em;
    box-shadow: 2px 2px 0 rgba(38, 48, 39, 0.16);
    transform: translate(-50%, calc(-100% - 14px));
    opacity: 0;
    transition: opacity 0.35s ease, left 0.55s cubic-bezier(.4,0,.2,1), top 0.55s cubic-bezier(.4,0,.2,1);
  }
  .scout-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink);
  }
  .scout-bubble::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    margin-left: -4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--paper);
    z-index: 1;
  }
  .scout-bubble .who {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 1px;
  }
  .scout-bubble.show { opacity: 1; }

  
  .stat-line .bar span {
    transform-origin: left center;
    animation: wf-fill 1s cubic-bezier(.4,.0,.2,1) both;
  }
  .stat-line:nth-child(1) .bar span { animation-delay: 0.05s; }
  .stat-line:nth-child(2) .bar span { animation-delay: 0.12s; }
  .stat-line:nth-child(3) .bar span { animation-delay: 0.19s; }
  .stat-line:nth-child(4) .bar span { animation-delay: 0.26s; }
  .stat-line:nth-child(5) .bar span { animation-delay: 0.33s; }
  .stat-line:nth-child(6) .bar span { animation-delay: 0.40s; }
  .stat-line .stat-note {
    grid-column: 2 / span 2;
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.35;
  }

  
  .role-strip {
    display: flex;
    gap: 4px;
    margin-top: 8px;
  }
  .role-chip {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--muted);
  }
  .role-chip.filled {
    border-color: var(--ink);
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 6%, var(--paper));
  }
  .role-chip.needed {
    border-style: dashed;
    border-color: var(--accent-2);
    color: var(--accent-2);
    font-weight: 600;
  }

  .finding-row {
    border-radius: 6px;
    padding: 9px 11px;
    margin-bottom: 6px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .finding-row .finding-who {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .finding-row .finding-who .verdict {
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 9.5px;
    letter-spacing: 0.06em;
    font-weight: 600;
  }
  .finding-row .verdict.reject  { color: var(--warn); border: 1px solid var(--warn); }
  .finding-row .verdict.hold    { color: var(--accent-3); border: 1px solid var(--accent-3); }
  .finding-row .verdict.approve { color: var(--accent); border: 1px solid var(--accent); }
  .finding-row.live {
    border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
    background: color-mix(in srgb, var(--accent-2) 8%, var(--paper));
    animation: wf-fade-in 0.5s ease both;
  }

  
  .hot-banner.live { animation: wf-banner-breath 2.4s ease-in-out infinite; }


  @keyframes wf-breathe {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50%      { transform: rotate(45deg) scale(1.045); }
  }
  .avatar.lg { animation: wf-breathe 3.4s ease-in-out infinite; }

  
  @keyframes wf-arrow-nudge {
    0%, 100% { transform: translateX(0); opacity: 0.85; }
    50%      { transform: translateX(3px); opacity: 1; }
  }
  .pill-chev {
    display: inline-block;
    margin-left: 2px;
    animation: wf-arrow-nudge 1.8s ease-in-out infinite;
  }

  .scout-cta-stack {
    display: grid;
    gap: 6px;
  }
  .scout-cta-stack .cta-button { padding: 11px; font-size: 13px; }
  .scout-cta-stack .cta-button.secondary {
    background: var(--paper);
    color: var(--ink);
    border: 1.5px solid var(--ink);
  }
  .scout-cta-stack .cta-button.ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px dashed var(--line-strong);
  }

  
  .consensus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 6px;
  }
  .consensus-card {
    border: 1px solid rgba(43, 26, 16, 0.18);
    background: rgba(255, 250, 245, 0.55);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: #2b1a10;
    line-height: 1.3;
    
    animation: wf-fade-in 0.45s ease both;
  }
  .consensus-card:nth-child(1) { animation-delay: 0.05s; }
  .consensus-card:nth-child(2) { animation-delay: 0.18s; }
  .consensus-card:nth-child(3) { animation-delay: 0.31s; }
  .consensus-card:nth-child(4) { animation-delay: 0.44s; }
  .consensus-card .who {
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 2px;
    color: #6e3a18;
  }
  .consensus-card .verdict {
    font-weight: 600;
    color: #2b1a10;
  }
  .consensus-card.dissent .verdict { color: #6e3a18; font-style: italic; }

  .stake-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid #2b1a10;
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #2b1a10;
    background: rgba(255, 250, 245, 0.55);
    margin-left: 8px;
  }
  .stake-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }

  @media (prefers-reduced-motion: reduce) {
    .signal-dot,
    .quest-room .scout-token,
    .scout-token.speaking,
    .scout-token > span,
    .stat-line .bar span,
    .hot-banner.live,
    .finding-row.live,
    .consensus-card,
    .avatar.lg,
    .pill-chev { animation: none; }
    .scout-token > span { transition: none; }
    .scout-token.speaking > span { transform: rotate(-45deg); }
    .scout-bubble { transition: none; }
    .stat-line .bar span { width: var(--stat, 50%); }
  }
  /* ============ Section ============ */
  /* Section diagram */
  .clf {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px 0 24px;
  }
  .clf-phase-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--muted);
    margin-top: 8px;
    padding: 0 2px;
  }
  .clf-phase-label:first-child { margin-top: 0; }
  .clf-pl--setup  { color: var(--accent); }
  .clf-pl--active { color: var(--accent-2); }
  .clf-pl--close  { color: var(--accent-3); }
  .clf-step {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--line-faint);
    border-radius: 8px;
    background: var(--paper);
    margin-top: 8px;
  }
  .clf-step-hd {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
  }
  .clf-num {
    background: transparent;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    flex-shrink: 0;
  }
  .clf-num::after { content: '.'; }
  .clf-step--setup  .clf-num { color: var(--accent); }
  .clf-step--active .clf-num { color: var(--accent-2); }
  .clf-step--close  .clf-num { color: var(--accent-3); }
  .clf-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
  }

  
  .clf-mini {
    font-family: var(--font-sans);
    font-size: 14px;
  }

  
  .clf-feed { display: flex; flex-direction: column; gap: 4px; }
  .clf-feed-row {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 5px;
    background: var(--bg); font-size: 14px; color: var(--ink); line-height: 1.35;
  }
  .clf-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  }
  .clf-dot--skip  { background: color-mix(in srgb, var(--muted) 55%, transparent); }
  .clf-dot--watch { background: var(--gold); }
  .clf-dot--live  { background: var(--accent-2); animation: clf-pulse 1.5s ease-in-out infinite; }
  @keyframes clf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
  }

  
  .clf-chat { display: flex; flex-direction: column; gap: 5px; }
  .clf-sender {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px;
  }
  .clf-msg {
    padding: 8px 12px; border-radius: 10px;
    font-size: 14px; line-height: 1.45; max-width: 90%;
  }
  .clf-msg--user {
    background: color-mix(in srgb, var(--accent) 14%, var(--paper));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--ink);
    border-radius: 10px 10px 3px 10px; align-self: flex-end;
  }
  .clf-msg--scout {
    background: var(--paper); border: 1px solid var(--line); color: var(--ink);
    border-radius: 10px 10px 10px 3px; align-self: flex-start;
  }
  .clf-typing {
    display: flex; align-items: center; gap: 3px; padding: 7px 12px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 10px 10px 10px 3px; align-self: flex-start; width: fit-content;
  }
  .clf-typing span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--muted); display: block;
    animation: clf-bounce 1.2s ease-in-out infinite;
  }
  .clf-typing span:nth-child(2) { animation-delay: 0.15s; }
  .clf-typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes clf-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-4px); opacity: 1; }
  }

  
  .clf-agents { display: flex; flex-wrap: wrap; gap: 5px; }
  .clf-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px 5px 6px; border-radius: 6px;
    font-size: 13px; font-weight: 600; line-height: 1;
  }
  .clf-badge-ico {
    width: 20px; height: 20px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
  }
  .clf-badge--h { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
  .clf-badge--h .clf-badge-ico { background: var(--accent); color: #fff; }
  .clf-badge--t { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); }
  .clf-badge--t .clf-badge-ico { background: var(--accent-2); color: #fff; }
  .clf-badge--r { background: color-mix(in srgb, var(--accent-3) 12%, transparent); color: var(--accent-3); }
  .clf-badge--r .clf-badge-ico { background: var(--accent-3); color: #fff; }
  .clf-badge--p { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
  .clf-badge--p .clf-badge-ico { background: var(--gold); color: #fff; }
  .clf-status {
    margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-2);
    display: flex; align-items: center; gap: 6px;
  }
  .clf-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-2); display: block;
    animation: clf-pulse 1.5s ease-in-out infinite;
  }

  
  .clf-bench {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 6px; overflow: hidden; font-size: 14px;
  }
  .clf-bench-row {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
    color: var(--ink);
  }
  .clf-bench-row > span:first-child {
    min-width: 108px; flex-shrink: 0;
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--muted); padding-top: 1px;
  }
  .clf-bench-row:last-child { border-bottom: 0; }
  .clf-bench-row--mandate {
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    font-weight: 700; color: var(--accent);
  }
  .clf-bench-row--mandate > span:first-child { color: var(--accent); }
  .clf-bench-val { font-weight: 500; line-height: 1.45; }

  
  .clf-aglog { display: flex; flex-direction: column; gap: 10px; }
  .clf-aglog-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.5; }
  .clf-ag {
    width: 18px; height: 18px; border-radius: 3px;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
  }
  .clf-ag--h { background: var(--accent); color: #fff; }
  .clf-ag--t { background: var(--accent-2); color: #fff; }
  .clf-ag--r { background: var(--accent-3); color: #fff; }
  .clf-ag--p { background: var(--gold); color: #fff; }
  .clf-aglog-row--pending { color: var(--muted); font-style: italic; }

  
  .clf-deal {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 7px; padding: 10px 12px;
  }
  .clf-deal-hotel { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
  .clf-deal-price { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
  .clf-deal-price sup,
  .clf-deal-price .clf-deal-unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
  .clf-deal-save { font-size: 13px; font-weight: 700; color: var(--accent-2); margin: 4px 0 8px; }
  .clf-chips { display: flex; gap: 5px; flex-wrap: wrap; }
  .clf-chip {
    font-size: 12px; padding: 3px 7px; border-radius: 4px; font-weight: 600;
    background: color-mix(in srgb, var(--accent-2) 13%, transparent); color: var(--accent-2);
  }

  
  .clf-bookrow { display: flex; gap: 6px; align-items: center; }
  .clf-btn {
    border: none; cursor: default; border-radius: 6px;
    padding: 9px 16px; font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1;
  }
  .clf-btn--book { background: var(--accent); color: #fff; }
  .clf-btn--pass { background: transparent; border: 1px solid var(--line); color: var(--muted); }
  .clf-note { margin-top: 8px; font-size: 13px; color: var(--muted); font-style: italic; }

  
  .clf-guarantee {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 6px; padding: 11px 13px;
  }
  .clf-guarantee-ico { font-size: 20px; line-height: 1; flex-shrink: 0; }
  .clf-guarantee-title { font-size: 14px; font-weight: 700; color: var(--ink); }
  .clf-guarantee-body { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 3px; }

  
  .clf-recap {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 6px; overflow: hidden; font-size: 14px;
  }
  .clf-recap-row {
    padding: 7px 11px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
    color: var(--ink);
  }
  .clf-recap-row:last-child { border-bottom: 0; }
  .clf-recap-row--saved {
    background: color-mix(in srgb, var(--accent-2) 9%, transparent);
    font-weight: 700; color: var(--accent-2);
  }
  .clf-recap-val { font-weight: 600; }
  /* Hypothesis callout */
  .hyp {
    margin-top: 24px;
    padding: 13px 15px 15px;
    background: color-mix(in srgb, var(--paper) 85%, var(--bg) 15%);
    border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line-faint));
    border-radius: 4px;
  }
  .hyp-hd {
    display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
  }
  .hyp-title {
    font-size: 10px; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--muted);
  }
  .hyp-body {
    font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 10px;
  }
  .hyp-kill {
    font-size: 13px; color: var(--muted); line-height: 1.5;
    border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
    padding-top: 9px; margin-top: 2px;
  }

  /* Highlighter */
  mark.hl,
  .hl {
    background-color: transparent; 
    
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30' preserveAspectRatio='none'><path d='M3,15 C18,8 48,11 78,12 C108,13 142,9 170,11 C186,12 196,10 198,14 C200,19 191,23 174,23 C144,24 108,26 78,23 C50,21 22,26 8,22 C2,21 1,18 3,15 Z' fill='%23fff39a' opacity='0.82'/></svg>");
    background-repeat: no-repeat;
    background-size: 0% 80%;
    background-position: 0 78%;
    padding: 0 5px;
    transition: background-size 0.95s cubic-bezier(.45,.05,.25,1);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: inherit;
  }
  mark.hl.is-on,
  .hl.is-on { background-size: 100% 80%; }
  @media (prefers-reduced-motion: reduce) {
    mark.hl, .hl { transition: none; background-size: 100% 80%; }
  }
  /* Section diagram */
  .bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(110px, auto);
    grid-auto-flow: dense;
    gap: 10px;
    margin: 20px 0 24px;
  }
  .bento-tile {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
  }
  .bento-tile--hero {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--paper)) 0%, var(--paper) 70%);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  }
  .bento-tile--wide { grid-column: span 3; }
  .bento-ico {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    margin-bottom: 4px;
  }
  .bento-ico.g  { background: color-mix(in srgb, var(--accent-2) 13%, transparent); color: var(--accent-2); }
  .bento-ico.b  { background: color-mix(in srgb, var(--accent-3) 13%, transparent); color: var(--accent-3); }
  .bento-ico.y  { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
  .bento-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .bento-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
  }
  .bento-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin: 4px 0 6px;
  }
  .bento-tile--hero .bento-price { font-size: 38px; }
  .bento-price-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 4px;
  }
  .bento-tile--hero .bento-price-unit { font-size: 18px; }
  .bento-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: auto;
  }
  .bento-tile--hero .bento-desc { font-size: 14.5px; max-width: 90%; }
  @media (max-width: 720px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-tile--hero { grid-column: span 2; grid-row: auto; }
    .bento-tile--wide { grid-column: span 2; }
  }
  /* Section diagram */
  .diag-mq { margin: 20px 0 24px; }
  .diag-mq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    min-height: 180px;
  }
  .diag-mq-cell { background: var(--paper); padding: 12px 14px; }
  .diag-mq-cell.diag-mq--tr {
    background: color-mix(in srgb, var(--paper) 78%, var(--accent-2) 22%);
  }
  .diag-mq-qname {
    font-size: 10px;
    letter-spacing: 0.09em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
  }
  .diag-mq--tr .diag-mq-qname { color: var(--accent-2); }
  .diag-mq-items { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .diag-mq-star {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
  }
  .diag-mq-x-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.07em;
    padding: 6px 2px 0;
  }
  .diag-mq-y-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.07em;
    text-align: center;
    margin-bottom: 4px;
  }
  /* ============ Section ============ */
  .mini-ico {
    margin-bottom: 10px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--paper) 88%);
  }
  .mini-ico.g { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--paper) 88%); }
  .mini-ico.b { color: var(--accent-3); background: color-mix(in srgb, var(--accent-3) 12%, var(--paper) 88%); }
  .mini-ico.y { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--paper) 88%); }
  .ph-ico { display: inline-flex; align-items: center; color: var(--accent); }
  /* Scroll margin */
  .doc { scroll-margin-top: 20px; }
  .doc h3[id] { scroll-margin-top: 88px; }
  #wireframes { scroll-margin-top: 24px; }
  /* Table overflow */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0 24px;
    scrollbar-width: none;
    background:
      linear-gradient(to right, var(--bg) 30%, rgba(243, 239, 230, 0)) left center / 22px 100% no-repeat local,
      linear-gradient(to left, var(--bg) 30%, rgba(243, 239, 230, 0)) right center / 22px 100% no-repeat local,
      linear-gradient(to right, rgba(38, 48, 39, 0.18), rgba(38, 48, 39, 0)) left center / 14px 100% no-repeat scroll,
      linear-gradient(to left, rgba(38, 48, 39, 0.18), rgba(38, 48, 39, 0)) right center / 14px 100% no-repeat scroll;
  }
  .table-wrapper::-webkit-scrollbar { display: none; }
  .table-wrapper .table-lite { margin: 0; }

  footer.page-footer {
    border-top: 1px solid var(--line);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }
  footer.page-footer .footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  footer.page-footer .footer-links a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dotted var(--muted);
  }
  footer.page-footer .footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
  footer.page-footer .footer-meta { display: block; }

  /* Skip-to-content link — visible only on keyboard focus */
  .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 8px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms ease;
  }
  .skip-link:focus,
  .skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Reading-progress */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--gold));
    z-index: 9;
    pointer-events: none;
    will-change: transform;
  }
  /* Reveal-on-scroll */
  .reveal {
    opacity: 0;
    transition:
      opacity 0.7s var(--ease-standard),
      transform 0.7s var(--ease-standard),
      filter 0.7s var(--ease-standard);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  
  .reveal-up        { transform: translateY(18px); }
  .reveal-up-sm     { transform: translateY(10px); }
  .reveal-left      { transform: translateX(-22px); }
  .reveal-rise      { transform: translateY(28px) scale(0.98); }

  
  .reveal-blur {
    transform: translateY(14px);
    filter: blur(10px);
  }
  .reveal-blur.is-in { filter: blur(0); }

  
  .reveal-marker { transform: translateX(-16px); }

  
  .reveal-underline {
    transform: translateY(8px);
    position: relative;
  }
  .reveal-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.8s var(--ease-standard) 0.15s;
  }
  .reveal-underline.is-in::after { width: 64px; }

  
  .reveal-bubble-l { transform: translateX(-14px) translateY(6px) scale(0.96); }
  .reveal-bubble-r { transform: translateX(14px) translateY(6px) scale(0.96); }

  
  .reveal-row { transform: translateY(8px); }
  .reveal-row {
    transition:
      opacity 0.45s var(--ease-standard),
      transform 0.45s var(--ease-standard);
  }

  
  .reveal-step { transform: translateY(14px) scale(0.97); }

  
  .reveal-frame { transform: scale(0.985); }

  @media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
    .reveal,
    .reveal.is-in {
      opacity: 1;
      transform: none;
      filter: none;
      transition: none;
    }
    .reveal-underline::after { display: none; }
  }

  /* ============ Mandate log (Screen 02) ============ */
  .mandate-log {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 9px;
  }
  .mandate-log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-radius: 6px;
    border: 1px solid var(--line-faint);
  }
  .mandate-log-dest { color: var(--muted); }
  .mandate-log-outcome {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
  }
  .mandate-log-outcome.win {
    color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-2) 13%, transparent);
  }
  .mandate-log-outcome.pass {
    color: var(--muted);
    background: color-mix(in srgb, var(--line) 55%, transparent);
  }

  /* ============ Skill-specific stat bar colours (polished only) ============ */
  html:not(.wf-mode) .stat-line[data-skill="patience"] .bar span { background: var(--accent-3); }
  html:not(.wf-mode) .stat-line[data-skill="haggle"]   .bar span { background: var(--gold); }
  html:not(.wf-mode) .stat-line[data-skill="radar"]    .bar span { background: var(--accent); }

  /* ============ Bento tile borders + background ============ */
  .bento-tile { border: 1px solid var(--line); background: var(--surface-paper); }
  .bento-tile--hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--paper)) 0%, var(--paper) 70%);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  }

  /* ============ Polished mode: win-bg shimmer + savings pop ============ */
  @keyframes win-shimmer {
    0%   { opacity: 0; transform: translateX(-100%) skewX(-12deg); }
    40%  { opacity: 0.55; }
    100% { opacity: 0; transform: translateX(220%) skewX(-12deg); }
  }
  @keyframes win-pop {
    0%   { opacity: 0; transform: scale(0.88); }
    60%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
  }
  html:not(.wf-mode) .win-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
    animation: win-shimmer 4s ease-in-out infinite;
    animation-delay: 1s;
    pointer-events: none;
  }
  html:not(.wf-mode) .screen-card.is-focused .win-bg .savings {
    animation: win-pop 0.65s var(--ease-soft) both;
    animation-delay: 220ms;
  }

  /* ============ Polished mode: pill timer tick ============ */
  @keyframes pill-tick {
    0%, 80%, 100% { opacity: 1; }
    90%           { opacity: 0.45; }
  }
  html:not(.wf-mode) .pill { animation: pill-tick 3s ease-in-out infinite; }

  /* ============ Screen 05 stagger (cfg-confirm-body children) ============ */
  .screen-card .phone .cfg-confirm-body > *,
  .screen-card .phone .cfg-cta-bar > * {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 480ms var(--ease-soft),
      transform 480ms var(--ease-soft);
  }
  .screen-card.is-focused .phone .cfg-confirm-body > *,
  .screen-card.is-focused .phone .cfg-cta-bar > * {
    opacity: 1;
    transform: translateY(0);
  }
  .screen-card.is-focused .phone .cfg-confirm-body > *:nth-child(1) { transition-delay: 80ms; }
  .screen-card.is-focused .phone .cfg-confirm-body > *:nth-child(2) { transition-delay: 160ms; }
  .screen-card.is-focused .phone .cfg-cta-bar > *:nth-child(1) { transition-delay: 260ms; }
  .screen-card.is-focused .phone .cfg-cta-bar > *:nth-child(2) { transition-delay: 340ms; }

  /* ── Collapsible callouts ───────────────────────── */
  .callout { position: relative; }
  .callout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }
  .callout .callout-header .label { margin-bottom: 0; }
  .callout-label-empty { flex: 1; min-height: 1px; }
  .callout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-2);
    background: color-mix(in srgb, var(--paper) 90%, white 10%);
    border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
    padding: 4px 10px 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    transition: background 140ms var(--ease-standard), color 140ms var(--ease-standard), border-color 140ms var(--ease-standard);
  }
  .callout-toggle:hover {
    background: color-mix(in srgb, var(--accent-2) 14%, var(--paper));
    border-color: var(--accent-2);
  }
  .callout-toggle:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
  }
  .callout-toggle-icon {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 200ms var(--ease-soft);
  }
  .callout:not(.is-collapsed) .callout-toggle-icon {
    transform: rotate(-135deg) translate(-1px, -1px);
  }
  .callout-preview {
    color: var(--muted);
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
  }
  .callout-body { display: block; }
  .callout.is-collapsed .callout-body { display: none; }
  .callout:not(.is-collapsed) .callout-preview { display: none; }
  @media (prefers-reduced-motion: reduce) {
    .callout-toggle, .callout-toggle-icon { transition: none; }
  }

  /* ── Auto-linked Sxx section refs ──────────────── */
  a.sxref {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px dashed color-mix(in srgb, var(--accent-2) 55%, transparent);
    font-variant-numeric: tabular-nums;
    transition: color 120ms var(--ease-standard), border-color 120ms var(--ease-standard);
  }
  a.sxref:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  .wf-mode a.sxref {
    color: inherit;
    border-bottom-color: var(--line);
  }
