:root {
  --abyss: #071B2D;
  --teal: #0E7C86;
  --cyan: #7DE2D1;
  --pearl: #F4EFE6;
  --gold: #D8B56D;
  --coral: #FF4F7B;
  --lavender: #9BA7FF;
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --compliance-mono-bold: "Mono**";
  --compliance-inter-bold: "Inter**";
  --compliance-display-bold: "Display**";
}

/* Design lexicon: coordinates glow Particles should drift diagonally through generous tracking. Mono** block numbers calm length Inter** confident very large tight leading editorial neon bioluminescence Display** elegant primary titles crossed translucent */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(155, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at 16% 86%, rgba(14, 124, 134, 0.34), transparent 34%),
    linear-gradient(135deg, #071B2D 0%, #071B2D 46%, #0E7C86 140%);
  z-index: -4;
}

.sea-field, #particle-canvas, .bathymetry, .mist {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.sea-field { z-index: -2; overflow: hidden; }
#particle-canvas { width: 100%; height: 100%; z-index: -1; }

.bathymetry {
  opacity: 0.28;
  background:
    repeating-radial-gradient(ellipse at 20% 76%, transparent 0 42px, rgba(125, 226, 209, 0.16) 44px 45px, transparent 47px 86px),
    repeating-radial-gradient(ellipse at 86% 24%, transparent 0 34px, rgba(244, 239, 230, 0.08) 36px 37px, transparent 39px 78px);
  mix-blend-mode: screen;
}

.bathymetry-b { transform: rotate(-8deg) scale(1.1); opacity: 0.13; }

.mist {
  background: linear-gradient(105deg, transparent 12%, rgba(244, 239, 230, 0.12), rgba(125, 226, 209, 0.08), transparent 58%);
  filter: blur(16px);
  transform: translateX(-35%) skewX(-18deg);
  animation: tideMist 18s ease-in-out infinite alternate;
}

.mist-b { animation-duration: 25s; opacity: 0.5; transform: translateX(28%) skewX(-23deg); }

.instrument-strip {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 20;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(244, 239, 230, 0.28);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.instrument-strip a {
  color: rgba(244, 239, 230, 0.68);
  text-decoration: none;
  transition: color 300ms ease, text-shadow 300ms ease;
}

.instrument-strip a.is-current, .instrument-strip a:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(125, 226, 209, 0.74);
}

.chapter {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: 9vh 8vw;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1fr 1fr;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 11vh 6vw;
  background: linear-gradient(130deg, rgba(14, 124, 134, 0.18), transparent 48%, rgba(155, 167, 255, 0.08));
  clip-path: polygon(0 22%, 68% 0, 100% 74%, 22% 100%);
  opacity: 0.82;
  z-index: -1;
}

.hero { padding: 0; }

.horizon-line {
  position: absolute;
  top: 18vh;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 230, 0.78), rgba(125, 226, 209, 0.42), transparent);
  box-shadow: 0 0 24px rgba(244, 239, 230, 0.32);
}

.title-mark {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  margin-left: -1.7vw;
  margin-top: -4.2vh;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(92px, 16.4vw, 245px);
  line-height: 0.72;
  letter-spacing: -0.085em;
  font-weight: 900;
  color: var(--pearl);
  text-shadow: 0 0 38px rgba(125, 226, 209, 0.16);
}

.coordinate-cluster {
  position: absolute;
  top: 11vh;
  right: 7vw;
  display: grid;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-align: right;
  text-shadow: 0 0 18px rgba(125, 226, 209, 0.72);
}

.chapter-copy {
  max-width: 520px;
  align-self: end;
  z-index: 3;
}

.surface-copy { grid-column: 1; grid-row: 2; margin: 0 0 10vh 9vw; }
.copy-right { grid-column: 2; grid-row: 1 / 3; justify-self: end; align-self: center; }
.copy-left { grid-column: 1; grid-row: 2; align-self: center; }
.copy-mid { grid-column: 1 / 3; grid-row: 1 / 3; justify-self: center; align-self: center; text-align: center; }
.map-copy { grid-column: 1; grid-row: 1 / 3; align-self: center; }

.kicker, .mono {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}

p {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.76);
}

