:root {
  /* Typography compliance note: Space Grotesk** Grotes geometric clarity with enough rounded friendliness to sit inside glossy forms. Use **DM Sans** San for explanatory copy; JetBrains Mono sparingly for simulation coordinates. */
  --aquarium-air: #E9FBFF;
  --gel-cyan: #32D8FF;
  --chlorophyll-glass: #7BFFB2;
  --pool-blue: #0077D9;
  --pearl-white: #FFFFFF;
  --violet-depth: #24104F;
  --coral-signal: #FF6F91;
  --glass-border: rgba(255,255,255,0.42);
  --title-font: "Space Grotesk", "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  --body-font: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--aquarium-air);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--violet-depth);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.95), transparent 22rem),
    linear-gradient(180deg, var(--aquarium-air) 0%, #d7f8ff 44%, #b9f5ff 72%, var(--violet-depth) 100%);
}

button { font: inherit; }

#plankton-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.caustic-sheet {
  position: fixed;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 18% 14%, transparent 0 18%, rgba(50,216,255,0.28) 19% 20%, transparent 21% 100%),
    radial-gradient(ellipse at 68% 26%, transparent 0 15%, rgba(123,255,178,0.22) 16% 17%, transparent 18% 100%),
    repeating-linear-gradient(112deg, transparent 0 46px, rgba(255,255,255,0.34) 49px, transparent 54px),
    repeating-linear-gradient(24deg, transparent 0 62px, rgba(50,216,255,0.18) 66px, transparent 72px);
  filter: blur(10px) url(#none);
  animation: causticDrift 18s ease-in-out infinite alternate;
}

.cursor-pearl {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  z-index: 20;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  background:
    radial-gradient(circle at 30% 24%, var(--pearl-white) 0 14%, transparent 15%),
    radial-gradient(circle at 58% 63%, rgba(123,255,178,0.75), transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(50,216,255,0.68), rgba(255,255,255,0.35) 50%, rgba(0,119,217,0.24) 72%);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 0 24px rgba(50,216,255,0.55), inset -8px -10px 15px rgba(0,119,217,0.22);
}

.oxygen-line {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  height: 58vh;
  width: 46px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.oxygen-tube {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 7px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(50,216,255,0.72), rgba(123,255,178,0.65));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.85), 0 0 20px rgba(50,216,255,0.36);
}

.drop {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 54% 46% 62% 38% / 50% 52% 48% 50%;
  background: rgba(233,251,255,0.52);
  box-shadow: inset -4px -5px 10px rgba(0,119,217,0.22), inset 4px 4px 8px rgba(255,255,255,0.9), 0 0 0 rgba(50,216,255,0);
  cursor: pointer;
  padding: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.drop span {
  position: absolute;
  right: 31px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  opacity: 0;
  padding: 6px 9px;
  border-radius: 12px;
  color: var(--violet-depth);
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--glass-border);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.drop:hover span, .drop.active span { opacity: 1; transform: translateY(-50%) translateX(0); }
.drop.active { transform: scale(1.35); background: var(--pearl-white); box-shadow: 0 0 22px var(--gel-cyan), inset -5px -6px 11px rgba(0,119,217,0.22); }

.chamber {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 8vh 8vw;
  border-top: 1px solid rgba(255,255,255,0.36);
}

.chamber::before {
  content: "";
  position: absolute;
  inset: 5vh 5vw;
  z-index: -1;
  border: 1px solid var(--glass-border);
  border-radius: 46px 82px 54px 96px / 82px 42px 92px 54px;
  background: linear-gradient(135deg, rgba(255,255,255,0.33), rgba(233,251,255,0.09));
  box-shadow: inset 0 0 42px rgba(255,255,255,0.44), inset 0 -50px 85px rgba(0,119,217,0.12), 0 22px 70px rgba(36,16,79,0.08);
  backdrop-filter: blur(10px);
}

.chamber::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: polygon(0 8%, 100% 0, 100% 82%, 0 100%);
  background: linear-gradient(145deg, rgba(255,255,255,0.22), transparent 45%, rgba(0,119,217,0.12));
}

