/* River Business family of sites — page sections. Loaded after site.css. */
/* ---------- River line ---------- */
.river-wrap { position: relative; }
.river-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.river-ghost { fill: none; stroke: rgba(242, 163, 58, 0.3); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.river-path { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242, 163, 58, 0.5)); }
.river-head { fill: var(--amber); filter: drop-shadow(0 0 10px rgba(242, 163, 58, 0.95)); }
.no-river .river-svg { display: none; }
[data-site="ffe"] .t-amber { --river-hide: 1; }
.river-node {
  position: absolute; z-index: 3; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--amber); background: var(--bg, var(--ink));
  transform: translate(-50%, -50%); transition: background-color .4s, box-shadow .4s;
}
.river-node.is-lit { background: var(--amber); box-shadow: 0 0 0 6px rgba(242, 163, 58, 0.18); }
.t-amber .river-node { border-color: var(--ink); }
.t-amber .river-node.is-lit { background: var(--ink); box-shadow: 0 0 0 6px rgba(15,27,45,.16); }
.section-head > .river-node, .people-copy > .river-node, .head-node { left: calc(var(--gutter) * -0.5); top: 0.62em; font-size: clamp(2.05rem, 4.5vw, 4rem); }
.river-node.river-way { width: 2px; height: 2px; border: 0; background: transparent; box-shadow: none; opacity: 0; pointer-events: none; }
.sec > .river-way.way-end { left: calc(var(--gutter) * 0.5); top: auto; bottom: 30px; }
.door-row > .river-way { left: calc(var(--gutter) * -0.5); top: auto; bottom: -44px; }
.process-grid > .way-top { left: calc(var(--gutter) * -0.5); top: 0; }
.process-grid > .way-end { left: calc(var(--gutter) * -0.5); top: auto; bottom: -50px; }

/* ---------- Statement ---------- */
.statement { position: relative; padding: var(--section-pad) var(--gutter); }
.statement > .river-node { left: calc(var(--gutter) * 0.5); top: calc(var(--section-pad) + 22px); }
.statement-text {
  position: relative; z-index: 2; font: 600 clamp(1.7rem, 3.5vw, 3.3rem)/1.14 var(--display); font-stretch: 104%;
  letter-spacing: -0.012em; max-width: 30ch;
}
.statement-text .w { transition: opacity .2s linear; }
.statement-cite { position: relative; z-index: 2; margin-top: 28px; color: var(--fg-soft); }

/* ---------- Split: picture and words ---------- */
.split { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-media); overflow: hidden; background: var(--navy); aspect-ratio: 5 / 4; }
.split-media.wide { aspect-ratio: 16 / 10; }
.split-media > img, .split-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.split-copy h2 { font: 800 clamp(1.9rem, 3.6vw, 3.3rem)/1.02 var(--display); font-stretch: 114%; letter-spacing: -0.02em; margin-bottom: 0.45em; }
.split-copy > p { font-size: 1.1rem; color: var(--fg-soft); max-width: 50ch; }
.split-copy > p + p { margin-top: 0.85em; }
.split-copy .btn-row { margin-top: 26px; }
.split + .split { margin-top: clamp(72px, 10vw, 150px); }
.split-head { position: relative; }
.split-head > .river-node { left: calc(var(--gutter) * -0.5); top: 0.6em; }

/* Plain list with marks */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 56ch; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }
.t-amber .ticks li::before { background: var(--ink); }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: none; }
.ticks strong { color: var(--fg); font-weight: 600; }

