:root {
  /* Interaction can be meditative: hovering over a stamp releases a faint ripple. Work Sans for concise explanatory copy and interface labels so the site remains calm and readable amid the watercolor atmosphere. Work Sans should stay small. */
  --deep-lagoon: #073B4C;
  --shell: #FFFDF6;
  --coral: #E58C7C;
  --sea-glass: #6ED6C7;
  --pearl: #F6F0DD;
  --indigo: #182A57;
  --mist-blue: #BFE9F3;
  --display: Limelight, 'Cooper Black', 'Bodoni 72 Smallcaps', Georgia, serif;
  --serif: 'Cormorant Garamond', Cormorant, Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space: 'Space Grotesk', 'Work Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--deep-lagoon);
  background: var(--shell);
  font-family: var(--sans);
  overflow-x: hidden;
}

.paper-grain,
.salt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.paper-grain {
  z-index: 70;
  opacity: .36;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 16% 11%, rgba(7, 59, 76, .08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 71% 43%, rgba(229, 140, 124, .08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 28% 79%, rgba(110, 214, 199, .1) 0 1px, transparent 1.7px),
    linear-gradient(110deg, rgba(255, 253, 246, .3), rgba(246, 240, 221, .18));
  background-size: 31px 29px, 43px 47px, 37px 41px, auto;
}

.salt-vignette {
  z-index: 69;
  background: radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(7, 59, 76, .12) 100%);
}

.voyage { position: relative; }

.lagoon-scene {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5.5rem);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 253, 246, .82), transparent 32%),
    linear-gradient(135deg, var(--shell) 0%, var(--mist-blue) 47%, var(--pearl) 100%);
}

.lagoon-scene::before,
.lagoon-scene::after {
  content: '';
  position: absolute;
  z-index: -2;
  border-radius: 49% 51% 42% 58% / 58% 43% 57% 42%;
  filter: blur(12px);
  transform: rotate(-11deg);
}

.lagoon-scene::before {
  width: 58vw;
  height: 48vh;
  left: -13vw;
  top: 8vh;
  background: rgba(110, 214, 199, .28);
}

.lagoon-scene::after {
  width: 52vw;
  height: 44vh;
  right: -17vw;
  bottom: -13vh;
  background: rgba(191, 233, 243, .58);
}

.watercolor-bloom {
  position: absolute;
  z-index: -1;
  border-radius: 47% 53% 61% 39% / 42% 58% 42% 58%;
  filter: blur(18px) saturate(1.04);
  opacity: .72;
  transform: scale(.96) rotate(-3deg);
  transition: opacity 900ms ease, transform 1200ms ease, filter 900ms ease;
}

.lagoon-scene.in-view .watercolor-bloom { opacity: 1; transform: scale(1.04) rotate(0); }
.bloom-origin { width: 82vw; height: 67vh; left: 14vw; top: 3vh; background: radial-gradient(circle at 28% 43%, rgba(255,253,246,.75), transparent 14%), radial-gradient(circle at 65% 38%, rgba(110,214,199,.42), transparent 26%), radial-gradient(circle at 52% 70%, rgba(24,42,87,.18), transparent 36%), rgba(191,233,243,.58); }
.bloom-ledger { width: 48vw; height: 82vh; right: 5vw; top: 9vh; background: radial-gradient(circle at 50% 16%, rgba(229,140,124,.24), transparent 16%), rgba(191,233,243,.62); }
.bloom-crossing { width: 88vw; height: 54vh; left: 4vw; bottom: 11vh; background: radial-gradient(circle at 25% 54%, rgba(110,214,199,.48), transparent 25%), radial-gradient(circle at 72% 33%, rgba(24,42,87,.2), transparent 26%), rgba(191,233,243,.48); }
.bloom-cove { width: 63vw; height: 63vh; right: -5vw; top: 0; background: radial-gradient(circle at 63% 50%, rgba(255,253,246,.86), transparent 21%), radial-gradient(circle at 35% 68%, rgba(110,214,199,.5), transparent 28%), rgba(191,233,243,.5); }
.bloom-receipt { width: 78vw; height: 72vh; left: 11vw; top: 13vh; background: radial-gradient(circle at 45% 48%, rgba(255,253,246,.8), transparent 18%), radial-gradient(circle at 62% 51%, rgba(229,140,124,.2), transparent 22%), rgba(191,233,243,.36); }