.fluid-grid {
  position: absolute;
  inset: -8%;
  z-index: -3;
  background-image:
    linear-gradient(rgba(0,119,217,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,217,0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateY(10vh) scale(1.1);
  filter: blur(0.3px);
  transition: transform 0.2s linear;
}

.warped { animation: gridBreathe 8s ease-in-out infinite; }
.lagoon-grid { opacity: 0.55; transform: perspective(800px) rotateX(64deg) translateY(16vh) scale(1.24); }

.glass-scratches {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 33%, rgba(255,255,255,0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.38) 0 1px, transparent 2px),
    linear-gradient(104deg, transparent 0 42%, rgba(255,255,255,0.34) 42.2%, transparent 42.7% 100%),
    linear-gradient(78deg, transparent 0 62%, rgba(255,255,255,0.22) 62.2%, transparent 62.6% 100%);
}

.rim-wordmark {
  position: absolute;
  top: 2vh;
  width: min(70vw, 760px);
  height: 280px;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0,119,217,0.14));
}

.rim-wordmark text {
  font-family: var(--title-font);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0.045em;
  fill: rgba(36,16,79,0.78);
  stroke: rgba(255,255,255,0.72);
  stroke-width: 1px;
}

.lens-ring {
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1 / 0.42;
  top: 10vh;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.58);
  box-shadow: inset 0 14px 34px rgba(255,255,255,0.7), inset 0 -18px 32px rgba(0,119,217,0.16), 0 0 35px rgba(50,216,255,0.24);
}

.simulation-pearl {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 20%, var(--pearl-white) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 58%, rgba(123,255,178,0.8) 0 12%, transparent 24%),
    radial-gradient(circle at 46% 52%, rgba(50,216,255,0.38), rgba(255,255,255,0.72) 48%, rgba(0,119,217,0.34) 72%, rgba(36,16,79,0.16));
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow: inset 16px 18px 24px rgba(255,255,255,0.72), inset -22px -24px 35px rgba(0,119,217,0.23), 0 0 55px rgba(50,216,255,0.42), 0 26px 55px rgba(36,16,79,0.12);
  animation: pearlFloat 5.6s ease-in-out infinite;
}

.hero-pearl { width: clamp(170px, 22vw, 290px); height: clamp(170px, 22vw, 290px); left: 48vw; top: 39vh; }
.split-pearl { width: 155px; height: 155px; left: 55vw; top: 38vh; }
.reef-pearl { width: 180px; height: 180px; left: 28vw; top: 38vh; }
.lagoon-pearl { width: 125px; height: 125px; left: calc(50% - 62px); top: calc(50% - 62px); z-index: 2; }

.inner-world {
  position: absolute;
  inset: 24%;
  border-radius: 43% 57% 52% 48%;
  background:
    radial-gradient(circle at 62% 40%, var(--coral-signal) 0 5%, transparent 6%),
    linear-gradient(150deg, rgba(36,16,79,0.48), rgba(0,119,217,0.5), rgba(123,255,178,0.56));
  opacity: 0.8;
  filter: blur(0.2px);
  animation: worldTurn 7s linear infinite;
}

.specular { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.86); filter: blur(1px); }
.specular.one { width: 28%; height: 14%; left: 20%; top: 18%; transform: rotate(-28deg); }
.specular.two { width: 12%; height: 8%; right: 24%; top: 29%; }

.specimen-plaque {
  position: absolute;
  max-width: 430px;
  padding: 24px 26px;
  border-radius: 26px 34px 24px 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(233,251,255,0.24));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 18px rgba(255,255,255,0.62), 0 22px 42px rgba(36,16,79,0.08);
  backdrop-filter: blur(12px);
}

.surface-note { left: 9vw; bottom: 12vh; }
.left-label { left: 10vw; top: 22vh; }
.right-label { right: 9vw; top: 19vh; }
.lagoon-note { left: 9vw; bottom: 14vh; }
.final-note { left: 9vw; top: 16vh; color: var(--pearl-white); background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(50,216,255,0.08)); }

.mono {
  margin: 0 0 13px;
  color: var(--pool-blue);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.final-note .mono { color: var(--chlorophyll-glass); }

h1, h2 {
  margin: 0 0 13px;
  font-family: var(--title-font);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(46px, 7vw, 102px); }
h2 { font-size: clamp(36px, 5vw, 76px); }
p { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; }

.bubble { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.82); background: radial-gradient(circle at 31% 25%, var(--pearl-white), rgba(50,216,255,0.18) 34%, rgba(0,119,217,0.08)); box-shadow: inset -6px -8px 13px rgba(0,119,217,0.18), 0 0 20px rgba(50,216,255,0.24); transition: transform 0.22s ease-out; animation: bubbleRise 9s ease-in-out infinite; }
.b1 { width: 46px; height: 46px; left: 19vw; top: 22vh; animation-delay: -1s; }
.b2 { width: 31px; height: 31px; left: 76vw; top: 34vh; animation-delay: -3s; }
.b3 { width: 62px; height: 62px; left: 68vw; top: 70vh; animation-delay: -5s; }
.b4 { width: 24px; height: 24px; left: 39vw; top: 18vh; animation-delay: -2s; }
.b5 { width: 52px; height: 52px; left: 83vw; top: 58vh; animation-delay: -6s; }