/* ---------- Rows: a title and a paragraph, lines drawn as you read ---------- */
.rows { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 12px clamp(24px, 5vw, 80px);
  padding: clamp(26px, 3vw, 40px) 0; align-items: start;
}
.row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.rows > .row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.motion .row::before { transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
.motion .row.is-in::before { transform: scaleX(1); }
.row h3 { font: 800 clamp(1.3rem, 2.1vw, 1.9rem)/1.08 var(--display); font-stretch: 108%; letter-spacing: -0.012em; }
.row p { color: var(--fg-soft); max-width: 60ch; }
.row p + p, .row p + .ticks { margin-top: 10px; }
.row .row-tag { display: block; color: var(--fg-soft); font: 500 0.9rem/1.3 var(--body); margin-bottom: 8px; }
.rows.numbered { counter-reset: row; }
.rows.numbered .row h3::before {
  counter-increment: row; content: counter(row); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-right: 14px; vertical-align: 0.12em;
  border: 2px solid var(--accent); font: 700 0.95rem/1 var(--display); font-stretch: 100%;
}
.row-link { display: inline-block; margin-top: 14px; }

/* ---------- Trio: three equal options ---------- */
.trio { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.trio-item { position: relative; padding: 30px 0 0; border-top: 3px solid var(--line); }
.trio-item::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 64px; background: var(--accent); transition: width .8s var(--ease-out); }
.trio-item:hover::before { width: 100%; }
.trio-item h3 { font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.05 var(--display); font-stretch: 112%; margin-bottom: 0.5em; }
.trio-item p { color: var(--fg-soft); }
.trio-item .trio-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px; background: var(--navy); position: relative; }
.trio-item .trio-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.trio-item:hover .trio-img img { transform: scale(1.05); }

/* ---------- Doors (home) ---------- */
.doors .section-head p { color: var(--mist); }
.door-row { position: relative; z-index: 2; display: flex; gap: 12px; height: clamp(480px, 72vh, 660px); }
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-media); background: var(--navy); transition: flex-grow .8s var(--ease-out); }
.door-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: saturate(0.8) brightness(0.62); transition: transform 1.4s var(--ease-out), filter .8s; }
.door::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,27,45,0) 35%, rgba(15,27,45,.92) 100%); }
.door-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.2vw, 30px); color: var(--sand); }
.door-body::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--door, var(--amber)); margin-bottom: 16px; }
.door-q { color: var(--mist); font-size: 0.95rem; margin-bottom: 6px; }
.door h3 { font: 800 clamp(1.25rem, 1.55vw, 1.7rem)/1.08 var(--display); font-stretch: 100%; letter-spacing: -0.01em; }
.door-text, .door-link { display: block; max-width: 40ch; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .5s, max-height .7s var(--ease-out), margin .7s var(--ease-out); }
.door-text { color: var(--mist); }
.door-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; width: max-content; }
.door-row:hover .door, .door-row:focus-within .door { flex-grow: 0.75; }
.door-row .door:is(:hover, :focus-within) { flex-grow: 2.1; }
.door:is(:hover, :focus-within) .door-img { transform: scale(1); filter: saturate(1) brightness(0.78); }
.door:is(:hover, :focus-within) .door-text { opacity: 1; max-height: 9em; margin-top: 12px; }
.door:is(:hover, :focus-within) .door-link { opacity: 1; max-height: 3em; margin-top: 14px; }

