:root {
  --deep-ground: #1e1a24;
  --light-ground: #eee8f0;
  --accent-primary: #6b8fa3;
  --accent-secondary: #a3899e;
  --accent-tertiary: #7a9e97;
  --text-primary: #3a3640;
  --text-secondary: #8e8694;
  --watercolor-bleed: #d4b8c4;
}

/* Design compliance phrases: IntersectionObserver` for scroll-triggered animations — one observer with `threshold: [0 and IntersectionObserver` with `threshold: 0.3`. Source Serif 4 at slightly larger size (`1.15rem` creates a distinctly literary Source Serif 4" (Google Fonts */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--deep-ground);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--light-ground);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.editorial-flow {
  position: relative;
  isolation: isolate;
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(42px);
  mix-blend-mode: multiply;
  opacity: 0.28;
}

h1,
h2 {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

p {
  margin-block: 1.45rem;
}

.reading-column {
  max-width: 620px;
}

.section-kicker,
.hero-tagline,
.specimen-caption {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.section-kicker {
  margin: 0 0 1rem;
}

.section-heading {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.signal {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(107, 143, 163, 0.36) 0%, rgba(107, 143, 163, 0.15) 28%, transparent 53%),
    radial-gradient(ellipse at 72% 58%, rgba(163, 137, 158, 0.33) 0%, rgba(163, 137, 158, 0.13) 32%, transparent 52%),
    radial-gradient(ellipse at 52% 83%, rgba(212, 184, 196, 0.26) 0%, rgba(212, 184, 196, 0.1) 30%, transparent 57%),
    radial-gradient(ellipse at 42% 45%, rgba(122, 158, 151, 0.19) 0%, transparent 48%),
    var(--deep-ground);
  background-size: 100% 100%;
  animation: breathingBackground 20s ease-in-out infinite;
}

.signal::before {
  width: min(54vw, 720px);
  height: min(42vw, 560px);
  top: 8%;
  left: -8%;
  border-radius: 38% 62% 64% 36% / 42% 37% 63% 58%;
  background: radial-gradient(ellipse at 40% 40%, rgba(107, 143, 163, 0.24), transparent 70%);
}

.signal::after {
  width: min(58vw, 760px);
  height: min(44vw, 600px);
  right: -10%;
  bottom: -7%;
  border-radius: 65% 35% 34% 66% / 46% 57% 43% 54%;
  background: radial-gradient(ellipse at 45% 45%, rgba(212, 184, 196, 0.2), transparent 72%);
}

.signal-wash {
  position: absolute;
  z-index: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  mix-blend-mode: screen;
  filter: blur(22px);
  opacity: 0.22;
}

.signal-wash-a {
  width: 34vw;
  height: 36vw;
  min-width: 310px;
  min-height: 320px;
  background: radial-gradient(ellipse at 38% 42%, var(--accent-primary), transparent 69%);
  transform: rotate(-18deg) translate(-26vw, -10vh);
  animation: blobMorph 14s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.signal-wash-b {
  width: 38vw;
  height: 31vw;
  min-width: 330px;
  min-height: 270px;
  background: radial-gradient(ellipse at 42% 44%, var(--accent-secondary), transparent 70%);
  transform: rotate(14deg) translate(27vw, 18vh);
  animation: blobMorph2 15s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 1100px);
  text-align: center;
}

.hero-title {
  color: var(--light-ground);
  font-size: clamp(4rem, 10vw, 8rem);
  text-shadow: 0 18px 70px rgba(30, 26, 36, 0.45);
}

.hero-tagline {
  margin-top: 1.35rem;
  opacity: 0;
  animation: fadeIn 2s ease 1.5s both;
}

.spectrum {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 4% 12%, rgba(212, 184, 196, 0.35) 0%, transparent 38%),
    radial-gradient(ellipse at 92% 88%, rgba(107, 143, 163, 0.17) 0%, transparent 46%),
    var(--light-ground);
}

.spectrum::before {
  width: 360px;
  height: 210px;
  right: -120px;
  top: -70px;
  border-radius: 58% 42% 47% 53% / 45% 60% 40% 55%;
  background: var(--watercolor-bleed);
}

.spread-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px 40px 420px 1fr;
  align-items: center;
  width: 100%;
  min-height: inherit;
  padding-block: 6rem;
}

.spectrum-visual {
  position: relative;
  grid-column: 2 / 3;
  height: min(62vh, 560px);
}

.spectrum-copy {
  grid-column: 4 / 5;
}

.spectrum-copy p:not(.section-kicker),
.drift-content p:not(.section-kicker) {
  color: var(--text-primary);
}

.blob,
.specimen-blob,
.drift-blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob {
  position: absolute;
  opacity: 0;
  mix-blend-mode: multiply;
  will-change: border-radius, opacity, transform;
  transition: opacity 1.2s ease;
}

.is-visible .blob,
.blob.is-visible {
  opacity: 0.88;
}

