/* ch-open styles (round 3, scenes 1 to 4: cover, es-reads, es-first, levers). Every selector starts with an oc- class. */

/* ---------- shared within this chapter ---------- */
.oc-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* copy that replaces itself per beat shares one grid cell, so the side never jumps */
.oc-stack { display: grid; align-items: start; min-width: 0; }
.oc-stack > * { grid-area: 1 / 1; min-width: 0; }
.oc-cite { display: grid; gap: 2px; }
.oc-readsL .mx-note, .oc-efL .mx-note, .oc-levL .mx-note { color: rgb(255 255 255 / .8); }
.oc-readsL .mx-src, .oc-efL .mx-src { color: rgb(255 255 255 / .6); font-size: 14.5px; white-space: nowrap; }
/* labels pinned to 3D points: a soft dark plate, positioned every frame by transform (so no transform transition) */
.scene .oc-lab { z-index: 3; padding: 5px 10px; border-radius: 4px; background: rgb(8 8 10 / .78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.25; transition: opacity .5s var(--ease); }
.scene .oc-lab--big { font-size: 18px; padding: 5px 12px; }
.scene .oc-lab--warm { color: #FFD9C0; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .5); }
.scene .oc-chip { background: var(--cta); color: #fff; box-shadow: 0 10px 24px -12px rgb(255 127 50 / .8); }
.scene .oc-chip--lilac { background: #CDBDEB; color: #1d1631; box-shadow: 0 10px 24px -12px rgb(205 189 235 / .8); }

/* ================= 1 cover ================= */
.oc-coverL > .scene__inner { z-index: 2; }
.oc-coverL::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 68% 62% at 14% 86%, rgb(5 5 6 / .97) 0%, rgb(5 5 6 / .9) 38%, rgb(5 5 6 / .5) 64%, rgb(5 5 6 / 0) 86%),
    radial-gradient(ellipse 60% 48% at 12% 9%, rgb(5 5 6 / .97) 0%, rgb(5 5 6 / .9) 38%, rgb(5 5 6 / .55) 68%, rgb(5 5 6 / 0) 100%),
    linear-gradient(180deg, rgb(5 5 6 / .7) 0, rgb(5 5 6 / 0) 16%), linear-gradient(0deg, rgb(5 5 6 / .75) 0, rgb(5 5 6 / 0) 18%); }
.oc-cover.mx.mx--full { grid-template-rows: minmax(0, 1fr) auto auto; row-gap: clamp(12px, 2vh, 22px); }
.oc-cover.mx .mx-t { grid-row: 2; align-self: end; max-width: none; font-size: clamp(56px, min(9vw, 17vh), 150px); line-height: .92; letter-spacing: -.045em; }
.oc-cover.mx .mx-side { grid-row: 3; max-width: 34em; }
.oc-cover__promise { font-size: clamp(19px, 1.75vw, 28px); line-height: 1.3; letter-spacing: -.012em; color: rgb(255 255 255 / .86); max-width: 21em; text-wrap: balance; }
/* the heading and promise keep a dark halo of their own, so a bright card drifting behind never washes them out */
.oc-cover.mx .mx-t, .oc-cover__promise { text-shadow: 0 2px 18px rgb(5 5 6 / .85), 0 0 42px rgb(5 5 6 / .7); }

/* ================= 2 es-reads ================= */
.oc-readsV .oc-scrim { background: linear-gradient(90deg, rgb(5 5 6 / .92) 0%, rgb(5 5 6 / .6) 26%, rgb(5 5 6 / 0) 46%), linear-gradient(0deg, rgb(5 5 6 / .85) 0%, rgb(5 5 6 / 0) 26%); }
.oc-reads.mx.mx--full { grid-template-rows: auto auto minmax(0, 1fr); }
/* the left cell stretches over the free row; the card is sized to it in JS (--cw, --ih) */
.oc-reads__left { grid-row: 3; grid-column: 1; align-self: stretch; justify-self: start; display: flex; align-items: center; min-height: 0; position: relative; z-index: 2; }
.oc-reads__ad { position: relative; width: var(--cw); --cw: 260px; --ih: 200px; --top: 48px; }
.oc-reads__card { width: 100%; }
.oc-reads__card .mx-ad__img { aspect-ratio: auto; height: var(--ih); }
.oc-reads__card .mx-ad__h { font-size: 15px; }
.oc-reads__w { color: #C4520F; box-shadow: inset 0 -2px 0 var(--cta); padding: 0 1px; }
.oc-reads__tag { position: absolute; left: calc(100% + 28px); top: var(--y); display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 4px;
  background: #fff; color: #111; font-size: 15px; white-space: nowrap; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .7);
  opacity: 0; transform: translate(12px, -50%); transition: opacity .5s var(--ease) calc(var(--i) * .32s), transform .6s var(--ease) calc(var(--i) * .32s); }
.oc-reads__tag b { font-weight: 500; }
.oc-reads__line { position: absolute; right: 100%; top: 50%; height: 1.5px; margin-top: -.75px; width: calc(var(--cw) * (1 - var(--tx)) + 28px); background: var(--cta);
  transform-origin: right; transform: scaleX(0); transition: transform .55s var(--ease) calc(var(--i) * .32s + .1s); }
.oc-reads__line::before { content: ""; position: absolute; left: -4px; top: -3.25px; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px rgb(255 127 50 / .3); }
.oc-reads__ad.is-tags .oc-reads__tag { opacity: 1; transform: translate(0, -50%); }
.oc-reads__ad.is-tags .oc-reads__line { transform: scaleX(1); }
.oc-reads__tag--f { --y: calc(var(--top) * .5); --tx: 1; }
.oc-reads__tag--s { --y: max(calc(var(--top) + var(--ih) * .3), calc(var(--top) * .5 + 34px)); --tx: .82; }
.oc-reads__tag--p { --y: max(calc(var(--top) + var(--ih) * .62), calc(var(--top) * .5 + 68px)); --tx: .54; }
.oc-reads__tag--w { --y: calc(100% - 22px); --tx: .62; }
.oc-reads.mx .mx-side { grid-row: 2; max-width: 31em; }
/* the region labels and the key over the crowd */
.scene .oc-reads__lab { padding: 5px 11px; font-size: 16px; background: var(--cta); color: #fff; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .8); opacity: 0; transition: opacity .5s var(--ease), background .5s, color .5s; }
.scene .oc-reads__lab.is-on { opacity: 1; }
.scene .oc-reads__lab.is-dim { opacity: 1; background: rgb(40 40 44 / .92); color: rgb(255 255 255 / .74); box-shadow: none; }
.scene .oc-reads__ppl { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 14.5px; color: rgb(255 255 255 / .85); background: rgb(14 14 16 / .78); }
.oc-reads__ppl span { display: inline-flex; align-items: center; gap: 7px; }
.oc-reads__ppl i { width: 6px; height: 6px; border-radius: 50%; background: #B9BBC2; box-shadow: 9px 0 0 #B9BBC2, 4.5px -7px 0 #B9BBC2; margin-right: 10px; margin-top: 6px; }

/* ================= 3 es-first: the lens and the prisms ================= */
.oc-efL .oc-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .9) 0, rgb(5 5 6 / .7) 22%, rgb(5 5 6 / 0) 42%); }
.oc-ef.mx .mx-side { max-width: min(100%, 64em); }
.oc-ef.mx .mx-note { max-width: 30em; text-wrap: pretty; }
.oc-ef__b3 { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); }
.oc-ef__b3 .mx-note { flex: 0 1 22em; }
.oc-ef__stat { flex: none; display: flex; align-items: center; gap: clamp(12px, 1.2vw, 18px); }
.oc-ef__num { font-size: clamp(40px, 4.2vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--cta); font-variant-numeric: tabular-nums; min-width: 3.1em; }
.oc-ef__lbl { display: grid; gap: 2px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.32; color: #fff; }
.oc-ef__lbl .mx-src--line { margin-top: 0; }

/* ================= 4 levers: the lever city ================= */
.oc-levL .oc-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .88) 0, rgb(5 5 6 / .6) 26%, rgb(5 5 6 / 0) 44%); }
.scene .oc-lev__lab { padding: 4px 9px; font-size: 15px; opacity: 0; background: rgb(10 10 12 / .8); }
.scene .oc-lev__lab { box-sizing: border-box; white-space: normal; text-align: center; line-height: 1.15; }
.scene .oc-lev__lab .oc-nw { white-space: nowrap; }
.scene .oc-lev__lab.is-top { background: var(--cta); color: #fff; box-shadow: 0 10px 24px -12px rgb(255 127 50 / .8); }
.scene .oc-lev__lab.is-on { opacity: 1; }
.scene .oc-lev__band { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; padding: 5px 11px 5px 9px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.scene .oc-lev__axis { font-size: 15px; color: rgb(255 255 255 / .88); background: rgb(10 10 12 / .7); }
.scene .oc-lev__band::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* short frames (under 760 px tall, not phones): title and note in a left column, the city fills the right (set in JS) */
.oc-levL.oc-lev--col .oc-lev.mx.mx--full { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.deck[data-layout="desktop"] .oc-levL.oc-lev--col .oc-lev.mx.mx--full { grid-template-columns: minmax(0, 31%) minmax(0, 1fr); }
@media (max-width: 1199px) { .deck[data-layout="desktop"] .oc-levL.oc-lev--col .oc-lev.mx.mx--full { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); } }
.deck[data-layout="desktop"] .oc-levL.oc-lev--col .oc-lev__lab { font-size: 14.5px; padding: 3px 7px; }
.oc-levL.oc-lev--col .oc-lev.mx .mx-t { grid-column: 1; grid-row: 1; max-width: none; }
.oc-levL.oc-lev--col .oc-lev.mx .mx-side { grid-column: 1; grid-row: 2; align-self: start; max-width: none; }
.oc-levL.oc-lev--col .oc-scrim { background: linear-gradient(90deg, rgb(5 5 6 / .85) 0, rgb(5 5 6 / .6) 30%, rgb(5 5 6 / 0) 42%); }

/* ================= compact: landscape below 960 x 600 ================= */
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 619px) {
  .oc-coverL::after { background: radial-gradient(ellipse 78% 72% at 14% 86%, rgb(5 5 6 / .96) 0%, rgb(5 5 6 / .86) 38%, rgb(5 5 6 / .45) 64%, rgb(5 5 6 / 0) 86%),
    radial-gradient(ellipse 66% 54% at 12% 10%, rgb(5 5 6 / .97) 0%, rgb(5 5 6 / .9) 38%, rgb(5 5 6 / .55) 68%, rgb(5 5 6 / 0) 100%),
    linear-gradient(180deg, rgb(5 5 6 / .7) 0, rgb(5 5 6 / 0) 18%), linear-gradient(0deg, rgb(5 5 6 / .8) 0, rgb(5 5 6 / 0) 22%); }
  .scene .oc-lab { font-size: 14.5px; padding: 4px 8px; }
  .scene .oc-lab--big { font-size: 16px; }
  /* es-reads: title and note share the top row; card and crowd share the second */
  .oc-reads.mx .mx-side { max-width: 36em; }
  .oc-reads__ad { --top: 40px; }
  .oc-reads__card .mx-ad__top { padding: 7px 10px; }
  .oc-reads__card .mx-ad__av { width: 24px; height: 24px; }
  .oc-reads__card .mx-ad__foot { padding: 7px 10px; }
  .oc-reads__card .mx-ad__h { font-size: 14.5px; }
  .oc-reads__card .mx-ad__cta { width: 38px; height: 22px; }
  .oc-reads__tag { left: calc(100% + 22px); height: 27px; padding: 0 9px; font-size: 14.5px; }
  .oc-reads__line { width: calc(var(--cw) * (1 - var(--tx)) + 22px); }
  .oc-readsV .oc-scrim { background: linear-gradient(90deg, rgb(5 5 6 / .9) 0%, rgb(5 5 6 / .5) 30%, rgb(5 5 6 / 0) 48%), linear-gradient(180deg, rgb(5 5 6 / .8) 0%, rgb(5 5 6 / 0) 34%); }
  .scene .oc-reads__lab { font-size: 15px; padding: 4px 9px; }
  .scene .oc-reads__ppl { font-size: 14.5px; padding: 3px 8px; }
  /* es-first: the stat sits inline after the note */
  .oc-ef__num { font-size: clamp(30px, 4vw, 40px); }
  .oc-ef__lbl { font-size: 14.5px; line-height: 1.28; }
  .oc-ef__b3 { gap: 18px; }
  .scene .oc-lev__lab { font-size: 14.2px; padding: 1px 5px; line-height: 1.2; }
  .scene .oc-lev__band { font-size: 14.5px; padding: 3px 8px 3px 7px; }
}
@media (orientation: landscape) and (max-height: 459px) {
  .oc-levL.oc-lev--col .oc-lev.mx.mx--full { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); row-gap: 6px; }
  /* es-reads in very short frames: the note sits beside the title (still at the top), so the card keeps its height */
  .oc-reads.mx.mx--full { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 36px); }
  .oc-reads.mx .mx-t { grid-column: 1; grid-row: 1; }
  .oc-reads.mx .mx-side { grid-column: 2; grid-row: 1; align-self: start; max-width: none; }
  .oc-reads__left { grid-column: 1 / -1; grid-row: 2; }
  .oc-levL.oc-lev--col .oc-lev.mx .mx-note { line-height: 1.3; }
  /* es-reads in very short frames: a slimmer card whose four tags still keep 27 px apart */
  .oc-reads.mx .mx-note { line-height: 1.3; }
  .oc-reads .oc-cite .mx-src--line { margin-top: 0; }
  .oc-reads__ad { --top: 28px; }
  .oc-reads__card .mx-ad__top { padding: 5px 8px; gap: 6px; }
  .oc-reads__card .mx-ad__av { width: 18px; height: 18px; }
  .oc-reads__card .mx-ad__who { gap: 3px; }
  .oc-reads__card .mx-ad__foot { padding: 5px 8px; }
  .oc-reads__card .mx-ad__h { font-size: 14px; line-height: 1.22; }
  .oc-reads__card .mx-ad__cta { display: none; }
  .oc-reads__tag { height: 25px; padding: 0 8px; font-size: 14px; }
  .oc-reads__tag--s { --y: max(calc(var(--top) + var(--ih) * .3), calc(var(--top) * .5 + 27px)); }
  .oc-reads__tag--p { --y: max(calc(var(--top) + var(--ih) * .62), calc(var(--top) * .5 + 54px)); }
  .oc-reads__tag--w { --y: max(calc(100% - 17px), calc(var(--top) * .5 + 81px)); }
}

