:root {
  --abyss-blue: #082B3A;
  --foam-milk: #F4E8D2;
  --shell-blush: #E7A98D;
  --tide-teal: #0E6F79;
  --espresso-umber: #4A2618;
  --sea-glass-mint: #A7D8CF;
  --crema-gold: #C9823E;
  --display: Fraunces, Georgia, 'Times New Roman', serif;
  --kr: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --round: 'Nunito Sans', Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-safe: 'Space Grotesk', 'Space Mono', Inter, system-ui, sans-serif;
  --panel-count: 5;
  --horizon-color: #082B3A;
}

* { box-sizing: border-box; }

html {
  background: var(--abyss-blue);
  color: var(--foam-milk);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--round);
  background:
    radial-gradient(circle at 18% 12%, rgba(167, 216, 207, .18), transparent 28rem),
    linear-gradient(135deg, var(--abyss-blue), #051821 62%, var(--espresso-umber));
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .22;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(244, 232, 210, .14) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 50%, rgba(167, 216, 207, .11) 0 1px, transparent 1.5px);
  background-size: 29px 31px, 43px 41px;
  mix-blend-mode: soft-light;
}

.horizon-glow {
  position: fixed;
  left: 0;
  right: 0;
  top: 43vh;
  height: 18vh;
  z-index: 1;
  pointer-events: none;
  opacity: .36;
  background: linear-gradient(90deg, transparent, var(--horizon-color), rgba(244, 232, 210, .2), var(--horizon-color), transparent);
  filter: blur(28px);
  mix-blend-mode: screen;
  transition: background .9s ease, opacity .9s ease;
}

.shore-header {
  position: fixed;
  top: 1.1rem;
  left: 1.35rem;
  right: 1.35rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.04em;
  color: rgba(244, 232, 210, .78);
  text-shadow: 0 0 20px rgba(167, 216, 207, .18);
}

.tide-nav {
  display: flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid rgba(167, 216, 207, .25);
  border-radius: 999px;
  background: rgba(8, 43, 58, .44);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.tide-nav button {
  border: 0;
  color: rgba(244, 232, 210, .64);
  background: transparent;
  border-radius: 999px;
  padding: .48rem .78rem;
  font-family: var(--round);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .35s ease, background .35s ease;
}

.tide-nav button.active,
.tide-nav button:hover {
  color: var(--abyss-blue);
  background: var(--sea-glass-mint);
}

.shoreline {
  width: calc(var(--panel-count) * 100vw);
  height: 100vh;
  display: flex;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.tide-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  overflow: hidden;
  padding: 8rem clamp(2rem, 6vw, 6rem) 5rem;
  isolation: isolate;
}

.tide-panel::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -3;
  background: radial-gradient(circle at 68% 22%, rgba(231, 169, 141, .16), transparent 25rem), linear-gradient(110deg, var(--abyss-blue), var(--tide-teal));
  transition: background 1s ease;
}

.tide-panel::after {
  content: "";
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: -16vh;
  height: 42vh;
  border-radius: 48% 52% 0 0 / 32% 40% 0 0;
  background: linear-gradient(180deg, rgba(14, 111, 121, .55), rgba(8, 43, 58, .9));
  filter: blur(.2px);
  animation: tideBreath 8s ease-in-out infinite;
  z-index: -1;
}

