:root {
  /* Compliance tokens: Interactive elements Intersection Observer threshold. handles all scroll-triggered reveals (no listeners DOM manipulation (Google small sizes (0.75rem–0.875rem */
  --abyssal-ink: #0a1628;
  --twilight-current: #132238;
  --surfacing-wash: #1e3a5f;
  --bioluminescent-teal: #6bb9d2;
  --phosphor-glow: #4a9bb5;
  --deep-coral: #c47a6e;
  --moonlit-foam: #d4e4f0;
  --paper-grain: #e8dfd4;
  --text-light: #c8d6e5;
  --text-dark: #1a2a3a;
  --ink-bloom: rgba(10, 22, 40, 0.85);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: "Karla", Inter, system-ui, sans-serif;
  --bloom-scale: 0;
  --bloom-opacity: 0.05;
  --return-scale: 1;
  --return-opacity: 0.55;
  --warmth: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(107, 185, 210, 0.08), transparent 48%),
    linear-gradient(165deg, #0a1628 0%, #132238 35%, #1e3a5f 65%, rgba(107,185,210,0.15) 100%);
  color: var(--text-light);
  font-family: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.water-scroll {
  position: relative;
  isolation: isolate;
  background: var(--abyssal-ink);
}

.water-scroll::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(232, 223, 212, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 42%, rgba(212, 228, 240, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 83%, rgba(200, 214, 229, 0.75) 0 1px, transparent 1.5px);
  background-size: 34px 42px, 47px 39px, 29px 31px;
}

.chapter {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: -1px;
}

.chapter-drop,
.chapter-drift,
.chapter-return {
  min-height: 100vh;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 70%, rgba(107,185,210,0.12) 0%, transparent 70%);
  opacity: 0.75;
}

.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(196, 122, 110, calc(var(--warmth) * 1));
  mix-blend-mode: soft-light;
}

.chapter-drop {
  background: #0a1628;
}

.chapter-dissolution {
  background:
    linear-gradient(172deg, rgba(10, 22, 40, 0.95) 0%, #132238 44%, #d4e4f0 45%, rgba(212, 228, 240, 0.84) 100%);
  color: var(--text-dark);
}

.chapter-drift {
  background:
    radial-gradient(ellipse at 80% 24%, rgba(196, 122, 110, 0.05), transparent 43%),
    linear-gradient(165deg, #0a1628 0%, #132238 35%, #1e3a5f 65%, rgba(107,185,210,0.15) 100%);
}

.chapter-stillness {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 228, 240, 0.08), transparent 42%),
    linear-gradient(165deg, #132238 0%, #1e3a5f 72%, rgba(10, 22, 40, 0.98) 100%);
}

.chapter-return {
  background: #0a1628;
}

.paper-grain,
.wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-grain {
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(115deg, rgba(232, 223, 212, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(232, 223, 212, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(212, 228, 240, 0.55) 0 1px, transparent 2px);
  background-size: 9px 9px, 43px 39px, 37px 51px;
}

.wash {
  filter: url(#watercolor-distort);
  opacity: 0.78;
}

.wash-cool {
  background: radial-gradient(ellipse at 32% 24%, rgba(107, 185, 210, 0.18), transparent 48%);
}

.wash-warm {
  background: radial-gradient(ellipse at 64% 60%, rgba(196, 122, 110, 0.09), transparent 52%);
}

.chapter-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(4rem, 12vw, 10rem);
}

.hero-inner,
.still-inner,
.return-inner {
  text-align: center;
}

.wordmark,
h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--moonlit-foam);
  text-shadow: 0 0 38px rgba(107, 185, 210, 0.16);
}

.chapter-label {
  margin: 0 0 1.618rem;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(107, 185, 210, 0.7);
}

p {
  margin: 0;
}

.bloom-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: url(#watercolor-distort);
}

.ink-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 880px);
  aspect-ratio: 1;
  border-radius: 49% 51% 46% 54% / 43% 55% 45% 57%;
  opacity: var(--bloom-opacity);
  transform: translate(-50%, -50%) scale(var(--bloom-scale));
  transform-origin: center;
  mix-blend-mode: screen;
}

