:root {
  --bg-deep: #08090e;
  --bg-mid: #12163a;
  --text-primary: #e8e4f0;
  --text-secondary: #9b97a8;
  --accent-teal: #3de8d4;
  --accent-lavender: #b88cff;
  --accent-gold: #f0c75e;
  --accent-coral: #ff6b7f;
  --font-display: 'Libre Baskerville', serif;
  --font-body: 'Crimson Pro', serif;
  --font-caption: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* Particle Field */
#particle-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  transition: opacity 3s ease;
}

#particle-field.active {
  opacity: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.15;
  will-change: transform;
  animation: float-up linear infinite;
}

@keyframes float-up {
  from { transform: translateY(0); }
  to { transform: translateY(-100vh); }
}

/* Depth Gauge */
.depth-gauge {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  width: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depth-gauge-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(232, 228, 240, 0.2);
}

.depth-gauge-dot {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 12px var(--accent-teal);
  transition: top 0.1s ease-out;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-teal); }
  50% { box-shadow: 0 0 16px var(--accent-teal); }
}

/* Sections */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

/* Watercolor Washes */
.watercolor-wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform, opacity;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.watercolor-wash.visible {
  transform: scale(1);
  opacity: 1;
}

.wash-teal {
  background: radial-gradient(ellipse, var(--accent-teal) 0%, transparent 70%);
  opacity: 0;
}

.wash-teal.visible {
  opacity: 0.08;
}

.wash-lavender {
  background: radial-gradient(ellipse, var(--accent-lavender) 0%, transparent 70%);
  opacity: 0;
}

.wash-lavender.visible {
  opacity: 0.12;
}

.wash-1 { width: 600px; height: 500px; top: 20%; left: -10%; }
.wash-2 { width: 400px; height: 350px; top: 40%; right: -5%; }
.wash-3 { width: 700px; height: 580px; top: 10%; left: 5%; }
.wash-4 { width: 350px; height: 300px; bottom: 20%; right: 10%; }
.wash-5 { width: 500px; height: 600px; top: 15%; right: -8%; }
.wash-6 { width: 400px; height: 350px; bottom: 10%; left: 5%; }
.wash-7 { width: 800px; height: 800px; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); }
.wash-7.visible { transform: translate(-50%, -50%) scale(1); }
.wash-8 { width: 500px; height: 400px; top: 30%; left: 20%; }

/* Site Title */
.site-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 9rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: conic-gradient(from 0deg, var(--accent-teal), var(--accent-lavender), var(--accent-gold), var(--accent-coral), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
  animation: holo-rotate 8s linear infinite;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  position: relative;
  z-index: 2;
}

.site-title.visible {
  opacity: 1;
}

@keyframes holo-rotate {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.site-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 1.2s ease-out 0.8s;
  position: relative;
  z-index: 2;
}

.site-subtitle.visible {
  opacity: 1;
}

/* Section Headings */
.section-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Body Text */
.body-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  max-width: 38ch;
  color: var(--text-primary);
}

/* Content Blocks */
.content-block {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px) rotate(2deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-block.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Fish */
.fish {
  position: absolute;
  will-change: transform;
  opacity: 0;
  transition: opacity 1s ease;
}

.fish.visible {
  opacity: 1;
}

.fish-angel {
  clip-path: polygon(50% 0%, 85% 30%, 100% 60%, 80% 90%, 50% 100%, 20% 90%, 0% 60%, 15% 30%);
  width: 60px;
  height: 90px;
  background: var(--accent-lavender);
  opacity: 0.25;
  animation: drift 20s ease-in-out infinite;
}

.fish-betta {
  clip-path: polygon(30% 0%, 70% 0%, 95% 20%, 100% 50%, 90% 80%, 60% 100%, 30% 95%, 5% 70%, 0% 40%, 10% 15%);
  width: 80px;
  height: 70px;
  background: var(--accent-coral);
  opacity: 0.2;
  animation: drift 18s ease-in-out infinite reverse;
}

.fish-discus {
  clip-path: circle(50%);
  width: 50px;
  height: 50px;
  background: var(--accent-teal);
  opacity: 0.3;
  animation: drift 22s ease-in-out infinite;
}

.fish-moorish {
  clip-path: polygon(50% 0%, 55% 5%, 60% 25%, 90% 40%, 100% 50%, 90% 60%, 60% 75%, 55% 95%, 50% 100%, 45% 95%, 40% 75%, 10% 60%, 0% 50%, 10% 40%, 40% 25%, 45% 5%);
  width: 70px;
  height: 100px;
  background: var(--accent-gold);
  opacity: 0.15;
  animation: drift 25s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -15px) rotate(3deg); }
  50% { transform: translate(-10px, -30px) rotate(-2deg); }
  75% { transform: translate(20px, -10px) rotate(1deg); }
}

