:root {
  /* Space Grotesk (Google Fonts) at massive scale (clamp(3rem; Interference (overlapping waves). Segments start with `opacity: 0`; IntersectionObserver with `threshold: 0.15`. */
  --void: #0f0e0c;
  --amber: #d4a04a;
  --parchment: #e8dcc5;
  --copper: #9c7a48;
  --faded: #5a4d3a;
  --highlight: #f0c96e;
  --display: "Space Grotesk", sans-serif;
  --body: "Newsreader", serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html { background: #0f0e0c; }

body {
  margin: 0;
  min-height: 100vh;
  color: #e8dcc5;
  background: #0f0e0c;
  font-family: var(--body);
  overflow-x: hidden;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 100;
  background: #d4a04a;
  box-shadow: 0 0 8px rgba(212, 160, 74, 0.3);
}

.progress-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 6px;
  height: 8px;
  background: #f0c96e;
  filter: blur(4px);
}

.transmission-document { width: 100%; }

.segment {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.segment.segment-visible {
  opacity: 1;
  transform: translateY(0);
}

.segment-meta,
.spectrum-row span,
.fragment span {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c7a48;
  opacity: 0.55;
}

h1, h2 {
  font-family: var(--display);
  color: #e8dcc5;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 1.2rem 0 2.4rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10vh 6vw;
  text-align: center;
}

.hero .segment-meta { margin-bottom: 9vh; }

.hero-wave {
  width: 70vw;
  max-width: 1100px;
  min-width: 300px;
  height: clamp(150px, 27vw, 310px);
  margin-bottom: 5vh;
  overflow: visible;
}

.wave-form {
  fill: none;
  stroke: #d4a04a;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.wave-form--hero {
  stroke-width: 2px;
  stroke: #f0c96e;
  filter: drop-shadow(0 0 6px rgba(212, 160, 74, 0.18));
}

.wave-form--ghost {
  stroke: #5a4d3a;
  stroke-width: 0.8px;
  opacity: 0.06;
}

.wave-form--annotation {
  stroke: #9c7a48;
  stroke-width: 1px;
  opacity: 0.4;
  stroke-dasharray: 4 6;
}

.hero-scratch { opacity: 0.22; }

.void-zone {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0e0c;
}

.void-wave {
  width: min(64vw, 650px);
  height: 150px;
  overflow: visible;
}

.void-zone .wave-form--ghost { animation: ghost-pulse 8s ease-in-out infinite; }

@keyframes ghost-pulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

.field-notes,
.transmission-end {
  width: min(540px, calc(100% - 44px));
  margin: 0 auto;
  padding: 9vh 0;
}

.prose {
  position: relative;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  letter-spacing: 0.005em;
}

.prose p {
  margin: 0 0 2.1rem;
  color: rgba(232, 220, 197, 0.9);
}

.prose em {
  font-weight: 300;
  color: #f0c96e;
}

.annotation-number {
  position: absolute;
  left: -4.5rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #9c7a48;
  opacity: 0.48;
}

.inline-wave {
  display: inline;
  vertical-align: middle;
  height: 0.8em;
  width: 3em;
  margin: 0 0.12em;
  overflow: visible;
}

.inline-wave path {
  fill: none;
  stroke: #9c7a48;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

.wave-spectrum {
  min-height: 105vh;
  padding: 9vh 5vw;
}

.spectrum {
  width: 100%;
  margin-top: 7vh;
}

.spectrum-row {
  display: grid;
  grid-template-columns: minmax(68px, 9vw) 1fr;
  align-items: center;
  min-height: 74px;
  margin: 1.2vh 0;
}

.spectrum-row svg {
  height: 74px;
  width: 100%;
  overflow: visible;
}

.spectrum-path {
  stroke: #d4a04a;
  stroke-width: 1.2px;
  opacity: 0.64;
}

.research-fragments {
  min-height: 120vh;
  padding: 9vh 5vw 14vh;
}

.fragment-field {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, minmax(90px, auto));
  gap: 1.5rem;
  min-height: 820px;
}

.fragment {
  position: relative;
  padding: 1.35rem 1.45rem;
  color: #e8dcc5;
}

.fragment p {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.62;
  color: rgba(232, 220, 197, 0.86);
}

.fragment-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.fragment-border path {
  fill: none;
  stroke: #9c7a48;
  stroke-width: 1px;
  opacity: 0.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fragment-a { grid-column: 2 / 5; grid-row: 1 / 3; transform: rotate(-2deg); }
.fragment-b { grid-column: 8 / 12; grid-row: 1 / 3; transform: rotate(1.5deg); }
.fragment-c { grid-column: 5 / 8; grid-row: 3 / 5; transform: rotate(-0.5deg); }
.fragment-d { grid-column: 1 / 4; grid-row: 5 / 7; transform: rotate(2.8deg); }
.fragment-e { grid-column: 9 / 13; grid-row: 4 / 6; transform: rotate(-1.2deg); }
.fragment-f { grid-column: 4 / 8; grid-row: 6 / 8; transform: rotate(0.7deg); }

.transmission-end {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 12vh;
  padding-bottom: 35vh;
}

.flatline-wave {
  width: min(82vw, 900px);
  height: 180px;
  margin: 9vh 0 5vh 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.wave-form--flatline {
  stroke: #d4a04a;
  opacity: 0.78;
}

.transmission-end p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  letter-spacing: 0.005em;
  color: rgba(232, 220, 197, 0.9);
}

@media (max-width: 768px) {
  .annotation-number { position: static; margin-right: 0.8rem; }
  .wave-spectrum, .research-fragments { padding-left: 22px; padding-right: 22px; }
  .spectrum-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .fragment-field { display: block; min-height: 0; }
  .fragment { margin: 2rem 0; transform: none; min-height: 160px; }
  .fragment-a, .fragment-b, .fragment-c, .fragment-d, .fragment-e, .fragment-f { transform: none; }
}
