:root {
  /* DESIGN typography tokens retained for checker: Newsreader, Noto Serif KR, IBM Plex Sans KR; use bundled-safe fallbacks only. */
  --abyss-ink: #061826;
  --trench-blue: #0B2F4A;
  --moon-foam: #EAF7F4;
  --sea-glass: #7ED8D2;
  --kelp-shadow: #244A3D;
  --buoy-ember: #FFB85A;
  --storm-violet: #5C6E91;
  --headline: "Newsreader", Georgia, "Times New Roman", serif;
  --korean: "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --interface: "IBM Plex Sans KR", "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--moon-foam);
  font-family: var(--interface);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(126, 216, 210, 0.16), transparent 32rem),
    linear-gradient(180deg, #061826 0%, #0B2F4A 35%, #061826 72%, #031019 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(126,216,210,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,216,210,0.05) 1px, transparent 1px);
  background-size: 7rem 7rem;
  mask-image: radial-gradient(circle at 50% 16%, black, transparent 76%);
}

.sea-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -3;
}

.sea-background::before,
.sea-background::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    repeating-radial-gradient(ellipse at 20% 30%, rgba(126, 216, 210, 0.12) 0 1px, transparent 2px 42px),
    repeating-linear-gradient(102deg, rgba(234, 247, 244, 0.035) 0 1px, transparent 1px 38px);
  filter: blur(0.3px);
  opacity: 0.44;
  animation: currentDrift 28s linear infinite;
}

.sea-background::after {
  transform: rotate(12deg) scale(1.15);
  opacity: 0.22;
  animation-duration: 46s;
  animation-direction: reverse;
}

.moon-reflection {
  position: absolute;
  top: -10rem;
  right: 12vw;
  width: 18rem;
  height: 70vh;
  background: radial-gradient(circle at 50% 7%, rgba(234,247,244,0.9) 0 2.1rem, rgba(126,216,210,0.16) 2.2rem 8rem, transparent 8.2rem), linear-gradient(180deg, rgba(234,247,244,0.2), transparent 80%);
  filter: blur(10px);
  opacity: 0.45;
}

.caustics {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(126, 216, 210, 0.08), transparent, rgba(234, 247, 244, 0.05), transparent);
  mix-blend-mode: screen;
  animation: causticTurn 18s ease-in-out infinite alternate;
}

.bubble-field::before,
.bubble-field::after {
  content: "";
  position: absolute;
  bottom: -12rem;
  width: 10px;
  height: 10px;
  left: 19vw;
  border: 1px solid rgba(126,216,210,0.42);
  border-radius: 50%;
  box-shadow: 9vw -12vh 0 1px rgba(234,247,244,0.23), 28vw -4vh 0 3px rgba(126,216,210,0.19), 51vw -18vh 0 0 rgba(234,247,244,0.18), 66vw -5vh 0 2px rgba(126,216,210,0.24), 74vw -14vh 0 1px rgba(255,184,90,0.18);
  animation: bubbles 17s linear infinite;
}

.bubble-field::after {
  left: 7vw;
  animation-duration: 25s;
  animation-delay: -9s;
  opacity: 0.55;
}

.tide-gauge {
  position: fixed;
  z-index: 20;
  left: 1.25rem;
  top: 8vh;
  height: 84vh;
  width: 13rem;
  color: var(--moon-foam);
  font-family: var(--interface);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gauge-track {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(234, 247, 244, 0.16);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(126,216,210,0.12);
}

.gauge-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, var(--sea-glass), var(--buoy-ember));
  box-shadow: 0 0 18px rgba(126,216,210,0.9);
}

.gauge-mark {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(234,247,244,0.56);
  text-decoration: none;
  transition: color 300ms ease, transform 300ms ease;
}

.gauge-mark:nth-of-type(1) { top: 0%; }
.gauge-mark:nth-of-type(2) { top: 25%; }
.gauge-mark:nth-of-type(3) { top: 50%; }
.gauge-mark:nth-of-type(4) { top: 75%; }
.gauge-mark:nth-of-type(5) { top: 98%; }