.vellum-slip {
  position: absolute;
  background: linear-gradient(135deg, rgba(246, 240, 221, .92), rgba(255, 253, 246, .76));
  border: 1px solid rgba(7, 59, 76, .16);
  box-shadow: 0 22px 60px rgba(7, 59, 76, .13), inset 0 0 0 1px rgba(255, 253, 246, .55);
  backdrop-filter: blur(10px);
  padding: clamp(1.35rem, 3vw, 2.6rem);
  clip-path: polygon(2% 0, 100% 1%, 98% 96%, 0 100%);
}

.vellum-slip::after {
  content: '';
  position: absolute;
  inset: .7rem;
  border: 1px dashed rgba(7, 59, 76, .13);
  pointer-events: none;
}

.wordmark-slip { left: 5vw; bottom: 8vh; width: min(660px, 72vw); }
h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: .82;
  letter-spacing: .045em;
  color: var(--deep-lagoon);
  text-shadow: 1px 1px 0 rgba(255, 253, 246, .8), 0 14px 40px rgba(7, 59, 76, .14);
}

h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  font-weight: 500;
  line-height: .96;
  color: var(--deep-lagoon);
}

.poem-line,
.vellum-slip p:not(.route-stamp):not(.chapter-number) {
  margin-bottom: 0;
  max-width: 38rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.42;
}

.route-stamp,
.tide-coordinate,
.destination-mark em,
.tide-table,
.postage-island,
.stamp-fragment,
.sealed-note span,
.key-tag,
.final-cancel,
.compass-seal small {
  font-family: var(--space);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 600;
}

.route-stamp { color: var(--coral); margin-bottom: .7rem; }
.chapter-number { position: absolute; right: 1rem; top: -.5rem; margin: 0; font-family: var(--display); font-size: clamp(4rem, 10vw, 9rem); color: rgba(110, 214, 199, .28); line-height: 1; }

.envoy-current { position: absolute; pointer-events: none; overflow: visible; }
.envoy-current path { fill: none; stroke: var(--sea-glass); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 18; filter: drop-shadow(0 0 11px rgba(110, 214, 199, .72)); opacity: .72; }
.origin-current { inset: 8vh 7vw auto auto; width: 72vw; height: 58vh; }
.crossing-current { left: 4vw; top: 16vh; width: 92vw; height: 68vh; }

.postal-seal,
.destination-mark,
.sealed-note,
.stamp-fragment,
.message-bottle {
  cursor: pointer;
  transition: transform 450ms ease, filter 450ms ease;
}

.postal-seal:hover,
.destination-mark:hover,
.sealed-note:hover,
.stamp-fragment:hover,
.message-bottle:hover { transform: scale(1.04) rotate(-2deg); filter: brightness(1.04); }

.compass-seal {
  position: absolute;
  right: 9vw;
  top: 12vh;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(7, 59, 76, .58);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,240,221,.88), rgba(191,233,243,.38));
  box-shadow: 0 0 0 11px rgba(246,240,221,.26), 0 18px 40px rgba(7,59,76,.16);
}

.compass-seal span { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); font-family: var(--display); color: var(--coral); }
.compass-seal small { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); color: rgba(7,59,76,.62); }
.compass-seal i, .compass-seal b { position: absolute; inset: 28px; border: 1px solid rgba(7, 59, 76, .4); transform: rotate(45deg); }
.compass-seal b { inset: 47px; background: var(--sea-glass); border: 0; border-radius: 50%; transform: none; }

