:root {
  /* DESIGN FONT TRACE: Space Grotesk** Grotes* for primary headings and large depth labels. Its geometric construction feels engineered without becoming cold */
  --abyss: #041821;
  --teal: #00E7D4;
  --chrome: #C9D4D9;
  --blue: #7BA7C7;
  --violet: #8A4DFF;
  --acid: #B8FF3D;
  --coral: #FF6B4A;
  --space: 'Space Grotesk', sans-serif;
  --raj: 'Rajdhani', sans-serif;
  --jp: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--chrome);
  font-family: var(--raj);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0,231,212,.28), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(138,77,255,.25), transparent 30%),
    radial-gradient(circle at 54% 86%, rgba(184,255,61,.12), transparent 25%),
    linear-gradient(180deg, #082d38 0%, #041821 38%, #020b10 100%);
  z-index: -4;
}

.ocean-field { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -3; }
.caustics {
  position: absolute; inset: -20%; opacity: .32;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(201,212,217,.08) 41px 44px, transparent 49px 84px), repeating-linear-gradient(24deg, transparent 0 58px, rgba(0,231,212,.08) 61px 64px, transparent 68px 120px);
  filter: blur(1px); animation: causticDrift 18s linear infinite;
}
.bubble-stream { position: absolute; width: 2px; height: 170vh; top: -30vh; background: radial-gradient(circle, rgba(201,212,217,.8) 0 2px, transparent 3px) 0 0 / 26px 44px; opacity: .45; animation: bubbleRise 10s linear infinite; }
.stream-a { left: 10%; } .stream-b { right: 16%; animation-duration: 14s; opacity: .3; }
.manta { position: absolute; width: 180px; height: 70px; border-radius: 55% 45% 55% 45%; background: linear-gradient(135deg, rgba(123,167,199,.12), rgba(138,77,255,.04)); clip-path: polygon(0 48%, 34% 10%, 52% 42%, 70% 10%, 100% 48%, 68% 72%, 50% 59%, 32% 72%); filter: blur(.5px) drop-shadow(0 0 24px rgba(0,231,212,.25)); }
.manta-one { top: 28%; left: 3%; animation: mantaFloat 24s ease-in-out infinite; }
.manta-two { top: 66%; right: 5%; transform: scaleX(-1); animation: mantaFloat 30s ease-in-out infinite reverse; }

.cursor-ripple { position: fixed; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(0,231,212,.55); border-radius: 50%; pointer-events: none; z-index: 20; opacity: .65; transform: translate(-80px,-80px) scale(.7); box-shadow: 0 0 24px rgba(0,231,212,.28); transition: opacity .25s ease; }
.cursor-ripple.pulse { animation: ripplePulse .45s ease; }

.depth-dial { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; border: 1px solid rgba(201,212,217,.22); border-radius: 999px; background: rgba(4,24,33,.54); box-shadow: inset 0 0 22px rgba(0,231,212,.08), 0 0 28px rgba(138,77,255,.12); backdrop-filter: blur(12px); }
.dial-title { writing-mode: vertical-rl; font: 700 10px var(--raj); letter-spacing: .18em; color: var(--blue); }
.depth-dial a { width: 34px; height: 34px; display: grid; place-items: center; text-decoration: none; color: var(--chrome); border: 1px solid rgba(123,167,199,.28); border-radius: 50%; font: 700 12px var(--space); transition: .3s ease; }
.depth-dial a.active, .depth-dial a:hover { color: var(--abyss); background: var(--acid); box-shadow: 0 0 22px rgba(184,255,61,.6); }

.timeline-shell { position: fixed; left: 50%; top: 0; width: 120px; height: 100vh; transform: translateX(-50%); z-index: 8; pointer-events: none; }
.tide-cable { position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(180deg, rgba(123,167,199,.18), rgba(0,231,212,.12)); box-shadow: inset 0 0 10px rgba(201,212,217,.3), 0 0 22px rgba(0,231,212,.34); overflow: hidden; }
.tide-fill { position: absolute; top: 0; left: 0; right: 0; height: 0%; background: linear-gradient(180deg, var(--chrome), var(--teal), var(--acid), var(--violet)); box-shadow: 0 0 30px var(--teal); border-radius: inherit; }
.timeline-node { position: absolute; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--abyss) 38%, rgba(201,212,217,.28) 40%, rgba(0,231,212,.12) 68%); border: 1px solid rgba(201,212,217,.44); box-shadow: 0 0 18px rgba(0,231,212,.28); transition: .45s ease; }
.timeline-node i { width: 15px; height: 12px; border-radius: 80% 80% 55% 55%; background: conic-gradient(from 140deg, var(--chrome), var(--blue), var(--violet), var(--chrome)); clip-path: polygon(50% 0, 92% 35%, 78% 100%, 22% 100%, 8% 35%); }
.timeline-node.active { transform: scale(1.25); border-color: var(--acid); box-shadow: 0 0 30px rgba(184,255,61,.7), 0 0 55px rgba(0,231,212,.35); }
.node-0 { top: 10%; } .node-1 { top: 26%; } .node-2 { top: 42%; } .node-3 { top: 58%; } .node-4 { top: 74%; } .node-5 { top: 90%; }