.blob-primary {
  width: 300px;
  height: 330px;
  left: -18px;
  top: 4%;
  background:
    radial-gradient(ellipse at 38% 38%, rgba(58, 54, 64, 0.11), transparent 26%),
    radial-gradient(ellipse at 40% 40%, var(--accent-primary) 0%, rgba(107, 143, 163, 0.28) 36%, transparent 70%);
  animation: blobMorph 12s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.blob-secondary {
  width: 235px;
  height: 250px;
  left: 126px;
  top: 35%;
  background:
    radial-gradient(ellipse at 43% 38%, rgba(122, 158, 151, 0.78) 0%, rgba(122, 158, 151, 0.25) 42%, transparent 71%);
  animation: blobMorph2 14s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.blob-tertiary {
  width: 275px;
  height: 225px;
  right: -10px;
  bottom: 7%;
  background:
    radial-gradient(ellipse at 38% 42%, rgba(212, 184, 196, 0.88) 0%, rgba(212, 184, 196, 0.28) 45%, transparent 73%);
  animation: blobMorph3 15s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.wash-veil {
  position: absolute;
  inset: 11% -6% 3% -8%;
  border-radius: 47% 53% 61% 39% / 42% 58% 42% 58%;
  border: 1px solid rgba(107, 143, 163, 0.35);
  opacity: 0.7;
}

.current {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 6rem 5vw;
  background:
    radial-gradient(ellipse at 18% 62%, rgba(122, 158, 151, 0.18) 0%, transparent 44%),
    radial-gradient(ellipse at 72% 22%, rgba(163, 137, 158, 0.18) 0%, transparent 38%),
    var(--light-ground);
}

.current::after {
  width: 520px;
  height: 180px;
  left: 8%;
  bottom: -92px;
  border-radius: 64% 36% 47% 53% / 51% 58% 42% 49%;
  background: var(--accent-primary);
}

.ribbon-head {
  position: relative;
  z-index: 1;
  text-align: center;
}

.specimen-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.specimen {
  width: 280px;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.specimen.is-visible {
  animation: specimenReveal 1.2s ease both;
}

.specimen-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1.3;
  overflow: hidden;
  background: rgba(238, 232, 240, 0.35);
}

.specimen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107, 143, 163, 0.6);
  clip-path: inset(0 100% 100% 0);
}

.specimen.is-visible .specimen-frame::before {
  animation: borderDraw 1.7s linear both, borderPulse 4s ease-in-out 1.7s infinite;
}

.specimen-blob {
  width: 78%;
  height: 66%;
  mix-blend-mode: multiply;
  filter: blur(0.2px);
  animation: blobMorph2 13s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.specimen-a {
  background: radial-gradient(ellipse at 38% 38%, var(--accent-primary) 0%, rgba(107, 143, 163, 0.32) 42%, transparent 71%);
}

.specimen-b {
  border-radius: 60% 40% 44% 56% / 37% 62% 38% 63%;
  background: radial-gradient(ellipse at 42% 39%, var(--accent-secondary) 0%, rgba(163, 137, 158, 0.3) 44%, transparent 73%);
  animation-name: blobMorph3;
}

.specimen-c {
  border-radius: 37% 63% 58% 42% / 62% 43% 57% 38%;
  background: radial-gradient(ellipse at 40% 40%, var(--accent-tertiary) 0%, rgba(122, 158, 151, 0.3) 43%, transparent 72%);
  animation-name: blobMorph;
}

.micro-line {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(58, 54, 64, 0.22);
  transform-origin: left center;
}

.line-one { width: 48%; top: 22%; left: 18%; transform: rotate(-18deg); }
.line-two { width: 38%; bottom: 21%; right: 18%; transform: rotate(23deg); }
.line-three { width: 54%; top: 28%; left: 22%; transform: rotate(13deg); }
.line-four { width: 31%; bottom: 26%; left: 20%; transform: rotate(-29deg); }
.line-five { width: 42%; top: 19%; right: 13%; transform: rotate(31deg); }
.line-six { width: 50%; bottom: 18%; left: 16%; transform: rotate(-10deg); }

.specimen-caption {
  margin: 1.25rem 0 0;
  text-align: center;
}

.drift {
  min-height: 120vh;
  display: grid;
  place-items: center;
  padding: 8rem 2rem;
  background:
    radial-gradient(ellipse at 84% 15%, rgba(107, 143, 163, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 13% 85%, rgba(212, 184, 196, 0.24) 0%, transparent 45%),
    var(--light-ground);
}

.drift-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.drift-blob {
  position: absolute;
  filter: blur(58px);
  mix-blend-mode: multiply;
  opacity: 0.55;
  will-change: transform;
}

.drift-blob-1 {
  width: 420px;
  height: 390px;
  top: 12%;
  left: 3%;
  background: radial-gradient(ellipse at 40% 40%, rgba(107, 143, 163, 0.32) 0%, transparent 70%);
  animation: blobDrift 25s linear infinite;
}

.drift-blob-2 {
  width: 370px;
  height: 410px;
  top: 42%;
  right: 7%;
  background: radial-gradient(ellipse at 40% 40%, rgba(163, 137, 158, 0.28) 0%, transparent 70%);
  animation: blobDrift 30s linear infinite reverse;
}

.drift-blob-3 {
  width: 330px;
  height: 280px;
  bottom: 8%;
  left: 22%;
  background: radial-gradient(ellipse at 40% 40%, rgba(122, 158, 151, 0.24) 0%, transparent 72%);
  animation: blobDrift 35s linear infinite;
}

.drift-content {
  position: relative;
  z-index: 1;
}

.drift-content p:not(.section-kicker) {
  margin-block: 4rem;
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  line-height: 2.1;
}

.pull-quote {
  margin: 4.2rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--accent-primary);
  color: var(--text-primary);
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-style: italic;
  line-height: 1.6;
}

.residue {
  min-height: 80vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(212, 184, 196, 0.18) 0%, transparent 45%),
    var(--deep-ground);
}

.residue-phrase {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--light-ground);
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.residue.is-visible .residue-phrase {
  opacity: 1;
  transition-delay: 0.35s;
}

.residue-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.frame-line {
  position: absolute;
  display: block;
  background: var(--accent-primary);
  opacity: 0.6;
}

.frame-top,
.frame-bottom {
  width: 0;
  height: 1px;
}

.frame-left,
.frame-right {
  width: 1px;
  height: 0;
}

.frame-top { top: 0; left: 0; }
.frame-right { top: 0; right: 0; }
.frame-bottom { right: 0; bottom: 0; }
.frame-left { bottom: 0; left: 0; }

.residue.is-visible .frame-top { animation: drawWidth 0.5s linear both; }
.residue.is-visible .frame-right { animation: drawHeight 0.5s linear 0.5s both; }
.residue.is-visible .frame-bottom { animation: drawWidth 0.5s linear 1s both; }
.residue.is-visible .frame-left { animation: drawHeight 0.5s linear 1.5s both; }

.residue-stain {
  position: absolute;
  z-index: 1;
  bottom: -14%;
  left: 50%;
  width: min(680px, 90vw);
  height: 430px;
  transform: translateX(-50%);
  border-radius: 53% 47% 39% 61% / 41% 61% 39% 59%;
  background: radial-gradient(ellipse at 50% 50%, var(--watercolor-bleed) 0%, rgba(212, 184, 196, 0.22) 42%, transparent 70%);
  filter: blur(72px);
  opacity: 0;
}

.residue.is-visible .residue-stain {
  animation: fadeOut 3s ease 2s both;
}

@keyframes breathingBackground {
  0%, 100% { background-size: 100% 100%; }
  50% { background-size: 110% 110%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blobMorph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 61% 39% 34% 66% / 54% 36% 64% 46%; }
  100% { border-radius: 43% 57% 72% 28% / 42% 62% 38% 58%; }
}

@keyframes blobMorph2 {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 33% 67% 63% 37% / 36% 61% 39% 64%; }
  100% { border-radius: 72% 28% 43% 57% / 68% 42% 58% 32%; }
}