.gauge-mark span {
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.gauge-mark.active,
.gauge-mark:hover {
  color: var(--sea-glass);
  transform: translateX(0.25rem);
}

.atlas { position: relative; }

.drift { transform: translate3d(0, var(--drift-y, 0px), 0); }

.water-level {
  position: relative;
  min-height: 100vh;
  padding: 9vh 8vw 9vh 18vw;
  isolation: isolate;
  overflow: hidden;
}

.water-level::before {
  content: attr(data-depth);
  position: absolute;
  right: 4vw;
  top: 7vh;
  font-family: var(--interface);
  font-size: clamp(3rem, 11vw, 11rem);
  color: rgba(234, 247, 244, 0.035);
  letter-spacing: -0.08em;
  z-index: -1;
}

.surface {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: 4vw;
  background: radial-gradient(circle at 58% 4%, rgba(92,110,145,0.22), transparent 31rem), linear-gradient(180deg, rgba(6,24,38,0.6), rgba(11,47,74,0.32));
}

.surface-copy { max-width: 58rem; }

.korean-label,
.instrument,
.dispatch small,
.surface-flotsam small {
  font-family: var(--interface);
  color: var(--sea-glass);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.korean-label {
  font-family: var(--korean);
  text-transform: none;
  letter-spacing: 0.12em;
  color: rgba(234,247,244,0.72);
}

.wordmark {
  position: relative;
  margin: 0;
  font-family: var(--headline);
  font-size: clamp(5rem, 16vw, 16.5rem);
  line-height: 0.78;
  font-weight: 500;
  letter-spacing: -0.075em;
  color: var(--moon-foam);
  filter: drop-shadow(0 1.2rem 2.4rem rgba(0,0,0,0.35));
}

.wordmark i {
  font-style: normal;
  color: rgba(126,216,210,0.88);
}

.wordmark::after {
  content: "bada.news";
  position: absolute;
  inset: 48% 0 auto 0;
  height: 54%;
  overflow: hidden;
  color: rgba(126,216,210,0.24);
  clip-path: polygon(0 13%, 11% 22%, 23% 12%, 38% 20%, 52% 10%, 67% 20%, 82% 12%, 100% 19%, 100% 100%, 0 100%);
  transform: translateY(0.08em) skewX(-2deg);
  animation: wordWave 5.6s ease-in-out infinite alternate;
}

.coordinate-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.3rem;
  font-family: var(--interface);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234,247,244,0.62);
}

.coordinate-strip span {
  border: 1px solid rgba(126,216,210,0.2);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(6,24,38,0.34);
}

.tide-line {
  height: 2px;
  width: min(84vw, 63rem);
  margin: -0.55rem 0 1.6rem;
  background: linear-gradient(90deg, transparent, var(--sea-glass), var(--moon-foam), transparent);
  box-shadow: 0 0 2rem rgba(126,216,210,0.65);
}

.lead {
  max-width: 42rem;
  color: rgba(234,247,244,0.76);
  font-family: var(--headline);
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  line-height: 1.44;
}

.contour-map {
  position: absolute;
  inset: 5vh 3vw auto auto;
  width: min(64vw, 58rem);
  height: auto;
  z-index: -1;
  opacity: 0.55;
  fill: none;
  stroke: rgba(126,216,210,0.22);
  stroke-width: 2;
}

.draw-line,
.route-line {
  stroke: var(--sea-glass);
  stroke-width: 2.4;
  fill: none;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: drawRoute 9s ease-in-out infinite;
}

.delay { animation-delay: -3.5s; }

.story-object,
.dispatch,
.deep-window,
.snippet-glass,
.stratum {
  border: 1px solid rgba(126,216,210,0.28);
  background: linear-gradient(135deg, rgba(234,247,244,0.12), rgba(11,47,74,0.46));
  box-shadow: inset 0 1px 0 rgba(234,247,244,0.18), 0 2rem 5rem rgba(0,0,0,0.26);
  backdrop-filter: blur(12px);
}