.panel-opening::before { background: linear-gradient(150deg, #051822, var(--abyss-blue) 56%, #0A3E4C); }
.panel-pier::before { background: radial-gradient(circle at 76% 34%, rgba(201, 130, 62, .13), transparent 20rem), linear-gradient(100deg, var(--abyss-blue), #0A4C56 66%, var(--espresso-umber)); }
.panel-pour::before { background: radial-gradient(circle at 64% 28%, rgba(201, 130, 62, .45), transparent 24rem), linear-gradient(110deg, var(--espresso-umber), var(--abyss-blue)); }
.panel-foam::before { background: radial-gradient(circle at 70% 54%, rgba(244, 232, 210, .45), transparent 18rem), linear-gradient(110deg, var(--tide-teal), var(--sea-glass-mint)); }
.panel-sunrise::before { background: radial-gradient(circle at 55% 38%, rgba(244, 232, 210, .42), transparent 18rem), linear-gradient(118deg, var(--espresso-umber), var(--crema-gold) 58%, var(--shell-blush)); }

.horizon-brew {
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sea-glass-mint), transparent);
  opacity: .75;
  box-shadow: 0 0 26px rgba(167, 216, 207, .4);
}

.water-wordmark {
  position: absolute;
  left: clamp(2rem, 7vw, 7rem);
  bottom: 20vh;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 14vw, 13.5rem);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.075em;
  color: var(--foam-milk);
  text-shadow: 0 20px 50px rgba(0, 0, 0, .32), 0 0 42px rgba(231, 169, 141, .12);
}

.wordmark-reflection {
  position: absolute;
  left: clamp(2rem, 7vw, 7rem);
  bottom: 6vh;
  font-family: var(--display);
  font-size: clamp(4.2rem, 14vw, 13.5rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .75;
  color: rgba(167, 216, 207, .18);
  transform: scaleY(-.52) skewX(-8deg);
  filter: blur(2px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent 70%);
  animation: reflection 5.8s ease-in-out infinite;
}

.harbor-label {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: 1rem 1rem 1rem .25rem;
  background: rgba(244, 232, 210, .9);
  color: var(--espresso-umber);
  font-family: var(--round);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22);
  transform: rotate(-2deg);
}

.opening-copy { position: absolute; left: 9vw; top: 26vh; }
.label-high { position: absolute; top: 18vh; left: 10vw; }
.label-foam { position: absolute; left: 12vw; top: 19vh; }
.final-label { position: absolute; left: 10vw; top: 18vh; }

h2 {
  position: relative;
  max-width: 11ch;
  margin: 13vh 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .84;
  letter-spacing: -.06em;
  color: var(--foam-milk);
  text-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.sensory-note {
  position: relative;
  max-width: 31rem;
  margin: 1.4rem 0 0 .3rem;
  color: rgba(244, 232, 210, .78);
  font-family: var(--round);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.65;
}

.kr { font-family: var(--kr); }

.steam-mist {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 40vh;
  fill: none;
  stroke: rgba(244, 232, 210, .7);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 16 22;
  animation: steamDrift 11s linear infinite;
}

.mist-one { top: 12vh; bottom: auto; opacity: .65; }
.kettle-line { right: 2vw; left: auto; top: 8vh; width: 68vw; height: 62vh; stroke: rgba(244, 232, 210, .62); }
.pour-stream { stroke: var(--crema-gold); stroke-width: 5; stroke-dasharray: 24 12; }

.crema-wave {
  position: absolute;
  left: -8vw;
  right: -8vw;
  height: 17vh;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(201, 130, 62, .42), rgba(244, 232, 210, .32), transparent);
  filter: blur(8px);
  animation: waveSlide 9s ease-in-out infinite;
}

.wave-a { bottom: 14vh; transform: rotate(-2deg); }
.wave-b { bottom: 2vh; animation-delay: -3s; opacity: .52; transform: rotate(2deg); }

.foam-bubble {
  position: absolute;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 232, 210, .58);
  background: radial-gradient(circle at 34% 28%, rgba(244, 232, 210, .75), rgba(167, 216, 207, .22) 45%, transparent 72%);
  color: var(--foam-milk);
  font-family: var(--kr);
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(244, 232, 210, .2), 0 0 28px rgba(167, 216, 207, .2);
  animation: bubbleFloat 8s ease-in-out infinite;
}

.b1 { right: 16vw; bottom: 31vh; }
.b2 { right: 9vw; bottom: 18vh; width: 2.1rem; height: 2.1rem; animation-delay: -2s; }
.b3 { right: 30vw; top: 27vh; width: 2.7rem; height: 2.7rem; animation-delay: -4s; }
.b4 { right: 18vw; top: 21vh; animation-delay: -1s; }
.b5 { right: 32vw; bottom: 18vh; width: 2.5rem; height: 2.5rem; animation-delay: -5s; }

.pier-divider {
  position: absolute;
  right: -10vw;
  top: 0;
  bottom: 0;
  width: 42vw;
  transform: skewX(-18deg);
  display: flex;
  gap: 1.1rem;
  opacity: .85;
}

.pier-divider span {
  flex: 1;
  background: linear-gradient(180deg, rgba(74, 38, 24, .95), rgba(201, 130, 62, .4), rgba(8, 43, 58, .78));
  border-left: 1px solid rgba(244, 232, 210, .12);
  box-shadow: inset 12px 0 18px rgba(0, 0, 0, .18);
}

