/* ─────────────────────────────────────────────────────────────────────────────
   Landing · triggers (#which-one), 2026-11-04 — one picture (the broker phone), the trigger as text,
   and no wasted space.
   · The photo cards are gone (two competing stories confused new visitors).
   · Phones: the pinned stage is heading → phone (takes all spare height) → a compact text block flush above
     the dock. Desktop: one screen, two columns — heading, the 7 triggers and the bridge on the left; the phone
     on the right spanning the full height. No full-width rows.
   · Each story's punchline ("THE COST") lands INSIDE the phone's empty lower screen on its third beat
     (.bx-costcard), so no space is reserved for it outside. The same lines stay in #bxText for screen
     readers (the phone is aria-hidden).
   State: #bxStage[data-s][data-beat] and #bxText[data-s][data-beat], set by dx-engine.js (phone IIFE).
   ───────────────────────────────────────────────────────────────────────────── */
#which-one .trigger-atlas-stage, #which-one .trigger-causes-connector{ display: none !important; }

/* ── the trigger text (shared) ── */
.bx-go{ display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bx-tk{ display: flex; align-items: center; gap: 10px; }
.bx-chip{ display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); letter-spacing: .1em; color: var(--red); }
.bx-chip::before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bx-n{ font: 500 11px var(--mono); letter-spacing: .08em; color: var(--muted); }
.bx-q{ display: block; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; color: var(--cream); }
.bx-i{ margin: 4px 0 0; color: var(--cream-dim); line-height: 1.4; }
.bx-r{ margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.bx-r a{ color: var(--gold); }
.bx-go:focus-visible{ outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
/* the cost lines are read out from here; they are shown inside the phone */
.bx-c{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes bxTxt{ from{ opacity: 0; transform: translateY(6px); } }

/* progress through the seven stories (bars filled by dx-engine.js) */
.bx-prog{ display: flex; gap: 4px; margin: 0 0 10px; }
.bx-prog i{ flex: 1; height: 3px; border-radius: 2px; background: var(--line-light); overflow: hidden; }
.bx-prog b{ display: block; height: 100%; background: var(--red); transform-origin: left center; transform: scaleX(0); }

/* ── the cost, inside the phone: a P&L card rising into the empty lower screen on the third beat ── */
#which-one .bx-costcard{ position: absolute; z-index: 7; left: 12px; right: 12px; bottom: 40px; padding: 11px 13px 12px; border-radius: 14px;
  background: rgba(32, 14, 14, .94); border: 1px solid rgba(255, 90, 78, .45); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8);
  font-family: system-ui, -apple-system, Roboto, "Segoe UI", sans-serif; color: #ffd9d4;
  opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
#which-one .bx-costcard .bx-ck{ display: block; font: 700 10px var(--mono); letter-spacing: .12em; color: #ff5a4e; margin-bottom: 4px; }
#which-one .bx-costcard p{ display: none; margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
#which-one .bx-stage[data-beat="2"] .bx-costcard{ opacity: 1; transform: none; }
#which-one .bx-stage[data-s="0"] .bx-costcard p[data-s="0"], #which-one .bx-stage[data-s="1"] .bx-costcard p[data-s="1"],
#which-one .bx-stage[data-s="2"] .bx-costcard p[data-s="2"], #which-one .bx-stage[data-s="3"] .bx-costcard p[data-s="3"],
#which-one .bx-stage[data-s="4"] .bx-costcard p[data-s="4"], #which-one .bx-stage[data-s="5"] .bx-costcard p[data-s="5"],
#which-one .bx-stage[data-s="6"] .bx-costcard p[data-s="6"]{ display: block; }
#which-one .bx-caps{ display: none; }

/* ── phones: heading → phone (all spare height) → compact text, flush above the dock ── */
@media (max-width: 760px){
  #which-one .mirrors-head-row{ margin-bottom: 8px; }
  #which-one .bx-room{ display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  #which-one .bx-room > .bx-stage{ flex: 1 1 auto; min-height: 280px; }
  #which-one .bx-stage::after{ bottom: 0; }
  #which-one .bx-text{ flex: none; padding: 10px 2px 10px; }
  .bx-tset{ display: none; }
  .bx-text[data-s="0"] .bx-tset[data-s="0"], .bx-text[data-s="1"] .bx-tset[data-s="1"], .bx-text[data-s="2"] .bx-tset[data-s="2"],
  .bx-text[data-s="3"] .bx-tset[data-s="3"], .bx-text[data-s="4"] .bx-tset[data-s="4"], .bx-text[data-s="5"] .bx-tset[data-s="5"],
  .bx-text[data-s="6"] .bx-tset[data-s="6"]{ display: block; animation: bxTxt .28s var(--ease) both; }
  .bx-q{ margin-top: 5px; font-size: clamp(19px, 5.4vw, 22px); line-height: 1.18; }
  .bx-i{ font-size: 13.5px; }
  .bx-r{ font-size: 11px; margin-top: 4px; }
  .bx-go{ cursor: default; }
}

/* ── desktop: one screen, two columns, no full-width rows ── */
@media (min-width: 761px){
  #which-one.mirrors{ padding: 40px 0; }
  #which-one .trigger-mobile-hud{ display: none !important; }
  #which-one .wrap{ display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 400px); grid-template-rows: auto 1fr auto;
    column-gap: clamp(40px, 6vw, 104px); justify-content: center; align-items: start; }
  #which-one .mirrors-head-row{ grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 22px; }
  #which-one .bx-room{ display: contents; }
  #which-one .bx-text{ grid-column: 1; grid-row: 2; display: flex; flex-direction: column; }
  #which-one .trigger-bottom-bridge{ grid-column: 1; grid-row: 3; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; }
  #which-one .trigger-bottom-bridge .mirror-next{ margin: 0; }
  /* the phone spans the column's full height and the whole section fits one screen */
  #which-one .wrap > .bx-room > .bx-stage, #which-one .bx-room > .bx-stage{ grid-column: 2; grid-row: 1 / span 3; align-self: start;
    height: calc(min(620px, 100vh - var(--nav-h, 58px) - 80px) / 1.1); min-height: 400px; zoom: 1.1; }

  .bx-prog{ display: none; }
  .bx-tset{ position: relative; padding: 8px 0 8px 20px; border-left: 2px solid var(--line-light); }
  .bx-tset .bx-chip{ color: var(--muted); }
  .bx-tset .bx-n{ display: none; }
  .bx-q{ margin-top: 3px; font-size: 16.5px; line-height: 1.3; color: var(--muted); transition: color .25s; }
  .bx-i, .bx-r{ display: none; }
  .bx-tset:hover .bx-q{ color: var(--cream-dim); }
  .bx-tset::before{ content: ''; position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: var(--red); }
  .bx-text[data-s="0"] .bx-tset[data-s="0"], .bx-text[data-s="1"] .bx-tset[data-s="1"], .bx-text[data-s="2"] .bx-tset[data-s="2"],
  .bx-text[data-s="3"] .bx-tset[data-s="3"], .bx-text[data-s="4"] .bx-tset[data-s="4"], .bx-text[data-s="5"] .bx-tset[data-s="5"],
  .bx-text[data-s="6"] .bx-tset[data-s="6"]{ border-left-color: rgba(255, 138, 126, .28); padding-top: 10px; padding-bottom: 10px; }
  /* the lit trigger: its rail fills while its story plays */
  .bx-text[data-s="0"] .bx-tset[data-s="0"]::before, .bx-text[data-s="1"] .bx-tset[data-s="1"]::before, .bx-text[data-s="2"] .bx-tset[data-s="2"]::before,
  .bx-text[data-s="3"] .bx-tset[data-s="3"]::before, .bx-text[data-s="4"] .bx-tset[data-s="4"]::before, .bx-text[data-s="5"] .bx-tset[data-s="5"]::before,
  .bx-text[data-s="6"] .bx-tset[data-s="6"]::before{ height: calc(var(--bxq, 1) * 100%); }
  .bx-text[data-s="0"] .bx-tset[data-s="0"] .bx-chip, .bx-text[data-s="1"] .bx-tset[data-s="1"] .bx-chip, .bx-text[data-s="2"] .bx-tset[data-s="2"] .bx-chip,
  .bx-text[data-s="3"] .bx-tset[data-s="3"] .bx-chip, .bx-text[data-s="4"] .bx-tset[data-s="4"] .bx-chip, .bx-text[data-s="5"] .bx-tset[data-s="5"] .bx-chip,
  .bx-text[data-s="6"] .bx-tset[data-s="6"] .bx-chip{ color: var(--red); }
  .bx-text[data-s="0"] .bx-tset[data-s="0"] .bx-q, .bx-text[data-s="1"] .bx-tset[data-s="1"] .bx-q, .bx-text[data-s="2"] .bx-tset[data-s="2"] .bx-q,
  .bx-text[data-s="3"] .bx-tset[data-s="3"] .bx-q, .bx-text[data-s="4"] .bx-tset[data-s="4"] .bx-q, .bx-text[data-s="5"] .bx-tset[data-s="5"] .bx-q,
  .bx-text[data-s="6"] .bx-tset[data-s="6"] .bx-q{ color: var(--cream); font-size: clamp(21px, 2vw, 26px); line-height: 1.22; }
  .bx-text[data-s="0"] .bx-tset[data-s="0"] :is(.bx-i, .bx-r), .bx-text[data-s="1"] .bx-tset[data-s="1"] :is(.bx-i, .bx-r),
  .bx-text[data-s="2"] .bx-tset[data-s="2"] :is(.bx-i, .bx-r), .bx-text[data-s="3"] .bx-tset[data-s="3"] :is(.bx-i, .bx-r),
  .bx-text[data-s="4"] .bx-tset[data-s="4"] :is(.bx-i, .bx-r), .bx-text[data-s="5"] .bx-tset[data-s="5"] :is(.bx-i, .bx-r),
  .bx-text[data-s="6"] .bx-tset[data-s="6"] :is(.bx-i, .bx-r){ display: block; animation: bxTxt .28s var(--ease) both; }
  .bx-i{ font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce){
  #which-one .bx-costcard{ transition: none; }
  .bx-q{ transition: none; }
  .bx-text .bx-tset, .bx-text .bx-i, .bx-text .bx-r{ animation: none !important; }
}
@media (min-width: 761px){
  /* bridge: pill and link on one left-aligned row, so the left column ends with the phone */
  #which-one .trigger-bottom-bridge{ flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
  #which-one .trigger-bridge-pill{ margin: 0; }
  #which-one .trigger-bottom-bridge .mirror-next{ justify-content: flex-start; }
}
