/* Dossier PCA-0711 — Department of Pre-Continuum Acoustics */
:root {
  --bg: #0e0d0b;
  --bg-2: #161411;
  --panel: #1c1915;
  --text: #ece6da;
  --soft: #b9b1a3;
  --muted: #6f685d;
  --line: #4a443b;
  --rule: #2b2721;
  --accent: #ff5a1f;
  --accent-glow: rgba(255, 90, 31, .35);
  --ochre: #c49a5a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(196, 154, 90, .07), transparent 60%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
q { quotes: "“" "”"; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(14, 13, 11, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar__inner, .bar__nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bar__org { text-decoration: none; }
.bar__org span { color: var(--muted); }
.bar__status { color: var(--soft); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.bar__nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; min-height: 38px; align-items: center; border-top: 1px solid var(--rule); font: 400 13px var(--mono); }
.bar__nav::-webkit-scrollbar { display: none; }
.bar__nav a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.bar__nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .bar__org span, .bar__status { display: none; } }

main, .foot { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "text fig" "facts fig"; gap: 32px 56px; padding: clamp(40px, 8vw, 96px) 0 64px; align-items: start; }
.hero__text { grid-area: text; align-self: end; }
.hero__fig { grid-area: fig; margin: 0; }
.facts { grid-area: facts; }
.kicker, .label, .cat { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin: 0 0 14px; }
h1 { font: 400 clamp(56px, 9vw, 116px)/.92 var(--serif); letter-spacing: -.01em; margin: 0 0 24px; }
.lede { font: 400 clamp(20px, 2.2vw, 26px)/1.35 var(--serif); color: var(--text); margin: 0 0 22px; max-width: 30ch; }
.translator { font: 400 13px/1.55 var(--mono); color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; max-width: 46ch; margin: 0; }
.hero__fig img { border: 1px solid var(--rule); }
figcaption, .caption { font: 400 13px/1.5 var(--mono); color: var(--soft); margin-top: 12px; }
figcaption .cat { display: block; margin: 0 0 4px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--rule); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "fig" "facts"; }
}

/* ---------- blocks ---------- */
.block { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
h2 { font: 400 clamp(36px, 5vw, 56px)/1 var(--serif); margin: 0 0 36px; display: flex; align-items: baseline; gap: 18px; }
h2 .num { font: 500 13px var(--mono); color: var(--accent); letter-spacing: .1em; }
h3 { font: 600 18px/1.3 var(--sans); margin: 0 0 10px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }
.intro { max-width: 70ch; color: var(--soft); margin: -16px 0 40px; }
.note { font: 400 14px/1.6 var(--mono); color: var(--soft); border-left: 2px solid var(--accent); padding-left: 14px; }
.glyph { font: 500 .92em var(--mono); color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); letter-spacing: .04em; white-space: nowrap; }
.corrupt { color: var(--muted); letter-spacing: -.05em; }

.sleeve { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0 48px; }
.sleeve figure { margin: 0; }
.sleeve img { border: 1px solid var(--rule); }
@media (max-width: 760px) { .sleeve { grid-template-columns: 1fr; } }