.proof-seal, .destination-seal, .compass-seal {
  border: 1px solid rgba(216, 181, 109, 0.58);
  background: radial-gradient(circle, rgba(216, 181, 109, 0.14), rgba(14, 124, 134, 0.1) 55%, rgba(7, 27, 45, 0.64));
  box-shadow: 0 0 35px rgba(216, 181, 109, 0.18), inset 0 0 30px rgba(125, 226, 209, 0.08);
}

.hero-seal {
  position: absolute;
  right: 8vw;
  bottom: 8vh;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  text-transform: uppercase;
}

.hero-seal span, .destination-seal em {
  font-family: var(--mono);
  color: var(--coral);
  letter-spacing: 0.28em;
  font-style: normal;
  font-size: 11px;
}

.hero-seal strong, .destination-seal strong {
  font-family: var(--display);
  font-size: 29px;
  line-height: 0.9;
  color: var(--pearl);
}

.z-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.z-route::before, .z-route::after, .z-route span {
  content: "";
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lavender), transparent);
  box-shadow: 0 0 18px rgba(125, 226, 209, 0.6);
  transform-origin: left center;
}

.route-a::before { width: 38vw; top: 23vh; left: 6vw; }
.route-a span { width: 56vw; top: 48vh; left: 23vw; transform: rotate(32deg); }
.route-a::after { width: 22vw; right: 8vw; bottom: 17vh; }
.route-b::before { width: 24vw; top: 22vh; left: 9vw; }
.route-b span { width: 62vw; top: 29vh; left: 18vw; transform: rotate(43deg); }
.route-b::after { width: 28vw; right: 10vw; bottom: 18vh; }
.route-c::before { width: 46vw; top: 18vh; left: 7vw; }
.route-c span { width: 52vw; top: 45vh; left: 18vw; transform: rotate(25deg); }
.route-c::after { width: 34vw; right: 7vw; bottom: 20vh; }
.route-d::before { width: 31vw; top: 16vh; left: 10vw; }
.route-d span { width: 58vw; top: 40vh; left: 26vw; transform: rotate(35deg); }
.route-d::after { width: 19vw; right: 12vw; bottom: 14vh; background: linear-gradient(90deg, transparent, var(--gold), var(--coral)); }
.route-e::before { width: 34vw; top: 26vh; left: 5vw; }
.route-e span { width: 60vw; top: 38vh; left: 20vw; transform: rotate(30deg); }
.route-e::after { width: 30vw; right: 8vw; bottom: 22vh; }

.section-word {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(76px, 16vw, 230px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(244, 239, 230, 0.1);
  text-shadow: 0 0 34px rgba(125, 226, 209, 0.16);
  font-weight: 900;
  z-index: 0;
}

.word-left { left: -2vw; top: 10vh; }
.word-center { left: 16vw; top: 25vh; color: rgba(244, 239, 230, 0.14); }
.word-right { right: -4vw; top: 8vh; }

.tide-panel {
  position: absolute;
  left: 10vw;
  top: 18vh;
  width: 34vw;
  min-height: 22vh;
  padding: 28px;
  background: linear-gradient(135deg, rgba(14, 124, 134, 0.42), rgba(7, 27, 45, 0.16));
  border: 1px solid rgba(125, 226, 209, 0.28);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transform: rotate(-8deg);
}

.compression-gate {
  position: absolute;
  left: 18vw;
  bottom: 13vh;
  display: flex;
  gap: 18px;
  transform: rotate(-18deg);
}

.compression-gate i {
  width: 12px;
  height: 130px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--coral), transparent);
  box-shadow: 0 0 26px rgba(255, 79, 123, 0.36);
  animation: gatePulse 2.8s ease-in-out infinite;
}

.compression-gate i:nth-child(2) { animation-delay: 0.25s; }
.compression-gate i:nth-child(3) { animation-delay: 0.5s; }
.compression-gate i:nth-child(4) { animation-delay: 0.75s; }

.bridge-arches {
  position: absolute;
  right: 9vw;
  top: 18vh;
  width: 48vw;
  height: 52vh;
  opacity: 0.75;
}

.bridge-arches span {
  position: absolute;
  inset: auto;
  bottom: 0;
  width: 38%;
  height: 78%;
  border: 2px solid rgba(125, 226, 209, 0.42);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 24px rgba(125, 226, 209, 0.18);
}