.coastline { position: absolute; left: -5vw; top: 14vh; width: 23vw; height: 72vh; border-radius: 56% 44% 60% 40%; border-right: 2px solid rgba(7, 59, 76, .16); background: rgba(246, 240, 221, .28); }
.cove-coast { left: auto; right: -4vw; top: 8vh; transform: scaleX(-1); }
.buoy-cluster { position: absolute; right: 19vw; bottom: 16vh; display: flex; gap: 1rem; transform: rotate(-8deg); }
.buoy-cluster span { width: 34px; height: 42px; border-radius: 50% 50% 44% 44%; background: linear-gradient(var(--shell), var(--sea-glass)); box-shadow: 0 12px 24px rgba(7,59,76,.14); animation: buoy 5s ease-in-out infinite; }
.buoy-cluster span:nth-child(2) { animation-delay: -1.5s; background: linear-gradient(var(--mist-blue), var(--shell)); }
.buoy-cluster span:nth-child(3) { animation-delay: -3s; background: linear-gradient(var(--coral), var(--pearl)); }

.tide-nav { position: fixed; z-index: 60; right: 1.3rem; top: 50%; display: grid; gap: .65rem; transform: translateY(-50%); }
.tide-coordinate { display: grid; grid-template-columns: auto 0fr; align-items: center; gap: .55rem; color: var(--deep-lagoon); text-decoration: none; opacity: .45; transition: opacity 350ms ease, grid-template-columns 350ms ease; }
.tide-coordinate span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgba(7, 59, 76, .28); border-radius: 50%; background: rgba(255, 253, 246, .56); }
.tide-coordinate em { overflow: hidden; white-space: nowrap; font-style: normal; }
.tide-coordinate.active, .tide-coordinate:hover { opacity: 1; grid-template-columns: auto 1fr; }

.ledger-scene { background: linear-gradient(120deg, var(--pearl), var(--mist-blue) 58%, var(--shell)); }
.ledger-card { left: 14vw; top: 19vh; width: min(540px, 60vw); }
.tide-table { position: absolute; right: 5vw; top: 5vh; bottom: 5vh; width: min(210px, 24vw); display: flex; flex-direction: column; justify-content: space-around; padding: 2rem 1rem; color: rgba(7, 59, 76, .74); border-left: 1px dashed rgba(7, 59, 76, .25); background: linear-gradient(90deg, transparent, rgba(255, 253, 246, .32)); }
.shell-stamp { position: absolute; left: 8vw; bottom: 13vh; padding: 1.2rem 1.5rem; color: var(--shell); background: var(--coral); border: 2px dashed rgba(255,253,246,.72); border-radius: 48% 52% 44% 56%; transform: rotate(-9deg); }
.scallop-seal { position: absolute; right: 27vw; bottom: 18vh; width: 170px; height: 110px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; opacity: .56; }
.scallop-seal i { width: 31px; height: 92px; border-radius: 50% 50% 8px 8px; background: linear-gradient(var(--shell), rgba(229,140,124,.38)); transform-origin: bottom center; }
.scallop-seal i:nth-child(1) { transform: rotate(-34deg); }
.scallop-seal i:nth-child(2) { transform: rotate(-17deg); }
.scallop-seal i:nth-child(4) { transform: rotate(17deg); }
.scallop-seal i:nth-child(5) { transform: rotate(34deg); }

