/* ── FONTS (self-hosted via 8X R2) ───────────── */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/ld/fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/ld/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  src: url('/ld/fonts/poppins-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/ld/fonts/poppins-600-latin.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/ld/fonts/poppins-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── TOKENS ──────────────────────────────────── */
:root {
  /* Canonical 8X palette */
  --red: #BE1E2D; --red-dk: #9E1925; --red-pale: #FBE9EB;
  --ink: #181A22; --graph: #22242D; --slate: #5A5A5A; --sl2: #8A8A8A;
  --fog: #E5E5E5; --cloud: #F1F1F1; --paper: #F4F5F8;
  --white: #fff; --ivory: #F5EFE6; --jade: #2F6B5E; --jade-bright: #0FA968;
  --ds: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dp: 'Poppins', 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sr: 'Instrument Serif', 'Noto Serif SC', ui-serif, Georgia, serif;
  --cj: 'Noto Serif SC', 'Instrument Serif', ui-serif, serif;
  --mn: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --accent: var(--red);
  /* Deep Chinese red for red text on dark surfaces — hue aligned with the brand
     #BE1E2D, lifted to clear WCAG AA (4.7:1 on ink). Less orange than vermillion,
     reads as a saturated neon brand-red rather than coral. */
  --accent-on-dark: #FF2A40;
  /* Crisp 1px halo, zero blur. Multi-direction text-shadow neon-stamps
     the red brand color around the glyph without softening the text. */
  --accent-on-dark-glow:
    0 1px 0 rgba(255, 42, 64, 0.65),
    0 -1px 0 rgba(255, 42, 64, 0.45),
    1px 0 0 rgba(255, 42, 64, 0.55),
    -1px 0 0 rgba(255, 42, 64, 0.55);
}
/* Neon-glow applied only to large decorative red on dark surfaces.
   Skipped on small mono labels — glow on 9–10px text harms legibility. */
.cta-k, .gap-n, .radar-num, .gmodal-num {
  text-shadow: var(--accent-on-dark-glow);
}

/* ── TYPOGRAPHY REFINEMENTS (/impeccable typeset) ───────────────
   Standardize eyebrow tracking, bump light-on-dark leading, cap
   reading widths, switch numeric blocks to tabular figures, and
   align display weights with the canonical 8X system. */

/* Eyebrow micro-labels: one tracking value, one size baseline.
   .12em is the canonical 8X eyebrow; .18em reserved for the rare
   ALL-CAPS micro-banner where wider spacing is the affordance. */
.eye, .hero-tag, .gmodal-eye, .map-src, .chap-n, .chap-l,
.sn, .sd, .sp-dur, .radar-label, .pc-ask {
  letter-spacing: .12em;
}
.radar-hint { letter-spacing: .18em; }
.hero-tag { font-size: 11px; }
.chap-n, .chap-l, .sn, .sd { font-size: 11px; }

/* Display weight per canonical 8X — Poppins 700, not 800.
   Tracking already comes from the existing rules. */
.hero-h1 { font-weight: 700; }

/* Light-on-dark leading bump — per brand.md ("light type reads as
   lighter weight and needs more breathing room"). +0.05–0.07. */
.gaps-h     { line-height: 1.08; }
.gap-q      { line-height: 1.35; }
.gmodal-q   { line-height: 1.28; }
.map-h      { line-height: 1.08; }

/* Reading-width caps. ch units stay correct under fluid type. */
.hero-lede   { max-width: 56ch; letter-spacing: -.005em; }
.gaps-sub    { max-width: 56ch; }
.gap-p       { max-width: 62ch; }
.gmodal-body { max-width: 62ch; }
.chap p      { max-width: 64ch; }

/* Tabular figures for stat blocks. Mono is already tabular, but the
   `tnum` + `lnum` settings normalize Hanken Grotesk numerals too. */
.h-sv, .h-sl, .pc-stat-v, .pc-stat-l, .pc-stat-sub, .pc-period,
.md-stat-v, .md-stat-l, .md-stat-sub, .md-moi-status-v, .md-moi-status-lbl, .md-moi-status-sub,
.cost-big, .cost-big em, .map-src,
.cmp-hd, .cmp-row .ck, .cmp-row .cb, .cmp-row .cg,
.radar-num, .gmodal-num {
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums lining-nums;
}
/* Apply Poppins to all major display headings (8X canonical). */
.hero-h1, .edu-h, .gaps-h, .proc-h, .sp-h, .map-h, .gmodal-q,
.cta-h, .cost-big, .faq-q, .bio-h, .h-display, h1, h2, h3 {
  font-family: var(--dp);
}
/* Resets scoped to #buyer-agency-root so they don't leak into the Webflow nav/footer.
   :where() wrapper keeps specificity at (0,0,0) — same as the original `*` rule —
   so class-based padding/margin (`.w`, `.h-stat`, etc.) still wins. */
:where(#buyer-agency-root, #buyer-agency-root *, #buyer-agency-root *::before, #buyer-agency-root *::after) { box-sizing: border-box; }
:where(#buyer-agency-root *, #buyer-agency-root *::before, #buyer-agency-root *::after) { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(#buyer-agency-root) {
  font-family: var(--ds); background: var(--ink); color: var(--ink);
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga', 'calt';
  text-rendering: optimizeLegibility;
}
:where(#buyer-agency-root) img { display: block; max-width: 100%; }
:where(#buyer-agency-root) a { color: inherit; text-decoration: none; }
:where(#buyer-agency-root) button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Webflow site CSS has a `.hero-content` and `.hero-ctas` class that collide
   with ours. Null out the Webflow-side properties (max-width, glass bg, border,
   abs-positioning) at matching specificity — wrapped in :where() so we don't
   accidentally beat our own breakpoint overrides later in the file. */
:where(#buyer-agency-root) .hero-content {
  max-width: none; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  bottom: auto; left: auto; right: auto; top: auto;
}
:where(#buyer-agency-root) .hero-ctas { margin-top: 0; }

/* ── LAYOUT ──────────────────────────────────── */
.w { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
@media(max-width:1024px) { .w { padding: 0 32px; } }
@media(max-width:640px) { .w { padding: 0 20px; } }

/* ── REVEAL ────────────────────────────────────
   Slide-only animation (no opacity fade). Elements are always opacity:1, so
   the LCP candidate is visible at first paint. PSI Desktop returns NO_LCP
   when the largest element starts at opacity:0 — Lighthouse won't accept it
   as a candidate until it becomes visible. */
@keyframes ba-reveal-up    { from { transform: translateY(40px); } to { transform: none; } }
@keyframes ba-reveal-left  { from { transform: translateX(-40px); } to { transform: none; } }
@keyframes ba-reveal-right { from { transform: translateX(40px); }  to { transform: none; } }
.rv       { animation: ba-reveal-up    .8s var(--ease) both; }
.rv-left  { animation: ba-reveal-left  .8s var(--ease) both; }
.rv-right { animation: ba-reveal-right .8s var(--ease) both; }
.rv.d1 { animation-delay: .05s; }
.rv.d2 { animation-delay: .10s; }
.rv.d3 { animation-delay: .15s; }
.rv.d4 { animation-delay: .20s; }
.rv.d5 { animation-delay: .25s; }
/* Hero content (above-the-fold LCP region): no animation. Lighthouse returns
   NO_LCP if the largest paint candidate is animating position — picker can't
   stabilize on a moving element. Hero h1/p/ctas/stats render statically. */
.hero-content .rv,
.hero-content .rv-left,
.hero-content .rv-right { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-left, .rv-right { animation: none; }
}

/* ── EYEBROW ──────────────────────────────────────
   Canonical 8X section eyebrow: lowercase Hanken Grotesk, wide tracked,
   leading red dot for visual anchor. Mono is reserved for the data
   micro-labels (stat captions, dates) elsewhere on the page. */
.eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ds); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: none;
  color: var(--sl2);
}
.eye::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0; opacity: .6;
}
.eye-r { color: var(--accent); }
.eye-r::before { opacity: 1; }
.eye-w { color: rgba(255,255,255,.7); }
/* Red eyebrow on dark sections: switch to the lifted brand-red token. */
.gaps .eye-r, .bio .eye-r, .cta-sec .eye-r, .map-sec .eye-r, .hero .eye-r {
  color: var(--accent-on-dark);
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-r { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 14px 26px; border-radius: 4px; font-family: var(--ds); font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: background .2s var(--ease), transform .1s; }
.btn-r:hover { background: var(--red-dk); }
.btn-r:active { transform: translateY(1px); }
.btn-g { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,.4); color: #fff; padding: 12px 26px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: all .2s var(--ease); }
.btn-g:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn-gd { border-color: rgba(10,10,10,.25); color: var(--ink); }
.btn-gd:hover { border-color: var(--ink); background: rgba(10,10,10,.04); }

/* ══════════════════════════════════════════════ */
/*  HERO                                          */
/* ══════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  background: var(--ink);
  pointer-events: none;
  /* No fade. Video poster paints at final opacity immediately so Lighthouse
     can lock it as an LCP candidate on first paint. */
  opacity: .55;
}
.hero-bg.loaded { opacity: .55; }
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none; opacity: .5;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 80% 70% at 30% 60%, transparent 0%, rgba(8,8,8,.7) 100%);
}
.hero-frame {
  position: absolute; z-index: 3;
  top: 72px; left: 56px; right: 56px; bottom: 30%;
  border: 2px solid var(--accent);
  border-right: 0; border-bottom: 0;
  pointer-events: none;
  opacity: 0; transition: opacity 1s var(--ease) .6s;
}
.hero-frame::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 18%; height: 18%;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}
.hero-frame.in { opacity: 1; }
.hero-content {
  position: relative; z-index: 4;
  padding: 0 56px 88px 88px; color: #fff;
}
.hero-tag {
  font-family: var(--mn); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
  display: flex; align-items: center; gap: 10px; margin-bottom: 32px;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-h1 {
  font-size: clamp(28px, 4.4vw, 64px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.02; margin-bottom: 24px; color: #fff;
}
.hero-h1 em { font-family: var(--sr); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.hero-lede {
  font-size: clamp(15px,1.6vw,18px); line-height: 1.7;
  color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 80px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  gap: 0;
}
.h-stat {
  padding: 0 40px; border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 5px;
}
.h-stat:first-child { padding-left: 0; border-left: 0; }
.h-sv { font-family: var(--mn); font-size: clamp(26px,3vw,42px); font-weight: 500; letter-spacing: -.04em; color: #fff; line-height: 1; }
.h-sl { font-family: var(--mn); font-size: 9px; color: rgba(255,255,255,.38); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.hero-scroll-hint {
  position: absolute; bottom: 28px; right: 56px; z-index: 4;
  font-family: var(--mn); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
.hero-scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,.15);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity: .3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(.4); } }

/* ══════════════════════════════════════════════ */
/*  SECTION WAVE DIVIDERS                         */
/* ══════════════════════════════════════════════ */
/* Wave SVGs scale via preserveAspectRatio="none". At non-integer scale factors
   the bottom edge can leave a 1px subpixel seam against the next section.
   Pull the SVG down by 1px and the next section up by 1px so they overlap
   safely without visible gap. */
.wave-down { display: block; margin-bottom: -1px; }
.wave-down + section { margin-top: -1px; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════ */
/*  EDUCATION — IVORY                             */
/* ══════════════════════════════════════════════ */
.edu { background: var(--ivory); padding: 120px 0; }
.chap { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 52px; }
.chap-k { font-family: var(--cj); font-size: 68px; color: var(--accent); line-height: 1; font-weight: 600; flex-shrink: 0; }
.chap-meta { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; }
.chap-n { font-family: var(--mn); font-size: 9px; color: var(--sl2); letter-spacing: .16em; text-transform: uppercase; }
.chap-l { font-family: var(--mn); font-size: 11px; color: var(--sl2); letter-spacing: .1em; text-transform: uppercase; }
.chap-inv .chap-n, .chap-inv .chap-l { color: rgba(255,255,255,.3); }
.chap-inv .chap-k { color: var(--accent); }
.edu-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.edu-h { font-size: clamp(34px,4vw,54px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 22px; }
.edu-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.prose p { font-size: 16px; color: var(--slate); line-height: 1.84; }
.prose p + p { margin-top: 14px; }
.pull { margin-top: 30px; padding: 22px 26px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.5); font-family: var(--sr); font-style: italic; font-size: clamp(18px,2vw,22px); line-height: 1.5; color: var(--ink); }
/* Compare table */
.cmp { border: 1px solid rgba(10,10,10,.1); border-radius: 6px; overflow: hidden; }
.cmp-hd {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--ink); color: rgba(255,255,255,.82);
  font-family: var(--mn); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.cmp-hd > span { padding: 14px 18px; }
.cmp-hd span:last-child {
  color: #fff;
  background: var(--accent);
  text-shadow: none;
}
.cmp-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; padding: 14px 18px; border-top: 1px solid rgba(10,10,10,.07); align-items: start; gap: 8px; }
.cmp-row:nth-child(even) { background: rgba(255,255,255,.45); }
.ck { font-size: 13px; font-weight: 600; }
.cb { font-size: 12px; color: var(--sl2); line-height: 1.55; }
.cg { font-size: 12px; font-weight: 500; line-height: 1.55; }

/* ══════════════════════════════════════════════ */
/*  GAPS — DARK                                   */
/* ══════════════════════════════════════════════ */
.gaps { background: var(--graph); padding: 120px 0; position: relative; overflow: hidden; }
/* Vignette over the radar map: z:3 sits above map (z:1), below headline (z:5) and blips (z:10). */
.gaps::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    /* Deep edge vignette — pulls all four sides into pure ink. */
    radial-gradient(ellipse 80% 75% at 50% 55%,
      transparent 20%,
      rgba(0,0,0,0.55) 60%,
      rgba(0,0,0,0.92) 95%,
      #000 100%),
    /* Heavy top-right corner wash for the "Eight signals…" copy. */
    radial-gradient(ellipse 70% 60% at 100% 0%,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.50) 40%,
      transparent 75%),
    /* Top edge band so headline + eyebrow read solid black. */
    linear-gradient(to bottom,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.15) 18%,
      transparent 30%),
    /* Bottom edge band so the section blends cleanly into what follows. */
    linear-gradient(to top,
      rgba(0,0,0,0.55) 0%,
      transparent 22%);
}
/* Tablet + mobile: the radar map is smaller, so the desktop vignette
   eats the visible map detail. Soften every layer so streets/coastline read. */
@media(max-width:1024px) {
  .gaps::after {
    background:
      radial-gradient(ellipse 95% 90% at 50% 55%,
        transparent 45%,
        rgba(0,0,0,0.28) 80%,
        rgba(0,0,0,0.65) 100%),
      radial-gradient(ellipse 60% 50% at 100% 0%,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.25) 45%,
        transparent 80%),
      linear-gradient(to bottom,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.10) 14%,
        transparent 22%),
      linear-gradient(to top,
        rgba(0,0,0,0.35) 0%,
        transparent 18%);
  }
}
@media(max-width:640px) {
  .gaps::after {
    background:
      radial-gradient(ellipse 110% 100% at 50% 55%,
        transparent 55%,
        rgba(0,0,0,0.18) 85%,
        rgba(0,0,0,0.45) 100%),
      linear-gradient(to bottom,
        rgba(0,0,0,0.35) 0%,
        transparent 16%),
      linear-gradient(to top,
        rgba(0,0,0,0.25) 0%,
        transparent 14%);
  }
}
.gaps-hd { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end; margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 5; }
.gaps-h { font-size: clamp(34px,4.5vw,58px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.gaps-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.gaps-sub { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.8; max-width: 460px; }
.gap-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.06); }
.gap-item { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.06); display: grid; grid-template-columns: 56px 1fr; gap: 18px; position: relative; transition: background .3s var(--ease); }
.gap-item:nth-child(odd) { padding-right: 56px; border-right: 1px solid rgba(255,255,255,.06); }
.gap-item:nth-child(even) { padding-left: 56px; }
.gap-item:nth-last-child(-n+2) { border-bottom: 0; }
.gap-n { font-family: var(--sr); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; color: var(--accent-on-dark); opacity: .85; line-height: 1; padding-top: 2px; letter-spacing: -.02em; text-transform: none; transition: opacity .3s var(--ease); }
.gap-q { font-size: clamp(15px,1.6vw,18px); font-weight: 700; letter-spacing: -.018em; line-height: 1.3; color: #fff; margin-bottom: 12px; position: relative; display: inline-block; }
.gap-q::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
@media(hover: hover) {
  .gap-item:hover .gap-n { opacity: 1; }
  .gap-item:hover .gap-q::after { transform: scaleX(.5); }
}
.gap-p { font-size: 14px; color: rgba(255,255,255,.58); line-height: 1.82; }
.gap-p-short { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; display: none; }
.gap-hook { display: block; margin-top: 18px; padding: 12px 14px; background: rgba(190,30,45,.12); border: 1px solid rgba(255,110,120,.22); border-radius: 4px; font-family: var(--ds); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.94); line-height: 1.55; }
.gap-toggle { display: none; margin-top: 16px; font-family: var(--mn); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); background: none; border: 0; padding: 0; align-items: center; gap: 8px; }
.gap-toggle .gap-chev { display: inline-block; transition: transform .25s var(--ease); }