/* ================= phone: portrait under 760 px ================= */
@media (max-width: 759px) and (orientation: portrait) {
  .oc-cover.mx .mx-t { font-size: clamp(56px, 17vw, 76px); }
  .oc-cover__promise { font-size: 19px; }
  .oc-coverL::after { background: linear-gradient(0deg, rgb(5 5 6 / .94) 0%, rgb(5 5 6 / .7) 32%, rgb(5 5 6 / 0) 56%), linear-gradient(180deg, rgb(5 5 6 / .92) 0%, rgb(5 5 6 / .7) 18%, rgb(5 5 6 / 0) 34%); }
  .scene .oc-lab { font-size: 14.5px; padding: 4px 8px; }
  .scene .oc-lab--big { font-size: 16px; }

  .oc-readsV .oc-scrim { background: linear-gradient(180deg, rgb(5 5 6 / 0) 55%, rgb(5 5 6 / .85) 80%), linear-gradient(180deg, rgb(5 5 6 / .6) 0%, rgb(5 5 6 / 0) 40%); }
  .oc-reads.mx.mx--full { grid-template-rows: auto auto minmax(0, 1fr); row-gap: 12px; }
  .oc-reads__left { grid-row: 3; align-self: start; }
  .oc-reads.mx .mx-side { grid-row: 2; }
  .oc-reads__ad { --top: 40px; }
  .oc-reads__card .mx-ad__top { padding: 7px 10px; }
  .oc-reads__card .mx-ad__av { width: 24px; height: 24px; }
  .oc-reads__card .mx-ad__foot { padding: 7px 10px; }
  .oc-reads__card .mx-ad__h { font-size: 14.5px; }
  .oc-reads__card .mx-ad__cta { width: 34px; height: 22px; }
  .oc-reads__tag { left: calc(100% + 18px); height: 27px; padding: 0 9px; font-size: 14.5px; }
  .oc-reads__line { width: calc(var(--cw) * (1 - var(--tx)) + 18px); }
  .scene .oc-reads__lab { font-size: 14.5px; padding: 4px 9px; }

  .oc-ef__b3 { flex-direction: column; align-items: flex-start; gap: 10px; }
  .oc-ef__b3 .mx-note { flex: none; }
  .oc-ef__num { font-size: 34px; }
  .oc-ef__lbl { font-size: 14.5px; }
  .oc-efL .oc-ef__lbl .mx-src { white-space: normal; }
  .scene .oc-lev__lab { font-size: 14.5px; padding: 2px 6px; }
  .scene .oc-lev__band { font-size: 14.5px; padding: 3px 8px 3px 7px; }
}

/* reduced motion: staggered delays go too, so end states show at once */
@media (prefers-reduced-motion: reduce) {
  .oc-reads__tag, .oc-reads__line { transition-delay: 0s !important; }
}