.bloom-one { background: radial-gradient(circle at 50% 50%, rgba(10, 22, 40, 0.4), transparent 68%); }
.bloom-two { background: radial-gradient(circle at 46% 55%, rgba(30, 58, 95, 0.25), transparent 70%); transform: translate(-48%, -53%) scale(calc(var(--bloom-scale) * 0.92)); }
.bloom-three { background: radial-gradient(circle at 53% 46%, rgba(107, 185, 210, 0.08), transparent 72%); transform: translate(-53%, -47%) scale(calc(var(--bloom-scale) * 1.12)); }
.bloom-four { background: radial-gradient(circle at 48% 49%, rgba(10, 22, 40, 0.32), transparent 74%); transform: translate(-49%, -50%) scale(calc(var(--bloom-scale) * 0.78)); }
.bloom-five { background: radial-gradient(circle at 57% 53%, rgba(107, 185, 210, 0.06), transparent 68%); transform: translate(-55%, -52%) scale(calc(var(--bloom-scale) * 1.28)); }

.diagonal-edge {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(7rem, 13vw, 12rem);
  margin-top: calc(clamp(7rem, 13vw, 12rem) * -0.5);
  margin-bottom: calc(clamp(7rem, 13vw, 12rem) * -0.5);
  z-index: 5;
  pointer-events: none;
}

.edge-two,
.edge-four {
  mix-blend-mode: screen;
  opacity: 0.62;
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 11vw, 12rem);
  align-items: center;
}

.text-island {
  max-width: 38ch;
  color: var(--text-light);
  padding: clamp(2.427rem, 5vw, 3.927rem);
  background: rgba(10, 22, 40, 0.42);
  box-shadow: 0 26px 80px rgba(10, 22, 40, 0.18);
  backdrop-filter: blur(2px);
}

.island-left {
  justify-self: end;
  transform: translateY(-11vh);
}

.island-right {
  justify-self: start;
  transform: translateY(12vh);
  background: rgba(212, 228, 240, 0.72);
  color: var(--text-dark);
}

.coral-mark {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 2.427rem;
  background: #c47a6e;
}

.drift-inner {
  display: grid;
  place-items: center;
}

.drift-column {
  max-width: 38ch;
  text-align: left;
}

.drift-column h2 {
  margin-bottom: 2.427rem;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
}