/* ---------- Process: sticky picture, steps along the river ---------- */
.process .section-head { margin-bottom: 0; }
.process-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.process-stage { position: sticky; top: 15vh; height: 70vh; margin-top: 12vh; border-radius: var(--radius-media); overflow: hidden; background: var(--ink); }
.stage-media { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .9s, transform 1.4s var(--ease-out); }
.stage-media.is-active { opacity: 1; transform: scale(1); }
.stage-media > img, .stage-media > video, .stage-media > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-bg { fill: var(--navy); }
.bp-draw { fill: none; stroke: var(--sand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bp-dim { stroke: var(--amber); }
.stage-media.is-active .bp-draw { animation: draw 2.6s var(--ease-out) forwards; }
.stage-media.is-active .bp-draw:nth-of-type(2) { animation-delay: .3s; }
.stage-media.is-active .bp-draw:nth-of-type(3) { animation-delay: .6s; }
.ps-bg { fill: var(--navy); }
.ps-sheet rect { fill: var(--sand); }
.ps-sheet path { fill: none; stroke: rgba(15, 27, 45, 0.22); stroke-width: 7; stroke-linecap: round; }
.ps-sheet .ps-check { stroke: var(--palm); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stage-media.is-active .ps-check { animation: draw 0.9s var(--ease-out) forwards 0.5s; }
.stage-media.is-active .ps-check + .ps-check { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.steps { list-style: none; margin: 0; padding: 4vh 0 16vh; }
.step { position: relative; min-height: 64vh; padding-left: 78px; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s; }
.step .step-num {
  left: 22px; top: 50%; width: 46px; height: 46px; display: grid; place-items: center; border-width: 2px;
  font: 700 1rem/1 var(--display); color: var(--fg);
}
.step .step-num.is-lit { background: var(--amber); color: var(--ink); }
.step h3 { font: 800 clamp(1.65rem, 3vw, 2.7rem)/1.02 var(--display); font-stretch: 112%; letter-spacing: -0.02em; margin-bottom: 0.35em; }
.step p { font-size: 1.12rem; max-width: 36ch; color: var(--fg-soft); }
.step p + p { margin-top: 0.6em; font-size: 1rem; }
.motion .step:not(.is-active) { opacity: 0.32; }

/* ---------- Proof and facts ---------- */
.proof-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.proof-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-item { border-top: 1px solid var(--line); padding-top: 24px; }
.proof-item dt { color: var(--fg-soft); font-size: 0.95rem; margin-bottom: 18px; min-height: 3em; }
.proof-num { font: 800 clamp(2.2rem, 4.2vw, 4rem)/1 var(--display); font-stretch: 118%; letter-spacing: -0.02em; }
.proof-num.is-small { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-stretch: 108%; line-height: 1.1; }
.proof-num.is-pending { color: transparent; -webkit-text-stroke: 1.5px currentColor; font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-stretch: 100%; }
.t-ink .proof-num.is-pending, .t-navy .proof-num.is-pending, .t-deep .proof-num.is-pending { -webkit-text-stroke-color: rgba(245, 241, 234, 0.6); }
.proof-note { margin-top: 12px; color: var(--fg-soft); font-size: 0.95rem; }

/* ---------- Marquee band ---------- */
.marquee { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 54px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); white-space: nowrap; width: max-content; will-change: transform; }
.marquee-track span {
  font: 900 clamp(2.6rem, 7.4vw, 7.6rem)/1 var(--display); font-stretch: 125%; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--fg-soft);
}
.marquee-track span.is-solid { color: var(--fg); -webkit-text-stroke: 0; }
.marquee-track i { flex: none; width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 50%; background: var(--accent); }

/* ---------- Stacking pictures ---------- */
.projects .section-head { margin-left: var(--gutter); margin-right: var(--gutter); }
.projects .section-head p { color: var(--mist); }
.stack { position: relative; z-index: 2; }
.stack-panel { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); color: var(--sand); }
.stack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center 30%; }
.stack-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,27,45,.35) 0%, rgba(15,27,45,0) 30%, rgba(15,27,45,.6) 100%); }
.stack-panel .media-tag { top: 96px; left: var(--gutter); }
.stack-card {
  position: absolute; z-index: 2; left: var(--gutter); bottom: var(--gutter); width: min(520px, calc(100% - 2 * var(--gutter)));
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-media);
  background: rgba(15, 27, 45, 0.8); border: 1px solid rgba(245, 241, 234, 0.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.stack-place { color: var(--mist); font-size: 0.95rem; }
.stack-card h3 { font: 800 clamp(1.6rem, 2.6vw, 2.3rem)/1.05 var(--display); font-stretch: 112%; margin-top: 4px; }
.stack-card p { color: var(--mist); margin-top: 10px; }
.tracker { list-style: none; padding: 0; margin: 20px 0 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tracker.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tracker li { position: relative; padding-top: 14px; font-size: 0.72rem; line-height: 1.25; color: var(--mist); }
.tracker li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(245, 241, 234, 0.2); }
.tracker li.is-done::before { background: var(--palm); }
.tracker li.is-now::before { background: var(--amber); }
.tracker li.is-now { color: var(--sand); font-weight: 600; }
.t-sand .tracker li, .t-white .tracker li { color: var(--ink-soft); }
.t-sand .tracker li::before, .t-white .tracker li::before { background: rgba(15,27,45,.14); }
.t-sand .tracker li.is-now, .t-white .tracker li.is-now { color: var(--ink); }
.t-sand .tracker li.is-now::before, .t-white .tracker li.is-now::before { background: var(--amber); }
.stack-note { font-size: 0.92rem; color: var(--mist); margin-bottom: 16px; }
.stack-caption { position: absolute; z-index: 2; left: var(--gutter); bottom: var(--gutter); max-width: 20ch; font: 800 clamp(1.6rem, 3.4vw, 3rem)/1.04 var(--display); font-stretch: 112%; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }

/* ---------- Who does what ---------- */
.who .section-head { max-width: min(780px, 44%); }
.who-map { position: relative; z-index: 2; max-width: 1040px; height: 470px; margin: 0 auto; background: var(--bg); }
.who-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.who-lines path { fill: none; stroke: rgba(15, 27, 45, 0.35); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.t-ink .who-lines path, .t-navy .who-lines path, .t-deep .who-lines path { stroke: rgba(245,241,234,.35); }
.who-core { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--sand); text-align: center; padding: 24px 36px; border-radius: 999px; white-space: nowrap; }
.t-ink .who-core, .t-deep .who-core { background: var(--amber); color: var(--ink); }
.t-ink .who-core .who-role, .t-deep .who-core .who-role { color: var(--ink-soft); }
.who-core > .river-node { left: 50%; top: 0; background: var(--ink); }
.who-core .who-role { color: var(--mist); }
.who-branches { position: absolute; left: 0; right: 0; top: 336px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.who-branch { text-align: center; padding: 18px 14px 0; position: relative; }
.who-branch::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--fg); }
.who-name { font: 700 1.15rem/1.2 var(--display); font-stretch: 106%; }
.who-role { color: var(--fg-soft); margin-top: 4px; font-size: 0.98rem; }
.who-foot { position: relative; z-index: 2; text-align: center; margin-top: 40px; }

