/* BestProps v2 x WordPress layer (bp-v2-wp). Loaded after the v2 system CSS and content.css.
   Dark v2 shell (header, hero, rails) + stored article bodies on a light "paper" sheet, so content that was
   authored for a light page (inline <style> blocks, .bpv- kit, tables, images) renders as designed. */

/* ---------- admin bar offset for the fixed v2 header ---------- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
/* Under 601px WordPress makes #wpadminbar position:absolute, so it scrolls away; the sticky header must not keep a
   46px gap above it (seen on Shane's logged-in phone, 2026-10-30). */
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
#wpadminbar { z-index: 100000; }

/* ---------- hero ---------- */
.bpw-hero { padding-top: calc(var(--header-h, 72px) + clamp(16px, 3vw, 40px)); }
.bpw-hero--solo { grid-template-columns: minmax(0, 1fr) !important; }
.bpw-hero--solo .lg-hero__copy { max-width: 980px; }
.bpw-hero .lg-hero__h1 { font-size: clamp(34px, 3.2vw + 14px, 64px); line-height: 1.04; margin: 0; overflow-wrap: anywhere; }
.bpw-hero .bp-lede { max-width: 760px; }
.bpw-hero .lg-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--draft-2); }
.bpw-take p, .bpw-take li { color: var(--ink); font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; }
.bpw-take ul, .bpw-take ol { display: grid; gap: 4px; }
.bpw-take li { position: relative; padding-left: 18px; }
.bpw-take li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 1px; background: var(--indigo); }
.bpw-take details summary { cursor: pointer; color: var(--indigo-ink); font-size: 14px; margin-top: 6px; }

