/* Aqua Terra Expeditions, "The Descent" motion mockup.
   Brand blue #03529E anchors; the page background is driven by scroll depth in JS. */

:root {
  --brand: #03529E;
  --lagoon: #5CCBDF;
  --sunlit: #9FE6EF;
  --deep: #052449;
  --abyss: #02132B;
  --ink: #06203F;
  --foam: #F3F9FB;
  --sun: #FFE9B0;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --channel: 0px;           /* left space reserved for the depth gauge on desktop */
  --measure: 60ch;
  --ease-water: cubic-bezier(.22, .8, .2, 1);
}

@media (min-width: 1100px) {
  :root { --channel: 180px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--brand);
  color: var(--foam);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: calc(var(--gutter) + var(--channel));
  padding-right: var(--gutter);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 18ch;
}

.eyebrow {
  font-variant-caps: all-small-caps;
  letter-spacing: .08em;
  font-size: 1rem;
  font-weight: 500;
  opacity: .82;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .7s var(--ease-water), background-color .5s, color .5s;
}
.btn--foam { background: var(--foam); color: var(--ink); }
.btn--foam:hover { transform: translateY(-2px); background: #fff; }
.btn--big { min-height: 56px; padding: 0 2.2rem; font-size: 1.0625rem; }
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500;
  border-bottom: 1px solid currentColor; line-height: 1;
  padding-bottom: 2px; margin-bottom: 2px;
  opacity: .9;
}

/* ---------- fixed layers ---------- */

.sea {
  position: fixed; inset: 0; z-index: 0;
  background: var(--brand);
  transition: background-color .25s linear;
  pointer-events: none;
}

.caustics {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}
.caustics--over { z-index: 3; }

.mock[hidden] { display: none; }
.mock {
  position: fixed; top: 10px; left: 10px; z-index: 20;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(6, 32, 63, .72); color: var(--foam);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center;
  max-width: calc(100vw - 100px);
}
.mock__var { font-weight: 500; opacity: .85; display: inline-flex; gap: 6px; align-items: center; }
.mock__var a {
  color: inherit; text-decoration: none; padding: 2px 7px; border-radius: 4px;
  border: 1px solid rgba(243, 249, 251, .35); font-weight: 600;
}
.mock__var a.is-active { background: var(--foam); color: var(--ink); border-color: var(--foam); }
.mock__var a { min-width: 24px; justify-content: center; display: inline-flex; }
@media (max-width: 899px) {
  .mock { font-size: .62rem; padding: 5px 8px; gap: 2px 8px; max-width: calc(100vw - 90px); }
  .mock__var a { padding: 2px 6px; }
}

/* mobile progress bar + depth readout */
.mprog {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 19;
  background: rgba(255,255,255,.14);
  pointer-events: none;
}
.mprog i {
  display: block; height: 100%; width: 100%;
  background: var(--foam);
  transform-origin: left center; transform: scaleX(0);
}
.mdepth {
  position: fixed; top: 10px; right: 10px; z-index: 19;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(6, 32, 63, .55); color: var(--foam);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  display: flex; gap: 3px; align-items: baseline;
}
.mdepth b { font-weight: 600; min-width: 1.2em; text-align: right; }