/* ---------- catalogue ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--rule); display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.card__img { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1; align-self: start; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.glyph--tag { position: absolute; left: 8px; bottom: 8px; font-size: 12px; background: rgba(0, 0, 0, .6); padding: 2px 6px; }
.card__body { padding: 18px 18px 20px; min-width: 0; }
.card__body .cat { margin-bottom: 6px; }
.card h3 { font: 400 25px/1.1 var(--serif); margin-bottom: 12px; }
.card__meta { display: flex; gap: 22px; margin: 0 0 8px; font: 400 12px var(--mono); }
.card__meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.card__meta dd { margin: 2px 0 0; color: var(--soft); }
.meter { height: 3px; background: var(--rule); margin-bottom: 16px; }
.meter span { display: block; height: 100%; background: var(--ochre); }
.card__note { font-size: 14px; line-height: 1.5; color: var(--soft); margin: 14px 0 0; }

.seg { display: inline-flex; border: 1px solid var(--line); margin-bottom: 10px; }
.seg__btn { font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--soft); background: none; border: 0; padding: 7px 10px; cursor: pointer; }
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn.is-on { background: var(--text); color: var(--bg); }
.player__row { display: flex; align-items: center; gap: 10px; }
.wave { flex: 1; min-width: 0; height: 56px; cursor: pointer; }
.player__time { font: 400 12px var(--mono); color: var(--soft); width: 34px; text-align: right; }

.play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.play:hover { background: rgba(255, 90, 31, .12); box-shadow: 0 0 18px var(--accent-glow); }
.play .icon { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.is-playing .play .icon { width: 11px; height: 13px; border: 0; margin: 0; border-left: 3.5px solid var(--accent); border-right: 3.5px solid var(--accent); }
.play--big { width: 64px; height: 64px; }
.play--big .icon { border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }
.is-playing .play--big .icon { width: 17px; height: 20px; border-left-width: 5px; border-right-width: 5px; }

/* ---------- method ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); font: 500 12px var(--mono); color: var(--accent); display: block; margin-bottom: 14px; }
.steps p { font-size: 15.5px; color: var(--soft); margin: 0; }

/* ---------- full reconstruction ---------- */
.full { display: flex; gap: 24px; align-items: flex-start; }
.full__track { flex: 1; min-width: 0; }
.full__spec { position: relative; cursor: pointer; border: 1px solid var(--rule); background: #000; }
.full__spec img { width: 100%; height: clamp(120px, 18vw, 220px); object-fit: fill; opacity: .78; filter: sepia(.35) contrast(1.1); }
.full__played { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(255, 90, 31, .0), rgba(255, 90, 31, .18)); mix-blend-mode: screen; pointer-events: none; }
.full__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); pointer-events: none; }
.full__chapters { position: relative; height: 30px; margin-top: 6px; }
.chap { position: absolute; top: 0; transform: translateX(-1px); font: 500 11px var(--mono); color: var(--soft); background: none; border: 0; border-left: 1px solid var(--line); padding: 4px 0 0 5px; cursor: pointer; white-space: nowrap; }
.chap:hover { color: var(--accent); border-color: var(--accent); }
.full__time { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--muted); }
@media (max-width: 720px) {
  .full { flex-direction: column; }
  .chap { font-size: 0; height: 12px; padding: 0; }
}

/* ---------- findings ---------- */
.finding-lead { border-left: 3px solid var(--accent); padding: 6px 0 6px 26px; margin-bottom: 56px; }
.finding-lead .big { font: 400 clamp(28px, 3.6vw, 44px)/1.15 var(--serif); margin: 0; max-width: 24ch; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.grid3 p { color: var(--soft); font-size: 16px; margin: 0; }
.pull { margin: 72px 0 0; padding: 0; max-width: 40ch; }
.pull p { font: italic 400 clamp(26px, 3.2vw, 38px)/1.25 var(--serif); margin: 0 0 14px; }
.pull cite { font: 400 13px var(--mono); color: var(--muted); font-style: normal; }

/* ---------- journal & questions ---------- */
.journal { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.journal li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.journal time { font: 500 13px/1.7 var(--mono); color: var(--ochre); }
.journal p { margin: 0; color: var(--soft); }
@media (max-width: 560px) { .journal li { grid-template-columns: 1fr; gap: 4px; } }
.questions { margin: 0; padding: 0; list-style: none; max-width: 820px; }
.questions li { font: 400 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.questions li::before { content: "?"; position: absolute; left: 0; font: 500 14px/2.4 var(--mono); color: var(--accent); }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--soft); }
.foot p { margin: 0; }
.foot .label { margin-bottom: 10px; }
.foot__real { border: 1px dashed var(--line); padding: 18px 20px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.seg__btn { white-space: nowrap; }
@media (max-width: 560px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .card__img { border-right: 0; }
}
@media (max-width: 420px) {
  .card__body { padding: 16px 14px 18px; }
  .seg__btn { padding: 7px 8px; font-size: 11px; }
}

/* ---------- anomaly: hypotheses ---------- */
.hyp { margin: 40px 0; border-top: 1px solid var(--line); }
.hyp__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 110px; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--soft); }
.hyp__row strong { color: var(--text); font-weight: 600; }
.hyp__head { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 0; }
.v { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; align-self: start; padding: 4px 8px; border: 1px solid; text-align: center; }
.v--no { color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.v--yes { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
@media (max-width: 760px) {
  .hyp__head { display: none; }
  .hyp__row { grid-template-columns: 1fr; gap: 10px; }
  .v { justify-self: start; }
}