@keyframes blobMorph3 {
  0% { border-radius: 43% 57% 71% 29% / 45% 64% 36% 55%; }
  50% { border-radius: 70% 30% 58% 42% / 31% 71% 29% 69%; }
  100% { border-radius: 58% 42% 32% 68% / 62% 32% 68% 38%; }
}

@keyframes specimenReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes borderDraw {
  0% { clip-path: inset(0 100% 100% 0); }
  35% { clip-path: inset(0 0 100% 0); }
  70% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -40px); }
  50% { transform: translate(0, -80px); }
  75% { transform: translate(-30px, -40px); }
}

@keyframes drawWidth {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes drawHeight {
  from { height: 0; }
  to { height: 100%; }
}

@keyframes fadeOut {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1199px) {
  .spread-grid {
    grid-template-columns: 1fr minmax(0, 680px) 1fr;
    row-gap: 3rem;
    padding: 6rem 2rem;
  }

  .spectrum-visual,
  .spectrum-copy {
    grid-column: 2 / 3;
  }

  .spectrum-visual {
    height: 430px;
  }
}

@media (max-width: 880px) {
  .specimen-container {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .specimen {
    width: min(280px, 28vw);
  }
}

@media (max-width: 680px) {
  .spread-grid,
  .drift {
    padding-inline: 1.3rem;
  }

  .section-heading {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .spectrum-visual {
    height: 320px;
  }

  .blob-primary { width: 235px; height: 255px; }
  .blob-secondary { width: 190px; height: 200px; left: 28%; }
  .blob-tertiary { width: 215px; height: 180px; }

  .current {
    padding-inline: 1.3rem;
  }

  .specimen-container {
    flex-direction: column;
    align-items: center;
  }

  .specimen {
    width: min(280px, 78vw);
  }

  .drift-content p:not(.section-kicker),
  .pull-quote {
    margin-block: 2.5rem;
  }
}