/* ---------- People ---------- */
.people { overflow: hidden; }
.years {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 3vw; margin-bottom: clamp(48px, 7vw, 96px); white-space: nowrap;
  font: 900 clamp(2.4rem, 10.2vw, 11rem)/0.9 var(--display); font-stretch: 125%; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245, 241, 234, 0.42);
}
.y-line { flex: 1; height: 3px; min-width: 40px; background: var(--mist-faint); position: relative; border-radius: 2px; }
.y-line i { position: absolute; inset: 0; background: var(--amber); border-radius: 2px; transform-origin: left; transform: scaleX(var(--p, 1)); }
.y-to { transition: color .6s, -webkit-text-stroke-color .6s; }
.years.is-today .y-to { color: var(--sand); -webkit-text-stroke-color: var(--sand); }
.people-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.people-copy { position: relative; }
.people-copy p { color: var(--fg-soft); font-size: 1.15rem; max-width: 46ch; }
.people-copy p + p { margin-top: 0.8em; }
.people-photo { position: relative; border-radius: var(--radius-media); overflow: hidden; background: var(--navy); }
.people-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.people-photo figcaption { padding: 16px 20px 18px; display: flex; flex-direction: column; color: var(--sand); }
.people-photo .who-role { color: var(--mist); }
.film-slot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 26px 30px; border: 1px dashed var(--line); border-radius: var(--radius-media); }
.film-title { font: 700 1.3rem/1.2 var(--display); font-stretch: 106%; }
.film-note { color: var(--fg-soft); }