/* desktop depth gauge */
.gauge { display: none; }
@media (min-width: 1100px) {
  .mprog, .mdepth { display: none; }
  .gauge {
    display: block;
    position: fixed; left: 44px; top: 50%; z-index: 10;
    height: 62vh; transform: translateY(-50%);
    color: var(--foam);
    font-size: .78rem;
    transition: color .5s;
  }
  body.is-shallow .gauge { color: var(--ink); }
  .gauge__rail {
    position: relative; height: 100%; width: 1px;
    background: currentColor; opacity: 1;
  }
  .gauge__rail::before {
    /* soften the rail without touching text */
    content: ""; position: absolute; inset: 0; background: inherit; opacity: 0;
  }
  .gauge__tick {
    position: absolute; left: 0; top: calc(var(--p) * 100%);
    width: 8px; height: 1px; background: currentColor; opacity: .55;
    transform: translateY(-.5px);
  }
  .gauge__tick i { display: none; }
  .gauge__tick:first-child, .gauge__tick:nth-child(7) { width: 12px; opacity: .9; }
  .gauge__sec {
    position: absolute; left: 16px; top: calc(var(--p) * 100%);
    transform: translateY(-50%);
    text-decoration: none; white-space: nowrap;
    font-weight: 500; letter-spacing: .01em;
    text-shadow: 0 0 2px rgba(2, 19, 43, .6), 0 1px 10px rgba(2, 19, 43, .55);
    opacity: 0; visibility: hidden;
    padding: 8px 0; line-height: 1;
    pointer-events: none;
    transition: opacity .7s var(--ease-water), visibility 0s linear .7s;
  }
  /* labels stay hidden over the hero photo; they fade in once the surface has receded */
  body.gauge-labels .gauge__sec { opacity: .62; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  body.gauge-labels .gauge__sec:hover, body.gauge-labels .gauge__sec.is-on { opacity: 1; }
  body.gauge-quiet .gauge__sec { opacity: 0 !important; visibility: hidden; pointer-events: none; }
  body.gauge-quiet .gauge { color: var(--foam); }
  .gauge__marker {
    position: absolute; left: 50%; top: 0;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 4px rgba(255, 233, 176, .22);
    transform: translate(-50%, -50%);
    will-change: top;
  }
  .gauge__marker b, .gauge__marker span {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: .95rem; font-weight: 600; line-height: 1;
    color: inherit;
    text-shadow: 0 0 2px rgba(2, 19, 43, .6), 0 1px 10px rgba(2, 19, 43, .55);
  }
  .gauge__rail { box-shadow: 0 0 6px rgba(2, 19, 43, .45); }
  body.is-shallow .gauge__sec, body.is-shallow .gauge__marker b { text-shadow: 0 0 2px rgba(243, 249, 251, .7), 0 1px 10px rgba(243, 249, 251, .6); }
  body.is-shallow .gauge__rail { box-shadow: 0 0 6px rgba(243, 249, 251, .5); }
  .gauge__marker b { right: 22px; font-variant-numeric: tabular-nums; }
  .gauge__marker span { display: none; }
}

/* the whale: Rob's real footage as a scrubbed frame sequence on a canvas, fixed between the sea colour and the page content,
   shown only across the log-to-dates stretch and feathered into the page on every edge */
.swim {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  display: none;
}
.swim.is-on { display: block; }
.swim__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* feather every edge of the viewport; the frame itself is always drawn larger than the viewport plus its drift */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 22vw, #000 78vw, transparent 100vw),
    linear-gradient(to bottom, transparent 0, #000 24vh, #000 76vh, transparent 100vh);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 22vw, #000 78vw, transparent 100vw),
    linear-gradient(to bottom, transparent 0, #000 24vh, #000 76vh, transparent 100vh);
  mask-composite: intersect;
}
@media (max-width: 899px) {
  .swim__canvas {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 14vw, #000 86vw, transparent 100vw),
      linear-gradient(to bottom, transparent 0, #000 22vh, #000 78vh, transparent 100vh);
    mask-image:
      linear-gradient(to right, transparent 0, #000 14vw, #000 86vw, transparent 100vw),
      linear-gradient(to bottom, transparent 0, #000 22vh, #000 78vh, transparent 100vh);
  }
}

main { position: relative; z-index: 1; }
section { position: relative; }

/* ---------- hero (surface) ---------- */

html.js-motion .hero { height: 175vh; height: 175dvh; }
.hero { height: auto; }
html.js-motion .hero__stage { position: sticky; }
.hero__stage {
  position: relative; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__media {
  position: absolute; inset: 0;
  clip-path: inset(0vh 0vw 0vh 0vw round 0px);
  overflow: hidden;
  background: var(--deep);
}
.hero__img {
  position: absolute; inset: -4%;
  width: 108%; height: 108%; max-width: none;
  object-fit: cover; object-position: 58% 40%;
  animation: drift 26s var(--ease-water) infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, -1%, 0) scale(1.06); }
}
.hero__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 30% 0%, rgba(255, 240, 200, .35), transparent 70%),
    linear-gradient(to bottom, rgba(159, 230, 239, .22), transparent 42%);
  mix-blend-mode: screen;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 19, 43, .72) 0%, rgba(2, 19, 43, .25) 38%, transparent 65%);
}
.bubbles { position: absolute; inset: 0; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -4vh;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(255,255,255,.05) 60%);
  animation: rise linear infinite;
  opacity: 0;
}
.bubbles i:nth-child(1)  { left: 12%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 0s; }
.bubbles i:nth-child(2)  { left: 22%; width: 9px; height: 9px; animation-duration: 21s; animation-delay: 3s; }
.bubbles i:nth-child(3)  { left: 31%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 7s; }
.bubbles i:nth-child(4)  { left: 44%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: 1s; }
.bubbles i:nth-child(5)  { left: 53%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 9s; }
.bubbles i:nth-child(6)  { left: 61%; width: 11px; height: 11px; animation-duration: 24s; animation-delay: 5s; }
.bubbles i:nth-child(7)  { left: 70%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 11s; }
.bubbles i:nth-child(8)  { left: 78%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 2s; }
.bubbles i:nth-child(9)  { left: 86%; width: 8px; height: 8px; animation-duration: 22s; animation-delay: 13s; }
.bubbles i:nth-child(10) { left: 93%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 6s; }
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translate3d(12px, -55vh, 0); }
  92%  { opacity: .6; }
  100% { transform: translate3d(-6px, -108vh, 0); opacity: 0; }
}