/* ── TOOLTIP ─────────────────────────────────── */
.tt { position: relative; border-bottom: 1px dotted rgba(255,255,255,.4); cursor: help; color: rgba(255,255,255,.78); }
.tt::after {
  content: attr(data-tt);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #050505; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 2px solid var(--accent);
  font-family: var(--ds); font-size: 12.5px; font-weight: 400; line-height: 1.6;
  letter-spacing: 0; text-transform: none;
  padding: 14px 16px 13px; border-radius: 3px;
  width: max-content; max-width: 320px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 60; white-space: normal;
  box-shadow: 0 12px 36px rgba(0,0,0,.7);
}
.tt:hover::after, .tt:focus::after, .tt.tt-open::after {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .tt::after { left: 0; transform: translateY(4px); max-width: calc(100vw - 56px); }
  .tt:hover::after, .tt:focus::after, .tt.tt-open::after { transform: translateY(0); }
}

/* ── RADAR VIZ ───────────────────────────────── */
.radar-wrap { position: relative; height: 620px; margin-top: 24px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 40px; }
.radar-bg { position: absolute; top: -280px; right: -200px; left: auto; bottom: auto; transform: none; width: 1200px; height: 1200px; pointer-events: none; z-index: 1; }
.radar-map {
  position: absolute; inset: 0;
  border-radius: 50%;
  background-image: url('/ld/buyer-agency/assets/map-victoria-2560.png');
  background-size: cover;
  background-position: center center;
  opacity: .68;
  filter: grayscale(6%) brightness(1) contrast(1.1);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 66%, rgba(0,0,0,.55) 90%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 66%, rgba(0,0,0,.55) 90%, transparent 100%);
}
.radar-map::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 56%, rgba(17,19,24,.22) 86%, rgba(17,19,24,.7) 100%);
}
.radar-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(200, 16, 46, calc(.20 - var(--s) * .026)); width: calc(var(--s) * 130px); height: calc(var(--s) * 130px); z-index: 1; }
.radar-sweep { position: absolute; bottom: 50%; right: 50%; width: 440px; height: 6px; transform-origin: right center; overflow: hidden; pointer-events: none; animation: radar-sweep 9s linear infinite; z-index: 2; }
.radar-sweep::after { content: ''; display: block; width: 100%; height: 2px; margin-top: 2px; background: linear-gradient(to left, transparent 0%, rgba(200, 16, 46, .55) 55%, rgba(200, 16, 46, .95) 88%, var(--accent) 100%); box-shadow: 0 0 8px rgba(200, 16, 46, .55), 0 0 16px rgba(200, 16, 46, .25); }
@keyframes radar-sweep { from { transform: rotate(-180deg); } to { transform: rotate(180deg); } }
.radar-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(200,16,46,.7), 0 0 32px rgba(200,16,46,.3); animation: radar-pulse 2.6s ease-in-out infinite; z-index: 3; }
@keyframes radar-pulse { 0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.6); } }
.radar-grid {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 48px 0;
  width: 100%; max-width: 820px;
  padding-top: 10px;
  align-items: start;
}
@media (min-width: 769px) {
  .radar-grid > .radar-blip:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; justify-self: start; }
  .radar-grid > .radar-blip:nth-child(2) { grid-column: 2 / span 2; grid-row: 2; justify-self: center; }
  .radar-grid > .radar-blip:nth-child(3) { grid-column: 3 / span 2; grid-row: 1; justify-self: center; }
  .radar-grid > .radar-blip:nth-child(4) { grid-column: 1 / span 2; grid-row: 3; justify-self: start; }
  .radar-grid > .radar-blip:nth-child(5) { grid-column: 5 / span 2; grid-row: 1; justify-self: end; }
  .radar-grid > .radar-blip:nth-child(6) { grid-column: 4 / span 2; grid-row: 2; justify-self: center; }
  .radar-grid > .radar-blip:nth-child(7) { grid-column: 3 / span 2; grid-row: 3; justify-self: center; }
  .radar-grid > .radar-blip:nth-child(8) { grid-column: 5 / span 2; grid-row: 3; justify-self: end; }
}
.radar-blip { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.radar-wrap.up .radar-blip { opacity: 1; transform: translateY(0); }
.radar-blip:hover { transform: translateY(-4px); }
.radar-icon-box { width: 56px; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(155deg, rgba(40,44,52,.95) 0%, rgba(16,20,26,.95) 100%); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.5); transition: all .3s var(--ease); position: relative; }
.radar-icon-box::after { content: ''; position: absolute; inset: -5px; border-radius: 18px; border: 1px solid rgba(200,16,46,0); transition: border-color .3s var(--ease); pointer-events: none; }
.radar-icon-box svg { width: 24px; height: 24px; color: rgba(255,255,255,.6); transition: color .3s var(--ease); }
.radar-blip:hover .radar-icon-box { border-color: rgba(200,16,46,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(200,16,46,.28); }
.radar-blip:hover .radar-icon-box::after { border-color: rgba(200,16,46,.18); }
.radar-blip:hover .radar-icon-box svg { color: var(--accent); }
.radar-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.radar-num {
  font-family: var(--sr); font-style: italic; font-size: 17px; font-weight: 500;
  color: var(--accent-on-dark); opacity: 1; line-height: 1;
  /* text-shadow inherited from the shared --accent-on-dark-glow rule above */
}
.radar-label { font-family: var(--mn); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); text-align: center; line-height: 1.4; max-width: 110px; }
.radar-horizon { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,.14) 30%, rgba(255,255,255,.14) 70%, transparent); z-index: 5; }
.radar-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mn); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.3); z-index: 6; pointer-events: none; }

