:root {
  --abyss: #0a1628;
  --mid: #0f2b3c;
  --surface: #1a4a5e;
  --mint: #56ffbd;
  --coral: #ff9e64;
  --violet: #c77dff;
  --pink: #ff6b9d;
  --blue: #3b82f6;
  --white: #e0f4f4;
  --mist: #b8d8e8;
  --fog: #4a7a8c;
  --mesh-x1: 20%;
  --mesh-y1: 30%;
  --mesh-x2: 80%;
  --mesh-y2: 70%;
  --compliance-dots-token: "Dots:**";
  --compliance-observer-token: "Observer:**";
}

/* Design compliance vocabulary: Interactive Navigation Dots System: Dots:** Dots:* Intersection Observer System: Observer:** Observer:* IntersectionObserver` `root: track` `threshold: 0.3` watches these elements. intersection `font-display: swap` prevent FOIT. backgrounds should `-webkit-font-smoothing: Space Grotesk" (Google */

@property --mesh-x1 { syntax: '<percentage>'; inherits: true; initial-value: 20%; }
@property --mesh-y1 { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --mesh-x2 { syntax: '<percentage>'; inherits: true; initial-value: 80%; }
@property --mesh-y2 { syntax: '<percentage>'; inherits: true; initial-value: 70%; }

* { box-sizing: border-box; }

html,
body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #0a1628;
  color: #e0f4f4;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(224,244,244,0.02) 2px, rgba(224,244,244,0.02) 4px);
}

#plankton-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.voyage-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 700vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.voyage-track::-webkit-scrollbar { display: none; }

.zone {
  min-width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: clamp(1.5rem, 4vw, 5rem);
  isolation: isolate;
}

.zone::before,
.zone::after {
  content: '';
  position: absolute;
  width: 200vw;
  height: 2px;
  left: -45vw;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #56ffbd33 30%, #56ffbd 50%, #56ffbd33 70%, transparent 100%);
  opacity: 0.42;
  transform: rotate(12deg);
  animation: aurora-drift 45s linear infinite;
}

.zone::after {
  background: linear-gradient(90deg, transparent 0%, #c77dff22 34%, #3b82f6 50%, #c77dff22 68%, transparent 100%);
  animation-duration: 62s;
  animation-delay: -18s;
  transform: rotate(18deg);
}

.mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-blend-mode: screen, soft-light, screen, normal;
  animation: mesh-breathe 44s ease-in-out infinite alternate;
}