/* Fish positions */
.fish-surface-1 { top: 30%; right: 10%; animation-delay: -5s; }
.fish-surface-2 { bottom: 20%; left: 15%; animation-delay: -12s; }
.fish-shallows-1 { top: 20%; right: 8%; animation-delay: -3s; }
.fish-shallows-2 { bottom: 30%; left: 10%; animation-delay: -8s; }
.fish-shallows-3 { top: 60%; right: 20%; animation-delay: -15s; }
.fish-drift-1 { top: 25%; left: 8%; animation-delay: -7s; }
.fish-drift-2 { bottom: 25%; right: 12%; animation-delay: -11s; }
.fish-drift-3 { top: 50%; left: 20%; animation-delay: -2s; }
.fish-abyss-1 { top: 40%; right: 15%; animation-delay: -9s; }
.fish-abyss-2 { bottom: 35%; left: 12%; animation-delay: -14s; }

/* Moon Pool */
.moon-pool-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 3rem;
  z-index: 2;
}

.moon-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-teal), var(--accent-lavender), var(--accent-gold), var(--accent-coral), var(--accent-teal));
  opacity: 0.8;
  animation: holo-rotate 8s linear infinite;
}

.moon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
}

.moon-ring-1 { width: 150px; height: 150px; opacity: 0.4; }
.moon-ring-2 { width: 190px; height: 190px; opacity: 0.2; }
.moon-ring-3 { width: 240px; height: 240px; opacity: 0.08; }

/* Orbiting fish */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit-spin linear infinite;
  animation-play-state: paused;
}

.orbit.active {
  animation-play-state: running;
}

.orbit .fish {
  position: absolute;
  opacity: 0.3;
}

.orbit-1 { animation-duration: 12s; }
.orbit-1 .fish { top: -60px; left: -15px; width: 30px; height: 45px; }
.orbit-2 { animation-duration: 16s; animation-delay: -2s; }
.orbit-2 .fish { top: -80px; left: -12px; width: 25px; height: 25px; }
.orbit-3 { animation-duration: 20s; animation-delay: -5s; }
.orbit-3 .fish { top: -100px; left: -20px; width: 40px; height: 35px; }
.orbit-4 { animation-duration: 14s; animation-delay: -7s; }
.orbit-4 .fish { top: -70px; left: -17px; width: 35px; height: 50px; }
.orbit-5 { animation-duration: 18s; animation-delay: -3s; }
.orbit-5 .fish { top: -90px; left: -15px; width: 30px; height: 45px; }
.orbit-6 { animation-duration: 22s; animation-delay: -9s; }
.orbit-6 .fish { top: -65px; left: -12px; width: 25px; height: 25px; }
.orbit-7 { animation-duration: 15s; animation-delay: -11s; }
.orbit-7 .fish { top: -85px; left: -20px; width: 40px; height: 35px; }
.orbit-8 { animation-duration: 19s; animation-delay: -4s; }
.orbit-8 .fish { top: -95px; left: -15px; width: 30px; height: 45px; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Caption style */
.caption {
  font-family: var(--font-caption);
  font-weight: 300;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  opacity: 0.5;
}
