/* ============================================================================
   home-bureau.css  -  Direction D "Bureau" theme, HOMEPAGE ONLY.

   Loaded only by src/pages/index.astro, after /styles.css, and applied under
   <body class="theme-bureau">. It carries the homepage-only Bureau section
   styles (hero, rating panels, stat band, sample report, pricing cards, engines
   strip, thesis, steps, final CTA) ported from
   docs/redesign-explorations/direction-d-bureau.html (the locked mockup).

   The theme itself (design-token remap, chrome, buttons) is site-wide and lives
   in /bureau-theme.css; this file only adds the homepage sections on top.

   Because this file is linked only on the homepage and loads after styles.css,
   its rules win same-page collisions by source order; the only base rules that
   leak undeclared properties (.hero grid, .section border, .pipeline margin)
   are neutralized inline below.

   Fonts: Fraunces (self-hosted) for display, Source Sans 3 for UI, Source Code
   Pro for data readouts. The mockup's Space Grotesk / JetBrains Mono are
   substituted with the on-file families so the site stays fully self-hosted
   (no Google Fonts CDN). Fraunces carries the editorial signature.
   ============================================================================ */

/* ============================================================================
   Bureau section styles, ported from direction-d-bureau.html
   (the mockup :root, * reset, html and body rules are intentionally omitted;
   .hero, .section and .pipeline are neutralized against styles.css leaks).
   ============================================================================ */
  h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.01em;
    font-optical-sizing: auto;
  }

  p { margin: 0; }
  a { color: inherit; }

  .num, .mono { font-variant-numeric: tabular-nums; }
  .mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }

  ::selection { background: var(--gold); color: var(--ink); }

  /* ---------- Layout primitives ---------- */
  .wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .section { padding: var(--section-y) 0; border-top: 0; }
  .ruled-top { border-top: 1px solid var(--hair); }
  /* Hero "See the one-time reports" link jumps here; keep a little top gap. */
  #one-time-reports { scroll-margin-top: clamp(1.5rem, 4vw, 2.5rem); }

  .marker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
  }
  .marker .idx { color: var(--ink); }
  .marker .slash { color: var(--gold); }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1.5rem;
  }
  .eyebrow .tick {
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 2px;
    flex: none;
  }

  .lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    max-width: 46ch;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    padding: 1.05rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
                transform 0.24s var(--ease), border-color 0.24s var(--ease),
                box-shadow 0.24s var(--ease);
  }
  .btn-primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 0 10px 24px -12px rgba(23,26,31,0.5);
  }
  .btn-primary:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(252,188,50,0.6);
  }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--hair-strong);
  }
  .btn-secondary:hover {
    background: rgba(23, 26, 31, 0.05);
    border-color: var(--ink);
  }
  .btn-on-navy {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    box-shadow: 0 12px 28px -12px rgba(252,188,50,0.55);
  }
  .btn-on-navy:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
    transform: translateY(-2px);
  }
  @media (prefers-reduced-motion: reduce) {
    .btn:hover { transform: none; }
  }

  :focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .on-navy :focus-visible { outline-color: var(--gold); }

  /* animated link underline */
  .link-underline {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 2px;
  }
  .link-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .link-underline:hover::after { transform: scaleX(1); }
  .link-underline .arrow { transition: transform 0.24s var(--ease); }
  .link-underline:hover .arrow { transform: translateX(3px); }
  @media (prefers-reduced-motion: reduce) {
    .link-underline::after, .link-underline:hover .arrow { transition: none; transform: none; }
    .link-underline:hover::after { transform: scaleX(1); }
  }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.86);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--hair);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 74px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: none;
  }
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
  }
  .primary-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-bottom: 2px;
  }
  .primary-nav a::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.26s var(--ease);
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
  @media (prefers-reduced-motion: reduce) { .primary-nav a::after { transition: none; } }
  .header-cta { flex: none; }
  .header-cta .btn { padding: 0.72rem 1.4rem; font-size: 0.9rem; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--hair-strong);
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 18px; height: 1.5px;
    margin: 0 auto;
    background: var(--ink);
    transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-nav {
    display: none;
    border-bottom: 1px solid var(--hair);
    background: var(--bg);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--pad) 1.25rem; }
  .mobile-nav li { border-bottom: 1px solid var(--hair); }
  .mobile-nav a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
  }
  .mobile-nav .btn { width: 100%; margin-top: 1.25rem; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    display: block;
    max-width: none;
    margin: 0;
    padding: clamp(3rem, 6vw, 5.5rem) 0 var(--section-y);
    overflow: hidden;
  }
  /* signal terrain: faint wireframe contour backdrop behind the hero visual */
  .terrain-bg {
    position: absolute;
    top: -6%;
    right: -8%;
    width: min(64vw, 900px);
    height: 120%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
  }
  .terrain-bg svg { width: 100%; height: 100%; display: block; }
  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 6.3vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 1.5rem;
    max-width: 15ch;
  }
  .hero h1 .hl { color: var(--gold); font-style: italic; }
  .hero .lead { margin-bottom: 2rem; max-width: 48ch; }

  /* raisi-style capture bar */
  .capture {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 16px;
    box-shadow: 0 20px 44px -28px rgba(23,26,31,0.28), 0 2px 8px -4px rgba(23,26,31,0.08);
    padding: 0.5rem;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 540px;
  }
  .capture .field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.65rem 0 1rem;
    min-width: 0;
  }
  .capture .field .globe { width: 18px; height: 18px; flex: none; color: var(--teal-ink); }
  .capture .fake-input {
    font-family: var(--mono);
    font-size: 0.92rem;
    color: var(--muted);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .capture .fake-input .caret {
    display: inline-block;
    width: 1px; height: 1.05em;
    background: var(--teal-ink);
    margin-left: 1px;
    vertical-align: -0.15em;
    animation: caret 1.1s steps(1) infinite;
  }
  @keyframes caret { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .capture .fake-input .caret { animation: none; } }
  .capture .btn { padding: 0.95rem 1.5rem; font-size: 0.92rem; flex: none; }

  .capture-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    margin-top: 1rem;
  }
  .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--hair);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
  }
  .filter-pill .chev { width: 9px; height: 9px; color: var(--muted); flex: none; }
  .capture-secondary { margin-top: 1.4rem; display: flex; align-items: center; }

  /* ---------- Hero floating cards ---------- */
  .hero-visual { position: relative; min-height: 420px; }

  .report-card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    box-shadow: 0 34px 64px -30px rgba(23,26,31,0.34), 0 4px 12px -6px rgba(23,26,31,0.1);
    max-width: 380px;
    margin-left: auto;
  }
  .card-chrome {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hair);
  }
  .card-chrome .dots { display: inline-flex; gap: 5px; }
  .card-chrome .dots i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--hair-strong);
    display: inline-block;
  }
  .card-chrome .clabel {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .card-chrome .example-tag {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--hair);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
  }
  .gauge-wrap { display: flex; flex-direction: column; align-items: center; }
  .gauge-svg { width: 100%; max-width: 260px; height: auto; display: block; }
  .gauge-figure { margin-top: -3.3rem; text-align: center; position: relative; z-index: 2; }
  .gauge-figure .score {
    font-family: var(--serif);
    font-size: clamp(3.4rem, 8vw, 4.2rem);
    font-weight: 600; line-height: 1; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .gauge-figure .of { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); font-weight: 400; }
  .band-pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin-top: 0.6rem; padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(252, 188, 50, 0.16);
    border: 1px solid rgba(252, 188, 50, 0.5);
    font-size: 0.84rem; font-weight: 600;
  }
  .band-pill .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
  .card-rows { margin-top: 1.3rem; }
  .card-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--hair);
    font-size: 0.88rem;
  }
  .card-row .k { color: var(--muted); font-weight: 500; }
  .card-row .v { font-weight: 600; text-align: right; }
  .card-row .v.trend { color: var(--green-ink); }
  .card-caption {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
  }

  /* floating stat card (trend chart) */
  .float-card {
    position: absolute;
    z-index: 3;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 24px 48px -28px rgba(23,26,31,0.3), 0 2px 8px -4px rgba(23,26,31,0.1);
  }
  .float-trend {
    left: -6%;
    bottom: 8%;
    width: 210px;
  }
  .float-trend .ft-top {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    margin-bottom: 0.5rem;
  }
  .float-trend .ft-label {
    font-family: var(--mono);
    font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted);
  }
  .float-trend .ft-delta {
    font-family: var(--serif);
    font-weight: 600; font-size: 1.15rem; color: var(--teal-ink);
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  }
  .float-trend svg { width: 100%; height: 52px; display: block; }
  .float-trend .ft-cap {
    margin-top: 0.4rem;
    font-family: var(--mono);
    font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--muted);
  }

  .float-live {
    top: -4%;
    left: 2%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--ink);
  }
  .live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal);
    position: relative;
    flex: none;
    box-shadow: 0 0 0 0 rgba(16,191,204,0.6);
    animation: pulse 2.2s var(--ease) infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,191,204,0.55); }
    70% { box-shadow: 0 0 0 8px rgba(16,191,204,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,191,204,0); }
  }
  @media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

  /* ---------- Engines strip ---------- */
  .engines {
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
    background: var(--surface-2);
  }
  .engines-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem clamp(1.5rem, 4vw, 3rem);
  }
  .engines-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    flex: none;
    margin-right: 0.25rem;
  }
  .engines-list {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 1rem clamp(1.5rem, 4vw, 3rem);
  }
  .engine {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    opacity: 0.82;
  }

  /* ---------- Editorial stat band ---------- */
  .statband { border-bottom: 1px solid var(--hair); }
  .statband-head {
    max-width: none;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
  .statband-intro { max-width: 34ch; }
  .statband-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1.3rem;
    max-width: 22ch;
  }
  .statband-head .lead { max-width: 42ch; }
  .statband-src {
    margin-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  /* LLM usage line chart (right of the stakes headline) */
  .statband-chart {
    background: transparent;
    border: none;
    padding: 0;
  }
  .sbc-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
  }
  .sbc-svg { width: 100%; height: auto; display: block; }
  .sbc-axis text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
  .sbc-val text { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
  .sbc-src {
    margin-top: 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  @media (max-width: 860px) {
    .statband-head { grid-template-columns: 1fr; gap: 2rem; }
    .statband-intro { max-width: 42ch; }
  }
  .statband-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .stat-item { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
  .stat-item .fig {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 600; line-height: 0.95; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .stat-item.scale .fig { font-size: clamp(2rem, 4vw, 3.1rem); }
  .stat-item .cap {
    margin-top: 0.7rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 16ch;
  }

  /* ---------- Thesis band (navy) ---------- */
  .thesis { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
  .thesis .terrain-echo {
    position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  }
  .thesis .terrain-echo svg { width: 100%; height: 100%; }
  .thesis .wrap { position: relative; z-index: 1; }
  .thesis .eyebrow { color: rgba(255,255,255,0.62); }
  .thesis h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
    line-height: 1.06;
    max-width: 20ch;
    margin-bottom: 1.6rem;
  }
  .thesis h2 .hl { color: var(--gold); font-style: italic; }
  .thesis .lead { color: rgba(255,255,255,0.74); max-width: 56ch; }

  /* ---------- Section head ---------- */
  .section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .section-head .marker { margin-bottom: 1.4rem; }
  .section-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1.3rem;
    max-width: 20ch;
  }
  .section-head .lead { max-width: 58ch; }

  /* ---------- Rating dashboard panels ---------- */
  .panels {
    display: grid;
    grid-template-columns: 0.95fr 1.35fr 0.95fr;
    gap: 1.5rem;
  }
  .panel {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 50px -34px rgba(23,26,31,0.24);
    overflow: hidden;
  }
  .panel-chrome {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--hair);
    background: var(--surface-2);
  }
  .panel-chrome .dots { display: inline-flex; gap: 5px; }
  .panel-chrome .dots i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--hair-strong);
    display: inline-block;
  }
  .panel-chrome .clabel {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .panel-chrome .clabel .cnum { color: var(--gold); }
  .panel-body { padding: 1.7rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
  .panel .p-caption {
    margin-top: auto;
    padding-top: 1.3rem;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    border-top: 1px solid var(--hair);
  }

  /* panel 1 gauge */
  .mini-gauge { display: flex; flex-direction: column; align-items: center; }
  .mini-gauge svg { width: 100%; max-width: 220px; height: auto; }
  .mini-figure { margin-top: -3rem; text-align: center; }
  .mini-figure .score {
    font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: 1;
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  }
  .mini-figure .of { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }
  .mini-band {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin: 0.5rem auto 0;
    padding: 0.32rem 0.8rem; border-radius: 999px;
    background: rgba(252,188,50,0.16); border: 1px solid rgba(252,188,50,0.5);
    font-size: 0.78rem; font-weight: 600;
  }
  .mini-band .swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
  .mini-rows { width: 100%; margin-top: 1.1rem; }
  .mini-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 0.6rem 0; font-size: 0.85rem; border-top: 1px solid var(--hair);
  }
  .mini-row .k { color: var(--muted); }
  .mini-row .v { font-weight: 600; }
  .mini-row .v.trend { color: var(--green-ink); }
  .mini-row .v .mono { font-size: 0.82rem; }
  .spark { margin-top: 1rem; }
  .spark svg { width: 100%; height: 34px; display: block; }
  .spark-cap {
    margin-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--muted);
  }

  /* panel 2 gate PIPELINE */
  .pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .pnode {
    display: grid;
    grid-template-columns: 2.4rem 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
  }
  /* connector line between nodes */
  .pnode:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    bottom: -50%;
    width: 2px;
    background: var(--hair);
    transform: translateX(-1px);
  }
  .pdot {
    position: relative;
    z-index: 1;
    width: 2.4rem;
    display: flex;
    justify-content: center;
  }
  .pdot i {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--teal);
    display: block;
    box-sizing: border-box;
  }
  .pnode.mid .pdot i { border-color: var(--gold); }
  .pnode.alert .pdot i { border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 4px rgba(231,105,78,0.14); }
  .pnode.strong .pdot i { background: var(--teal); }
  .pname {
    font-size: 0.88rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.45rem;
    min-width: 0;
  }
  .pname .alert-tag {
    font-family: var(--mono);
    font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase;
    font-weight: 500; color: var(--coral-ink);
    border: 1px solid rgba(231,105,78,0.5); border-radius: 999px;
    padding: 0.08rem 0.42rem;
  }
  .pval {
    font-family: var(--mono);
    font-size: 0.82rem; font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .pnode.strong .pval { color: var(--teal-ink); }
  .pnode.alert .pval { color: var(--coral-ink); }
  .bottleneck-note {
    margin-top: 1.4rem;
    display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--hair-strong);
    font-family: var(--mono);
    font-size: 0.78rem;
  }
  .bottleneck-note .bn-k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; }
  .bottleneck-note .bn-v { font-weight: 500; }
  .bottleneck-note .bn-v.coral { color: var(--coral-ink); }
  .bottleneck-note .bn-v.up { color: var(--teal-ink); }

  /* panel 3 bands ladder */
  .bands { display: flex; flex-direction: column; gap: 0.5rem; }
  .band {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--hair);
    border-radius: 12px;
    background: var(--surface-2);
  }
  .band .bname { font-size: 0.88rem; font-weight: 600; }
  .band .brange {
    font-family: var(--mono);
    font-size: 0.72rem; color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .band.top { background: rgba(252,188,50,0.14); border-color: rgba(252,188,50,0.55); }
  .band.bottom { background: rgba(231,105,78,0.1); border-color: rgba(231,105,78,0.45); }
  .band .bname .mini-alert {
    font-family: var(--mono);
    font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
    color: var(--coral-ink); margin-left: 0.4rem;
  }

  /* ---------- How it works ---------- */
  .hiw-copy { max-width: 58ch; margin-bottom: 2.5rem; color: var(--muted); font-size: 1.05rem; }

  /* Report legend: numbered rows keyed into the annotated sample report above.
     Gold serif numerals echo the governance ledger + report annotation markers. */
  .report-legend {
    list-style: none;
    /* Left-anchor the tour list to the report's left edge. The report is an
       860px centered box in the same .wrap, so this margin-left reproduces the
       report's left offset; the narrower max-width leaves whitespace on the
       right. Clamps to flush-left below 860px (mobile). */
    margin: clamp(2rem, 4vw, 3rem) auto 0 max(0px, calc((100% - 860px) / 2));
    padding: 0;
    max-width: 680px;
  }
  .report-legend li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: baseline;
    padding: clamp(1rem, 2.5vw, 1.4rem) 0;
    border-top: 1px solid var(--hair);
  }
  .report-legend li:last-child { border-bottom: 1px solid var(--hair); }
  .report-legend__num {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .report-legend p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
  .report-legend strong { color: var(--ink); font-weight: 700; }

  .hiw-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; align-items: center; }


  /* ---------- Solutions / Governance grid ---------- */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .item-card {
    border: 1px solid var(--hair);
    border-radius: 16px;
    padding: 1.8rem;
    background: var(--surface);
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
  }
  .item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -26px rgba(23,26,31,0.32);
    border-color: var(--hair-strong);
  }
  @media (prefers-reduced-motion: reduce) { .item-card:hover { transform: none; } }
  .item-card .iidx {
    font-family: var(--mono);
    font-size: 0.8rem; font-weight: 500; color: var(--gold);
    font-variant-numeric: tabular-nums;
    display: block; margin-bottom: 1rem;
  }
  .item-card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
  .item-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
  .item-card .card-link { margin-top: 1rem; font-size: 0.9rem; }
  .grid-footer-link { margin-top: 2.5rem; font-size: 1rem; }

  /* ---------- Governance ledger ----------
     Editorial numbered list. A deliberate counterpoint to the Solutions card
     grid directly above it, so the two "why" sections do not read as twin card
     walls. Oversized serif gold numerals echo the How-it-works steps, giving
     the site one consistent grammar: card grids for sets of options, numbered
     ledgers for sequences and criteria. */
  .ledger { list-style: none; margin: 0; padding: 0; }
  .ledger-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(11rem, 0.9fr) minmax(0, 1.4fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: baseline;
    padding: clamp(1.5rem, 3vw, 2.1rem) 0;
    border-top: 1px solid var(--hair);
  }
  .ledger-row:last-child { border-bottom: 1px solid var(--hair); }
  .ledger-num {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .ledger-title {
    font-size: clamp(1.15rem, 1.9vw, 1.4rem);
    line-height: 1.15;
  }
  .ledger-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 54ch;
  }
  .ledger-body p { margin: 0; }
  .ledger-body .link-underline { font-size: 0.9rem; }
  @media (max-width: 680px) {
    .ledger-row {
      grid-template-columns: 2.75rem 1fr;
      row-gap: 0.55rem;
    }
    .ledger-title, .ledger-body { grid-column: 2; }
  }

  /* Pricing ladder styles moved to bureau-theme.css (shared by / and /pricing
     via src/components/PricingLadder.astro). */

  /* ---------- Final CTA (navy) ---------- */
  .final-cta { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
  .final-cta .terrain-echo { position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none; }
  .final-cta .terrain-echo svg { width: 100%; height: 100%; }
  .final-cta .wrap { position: relative; z-index: 1; }
  .final-cta h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
    max-width: 20ch;
    margin: 0 auto 1.4rem;
  }
  .final-cta h2 .hl { color: var(--gold); font-style: italic; }
  .final-cta .lead {
    color: rgba(255,255,255,0.74);
    margin: 0 auto 2.4rem;
    max-width: 46ch;
    text-align: center;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    border-top: 1px solid var(--hair);
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: 2.5rem;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }
  .footer-brand .fbrand-name {
    font-family: var(--serif);
    font-size: 1.3rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin-bottom: 1rem;
  }
  .footer-brand p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; max-width: 40ch; }
  .footer-col h4 {
    font-family: var(--sans);
    font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--muted);
    margin-bottom: 1.1rem;
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  .footer-col a { text-decoration: none; font-size: 0.95rem; color: var(--ink); }
  .footer-col a:hover { color: var(--muted); }
  .footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem 2rem; flex-wrap: wrap;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hair);
    font-size: 0.85rem; color: var(--muted);
  }
  .footer-bottom .copy { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.01em; }
  .footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .footer-legal a { text-decoration: none; color: var(--muted); }
  .footer-legal a:hover { color: var(--ink); }

  /* ---------- Direction badge ---------- */
  .dir-badge {
    position: fixed;
    right: 14px; bottom: 14px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 20px -10px rgba(0,0,0,0.5);
    pointer-events: none;
  }
  .dir-badge .tick { color: var(--gold); }

  /* ---------- Scroll reveal + draw-in ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  .draw {
    stroke-dasharray: var(--len, 400);
    stroke-dashoffset: var(--len, 400);
    transition: stroke-dashoffset 1.2s var(--ease);
  }
  .draw.is-drawn { stroke-dashoffset: 0; }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .draw { stroke-dashoffset: 0; transition: none; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1024px) {
    .panels { grid-template-columns: 1fr; }
  }
  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero .lead { max-width: 56ch; }
    .terrain-bg { top: auto; right: -20%; bottom: -10%; width: 90vw; height: 70%; opacity: 0.55; }
    .hero-visual { min-height: 0; margin-top: 3rem; }
    .report-card { margin: 0 auto; }
    .float-trend { left: 0; bottom: -3%; }
    .float-live { left: auto; right: 2%; top: -3%; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .statband-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 780px) {
    .primary-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
  }
  @media (max-width: 600px) {
    .hero-visual { margin-top: 4.5rem; }
    .float-card { position: static; width: auto; margin-top: 1rem; }
    .float-trend { max-width: 260px; margin-left: auto; margin-right: auto; }
    .float-live { display: none; }
    .capture { flex-direction: column; }
    .capture .field { padding: 0.85rem 1rem 0.35rem; }
    .capture .btn { width: 100%; }
    .card-grid { grid-template-columns: 1fr; }
    .statband-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .hero-ctas .btn { width: 100%; }
  }

  /* ---------- Report card loading skeleton (shimmer demo) ---------- */
  .bone {
    position: relative; overflow: hidden; display: block;
    background: rgba(23, 26, 31, 0.09);
    border-radius: 6px;
  }
  .bone::after {
    content: ""; position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: boneShimmer 1.25s ease-in-out infinite;
  }
  @keyframes boneShimmer { to { transform: translateX(100%); } }

  .card-skeleton {
    position: absolute; inset: 0; z-index: 5;
    background: var(--surface);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    display: flex; flex-direction: column;
    animation: skelHide 1.7s ease-in forwards;
  }
  @keyframes skelHide {
    0%, 72% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
  }
  .skel-chrome {
    display: flex; align-items: center; gap: 0.6rem;
    padding-bottom: 0.9rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--hair);
  }
  .skel-chrome .b-label { width: 104px; height: 12px; }
  .skel-chrome .b-tag { width: 84px; height: 18px; border-radius: 999px; margin-left: auto; }
  .skel-gauge { align-self: center; width: 130px; height: 130px; border-radius: 50%; margin: 0.4rem 0; }
  .skel-score { align-self: center; width: 74px; height: 20px; margin-bottom: 0.9rem; }
  .skel-pill { align-self: center; width: 152px; height: 30px; border-radius: 999px; margin-bottom: 1.2rem; }
  .skel-rows { display: flex; flex-direction: column; }
  .skel-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 0; border-top: 1px solid var(--hair);
  }
  .skel-row .b-k { width: 42px; height: 12px; }
  .skel-row .b-v { width: 150px; height: 12px; }
  .skel-row .b-v2 { width: 120px; }
  .skel-cap { align-self: center; width: 96px; height: 11px; margin-top: 0.9rem; }
  @media (prefers-reduced-motion: reduce) {
    .card-skeleton { display: none; }
    .bone::after { animation: none; }
  }
  /* official BayPri logos */
  .brand-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; line-height: 1; }
  .rd-logo-light { height: 20px; width: auto; display: block; }
  .rd-foot-logo { height: 15px; width: auto; display: block; }
  .rd-foot-mark { height: 22px; width: auto; display: block; }
  .fbrand-logo { height: 42px; width: auto; display: block; }
  .rd-callout-wide { width: 100%; margin-top: clamp(1.25rem, 3vw, 1.75rem); }