.hero__top {
  position: absolute; top: 0; left: 0; right: 0;
  padding-top: clamp(40px, 6vh, 64px);
  display: flex; justify-content: center;
}
.hero__top img { width: clamp(150px, 16vw, 230px); height: auto; filter: drop-shadow(0 2px 14px rgba(2,19,43,.35)); }

.hero__copy {
  position: relative;
  padding: 0 var(--gutter) clamp(84px, 12vh, 128px) calc(var(--gutter) + var(--channel));
  max-width: 1360px; width: 100%; margin-inline: auto;
}
.hero__copy .eyebrow { margin-bottom: .9rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 9.2vw, 8.6rem);
  line-height: .94;
  letter-spacing: -.015em;
  text-shadow: 0 2px 30px rgba(2, 19, 43, .35);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title .line:nth-child(3) { font-style: italic; }
.hero__sub {
  margin-top: 1.4rem; max-width: 36ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.5; opacity: .92;
}
.hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }

.hero__hint {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .08em; font-variant-caps: all-small-caps; opacity: .75;
}
.hero__hint i { display: block; width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: hint 2.8s var(--ease-water) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hero__hint { display: none; } }

/* ---------- 4 m: the shape of it ---------- */
/* The split-waterline photo full-bleed, with a frosted navy panel for the numbers and copy. */

.shape {
  color: var(--foam);
  padding: clamp(96px, 14vh, 160px) 0 clamp(96px, 14vh, 150px);
  overflow: hidden;
}
.shape__inner { position: relative; z-index: 1; }

/* full-bleed photo */
.shape__bg { position: absolute; inset: -12% 0; z-index: 0; pointer-events: none; }
.shape__bgmove { position: absolute; inset: 0; overflow: hidden; }
.shape__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 42%;
}
.shape__fade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--sea-now, #5CCBDF) 0%, rgba(92, 203, 223, 0) 16%, rgba(92, 203, 223, 0) 84%, var(--sea-now, #5CCBDF) 100%);
}


/* the panel */
.shape__panel {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 20px;
}
.shape__panel {
  background: rgba(5, 36, 73, .72);
  border: 1px solid rgba(243, 249, 251, .22);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 30px 80px -30px rgba(2, 19, 43, .6);
}

