:root {
  color-scheme: dark;
  --canvas: #071222;
  --surface: #0c1b2d;
  --ink: #edf5fe;
  --muted: #a5bad2;
  --link: #9be3f4;
  --wave-deep: #1858b8;
  --wave-blue: #2898d8;
  --wave-crest: #68d8e8;
  --border: #263e57;
  --control-border: #58819d;
  --tint: #122f48;
  --hero: #0d2035;
  --row-hover: #0d1d30;
  --header: 4rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Plus Jakarta Sans", var(--body);
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --crest-shape: url("#infinitywave-crest");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.55 var(--body); color: var(--ink); background: var(--canvas); }
body:has(.reader[open]) { overflow: hidden; }
html { scrollbar-gutter: stable; }
main { min-height: calc(100vh - 10rem); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.033em; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 74rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svg-definitions { position: absolute; width: 0; height: 0; }
.skip-link:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--surface); }
.eyebrow, .record-meta, kbd { font-family: var(--mono); }
.eyebrow { color: var(--link); text-transform: uppercase; font-size: .75rem; font-weight: 650; letter-spacing: .13em; }

.site-header { height: var(--header); position: sticky; z-index: 5; top: 0; background: #061020; border-bottom: 1px solid #21415d; }
.header-inner { display: flex; align-items: center; height: 100%; gap: 1.25rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .58rem; text-decoration: none; color: var(--ink); flex: none; font: 750 1.13rem/1 var(--head); letter-spacing: -.042em; }
.brand img { object-fit: contain; }
.site-nav { display: flex; align-items: stretch; height: 100%; gap: clamp(1.1rem, 2.4vw, 2.5rem); margin-inline: auto; }
.site-nav > a { position: relative; display: flex; align-items: center; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .875rem; font-weight: 600; transition: color 160ms ease; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--link); }
.site-nav > a::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--link); transform: scaleX(0); transition: transform 220ms var(--ease); transform-origin: left; }
.site-nav > a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.icon-button, .text-button { background: none; border: 0; color: var(--link); font: 650 .875rem/1.2 var(--body); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .45rem .6rem; min-height: 2.5rem; border-radius: .3rem; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease; }
.icon-button:hover, .text-button:hover { background: var(--tint); }
.icon-button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.header-search { order: 2; background: var(--canvas); border: 1px solid var(--border); }
kbd { font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: .2rem; padding: .12rem .25rem; }
.menu-button { display: none; }

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f2f7ff;
  background: radial-gradient(ellipse at 75% 45%, #164a7f 0%, #102e57 22%, transparent 58%), linear-gradient(120deg, #070f20 26%, #071d38 72%, #06101e);
}
.wave-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, #91c7ff 1px, transparent 1.3px), linear-gradient(90deg, #5580a82e 1px, transparent 1px), linear-gradient(#5580a82e 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -.5px -.5px;
  mask-image: radial-gradient(ellipse at 76% 38%, #000e, transparent 67%);
  opacity: .5;
}
.masthead-inner { position: relative; isolation: isolate; min-height: 21rem; display: flex; align-items: center; padding-block: 1.6rem 1.85rem; }
.masthead-copy { position: relative; z-index: 2; width: min(52%, 35rem); }
.masthead .eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--link); letter-spacing: .18em; }
.masthead .eyebrow::before { content: ""; width: 1.55rem; height: .8rem; clip-path: var(--crest-shape); background: var(--wave-crest); }
.masthead h1 { margin: .5rem 0 .8rem; font-size: clamp(3.25rem, 6.25vw, 5.6rem); font-weight: 680; line-height: .87; letter-spacing: -.067em; }
.masthead h1 em { display: block; color: #488be5; font: inherit; line-height: .98; }
.masthead-mission { max-width: 32ch; color: #c6d9ee; font-size: clamp(1rem, 1.48vw, 1.14rem); line-height: 1.45; text-wrap: pretty; }
.pins { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-top: 1.05rem; font-size: .875rem; }
.pin-label { padding-right: .75rem; border-right: 1px solid #51799c; font-family: var(--mono); font-size: .75rem; color: #adc5df; }
.pins a { color: #d0eaff; font-weight: 600; text-decoration-color: #7298bc; }
.wave-field { position: absolute; width: min(86%, 67rem); height: 100%; right: -5rem; top: 9%; z-index: 0; pointer-events: none; opacity: .39; transform: translate(var(--wave-x, 0), var(--wave-y, 0)); transition: transform 370ms var(--ease); mask-image: linear-gradient(90deg, transparent, #000 24%, #000 91%, transparent); }
.wave-field canvas { display: block; width: 100%; height: 100%; }
.hero-emblem { position: absolute; z-index: 1; pointer-events: none; width: min(84%, 63rem); right: -2.25rem; top: 48%; aspect-ratio: 1.89; display: grid; place-items: center; transform: translate(var(--wave-x, 0), calc(-50% + var(--wave-y, 0px))); transition: transform 430ms var(--ease); }
.emblem-orbits { position: absolute; inset: 0; width: 100%; height: 100%; color: #6bbdf6; stroke: currentColor; opacity: .31; mask-image: linear-gradient(90deg, transparent, #000 51%); }
.emblem-orbits circle { fill: #9be9ff; stroke: none; }
.emblem-art { position: relative; width: min(84%, 43rem); rotate: -6deg; opacity: .66; mask-image: linear-gradient(90deg, transparent 3%, #0007 28%, #000 67%); }
.emblem-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 26px #2085dc45); }
.emblem-art::after { content: ""; position: absolute; inset: 0; clip-path: var(--crest-shape); background: linear-gradient(113deg, transparent 33%, #d1fdff70 48%, #75e2ff24 55%, transparent 65%) no-repeat; background-size: 260% 100%; background-position: 100% 0; animation: crest-glint 3200ms var(--ease) both; }
@keyframes crest-glint { 0% { background-position: 100% 0; opacity: 0; } 20% { opacity: .85; } 82%, 100% { background-position: 0 0; opacity: 0; } }
.masthead-rule { position: absolute; inset: auto 0 0; height: 1px; z-index: 1; background: linear-gradient(90deg, #25496d, #527aa965 39%, var(--wave-crest) 73%, #294d6d85); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: .6rem 1rem; margin: 0 0 1.1rem; }
.section-head h2, .section-title h1 { font-size: clamp(2.15rem, 4vw, 3rem); font-weight: 720; }
.section-head h2, .section-title h1 { margin-top: .28rem; }
#findings-title, #example-demo { scroll-margin-top: calc(var(--header) + 1rem); }
#findings-view { background: radial-gradient(ellipse 80rem 40rem at 26% 39rem, #102a50, transparent 82%); }
.findings { padding-block: 1.3rem 2.5rem; }
.findings-head { margin-bottom: .75rem; }
.findings-head h2 { display: flex; align-items: center; gap: .65rem; }
.findings-head h2::before { content: ""; width: .22rem; height: .68em; border-radius: 1rem; background: linear-gradient(var(--wave-crest), var(--wave-deep)); box-shadow: 0 0 .7rem #2898d831; }
.preview-label { color: #c4def8; font-size: .8125rem; border: 1px solid #315482; background: #112646; border-radius: .35rem; padding: .28rem .55rem; }
.findings-controls { display: flex; gap: .7rem; align-items: center; justify-content: space-between; position: sticky; z-index: 3; top: var(--header); background: linear-gradient(113deg, #112949, #0b1b33); padding: .27rem .55rem; border: 1px solid #2d4d76; border-radius: .65rem; }
.filters { display: flex; align-items: center; gap: .35rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: .22rem .22rem .3rem; margin-left: -.22rem; }
.filters button, .select-wrap select, .pagination button, .chart-switch button { border: 1px solid transparent; background: none; border-radius: .28rem; font-size: .875rem; font-weight: 625; color: var(--muted); min-height: 2.25rem; padding: .35rem .68rem; white-space: nowrap; transition: background-color 170ms ease, color 170ms ease, border-color 170ms ease; }
.filters button[aria-pressed="true"], .pagination button[aria-current], .chart-switch button[aria-pressed="true"] { background: var(--tint); color: var(--link); border-color: var(--border); }
.filters button[aria-pressed="true"] { border-color: #397fbf; background: linear-gradient(125deg, #204e93, #14386b); box-shadow: inset 0 -1px #4f9de3; color: #e3f5ff; }
.filters button:hover, .pagination button:hover, .chart-switch button:hover { color: var(--link); background: var(--tint); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; width: .38rem; height: .38rem; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; position: absolute; top: .85rem; right: .75rem; pointer-events: none; }
.select-wrap select { appearance: none; border-color: var(--border); padding-right: 1.6rem; background: var(--surface); }
.search-panel { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.search-panel input { flex: 1 1 16rem; min-width: 0; min-height: 2.55rem; border: 1px solid var(--control-border); padding: .45rem .65rem; border-radius: .25rem; background: var(--surface); scroll-margin-top: calc(var(--header) + .8rem); }
.text-button { padding: .6rem .65rem; border-radius: .25rem; }

.record { display: grid; grid-template-columns: clamp(7rem, 14vw, 10rem) minmax(0, 1fr) minmax(8.5rem, 12rem); align-items: start; column-gap: clamp(.8rem, 3vw, 2.25rem); }
.record { border-bottom: 1px solid var(--border); padding: .84rem .55rem; transition: background-color 180ms ease, box-shadow 180ms ease; }
.record:is(:hover, :focus-within) { background: var(--row-hover); box-shadow: inset 2px 0 var(--control-border); }
.record-meta { display: flex; flex-direction: column; align-items: start; gap: .17rem; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.record h3 { font-size: 1.27rem; margin-bottom: .24rem; }
.record-copy { color: var(--muted); max-width: 72ch; }
.record-actions { display: flex; flex-wrap: wrap; gap: .32rem .7rem; align-items: center; font-size: .875rem; min-width: 0; }
.record-actions a { font-weight: 650; }
.action { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--control-border); background: var(--surface); padding: .37rem .65rem; border-radius: .26rem; text-decoration: none; color: var(--link); font-weight: 650; font-size: .875rem; transition: background-color 160ms ease, border-color 160ms ease, translate 160ms var(--ease); }
.action:hover { background: var(--tint); border-color: var(--link); translate: 0 -1px; }
.wave-link:is(:hover, :focus-visible) { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--link); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; list-style: none; margin: 0; padding: .9rem 0 0; }
.results:empty { display: none; }
.finding-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: .58rem;
  min-width: 0;
  padding: 1.06rem;
  border: 1px solid #356298;
  border-radius: .7rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 102% -15%, #1d5095, transparent 65%), linear-gradient(141deg, #152f57, #0d203b 76%);
  transition: translate 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}
.finding-card::before { content: ""; position: absolute; z-index: -1; top: -1.65rem; right: -1.1rem; width: 72%; aspect-ratio: 1.97; rotate: -12deg; clip-path: var(--crest-shape); background: linear-gradient(110deg, transparent 12%, var(--wave-blue), var(--wave-crest)); opacity: .2; transition: opacity 230ms var(--ease); }
.finding-card:is(:hover, :focus-within)::before { opacity: .34; }
.finding-card:is(:hover, :focus-within) { border-color: var(--wave-crest); box-shadow: 0 .45rem 1.25rem #02091280; }
@media (hover: hover) { .finding-card:hover { translate: 0 -2px; } }
.finding-card:has(.finding-title:focus-visible) { outline: 2px solid var(--wave-crest); outline-offset: 2px; }
.finding-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; color: #c2d8ef; font-size: .8125rem; line-height: 1.35; }
.finding-type { padding: .19rem .48rem; border-radius: .3rem; background: #224d83; color: #bff2ff; font-weight: 600; }
.finding-card h3 { font-size: clamp(1.24rem, 1.55vw, 1.42rem); overflow-wrap: anywhere; }
.finding-title { color: var(--ink); text-decoration: none; }
.finding-title:focus-visible { outline: none; }
.finding-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.finding-takeaway { color: #c4d9ef; overflow-wrap: anywhere; }
.finding-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; min-height: 2.5rem; margin-top: auto; padding-top: .53rem; border-top: 1px solid #6aa1e144; font-size: .875rem; }
.finding-summary { display: inline-flex; align-items: center; gap: .38rem; color: var(--wave-crest); font-weight: 650; margin-inline-end: auto; }
.finding-summary::before { content: ""; display: inline-block; width: 1.1rem; height: .6rem; clip-path: var(--crest-shape); background: currentColor; transition: scale 200ms var(--ease); }
.finding-card:has(.finding-title:is(:hover, :focus-visible)) .finding-summary::before { scale: 1.16; }
.finding-card:has(.finding-title:is(:hover, :focus-visible)) .finding-summary { text-decoration: underline; text-underline-offset: .25em; }
.finding-footer a { position: relative; padding: .2rem .5rem; border: 1px solid #3a6191; border-radius: .3rem; background: #152f52; text-decoration: none; }
.finding-footer a:is(:hover, :focus-visible) { background: var(--tint); border-color: var(--control-border); }
.empty-state { margin-top: .8rem; border: 1px solid var(--border); padding: 1rem; background: var(--surface); color: var(--muted); }
.empty-state p { margin-bottom: .4rem; }
.results-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .8rem; color: var(--muted); font-size: .875rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pagination button { min-width: 2.25rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem 1.6rem; border-top: 1px solid transparent; border-image: linear-gradient(90deg, var(--wave-blue), var(--border) 28%, var(--border)) 1; gap: .75rem; font-size: .875rem; }
.site-footer .brand { font-size: 1rem; }

.section-view { padding-block: 2.25rem 3.5rem; }
.section-title { border: 1px solid #2c5172; border-radius: .7rem; padding: clamp(1.1rem, 3.1vw, 2.5rem); margin-bottom: 1.25rem; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, #101f36 16%, #102d50 74%, #0b2037); }
.section-title::before { content: ""; position: absolute; top: 50%; right: 0; width: min(62%, 38rem); aspect-ratio: 1.97; transform: translateY(-48%) rotate(-12deg); z-index: -1; clip-path: var(--crest-shape); background: linear-gradient(110deg, transparent 15%, var(--wave-deep), var(--wave-crest)); opacity: .26; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent 30%, var(--wave-blue), #91eaff6b, transparent); }
.section-title > p:not(.eyebrow) { color: var(--muted); margin-top: .65rem; max-width: 68ch; }
.resource-list { padding: 0; list-style: none; margin: 0 0 1.5rem; }
.resource-list .record { padding-inline: 0; }
.demo, .about-section { padding: 1.1rem 1.2rem; max-width: 72ch; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); }
.demo > *, .about-section > * { margin-bottom: .65rem; }
.demo-controls { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.demo-output { display: block; padding: .7rem .8rem; background: var(--tint); border-left: 2px solid var(--link); }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; }
caption { text-align: left; color: var(--muted); margin-bottom: .45rem; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead { background: var(--hero); font-size: .875rem; }
td.metric { white-space: nowrap; font-family: var(--mono); font-size: .9rem; }

.reader { position: fixed; width: 65%; max-width: none; height: 100dvh; max-height: none; inset: 0 0 0 auto; margin: 0; border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 0; overflow: hidden; }
.reader[open] { animation: drawer-in 360ms var(--ease) both; }
.reader::after { content: ""; position: absolute; z-index: 3; top: 16%; left: -14%; width: min(94%, 46rem); aspect-ratio: 1.97; pointer-events: none; clip-path: var(--crest-shape); background: linear-gradient(135deg, var(--wave-deep), var(--wave-blue) 57%, var(--wave-crest)); opacity: 0; }
.reader[open]::after { animation: reader-swell 560ms var(--ease) both; }
@keyframes reader-swell { 0% { opacity: .82; transform: translate(-17%, 18%) rotate(-24deg); } 56% { opacity: .25; } 100% { opacity: 0; transform: translate(19%, -21%) rotate(-9deg); } }
.reader::backdrop { background: rgb(3 12 25 / .63); }
.reader[open]::backdrop { animation: fade-in 260ms ease; }
.reader-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.reader-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .6rem clamp(1rem, 3.5vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.reader-bar::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--link), transparent); opacity: .58; transform-origin: right; }
.reader[open] .reader-bar::after { animation: reader-trace 560ms var(--ease) both; }
@keyframes reader-trace { from { transform: scaleX(0); opacity: 0; } }
.reader .article-content { padding: 1.4rem clamp(1rem, 5vw, 4rem) 2rem; }
@keyframes drawer-in { from { translate: 100% 0; clip-path: ellipse(100% 80% at 100% 50%); } to { translate: 0 0; clip-path: ellipse(180% 120% at 100% 50%); } }
.article-content { max-width: 58rem; }
.article-content h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-block: .4rem .65rem; }
.article-content h2 { margin-top: 1.45rem; margin-bottom: .45rem; font-size: 1.55rem; }
.article-content p, .article-content ul { max-width: 70ch; margin-bottom: .75rem; }
.article-content li + li { margin-top: .35rem; }
.article-meta { color: var(--muted); font: .8rem/1.5 var(--mono); }
.article-lead { color: var(--muted); font-size: 1.15rem; }
.article-links, .article-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; padding-block: .55rem; }
.article-nav { border-bottom: 1px solid var(--border); font-size: .9rem; }
.article-content section { scroll-margin-top: calc(var(--header) + 1rem); }
.article-back { display: inline-block; margin-bottom: .9rem; }
.citation-status { font-size: .875rem; color: var(--muted); }
.citation-text { width: 100%; min-height: 6rem; margin-block: .5rem; padding: .5rem; color: var(--ink); background: var(--canvas); border: 1px solid var(--control-border); font: .85rem/1.5 var(--mono); }
.chart { margin: .8rem 0 1.2rem; padding: 1rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--canvas); }
.chart figcaption { font-weight: 700; }
.chart-switch { display: flex; flex-wrap: wrap; gap: .3rem; margin-block: .5rem; }
.chart-bar { display: grid; grid-template-columns: minmax(5rem, 9rem) minmax(1.5rem, 1fr) auto; align-items: center; gap: .5rem; font-size: .875rem; margin-block: .42rem; }
.chart-track { display: block; height: .52rem; background: var(--border); }
.chart-track span { display: block; height: 100%; background: var(--link); }
.chart details { margin-top: .8rem; font-size: .875rem; }
.chart summary { cursor: pointer; color: var(--link); font-weight: 650; }
.reading-progress { position: absolute; inset: auto 0 -4px; height: 6px; pointer-events: none; clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0); }
.reading-progress svg { width: 100%; height: 6px; fill: none; stroke: var(--wave-crest); stroke-width: 1.6; }
.wave-wipe { position: fixed; inset: var(--header) 0 0; z-index: 4; pointer-events: none; visibility: hidden; overflow: hidden; }
.wave-wipe.play { animation: crest-veil 690ms linear both; }
.wave-wipe-flow { position: absolute; inset: -13% -10%; }
.play .wave-wipe-flow { animation: crest-cross 690ms cubic-bezier(.38, .02, .58, 1) both; }
.wave-wipe-sheet { width: 100%; height: 100%; filter: drop-shadow(0 0 1.5rem #227ccb7a); }
.wave-wipe-emblem { width: 54%; position: absolute; top: 30%; right: 3%; rotate: -18deg; }
.wave-wipe-emblem::before { content: ""; position: absolute; inset: -2%; background: linear-gradient(105deg, var(--wave-deep), var(--wave-blue), var(--wave-crest)); clip-path: var(--crest-shape); transform: translate(-3%, 8%); }
.wave-wipe-emblem img { display: block; position: relative; width: 100%; height: auto; filter: drop-shadow(0 0 1.35rem #7ddeed6e); }
@keyframes crest-veil { 0% { visibility: visible; opacity: 0; } 20%, 63% { opacity: .96; } 100% { visibility: hidden; opacity: 0; } }
@keyframes crest-cross {
  from { transform: translate3d(-108%, 22%, 0) rotate(-5deg); }
  to { transform: translate3d(112%, -21%, 0) rotate(-11deg); }
}

@media (max-width: 63rem) {
  .header-inner { gap: .8rem; }
  .site-nav { gap: .85rem; }
  .wave-field { right: -3.5rem; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  :root { --header: 3.5rem; }
  .header-inner { gap: .25rem; }
  .brand { margin-right: auto; }
  .header-search { margin: 0; border: 0; background: none; }
  .header-search kbd { display: none; }
  .menu-button { display: inline-flex; order: 3; }
  .site-nav { position: absolute; display: none; top: calc(100% - 1px); right: 0; height: auto; width: min(16rem, 100%); padding: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: .3rem; }
  .site-nav[data-open] { display: grid; gap: .15rem; }
  .site-nav > a { padding: .55rem .65rem; min-height: 2.5rem; }
  .site-nav > a[aria-current] { background: var(--tint); }
  .site-nav > a[aria-current]::after { inset: .35rem auto .35rem 0; height: auto; width: 2px; }
  .masthead-inner { min-height: 0; padding-block: 1.5rem 1.45rem; }
  .masthead-copy { width: min(94%, 24rem); }
  .masthead h1 { font-size: clamp(3.15rem, 10vw, 4.85rem); }
  .masthead-mission { max-width: 28ch; }
  .wave-field { width: 36rem; height: 88%; top: 7%; right: -6.8rem; opacity: .28; transform: none; mask-image: linear-gradient(90deg, transparent 27%, #000 59%); }
  .hero-emblem { width: min(86%, 38rem); right: -4.25rem; top: 43%; transform: translateY(-52%); }
  .pins { margin-top: .7rem; gap: .2rem .65rem; }
  .findings { padding-top: 1.05rem; }
  .section-head { align-items: start; flex-wrap: wrap; margin-bottom: .45rem; }
  .section-head h2 { font-size: 2rem; }
  .preview-label { margin-top: .25rem; }
  .findings-controls { align-items: stretch; flex-direction: column; gap: .18rem; }
  .filters { mask-image: linear-gradient(to right, black calc(100% - .55rem), transparent); }
  .findings-controls > .select-wrap { align-self: flex-start; }
  .record { display: flex; flex-direction: column; gap: .45rem; padding-inline: 0; }
  .record:is(:hover, :focus-within) { box-shadow: none; }
  .record-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
  .record-actions .action, .filters button { min-height: 2.5rem; }
  .reader { width: 100%; border-left: 0; }
  .reader-bar { padding: .45rem .8rem; }
  .reader-bar .eyebrow { font-size: .68rem; }
}

@media (max-width: 34rem) {
  .results { grid-template-columns: 1fr; gap: .7rem; }
  .wave-field { width: 29rem; height: 86%; right: -7rem; opacity: .24; mask-image: linear-gradient(90deg, transparent 38%, #000 70%); }
  .hero-emblem { width: 23.5rem; right: -7rem; top: 31%; }
  .hero-emblem .emblem-art { mask-image: linear-gradient(90deg, transparent 8%, #0008 41%, #000 68%); }
  .wave-wipe-flow { inset: -13% -33%; }
  .wave-wipe-emblem { width: 64%; top: 33%; right: 6%; }
  .header-inner .brand { gap: .35rem; font-size: 1.04rem; }
  .header-inner .brand img { width: 2.1rem; }
  .chart-bar { grid-template-columns: minmax(4rem, 6rem) 1fr auto; }
}

@media (max-width: 22rem) {
  .header-inner .icon-button { padding-inline: .37rem; gap: .28rem; font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-field, .hero-emblem, .site-nav a, .site-nav a::after, .icon-button, .record, .finding-card, .finding-card::before, .finding-summary::before, .action, .filters button, .select-wrap select, .pagination button, .chart-switch button { transition: none; }
  .action:hover, .finding-card:hover { translate: none; }
  .finding-card:has(.finding-title:is(:hover, :focus-visible)) .finding-summary::before { scale: none; }
  .reader[open] { animation: fade-in 150ms ease-out both; }
  .wave-wipe.play, .play .wave-wipe-flow, .emblem-art::after, .reader[open]::after, .reader[open]::backdrop, .reader[open] .reader-bar::after { animation: none; }
}
@keyframes fade-in { from { opacity: .7; } }
