:root {
  /* design compliance tokens: only timestamps Interprets `tube` both streaming and pneumatic plumbing Grotesk** Grotes* */
  --navy: #061A2E;
  --pool: #16B9FF;
  --cyan: #8EF4FF;
  --white: #F7FFFF;
  --blush: #FFB8D2;
  --green: #74F2A1;
  --lavender: #7C6CFF;
  --gray: #B8D5DE;
  --title: "Space Grotesk", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --romance: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--white);
  font-family: var(--round);
  overflow-x: hidden;
  cursor: none;
  background:
    radial-gradient(circle at 20% 5%, rgba(142, 244, 255, 0.3), transparent 26rem),
    radial-gradient(circle at 83% 26%, rgba(255, 184, 210, 0.18), transparent 24rem),
    linear-gradient(180deg, #061A2E 0%, #073254 24%, #061A2E 60%, #083B4B 100%);
}

button { font: inherit; color: inherit; cursor: none; }

.caustic-light,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.caustic-light {
  opacity: 0.5;
  mix-blend-mode: screen;
  background:
    repeating-radial-gradient(ellipse at 22% 18%, transparent 0 15px, rgba(142,244,255,0.12) 17px 19px, transparent 22px 36px),
    repeating-linear-gradient(112deg, transparent 0 70px, rgba(247,255,255,0.1) 74px 78px, transparent 84px 150px);
  filter: blur(0.4px);
  animation: causticDrift 18s ease-in-out infinite alternate;
}

.scanlines {
  opacity: 0.13;
  background: repeating-linear-gradient(180deg, rgba(247,255,255,0.35) 0 1px, transparent 1px 5px);
}

.jelly-cursor {
  position: fixed;
  width: 34px;
  height: 44px;
  left: -80px;
  top: -80px;
  z-index: 40;
  pointer-events: none;
  border-radius: 48% 48% 54% 54%;
  background: radial-gradient(circle at 35% 24%, var(--white), var(--cyan) 24%, rgba(124,108,255,0.32) 64%, transparent 70%);
  border: 1px solid rgba(247,255,255,0.55);
  box-shadow: 0 0 25px rgba(142,244,255,0.75), inset 0 -14px 18px rgba(22,185,255,0.32);
  transform: translate3d(var(--mx, 50vw), var(--my, 50vh), 0) rotate(var(--tilt, 0deg));
  transition: transform 0.08s linear;
}

.jelly-cursor::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 31px;
  height: 22px;
  border-left: 1px solid rgba(142,244,255,0.75);
  border-right: 1px solid rgba(255,184,210,0.55);
  border-radius: 50%;
  filter: blur(0.2px);
}

.aero-glass {
  background: linear-gradient(145deg, rgba(247,255,255,0.24), rgba(142,244,255,0.09) 46%, rgba(124,108,255,0.1));
  border: 1px solid rgba(247,255,255,0.5);
  box-shadow: inset 0 1px 1px rgba(247,255,255,0.9), inset 0 -20px 35px rgba(22,185,255,0.12), 0 18px 60px rgba(0,0,0,0.28), 0 0 36px rgba(142,244,255,0.16);
  backdrop-filter: blur(18px) saturate(160%);
}

.depth-gauge {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  padding: 16px 8px;
  border-radius: 999px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-direction: column;
}

.route-label,
.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.route-label { writing-mode: vertical-rl; }