/* ---------- Link list with a picture that follows the pointer ---------- */
.xlist { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xlist li { border-bottom: 1px solid var(--line); }
.xlist a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px;
  padding: clamp(18px, 2.2vw, 28px) 0; text-decoration: none; position: relative;
}
.x-title { font: 800 clamp(1.25rem, 2.4vw, 2.2rem)/1.08 var(--display); font-stretch: 108%; letter-spacing: -0.012em; transition: transform .5s var(--ease-out), color .3s; }
.x-meta { grid-column: 1; color: var(--fg-soft); font-size: 0.98rem; max-width: 70ch; }
.x-arrow { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.x-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.xlist a:hover .x-title, .xlist a:focus-visible .x-title { transform: translateX(10px); }
.xlist a:hover .x-arrow { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: rotate(-45deg); }
.xlist.compact .x-title { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-stretch: 104%; }
.x-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease-out);
}
.x-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.x-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.group-title { font: 500 0.92rem/1 var(--body); color: var(--fg-soft); margin: clamp(48px, 6vw, 80px) 0 18px; letter-spacing: .02em; }
.group-title:first-child { margin-top: 0; }

/* ---------- Questions ---------- */
.faq { position: relative; z-index: 2; border-top: 1px solid var(--line); max-width: 1000px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 28px) 0; font: 700 clamp(1.15rem, 1.8vw, 1.5rem)/1.2 var(--display); font-stretch: 106%;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease-out), background-color .3s; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 1px; }
.qa-icon::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.qa[open] .qa-icon { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.qa[open] .qa-icon::after { transform: rotate(0deg); }
.qa-body { padding: 0 0 26px; max-width: 70ch; color: var(--fg-soft); }
.qa-body p + p { margin-top: 0.7em; }
.qa[open] .qa-body { animation: qa-in .5s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Before and after ---------- */
.compare { position: relative; z-index: 2; border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); --pos: 50%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--sand); pointer-events: none; z-index: 3; }
.cmp-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.cmp-range:focus-visible + .cmp-handle::after { outline: 3px solid var(--amber); outline-offset: 3px; }
.cmp-label { position: absolute; bottom: 16px; z-index: 3; font: 600 0.85rem/1 var(--body); padding: 8px 12px; border-radius: 6px; background: rgba(15,27,45,.7); color: var(--sand); }
.cmp-label.a { left: 16px; } .cmp-label.b { right: 16px; }
.compare-note { margin-top: 16px; color: var(--fg-soft); font-size: 0.95rem; max-width: 70ch; }

/* ---------- Article and legal text ---------- */
.prose-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--display); font-stretch: 108%; letter-spacing: -0.012em; margin-top: 1.9em; }
.prose h3 { font: 700 1.25rem/1.2 var(--display); font-stretch: 104%; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--lead); }
[data-site="ffe"] .prose li::marker { color: #B86E0E; }
.prose a { text-underline-offset: 4px; }
.prose a:hover { color: var(--lead); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose img { border-radius: 14px; display: block; }
.prose .callout { padding: 22px 24px; border-radius: 14px; background: var(--sand); border-left: 4px solid var(--amber); }
.prose-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.aside-box { border-top: 1px solid var(--line); padding-top: 18px; }
.aside-box h2 { font: 600 0.9rem/1.2 var(--body); color: var(--fg-soft); margin-bottom: 12px; letter-spacing: .02em; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-box a { text-decoration: none; font-weight: 500; line-height: 1.35; display: inline-block; }
.aside-box a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Research: figures with sources ---------- */
.rs-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px clamp(20px, 3vw, 40px); margin: 0; }
.rs-item { border-top: 2px solid var(--fg); padding-top: 18px; }
.rs-item dt { color: var(--fg-soft); font-size: .92rem; margin-bottom: 10px; }
.rs-val { margin: 0; overflow-wrap: anywhere; font: 800 clamp(1.6rem, 2.8vw, 2.5rem)/1.05 var(--display); font-stretch: 112%; letter-spacing: -.015em; }
.rs-note { margin: 10px 0 0; color: var(--fg-soft); font-size: .95rem; max-width: 38ch; }
.rs-body { position: relative; z-index: 2; margin-top: 32px; max-width: 70ch; color: var(--fg-soft); }
.rs-sources { position: relative; z-index: 2; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.rs-sources p { font-weight: 600; margin-bottom: 8px; }
.rs-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-sources a { color: var(--fg-soft); text-underline-offset: 3px; }
.rs-sources a:hover { color: var(--fg); }