.descent { position: relative; z-index: 2; }
.station { min-height: 100vh; position: relative; display: grid; grid-template-columns: minmax(0,1fr) 160px minmax(0,1fr); align-items: center; padding: 7vw 9vw; overflow: hidden; isolation: isolate; }
.station::before { content: ""; position: absolute; inset: 8% 7%; border: 1px solid rgba(123,167,199,.13); clip-path: polygon(6% 0, 94% 0, 100% 10%, 100% 90%, 94% 100%, 6% 100%, 0 90%, 0 10%); background: linear-gradient(135deg, rgba(201,212,217,.035), rgba(0,231,212,.018), rgba(138,77,255,.035)); z-index: -1; }
.station-bg { position: absolute; inset: 0; z-index: -2; opacity: .72; }
.station-bg::before { content: ""; position: absolute; inset: 14% 12%; background: radial-gradient(circle, transparent 0 22%, rgba(0,231,212,.14) 23% 24%, transparent 25% 38%, rgba(123,167,199,.11) 39% 40%, transparent 41% 100%); animation: sonar 8s linear infinite; }
.station-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0 30%, rgba(201,212,217,.07) 31%, transparent 34% 62%, rgba(0,231,212,.06) 63%, transparent 66%); transform: translateX(-18%); }

.station-left .pressure-pod { grid-column: 1; justify-self: end; }
.station-left .diagram { grid-column: 3; justify-self: start; }
.station-right .pressure-pod { grid-column: 3; justify-self: start; }
.station-right .diagram { grid-column: 1; justify-self: end; }
.station-final { grid-template-columns: 1fr; place-items: center; text-align: center; padding-top: 12vh; }

.pressure-pod, .final-bloom { width: min(520px, 100%); padding: 28px; position: relative; border: 1px solid rgba(201,212,217,.25); background: linear-gradient(145deg, rgba(4,24,33,.78), rgba(7,48,59,.52)); clip-path: polygon(0 12%, 8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%); box-shadow: inset 0 0 30px rgba(0,231,212,.07), 0 0 40px rgba(0,0,0,.28), 0 0 28px rgba(138,77,255,.08); backdrop-filter: blur(14px); transform: translateY(24px); opacity: .54; transition: .75s ease; }
.station.active .pressure-pod, .station.active .final-bloom { transform: translateY(0); opacity: 1; box-shadow: inset 0 0 34px rgba(0,231,212,.12), 0 0 46px rgba(0,231,212,.13), 0 0 30px rgba(138,77,255,.16); }
.pressure-pod::before, .final-bloom::before { content: ""; position: absolute; left: 18px; top: 12px; right: 18px; height: 2px; background: linear-gradient(90deg, transparent, var(--chrome), var(--teal), transparent); opacity: .8; }
.warning-pod { border-color: rgba(255,107,74,.35); }
.abyss-pod { background: linear-gradient(145deg, rgba(2,11,16,.88), rgba(26,15,52,.6)); }