.depth-bubble {
  position: relative;
  border: 1px solid rgba(247,255,255,0.55);
  background: radial-gradient(circle at 30% 25%, var(--white), var(--cyan) 28%, rgba(22,185,255,0.22) 66%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset -4px -4px 8px rgba(6,26,46,0.28), 0 0 16px rgba(142,244,255,0.38);
  opacity: 0.55;
}

.depth-bubble::after {
  content: attr(data-label);
  position: absolute;
  right: 29px;
  top: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(8px);
  transition: 0.35s ease;
}

.depth-bubble.active { opacity: 1; background: radial-gradient(circle at 30% 25%, var(--white), var(--blush) 30%, var(--cyan) 74%); }
.depth-bubble.active::after { opacity: 1; transform: translateX(0); }

.tube-route {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 520vh;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.tube-shadow,
.tube-core,
.tube-inner {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.tube-shadow { stroke: rgba(6,26,46,0.55); stroke-width: 23; filter: blur(5px); }
.tube-core { stroke: rgba(247,255,255,0.27); stroke-width: 18; }
.tube-inner { stroke: url(#tubeGlow); stroke-width: 7; stroke-dasharray: 10 18; filter: url(#blurGlow); animation: tubePulse 5s linear infinite; }

.chamber {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  isolation: isolate;
}

.chamber::before {
  content: attr(data-chapter);
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 6;
  font-family: var(--mono);
  color: rgba(184,213,222,0.78);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

.buffer-pool {
  place-items: center;
  background:
    radial-gradient(circle at 52% 48%, rgba(22,185,255,0.3), transparent 22rem),
    radial-gradient(circle at 10% 82%, rgba(124,108,255,0.24), transparent 30rem),
    linear-gradient(180deg, var(--navy), #073A67 58%, #041322);
}

.water-surface {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 9%;
  height: 34%;
  background: radial-gradient(ellipse at 50% 0, rgba(247,255,255,0.5), rgba(142,244,255,0.17) 32%, transparent 68%);
  filter: blur(8px);
  animation: surfaceBob 7s ease-in-out infinite alternate;
}

.floating-title {
  position: relative;
  z-index: 8;
  margin: 0;
  font-family: var(--title);
  font-size: clamp(4.8rem, 15vw, 18rem);
  letter-spacing: -0.08em;
  line-height: 0.82;
  color: var(--white);
  text-shadow: 0 0 20px rgba(142,244,255,0.8), 0 16px 0 rgba(124,108,255,0.16), 0 24px 70px rgba(22,185,255,0.45);
}

.kana-tag {
  position: absolute;
  z-index: 8;
  top: 63%;
  left: 13%;
  color: var(--blush);
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(255,184,210,0.7);
}

.reflected-title {
  position: absolute;
  bottom: -5vw;
  font-family: var(--title);
  font-size: clamp(4rem, 14vw, 17rem);
  letter-spacing: -0.08em;
  color: rgba(142,244,255,0.12);
  transform: scaleY(-1);
  filter: blur(3px);
  mask-image: linear-gradient(180deg, transparent, #000 50%, transparent);
}

.orb-wrap { position: absolute; top: 16%; right: 14%; z-index: 10; display: grid; place-items: center; gap: 12px; }
.playback-orb, .orb-small {
  position: relative;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, var(--white), var(--cyan) 21%, var(--pool) 48%, rgba(124,108,255,0.55) 78%);
  border: 1px solid rgba(247,255,255,0.75);
  box-shadow: inset -14px -18px 24px rgba(6,26,46,0.3), inset 10px 8px 20px rgba(247,255,255,0.55), 0 0 45px rgba(142,244,255,0.75);
  animation: orbFloat 4.6s ease-in-out infinite;
}

.pause-bars::before, .pause-bars::after {
  content: "";
  position: absolute;
  top: 43px;
  width: 13px;
  height: 38px;
  border-radius: 9px;
  background: rgba(247,255,255,0.88);
  box-shadow: 0 0 15px rgba(247,255,255,0.85);
}
.pause-bars::before { left: 44px; }
.pause-bars::after { right: 44px; }
.orb-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(142,244,255,0.38); animation: ripple 2.4s ease-out infinite; }
.timecode { font-family: var(--mono); color: var(--cyan); background: rgba(6,26,46,0.38); border-radius: 999px; padding: 7px 12px; }

.capsule-note {
  z-index: 8;
  min-width: 165px;
  min-height: 58px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(247,255,255,0.68);
  background: linear-gradient(100deg, rgba(247,255,255,0.72), rgba(142,244,255,0.23) 38%, rgba(255,184,210,0.22) 68%, rgba(247,255,255,0.5));
  box-shadow: inset 0 2px 2px rgba(247,255,255,0.88), inset -18px -10px 24px rgba(22,185,255,0.18), 0 18px 34px rgba(6,26,46,0.26), 0 0 25px rgba(142,244,255,0.25);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.capsule-note span { font-family: var(--title); font-weight: 700; letter-spacing: -0.02em; }
.capsule-note small { font-family: var(--mono); color: rgba(6,26,46,0.72); font-size: 9px; letter-spacing: 0.08em; }
.hero-capsule { position: fixed; left: 50%; top: 34vh; transform: translate(-50%, -50%) scale(0.72); opacity: 0; z-index: 12; }

.capsule-intake {
  background: radial-gradient(circle at 74% 20%, rgba(255,184,210,0.18), transparent 26rem), linear-gradient(160deg, #07233D, #064A78 50%, #061A2E);
}

.station-label { position: absolute; z-index: 8; left: 9%; top: 18%; width: min(410px, 72vw); border-radius: 35px; padding: 26px; }
h2 { font-family: var(--title); font-size: clamp(2.2rem, 6vw, 6.5rem); line-height: 0.92; margin: 8px 0 0; letter-spacing: -0.06em; }
.diagonal-tube { position: absolute; height: 95px; width: 150vw; left: -25vw; border-radius: 999px; background: linear-gradient(180deg, rgba(247,255,255,0.45), rgba(142,244,255,0.1) 44%, rgba(6,26,46,0.08) 54%, rgba(247,255,255,0.27)); border: 1px solid rgba(247,255,255,0.4); box-shadow: inset 0 10px 12px rgba(247,255,255,0.32), inset 0 -14px 20px rgba(6,26,46,0.24), 0 0 45px rgba(142,244,255,0.18); }
.tube-a { top: 36%; transform: rotate(-18deg); }
.tube-b { top: 62%; transform: rotate(13deg); }
.valve-wheel { position: absolute; right: 13%; top: 22%; width: 144px; height: 144px; z-index: 9; border-radius: 50%; border: 13px solid rgba(255,184,210,0.55); background: radial-gradient(circle, rgba(247,255,255,0.8) 0 15%, rgba(142,244,255,0.55) 16% 24%, transparent 25% 100%); box-shadow: 0 0 32px rgba(255,184,210,0.4), inset 0 0 18px rgba(6,26,46,0.2); transition: transform 0.8s cubic-bezier(.2,1.4,.2,1); }
.valve-wheel span, .valve-wheel::before, .valve-wheel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 108px; height: 11px; border-radius: 999px; background: rgba(247,255,255,0.75); transform: translate(-50%, -50%); }
.valve-wheel::before { transform: translate(-50%, -50%) rotate(60deg); }
.valve-wheel::after { transform: translate(-50%, -50%) rotate(-60deg); }
.valve-wheel.turned { transform: rotate(190deg) scale(1.08); }
.drift { position: absolute; transition: filter 0.25s, transform 0.25s; }
.drift.revealed { filter: hue-rotate(35deg) brightness(1.15); transform: scale(1.08) rotate(-2deg); }
.one { left: 54%; top: 39%; animation: tubeDrift 8s ease-in-out infinite; }
.two { left: 18%; top: 61%; animation: tubeDrift 10s ease-in-out -2s infinite reverse; }
.three { right: 10%; top: 70%; animation: tubeDrift 9s ease-in-out -5s infinite; }
.specimen-caption { position: absolute; z-index: 8; font-family: var(--romance); font-style: italic; color: rgba(247,255,255,0.58); font-size: clamp(1.2rem, 2.3vw, 2.5rem); right: 8%; bottom: 11%; max-width: 510px; }

.subcaption-reef { background: radial-gradient(circle at 47% 51%, rgba(116,242,161,0.16), transparent 22rem), linear-gradient(180deg, #06233D, #073257 45%, #08213C); }
.porthole { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; width: min(56vw, 520px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.porthole::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 2px dashed rgba(247,255,255,0.18); animation: spin 20s linear infinite; }
.orb-small { width: 130px; height: 130px; }
.waveform { position: absolute; bottom: 28%; display: flex; gap: 9px; align-items: end; }
.waveform i { width: 7px; height: 28px; border-radius: 99px; background: var(--green); box-shadow: 0 0 14px rgba(116,242,161,0.7); animation: wave 1.1s ease-in-out infinite alternate; }
.waveform i:nth-child(2n) { height: 54px; animation-delay: .2s; background: var(--cyan); }
.waveform i:nth-child(3n) { height: 38px; animation-delay: .4s; background: var(--blush); }
.reef-label { left: auto; right: 8%; top: 10%; }
.subtitle-strip { position: absolute; z-index: 10; padding: 13px 22px; border-radius: 17px; color: var(--navy); background: rgba(247,255,255,0.72); border: 1px solid rgba(142,244,255,0.8); box-shadow: 0 8px 30px rgba(6,26,46,0.22), inset 0 1px rgba(247,255,255,0.9); user-select: none; touch-action: none; }
.s1 { left: 7%; top: 38%; animation: subtitleFloat 11s ease-in-out infinite; }
.s2 { right: 12%; top: 58%; animation: subtitleFloat 13s ease-in-out -3s infinite reverse; }
.s3 { left: 24%; bottom: 18%; animation: subtitleFloat 10s ease-in-out -6s infinite; }
.subtitle-strip.dragging { z-index: 30; animation: none; box-shadow: 0 0 42px rgba(255,184,210,0.7); }
.thumbnail-float { position: absolute; z-index: 6; width: 112px; height: 82px; border-radius: 28px; display: grid; place-items: center; color: rgba(247,255,255,0.75); font-family: var(--mono); border: 1px solid rgba(247,255,255,0.34); background: linear-gradient(135deg, rgba(124,108,255,0.24), rgba(142,244,255,0.1)); box-shadow: inset 0 1px rgba(247,255,255,0.4); }
.t1 { left: 13%; top: 14%; transform: rotate(-11deg); }
.t2 { right: 17%; bottom: 16%; transform: rotate(8deg); }
.t3 { left: 58%; bottom: 10%; transform: rotate(-4deg); }

.pressure-gate { background: linear-gradient(90deg, #041626, #082A4E 45%, #041626); place-items: center; grid-template-columns: 1fr 1fr; }
.vertical-lock { position: relative; z-index: 7; width: min(28vw, 230px); height: 76vh; border-radius: 999px; overflow: hidden; justify-self: end; margin-right: 8vw; }
.lock-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, rgba(142,244,255,0.18), rgba(22,185,255,0.58), rgba(116,242,161,0.3)); border-radius: inherit; transition: height 0.2s ease-out; }
.bubble-stack span { position: absolute; bottom: 8%; left: 50%; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 32% 25%, var(--white), var(--blush) 25%, rgba(142,244,255,0.22) 70%); animation: stackRise 4s linear infinite; }
.bubble-stack span:nth-child(2) { left: 30%; width: 18px; height: 18px; animation-delay: -1s; }
.bubble-stack span:nth-child(3) { left: 66%; width: 35px; height: 35px; animation-delay: -2.4s; }
.bubble-stack span:nth-child(4) { left: 43%; width: 15px; height: 15px; animation-delay: -3.3s; }
.bubble-stack span:nth-child(5) { left: 58%; width: 23px; height: 23px; animation-delay: -1.8s; }
.pressure-panel { z-index: 8; width: min(520px, 82vw); border-radius: 40px; padding: 30px; justify-self: start; }
.gauge-face { position: relative; margin: 28px 0; height: 190px; border-radius: 190px 190px 22px 22px; background: radial-gradient(circle at 50% 100%, rgba(247,255,255,0.8) 0 8%, transparent 9%), conic-gradient(from 235deg, var(--cyan), var(--blush), var(--green), transparent 0.72turn); border: 1px solid rgba(247,255,255,0.48); overflow: hidden; }
.needle { position: absolute; width: 6px; height: 120px; bottom: 17px; left: calc(50% - 3px); transform-origin: bottom; transform: rotate(-38deg); border-radius: 999px; background: var(--navy); box-shadow: 0 0 12px rgba(247,255,255,0.8); transition: transform 0.2s ease-out; }
.gauge-word { position: absolute; bottom: 26px; font-family: var(--mono); font-size: 11px; color: var(--navy); }
.gauge-word.left { left: 28px; }
.gauge-word.right { right: 28px; }
.paired-bubbles { position: absolute; right: 18%; bottom: 17%; z-index: 8; }
.paired-bubbles span { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 32% 24%, var(--white), var(--cyan) 28%, rgba(255,184,210,0.25) 74%); box-shadow: 0 0 28px rgba(142,244,255,0.5); }
.paired-bubbles span:nth-child(2) { left: 52px; top: 2px; background: radial-gradient(circle at 32% 24%, var(--white), var(--blush) 28%, rgba(142,244,255,0.25) 74%); }

.open-current { background: radial-gradient(circle at 52% 40%, rgba(116,242,161,0.42), transparent 24rem), radial-gradient(circle at 80% 25%, rgba(142,244,255,0.25), transparent 30rem), linear-gradient(180deg, #07233D, #0A5D68 82%, #061A2E); }
.current-glow { position: absolute; inset: 8% -10% -10%; background: radial-gradient(ellipse at center, rgba(142,244,255,0.38), rgba(116,242,161,0.16) 35%, transparent 66%); filter: blur(16px); animation: glowBreathe 7s ease-in-out infinite alternate; }
.final-label { left: 11%; top: 22%; max-width: 620px; }
.final-label p { line-height: 1.8; max-width: 470px; color: rgba(247,255,255,0.78); }
.dissolve { position: absolute; opacity: 0.78; animation: dissolve 7s ease-in-out infinite; }
.d1 { left: 58%; top: 30%; }
.d2 { left: 68%; top: 52%; animation-delay: -2s; }
.d3 { left: 48%; top: 66%; animation-delay: -4s; }
.final { right: auto; left: 9%; bottom: 9%; }

.bubble-field { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.bubble-depth { position: absolute; bottom: -60px; width: var(--size); height: var(--size); border-radius: 50%; left: var(--left); background: radial-gradient(circle at 30% 24%, var(--white), rgba(142,244,255,0.5) 28%, rgba(142,244,255,0.06) 74%); border: 1px solid rgba(247,255,255,0.38); animation: bubbleRise var(--speed) linear infinite; animation-delay: var(--delay); }

@keyframes causticDrift { to { transform: translate3d(-4%, 3%, 0) scale(1.05); } }
@keyframes tubePulse { to { stroke-dashoffset: -56; } }
@keyframes surfaceBob { to { transform: translateY(18px) scaleX(1.04); } }
@keyframes orbFloat { 50% { transform: translateY(-14px) scale(1.03); } }
@keyframes ripple { to { transform: scale(1.35); opacity: 0; } }
@keyframes tubeDrift { 50% { transform: translate(58px, -18px) rotate(5deg); } }
@keyframes subtitleFloat { 50% { transform: translateX(42px) translateY(-18px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { to { transform: scaleY(0.35); opacity: 0.7; } }
@keyframes stackRise { from { transform: translate(-50%, 0) scale(0.4); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-50%, -62vh) scale(1.15); opacity: 0; } }
@keyframes glowBreathe { to { opacity: 0.52; transform: scale(1.1); } }
@keyframes dissolve { 50% { filter: blur(1px); opacity: 0.35; transform: translateY(-48px) scale(1.18); } }
@keyframes bubbleRise { to { transform: translateY(-115vh) translateX(var(--sway)); opacity: 0; } }

@media (max-width: 760px) {
  .depth-gauge { right: 8px; width: 34px; }
  .tube-route { opacity: 0.7; }
  .orb-wrap { right: 8%; top: 12%; transform: scale(0.72); }
  .station-label, .reef-label, .final-label { left: 7%; right: auto; top: 12%; width: 76vw; }
  .pressure-gate { grid-template-columns: 1fr; place-items: center; padding: 14vh 0; }
  .vertical-lock { justify-self: center; margin: 0; width: 34vw; height: 48vh; }
  .pressure-panel { justify-self: center; }
  .drift, .subtitle-strip { transform: scale(0.85); }
  .one { left: 36%; top: 42%; }
  .two { left: 5%; }
  .three { right: 2%; }
}