.shape__panel .eyebrow { opacity: 1; color: rgba(243, 249, 251, .92); }
.shape__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
@media (min-width: 900px) {
  .shape__grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: end; }
}
.nums {
  list-style: none; margin: 0; padding: 1.4rem 0 0; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem;
}
.nums::before {
  /* the one gold detail: the gauge's gold as a short rule above the numbers */
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--sun);
}
.nums li { display: flex; flex-direction: column; }
.num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: .82;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff;
}
.nums span { margin-top: .8rem; font-size: 1.05rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .06em; color: rgba(243, 249, 251, .92); }
.shape__copy { max-width: var(--measure); }
.shape__copy p + p { margin-top: 1rem; }
.lede { font-family: var(--font-display); font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.3; color: #fff; }
.shape__season { padding-top: 1.2rem; margin-top: 1.4rem !important; border-top: 1px solid rgba(243, 249, 251, .28); font-size: .95rem; color: rgba(243, 249, 251, .94); }

/* ---------- 6 m: two islands, layered parallax ---------- */

.islands {
  position: relative; height: 100vh; height: 100dvh;
  color: var(--ink);
}
html.js-motion .islands { height: 170vh; height: 170dvh; }
body.layers-off .islands { display: none; }
/* the stage pins for the first 70vh so the title has room to sink behind the land before anything scrolls away */
.islands__stage { position: relative; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
html.js-motion .islands__stage { position: sticky; }
.islands__layers { position: absolute; inset: 0; }
.islands__layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
/* the two photo layers share one geometry: a box 20% taller than the stage, so the sky can slide down without exposing its top edge */
img.islands__layer { top: -6%; height: 106%; object-fit: cover; object-position: 50% 26%; max-width: none; }
.islands__layer--title {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 9vh; padding-left: 14vw; text-align: center; pointer-events: none;
}
.islands__layer--title .eyebrow { margin-bottom: 0; opacity: .8; position: relative; z-index: 1; }
.islands__layer--title h2 {
  font-size: clamp(6rem, 14.5vw, 17rem); line-height: .85; letter-spacing: -.04em; max-width: none;
  margin-top: -.06em;
}
.islands__caption {
  position: absolute; z-index: 2;
  left: calc(var(--gutter) + var(--channel)); right: var(--gutter); bottom: 9vh;
  max-width: 40ch; color: var(--foam); font-size: 1.1rem; font-weight: 500; line-height: 1.5;
  padding: .9rem 1.1rem; border-radius: 10px;
  background: rgba(2, 19, 43, .38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(2, 19, 43, .5);
}
.islands__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--sea-now, #1E86C4));
}
@media (max-width: 899px) {
  img.islands__layer { object-position: 50% 22%; }
  .islands__layer--title { padding-top: 12.5vh; padding-left: 0; }
  .islands__layer--title h2 { font-size: clamp(4.2rem, 22.5vw, 6.2rem); letter-spacing: -.045em; }
  .islands__caption { bottom: 14vh; font-size: .95rem; }
}

/* ---------- 9 m: the week ---------- */

.log { padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 8vh, 100px); }
.log__head { margin-bottom: 2.5rem; }
.log__track {
  position: relative;
  display: flex; flex-direction: column; gap: 2.4rem;
  padding-left: calc(var(--gutter) + var(--channel) + 28px);
  padding-right: var(--gutter);
}
.log__route { display: none; }
.log__rail {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) + var(--channel));
  width: 1px; background: rgba(243, 249, 251, .6);
  transform-origin: top; transform: scaleY(1);
}
.log__day { position: relative; max-width: 54ch; }
.log__day::before {
  content: ""; position: absolute; left: -33px; top: .55rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--foam);
}
.log__num {
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; opacity: .85;
  font-variant-numeric: tabular-nums;
}
.log__day h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02;
  margin: .25rem 0 .8rem;
}
.log__day--land h3 { font-style: italic; }
.log__photo {
  margin: 0 0 1.1rem; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10;
  max-width: 420px; background: rgba(2, 19, 43, .3);
  box-shadow: 0 18px 40px -22px rgba(2, 19, 43, .6);
}
.log__photo img { width: 100%; height: 100%; object-fit: cover; }
.log__day p + p { margin-top: .8rem; }
.log__note { font-size: .88rem; opacity: .78; max-width: 48ch; }

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  /* the pinned track never renders behind the gauge column */
  html.js-motion .log {
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 196px, #000 244px);
    mask-image: linear-gradient(to right, transparent 0, transparent 196px, #000 244px);
  }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js-motion .log {
    height: 100vh; height: 100dvh;
    padding: 0;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
  }
  html.js-motion .log__head { margin-bottom: 0; padding-top: 4vh; }
  html.js-motion .log__rail { display: none; }
  html.js-motion .log__route {
    display: block;
    position: absolute; left: 0; top: 0; height: 220px;
    overflow: visible;
    pointer-events: none;
  }
  html.js-motion .log__route .log__path {
    fill: none; stroke: var(--foam); stroke-width: 1.5; stroke-linecap: round;
    vector-effect: non-scaling-stroke; opacity: .9;
  }
  html.js-motion .log__route .log__island {
    fill: rgba(243, 249, 251, .14); stroke: rgba(243, 249, 251, .45); stroke-width: 1;
    vector-effect: non-scaling-stroke;
  }
  html.js-motion .log__track {
    flex-direction: row; gap: 0;
    align-items: flex-start;
    padding: 220px 24vw 0 calc(var(--gutter) + var(--channel));
    margin-top: 2vh;
    will-change: transform;
    width: max-content;
  }
  html.js-motion .log__day {
    flex: 0 0 auto;
    width: clamp(380px, 32vw, 520px);
    padding-right: clamp(48px, 5vw, 96px);
    max-width: none;
  }
  html.js-motion .log__day::before {
    left: 0; top: calc(var(--dot-y, -70px) - 4px);
    width: 9px; height: 9px;
    box-shadow: 0 0 0 4px rgba(3, 82, 158, .35);
  }
  html.js-motion .log__day p:not(.log__num) { max-width: 40ch; }
}