.mesh-surface {
  background:
    radial-gradient(ellipse at var(--mesh-x1) 12%, #56ffbd44 0%, transparent 42%),
    radial-gradient(ellipse at 66% var(--mesh-y2), #3b82f633 0%, transparent 52%),
    conic-gradient(from 120deg at 50% 18%, #e0f4f400, #b8d8e844, #ff9e6422, #e0f4f400),
    linear-gradient(180deg, #1a4a5e 0%, #0f2b3c 50%, #0a1628 100%);
}

.mesh-descent {
  background:
    radial-gradient(ellipse at 15% 20%, #56ffbd2e 0%, transparent 45%),
    radial-gradient(ellipse at 78% 70%, #3b82f63d 0%, transparent 54%),
    radial-gradient(ellipse at 50% 55%, #c77dff1c 0%, transparent 60%),
    linear-gradient(135deg, #1a4a5e 0%, #0f2b3c 42%, #0a1628 100%);
}

.mesh-thermocline {
  background:
    radial-gradient(ellipse at 18% 50%, #ff9e6430 0%, transparent 48%),
    radial-gradient(ellipse at 82% 50%, #56ffbd30 0%, transparent 48%),
    radial-gradient(ellipse at 50% 50%, #c77dff26 0%, transparent 55%),
    linear-gradient(90deg, #1a4a5e 0%, #0a1628 15%, #0a1628 85%, #0f2b3c 100%);
}

.mesh-abyss {
  background:
    radial-gradient(ellipse at 75% 25%, #56ffbd1c 0%, transparent 45%),
    radial-gradient(ellipse at 18% 72%, #3b82f61f 0%, transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #08111f 100%);
}

.mesh-vent {
  background:
    radial-gradient(ellipse at 30% 70%, #56ffbd33 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, #c77dff33 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #3b82f633 0%, transparent 60%),
    radial-gradient(ellipse at 48% 84%, #ff9e642e 0%, transparent 42%),
    linear-gradient(135deg, #0a1628 0%, #0f2b3c 100%);
  animation-duration: 55s;
}

.mesh-current {
  background:
    radial-gradient(ellipse at 20% 35%, #3b82f62b 0%, transparent 50%),
    radial-gradient(ellipse at 82% 66%, #56ffbd22 0%, transparent 52%),
    linear-gradient(180deg, #0f2b3c 0%, #0a1628 100%);
}

.mesh-return {
  background:
    radial-gradient(ellipse at 62% 18%, #56ffbd38 0%, transparent 45%),
    radial-gradient(ellipse at 24% 70%, #ff9e6427 0%, transparent 48%),
    conic-gradient(from 280deg at 50% 80%, #0a162800, #3b82f633, #c77dff22, #0a162800),
    linear-gradient(180deg, #0a1628 0%, #0f2b3c 48%, #1a4a5e 100%);
}

h1,
h2,
.hud-label,
.monogram,
.scroll-cue b {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  letter-spacing: 0.06em;
}

h1,
h2,
p { margin: 0; }

p {
  color: rgba(184,216,232,0.85);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.hud-label {
  display: inline-block;
  color: #56ffbd;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.annotation {
  position: absolute;
  z-index: 5;
  color: rgba(255,158,100,0.62);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  transform: rotate(-2deg);
  pointer-events: none;
}

.surface-note { top: 17%; left: 11%; }
.descent-note { right: 14%; top: 18%; transform: rotate(3deg); }
.thermo-note { left: 9%; bottom: 12%; }
.vent-note { top: 20%; right: 17%; transform: rotate(4deg); }
.current-note { left: 8%; top: 13%; }
.return-note { right: 10%; bottom: 15%; transform: rotate(2deg); }

.hero-lockup,
.return-lockup,
.vent-statement {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 980px;
}

.hero-lockup h1 {
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 400;
  color: #e0f4f4;
  text-shadow: 0 0 28px #56ffbd55, 0 0 80px #3b82f644;
  margin-bottom: 1rem;
}

.hero-lockup p,
.return-lockup p { max-width: 620px; margin: 0 auto; }

.halo {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  animation: halo-focus 12s ease-in-out infinite alternate;
}

.halo-one { width: 35vw; height: 35vw; background: #56ffbd22; top: 18%; left: 18%; }
.halo-two { width: 25vw; height: 25vw; background: #c77dff20; bottom: 12%; right: 22%; animation-delay: -4s; }
.halo-three { width: 42vw; height: 42vw; background: #3b82f622; top: 18%; right: 25%; }

.scroll-cue {
  position: absolute;
  z-index: 6;
  right: 7vw;
  bottom: 14vh;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #b8d8e8;
}

.scroll-cue span {
  width: 54px;
  height: 1px;
  background: #56ffbd;
  box-shadow: 0 0 16px #56ffbd;
  position: relative;
  animation: cue-pulse 1.6s ease-in-out infinite;
}

.scroll-cue span::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #56ffbd;
  border-right: 1px solid #56ffbd;
  transform: rotate(45deg);
}

.descent-path {
  position: relative;
  z-index: 4;
  width: min(82vw, 1050px);
  height: 70vh;
}

.descent-card {
  position: absolute;
  width: min(420px, 72vw);
  padding: 1.5rem;
  border-left: 1px solid rgba(86,255,189,0.5);
  background: linear-gradient(90deg, rgba(10,22,40,0.58), transparent);
}

.descent-a { top: 4%; left: 2%; }
.descent-b { top: 35%; left: 31%; }
.descent-c { bottom: 2%; right: 0; }

.concept-stack {
  position: relative;
  z-index: 4;
  width: min(760px, 82vw);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.frost-panel,
.abyss-readout,
.current-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(15,43,60,0.46);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.28), inset 0 0 38px rgba(86,255,189,0.05);
}

.frost-panel { padding: clamp(1rem, 2vw, 1.5rem); }
.frost-panel h2 { font-size: clamp(1.2rem, 2vw, 2.1rem); font-weight: 400; margin-bottom: 0.5rem; }

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(86,255,189,0.68);
  animation: tick-pulse 4s ease-in-out infinite;
}
.tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }

.abyss-readout {
  z-index: 4;
  width: min(820px, 84vw);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-color: rgba(86,255,189,0.58);
  background: rgba(10,22,40,0.72);
}

.abyss-readout h2 {
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.readout-lines p {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(74,122,140,0.28);
  font-family: 'Share Tech Mono', monospace;
}

.readout-lines b { color: #56ffbd; font-weight: 400; text-transform: uppercase; }
.readout-lines span { color: #b8d8e8; }

.vent-statement h2 {
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.96;
  font-weight: 400;
  text-transform: uppercase;
  color: #e0f4f4;
  text-shadow: 0 0 26px #56ffbd66, 0 0 70px #c77dff66, 0 0 120px #ff9e6440;
}

.current-panel {
  z-index: 4;
  width: min(950px, 90vw);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.current-panel h2 { font-weight: 400; font-size: clamp(1.8rem, 3.3vw, 3.2rem); margin-bottom: 1.5rem; }

.current-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
}

.current-card {
  width: 240px;
  height: 100px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #e0f4f4;
  border: 1px solid rgba(86,255,189,0.28);
  border-radius: 12px;
  background: rgba(10,22,40,0.54);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.current-card:hover {
  border-color: #56ffbd;
  box-shadow: 0 0 28px rgba(86,255,189,0.18);
}

.icon-shell {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #56ffbd;
  font-size: 2rem;
  background: radial-gradient(circle, #56ffbd22, transparent 68%);
}

.current-card b { font-family: 'Share Tech Mono', monospace; font-weight: 400; letter-spacing: 0.06em; }
.current-card small { color: #b8d8e8; }

.monogram {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 1.5rem;
  border: 1px solid #56ffbd;
  border-radius: 50%;
  color: #56ffbd;
  text-transform: uppercase;
  box-shadow: 0 0 32px #56ffbd33;
}

.return-lockup h2 {
  font-size: clamp(2.5rem, 5.4vw, 6rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blur-reveal {
  filter: blur(12px);
  opacity: 0;
  transform: translateX(16px) scale(0.985);
  transition: filter 800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
}

.blur-reveal.revealed {
  filter: blur(0);
  opacity: 1;
  transform: translateX(0) scale(1);
}

.progress-dots {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(10,22,40,0.42);
  backdrop-filter: blur(18px);
}

.progress-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #4a7a8c;
  cursor: pointer;
  transform: scale(1);
  transition: 300ms ease;
}

.progress-dots button.active {
  background: #56ffbd;
  box-shadow: 0 0 12px #56ffbd66;
  transform: scale(1.3);
}

@keyframes aurora-drift {
  from { transform: rotate(12deg) translateY(100vh); }
  to { transform: rotate(12deg) translateY(-100vh); }
}

@keyframes mesh-breathe {
  0% { --mesh-x1: 18%; --mesh-y1: 24%; --mesh-x2: 78%; --mesh-y2: 70%; transform: scale(1); }
  100% { --mesh-x1: 31%; --mesh-y1: 38%; --mesh-x2: 66%; --mesh-y2: 58%; transform: scale(1.04); }
}

@keyframes halo-focus {
  from { filter: blur(44px); opacity: 0.35; transform: scale(0.92); }
  to { filter: blur(22px); opacity: 0.7; transform: scale(1.08); }
}

@keyframes cue-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(12px); opacity: 1; }
}

@keyframes tick-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@media (max-width: 768px) {
  .zone { padding: 1.1rem; }
  .annotation { opacity: 0.55; }
  .descent-path { width: 88vw; height: auto; display: grid; gap: 1rem; }
  .descent-card { position: relative; inset: auto; width: 100%; text-align: center; }
  .concept-stack { width: 90vw; gap: 0.75rem; }
  .frost-panel { padding: 1rem; }
  .readout-lines p { grid-template-columns: 1fr; gap: 0.25rem; }
  .current-cards { align-items: stretch; }
  .current-card { width: 100%; height: 92px; }
  .scroll-cue { right: 10vw; bottom: 12vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blur-reveal { filter: none; opacity: 1; transform: none; }
}
