:root {
  --mauve: #d4a5c7;
  --blue: #a8c8e8;
  --mint: #b8ddd0;
  --rosewater: #fff4f6;
  --ink: #3d3848;
  --deep: #5a3d5c;
  --coral: #e8a0a0;
  --lavender: #ede4f0;
  --muted: #9b8aa8;
  --panel: rgba(255, 244, 246, 0.65);
}

/* Design trace: #e8c4d0 Interaction* Interaction:* Interaction:** Intersection Observer on each `.depth-panel` for entrance animations: panels fade in from `opacity: 0; Playfair Display (high-contrast transitional serif Playfair Display" (Google Fonts Work Sans (geometric sans Work Sans" (Google Fonts */

* { box-sizing: border-box; }

html { background: var(--rosewater); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 196, 208, 0.28), transparent 30vw),
    linear-gradient(180deg, #fff4f6 0%, #f8f7fb 48%, #fff4f6 100%);
}

.bokeh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.bokeh {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.2;
  animation: float 28s cubic-bezier(0.25, 0.1, 0.25, 1) infinite alternate;
}

.b1 { width: 230px; height: 230px; left: -4%; top: 6%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 33s; }
.b2 { width: 160px; height: 160px; left: 22%; top: 3%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 24s; animation-delay: -5s; }
.b3 { width: 250px; height: 250px; right: 3%; top: 9%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 38s; animation-delay: -12s; }
.b4 { width: 120px; height: 120px; left: 61%; top: 20%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 29s; animation-delay: -7s; }
.b5 { width: 190px; height: 190px; left: 12%; top: 34%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 41s; animation-delay: -19s; }
.b6 { width: 150px; height: 150px; right: 19%; top: 38%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 27s; animation-delay: -9s; }
.b7 { width: 220px; height: 220px; left: 37%; top: 48%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 36s; animation-delay: -15s; }
.b8 { width: 130px; height: 130px; right: -2%; top: 55%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 23s; animation-delay: -4s; }
.b9 { width: 245px; height: 245px; left: -6%; bottom: 8%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 40s; animation-delay: -11s; }
.b10 { width: 155px; height: 155px; left: 28%; bottom: 4%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 31s; animation-delay: -21s; }
.b11 { width: 205px; height: 205px; right: 17%; bottom: 8%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 37s; animation-delay: -16s; }
.b12 { width: 90px; height: 90px; right: 38%; top: 6%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 25s; animation-delay: -8s; }
.b13 { width: 110px; height: 110px; left: 5%; top: 63%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 30s; animation-delay: -13s; }
.b14 { width: 180px; height: 180px; left: 47%; top: 71%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 39s; animation-delay: -25s; }
.b15 { width: 140px; height: 140px; right: 5%; bottom: 20%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 28s; animation-delay: -18s; }
.b16 { width: 95px; height: 95px; left: 76%; top: 2%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 21s; animation-delay: -2s; }
.b17 { width: 210px; height: 210px; left: 55%; top: 31%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 43s; animation-delay: -29s; }
.b18 { width: 100px; height: 100px; left: 19%; bottom: 26%; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); animation-duration: 22s; animation-delay: -6s; }
.b19 { width: 235px; height: 235px; right: 31%; bottom: -9%; background: radial-gradient(circle, var(--mauve) 0%, transparent 70%); animation-duration: 35s; animation-delay: -10s; }
.b20 { width: 125px; height: 125px; right: 46%; top: 16%; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); animation-duration: 26s; animation-delay: -17s; }

.fish-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fish {
  position: absolute;
  left: -160px;
  fill: var(--mauve);
  opacity: 0.24;
  will-change: transform;
  animation-name: swim;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  animation-iteration-count: infinite;
}

.fish-discus, .fish-gourami { fill: var(--blue); opacity: 0.2; }
.reverse { transform: scaleX(-1); }
.f1 { width: 92px; top: 14vh; animation-duration: 48s; animation-delay: -8s; }
.f2 { width: 72px; top: 31vh; animation-duration: 55s; animation-delay: -31s; }
.f3 { width: 118px; top: 51vh; animation-duration: 62s; animation-delay: -19s; }
.f4 { width: 64px; top: 72vh; animation-duration: 43s; animation-delay: -12s; }
.f5 { width: 82px; top: 23vh; animation-duration: 58s; animation-delay: -40s; }
.f6 { width: 105px; top: 44vh; animation-duration: 50s; animation-delay: -3s; }
.f7 { width: 76px; top: 83vh; animation-duration: 60s; animation-delay: -25s; }
.f8 { width: 110px; top: 62vh; animation-duration: 53s; animation-delay: -36s; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5;
  background: rgba(232, 196, 208, 0.18);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mauve), var(--blue), var(--mint));
  transition: width 0.18s ease-out;
}