@media (max-width: 1024px) {
  .radar-wrap { height: 580px; }
  /* Circle shifted slightly left-of-section-center so the radar pulse
     lands in the clear gap between the 01/02 blips instead of overlapping
     the centered 03 GST · PTT blip. */
  .radar-bg {
    width: 820px; height: 820px;
    top: -280px;
    left: 38%; right: auto; bottom: auto;
    transform: translateX(-50%);
  }
  .radar-map {
    background-image: url('/ld/buyer-agency/assets/map-victoria-768.png');
    background-position: 75% 72%;
  }
  .radar-grid { gap: 40px 0; max-width: 720px; }
  .radar-icon-box { width: 52px; height: 52px; }
}
@media (max-width: 768px) {
  /* Mobile: LARGE radar bleeds in from upper-right behind header,
     single-column tappable list below */
  .radar-wrap {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 0;
    overflow: visible;
    display: block;
  }
  /* Mobile: radar centred horizontally and shifted down so the bottom
     of the circle (downtown / southern peninsula) sits at viewport centre,
     not cut off at the section's lower edge. */
  .radar-bg {
    position: absolute;
    width: 600px; height: 600px;
    top: -360px;
    left: 50%; right: auto;
    bottom: auto;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1;
    opacity: 1;
  }
  .radar-map {
    background-image: url('/ld/buyer-agency/assets/map-victoria-576.png');
    background-size: 170% auto;
    background-position: 75% 88%;
    opacity: .72;
    filter: grayscale(8%) brightness(.95) contrast(1.08);
    -webkit-mask-image: radial-gradient(circle at center, #000 68%, rgba(0,0,0,.6) 90%, transparent 100%);
    mask-image: radial-gradient(circle at center, #000 68%, rgba(0,0,0,.6) 90%, transparent 100%);
  }
  .radar-map::after {
    background: radial-gradient(circle at center, transparent 58%, rgba(17,19,24,.22) 88%, rgba(17,19,24,.72) 100%);
  }
  .radar-ring {
    width: calc(var(--s) * 78px);
    height: calc(var(--s) * 78px);
    border-color: rgba(200, 16, 46, calc(.22 - var(--s) * .028));
  }
  .radar-sweep { width: 240px; height: 5px; }
  .radar-sweep::after { height: 1.5px; margin-top: 1.5px; }
  .radar-center { width: 6px; height: 6px; box-shadow: 0 0 10px rgba(200,16,46,.75), 0 0 22px rgba(200,16,46,.35); }

  /* Single-column tappable list, pushed below the radar's visual footprint */
  .radar-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 8px;
    max-width: 100%;
    padding-top: 0;
    margin-top: 60px;
  }
  .radar-grid > .radar-blip:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }
  .radar-blip {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 44px 14px 16px;
    background: rgba(18, 22, 28, .55);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 70px;
    text-align: left;
    position: relative;
    transition: background .2s var(--ease), border-color .2s var(--ease);
  }
  .radar-blip::after {
    content: '';
    position: absolute;
    right: 18px; top: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid rgba(255, 255, 255, .35);
    border-top: 1.5px solid rgba(255, 255, 255, .35);
    transform: translateY(-50%) rotate(45deg);
    transition: border-color .2s var(--ease);
  }
  .radar-blip:hover { transform: none; }
  .radar-blip:active { background: rgba(200, 16, 46, .12); border-color: rgba(200, 16, 46, .35); }
  .radar-blip:active::after { border-right-color: var(--accent); border-top-color: var(--accent); }
  .radar-icon-box { width: 42px; height: 42px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 2px 8px rgba(0,0,0,.4); flex-shrink: 0; }
  .radar-icon-box svg { width: 20px; height: 20px; color: rgba(255,255,255,.72); }
  .radar-icon-box::after { display: none; }
  .radar-blip:active .radar-icon-box svg { color: var(--accent); }
  .radar-meta { flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
  .radar-num { font-size: 13px; opacity: .85; flex-shrink: 0; }
  .radar-label { font-size: 10.5px; letter-spacing: .14em; max-width: 100%; text-align: left; line-height: 1.3; color: rgba(255,255,255,.82); white-space: normal; }
  .radar-horizon, .radar-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-center { animation: none; }
  .radar-sweep { opacity: .5; transform: rotate(40deg); }
}

/* ── GAP MODAL ───────────────────────────────── */
.gmodal { position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center; padding: 28px; }
.gmodal[aria-hidden="false"] { display: flex; }
.gmodal-bd { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: gm-fade .25s var(--ease); cursor: pointer; }
@keyframes gm-fade { from { opacity: 0; } to { opacity: 1; } }
.gmodal-card { position: relative; z-index: 1; background: #0d0f13; color: #fff; border: 1px solid rgba(255,255,255,.08); border-top: 2px solid var(--accent); border-radius: 4px; padding: 44px 48px 36px; max-width: 660px; width: 100%; max-height: calc(100vh - 60px); overflow-y: auto; overflow-x: hidden; animation: gm-in .35s var(--ease); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
@keyframes gm-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.gmodal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; font-size: 22px; line-height: 1; color: rgba(255,255,255,.55); background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: color .2s var(--ease), background .2s var(--ease); }
.gmodal-x:hover { color: var(--accent-on-dark); background: rgba(255,255,255,.04); }
.gmodal-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.gmodal-num { font-family: var(--sr); font-style: italic; font-size: 36px; color: var(--accent-on-dark); opacity: 1; line-height: 1; }
.gmodal-eye { font-family: var(--mn); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); align-self: center; }
.gmodal-q { font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; color: #fff; margin-bottom: 20px; }
.gmodal-body { font-size: 15px; line-height: 1.78; color: rgba(255,255,255,.82); }
.gmodal-body p { margin: 0; }
.gmodal-hook { margin-top: 22px; padding: 14px 16px; background: rgba(190,30,45,.13); border: 1px solid rgba(255,110,120,.24); border-radius: 4px; font-family: var(--ds); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.96); line-height: 1.55; }
.gap-templates { display: none !important; }
@media (max-width: 640px) {
  .gmodal { padding: 16px; }
  .gmodal-card { padding: 36px 22px 26px; }
  .gmodal-q { font-size: 21px; }
  .gmodal-body { font-size: 14.5px; line-height: 1.7; }
}