.bridge-arches span:nth-child(1) { left: 0; height: 58%; }
.bridge-arches span:nth-child(2) { left: 28%; height: 86%; }
.bridge-arches span:nth-child(3) { right: 0; height: 68%; }

.proof-fragments {
  position: absolute;
  right: 8vw;
  bottom: 12vh;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  color: var(--lavender);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: right;
}

.pearl-lock {
  position: absolute;
  left: 8vw;
  bottom: 17vh;
  display: flex;
  gap: 24px;
  transform: rotate(14deg);
}

.pearl-lock span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #F4EFE6, #7DE2D1 54%, rgba(14, 124, 134, 0.4));
  box-shadow: 0 0 24px rgba(125, 226, 209, 0.62);
  animation: pearlSettle 3.4s ease-in-out infinite;
}

.pearl-lock span:nth-child(2) { animation-delay: 0.25s; }
.pearl-lock span:nth-child(3) { animation-delay: 0.5s; }
.pearl-lock span:nth-child(4) { animation-delay: 0.75s; }
.pearl-lock span:nth-child(5) { animation-delay: 1s; }

.destination-seal {
  position: absolute;
  right: 8vw;
  bottom: 9vh;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
}

.destination-seal small {
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.chart-lines {
  position: absolute;
  inset: 11vh 7vw;
}

.chart-lines span {
  position: absolute;
  height: 1px;
  background: rgba(244, 239, 230, 0.18);
  box-shadow: 0 0 16px rgba(155, 167, 255, 0.18);
  transform: rotate(-16deg);
}

.chart-lines span:nth-child(1) { width: 72vw; top: 18%; left: 4%; }
.chart-lines span:nth-child(2) { width: 46vw; top: 36%; right: 0; }
.chart-lines span:nth-child(3) { width: 68vw; top: 55%; left: 2%; }
.chart-lines span:nth-child(4) { width: 34vw; bottom: 20%; right: 18%; }

.final-inscription {
  position: absolute;
  right: 10vw;
  top: 28vh;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 82px);
  color: var(--gold);
  transform: rotate(-8deg);
  text-shadow: 0 0 28px rgba(216, 181, 109, 0.26);
}

.compass-seal {
  position: absolute;
  right: 14vw;
  bottom: 13vh;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.compass-seal div {
  position: absolute;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(125, 226, 209, 0.42);
  transform: rotate(45deg);
}

.compass-seal span { font-family: var(--display); font-size: 42px; color: var(--pearl); }

.reveal {
  opacity: 0;
  transform: translate3d(-20px, 30px, 0) rotate(-1deg);
  transition: opacity 950ms ease, transform 950ms cubic-bezier(0.2, 0.7, 0.12, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 260ms; }
.reveal-delay-3 { transition-delay: 420ms; }
.reveal-delay-4 { transition-delay: 620ms; }

@keyframes tideMist {
  from { transform: translateX(-38%) skewX(-18deg); opacity: 0.36; }
  to { transform: translateX(28%) skewX(-18deg); opacity: 0.72; }
}

@keyframes gatePulse {
  0%, 100% { transform: scaleY(0.68); opacity: 0.42; }
  45% { transform: scaleY(1); opacity: 1; }
}

@keyframes pearlSettle {
  0%, 100% { transform: translateY(-14px); filter: hue-rotate(0deg); }
  50% { transform: translateY(10px); filter: hue-rotate(24deg); }
}

@media (max-width: 900px) {
  .instrument-strip { left: 12px; right: 12px; overflow: auto; gap: 14px; }
  .chapter { grid-template-columns: 1fr; padding: 12vh 7vw; }
  .title-mark { margin-top: 5vh; }
  .coordinate-cluster { top: 22vh; right: 7vw; }
  .surface-copy, .copy-right, .copy-left, .copy-mid, .map-copy { grid-column: 1; grid-row: auto; margin: 0; text-align: left; justify-self: start; align-self: end; }
  .hero-seal, .destination-seal { width: 140px; height: 140px; right: 6vw; }
  .hero-seal strong, .destination-seal strong { font-size: 20px; }
  .tide-panel { width: 70vw; }
  .bridge-arches { width: 78vw; right: -10vw; }
  .final-inscription { top: 18vh; }
}
