.view-overture { padding-left: 0; padding-right: 0; }
.ov-hero { position: relative; min-height: calc(100vh - var(--mast-h) - 8px - var(--clear)); min-height: calc(100dvh - var(--mast-h) - 8px - var(--clear)); display: grid; grid-template-rows: auto 1fr; }
.ov-copy { padding: clamp(12px, 3.5vh, 56px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.ov-headline { font-size: clamp(40px, 5vw, 84px); line-height: 0.98; margin: 0; letter-spacing: -0.022em; max-width: 13ch; text-wrap: balance;
  animation: ov-rise 1200ms var(--ease-out) both; }
.ov-sub { grid-column: 1; margin: 18px 0 0; font-size: clamp(22px, 2.2vw, 32px); font-style: italic; color: var(--text-2); animation: ov-rise 1200ms 180ms var(--ease-out) both; }
.ov-figure { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-bottom: 6px; animation: ov-rise 1200ms 320ms var(--ease-out) both; }
.ov-total { font-size: clamp(34px, 4.4vw, 68px); font-weight: 300; letter-spacing: -0.065em; color: var(--money-hi); line-height: 1;
  text-shadow: 0 0 28px rgba(245, 165, 36, 0.35), 0 0 2px rgba(255, 200, 101, 0.5); white-space: nowrap; }
.ov-total .fig { padding: 0 2px; }
.ov-caption { margin: 14px 0 0; max-width: 42ch; color: var(--text-2); font-size: var(--fs-ui); line-height: 1.5; }
.ov-coverage { margin: 8px 0 0; max-width: 46ch; color: var(--text-3); font-size: var(--fs-small); }
@keyframes ov-rise { from { opacity: 0; transform: translateY(14px); } }

.ov-river-wrap { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 300px; margin-top: clamp(12px, 2.5vh, 32px); }
.ov-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 0 var(--gutter) 10px; }
.ov-ctl-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ov-hint { font-size: var(--fs-small); color: var(--text-3); }
.ov-ctl-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ov-river { position: relative; min-height: 240px; height: 100%; touch-action: pan-y; cursor: grab; outline: none; }
.ov-river:focus-visible { box-shadow: inset 0 0 0 1px var(--money-lo); }
.ov-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov-readout { top: 0; left: 0; }
.ov-table { padding: 0 var(--gutter); }
.ov-foot { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; padding: 6px var(--gutter) 6px; align-items: baseline; }
.ov-legend { font-size: 11.5px; }
.ov-mode-note { font-size: var(--fs-small); color: var(--text-3); max-width: 60ch; text-align: right; }
.ov-mode-note strong { color: var(--text-1); font-weight: 500; }

.ov-dive { position: fixed; z-index: 95; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--dive) 35%, transparent), transparent 70%), linear-gradient(to bottom, transparent, color-mix(in srgb, var(--dive) 18%, var(--ink-0)) 45%, color-mix(in srgb, var(--dive) 18%, var(--ink-0)) 55%, transparent), var(--ink-0);
  box-shadow: 0 0 40px color-mix(in srgb, var(--dive) 60%, transparent); }

.ov-doors { padding: 12vh var(--gutter) 18vh; display: grid; gap: 0; border-top: 1px solid var(--rule); background: linear-gradient(to bottom, transparent, rgba(255, 236, 214, 0.015)); }
.door { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 18px 48px; align-items: baseline; padding: 38px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: padding var(--t-med) var(--ease-out); }
.door:hover { padding-left: 14px; }
.door-q { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.015em; transition: color var(--t-fast); }
.door:hover .door-q { color: var(--money-hi); }
.door-a { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.door-a .fig { color: var(--text-1); }
.door-arrow { font: 300 28px/1 var(--f-ui); color: var(--text-3); transition: transform var(--t-med) var(--ease-out), color var(--t-fast); justify-self: end; }
.door:hover .door-arrow { transform: translateX(6px); color: var(--money); }

@media (max-width: 760px) {
  .ov-copy { grid-template-columns: 1fr; gap: 10px; padding-top: 20px; }
  .ov-figure { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .ov-headline { font-size: 44px; }
  .ov-sub { font-size: 21px; margin-top: 10px; }
  .ov-total { font-size: 34px; }
  .ov-hint { display: none; }
  .ov-river-wrap { min-height: 300px; }
  .ov-river { min-height: 300px; }
  .ov-mode-note { text-align: left; }
  .door { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .door-arrow { display: none; }
}
/* tablet widths: keep the river, its axis and legend above the navigation bar on the first screen */
@media (min-width: 481px) and (max-width: 760px) {
  .ov-copy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 24px; padding-top: 12px; }
  .ov-figure { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .ov-headline { font-size: 38px; }
  .ov-sub { font-size: 19px; }
  .ov-total { font-size: 28px; }
  .ov-caption { font-size: 12.5px; }
  .ov-coverage { display: none; }
  .ov-river-wrap { min-height: 250px; margin-top: 10px; }
  .ov-river { min-height: 210px; }
}
