/* 05 and 06, round of Nov 17 (Sam: the combos background felt flat and super linear, island hopping deserves
   its own scene, no circle into the booking card, and no secondary footer to scroll to at the end). */

/* ---------- the sea chart behind the combos ----------
   A pale lagoon wash with a chart grid, depth rings round little drawn islands and a compass rose.
   It sits under the slide and moves at 0.6 of its speed (js: CHART_SPEED), so the cards travel over it: depth. */
.chart {
  position: absolute; left: 0; top: 0; height: 100%; z-index: 0; visibility: hidden; pointer-events: none; will-change: transform;
  background:
    repeating-linear-gradient(90deg, rgba(15, 59, 64, .05) 0 1px, transparent 1px 180px),
    repeating-linear-gradient(0deg, rgba(15, 59, 64, .05) 0 1px, transparent 1px 180px),
    radial-gradient(ellipse 34% 44% at 22% 28%, rgba(112, 212, 220, .42), rgba(112, 212, 220, 0) 72%) 0 0 / 1900px 100% repeat-x,
    radial-gradient(ellipse 30% 36% at 72% 74%, rgba(72, 192, 204, .32), rgba(72, 192, 204, 0) 72%) 0 0 / 1900px 100% repeat-x,
    radial-gradient(ellipse 26% 30% at 48% 88%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 72%) 0 0 / 1900px 100% repeat-x,
    radial-gradient(ellipse 22% 26% at 88% 16%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%) 0 0 / 1900px 100% repeat-x,
    linear-gradient(180deg, #E6F6F3 0%, #D6F0EE 55%, #C8EBEA 100%);
}
.chart.is-on { visibility: visible; }
.chart__isle {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%); opacity: .55;
  background:
    radial-gradient(closest-side, #F4E5C6 0 30%, rgba(244, 229, 198, 0) 33%),
    radial-gradient(closest-side, rgba(255, 255, 255, .55) 0 46%, rgba(255, 255, 255, 0) 52%),
    repeating-radial-gradient(closest-side, rgba(15, 59, 64, 0) 0 calc(10% - 1px), rgba(15, 59, 64, .13) calc(10% - 1px) 10%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.chart__rose { position: absolute; left: 92vw; top: 9vh; width: 150px; height: 150px; opacity: .8; }
.chart__rose .cr { fill: none; stroke: rgba(15, 59, 64, .22); stroke-width: 1; }
.chart__rose .cn { fill: rgba(255, 93, 93, .75); }
.chart__rose .cs { fill: rgba(15, 59, 64, .22); }
.chart__rose text { font-family: var(--mono); font-size: 10px; fill: rgba(15, 59, 64, .6); letter-spacing: .1em; }

/* ---------- island hopping: its own scene ---------- */
.spread--hop { width: 100vw; }
.spread--hop .spread__route { display: none; }
.hop__map { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.hi-ring { fill: none; stroke: rgba(15, 59, 64, .18); stroke-width: 1.2; stroke-dasharray: 3 6; }
.hi-shoal { fill: rgba(150, 228, 226, .75); }
.hi-surf { fill: #fff; opacity: .9; }
.hi-sand { stroke: rgba(15, 59, 64, .18); stroke-width: 1; }
.hi-green { opacity: .95; }
.hi-palm .t { fill: none; stroke: #8a6a45; stroke-width: 3.2; stroke-linecap: round; }
.hi-palm .f { fill: none; stroke: #2f8f63; stroke-width: 4.2; stroke-linecap: round; }
.hi-name { display: none; }
/* footprints: each sole fades in as the scroll walks it; an arrow when the leg is done */
.hs { fill: var(--ink); opacity: 0; transition: opacity .28s ease; }
.hs.on { opacity: .62; }
.ha { fill: var(--accent); stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s ease; }
.ha.on { opacity: 1; }
.spread--hop .scard { z-index: 3; }
.spread--hop .scard__leg { z-index: 4; font-size: 17px; color: var(--accent); }

/* ---------- 06 the booking card slides up over the film (no cream screen, no circle) ---------- */
.book { background: none; clip-path: none; padding-bottom: 96px; }
.book__card { box-shadow: 0 40px 90px rgba(30, 24, 16, .32), 0 6px 16px rgba(30, 24, 16, .18); will-change: transform; }
/* the old footer, folded into the last screen: white on the golden film */
.book__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; color: #fff; text-shadow: 0 1px 12px rgba(50, 26, 8, .5); pointer-events: none;
}
.book__foot-line { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.book__foot-line em { color: #FFD48A; }
.book__foot-mail { pointer-events: auto; color: #fff; text-decoration: none; font-size: 11.5px; letter-spacing: .14em; opacity: .92; transition: color .2s, opacity .2s; }
.book__foot-mail:hover, .book__foot-mail:focus-visible { color: #FFD48A; opacity: 1; }
.book__foot-follow { margin: 3px 0 0; display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.book__foot-follow span { margin-right: 5px; opacity: .9; }
.book__foot-follow a {
  pointer-events: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(50, 26, 8, .18); transition: background .22s, color .22s, transform .22s;
}
.book__foot-follow a:hover, .book__foot-follow a:focus-visible { background: #fff; color: #0F3B40; transform: translateY(-2px); }
.book__foot-follow svg { width: 15px; height: 15px; filter: none; }

@media (max-width: 760px) {
  .chart__rose { left: 70vw; top: 12vh; width: 96px; height: 96px; }
  .spread--hop { width: 100vw; }
  .spread--hop .scard__leg { font-size: 13px; }
  .book { padding-bottom: 104px; }
  .book__foot { gap: 5px; bottom: 12px; }
  .book__foot-line { font-size: 15px; }
  .book__foot-mail { font-size: 10.5px; }
  .book__foot-follow a { width: 28px; height: 28px; }
}