.crossing-scene { background: linear-gradient(155deg, var(--indigo), var(--deep-lagoon) 50%, var(--mist-blue)); color: var(--shell); }
.crossing-scene h2, .crossing-scene .vellum-slip { color: var(--deep-lagoon); }
.crossing-note { right: 8vw; top: 12vh; width: min(520px, 52vw); }
.message-bottle { position: absolute; left: 14vw; bottom: 18vh; width: 250px; height: 92px; transform: rotate(-18deg); }
.message-bottle:hover { transform: rotate(-18deg) scale(1.05); }
.bottle-glass { position: absolute; inset: 16px 0 10px 10px; border: 2px solid rgba(255, 253, 246, .72); border-radius: 45px 18px 18px 45px; background: linear-gradient(90deg, rgba(191, 233, 243, .24), rgba(110, 214, 199, .56)); box-shadow: inset 0 0 26px rgba(255, 253, 246, .34), 0 18px 50px rgba(0,0,0,.2); }
.bottle-glass::after { content: ''; position: absolute; right: -38px; top: 19px; width: 50px; height: 24px; border: inherit; border-left: 0; border-radius: 0 12px 12px 0; background: rgba(191, 233, 243, .35); }
.bottle-note { position: absolute; left: 72px; top: 35px; width: 88px; height: 26px; display: grid; place-items: center; font-family: var(--display); color: var(--deep-lagoon); background: var(--pearl); }
.kelp-ribbon { position: absolute; width: 42px; height: 340px; border-radius: 50%; opacity: .42; background: linear-gradient(var(--sea-glass), transparent); animation: kelp 7s ease-in-out infinite; }
.ribbon-one { left: 6vw; top: 9vh; transform: rotate(21deg); }
.ribbon-two { right: 24vw; bottom: -9vh; transform: rotate(-16deg); animation-delay: -2s; }
.key-tag { position: absolute; left: 42vw; bottom: 9vh; padding: .8rem 1rem .8rem 2.2rem; color: var(--deep-lagoon); background: linear-gradient(135deg, #F6F0DD, #E58C7C); border-radius: 999px 14px 14px 999px; box-shadow: 0 18px 42px rgba(0,0,0,.18); transform: rotate(11deg); }
.key-tag::before { content: ''; position: absolute; left: .7rem; top: 50%; width: .7rem; height: .7rem; border: 2px solid rgba(7,59,76,.42); border-radius: 50%; transform: translateY(-50%); }

.cove-scene { background: radial-gradient(circle at 78% 28%, var(--shell), transparent 25%), linear-gradient(135deg, var(--mist-blue), var(--pearl)); }
.destination-slip { left: 8vw; bottom: 10vh; width: min(570px, 58vw); }
.destination-mark { position: absolute; right: 14vw; top: 32vh; width: 220px; height: 220px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--shell) 0 17%, rgba(110,214,199,.46) 18% 36%, transparent 37%), repeating-radial-gradient(circle, rgba(7,59,76,.18) 0 1px, transparent 2px 17px); }
.destination-mark span { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 34px var(--coral); }
.destination-mark em { position: absolute; bottom: -1.4rem; color: var(--deep-lagoon); font-style: normal; }
.postage-island { position: absolute; padding: 1rem; color: rgba(7,59,76,.72); background: rgba(246,240,221,.68); border: 1px dashed rgba(7,59,76,.24); box-shadow: inset 0 0 0 5px rgba(255,253,246,.25); }
.island-a { right: 4vw; bottom: 12vh; transform: rotate(7deg); }
.island-b { left: 42vw; top: 13vh; transform: rotate(-12deg); }