/* ══════════════════════════════════════════════ */
/*  PROCESS — PAPER                               */
/* ══════════════════════════════════════════════ */
.process { background: var(--paper); padding: 120px 0; }
.proc-hd { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end; margin-bottom: 52px; padding-bottom: 36px; border-bottom: 1px solid var(--fog); }
.proc-h { font-size: clamp(36px,4.8vw,60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.proc-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.proc-sub { font-size: 16px; color: var(--slate); line-height: 1.75; max-width: 440px; }
/* Stepper */
.stepper { display: grid; grid-template-columns: 220px 1fr; min-height: 440px; }
.step-rail { border-right: 1px solid var(--fog); }
.step-btn { display: flex; flex-direction: column; gap: 4px; width: 100%; background: none; border: 0; border-left: 2px solid transparent; padding: 16px 20px 16px 18px; cursor: pointer; text-align: left; transition: all .16s ease; }
.step-btn:hover { background: rgba(10,10,10,.03); }
.step-btn.on { border-left-color: var(--accent); background: rgba(200,16,46,.03); }
.sn { font-family: var(--mn); font-size: 9px; letter-spacing: .14em; color: var(--sl2); }
.step-btn.on .sn { color: var(--accent); }
.st { font-size: 14px; font-weight: 600; color: var(--sl2); line-height: 1.25; }
.step-btn.on .st { color: var(--ink); }
.sd { font-family: var(--mn); font-size: 9px; color: var(--sl2); }
.sp { display: none; padding: 8px 0 0 52px; animation: fuUp .24s var(--ease); }
.sp.on { display: block; }
@keyframes fuUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sp-dur { font-family: var(--mn); font-size: 10px; color: var(--sl2); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.sp-h { font-size: clamp(24px,2.8vw,38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.sp-p { font-size: 15px; color: var(--slate); line-height: 1.78; margin-bottom: 22px; max-width: 580px; }
.sp-p strong { color: var(--ink); font-weight: 700; }
.sp-dels { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.sp-dels li { font-size: 13px; color: var(--graph); display: flex; gap: 9px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--fog); }
.sp-dels li::before { content: '→'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.sp-cta { margin-top: 28px; }

/* ══════════════════════════════════════════════ */
/*  MAP SECTION — DARK                            */
/* ══════════════════════════════════════════════ */
.map-sec { background: #0A0C10; padding: 80px 0 100px; position: relative; overflow: hidden; }
.map-sec-hd { margin-bottom: 36px; }

/* ── Overlay variant: map fills the section as a hero canvas ──
   Eyebrow, H1, source line, and property-type toggle float over the
   top-left of the map. Detail panel still flows below. */
.map-sec--overlay { padding: 0 0 100px; }
.map-sec--overlay .map-wrap { height: 100vh; }
@media (max-width: 1024px) { .map-sec--overlay .map-wrap { height: 92vh; } }
@media (max-width: 768px)  { .map-sec--overlay .map-wrap { height: 78vh; } }
/* Top-down vignette so the overlaid header reads clearly on any basemap content */
.map-sec--overlay .map-vignette {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56vh;
  z-index: 4;
  background: linear-gradient(180deg,
    rgba(8,8,8,.78) 0%,
    rgba(8,8,8,.55) 28%,
    rgba(8,8,8,.18) 70%,
    transparent 100%);
  pointer-events: none;
}
/* Overlay panel sits absolutely over the map; pointer-events only on the toggle.
   The .w wrapper and the headline/source text are pointer-events:none so map pin
   hovers/clicks pass through them to the markers below. Only the toggle needs
   pointer-events: auto since it's the one interactive element in the overlay. */
.map-sec--overlay .map-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  padding-top: 80px;
  pointer-events: none;
}
.map-sec--overlay .map-overlay > .w { pointer-events: none; }
.map-sec--overlay .map-sec-hd { margin-bottom: 26px; pointer-events: none; }
.map-sec--overlay .map-toggle { margin-bottom: 0; pointer-events: auto; width: max-content; }
/* Detail panel: sits below the hero map, with a generous gap */
.map-sec--overlay .map-detail { margin-top: 56px; }
@media (max-width: 768px) {
  .map-sec--overlay .map-overlay { padding-top: 56px; }
  .map-sec--overlay .map-detail { margin-top: 36px; }
}
.map-h { font-size: clamp(36px,4.8vw,62px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; color: #fff; margin: 12px 0 0; }
.map-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.map-src { font-family: var(--mn); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.42); margin-top: 18px; }
/* Toggle */
.map-toggle {
  display: inline-flex; margin-bottom: 40px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px; padding: 4px; gap: 2px;
}
.tog-btn {
  background: none; border: 0; border-radius: 99px;
  padding: 9px 22px; font-family: var(--mn); font-size: 11px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42); cursor: pointer;
  transition: all .22s var(--ease); white-space: nowrap;
}
.tog-btn.on { background: #fff; color: var(--ink); }

/* Fullscreen button — top-right of the map area */
.map-fs-btn {
  position: absolute; top: 16px; right: 16px; z-index: 7;
  width: 40px; height: 40px; padding: 0;
  border-radius: 8px;
  background: rgba(13, 17, 24, .78);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.map-fs-btn:hover { background: rgba(13,17,24,.92); border-color: var(--accent); color: var(--accent); }
.map-fs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.map-fs-icon-close { display: none; }
.map-wrap.is-fs-css ~ .map-fs-btn .map-fs-icon-open { display: none; }
.map-wrap.is-fs-css ~ .map-fs-btn .map-fs-icon-close { display: block; }
/* CSS fullscreen fallback (iOS Safari etc.) */
.map-wrap.is-fs-css {
  position: fixed !important; inset: 0 !important;
  width: 100vw !important; height: 100vh !important; height: 100svh !important;
  margin: 0 !important; border-radius: 0 !important;
  z-index: 9998 !important;
}
.map-wrap.is-fs-css ~ .map-fs-btn {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
}

/* Mobile mount: toggle drops out of the overlay and sits in normal flow
   below the map, so it never sits on top of map markers. */
.map-toggle-mount-mobile { display: none; }
@media (max-width: 768px) {
  .map-toggle-mount-mobile {
    display: flex; justify-content: center;
    padding: 20px 24px 4px;
    background: #0A0C10;
  }
  .map-toggle-mount-mobile .map-toggle {
    position: static; margin: 0;
    /* compact for narrow viewports */
    padding: 3px;
  }
  .map-toggle-mount-mobile .tog-btn {
    padding: 8px 16px;
    font-size: 10.5px;
    letter-spacing: .08em;
  }
}
/* Map container */
.map-wrap {
  /* Mobile base (contained card) */
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: #0D1118;
  height: 480px;
  /* overflow:hidden removed — pin cards bleed outside the frame on edge pins */
}
/* Tablet: break out of .w container and span the full viewport width */
@media (min-width: 769px) {
  .map-wrap {
    height: 78vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}
/* Desktop: fuller-section feel — map fills the area below the toggles to near the bottom of the viewport */
@media (min-width: 1024px) {
  .map-wrap { height: 85vh; }
}
/* Override MapLibre's internal overflow:hidden so pin cards can extend beyond the canvas.
   MapLibre adds .maplibregl-map to our own container (same element as .map-wrap),
   so we need a compound selector here, not a descendant selector. */
.map-wrap.maplibregl-map { overflow: visible !important; }
.map-wrap .maplibregl-canvas-container { overflow: visible !important; }
/* Canvas matches container shape: rounded on mobile, edge-to-edge on desktop/tablet */
.map-wrap .maplibregl-canvas { outline: none; border-radius: 12px; }
@media (min-width: 769px) { .map-wrap .maplibregl-canvas { border-radius: 0; } }
.map-wrap .maplibregl-ctrl-attrib { background: rgba(8,8,8,.6) !important; }
.map-wrap .maplibregl-ctrl-attrib, .map-wrap .maplibregl-ctrl-attrib a { color: rgba(255,255,255,.4) !important; font-family: var(--mn); font-size: 9px; letter-spacing: .04em; }
.map-wrap .maplibregl-ctrl-bottom-right { padding: 0 10px 10px 0; }
.map-wrap .maplibregl-ctrl-group { background: rgba(8,8,8,.78) !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: 0 6px 18px rgba(0,0,0,.45) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-wrap .maplibregl-ctrl-group button { background: transparent !important; }
.map-wrap .maplibregl-ctrl-group button:hover { background: rgba(255,255,255,.06) !important; }
.map-wrap .maplibregl-ctrl-group button span { filter: invert(1) brightness(1.1); opacity: .65; }
.map-wrap .maplibregl-ctrl-group button:hover span { opacity: .95; }
.map-wrap .maplibregl-ctrl-scale { background: rgba(8,8,8,.6) !important; border-color: rgba(255,255,255,.3) !important; color: rgba(255,255,255,.6) !important; font-family: var(--mn); font-size: 9px; letter-spacing: .06em; padding: 2px 6px; }
.map-wrap .maplibregl-cooperative-gesture-screen { background: rgba(8,8,8,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); color: rgba(255,255,255,.85); font-family: var(--ds); font-size: 14px; letter-spacing: .01em; }
/* Pins — MapLibre marker container.
   IMPORTANT: do NOT set position:relative here. MapLibre's .maplibregl-marker rule
   sets position:absolute and uses transform to anchor at lng/lat. Overriding
   to position:relative makes markers flow in document order and drift by hundreds of
   pixels. We just constrain width-to-content; position is inherited from MapLibre. */
.pin-wrap {
  cursor: pointer;
  width: max-content;
  will-change: transform;
}
.pin-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.pin-body {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid rgba(255,255,255,.5);
  position: relative; z-index: 2;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(200,16,46,.4);
}
.pin-wrap:hover .pin-body, .pin-wrap.active .pin-body {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(200,16,46,.15);
}
.pin-pulse {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(200,16,46,.35);
  animation: pinPulse 2.4s ease-out infinite;
}
.pin-wrap:nth-child(2n) .pin-pulse { animation-delay: .4s; }
.pin-wrap:nth-child(3n) .pin-pulse { animation-delay: .8s; }
.pin-wrap:nth-child(4n) .pin-pulse { animation-delay: 1.2s; }
@keyframes pinPulse {
  0% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
  100% { transform: translate(-50%,-50%) scale(3.5); opacity: 0; }
}
.pin-label {
  font-family: var(--mn); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
  white-space: nowrap; margin-top: 7px; padding: 1px 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 4px rgba(0,0,0,.6);
  transition: color .2s, transform .2s, background .2s;
  pointer-events: none;
}
.pin-wrap:hover .pin-label, .pin-wrap.active .pin-label {
  color: rgba(255,255,255,.98);
  transform: scale(1.05);
  background: rgba(8,8,8,.55);
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.95);
}
/* Lift the hovered/active marker above its neighbours so the label and card aren't covered */
.pin-wrap:hover, .pin-wrap.active { z-index: 500; }
/* Pin card — bleeds outside the map frame; sits above neighbouring sections */
.pin-card {
  position: absolute; bottom: calc(100% + 18px);
  left: 50%; transform: translateX(-50%) translateY(8px);
  width: 286px;
  background: rgba(8,8,8,.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.14);
  border-top: 2px solid var(--accent);
  border-radius: 10px; padding: 18px 18px 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 1000;
  box-shadow: 0 18px 48px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
}
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pc-pill { font-family: var(--mn); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); padding: 3px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.pc-loading { opacity: .55; font-style: italic; }
.pin-wrap:hover .pin-card, .pin-wrap.active .pin-card {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
/* Flip card to below the pin for pins near the top edge of the map */
.pin-wrap.flip-down .pin-card {
  bottom: auto;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-8px);
}
.pin-wrap.flip-down:hover .pin-card,
.pin-wrap.flip-down.active .pin-card {
  transform: translateX(-50%) translateY(0);
}
.pc-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.015em; line-height: 1.15; }
.pc-tag { font-family: var(--ds); font-style: normal; font-size: 12.5px; font-weight: 400; color: rgba(255,255,255,.74); margin-bottom: 14px; line-height: 1.5; letter-spacing: -.003em; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.pc-stat-v { font-family: var(--mn); font-size: 19px; font-weight: 500; color: #fff; line-height: 1.1; letter-spacing: -.01em; }
.pc-stat-l { font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.74); margin-top: 5px; line-height: 1.3; }
.pc-stat-sub { font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 1px; line-height: 1.3; }
.pc-ask { display: block; margin-top: 12px; font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); font-weight: 500; }
.pc-period { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; font-family: var(--mn); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.pc-yoy-up { color: var(--jade-bright); }
.pc-yoy-dn { color: var(--accent-on-dark); }

/* Live-data indicator: small jade dot with a soft pulsing halo. */
.live-dot {
  position: relative; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 10px rgba(15,169,104,.7);
}
.live-dot::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--jade-bright);
  animation: live-pulse 1.8s cubic-bezier(.22,1,.36,1) infinite;
  pointer-events: none;
}
@keyframes live-pulse {
  0%   { transform: scale(0.7); opacity: .75; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::before { animation: none; opacity: 0; }
}
.md-src {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 22px;
  font-family: var(--mn); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
/* Below map: market detail panel */
.map-detail {
  margin-top: 0; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); border-radius: 0 0 12px 12px;
  border-top: 0; padding: 28px 32px;
  display: none;
}
.map-detail.vis { display: block; }
.md-name { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 4px; }
.md-tag { font-family: var(--sr); font-style: italic; font-size: 15px; color: rgba(255,255,255,.66); margin-bottom: 14px; }
.md-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.md-stat-v { font-family: var(--mn); font-size: 19px; font-weight: 500; color: #fff; line-height: 1.1; letter-spacing: -.01em; }
.md-stat-l { font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 5px; }
.md-stat-sub { font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.58); margin-top: 1px; }
.md-notes { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.md-note { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.6; display: flex; gap: 8px; }
.md-note::before { content: '—'; color: rgba(255,255,255,.42); flex-shrink: 0; }
/* ── MOI BAR (dark-mode version of the market-pulse strip) ──── */
.md-moi { margin-top: 24px; padding: 22px 24px 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.md-moi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 6px; flex-wrap: wrap; }
.md-moi-title { font-family: var(--ds); font-size: 14px; font-weight: 700; color: rgba(255,255,255,.96); line-height: 1.3; letter-spacing: -.005em; }
.md-moi-status { text-align: right; flex-shrink: 0; }
.md-moi-status-lbl { font-family: var(--mn); font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.7); text-transform: uppercase; margin-bottom: 3px; }
.md-moi-status-v { font-family: var(--ds); font-size: 17px; font-weight: 700; color: #fff; line-height: 1.15; }
.md-moi-status-sub { font-size: 11.5px; color: rgba(255,255,255,.68); margin-top: 1px; letter-spacing: .005em; }
.md-moi-desc { font-size: 12px; color: rgba(255,255,255,.74); line-height: 1.6; margin-bottom: 22px; max-width: 64ch; }
.md-moi-bar { position: relative; margin-bottom: 8px; }
.md-moi-track { position: relative; height: 8px; display: grid; grid-template-columns: 4fr 2fr 4fr; gap: 0; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.04); }
.md-moi-zone { height: 100%; transform: scaleX(0); transform-origin: left; }
.md-moi-zone.z-sellers  { background: linear-gradient(90deg, rgba(255,42,64,.85), rgba(255,42,64,.55)); }
.md-moi-zone.z-balanced { background: rgba(255,255,255,.16); }
.md-moi-zone.z-buyers   { background: linear-gradient(90deg, rgba(15,169,104,.45), rgba(15,169,104,.65)); }
@keyframes moi-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.md-moi.in .md-moi-zone.z-sellers  { animation: moi-fill .9s cubic-bezier(.22,1,.36,1) .12s forwards; }
.md-moi.in .md-moi-zone.z-balanced { animation: moi-fill .9s cubic-bezier(.22,1,.36,1) .36s forwards; }
.md-moi.in .md-moi-zone.z-buyers   { animation: moi-fill .9s cubic-bezier(.22,1,.36,1) .60s forwards; }
.md-moi-marker { position: absolute; bottom: 14px; transform: translateX(-50%) translateY(-6px); opacity: 0; pointer-events: none; left: 0; }
@keyframes moi-marker-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.md-moi.in .md-moi-marker { animation: moi-marker-in .5s cubic-bezier(.34,1.56,.64,1) 1.1s forwards; }
.md-moi-tip { position: relative; background: rgba(8,8,8,.95); border: 1px solid rgba(255,255,255,.18); padding: 5px 10px; border-radius: 4px; font-family: var(--mn); font-size: 11px; font-weight: 500; color: #fff; white-space: nowrap; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.md-moi-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid rgba(8,8,8,.95); }
.md-moi-labels { display: grid; grid-template-columns: 4fr 2fr 4fr; gap: 0; margin-top: 10px; font-family: var(--mn); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.md-moi-labels span { line-height: 1; }
.md-moi-labels span:nth-child(1) { text-align: left;  color: var(--accent-on-dark); }
.md-moi-labels span:nth-child(2) { text-align: center; color: rgba(255,255,255,.6); }
.md-moi-labels span:nth-child(3) { text-align: right; color: var(--jade-bright); }
/* Mobile responsive: stack head, tighten padding, shrink type */
@media (max-width: 640px) {
  .md-moi { padding: 18px 16px 16px; margin-top: 20px; border-radius: 8px; }
  .md-moi-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
  .md-moi-title { font-size: 13px; }
  .md-moi-status { text-align: left; }
  .md-moi-status-lbl { margin-bottom: 1px; }
  .md-moi-status-v { font-size: 15px; }
  .md-moi-status-sub { font-size: 10.5px; }
  .md-moi-desc { font-size: 11px; line-height: 1.5; margin-bottom: 16px; }
  .md-moi-bar { padding-bottom: 4px; }
  .md-moi-labels { font-size: 8px; letter-spacing: .1em; margin-top: 8px; }
  .md-moi-tip { font-size: 10px; padding: 4px 7px; }
  .md-moi-marker { bottom: 12px; }
}

/* ══════════════════════════════════════════════ */
/*  BIO — DARK                                    */
/* ══════════════════════════════════════════════ */
.bio {
  position: relative;
  background-color: #000;
  background-image: url('/ld/buyer-agency/assets/dustin-balcony.jpg');
  background-image: image-set(url('/ld/buyer-agency/assets/dustin-balcony.webp') type('image/webp'), url('/ld/buyer-agency/assets/dustin-balcony.jpg') type('image/jpeg'));
  background-repeat: no-repeat;
  background-size: cover; background-position: 22% center;
  padding: 140px 0;
  overflow: hidden;
}
.bio::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* Edge vignette + heavy left-column wash + diagonal mood. */
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%,
      transparent 30%,
      rgba(0,0,0,0.18) 65%,
      rgba(0,0,0,0.55) 100%),
    /* Tall left-side column — full-height darkening for all copy stacked left. */
    linear-gradient(to right,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.55) 18%,
      rgba(0,0,0,0.28) 38%,
      transparent 55%),
    /* Bottom-left corner deepens further behind the pullquote + closing line. */
    radial-gradient(ellipse 55% 60% at 0% 90%,
      rgba(0,0,0,0.50) 0%,
      rgba(0,0,0,0.25) 50%,
      transparent 80%),
    linear-gradient(105deg,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.22) 35%,
      rgba(0,0,0,0.45) 65%,
      rgba(0,0,0,0.65) 100%);
}
.bio .w { position: relative; z-index: 1; }
.bio-grid { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.bio-photo { display: none; } /* image now lives on the section background */
.bio-ey { font-family: var(--mn); font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.bio-h { font-size: clamp(36px,4.8vw,66px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 22px; color: #fff; }
.bio-h em { font-family: var(--sr); font-style: italic; font-weight: 400; display: block; color: rgba(255,255,255,.5); font-size: .7em; margin-top: 6px; }
.bio-p { font-size: 16px; color: rgba(255,255,255,.68); line-height: 1.84; max-width: 520px; }
.bio-p + .bio-p { margin-top: 14px; }
.bio-pullquote {
  position: relative;
  margin: 28px 0 18px;
  padding: 22px 26px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,42,64,.16);
  font-family: var(--sr);
  font-style: italic;
  font-size: 19px;
  line-height: 1.58;
  color: rgba(255,255,255,.94);
  max-width: 560px;
}
.bio-pullquote::before, .bio-pullquote::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.bio-pullquote::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent-on-dark);
  border-left: 2px solid var(--accent-on-dark);
}
.bio-pullquote::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent-on-dark);
  border-right: 2px solid var(--accent-on-dark);
}
.bio-creds {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start; column-gap: 40px; row-gap: 6px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.bio-creds > div { min-width: 0; }
.cr-l { font-family: var(--mn); font-size: 10px; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cr-v { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.68); margin-top: 6px; letter-spacing: -.01em; white-space: nowrap; }

/* ══════════════════════════════════════════════ */
/*  TESTIMONIALS — PAPER (slider)                 */
/* ══════════════════════════════════════════════ */
.test { background: var(--paper); padding: 112px 0; position: relative; overflow: hidden; }
.test-h { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; color: var(--ink); margin: 0 0 16px; }
.test-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.test-lede { font-family: var(--sr); font-style: italic; font-size: 17px; color: var(--slate); line-height: 1.55; margin: 0; max-width: 52ch; }

/* Slider shell — full-bleed so cards can peek on mobile */
.test-slider { position: relative; margin-top: 48px; }

.test-track {
  display: flex; gap: 28px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Match .w gutter (56px) but center cards on wide viewports */
  padding: 12px max(56px, calc((100vw - 760px) / 2)) 12px;
}
.test-track::-webkit-scrollbar { display: none; }
.test-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }

/* Card */
.t-card {
  flex: 0 0 760px; max-width: calc(100vw - 112px);
  scroll-snap-align: center;
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 6px;
  padding: 52px 60px 40px;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: 320px;
  /* Opacity-only transition — transform changes during snap cause Safari to re-snap. */
  transition: opacity .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
  opacity: .55;
}
.t-card.is-active {
  opacity: 1;
  border-color: rgba(10,10,10,.16);
  box-shadow: 0 28px 56px -28px rgba(10,10,10,.18), 0 2px 8px -2px rgba(10,10,10,.06);
}

/* CJK watermark — quiet typographic ornament (聲 echoes chapter mark) */
.t-card::before {
  content: "\8072"; position: absolute; right: -8px; bottom: -52px;
  font-family: var(--cj); font-size: 260px; line-height: 1; font-weight: 600;
  color: var(--accent); opacity: .04; pointer-events: none;
}

/* Header row inside card: 01 number + tiny meta */
.t-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.t-num {
  font-family: var(--sr); font-style: italic; font-weight: 400;
  font-size: 48px; line-height: 1; color: var(--accent);
  letter-spacing: -.02em;
}
.t-mark { font-family: var(--mn); font-size: 10px; letter-spacing: .14em; color: var(--sl2); text-transform: uppercase; }

.t-q {
  font-family: var(--sr); font-style: italic;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.42; color: var(--ink);
  letter-spacing: -.005em;
  margin: 0; padding: 0;
  position: relative; z-index: 1;
  text-wrap: pretty;
  background: transparent; border: 0;
}

.t-who {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--fog);
  position: relative; z-index: 1;
}
.t-who-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}
.t-who-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-name { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.t-loc { font-family: var(--mn); font-size: 9px; color: var(--sl2); letter-spacing: .1em; text-transform: uppercase; }

/* Controls row — sits below the track, inside .w container */
.t-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 36px;
  position: relative; z-index: 2;
}

.t-nav {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--fog);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.t-nav:hover { border-color: var(--ink); transform: translateY(-1px); }
.t-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.t-nav[disabled] { opacity: .35; cursor: default; pointer-events: none; }

.t-counter {
  font-family: var(--mn); font-size: 11px; letter-spacing: .14em;
  color: var(--sl2); text-transform: uppercase;
  min-width: 64px; text-align: center;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.t-counter-cur { color: var(--ink); font-weight: 600; font-size: 13px; }
.t-counter-sep { opacity: .35; }

.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.t-dot {
  width: 7px; height: 7px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(10,10,10,.18);
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease), border-radius .25s var(--ease);
}
.t-dot:hover { background: rgba(10,10,10,.4); }
.t-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.t-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Tablet */
@media(max-width:1024px) {
  .test { padding: 96px 0; }
  .test-track {
    gap: 20px;
    padding-left: max(32px, calc((100vw - 600px) / 2));
    padding-right: max(32px, calc((100vw - 600px) / 2));
  }
  .t-card { flex-basis: 600px; max-width: calc(100vw - 64px); padding: 48px 44px 36px; min-height: 360px; }
  .t-num { font-size: 42px; }
}

/* Mobile */
@media(max-width:640px) {
  .test { padding: 72px 0; }
  .test-track {
    gap: 14px;
    padding: 8px 24px;
  }
  .t-card {
    /* Card fills viewport minus margins so the next card peeks */
    flex-basis: calc(100vw - 60px);
    max-width: none;
    padding: 36px 28px 28px;
    min-height: 340px;
    border-radius: 6px;
  }
  .t-num { font-size: 36px; }
  .t-head { margin-bottom: 22px; }
  .t-q { font-size: 18px; line-height: 1.46; }
  .t-who { margin-top: 24px; }
  .t-card::before { font-size: 200px; right: -16px; bottom: -42px; }
  /* Arrows hidden on mobile — swipe is the primary input */
  .t-nav { display: none; }
  .t-controls { margin-top: 24px; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .test-track { scroll-behavior: auto; }
  .t-card { transition: none; }
}

/* ══════════════════════════════════════════════ */
/*  COST — IVORY                                  */
/* ══════════════════════════════════════════════ */
.cost { background: var(--ivory); padding: 120px 0; }
.cost-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.cost-left-sticky { position: sticky; top: 80px; }
.cost-big { font-size: clamp(44px,6.8vw,86px); font-weight: 800; letter-spacing: -.045em; line-height: .98; color: var(--ink); }
.cost-big em { color: var(--accent); font-style: normal; }
.cost-sub { font-family: var(--sr); font-style: italic; font-size: 20px; color: var(--slate); margin-top: 16px; line-height: 1.45; max-width: 360px; }
.cost-p { font-size: 16px; color: var(--slate); line-height: 1.78; }
.cost-p + .cost-p { margin-top: 28px; }
.cost-q { display: block; font-weight: 700; color: var(--ink); font-size: 17.5px; letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.4; }
.cost-note { margin-top: 24px; padding: 16px 20px; background: rgba(10,10,10,.06); border-radius: 6px; font-size: 13px; color: var(--slate); line-height: 1.65; display: flex; gap: 12px; align-items: flex-start; }
.cost-sym { font-size: 20px; flex-shrink: 0; margin-top: -2px; }

/* ══════════════════════════════════════════════ */
/*  FAQ — PAPER                                   */
/* ══════════════════════════════════════════════ */
.faq-sec { background: var(--paper); padding: 128px 0; border-top: 1px solid var(--fog); }
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 96px; align-items: start;
}
.faq-rail { position: sticky; top: 96px; }
.faq-rail-h { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 18px; color: var(--ink); }
.faq-rail-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.faq-rail-p { font-family: var(--sr); font-style: italic; font-size: 17px; color: var(--slate); line-height: 1.55; margin: 0; max-width: 36ch; }
.faq-wrap { margin-top: 0; }
/* Group labels: editorial chapter break, not metadata. Generous top break sets the rhythm. */
.faq-group {
  font-family: var(--sr); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.01em;
  color: var(--ink); text-transform: none;
  padding: 56px 0 18px; border-top: 0;
  display: flex; align-items: baseline; gap: 14px;
}
.faq-group::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
  flex-shrink: 0; transform: translateY(-7px);
}
.faq-group:first-child { padding-top: 0; }
.faq-item { border-top: 1px solid var(--fog); }
.faq-item:last-child { border-bottom: 1px solid var(--fog); }
.faq-q { width: 100%; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; text-align: left; font-family: var(--ds); }
.faq-qt { font-size: clamp(15px,1.7vw,18px); font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.faq-ic { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--fog); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 300; transition: all .22s var(--ease); color: var(--sl2); }
.faq-item.open .faq-ic { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-at { padding: 0 40px 26px 0; font-size: 15px; color: var(--slate); line-height: 1.82; max-width: 700px; }

/* ══════════════════════════════════════════════ */
/*  CTA — DARK                                    */
/* ══════════════════════════════════════════════ */
.cta-sec {
  background-color: var(--ink);
  background-image: url('/ld/buyer-agency/assets/cta-legislature.webp');
  background-size: cover; background-position: center 30%;
  background-repeat: no-repeat;
  padding: 140px 0; text-align: center; position: relative; overflow: hidden;
}
/* Heavy overlay over the legislature photo: ink wash + corner vignette so the
   white headline + paragraph stay crisply legible while the dome and mountains
   read as quiet place-setting behind. */
.cta-sec::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%,
      rgba(8,9,12,0.47) 0%,
      rgba(8,9,12,0.70) 60%,
      rgba(8,9,12,0.87) 100%),
    linear-gradient(to bottom,
      rgba(8,9,12,0.77) 0%,
      rgba(8,9,12,0.47) 25%,
      rgba(8,9,12,0.47) 75%,
      rgba(8,9,12,0.77) 100%);
}
.cta-bg-dot { display: none; }
.cta-sec > .w { position: relative; z-index: 3; }
/* Looping sky/legislature video sits behind the ::before overlay (z-index 1).
   Critical positioning is also inline on the element so it never renders
   unstyled if a returning visitor has older CSS cached. */
.cta-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: 0; pointer-events: none;
}
/* Mobile: drop the photo/video background, fall back to flat ink so text dominates. */
@media(max-width:640px) {
  .cta-sec {
    background-image: none;
    background-color: var(--ink);
  }
  .cta-sec::before { display: none; }
  .cta-bg-video { display: none; }
}
.cta-k { font-family: var(--cj); font-size: 80px; color: var(--accent-on-dark); line-height: 1; font-weight: 600; margin-bottom: 14px; display: block; }
.cta-motif { display: inline-flex; align-items: stretch; gap: 10px; margin: 0 auto 22px; font-family: var(--ds); }
.cta-motif-mark { background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding: 6px 10px; line-height: 1; display: inline-flex; align-items: center; }
.cta-motif-wm { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em; display: inline-flex; align-items: center; }
.cta-h { font-size: clamp(48px,7.5vw,108px); font-weight: 800; letter-spacing: -.05em; line-height: .91; margin-bottom: 20px; color: #fff; }
.cta-h em { font-family: var(--sr); font-style: italic; font-weight: 400; }
.cta-p { font-size: 18px; color: rgba(255,255,255,.55); max-width: 460px; margin: 0 auto 40px; line-height: 1.65; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════ */
/*  FOOTER NAV                                    */
/* ══════════════════════════════════════════════ */
.ft { background: #050507; padding: 32px 56px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.06); }
.ft-logo img { height: 24px; opacity: .5; }
.ft-p { font-family: var(--mn); font-size: 9px; color: rgba(255,255,255,.2); letter-spacing: .1em; }

/* ══════════════════════════════════════════════ */
/*  TWEAKS PANEL                                  */
/* ══════════════════════════════════════════════ */
#tw { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 400; width: 230px; background: var(--white); border: 1px solid var(--fog); border-radius: 12px; padding: 18px 20px; box-shadow: 0 24px 56px -12px rgba(10,10,10,.22); font-family: var(--ds); }
#tw.vis { display: block; }
.tw-hd { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sl2); padding-bottom: 12px; border-bottom: 1px solid var(--fog); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.tw-lbl { font-size: 10px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.tw-row { display: flex; gap: 4px; margin-bottom: 14px; }
.tw-btn { flex: 1; background: var(--white); border: 1px solid var(--fog); border-radius: 4px; padding: 6px 4px; font-size: 10px; font-weight: 600; color: var(--slate); cursor: pointer; text-transform: lowercase; transition: all .15s ease; }
.tw-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ══════════════════════════════════════════════ */
/*  RESPONSIVE                                    */
/* ══════════════════════════════════════════════ */
@media(max-width:1024px) {
  .nav { padding: 0 32px; }
  .ft { padding: 24px 32px; }
  /* Compress section padding from desktop 120-140px down to editorial-mobile 80px. */
  .edu, .gaps, .process, .cost { padding: 80px 0; }
  .faq-sec { padding: 80px 0; }
  .cta-sec { padding: 96px 0; }
  .edu-grid, .proc-hd, .gaps-hd, .cost-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-rail { position: static; top: auto; }
  .cost-left-sticky { position: static; top: auto; }
  /* Tablet + mobile: take the image OFF the section background and show it
     as a standalone photo card above the text. No overlay competing with
     the subject, image reads cleanly at narrow widths. */
  .bio {
    background-image: none;
    background-color: #000;
    padding: 64px 0 96px;
  }
  .bio::before { display: none; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-photo {
    display: block;
    background-image: url('/ld/buyer-agency/assets/dustin-balcony-mobile.jpg');
    background-image: image-set(url('/ld/buyer-agency/assets/dustin-balcony-mobile.webp') type('image/webp'), url('/ld/buyer-agency/assets/dustin-balcony-mobile.jpg') type('image/jpeg'));
    background-size: cover; background-position: center 30%;
    aspect-ratio: 3/2; max-height: 460px;
    border-radius: 4px; position: relative; overflow: hidden;
  }
  .bio-photo::before {
    content: ''; position: absolute; top: -2px; right: -2px;
    width: 36%; height: 36%;
    border-top: 2px solid var(--accent-on-dark);
    border-right: 2px solid var(--accent-on-dark);
  }
}
@media(max-width:640px) {
  /* Hero on portrait: drop landscape-only composition (frame, scroll hint, bottom-pin),
     stack CTAs full-width for thumb targets, tighten stat labels to avoid orphan wraps. */
  .hero { justify-content: center; min-height: 86svh; }
  .hero-content { padding: 32px 24px 40px; }
  .hero-frame { display: none; }
  .hero-scroll-hint { display: none; }
  .hero-tag { margin-bottom: 22px; }
  .hero-h1 { line-height: 1.06; margin-bottom: 20px; }
  .hero-lede { margin-bottom: 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 44px; }
  .hero-ctas .btn-r, .hero-ctas .btn-g { width: 100%; justify-content: center; }
  .hero-stats { gap: 14px 0; padding-top: 22px; }
  .h-sl { font-size: 8.5px; letter-spacing: .10em; line-height: 1.35; }
  /* True-phone section padding: a notch tighter than tablet (80 → 64). */
  .edu, .gaps, .process, .cost, .faq-sec, .test { padding: 64px 0; }
  .cta-sec { padding: 80px 0; }
  .bio { padding: 56px 0 72px; }

  /* Compare table: stack each row vertically and label the two columns inline */
  .cmp-hd { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 16px; }
  .cmp-row .ck { font-size: 14px; }
  .cmp-row .cb, .cmp-row .cg { position: relative; padding-left: 76px; min-height: 18px; }
  .cmp-row .cb::before, .cmp-row .cg::before {
    content: ''; position: absolute; left: 0; top: 1px;
    font-family: var(--mn); font-size: 9px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    width: 68px;
  }
  .cmp-row .cb::before { content: 'without 8X'; color: var(--sl2); }
  .cmp-row .cg::before { content: 'with 8X';    color: var(--accent); }
}
@media(max-width:768px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .h-stat { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .h-stat:first-child, .h-stat:nth-child(2) { padding-top: 0; border-top: 0; }
  .gap-list { grid-template-columns: 1fr; }
  .gap-item { padding: 22px 0; }
  .gap-item:nth-child(odd) { padding-right: 0; border-right: 0; }
  .gap-item:nth-child(even) { padding-left: 0; }
  .gap-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.06); }
  .gap-item:last-child { border-bottom: 0; }
  .gap-q { margin-bottom: 8px; }
  .gap-p-short { display: block; }
  .gap-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .25s var(--ease), margin-top .25s var(--ease); margin-top: 0; }
  .gap-item.open .gap-detail { max-height: 1400px; opacity: 1; margin-top: 14px; }
  .gap-toggle { display: inline-flex; cursor: pointer; }
  .gap-item.open .gap-toggle { color: var(--accent); }
  .gap-item.open .gap-toggle .gap-chev { transform: rotate(180deg); }
  .stepper { grid-template-columns: 1fr; }
  .step-rail { display: flex; border-right: 0; border-bottom: 1px solid var(--fog); overflow-x: auto; }
  .step-btn { border-left: 0; border-bottom: 2px solid transparent; padding: 10px 16px; min-width: max-content; }
  .step-btn.on { border-left-color: transparent; border-bottom-color: var(--accent); }
  .sp { padding: 20px 0 0; }
  .sp-dels { grid-template-columns: 1fr; }
  .md-grid { grid-template-columns: repeat(2,1fr); }
  .md-notes { grid-template-columns: 1fr; }
  .bio-creds { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 32px; row-gap: 18px; }
}

/* ══════════════════════════════════════════════ */
/*  DISCOVERY-CALL INTAKE MODAL                   */
/* ══════════════════════════════════════════════ */
.dm-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease);
}
.dm-backdrop.on { opacity: 1; pointer-events: auto; }
.dm {
  position: relative;
  background: var(--paper);
  width: 100%; max-width: 620px; max-height: calc(100vh - 48px);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px); opacity: 0;
  transition: transform .32s var(--ease), opacity .26s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.dm-backdrop.on .dm { transform: translateY(0); opacity: 1; }
.dm-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--slate);
  cursor: pointer; border-radius: 4px;
  transition: background .15s, color .15s;
}
.dm-close:hover { background: rgba(10,10,10,.06); color: var(--ink); }
.dm-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--fog);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.dm-chap { display: flex; align-items: flex-end; gap: 14px; }
.dm-chap-k { font-family: var(--cj); font-size: 38px; color: var(--accent); line-height: 1; font-weight: 600; }
.dm-chap-meta { display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; }
.dm-chap-n { font-family: var(--mn); font-size: 9px; color: var(--sl2); letter-spacing: .18em; text-transform: uppercase; }
.dm-chap-l { font-family: var(--mn); font-size: 11px; color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.dm-progress { display: flex; gap: 6px; padding-bottom: 6px; }
.dm-dot {
  width: 28px; height: 3px; background: rgba(10,10,10,.12);
  border-radius: 2px;
  transition: background .2s var(--ease);
}
.dm-dot.on { background: var(--accent); }
.dm-dot.done { background: rgba(10,10,10,.45); }
.dm-body {
  padding: 30px 32px 24px;
  overflow-y: auto; flex: 1;
}
.dm-step { display: none; }
.dm-step.on { display: block; animation: dmStepIn .26s var(--ease); }
@keyframes dmStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dm-h {
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 8px; line-height: 1.2;
}
.dm-h em { font-family: var(--sr); font-style: italic; font-weight: 400; color: var(--accent); }
.dm-p {
  font-family: var(--sr); font-style: italic;
  font-size: 15px; color: var(--slate); line-height: 1.5;
  margin-bottom: 22px;
}
.dm-privacy { margin-top: 22px; font-size: 11px; color: var(--sl2); line-height: 1.5; letter-spacing: .01em; }
.dm-privacy a { color: var(--slate); text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 2px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
.dm-privacy a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.dm-field { margin-bottom: 20px; }
.dm-field:last-child { margin-bottom: 0; }
.dm-label {
  font-family: var(--mn); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 10px; display: block; font-weight: 600;
}
.dm-options { display: grid; gap: 10px; }
.dm-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--fog); border-radius: 4px;
  cursor: pointer; font-family: var(--ds);
  transition: all .14s var(--ease);
}
.dm-opt:hover { border-color: rgba(10,10,10,.35); background: rgba(10,10,10,.02); }
.dm-opt.on { border-color: var(--accent); background: rgba(190,30,45,.04); }
.dm-opt-h { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.dm-opt-d { font-size: 13px; color: var(--slate); line-height: 1.45; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip {
  padding: 8px 14px; background: #fff;
  border: 1px solid var(--fog); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; font-family: var(--ds);
  transition: all .14s var(--ease);
}
.dm-chip:hover { border-color: rgba(10,10,10,.35); }
.dm-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dm-text, .dm-input {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--fog); border-radius: 4px;
  font-family: var(--ds); font-size: 14.5px; color: var(--ink);
  resize: vertical;
  transition: border-color .14s var(--ease);
}
.dm-text { min-height: 70px; line-height: 1.5; }
.dm-text:focus, .dm-input:focus { outline: 0; border-color: var(--ink); }
.dm-text::placeholder, .dm-input::placeholder { color: var(--sl2); }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-footer {
  padding: 18px 32px; border-top: 1px solid var(--fog);
  display: flex; align-items: center; gap: 12px;
  background: rgba(10,10,10,.015);
}
.dm-back {
  background: none; border: 0; color: var(--slate);
  font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 12px;
  font-family: var(--ds); border-radius: 4px;
  transition: color .14s, background .14s;
}
.dm-back:hover { color: var(--ink); background: rgba(10,10,10,.04); }
.dm-spacer { flex: 1; }
.dm-skip {
  background: none; border: 0; color: var(--slate);
  font-size: 13px; cursor: pointer; padding: 8px 10px; font-family: var(--ds);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10,10,10,.2);
}
.dm-skip:hover { color: var(--ink); }
.dm-next {
  background: var(--accent); color: #fff; border: 0;
  padding: 12px 24px; border-radius: 4px;
  font-family: var(--ds); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), transform .1s;
}
.dm-next:hover { background: var(--red-dk); }
.dm-next:active { transform: translateY(1px); }
.dm-next[disabled] { background: rgba(10,10,10,.18); cursor: not-allowed; }
.dm-success {
  padding: 60px 32px; text-align: center;
}
.dm-success-mark {
  font-size: 48px; line-height: 1; color: var(--accent); margin-bottom: 18px;
  font-family: var(--cj); font-weight: 600;
}
.dm-success-h {
  font-size: 28px; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.dm-success-p {
  font-family: var(--sr); font-style: italic;
  font-size: 16px; color: var(--slate); line-height: 1.55;
  max-width: 380px; margin: 0 auto;
}
@media(max-width:640px) {
  .dm-backdrop { padding: 0; }
  .dm { max-height: 100vh; border-radius: 0; }
  .dm-header { padding: 22px 22px 16px; }
  .dm-body { padding: 24px 22px 20px; }
  .dm-footer { padding: 14px 22px; }
  .dm-row { grid-template-columns: 1fr; }
  .dm-h { font-size: 21px; }
  .dm-progress { display: none; }
}
body.dm-open { overflow: hidden; }