.blob,
.orbital {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  transition: translate 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: url(#watercolor-distort);
}

.blob-a {
  width: clamp(120px, 15vw, 200px);
  aspect-ratio: 1;
  right: 10vw;
  top: 17vh;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(107,185,210,0.06);
  animation: driftA 25s infinite cubic-bezier(0.37, 0, 0.63, 1), morphA 18s infinite ease-in-out, breathe 12s infinite ease-in-out;
}

.blob-b {
  width: clamp(80px, 11vw, 150px);
  aspect-ratio: 1;
  left: 10vw;
  top: 58vh;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  background: rgba(74,155,181,0.05);
  animation: driftB 29s infinite cubic-bezier(0.37, 0, 0.63, 1), morphB 21s infinite ease-in-out, breathe 14s infinite ease-in-out;
}

.blob-c {
  width: clamp(60px, 8vw, 100px);
  aspect-ratio: 1;
  right: 23vw;
  bottom: 15vh;
  border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
  background: rgba(196,122,110,0.04);
  animation: driftC 22s infinite cubic-bezier(0.37, 0, 0.63, 1), morphC 16s infinite ease-in-out, breathe 12s 2s infinite ease-in-out;
}

.still-statement {
  max-width: 22ch;
  margin: 0 auto;
  color: var(--moonlit-foam);
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 3.65rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.orbital {
  opacity: 0.82;
}

.shape-one { width: 42px; height: 42px; left: 14%; top: 18%; border-radius: 50%; background: rgba(107,185,210,0.10); animation: orbitOne 35s infinite cubic-bezier(0.37, 0, 0.63, 1); }
.shape-two { width: 34px; height: 56px; right: 16%; top: 69%; border-radius: 50% 45% 55% 45%; background: rgba(74,155,181,0.08); animation: orbitTwo 40s infinite cubic-bezier(0.37, 0, 0.63, 1); }
.shape-three { width: 38px; height: 34px; left: 8%; top: 52%; border-radius: 38% 62% 44% 56%; background: rgba(196,122,110,0.08); animation: orbitThree 45s infinite cubic-bezier(0.37, 0, 0.63, 1); }
.shape-four { width: 26px; height: 26px; right: 9%; top: 28%; border-radius: 50%; background: rgba(107,185,210,0.06); animation: orbitFour 38s infinite cubic-bezier(0.37, 0, 0.63, 1); }
.shape-five { width: 48px; height: 31px; left: 22%; bottom: 18%; border-radius: 60% 40% 35% 65%; background: rgba(74,155,181,0.05); animation: orbitFive 42s infinite cubic-bezier(0.37, 0, 0.63, 1); }

.return-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: var(--return-opacity);
  transform: translate(-50%, -50%) scale(var(--return-scale));
  background:
    radial-gradient(circle at 50% 50%, rgba(107,185,210,0.09), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(30,58,95,0.34), transparent 72%);
  filter: url(#watercolor-distort);
}

.return-inner {
  display: grid;
  place-items: center;
}

.wordmark-return {
  margin-bottom: 2.427rem;
}

.contact-line {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.875rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(107, 185, 210, 0.7);
  transition: color 800ms cubic-bezier(0.16, 1, 0.3, 1), text-shadow 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-line:hover {
  color: #d4e4f0;
  text-shadow: 0 0 24px rgba(107,185,210,0.45);
}

.reveal {
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: translateX(0); }

@keyframes driftA { 0%,100%{ transform: translate(0,0); } 25%{ transform: translate(30px,-20px); } 50%{ transform: translate(20px,30px); } 75%{ transform: translate(-30px,15px); } }
@keyframes driftB { 0%,100%{ transform: translate(0,0); } 25%{ transform: translate(-25px,25px); } 50%{ transform: translate(-15px,-30px); } 75%{ transform: translate(30px,-20px); } }
@keyframes driftC { 0%,100%{ transform: translate(0,0); } 25%{ transform: translate(20px,20px); } 50%{ transform: translate(-30px,10px); } 75%{ transform: translate(15px,-25px); } }
@keyframes morphA { 0%,100%{ border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50%{ border-radius: 67% 33% 38% 62% / 42% 61% 39% 58%; } }
@keyframes morphB { 0%,100%{ border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } 50%{ border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%; } }
@keyframes morphC { 0%,100%{ border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%; } 50%{ border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; } }
@keyframes breathe { 0%,100%{ scale: 0.95; } 50%{ scale: 1.05; } }
@keyframes orbitOne { 0%{ transform: translate(0,0) rotate(0deg); } 25%{ transform: translate(50px,-30px) rotate(90deg); } 50%{ transform: translate(20px,60px) rotate(180deg); } 75%{ transform: translate(-40px,20px) rotate(270deg); } 100%{ transform: translate(0,0) rotate(360deg); } }
@keyframes orbitTwo { 0%{ transform: translate(0,0) rotate(0deg); } 25%{ transform: translate(-60px,40px) rotate(90deg); } 50%{ transform: translate(-20px,-50px) rotate(180deg); } 75%{ transform: translate(45px,-30px) rotate(270deg); } 100%{ transform: translate(0,0) rotate(360deg); } }
@keyframes orbitThree { 0%{ transform: translate(0,0) rotate(0deg); } 25%{ transform: translate(40px,50px) rotate(90deg); } 50%{ transform: translate(-50px,30px) rotate(180deg); } 75%{ transform: translate(-30px,-60px) rotate(270deg); } 100%{ transform: translate(0,0) rotate(360deg); } }
@keyframes orbitFour { 0%{ transform: translate(0,0) rotate(0deg); } 25%{ transform: translate(-45px,-40px) rotate(90deg); } 50%{ transform: translate(35px,-25px) rotate(180deg); } 75%{ transform: translate(50px,45px) rotate(270deg); } 100%{ transform: translate(0,0) rotate(360deg); } }
@keyframes orbitFive { 0%{ transform: translate(0,0) rotate(0deg); } 25%{ transform: translate(55px,35px) rotate(90deg); } 50%{ transform: translate(-40px,50px) rotate(180deg); } 75%{ transform: translate(-45px,-35px) rotate(270deg); } 100%{ transform: translate(0,0) rotate(360deg); } }

@media (max-width: 760px) {
  .chapter-inner {
    padding: clamp(3rem, 9vw, 5rem);
  }

  .split-inner {
    grid-template-columns: 1fr;
    gap: 3.927rem;
  }

  .island-left,
  .island-right {
    justify-self: stretch;
    transform: none;
  }

  .text-island {
    padding: 2rem;
  }

  .contact-line {
    max-width: 26ch;
    line-height: 1.8;
  }
}