.receipt-scene { background: linear-gradient(180deg, var(--indigo), var(--deep-lagoon)); color: var(--shell); }
.receipt-scene h2 { color: var(--shell); }
.receipt-slip { left: 50%; top: 50%; width: min(620px, 72vw); transform: translate(-50%, -50%); background: linear-gradient(135deg, rgba(7, 59, 76, .58), rgba(24, 42, 87, .72)); border-color: rgba(255,253,246,.2); color: var(--shell); }
.receipt-rose { position: absolute; left: 8vw; top: 13vh; width: 29vw; max-width: 320px; opacity: .28; stroke: var(--shell); fill: none; stroke-width: 2; }
.sealed-note { position: relative; margin-top: 2rem; width: 220px; height: 112px; display: grid; place-items: center; color: var(--deep-lagoon); background: var(--pearl); border: 1px solid rgba(255,253,246,.5); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.sealed-note::before, .sealed-note::after { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 50% 52%, 100% 0); border-top: 1px solid rgba(7,59,76,.2); }
.sealed-note::after { clip-path: polygon(0 100%, 50% 50%, 100% 100%); border-top: 0; border-bottom: 1px solid rgba(7,59,76,.2); }
.sealed-note i { position: absolute; width: 42px; height: 42px; border-radius: 50%; background: var(--coral); box-shadow: inset 0 0 0 4px rgba(255,253,246,.22); }
.sealed-note span { position: relative; z-index: 2; transform: translateY(-33px); }
.final-cancel { position: absolute; right: 6vw; bottom: 9vh; color: rgba(255,253,246,.58); border: 1px solid rgba(255,253,246,.2); border-radius: 50%; padding: 2.6rem 1.6rem; transform: rotate(-12deg); }

.envoy-orb { position: fixed; z-index: 55; left: 78vw; top: 18vh; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; background: var(--shell); box-shadow: 0 0 18px 8px rgba(110, 214, 199, .55), 0 0 0 1px rgba(7,59,76,.15); transition: left 900ms cubic-bezier(.22,.68,.24,1), top 900ms cubic-bezier(.22,.68,.24,1), transform 900ms ease; }
.fog-fade > *:not(.watercolor-bloom) { opacity: 0; filter: blur(14px); transform: translateY(22px) scale(.985); transition: opacity 1000ms ease, filter 1200ms ease, transform 1200ms ease; }
.fog-fade.in-view > *:not(.watercolor-bloom) { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.fog-fade.in-view .message-bottle { transform: rotate(-18deg); }
.fog-fade.in-view .shell-stamp { transform: rotate(-9deg); }
.fog-fade.in-view .island-a { transform: rotate(7deg); }
.fog-fade.in-view .island-b { transform: rotate(-12deg); }
.fog-fade.in-view .receipt-slip { transform: translate(-50%, -50%); }
.fog-fade.in-view .key-tag { transform: rotate(11deg); }

.ripple-ring { position: fixed; z-index: 80; width: 20px; height: 20px; margin: -10px 0 0 -10px; pointer-events: none; border: 1px solid var(--sea-glass); border-radius: 50%; animation: ripple 900ms ease-out forwards; }

@keyframes ripple { to { width: 150px; height: 150px; margin: -75px 0 0 -75px; opacity: 0; } }
@keyframes kelp { 0%, 100% { border-radius: 48% 52% 60% 40%; } 50% { border-radius: 60% 40% 44% 56%; transform: translateY(-12px) rotate(8deg); } }
@keyframes buoy { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 760px) {
  .lagoon-scene { padding: 1.25rem; }
  .wordmark-slip, .ledger-card, .crossing-note, .destination-slip, .receipt-slip { width: calc(100vw - 2.5rem); left: 1.25rem; right: auto; }
  .wordmark-slip { bottom: 6vh; }
  .ledger-card, .crossing-note { top: 18vh; }
  .destination-slip { bottom: 8vh; }
  .receipt-slip { left: 50%; }
  .tide-nav { right: .5rem; }
  .tide-coordinate { grid-template-columns: auto; }
  .tide-coordinate em { display: none; }
  .tide-table { right: 1rem; width: 130px; opacity: .45; }
  .compass-seal { width: 92px; height: 92px; right: 8vw; top: 9vh; }
  .message-bottle { left: 6vw; bottom: 10vh; transform: rotate(-18deg) scale(.76); }
  .destination-mark { right: 4vw; top: 14vh; transform: scale(.72); }
  .scallop-seal, .buoy-cluster, .final-cancel { display: none; }
  h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
}