.jp-mark { font-family: var(--jp); color: var(--teal); letter-spacing: .08em; margin: 0 0 12px; font-size: 13px; }
.depth-label { display: inline-block; color: var(--acid); font: 700 14px var(--raj); text-transform: uppercase; letter-spacing: .24em; margin-bottom: 12px; text-shadow: 0 0 16px rgba(184,255,61,.45); }
h1, h2 { margin: 0; font-family: var(--space); text-transform: uppercase; line-height: .92; letter-spacing: -.055em; }
h1 { font-size: clamp(54px, 8vw, 118px); }
h2 { font-size: clamp(38px, 5.2vw, 78px); }
h1 em, h2 em { font-style: normal; background: linear-gradient(105deg, var(--chrome), #ffffff, var(--blue), var(--teal), var(--chrome)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(0,231,212,.2)); }
.station-copy, .final-bloom p { font: 500 clamp(18px, 2vw, 23px)/1.36 var(--raj); color: rgba(201,212,217,.86); margin: 20px 0 0; }

.instrument-row, .final-instruments { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.instrument { min-width: 136px; padding: 13px 15px; border: 1px solid rgba(0,231,212,.28); background: linear-gradient(120deg, rgba(0,231,212,.08), rgba(201,212,217,.04)); box-shadow: inset 0 0 18px rgba(184,255,61,.05); }
.instrument span { display: block; color: var(--blue); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
.instrument strong { font-family: var(--space); font-size: 36px; color: var(--acid); text-shadow: 0 0 18px rgba(184,255,61,.55); }
.instrument small { color: var(--chrome); margin-left: 4px; }
.logic-strip, .spark-list { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.logic-strip span, .spark-list span { border: 1px solid rgba(201,212,217,.26); color: var(--chrome); padding: 8px 12px; background: rgba(0,231,212,.07); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.logic-strip b { color: var(--coral); font-size: 24px; }

.diagram { width: min(42vw, 430px); aspect-ratio: 1; display: grid; place-items: center; position: relative; filter: drop-shadow(0 0 32px rgba(0,231,212,.24)); }
.diagram::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 180deg, rgba(201,212,217,.18), rgba(0,231,212,.05), rgba(138,77,255,.19), rgba(184,255,61,.09), rgba(201,212,217,.18)); mask: radial-gradient(circle, transparent 0 54%, #000 55% 62%, transparent 63%); animation: spin 14s linear infinite; }
.armor-svg { width: 88%; height: 88%; overflow: visible; }
.armor-svg path, .armor-svg circle { fill: none; stroke: var(--chrome); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 720; stroke-dashoffset: 720; filter: drop-shadow(0 0 8px rgba(0,231,212,.55)); transition: stroke-dashoffset 1.6s ease, stroke .5s ease; }
.station.active .armor-svg path, .station.active .armor-svg circle { stroke-dashoffset: 0; }
.station.active .armor-svg path:nth-child(2n), .station.active .armor-svg circle:nth-child(2n) { stroke: var(--teal); }
.station.active .armor-svg path:nth-child(3n) { stroke: var(--acid); }
.station.active .armor-svg path:nth-child(5n) { stroke: var(--coral); }
.chrome-orb { background: radial-gradient(circle, rgba(201,212,217,.14), transparent 62%); }
.kelp-diagram::after, .coral-armor::after, .breach-armor::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--acid); box-shadow: 40px 28px 0 rgba(0,231,212,.8), -36px 76px 0 rgba(255,107,74,.78), 76px -38px 0 rgba(138,77,255,.75), 0 0 20px var(--acid); animation: sparkOrbit 5s ease-in-out infinite; }
.breach-armor { width: min(760px, 80vw); filter: drop-shadow(0 0 45px rgba(184,255,61,.25)); }
.breach-armor .armor-svg { width: 100%; }
.final-bloom { margin-bottom: 28px; clip-path: polygon(6% 0, 94% 0, 100% 16%, 94% 100%, 6% 100%, 0 16%); background: linear-gradient(145deg, rgba(201,212,217,.18), rgba(0,231,212,.1), rgba(4,24,33,.78)); }
.final-instruments { justify-content: center; }

.glyph-launch::before { background: radial-gradient(circle, rgba(201,212,217,.22) 0 8%, transparent 9% 18%, rgba(184,255,61,.18) 19% 21%, transparent 22% 36%, rgba(0,231,212,.18) 37% 39%, transparent 40%); }

@keyframes causticDrift { to { transform: translate3d(12%, 8%, 0) rotate(2deg); } }
@keyframes bubbleRise { from { transform: translateY(35vh); } to { transform: translateY(-35vh); } }
@keyframes mantaFloat { 0%,100% { transform: translate3d(0,0,0) rotate(-3deg); } 50% { transform: translate3d(44px, -30px, 0) rotate(4deg); } }
@keyframes sonar { from { transform: scale(.8); opacity: .4; } to { transform: scale(1.25); opacity: .05; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sparkOrbit { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,-24px); } }
@keyframes ripplePulse { 50% { transform: var(--cursor-transform) scale(1.8); opacity: .18; } }

@media (max-width: 900px) {
  .depth-dial { right: 8px; transform: translateY(-50%) scale(.86); }
  .timeline-shell { left: 28px; width: 60px; transform: none; }
  .station { grid-template-columns: 58px 1fr; gap: 18px; padding: 92px 54px 70px 32px; }
  .station-left .pressure-pod, .station-right .pressure-pod, .station-left .diagram, .station-right .diagram { grid-column: 2; justify-self: start; }
  .diagram { width: min(68vw, 330px); margin-top: 22px; }
  .station { align-content: center; }
  h1 { font-size: clamp(46px, 15vw, 82px); }
  h2 { font-size: clamp(34px, 11vw, 60px); }
}

@media (max-width: 560px) {
  .depth-dial { display: none; }
  .station { padding-right: 22px; }
  .pressure-pod, .final-bloom { padding: 22px; }
  .instrument { min-width: 120px; }
}
