:root {
  --cyan: #72D7CF;
  --amber: #F0A84B;
  --ocean: #062B3F;
  --abyss: #02151F;
  --kelp: #356B57;
  --foam: #F3EFE0;
  --coral: #C65A4A;
  --tide: #2D8DB3;
  --display: "Gowun Batang", Georgia, "Times New Roman", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --body: "Nunito Sans", "Trebuchet MS", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Comic Sans MS", "Bradley Hand", "Apple Chancery", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--body);
  background: var(--abyss);
  overflow-x: hidden;
}

.depth-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 70% 12%, rgba(114, 215, 207, .22), transparent 26rem),
    radial-gradient(circle at 22% 38%, rgba(45, 141, 179, .28), transparent 30rem),
    linear-gradient(180deg, #2D8DB3 0%, #062B3F 34%, #02151F 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .16;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(243,239,224,.55) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(114,215,207,.45) 0 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
  mix-blend-mode: soft-light;
}

.caustics {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .42;
  filter: blur(.25px);
}

.caustic-line {
  fill: none;
  stroke: rgba(243, 239, 224, .5);
  stroke-width: 1.2;
  stroke-dasharray: 18 22;
  animation: drawTide 11s linear infinite;
}

.c2 { animation-duration: 14s; stroke: rgba(114, 215, 207, .38); }
.c3 { animation-duration: 18s; }
.c4 { animation-duration: 21s; stroke: rgba(240, 168, 75, .18); }

@keyframes drawTide { to { stroke-dashoffset: -220; } }

.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  bottom: -12vh;
  border: 1px solid rgba(243, 239, 224, .42);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, rgba(243,239,224,.45), rgba(114,215,207,.08) 42%, transparent 70%);
  animation: bubbleRise var(--duration) linear infinite;
  animation-delay: var(--delay);
  opacity: .72;
}

@keyframes bubbleRise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  10% { opacity: .75; }
  100% { transform: translate3d(var(--drift), -124vh, 0) scale(1.05); opacity: 0; }
}

.fish-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.fish {
  position: absolute;
  width: 74px;
  height: 30px;
  border-radius: 70% 45% 45% 70%;
  background: linear-gradient(90deg, rgba(114,215,207,.18), rgba(243,239,224,.46));
  filter: blur(.2px);
  opacity: .55;
  animation: swim 24s linear infinite;
}

.fish::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 5px;
  border-left: 22px solid rgba(114,215,207,.28);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.fish::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--abyss);
  border-radius: 50%;
}

.fish-one { top: 18%; left: -9rem; }
.fish-two { top: 58%; left: -12rem; transform: scale(.7); animation-duration: 32s; animation-delay: -9s; opacity: .38; }
.fish-three { top: 78%; left: -14rem; transform: scale(.55); animation-duration: 28s; animation-delay: -15s; }

.receipt-fish span { display: none; }

@keyframes swim {
  0% { translate: -8rem 0; }
  50% { translate: 58vw -4vh; }
  100% { translate: 112vw 3vh; }
}

.buoy-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 18px;
  z-index: 10;
}

.buoy {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(243,239,224,.5);
  border-radius: 50%;
  background: rgba(6,43,63,.58);
  box-shadow: 0 0 0 6px rgba(114,215,207,.06);
  transition: .45s ease;
}

.buoy span {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(243,239,224,.18);
  transition: .45s ease;
}

.buoy::after {
  content: attr(data-scene);
  position: absolute;
  left: 30px;
  top: -5px;
  white-space: nowrap;
  color: var(--foam);
  font-family: var(--hand);
  font-size: 17px;
  opacity: 0;
  transform: translateX(-8px);
  transition: .35s ease;
}

.buoy:hover::after, .buoy.active::after { opacity: .88; transform: translateX(0); }
.buoy.active { border-color: var(--amber); box-shadow: 0 0 22px rgba(240,168,75,.55); }
.buoy.active span { background: var(--amber); }

.scene {
  min-height: 106vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 9vh 8vw 10vh 12vw;
  isolation: isolate;
}

.scene::before {
  content: attr(data-scene);
  position: absolute;
  right: 6vw;
  top: 7vh;
  font-family: var(--hand);
  font-size: clamp(1.2rem, 3vw, 2.8rem);
  color: rgba(243,239,224,.16);
  transform: rotate(-5deg);
}

.surface { min-height: 112vh; align-items: start; padding-top: 17vh; }