.stone-cluster { position: absolute; left: 12vw; bottom: 11vh; width: 28vw; height: 18vh; }
.stone-cluster i {
  position: absolute;
  display: block;
  width: 7rem;
  height: 4.6rem;
  border-radius: 52% 48% 45% 55%;
  background: linear-gradient(145deg, #113947, var(--espresso-umber));
  box-shadow: inset -18px -12px 26px rgba(0, 0, 0, .26), 0 14px 32px rgba(0,0,0,.25);
}
.stone-cluster i:nth-child(1) { left: 0; bottom: 0; }
.stone-cluster i:nth-child(2) { left: 5rem; bottom: 2.5rem; width: 5rem; height: 3.7rem; }
.stone-cluster i:nth-child(3) { left: 10rem; bottom: .5rem; width: 8rem; }
.stone-cluster i:nth-child(4) { left: 16rem; bottom: 4rem; width: 4.7rem; height: 4.2rem; }
.stone-cluster i:nth-child(5) { left: 20rem; bottom: 1.1rem; width: 7.4rem; }
.stone-cluster i:nth-child(6) { left: 27rem; bottom: 3rem; width: 5.7rem; }

.coffee-tidepool {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--crema-gold), var(--espresso-umber) 42%, #160905 72%);
  box-shadow: inset 0 0 42px rgba(244, 232, 210, .18), 0 24px 70px rgba(0,0,0,.35);
}
.coffee-tidepool span,
.coffee-tidepool em {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 2px solid rgba(244, 232, 210, .34);
  animation: ringPulse 4.8s ease-in-out infinite;
}
.coffee-tidepool em { inset: 29%; animation-delay: -1.7s; }
.tidepool-one { right: 16vw; bottom: 12vh; width: 22vw; aspect-ratio: 1.45 / 1; transform: rotate(-8deg); }
.tidepool-two { right: 11vw; bottom: 12vh; width: 34vw; aspect-ratio: 1.55 / 1; transform: rotate(4deg); }

.rope-knot {
  position: absolute;
  right: 41vw;
  bottom: 22vh;
  width: 6rem;
  height: 4rem;
  border: .55rem solid var(--shell-blush);
  border-radius: 50%;
  opacity: .6;
}
.rope-knot::before, .rope-knot::after { content: ""; position: absolute; top: 50%; width: 5rem; height: .55rem; background: var(--shell-blush); transform: translateY(-50%); }
.rope-knot::before { right: 95%; } .rope-knot::after { left: 95%; }

.dripper { position: absolute; right: 26vw; top: 20vh; width: 12rem; height: 14rem; filter: drop-shadow(0 28px 42px rgba(0,0,0,.25)); }
.dripper-top { height: 2rem; border-radius: 50%; background: var(--foam-milk); }
.dripper-body { margin: -1rem auto 0; width: 9rem; height: 8rem; clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%); background: linear-gradient(135deg, var(--foam-milk), rgba(167, 216, 207, .7)); }
.drip { position: absolute; left: 50%; top: 9rem; width: .85rem; height: 5rem; border-radius: 999px; background: var(--crema-gold); animation: dripFall 1.7s ease-in-out infinite; }

.sea-glass-glint { position: absolute; width: 5rem; height: .16rem; background: var(--sea-glass-mint); box-shadow: 0 0 20px var(--sea-glass-mint); transform: rotate(-28deg); animation: glint 5s ease-in-out infinite; }
.g1 { right: 46vw; top: 32vh; } .g2 { right: 7vw; top: 64vh; animation-delay: -2s; } .g3 { left: 72vw; top: 25vh; }

.foam-field { position: absolute; inset: 0; }
.foam-field .big { left: 55vw; top: 22vh; width: 10rem; height: 10rem; font-size: 3rem; }
.foam-field .mid { left: 72vw; top: 49vh; width: 6rem; height: 6rem; font-size: 2rem; animation-delay: -2s; }
.foam-field .small { left: 43vw; bottom: 18vh; width: 4.5rem; height: 4.5rem; animation-delay: -4s; }
.foam-field .pearl { left: 82vw; top: 20vh; width: 2.4rem; height: 2.4rem; }
.foam-field .two { left: 61vw; bottom: 14vh; width: 3rem; height: 3rem; animation-delay: -5s; }

.ceramic-moon {
  position: absolute;
  right: 12vw;
  bottom: 11vh;
  width: 27vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff8e8, var(--foam-milk) 42%, rgba(167, 216, 207, .45) 72%);
  box-shadow: inset -26px -24px 40px rgba(8,43,58,.12), 0 28px 80px rgba(8,43,58,.28);
}
.ceramic-moon::after { content:""; position:absolute; inset: 18%; border-radius:50%; border: 2px solid rgba(14,111,121,.18); }

.crema-script { position: absolute; left: 4vw; right: 4vw; bottom: 5vh; width: 92vw; height: 25vh; fill: none; stroke: rgba(74, 38, 24, .48); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 20 24; animation: steamDrift 12s linear infinite reverse; }