/* ---------- 15 m: dates ---------- */

.weeks { padding: clamp(96px, 14vh, 170px) 0; }
.weeks__lead { margin-top: 1.2rem; max-width: 46ch; opacity: .88; font-size: 1.05rem; }
.tags {
  margin-top: 3rem;
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .tags { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
@media (min-width: 1600px) { .tags { grid-template-columns: repeat(4, 1fr); } }
.tag {
  position: relative;
  padding: 2.6rem 1.4rem 1.2rem;
  border: 1px solid rgba(243, 249, 251, .28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(243, 249, 251, .08), rgba(243, 249, 251, .03));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color .6s, transform .9s var(--ease-water);
  will-change: transform;
}
.tag::before {
  /* punched hole, like a dive tag */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(243, 249, 251, .5);
  box-shadow: inset 0 0 0 3px rgba(2, 19, 43, .25);
}
.tag:hover { border-color: rgba(243, 249, 251, .6); transform: translateY(-4px); }
.tag__k { font-weight: 600; letter-spacing: .04em; opacity: .75; font-variant-caps: all-small-caps; font-size: 1rem; }
.tag__dates {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.1vw, 2.1rem); line-height: 1.08;
  margin: .3rem 0 .4rem;
  font-variant-numeric: lining-nums;
}
.tag__island { font-weight: 600; font-size: 1rem; }
.tag__note { margin-top: .7rem; font-size: .9rem; opacity: .8; min-height: 4.2em; }
.tag__stub {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px dashed rgba(243, 249, 251, .35);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.seats { display: flex; align-items: center; gap: 6px; }
.seats i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--foam);
}
.seats span { margin-left: 6px; font-size: .82rem; opacity: .8; }
.tag__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 .9rem;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 1px solid rgba(243, 249, 251, .5);
  transition: background-color .5s, color .5s;
}
.tag__cta:hover { background: var(--foam); color: var(--ink); }

/* ---------- 21 m: gallery ---------- */

.gallery { padding: clamp(96px, 14vh, 170px) 0 clamp(32px, 5vh, 80px); }
body.gal-zoom .gallery { padding-top: 0; }
body.gal-zoom .gallery__head { padding-top: clamp(72px, 10vh, 120px); }