.site-mark {
  position: fixed;
  z-index: 4;
  top: 24px;
  left: 28px;
  font-family: "Inconsolata", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
  padding: 8px 11px;
  background: rgba(255, 244, 246, 0.42);
  border: 1px solid rgba(212, 165, 199, 0.16);
  backdrop-filter: blur(12px) saturate(1.1);
}

.edge-track {
  position: fixed;
  top: 9vh;
  bottom: 9vh;
  right: 24px;
  width: 2px;
  z-index: 4;
  background: rgba(232, 196, 208, 0.3);
}

#fishIndicator {
  position: absolute;
  width: 34px;
  height: 24px;
  left: -16px;
  top: 0;
  fill: var(--mauve);
  opacity: 0.68;
  transform: translateY(0) rotate(90deg);
  transition: transform 0.2s ease-out;
}

.narrative {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr min(680px, 90vw) 1fr;
  padding: 22vh 0 20vh;
}

.depth-panel, .wave-divider {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr min(680px, 90vw) 1fr;
}

.depth-panel {
  min-height: 76vh;
  align-items: center;
  padding: 10vh 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.depth-panel.is-visible { opacity: 1; transform: translateY(0); }
.narrative.focus-mode .depth-panel:not(.is-focused) { filter: blur(2px); }

.glass-panel {
  grid-column: 2;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: rgba(255, 244, 246, 0.92);
  background: var(--panel);
  border: 1px solid rgba(212, 165, 199, 0.2);
  border-radius: 38px;
  box-shadow: 0 8px 32px rgba(90, 61, 92, 0.06);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.offset-left { transform: translateX(-6vw); }
.offset-right { transform: translateX(6vw); }
.compact-panel { max-width: 560px; }
.hero-panel { min-height: 90vh; }
.final-panel { min-height: 82vh; }

.kicker, .annotation {
  font-family: "Inconsolata", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 {
  margin: 0.2em 0 0.42em;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--deep);
  transition: color 0.6s ease, text-shadow 0.8s ease;
  cursor: default;
}

h1:hover, h2:hover, .focus-phrase:hover {
  color: var(--coral);
  text-shadow: 0 10px 36px rgba(212, 165, 199, 0.28);
}

p {
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.65; }
.annotation { margin-top: 2rem; color: var(--deep); opacity: 0.62; }

.wave-divider {
  min-height: 20vh;
  align-items: center;
  pointer-events: none;
}

.wave-divider svg {
  grid-column: 2;
  width: 100%;
  height: 80px;
  overflow: visible;
}

.wave-divider path {
  fill: none;
  stroke: var(--lavender);
  stroke-width: 1;
  stroke-dasharray: 8 14;
  animation: current 24s linear infinite;
}

@keyframes float {
  0% { transform: translate3d(-18px, 8px, 0) scale(0.96); }
  50% { transform: translate3d(18px, -26px, 0) scale(1.05); }
  100% { transform: translate3d(30px, 20px, 0) scale(1); }
}

@keyframes swim {
  0% { transform: translate3d(-160px, 0, 0) rotate(-2deg); }
  35% { transform: translate3d(35vw, 14px, 0) rotate(3deg); }
  70% { transform: translate3d(72vw, -14px, 0) rotate(-3deg); }
  100% { transform: translate3d(calc(100vw + 160px), 5px, 0) rotate(2deg); }
}

@keyframes current { to { stroke-dashoffset: -220; } }

@media (max-width: 760px) {
  .site-mark { top: 16px; left: 16px; }
  .edge-track { right: 13px; }
  .glass-panel { border-radius: 28px; }
  .offset-left, .offset-right { transform: none; }
  .narrative { grid-template-columns: 1fr min(88vw, 680px) 1fr; padding-top: 16vh; }
  .depth-panel, .wave-divider { grid-template-columns: 1fr min(88vw, 680px) 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