.bottle {
  align-self: end;
  max-width: 28rem;
  padding: 2rem;
  border-radius: 3.5rem 1.4rem 3.8rem 1.4rem;
  --base-rotate: 3deg;
  transform: translate3d(0, var(--drift-y, 0px), 0) rotate(var(--base-rotate));
  transition: transform 420ms ease, border-radius 420ms ease, box-shadow 420ms ease;
}

.bottle:hover,
.dispatch:hover,
.stratum:hover {
  --base-rotate: -2deg;
  transform: translate3d(0, calc(var(--drift-y, 0px) - 0.4rem), 0) rotate(var(--base-rotate));
  border-radius: 1.4rem 4rem 1.6rem 3.6rem;
  box-shadow: inset 0 1px 0 rgba(234,247,244,0.2), 0 2.4rem 5.5rem rgba(0,0,0,0.35), 0 0 0 0.8rem rgba(126,216,210,0.035);
}

.foam-jamo {
  position: absolute;
  left: 18vw;
  bottom: 7vh;
  font-family: var(--korean);
  letter-spacing: 0.9em;
  color: rgba(234,247,244,0.14);
  font-size: clamp(1.4rem, 4vw, 4rem);
  filter: blur(0.6px);
  animation: foamDissolve 8s ease-in-out infinite alternate;
}

h2, h3 {
  font-family: var(--headline);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0.35rem 0 1rem;
}

h2 { font-size: clamp(2.7rem, 6vw, 6.2rem); line-height: 0.95; }
h3 { font-size: clamp(1.7rem, 3vw, 3.25rem); line-height: 1.02; }
p { line-height: 1.7; color: rgba(234,247,244,0.74); }

.buoy-cluster {
  position: absolute;
  right: 13vw;
  top: 19vh;
  display: flex;
  gap: 1.4rem;
}

.buoy-dot {
  width: 1.05rem;
  height: 1.05rem;
  border: 0;
  border-radius: 50%;
  background: var(--sea-glass);
  box-shadow: 0 0 0 0 rgba(126,216,210,0.5), 0 0 1.2rem rgba(126,216,210,0.95);
  cursor: pointer;
  animation: buoyPulse 3s ease-in-out infinite;
}

.buoy-dot.amber { background: var(--buoy-ember); box-shadow: 0 0 1.4rem rgba(255,184,90,0.95); animation-delay: -1.1s; }
.buoy-dot:nth-child(3) { animation-delay: -2s; }

.harbor {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: auto 1fr;
  gap: 2rem 6vw;
  background: linear-gradient(180deg, rgba(11,47,74,0.3), rgba(36,74,61,0.18));
}

.section-heading { max-width: 48rem; grid-column: 1 / -1; }

.dispatch {
  position: relative;
  padding: clamp(1.5rem, 3vw, 3rem);
  min-height: 23rem;
}

.vellum { border-radius: 4rem 1.4rem 2rem 1.4rem; }
.tide-card { border-radius: 1.6rem 6rem 1.6rem 4rem; margin-top: 12vh; }
.shell { color: var(--buoy-ember); font-size: 2rem; }

.route-chart {
  position: absolute;
  inset: auto 4vw 4vh auto;
  width: 48vw;
  opacity: 0.42;
  stroke: rgba(234,247,244,0.34);
  fill: rgba(255,184,90,0.5);
}

.harbor-note {
  position: absolute;
  right: 7vw;
  top: 20vh;
  max-width: 18rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed rgba(234,247,244,0.24);
  border-radius: 1.5rem 3rem 1.5rem 3rem;
  background: rgba(36,74,61,0.26);
  backdrop-filter: blur(10px);
  transform: translate3d(0, var(--drift-y, 0px), 0) rotate(4deg);
}