.sun-cup {
  position: absolute;
  right: 7vw;
  bottom: -8vh;
  width: min(58vw, 48rem);
  aspect-ratio: 1.18 / 1;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(145deg, rgba(244,232,210,.96), rgba(231,169,141,.78));
  box-shadow: inset -30px -22px 60px rgba(74,38,24,.18), 0 30px 100px rgba(74,38,24,.35);
  padding: 8%;
}
.cup-surface { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 45% 30%, var(--crema-gold), var(--espresso-umber) 65%, #1a0803); }
.sun-reflection { position: absolute; left: 36%; top: 13%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--foam-milk), var(--shell-blush) 62%, transparent 64%); box-shadow: 0 0 64px var(--shell-blush); animation: sunBob 5s ease-in-out infinite; }
.ripple { position: absolute; inset: 25%; border: 2px solid rgba(244,232,210,.36); border-radius: 50%; animation: ringPulse 5.4s ease-in-out infinite; }
.r-b { inset: 14%; animation-delay: -1.8s; } .r-c { inset: 36%; animation-delay: -3.2s; }
.sunrise-line { top: 42%; background: linear-gradient(90deg, transparent, var(--foam-milk), var(--shell-blush), transparent); box-shadow: 0 0 50px var(--shell-blush); }
.panel-sunrise h2 { color: var(--foam-milk); max-width: 8ch; font-family: var(--kr); letter-spacing: -.08em; }

.buoy { position: absolute; width: 2.2rem; height: 5rem; border-radius: 999px; background: linear-gradient(180deg, var(--shell-blush) 0 35%, var(--foam-milk) 35% 58%, var(--tide-teal) 58%); box-shadow: 0 16px 36px rgba(0,0,0,.25); animation: bubbleFloat 5s ease-in-out infinite; }
.buoy-one { left: 43vw; bottom: 30vh; } .buoy-two { left: 52vw; top: 25vh; animation-delay: -2s; transform: scale(.75); }

.progress-tide { position: fixed; left: 1.35rem; right: 1.35rem; bottom: 1.15rem; z-index: 30; height: .28rem; border-radius: 99px; background: rgba(244,232,210,.18); overflow: hidden; }
.progress-tide span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sea-glass-mint), var(--crema-gold), var(--shell-blush)); box-shadow: 0 0 20px rgba(231,169,141,.45); transition: width .18s linear; }

.shore-readout { position: fixed; right: 1.35rem; bottom: 1.75rem; z-index: 31; color: rgba(244,232,210,.7); font-family: var(--round); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 0 18px rgba(8,43,58,.7); }

.cursor-ripple { position: fixed; left: 0; top: 0; width: 7rem; height: 7rem; margin: -3.5rem 0 0 -3.5rem; border: 1px solid rgba(167,216,207,.36); border-radius: 50%; pointer-events: none; z-index: 40; opacity: 0; transform: translate3d(-30vw,-30vh,0) scale(.5); transition: opacity .3s ease, border-color .3s ease; box-shadow: 0 0 26px rgba(167,216,207,.16); }
.cursor-ripple.active { opacity: 1; animation: cursorPulse .9s ease-out; }

@keyframes tideBreath { 0%,100% { transform: translateX(-1.5vw) translateY(0); } 50% { transform: translateX(1.5vw) translateY(-2vh); } }
@keyframes reflection { 0%,100% { filter: blur(2px); transform: scaleY(-.52) skewX(-8deg) translateX(0); } 50% { filter: blur(3.5px); transform: scaleY(-.48) skewX(-11deg) translateX(1.2vw); } }
@keyframes steamDrift { to { stroke-dashoffset: -260; transform: translateX(3vw); } }
@keyframes waveSlide { 0%,100% { transform: translateX(-3vw) rotate(-2deg); } 50% { transform: translateX(4vw) rotate(1deg); } }
@keyframes bubbleFloat { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-2.2vh) translateX(1vw); } }
@keyframes ringPulse { 0% { transform: scale(.84); opacity: .75; } 70% { transform: scale(1.18); opacity: .08; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes dripFall { 0%,100% { transform: translate(-50%, -1rem) scaleY(.35); opacity: .5; } 50% { transform: translate(-50%, 1.4rem) scaleY(1); opacity: 1; } }
@keyframes glint { 0%,78%,100% { opacity: .15; transform: rotate(-28deg) scaleX(.7); } 86% { opacity: 1; transform: rotate(-28deg) scaleX(1.4); } }
@keyframes sunBob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(.9rem) scale(1.08); } }
@keyframes cursorPulse { from { transform: translate3d(var(--x), var(--y), 0) scale(.35); } to { transform: translate3d(var(--x), var(--y), 0) scale(1.3); } }

@media (max-width: 760px) {
  .tide-nav { display: none; }
  .shore-readout { left: 1.35rem; right: auto; bottom: 1.85rem; }
  .tide-panel { padding-inline: 1.35rem; }
  .water-wordmark, .wordmark-reflection { font-size: 22vw; left: 1.35rem; }
  h2 { font-size: 17vw; margin-top: 19vh; }
  .sensory-note { max-width: 82vw; }
  .pier-divider { width: 60vw; opacity: .45; }
  .tidepool-one, .tidepool-two, .ceramic-moon, .sun-cup { width: 70vw; right: -10vw; }
  .dripper { right: 8vw; top: 47vh; transform: scale(.72); }
}