.current-paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.draw-current { fill: none; stroke: var(--gel-cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 14 20; filter: drop-shadow(0 0 12px rgba(50,216,255,0.65)); animation: currentDash 5s linear infinite; }
.c2 { stroke: var(--chlorophyll-glass); stroke-width: 3; animation-duration: 6.5s; }

.agent-orbit { position: absolute; left: 55vw; top: 38vh; width: 155px; height: 155px; animation: orbit 11s linear infinite; }
.agent-orbit i { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 32% 24%, var(--pearl-white), var(--gel-cyan) 35%, rgba(123,255,178,0.68)); box-shadow: 0 0 18px rgba(123,255,178,0.76); transform: rotate(calc(var(--i) * 45deg)) translateX(118px); }

.buoy-tag, .lab-sticker {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.44);
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 16px rgba(255,255,255,0.55);
}
.tag-one { right: 17vw; top: 24vh; transform: rotate(5deg); }
.tag-two { right: 12vw; bottom: 22vh; color: var(--coral-signal); transform: rotate(-7deg); }

.reefs { background: linear-gradient(180deg, rgba(233,251,255,0.2), rgba(0,119,217,0.12), rgba(36,16,79,0.08)); }
.violet-shadow { position: absolute; inset: auto 0 0; height: 40%; background: radial-gradient(ellipse at 50% 100%, rgba(36,16,79,0.48), transparent 65%); }
.coral-field { position: absolute; left: 12vw; bottom: 7vh; width: 42vw; height: 52vh; }
.coral { position: absolute; bottom: 0; width: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(123,255,178,0.72), rgba(0,119,217,0.18)); border: 1px solid rgba(255,255,255,0.44); box-shadow: 0 0 18px rgba(123,255,178,0.35); transform-origin: bottom center; animation: coralSway 5s ease-in-out infinite; }
.coral::before, .coral::after { content: ""; position: absolute; width: 13px; height: 42%; bottom: 34%; border-radius: 14px; background: inherit; border: inherit; }
.coral::before { right: 8px; transform: rotate(-38deg); transform-origin: bottom; }
.coral::after { left: 8px; transform: rotate(40deg); transform-origin: bottom; }
.branch-a { height: 72%; left: 8%; }
.branch-b { height: 52%; left: 26%; animation-delay: -1s; }
.branch-c { height: 86%; left: 49%; animation-delay: -2s; }
.branch-d { height: 61%; left: 72%; animation-delay: -3s; }
.rule-rings span { position: absolute; left: calc(28vw - 44px); top: calc(38vh - 44px); width: 268px; height: 268px; border-radius: 50%; border: 1px solid rgba(123,255,178,0.62); animation: rulePulse 3.8s ease-out infinite; }
.rule-rings span:nth-child(2) { animation-delay: 1.2s; border-color: rgba(50,216,255,0.56); }
.rule-rings span:nth-child(3) { animation-delay: 2.4s; border-color: rgba(255,111,145,0.44); }
.lab-sticker { left: 14vw; top: 19vh; color: var(--pool-blue); transform: rotate(-6deg); }

.ripple-stage { position: absolute; width: min(78vw, 850px); aspect-ratio: 1; border-radius: 50%; }
.ripple { position: absolute; inset: 39%; border-radius: 50%; border: 2px solid rgba(50,216,255,0.64); box-shadow: 0 0 24px rgba(50,216,255,0.35), inset 0 0 24px rgba(255,255,255,0.25); animation: rippleForecast 5s ease-out infinite; }
.r2 { animation-delay: 1s; border-color: rgba(123,255,178,0.56); }
.r3 { animation-delay: 2s; border-color: rgba(255,255,255,0.64); }
.r4 { animation-delay: 3s; border-color: rgba(255,111,145,0.42); }
.forecast-ticks { position: absolute; right: 14vw; bottom: 18vh; display: grid; gap: 12px; font-family: var(--mono-font); color: var(--pool-blue); }
.forecast-ticks span { padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,0.48); border: 1px solid var(--glass-border); }