/* ---------- layout: rail + paper ---------- */
.bpw-layout { align-items: stretch; }
.bpw-layout--solo { grid-template-columns: minmax(0, 1fr) !important; }
.bpw-rail-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--draft-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.bpw-frame { width: 100%; max-width: calc(var(--container-sheet) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: clamp(48px, 6vw, 96px); }

.bpw-paper {
  min-width: 0;
  background: #fff;
  color: #1e293b;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: clamp(20px, 4vw, 56px);
  color-scheme: light;
  font-family: var(--font-sans);
}
html[data-theme="light"] .bpw-paper { box-shadow: 0 20px 60px -40px rgba(20, 24, 60, 0.35); border-color: var(--line); }

/* ---------- prose (the paper) ---------- */
/* The old article template set a Georgia body; v2 uses Geist for reading text too. */
.bpw-paper, .bp-article-pilot .space-page-content.bpw-prose, .bpw-paper .space-page-content { font-family: var(--font-sans); }
.bp-export-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 4px 12px; text-align: center; font: 500 11px/1.4 var(--font-sans); background: #12141c; color: #c9ccd8; border-top: 1px solid #2a2e3c; }
body.bp-v2 { padding-bottom: 26px; }
.bpw-prose { max-width: 820px; margin-inline: auto; font-size: 17px; line-height: 1.72; color: #334155; counter-reset: bpwsec; }
.bpw-layout--solo .bpw-prose { max-width: 1080px; }
.bpw-prose > .bpw-sec { padding-top: 8px; }
.bpw-prose > .bpw-sec + .bpw-sec { margin-top: 18px; }
.bpw-prose .bpw-sec > h2:first-child { counter-increment: bpwsec; display: flex; align-items: baseline; gap: 14px; scroll-margin-top: calc(var(--header-h, 72px) + 24px); }
.bpw-prose .bpw-sec > h2:first-child::before { content: counter(bpwsec, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: #4f48ff; transform: translateY(-5px); flex: none; }
.bpw-prose h1, .bpw-prose h2, .bpw-prose h3, .bpw-prose h4 { font-family: var(--font-sans); color: #0b1220; letter-spacing: -0.02em; }
.bpw-prose h2 { font-size: clamp(25px, 1.4vw + 14px, 34px); line-height: 1.15; font-weight: 650; margin: 40px 0 16px; }
.bpw-prose h3 { font-size: clamp(20px, 0.6vw + 15px, 24px); line-height: 1.25; font-weight: 620; margin: 30px 0 12px; }
.bpw-prose h4 { font-size: 18px; font-weight: 620; margin: 24px 0 10px; }
.bpw-prose p { margin: 0 0 16px; }
.bpw-prose a:not([class]) { color: #3b34e6; text-decoration: underline; text-decoration-color: rgba(79, 72, 255, 0.35); text-underline-offset: 3px; }
.bpw-prose a:not([class]):hover { text-decoration-color: currentColor; }
.bpw-prose strong, .bpw-prose b { color: #0b1220; font-weight: 650; }
.bpw-prose ul:not([class*="bpv-"]):not([class*="bp-"]), .bpw-prose ol:not([class*="bpv-"]):not([class*="bp-"]) { margin: 0 0 18px; padding-left: 1.35em; }
.bpw-prose ul:not([class*="bpv-"]):not([class*="bp-"]) { list-style: disc; }
.bpw-prose ol:not([class*="bpv-"]):not([class*="bp-"]) { list-style: decimal; }
.bpw-prose li { margin: 0 0 8px; }
.bpw-prose li::marker { color: #4f48ff; }
.bpw-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.bpw-prose figure { margin: 28px 0; max-width: 100%; }
.bpw-prose figcaption { font-size: 14px; color: #64748b; margin-top: 8px; line-height: 1.5; }
.bpw-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 32px 0; }
.bpw-prose code { font-family: var(--font-mono); font-size: 0.9em; background: #f1f5f9; padding: 1px 5px; border-radius: 5px; }
.bpw-prose blockquote:not([class*="bpv-"]) { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid #4f48ff; color: #1e293b; font-style: normal; text-align: left; }
.bpw-prose blockquote:not([class*="bpv-"])::before, .bpw-prose blockquote:not([class*="bpv-"])::after { content: none; }
.bpw-prose details { margin: 0 0 12px; }
.bpw-prose summary { cursor: pointer; }
/* plain content tables (bpv/bp tables keep their own design) */
.bpw-prose table:not([class*="bpv-"]):not([class*="bp-"]) { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.bpw-prose table:not([class*="bpv-"]):not([class*="bp-"]) th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; background: #f8fafc; }
.bpw-prose table:not([class*="bpv-"]):not([class*="bp-"]) th, .bpw-prose table:not([class*="bpv-"]):not([class*="bp-"]) td { padding: 11px 14px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.bpw-prose .wp-block-table { margin: 24px 0; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; }
.bpw-prose > .bpw-sec > table:not([class*="bpv-"]), .bpw-prose .bpw-sec > table:not([class*="bpv-"]) { display: block; overflow-x: auto; }
/* embeds */
.bpw-prose .wp-block-embed { margin: 26px 0; }
.bpw-prose .wp-block-embed__wrapper { position: relative; }
.bpw-prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.bpw-prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.bpw-prose iframe { max-width: 100%; border: 0; }

/* old-theme leftovers that should not show inside the v2 paper */
.bpw-paper .bp-article-pilot-header, .bpw-paper .bp-article-pilot-rail { display: none; }

/* ---------- author + related ---------- */
.bpw-author { max-width: calc(var(--container-sheet) + var(--gutter) * 2); margin: 0 auto clamp(40px, 5vw, 72px); width: calc(100% - var(--gutter) * 2); }
.bpw-author h2 a { color: inherit; text-decoration: none; }
.bpw-author-links { display: flex; gap: 18px; flex-wrap: wrap; }
.bpw-related { width: 100%; max-width: calc(var(--container-sheet) + var(--gutter) * 2); margin-inline: auto; padding: 0 var(--gutter) clamp(48px, 6vw, 96px); }

/* ---------- archive cards ---------- */
.bpw-cards-wrap { padding-bottom: clamp(48px, 6vw, 96px); }
.bpw-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.bpw-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--ink-2); min-height: 180px; }
.bpw-card__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo-ink); }
.bpw-card__t { font-size: 19px; line-height: 1.25; font-weight: 620; color: var(--ink); letter-spacing: -0.015em; }
.bpw-card__d { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.bpw-card__go { margin-top: auto; font-size: 13px; color: var(--indigo-ink); }
.bpw-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bpw-pager .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); text-decoration: none; font-family: var(--font-mono); font-size: 13px; }
.bpw-pager .page-numbers.current { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }
.bpw-empty { color: var(--ink-3); }
.bpw-search { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.bpw-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.bpw-404-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- firm profile ---------- */
.bpw-firm-hero-wrap { padding-bottom: 8px; }
.bpw-firm-id { display: flex; align-items: center; gap: 14px; }
.bpw-firm-id .bp-eyebrow { margin: 0; }
.bpw-firm-logo { display: inline-flex; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--glass-edge); align-items: center; justify-content: center; }
.bpw-firm-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.bpw-firm-card { display: grid; gap: 16px; }
.bpw-score { position: relative; width: 148px; height: 148px; margin: 4px auto 0; }
.bpw-score__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--indigo) var(--bpw-deg), var(--draft-2) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.bpw-score__face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bpw-score__cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.bpw-score__num { font-size: 44px; font-weight: 650; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.bpw-score__of { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.bpw-score__note { margin: 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.bpw-terms { display: grid; gap: 0; margin: 0; }
.bpw-terms > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--draft-2); }
.bpw-terms dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.bpw-terms dd { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.bpw-firm-card .risk-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.bpw-firm-notice, .bpw-firm-terms { font-size: 13px; color: var(--ink-3); }
.bpw-firm-terms summary { cursor: pointer; color: var(--indigo-ink); }
.bp-wp-firm .bp-profile-layout { display: grid; gap: 40px; }
@media (min-width: 1080px) { .bp-wp-firm .bp-profile-layout { grid-template-columns: minmax(0, 1fr) 250px; } }
.bp-wp-firm .bp-profile-rail-sticky { position: sticky; top: calc(var(--header-h, 72px) + 24px); }
.bp-wp-firm .bp-profile-pilot-main { min-width: 0; font-size: 17px; line-height: 1.7; color: #334155; }
.bp-wp-firm .bp-profile-pilot-main h2 { font-size: clamp(24px, 1.2vw + 14px, 32px); color: #0b1220; letter-spacing: -0.02em; }

/* ---------- wrapped mode (bespoke templates keep their own body + CSS) ---------- */
.bp-v2--wrapped .bpw-wrapped { background: #fff; color: #1e293b; padding-top: var(--header-h, 72px); min-height: 60vh; color-scheme: light; }
.bp-v2--wrapped .space-box { overflow: visible; }
/* Mercury's .container rule would narrow the v2 header/footer containers */
.bp-v2--wrapped .site-header .container, .bp-v2--wrapped .site-footer .container, .bp-v2--wrapped .mobile-menu .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .bpw-paper { border-radius: 14px; padding: 18px 16px; }
  .bpw-prose { font-size: 16.5px; }
  .bpw-terms > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- POLISH: "Watch on YouTube" link under every YouTube facade/player (inc/articles.php) ---------- */
.bpw-yt-cap { display: flex; justify-content: flex-end; margin: 8px 0 0; line-height: 1.4; }
.bpw-yt-cap .bpw-yt-cap__a { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-decoration: none; }
.bpw-yt-cap .bpw-yt-cap__a:hover, .bpw-yt-cap .bpw-yt-cap__a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }


/* ================================================================== MOTION (2026-10-19, inc/motion.php)
   The v2 design's motion on the WordPress views. ?bp_motion=0 switches it off (body.bp-nomotion, no clips/scripts).
   1. The mockup's media.css, verbatim (only home and /match/ loaded it): hero clips + Pause motion control +
      engineered openers (media.js adds html.bp-mo, then .bp-mo-in per element). */
.bp-hasmedia { position: relative; isolation: isolate; }
.bp-cine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--cine-l0, 6%), #000 var(--cine-l1, 46%), #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 var(--cine-t1, 14%), #000 var(--cine-b0, 70%), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent var(--cine-l0, 6%), #000 var(--cine-l1, 46%), #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 var(--cine-t1, 14%), #000 var(--cine-b0, 70%), transparent 100%);
  mask-composite: intersect;
}
.bp-cine__media { position: absolute; inset: 0; opacity: var(--cine-o, 0.9); }
.bp-cine__poster, .bp-cine__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--cine-pos, 72% 50%);
  display: block; border: 0;
}
.bp-cine__video { opacity: 0; transition: opacity 1.4s ease; }
.bp-cine.is-playing .bp-cine__video { opacity: 1; }

/* drafting marks: registration corners and a dimension rule that measure out once */
.bp-cine__marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp-cine__marks path { fill: none; stroke: var(--draft-2, rgba(255, 255, 255, 0.28)); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bp-cine__marks .bp-cine__dim { stroke: color-mix(in srgb, var(--indigo, #7C76FF) 55%, transparent); }
.bp-cine.is-in .bp-cine__marks path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.35s; }
.bp-cine.is-in .bp-cine__marks .bp-cine__dim { transition-duration: 1.8s; transition-delay: 0.6s; }

/* control: Pause motion, plus the honest label */
.bp-cine-ctl {
  position: absolute; z-index: 3; right: var(--cine-ctl-r, 20px); bottom: var(--cine-ctl-b, 14px); top: var(--cine-ctl-t, auto);
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  font: 500 10px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase;
}
.bp-cine-ctl__tag { color: var(--ink-3, #8b90ad); }
.bp-cine-ctl__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2, #c9ccdc);
  background: color-mix(in srgb, var(--ground, #05060B) 55%, transparent); border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.14));
  border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bp-cine-ctl__btn:hover { color: var(--ink, #fff); border-color: color-mix(in srgb, var(--indigo, #7C76FF) 60%, transparent); }
.bp-cine-ctl__btn:focus-visible { outline: 2px solid var(--indigo, #7C76FF); outline-offset: 2px; }
.bp-cine-ctl__btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-cine-ctl__btn .i-play { display: none; fill: currentColor; stroke: none; }
.bp-cine-ctl__btn.is-paused .i-play { display: block; }
.bp-cine-ctl__btn.is-paused .i-pause { display: none; }
.bp-cine-ctl__btn[hidden] { display: none; }
@media (max-width: 479px) { .bp-cine-ctl__tag { display: none; } }

/* light theme: the same footage inverted reads as a blueprint on paper */
[data-theme="light"] .bp-cine__media { opacity: var(--cine-ol, 0.5); }
[data-theme="light"] .bp-cine__poster, [data-theme="light"] .bp-cine__video { filter: invert(1) hue-rotate(180deg) saturate(0.85); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .bp-cine__media { opacity: var(--cine-ol, 0.5); }
  :root:not([data-theme]) .bp-cine__poster, :root:not([data-theme]) .bp-cine__video { filter: invert(1) hue-rotate(180deg) saturate(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .bp-cine__video { display: none; }
  .bp-cine__marks path { stroke-dashoffset: 0; transition: none !important; }
}
/* side box: the clip keeps its 16:9 frame on the right of a short hero instead of being cropped by cover */
.bp-cine--side .bp-cine__media { left: auto; width: var(--cine-w, 64%); }

/* data panels inside a media hero: frosted, so the clip reads as soft light behind glass and the data on the
   panel stays crisp. --cine-tint sets the panel density per page. */
.bp-hasmedia .bp-glass, .bp-hasmedia .rs2-sheetwrap {
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
}
.bp-hasmedia .rs2-sheetwrap { background: color-mix(in srgb, var(--ground) 58%, transparent); }
:root:not([data-theme="light"]) .bp-hasmedia .bp-glass { background: linear-gradient(160deg, rgba(22, 25, 46, var(--cine-tint, 0.5)), rgba(8, 9, 18, calc(var(--cine-tint, 0.5) + 0.12)) 60%); }

/* engineered openers (media.js initOpeners adds html.bp-mo, then .bp-mo-in per element, once) */
.bp-mo .bp-eyebrow__rule { clip-path: inset(-4px 100% -4px -4px); }
.bp-mo .bp-head__note { clip-path: inset(0 0 100% 0); }
.bp-mo .bp-titleblock { clip-path: inset(0 100% 0 0); }
.bp-mo .bp-scale { opacity: 0; }
.bp-mo .bp-eyebrow__rule.bp-mo-in { clip-path: inset(-4px -4px -4px -4px); transition: clip-path 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.15s; }
.bp-mo .bp-head__note.bp-mo-in { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(0.6, 0, 0.2, 1) 0.25s; }
.bp-mo .bp-titleblock.bp-mo-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.2s; }
.bp-mo .bp-scale.bp-mo-in { opacity: 1; transition: opacity 0.8s ease 0.5s; }

@media print { .bp-cine, .bp-cine-ctl { display: none; } .bp-mo .bp-eyebrow__rule, .bp-mo .bp-head__note, .bp-mo .bp-titleblock { clip-path: none; } .bp-mo .bp-scale { opacity: 1; } }

/* 2. Clips fade in once this stylesheet applies (an inline first-paint guard keeps them invisible before that). */
.bp-hasmedia .bp-cine:not(.hm-cine), .bp-hasmedia .bp-cine-ctl:not(.hm-cine-ctl) { opacity: 1; transition: opacity 0.8s ease; }
.bp-hasmedia > .bp-cine-ctl { z-index: 3; }
/* The Pause button starts [hidden] and media.js reveals it when motion can play: keep its space reserved so the
   control does not grow sideways after load (layout shift 0.004 measured). */
.bp-cine-ctl .bp-cine-ctl__btn[hidden] { display: inline-flex; visibility: hidden; }

/* 3. Per-hero tuning (mockup values: firm.css .fr-hero, learn.css .lh-hero, research.css .rs2-hero--hub, tools.css
      .tl-hub-hero, trust.css .mt-hero, research.css .rs2-hero--cine for deals). */
.bpw-firm-hero.bp-hasmedia { --cine-pos: 88% 46%; --cine-o: 0.5; --cine-ol: 0.28; --cine-l0: 34%; --cine-l1: 58%; --cine-t1: 4%; --cine-b0: 82%; --cine-ctl-b: 10px; }
.bpw-firm-hero .fr-cine .bp-cine__media { filter: blur(5px); transform: scale(1.08); }
.bpw-firm-hero .fr-cine .bp-cine__marks { display: none; }
.bpw-firm-hero.bp-hasmedia, .bpr-hero.bp-hasmedia { --cine-ctl-r: max(var(--gutter, 20px), calc((100% - var(--container-sheet, 1320px)) / 2)); }
.bph-hero.bp-hasmedia { --cine-pos: 80% 50%; --cine-o: 1; --cine-l0: 30%; --cine-l1: 52%; --cine-t1: 4%; --cine-b0: 80%; --cine-ctl-b: 8px; --cine-ctl-r: 0px; }
.bph-hero--deals.bp-hasmedia { --cine-pos: 74% 40%; --cine-l0: 32%; --cine-l1: 54%; --cine-t1: 6%; --cine-b0: 74%; }
.bph-hero--method.bp-hasmedia { --cine-pos: 80% 62%; --cine-tint: 0.36; --cine-t1: 2%; --cine-b0: 86%; }
.bph-hero--rulelab.bp-hasmedia { --cine-pos: 56% 72%; --cine-o: 0.95; --cine-t1: 8%; --cine-b0: 78%; }
/* Hub heroes are capped at 1040 px inside a full-width row; on wide screens the clip gets the open space on the right:
   the hero box spans the row, every content child keeps its old 1040 px cap (zero specificity, so their own
   max-widths still win), and the layer starts at 45%. Text layout is unchanged (verified per element). */
@media (min-width: 900px) {
  .bph-hero.bp-hasmedia { max-width: none; --cine-l0: 0%; --cine-l1: 40%; }
  :where(.bph-hero.bp-hasmedia > :not(.bp-cine, .bp-cine-ctl)) { max-width: 1040px; }
  .bph-hero.bp-hasmedia > .bp-cine { left: 45%; }
}
.bpr-hero.bp-hasmedia { --cine-pos: 100% 30%; --cine-o: 0.75; --cine-l0: 30%; --cine-l1: 58%; --cine-t1: 6%; --cine-b0: 74%; --cine-ctl-b: 10px; }
@media (max-width: 899px) {
  .bpw-firm-hero.bp-hasmedia { --cine-pos: 90% 12%; --cine-o: 0.35; --cine-ol: 0.2; --cine-l0: 0%; --cine-l1: 30%; --cine-b0: 24%; }
  .bph-hero.bp-hasmedia, .bpr-hero.bp-hasmedia { --cine-pos: 85% 20%; --cine-o: 0.45; --cine-ol: 0.26; --cine-l0: 0%; --cine-l1: 30%; --cine-b0: 40%; }
  .bph-hero--rulelab.bp-hasmedia { --cine-pos: 74% 40%; --cine-o: 0.5; --cine-ol: 0.28; --cine-t1: 25%; --cine-b0: 60%; }
  .bp-hasmedia > .bp-cine-ctl { --cine-ctl-b: 4px; }
}

/* 4. Firm hero rating ring draws in (the mockup gauge's .bp-draw arc). */
@property --bpw-sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.bpw-score__ring { --bpw-sweep: var(--bpw-deg); background: conic-gradient(var(--indigo) var(--bpw-sweep), var(--draft-2) 0); }
body:not(.bp-nomotion) .bpw-score__ring { animation: bpw-ring 1.5s cubic-bezier(0.6, 0, 0.2, 1) 0.25s backwards; }
@keyframes bpw-ring { from { --bpw-sweep: 0deg; } }

/* 5. Scroll draw-in / rise-in prepared by js/motion.js (below-the-fold elements only). */
.bpm-pend .bp-gauge__val { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.bpm-pend .bp-gauge__node { opacity: 0; }
.bpm-pend.bpm-in .bp-gauge__val { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.6, 0, 0.2, 1) var(--bpm-d, 0ms); }
.bpm-pend.bpm-in .bp-gauge__node { opacity: 1; transition: opacity 0.35s ease calc(var(--bpm-d, 0ms) + 1s); }
.bpm-rise { opacity: 0; transform: translateY(14px); }
.bpm-rise.bpm-in { opacity: 1; transform: none; transition: opacity 0.7s ease var(--bpm-d, 0ms), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--bpm-d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  body:not(.bp-nomotion) .bpw-score__ring { animation: none; }
  .bpm-pend .bp-gauge__val { stroke-dasharray: none; stroke-dashoffset: 0; }
  .bpm-pend .bp-gauge__node, .bpm-rise { opacity: 1; transform: none; }
}
@media print { .bpm-rise { opacity: 1; transform: none; } .bpm-pend .bp-gauge__val { stroke-dasharray: none; stroke-dashoffset: 0; } .bpm-pend .bp-gauge__node { opacity: 1; } }