/* zoom parallax opener: a collage that zooms out until the centre frame fills the screen */
.zoom { position: relative; height: auto; }
html.js-motion .zoom { height: 400vh; } /* 300vh of zoom, then a 100vh hold with the video full-bleed */
body.gal-masonry .zoom { display: none; }
body.gal-zoom .gallery__head { display: none; }
html:not(.js-motion) .zoom__sticky { height: 70vh; height: 70dvh; }
html:not(.js-motion) .zoom__el:not(.zoom__el--0) { display: none; }
html:not(.js-motion) .zoom__el--0 .zoom__box { width: 100vw; height: 100%; }
html:not(.js-motion) .zoom__cap { opacity: 1; transform: none; }
html:not(.js-motion) .gallery__head { display: none; } /* the cap carries the heading */
.zoom__sticky { position: relative; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
html.js-motion .zoom__sticky { position: sticky; }
.zoom__el {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.zoom__box { position: relative; width: 25vw; height: 25vh; overflow: hidden; border-radius: 4px; background: rgba(2, 19, 43, .35); }
.zoom__box img, .zoom__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b2f63 center / cover no-repeat; }
.zoom__video { object-position: 50% 45%; }
.zoom__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(120px, 22vh, 220px) 0 clamp(40px, 7vh, 72px);
  background: linear-gradient(to top, rgba(2, 19, 43, .72), rgba(2, 19, 43, .35) 55%, transparent);
  opacity: 0; will-change: transform, opacity;
}
.zoom__cap h2 { max-width: 18ch; }
.zoom__cap .gallery__credit { margin-top: 1rem; }
.zoom__el--0 .zoom__box { border-radius: 0; }
.zoom__el--1 .zoom__box { top: -30vh; left: 5vw; height: 30vh; width: 35vw; }
.zoom__el--2 .zoom__box { top: -10vh; left: -25vw; height: 45vh; width: 20vw; }
.zoom__el--3 .zoom__box { left: 27.5vw; height: 25vh; width: 25vw; }
.zoom__el--4 .zoom__box { top: 27.5vh; left: 5vw; height: 25vh; width: 20vw; }
.zoom__el--5 .zoom__box { top: 27.5vh; left: -22.5vw; height: 25vh; width: 30vw; }
.zoom__el--6 .zoom__box { top: 22.5vh; left: 25vw; height: 15vh; width: 15vw; }
@media (max-width: 899px) {
  html.js-motion .zoom { height: 300vh; } /* 200vh of zoom + 100vh hold */
  .zoom__el--5, .zoom__el--6 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-motion .zoom, .zoom { height: auto; }
  html.js-motion .zoom__sticky, .zoom__sticky { position: relative; }
  /* static collage: the heading belongs below it, not over the tiles */
  .zoom__cap { display: none; }
  body.gal-zoom .gallery__head { display: block; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  /* on a phone the static collage is too small to read, so show the end state: the centre frame full-bleed */
  .zoom__sticky { height: 70vh; height: 70dvh; }
  .zoom__el:not(.zoom__el--0) { display: none; }
  .zoom__el--0 .zoom__box { width: 100vw; height: 100%; }
}
.gallery__credit { margin-top: 1rem; opacity: .78; font-size: .95rem; }
.gallery__sets { display: flex; gap: .5rem; margin-top: 2.2rem; position: relative; z-index: 2; }
.gallery__set {
  appearance: none; border: 1px solid rgba(243, 249, 251, .4); background: transparent; color: var(--foam);
  font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background-color .5s, color .5s, border-color .5s;
}
.gallery__set[aria-selected="true"] { background: var(--foam); color: var(--ink); border-color: var(--foam); }
.gallery__set:hover { border-color: var(--foam); }
html:not(.js) .gallery__sets { display: none; }
.masonry {
  margin-top: 3.6rem;
  display: grid; gap: clamp(10px, 1.4vw, 20px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.masonry__col { display: grid; gap: clamp(10px, 1.4vw, 20px); will-change: transform; }
.masonry__col--mid { padding-top: 14vw; }
@media (min-width: 700px) {
  .masonry { grid-template-columns: 1fr 1fr 1fr; }
  .masonry__col--mid { padding-top: 7vw; }
}
.ph {
  margin: 0; position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 3 / 2; background: rgba(2, 19, 43, .35);
  transform-style: preserve-3d; perspective: 900px;
}
.ph--tall { aspect-ratio: 4 / 5; }
/* a Rob-style stacked triptych: three bands in one tall tile */
.ph--stack { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 4px; background: var(--deep); }
.ph--stack img { height: 100%; min-height: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* one landscape per column on phones so the grid stays short enough */
@media (max-width: 699px) {
  .masonry__col:nth-child(3) { display: none; }
}

/* ---------- 26 m: essentials ---------- */

.ess { padding: clamp(96px, 14vh, 170px) 0; }
.ess__lead { margin-top: 1.2rem; max-width: 46ch; opacity: .88; }
.acc { margin-top: 2.6rem; max-width: 760px; border-top: 1px solid rgba(243, 249, 251, .25); }
.acc__item { border-bottom: 1px solid rgba(243, 249, 251, .25); }
.acc__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 1rem 0;
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.1;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: transform .7s var(--ease-water);
  margin-right: 4px;
}
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__body { overflow: hidden; }
.acc__inner { padding: 0 0 1.5rem; max-width: 60ch; }
.acc__inner p + p { margin-top: .9rem; }
.acc__inner strong { font-weight: 600; }
.ess__quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.ess__close { margin-top: 2rem; max-width: 60ch; font-size: .95rem; opacity: .78; }

/* ---------- 30 m: reserve ---------- */

.reserve {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: clamp(120px, 16vh, 200px) 0 clamp(100px, 14vh, 160px);
  overflow: hidden;
}
.reserve__bg {
  position: absolute; inset: -10% 0;
  opacity: .32; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
}
.reserve__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.85); }
.reserve__markwrap {
  position: absolute; right: clamp(16px, 10vw, 160px); top: 10%;
  width: clamp(120px, 16vw, 220px); pointer-events: none;
  opacity: .5;
}
@media (max-width: 899px) {
  .reserve__markwrap { top: 44px; right: 20px; width: 72px; opacity: .4; }
  .reserve { padding-top: 180px; }
}
.reserve__mark { animation: sway 9s var(--ease-water) infinite alternate; transform-origin: 50% 20%; }
@keyframes sway { from { transform: rotate(-4deg) translateX(0); } to { transform: rotate(4deg) translateX(6px); } }
.reserve__inner { position: relative; max-width: 1360px; }
.reserve::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -12vh; height: 46vh; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 170, 90, .22), rgba(255, 170, 90, .06) 55%, transparent 80%);
}
.price { margin-top: 2.2rem; max-width: 560px; }
.price__amt {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem;
}
.price__cur { font-size: .5em; align-self: flex-start; margin-top: .25em; opacity: .85; letter-spacing: 0; }
.price__unit { font-family: var(--font-text); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-left: .6rem; opacity: .85; align-self: flex-end; margin-bottom: .55em; }
.price__terms { margin-top: 1.4rem; max-width: 46ch; }
.price__dep { margin-top: .6rem; font-weight: 600; }
.reserve__close { margin-top: 1.6rem; max-width: 52ch; opacity: .85; }
.reserve .btn { margin-top: 2.2rem; }

/* ---------- footer ---------- */

.foot {
  position: relative; z-index: 1;
  padding: 3rem 0 2.4rem;
  border-top: 1px solid rgba(243, 249, 251, .16);
  font-size: .92rem;
}
.foot__inner { display: grid; gap: 1.2rem; }
.foot__mark { width: 40px; opacity: .85; }
.foot__tag { max-width: 46ch; opacity: .8; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .9; border-bottom: 1px solid rgba(243,249,251,.25); line-height: 1; }
.foot__credit { opacity: .55; font-size: .8rem; }
.foot__credit a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html.js-motion .islands, .islands { height: auto; }
  html.js-motion .islands__stage, .islands__stage { position: relative; }
  html.js-motion .hero, .hero { height: auto; }
  html.js-motion .hero__stage, .hero__stage { position: relative; }
  .hero__img, .bubbles i, .hero__hint i, .reserve__mark { animation: none !important; }
  .bubbles, .caustics { display: none !important; }
  .tag, .btn, .btn--foam:hover { transition: none; transform: none; }
  .acc__item summary::after { transition: none; }
}