.release { background: radial-gradient(circle at 75% 20%, rgba(50,216,255,0.35), transparent 28rem), linear-gradient(180deg, rgba(0,119,217,0.3), var(--violet-depth) 82%); }
.release::before { background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(50,216,255,0.08)); }
.release-sky { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.18), transparent 36%), radial-gradient(circle at 18% 80%, rgba(123,255,178,0.18), transparent 24%); }
.world-cluster { position: absolute; right: 8vw; top: 9vh; width: min(62vw, 820px); height: 78vh; }
.mini-world { position: absolute; border-radius: 50%; background: radial-gradient(circle at 29% 22%, var(--pearl-white) 0 8%, transparent 9%), radial-gradient(circle at 58% 62%, rgba(123,255,178,0.74), transparent 20%), radial-gradient(circle, rgba(50,216,255,0.52), rgba(255,255,255,0.42) 45%, rgba(36,16,79,0.28)); border: 1px solid rgba(255,255,255,0.58); box-shadow: inset -13px -16px 24px rgba(0,119,217,0.25), 0 0 34px rgba(50,216,255,0.36); animation: worldDrift 9s ease-in-out infinite; }
.w1 { width: 180px; height: 180px; left: 28%; top: 18%; }
.w2 { width: 92px; height: 92px; left: 7%; top: 39%; animation-delay: -1s; }
.w3 { width: 124px; height: 124px; left: 63%; top: 10%; animation-delay: -3s; }
.w4 { width: 74px; height: 74px; left: 78%; top: 54%; animation-delay: -4s; }
.w5 { width: 138px; height: 138px; left: 40%; top: 63%; animation-delay: -2s; }
.w6 { width: 54px; height: 54px; left: 18%; top: 12%; animation-delay: -6s; }
.glass-tag { margin-top: 20px; border: 1px solid rgba(255,255,255,0.48); border-radius: 999px; padding: 12px 18px; color: var(--violet-depth); background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(233,251,255,0.38)); box-shadow: inset 0 0 16px rgba(255,255,255,0.7), 0 0 20px rgba(50,216,255,0.25); cursor: pointer; }
.footer-depth { position: absolute; left: 9vw; bottom: 7vh; color: rgba(255,255,255,0.68); font-family: var(--mono-font); font-size: 12px; letter-spacing: 0.12em; }

@keyframes causticDrift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.05); } }
@keyframes gridBreathe { 0%, 100% { transform: perspective(700px) rotateX(58deg) translateY(10vh) scale(1.1) skewX(0deg); } 50% { transform: perspective(700px) rotateX(60deg) translateY(8vh) scale(1.16) skewX(-4deg); } }
@keyframes pearlFloat { 0%, 100% { transform: translate3d(0, -10px, 0) rotate(-2deg); } 50% { transform: translate3d(0, 16px, 0) rotate(3deg); } }
@keyframes worldTurn { to { transform: rotate(360deg); } }
@keyframes bubbleRise { 0%, 100% { translate: 0 14px; } 50% { translate: 0 -18px; } }
@keyframes currentDash { to { stroke-dashoffset: -170; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes coralSway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(4deg); } }
@keyframes rulePulse { from { transform: scale(0.45); opacity: 0.82; } to { transform: scale(1.35); opacity: 0; } }
@keyframes rippleForecast { from { transform: scale(0.18); opacity: 0.95; } to { transform: scale(2.2); opacity: 0; } }
@keyframes worldDrift { 0%, 100% { transform: translate3d(0, -10px, 0) rotate(-2deg); } 50% { transform: translate3d(18px, 18px, 0) rotate(4deg); } }

@media (max-width: 760px) {
  .oxygen-line { right: 10px; height: 50vh; }
  .drop span { display: none; }
  .chamber { padding: 7vh 6vw 12vh; }
  .chamber::before { inset: 3vh 4vw; border-radius: 34px; }
  .surface-note, .left-label, .right-label, .lagoon-note, .final-note { left: 6vw; right: 12vw; top: auto; bottom: 8vh; max-width: none; }
  .hero-pearl { left: 39vw; top: 29vh; }
  .split-pearl, .agent-orbit { left: 46vw; top: 31vh; }
  .reef-pearl { left: 43vw; top: 27vh; }
  .coral-field { width: 82vw; left: 6vw; opacity: 0.75; }
  .world-cluster { right: -12vw; width: 100vw; opacity: 0.9; }
  .rim-wordmark { width: 105vw; }
  .rim-wordmark text { font-size: 42px; }
}