.surface-ripple {
  position: absolute;
  inset: -20vh -10vw auto -10vw;
  height: 48vh;
  background:
    repeating-radial-gradient(ellipse at 50% 20%, rgba(243,239,224,.24) 0 2px, transparent 3px 18px),
    linear-gradient(180deg, rgba(114,215,207,.48), transparent);
  filter: blur(1px);
  opacity: .58;
  animation: rippleFlex 8s ease-in-out infinite;
}

@keyframes rippleFlex { 50% { transform: translateY(15px) scaleX(1.04); opacity: .72; } }

.wordmark-wrap { max-width: 880px; text-align: center; }
.korean-note, .hand { font-family: var(--hand); color: var(--cyan); letter-spacing: .04em; font-size: clamp(1.2rem, 2.5vw, 2.2rem); }

.wordmark {
  margin: .15em 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.4rem, 16vw, 14rem);
  line-height: .82;
  color: var(--foam);
  text-shadow: 0 0 26px rgba(114,215,207,.38), 0 10px 0 rgba(45,141,179,.18);
  letter-spacing: -.08em;
  animation: titleBend 6s ease-in-out infinite;
}

.wordmark::after {
  content: attr(data-text);
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,239,224,.18);
  transform: scaleY(-.28) skewX(-10deg);
  filter: blur(2px);
  opacity: .7;
}

@keyframes titleBend { 50% { letter-spacing: -.045em; transform: skewX(-3deg) translateY(6px); } }

.scene-copy {
  max-width: 590px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: rgba(243,239,224,.82);
}

.surface-stamps {
  position: absolute;
  left: 9vw;
  bottom: 22vh;
  display: grid;
  gap: 12px;
  transform: rotate(-8deg);
  opacity: .72;
}

.surface-stamps span {
  display: inline-block;
  width: max-content;
  padding: 7px 13px 6px;
  border: 1px solid rgba(114,215,207,.56);
  border-radius: 45% 55% 48% 52%;
  color: var(--cyan);
  font-family: var(--hand);
  font-size: 1.35rem;
  background: rgba(6,43,63,.25);
  box-shadow: inset 0 0 14px rgba(114,215,207,.11);
}

.open-buoy {
  position: absolute;
  right: 10vw;
  bottom: 17vh;
  width: 166px;
  min-height: 166px;
  border-radius: 48% 52% 45% 55%;
  display: grid;
  place-items: center;
  padding: 26px;
  background: radial-gradient(circle at 40% 30%, #F0A84B, #C65A4A 64%, rgba(6,43,63,.4));
  box-shadow: 0 0 44px rgba(240,168,75,.45);
  text-align: center;
  animation: buoySway 5s ease-in-out infinite;
}

.bell {
  width: 28px;
  height: 26px;
  border-radius: 15px 15px 8px 8px;
  border: 2px solid var(--foam);
}

.open-buoy strong { font-family: var(--display); font-size: 2rem; display: block; }
.open-buoy em { font-size: .8rem; color: rgba(243,239,224,.78); }
@keyframes buoySway { 50% { transform: rotate(4deg) translateY(-14px); } }

.reef { grid-template-columns: minmax(260px, 520px) minmax(260px, 480px); gap: 8vw; }
.reef-door {
  position: relative;
  min-height: 560px;
  width: min(100%, 470px);
  padding: 72px 46px;
  border: 2px solid rgba(114,215,207,.4);
  border-radius: 52% 48% 44% 56% / 36% 34% 66% 64%;
  background: radial-gradient(circle at 50% 58%, rgba(240,168,75,.42), transparent 35%), linear-gradient(160deg, rgba(53,107,87,.74), rgba(6,43,63,.72));
  box-shadow: inset 0 0 60px rgba(2,21,31,.55), 0 0 60px rgba(114,215,207,.16);
}

.door-glow { position: absolute; inset: 16% 24%; border-radius: 50%; background: rgba(240,168,75,.16); filter: blur(26px); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 8vw, 7rem); line-height: .9; margin: 0 0 24px; color: var(--foam); }
h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 400; margin: 8px 0; color: var(--foam); }
p { line-height: 1.75; }

.menu-planks { display: grid; gap: 28px; }
.plank {
  width: min(100%, 440px);
  padding: 28px 34px;
  background: linear-gradient(120deg, rgba(53,107,87,.84), rgba(6,43,63,.84));
  border: 1px solid rgba(243,239,224,.28);
  border-radius: 28px 12px 34px 18px;
  box-shadow: 0 22px 46px rgba(2,21,31,.35);
}
.plank span, .napkin-note span, .special-board span { font-family: var(--hand); color: var(--amber); font-size: 1.35rem; }
.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(5deg) translateX(2vw); }