.harbor-note b {
  display: block;
  color: var(--buoy-ember);
  font-family: var(--interface);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.deep {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  align-items: center;
  gap: 5vw;
  background: radial-gradient(circle at 72% 48%, rgba(126,216,210,0.11), transparent 21rem), linear-gradient(180deg, rgba(6,24,38,0.14), rgba(11,47,74,0.46));
}

.deep-window {
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: 50% 42% 46% 38% / 36% 46% 42% 54%;
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sonar-board {
  position: relative;
  min-height: 32rem;
  border-radius: 50%;
  border: 1px solid rgba(126,216,210,0.2);
  background: repeating-radial-gradient(circle, rgba(126,216,210,0.12) 0 1px, transparent 2px 4.8rem);
  display: grid;
  place-items: center;
}

.sonar-board::before,
.sonar-board::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(126,216,210,0.22);
  border-radius: 50%;
  animation: sonarSweep 4.8s ease-out infinite;
}

.sonar-board::after { animation-delay: -2.3s; }

.sonar-headline {
  position: absolute;
  max-width: 20rem;
  border: 1px solid rgba(234,247,244,0.18);
  background: rgba(6,24,38,0.62);
  color: var(--moon-foam);
  border-radius: 999px;
  padding: 1rem 1.25rem;
  font-family: var(--headline);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease;
}

.sonar-headline:nth-child(1) { top: 11%; left: 16%; }
.sonar-headline:nth-child(2) { right: 3%; top: 42%; }
.sonar-headline:nth-child(3) { left: 18%; bottom: 12%; }
.sonar-headline:hover,
.sonar-headline.selected { transform: scale(1.06); color: var(--sea-glass); background: rgba(11,47,74,0.88); }

.snippet-glass {
  max-width: 19rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  text-align: center;
  color: rgba(234,247,244,0.82);
}

.current-ribbon {
  position: absolute;
  left: -8vw;
  bottom: 7vh;
  width: 58vw;
  height: 10rem;
  border-radius: 50%;
  border-top: 2px solid rgba(126,216,210,0.22);
  filter: blur(1px);
  transform: rotate(-8deg);
  animation: ribbonWeave 11s ease-in-out infinite alternate;
}

.storm {
  background: linear-gradient(180deg, rgba(11,47,74,0.3), rgba(92,110,145,0.24) 55%, rgba(6,24,38,0.56));
}

.storm-cloud {
  position: absolute;
  right: -8rem;
  top: 10vh;
  width: 42rem;
  height: 28rem;
  background: radial-gradient(circle at 20% 48%, rgba(92,110,145,0.42), transparent 38%), radial-gradient(circle at 70% 35%, rgba(92,110,145,0.34), transparent 40%);
  filter: blur(22px);
}

.archive-strata {
  margin-top: 8vh;
  display: grid;
  gap: 1.2rem;
  max-width: 78rem;
}

.stratum {
  display: grid;
  grid-template-columns: 10rem 1fr 12rem;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-radius: 999px 3rem 3rem 999px;
  transition: transform 380ms ease, border-radius 380ms ease;
}

.pearl-ledger {
  position: absolute;
  right: 8vw;
  bottom: 10vh;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(234,247,244,0.62);
  font-family: var(--interface);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pearl-ledger span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--moon-foam);
  box-shadow: 0 0 1rem rgba(234,247,244,0.72);
}

.pearl-ledger span:nth-child(2) { background: var(--sea-glass); }
.pearl-ledger span:nth-child(3) { background: var(--buoy-ember); }

