/* Section 02, All the strategy (strategy.js): six topics down the left, the scene for the active one on the right.
   It auto-advances until someone clicks. House style: stone section, ink rules, serif heads, mono labels. */
.st-sec { background: var(--soft); color: var(--ink); padding: 200px 0; }
.st { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: stretch; }

/* the topics: the active one turns ink, opens to its finding and cites, and its bar fills over its time on screen
   (the bar's width is driven from strategy.js while it auto-advances) */
.st-list { list-style: none; border-bottom: 1px solid #cfccc5; }
.st-list.measure, .st-list.measure * { transition: none !important; }
.st-list button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 26px 0 24px; border-top: 1px solid #cfccc5; position: relative; }
.st-list .q { display: flex; align-items: baseline; gap: 16px; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; color: #75756f; transition: color .35s; }
.st-list .q b { flex: none; width: 22px; font: 500 11px var(--mono); letter-spacing: .12em; color: #9b9a96; transition: color .35s; }
.st-list button:hover .q, .st-list button.on .q, .st-list button.on .q b { color: var(--ink); }
.st-list .dw { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1); }
.st-list .dw > span { overflow: hidden; padding-left: 38px; }
.st-list .dw > span > * { opacity: 0; transition: opacity .3s; }
.st-list button.on .dw { grid-template-rows: 1fr; }
.st-list button.on .dw > span > * { opacity: 1; transition-delay: .15s; }
.st-list .d { display: block; padding-top: 12px; max-width: 420px; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.st-cites { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 2px; }
.st-cites span { font: 400 11.5px/1 var(--mono); color: var(--ink); border: 1px solid var(--rule-strong); background: var(--paper); padding: 7px 10px; }
.st-list .bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); opacity: 0; transition: width .5s cubic-bezier(.4,0,.2,1), opacity .35s; }
.st-list button.on .bar { width: 100%; opacity: 1; }

/* the exhibit: as tall as the topic list (the list is held at its tallest state from strategy.js, so neither side
   moves as topics open and close); the scenes cross-fade in it, centred */
.st-stage { display: flex; align-items: center; background: #fbfaf7; border: 1px solid var(--ink); padding: 26px; }
.st-scenes { position: relative; flex: 1; aspect-ratio: 600 / 420; }
.st-sc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .3s ease; }
.st-sc.on { opacity: 1; transition-delay: .05s; }

/* scene vocabulary */
.st-sc .b rect { fill: #f6f5f1; stroke: var(--ink); stroke-width: 1; }
.st-sc .b.dash rect { stroke-dasharray: 5 4; fill: transparent; }
.st-sc .t { font: 400 17px var(--serif); fill: var(--ink); }
.st-sc .s { font: 400 11px var(--mono); fill: var(--text-2); }
.st-sc .lab { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--text-2); }
.st-sc .foot { font: 400 13px var(--sans); fill: var(--text-2); }
.st-sc .zone { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 6 5; }
.st-sc .zone.unr { stroke: #9b9a96; fill: #efeee9; }
.st-sc .ln { fill: none; stroke: #6b6b67; stroke-width: 1.1; }
.st-sc .tag { font: 500 11.5px var(--mono); fill: var(--ink); }
.st-sc .tag.mute { fill: #9b9a96; }
/* entrance helpers: they run each time a scene comes on, in the order their --d delays set */
.st-sc.on .pop { animation: st-pop .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.st-sc.on .draw { stroke-dasharray: 1; animation: st-draw .9s cubic-bezier(.4,0,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes st-pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes st-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* 2: openings — the rows, then each verdict stamps */
.st-sc .mvrow .rowbg { fill: #f6f5f1; stroke: #d3d1cb; }
.st-sc .mvrow.blk .t, .st-sc .mvrow.blk .s { fill: #9b9a96; }
.st-sc .mvchip rect { fill: #f6f5f1; stroke: var(--ink); }
.st-sc .mvchip .v { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.st-sc .mvchip.open rect { fill: var(--ink); }
.st-sc .mvchip.open .v { fill: var(--paper); }
.st-sc .mvchip.vote rect { fill: #fbfaf7; }
.st-sc .mvchip.blk rect { stroke: #b9b8b2; }
.st-sc .mvchip.blk .v { fill: #9b9a96; }
.st-sc .stamp { transform-box: fill-box; transform-origin: center; }
.st-sc.on .stamp { animation: st-stamp .55s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: var(--d, 0s); }
@keyframes st-stamp { from { opacity: 0; transform: scale(1.35); } }
/* 3: size — the total counts up (strategy.js) while the bars grow one at a time */
.st-sc .big { font: 400 64px var(--serif); letter-spacing: -.03em; fill: var(--ink); font-variant-numeric: tabular-nums; }
.st-sc .sub { font: 400 15px var(--sans); fill: var(--text-2); }
.st-sc .track { fill: #ecebe6; }
.st-sc .bar { fill: var(--ink); transform-box: fill-box; transform-origin: left; }
.st-sc.on .bar { animation: st-grow 1.2s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes st-grow { from { transform: scaleX(0); } }
.st-sc .amt { font: 500 12.5px var(--mono); fill: var(--ink); }
.st-sc .amt.inbar { fill: var(--paper); }
/* 4: the move — IP Co lifts out, new money attaches, the three steps follow */
.st-sc.on .mv { animation: st-move 1.2s cubic-bezier(.6,0,.2,1) .6s both; }
@keyframes st-move { to { transform: translate(234px, 0); } }
.st-sc.on .ipco rect { animation: st-ink .5s ease 1.7s both; }
.st-sc.on .ipco .t { animation: st-paper .5s ease 1.7s both; }
.st-sc.on .ipco .s { animation: st-paper2 .5s ease 1.7s both; }
@keyframes st-ink { to { fill: #121314; } }
@keyframes st-paper { to { fill: #f3f2ef; } }
@keyframes st-paper2 { to { fill: #c3c4c1; } }
.st-sc .arc { fill: none; stroke: #b39a52; stroke-width: 1.4; }
.st-sc .newm rect { fill: #efe6cf; stroke: #b39a52; }
.st-sc .num { fill: var(--ink); }
.st-sc .numt { font: 500 12px var(--mono); fill: var(--paper); }
/* 5: downside — base bars, then each tranche's after bar shrinks to its new value */
.st-sc .key.base, .st-sc .basebar { fill: #b9b8b2; }
.st-sc .key.aftk, .st-sc .aft { fill: var(--ink); }
.st-sc .aft { transform-box: fill-box; transform-origin: left; transform: scaleX(var(--to)); }
.st-sc.on .aft { animation: st-shrink 1.4s cubic-bezier(.6,0,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes st-shrink { from { transform: scaleX(var(--from)); } }
.st-sc .cents { font: 500 14px var(--mono); fill: var(--ink); }
.st-sc .cents.hit, .st-sc .pl.hit { fill: #c0392b; }
/* 6: the trade — today's price against the range of recovery */
.st-sc .grid { stroke: #dcdad4; stroke-width: 1; stroke-dasharray: 3 3; }
.st-sc .range { fill: none; stroke: var(--ink); stroke-width: 4; }
.st-sc .solid { fill: var(--ink); }
.st-sc .hollow { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.8; }
.st-sc .price { stroke: #c0392b; stroke-width: 2.2; }
.st-sc .pricet { font: 500 12px var(--mono); fill: #c0392b; }
.st-sc .pl { font: 500 13px var(--mono); fill: var(--ink); }

/* tablet / phone: the exhibit sits above the topics */
@media (max-width: 900px) {
  .st-sec { padding: 120px 0; }
  .st { grid-template-columns: 1fr; gap: 24px; }
  .st-stage { order: -1; padding: 14px; scroll-margin-top: 80px; }
  .st-list .q { font-size: 24px; }
}
@media (max-width: 560px) {
  .st-sec { padding: 96px 0; }
  .st-list button { padding: 20px 0 18px; }
  .st-list .q { font-size: 22px; }
  .st-list .d { font-size: 15px; }
}