.tide-chart {
  justify-self: center;
  transform: rotate(-1.5deg) translateX(-1vw);
  background:
    repeating-linear-gradient(90deg, rgba(243,239,224,.1) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(180deg, rgba(114,215,207,.09) 0 1px, transparent 1px 28px),
    linear-gradient(130deg, rgba(6,43,63,.9), rgba(53,107,87,.68));
}

.tide-chart::after {
  content: "";
  display: block;
  height: 34px;
  margin-top: 12px;
  border-bottom: 2px solid rgba(240,168,75,.76);
  border-radius: 50%;
}

.counter { padding-left: 10vw; }
.jelly-lamps { position: absolute; top: 8vh; left: 18vw; right: 10vw; display: flex; justify-content: space-around; }
.jelly-lamps span {
  width: 82px;
  height: 116px;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 50% 25%, #F3EFE0, #F0A84B 38%, rgba(240,168,75,.08) 70%);
  box-shadow: 0 0 42px rgba(240,168,75,.4);
  animation: lampFloat 6s ease-in-out infinite;
}
.jelly-lamps span:nth-child(2) { animation-delay: -2s; transform: scale(.78); }
.jelly-lamps span:nth-child(3) { animation-delay: -4s; transform: scale(.9); }
@keyframes lampFloat { 50% { translate: 0 22px; border-radius: 45% 55% 50% 50%; } }

.wave-counter {
  position: relative;
  width: min(100%, 920px);
  min-height: 430px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: center;
  padding: 44px 54px;
  border-radius: 28% 72% 30% 70% / 64% 30% 70% 36%;
  background: linear-gradient(145deg, rgba(45,141,179,.58), rgba(2,21,31,.86));
  border: 1px solid rgba(114,215,207,.36);
  box-shadow: inset 0 -24px 0 rgba(240,168,75,.12), 0 0 70px rgba(45,141,179,.18);
}

.cup {
  position: relative;
  width: 210px;
  height: 145px;
  border-radius: 20px 20px 70px 70px;
  background: linear-gradient(180deg, #F3EFE0, rgba(243,239,224,.68));
  box-shadow: inset 0 -24px 0 rgba(45,141,179,.25);
}
.cup::after { content: ""; position: absolute; right: -42px; top: 36px; width: 54px; height: 54px; border: 16px solid rgba(243,239,224,.72); border-left: 0; border-radius: 0 50% 50% 0; }
.steam { position: absolute; bottom: 125px; width: 24px; height: 120px; border-left: 4px solid var(--kelp); border-radius: 50%; animation: steamKelp 4s ease-in-out infinite; opacity: .86; }
.s1 { left: 45px; } .s2 { left: 92px; animation-delay: -1.2s; } .s3 { left: 140px; animation-delay: -2.1s; }
@keyframes steamKelp { 50% { transform: translateY(-18px) rotate(9deg); border-color: var(--cyan); opacity: .54; } }

.special-board {
  border: 1px solid rgba(240,168,75,.5);
  background: rgba(2,21,31,.45);
  color: var(--foam);
  border-radius: 18px;
  padding: 18px 24px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(240,168,75,.14);
  transition: .35s ease;
}
.special-board strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
.special-board:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 36px rgba(240,168,75,.28); }

.counter-window {
  position: absolute;
  right: 44px;
  bottom: 34px;
  width: 156px;
  height: 84px;
  border: 1px solid rgba(114,215,207,.34);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 45%, rgba(114,215,207,.22), transparent 35%), rgba(2,21,31,.46);
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(2,21,31,.64);
}

.counter-window i {
  position: absolute;
  left: -34px;
  top: 25px;
  width: 34px;
  height: 13px;
  border-radius: 70% 45% 45% 70%;
  background: rgba(243,239,224,.52);
  animation: windowFish 6s linear infinite;
}

.counter-window i::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 3px;
  border-left: 9px solid rgba(243,239,224,.38);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.counter-window i:nth-child(2) { top: 47px; animation-delay: -2s; transform: scale(.72); }
.counter-window i:nth-child(3) { top: 17px; animation-delay: -4.1s; transform: scale(.54); }
@keyframes windowFish { to { translate: 210px 8px; } }