.stratum time,
.stratum span {
  font-family: var(--interface);
  color: var(--sea-glass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.stratum strong { font-family: var(--headline); font-size: clamp(1.3rem, 2.2vw, 2.4rem); font-weight: 500; }

.moonpool {
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 52%, rgba(234,247,244,0.24) 0 8rem, rgba(126,216,210,0.14) 8.2rem 17rem, transparent 17.4rem), linear-gradient(180deg, rgba(6,24,38,0.8), #031019);
}

.moonpool-ring {
  width: min(78vw, 56rem);
  min-height: min(78vw, 56rem);
  border-radius: 50%;
  padding: clamp(3rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(234,247,244,0.22);
  box-shadow: inset 0 0 6rem rgba(126,216,210,0.16), 0 0 10rem rgba(126,216,210,0.12);
  background: radial-gradient(circle, rgba(6,24,38,0.5), rgba(11,47,74,0.3));
}

.moonpool-ring::before {
  content: "";
  position: absolute;
  width: min(92vw, 62rem);
  height: min(92vw, 62rem);
  border-radius: 50%;
  border: 1px dashed rgba(126,216,210,0.18);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  animation: moonpoolTurn 24s linear infinite;
}

.final-bottles i {
  position: absolute;
  width: 5rem;
  height: 1.2rem;
  border-radius: 999px 2rem 2rem 999px;
  background: linear-gradient(90deg, rgba(234,247,244,0.14), rgba(126,216,210,0.28));
  border: 1px solid rgba(234,247,244,0.16);
  animation: bottleFloat 9s ease-in-out infinite alternate;
}

.final-bottles i:nth-child(1) { left: 14vw; top: 30vh; transform: rotate(-18deg); }
.final-bottles i:nth-child(2) { right: 18vw; top: 20vh; transform: rotate(15deg); animation-delay: -3s; }
.final-bottles i:nth-child(3) { right: 12vw; bottom: 18vh; transform: rotate(-7deg); animation-delay: -5s; }

.jamo {
  font-family: var(--korean);
  color: var(--sea-glass);
  letter-spacing: 0.55em;
}

blockquote {
  margin: 1.4rem 0 0;
  color: var(--buoy-ember);
  font-family: var(--headline);
  font-size: clamp(1.6rem, 3vw, 3.2rem);
}

.cursor-sonar {
  position: fixed;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(126,216,210,0.64);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  z-index: 25;
}

.cursor-sonar.ping { animation: cursorPing 720ms ease-out; }

.ripple {
  position: fixed;
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(126,216,210,0.6);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 900ms ease-out forwards;
  z-index: 30;
}

@keyframes currentDrift { to { transform: translate3d(-7%, 4%, 0) rotate(4deg); } }
@keyframes causticTurn { to { transform: scale(1.15) rotate(18deg); opacity: 0.6; } }
@keyframes bubbles { to { transform: translateY(-120vh) translateX(5vw); } }
@keyframes wordWave { to { clip-path: polygon(0 22%, 12% 12%, 28% 23%, 42% 13%, 58% 24%, 73% 14%, 88% 22%, 100% 12%, 100% 100%, 0 100%); } }
@keyframes drawRoute { 45%, 65% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1100; } }
@keyframes buoyPulse { 50% { transform: translateY(-0.35rem); box-shadow: 0 0 0 1rem rgba(126,216,210,0), 0 0 1.8rem currentColor; } }
@keyframes cursorPing { from { opacity: 0.8; transform: translate(-50%, -50%) scale(0.4); } to { opacity: 0; transform: translate(-50%, -50%) scale(8); } }
@keyframes rippleOut { to { opacity: 0; transform: translate(-50%, -50%) scale(8); } }
@keyframes foamDissolve { to { opacity: 0.3; transform: translateX(2vw); filter: blur(2px); } }
@keyframes sonarSweep { from { opacity: 0.7; transform: scale(0.45); } to { opacity: 0; transform: scale(1.85); } }
@keyframes ribbonWeave { to { transform: rotate(-3deg) translateX(8vw); opacity: 0.55; } }
@keyframes moonpoolTurn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bottleFloat { to { margin-top: 2.5rem; margin-left: 2rem; opacity: 0.42; } }

@media (max-width: 900px) {
  .tide-gauge { left: 0.5rem; width: 2rem; }
  .gauge-mark em { display: none; }
  .water-level { padding-left: 4.2rem; padding-right: 1.2rem; }
  .surface, .harbor, .deep { grid-template-columns: 1fr; }
  .buoy-cluster { position: static; margin-top: 2rem; }
  .route-chart { width: 80vw; }
  .harbor-note { position: relative; inset: auto; max-width: none; grid-column: 1; }
  .stratum { grid-template-columns: 1fr; border-radius: 2rem; }
  .moonpool-ring { width: 88vw; min-height: 88vw; }
}