.shell { grid-template-columns: minmax(280px, 680px) minmax(180px, 310px); gap: 8vw; }
.shell-alcove {
  padding: 68px 60px 54px;
  background: radial-gradient(circle at 50% 100%, rgba(240,168,75,.38), transparent 38%), linear-gradient(145deg, rgba(198,90,74,.35), rgba(6,43,63,.76));
  clip-path: ellipse(50% 44% at 50% 50%);
  min-height: 540px;
  display: grid;
  align-content: center;
  text-align: center;
}
.pearls { display: flex; gap: 14px; justify-content: center; margin-top: 20px; }
.pearls i { width: 20px; height: 20px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 18px rgba(243,239,224,.55); animation: pearlRoll 3.6s ease-in-out infinite; }
.pearls i:nth-child(even) { animation-delay: -1s; }
@keyframes pearlRoll { 50% { transform: translateY(-8px) translateX(5px); } }

.shell-croissant {
  width: 150px;
  height: 72px;
  margin: 22px auto 0;
  border-radius: 12px 12px 80px 80px;
  background:
    radial-gradient(ellipse at 22% 86%, rgba(198,90,74,.55), transparent 34%),
    radial-gradient(ellipse at 50% 90%, rgba(198,90,74,.5), transparent 30%),
    radial-gradient(ellipse at 78% 86%, rgba(198,90,74,.5), transparent 34%),
    linear-gradient(180deg, #F0A84B, #C65A4A);
  box-shadow: 0 0 28px rgba(240,168,75,.35);
  transform: rotate(-3deg);
}

.shell-croissant::before {
  content: "";
  display: block;
  height: 58px;
  border-radius: 0 0 50% 50%;
  border-bottom: 2px solid rgba(243,239,224,.35);
  background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 17px, rgba(243,239,224,.2) 18px 20px);
}
.napkin-note {
  background: #F3EFE0;
  color: var(--ocean);
  padding: 34px;
  border-radius: 12px 48px 18px 38px;
  transform: rotate(7deg);
  box-shadow: 0 20px 50px rgba(2,21,31,.34);
}
.napkin-note p { font-family: var(--hand); font-size: 2.1rem; line-height: 1.05; color: var(--coral); }

.seabed { min-height: 115vh; }
.seabed::after {
  content: "";
  position: absolute;
  left: -5vw;
  right: -5vw;
  bottom: -6vh;
  height: 28vh;
  background: radial-gradient(ellipse at 20% 40%, rgba(53,107,87,.8), transparent 24%), radial-gradient(ellipse at 70% 20%, rgba(198,90,74,.45), transparent 22%), linear-gradient(180deg, transparent, rgba(2,21,31,.95));
  border-radius: 50% 50% 0 0;
  z-index: -1;
}
.reading-nook {
  max-width: 720px;
  padding: 58px;
  border-radius: 48px 48px 120px 48px;
  background: linear-gradient(145deg, rgba(2,21,31,.74), rgba(6,43,63,.72));
  border: 1px solid rgba(243,239,224,.18);
  box-shadow: 0 0 90px rgba(240,168,75,.12), inset 0 0 70px rgba(45,141,179,.14);
}
.quiet-sign {
  display: inline-block;
  margin-top: 18px;
  color: var(--abyss);
  background: var(--amber);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 999px 999px 999px 18px;
  font-family: var(--hand);
  font-size: 1.35rem;
  box-shadow: 0 0 28px rgba(240,168,75,.34);
}
.floating-receipt {
  position: absolute;
  right: 15vw;
  bottom: 11vh;
  width: 170px;
  min-height: 220px;
  padding: 22px 18px;
  color: var(--ocean);
  background: repeating-linear-gradient(180deg, #F3EFE0 0 22px, rgba(243,239,224,.92) 23px 24px);
  border-radius: 6px 6px 28px 28px;
  transform: rotate(-8deg);
  box-shadow: 0 20px 40px rgba(2,21,31,.28);
  animation: receiptFloat 7s ease-in-out infinite;
}
.floating-receipt span { display: block; font-family: var(--display); font-size: 1.45rem; margin-bottom: 18px; }
.floating-receipt small { font-family: var(--hand); font-size: 1.15rem; color: var(--coral); }
@keyframes receiptFloat { 50% { transform: translateY(-38px) rotate(5deg); opacity: .72; } }

.drift { animation: drift 8s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-12px); } }
.reveal { opacity: 0; transform: translateY(42px) scale(.98); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 860px) {
  .scene { padding: 10vh 7vw 10vh 16vw; }
  .reef, .shell, .wave-counter { grid-template-columns: 1fr; }
  .wave-counter { border-radius: 42px; padding: 38px 28px; }
  .cup { transform: scale(.82); transform-origin: left center; }
  .open-buoy { right: 6vw; bottom: 8vh; width: 130px; min-height: 130px; }
  .floating-receipt { right: 8vw; opacity: .75; }
  .buoy-nav { left: 12px; }
}
