@import url("fonts/fonts.css");

/* DES demo: the page is one dive. A fixed drawn sea sits behind everything (reef, fish, a diver that swims where you scroll
   otherwise), --p (0 at the surface, 1 at the bottom) darkens it, and a dive-computer gauge shows the depth.
   Brand: mask yellow #f6f600, mask navy #384f7a, black. Text contrast is measured on the card colour. */
:root {
  color-scheme: dark;
  --p: 0;
  --abyss: #021320;
  --card: rgba(3, 22, 38, .84);
  --ink: #ecf5fb;
  --muted: #a8c1d3;
  --yellow: #f6f600;
  --navy: #384f7a;
  --line: rgba(236, 245, 251, .16);
  --ctl: #6f8aa0;
  --font: "Titillium Web", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 70px; }
body { margin: 0; background: var(--abyss); color: var(--ink); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
h1, h2 { margin: 0; font-weight: 900; line-height: .98; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.6vw, 132px); }
h1 span { display: block; color: var(--yellow); }
h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 18px; }
p { margin: 0 0 14px; }
.skip { position: fixed; z-index: 99; left: 16px; top: -80px; padding: 10px 16px; background: var(--yellow); color: #000; }
.skip:focus { top: 16px; }

/* ---------- the sea ---------- */
.sea { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sea > * { position: absolute; inset: 0; }
.sea-deep { background: radial-gradient(120% 80% at 70% 0%, #0b4a73 0%, #05263f 45%, var(--abyss) 100%); }
.sea-top { background: linear-gradient(180deg, #3fb6e6 0%, #1683bd 30%, #0a4f7e 70%, #06314f 100%); opacity: calc(1 - var(--p) * 1.6); }
.rays { opacity: calc(.75 - var(--p) * 1.1); mix-blend-mode: screen; filter: blur(8px);
  background:
    linear-gradient(100deg, transparent 38%, rgba(190, 235, 255, .22) 41%, transparent 45%),
    linear-gradient(97deg, transparent 52%, rgba(190, 235, 255, .16) 55%, transparent 60%),
    linear-gradient(104deg, transparent 18%, rgba(190, 235, 255, .14) 21%, transparent 25%),
    linear-gradient(95deg, transparent 68%, rgba(190, 235, 255, .12) 71%, transparent 76%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
  transform-origin: 50% 0; animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: skewX(-4deg) translateX(-2%); } to { transform: skewX(4deg) translateX(2%); } }
/* the surface seen from below, it drifts up out of view as you go down */
.ripples { bottom: auto; height: 22vh; translate: 0 calc(var(--p) * -60vh); opacity: calc(1 - var(--p) * 3);
  background:
    radial-gradient(40px 10px at 20% 60%, rgba(255, 255, 255, .5), transparent 70%),
    radial-gradient(60px 12px at 55% 40%, rgba(255, 255, 255, .4), transparent 70%),
    radial-gradient(50px 9px at 80% 70%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(30px 8px at 38% 25%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(180deg, rgba(220, 245, 255, .55), transparent);
  background-size: 300px 80px, 360px 90px, 280px 70px, 220px 60px, 100% 100%;
  animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 300px 0, -360px 0, 280px 0, -220px 0, 0 0; } }
/* sand at the bottom of the page, rises into view over the last stretch */
/* sand bed: rises into view over the last stretch, the diver settles on it */
.floor { top: auto; height: calc(34vh + 120px); translate: 0 calc(max(0, 1 - (var(--p) - .6) / .4) * 105%); }
.floor svg { display: block; width: 100%; height: 100%; }
.floor .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway2 var(--t, 5s) ease-in-out infinite alternate; }
/* text sits on the left, the diver on the right: a soft shade keeps the left side readable */
.shade { background: linear-gradient(90deg, rgba(2, 19, 32, .55), rgba(2, 19, 32, .1) 55%, transparent); }
.bubbles i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgba(220, 245, 255, .55); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 60%);
  animation: rise var(--t) linear var(--d) infinite; }
@keyframes rise { to { translate: var(--w) -112vh; } }

/* drawn ocean: reef wall rises on the right as you go down, fish cross the screen, the diver stays put and tilts */
.reef { left: auto; width: clamp(240px, 36vw, 560px); height: 175vh; bottom: auto;
  translate: 0 calc(100vh - (var(--p) - .25) * 233vh); }
.reef svg { display: block; width: 100%; height: 100%; }
.reef { -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%); mask-image: linear-gradient(180deg, transparent, #000 10%); }
.reef .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway2 var(--t, 5s) ease-in-out infinite alternate; }
@keyframes sway2 { from { rotate: -5deg; } to { rotate: 5deg; } }
.fishes { overflow: hidden; }
.fish { position: absolute; left: 0; top: var(--y); width: var(--s); color: var(--c); opacity: var(--o, .9);
  animation: swimR var(--t) linear var(--d) infinite; }
.fish.left { animation-name: swimL; }
.fish.left svg { scale: -1 1; }
.fish svg { display: block; width: 100%; overflow: visible; animation: wiggle .45s ease-in-out infinite alternate; }
.fish.reefy { opacity: clamp(0, (var(--p) - .3) * 3, .95); }
@keyframes swimR { from { translate: -20vw 0; } to { translate: 120vw 0; } }
@keyframes swimL { from { translate: 120vw 0; } to { translate: -20vw 0; } }
@keyframes wiggle { from { rotate: -3deg; } to { rotate: 3deg; } }
.diver { left: 0; top: 0; right: auto; bottom: auto; width: clamp(150px, 20vw, 300px); height: auto; will-change: transform; }
.arm-ok { opacity: 0; transition: opacity .5s; }
.at-bottom .arm-ok { opacity: 1; }
.at-bottom .arm-tuck { opacity: 0; }
.diver:not(.swimming) .leg { animation-duration: 3s; }
.diver.swimming .leg { animation-duration: .9s; }
/* sea creatures: JS fades each one in for its own stretch of the dive */
.critter { position: absolute; left: 0; top: var(--y); width: var(--s); opacity: 0; transition: opacity .6s; animation: swimR var(--t) linear var(--d) infinite; }
.critter.left { animation-name: swimL; }
.critter.left > svg { scale: -1 1; }
.critter svg { display: block; width: 100%; overflow: visible; }
.jelly { animation: drift var(--t) ease-in-out var(--d) infinite alternate; left: var(--x); }
.jelly .bell { transform-box: fill-box; transform-origin: 50% 100%; animation: pulse 1.8s ease-in-out infinite; }
@keyframes drift { from { translate: 0 30px; } to { translate: 12px -40px; } }
@keyframes pulse { 50% { scale: 1.08 .86; } }
.flap { transform-box: fill-box; transform-origin: 0% 50%; animation: flap 1.4s ease-in-out infinite alternate; }
.manta svg { animation: glide 4s ease-in-out infinite alternate; }
@keyframes flap { from { rotate: -14deg; } to { rotate: 16deg; } }
@keyframes glide { from { scale: 1 1; } to { scale: 1 .72; } }
.diver-body { display: block; width: 100%; overflow: visible; transform: rotate(-90deg); }
.leg { transform-box: view-box; transform-origin: 176px 72px; animation: kick 1.6s ease-in-out infinite alternate; }
.leg-b { animation-delay: -.8s; }
@keyframes kick { from { rotate: -6deg; } to { rotate: 6deg; } }
/* exhaled bubbles rise from the regulator */
.stream { position: absolute; left: 46%; top: 30%; width: 20px; height: 1px; }
.stream i { position: absolute; left: 0; bottom: 0; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(225, 245, 255, .8);
  background: rgba(255, 255, 255, .25); animation: exhale 2.4s ease-in infinite; }
.stream i:nth-child(2) { animation-delay: .25s; width: 5px; height: 5px; }
.stream i:nth-child(3) { animation-delay: .5s; width: 9px; height: 9px; }
.stream i:nth-child(4) { animation-delay: 1.2s; }
.stream i:nth-child(5) { animation-delay: 1.45s; width: 4px; height: 4px; }
.stream i:nth-child(6) { animation-delay: 1.7s; width: 8px; height: 8px; }
/* the jump in: where the diver breaks the surface, a white burst, a ring on the surface and a spray of bubbles */
.splash { position: absolute; top: 0; width: 0; height: 0; pointer-events: none; }
.splash .foam { position: absolute; left: -130px; top: -70px; width: 260px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(220, 245, 255, .55) 55%, transparent); animation: foam 1.4s ease-out forwards; }
.splash .ring { position: absolute; left: -60px; top: -10px; width: 120px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); animation: ring 1.6s ease-out forwards; }
.splash i { position: absolute; left: 0; top: 10px; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(235, 248, 255, .9);
  background: rgba(255, 255, 255, .35); animation: spray 1.8s cubic-bezier(.2, .7, .3, 1) var(--d) forwards; }
@keyframes foam { 0% { scale: .2; opacity: 1; } 60% { opacity: .8; } 100% { scale: 1.6 1.2; opacity: 0; } }
@keyframes ring { from { scale: .3; opacity: 1; } to { scale: 4 2.2; opacity: 0; } }
@keyframes spray { 0% { translate: 0 0; opacity: 1; } 55% { translate: var(--tx) var(--ty); opacity: .9; } 100% { translate: var(--tx) calc(var(--ty) * .2); opacity: 0; } }
@keyframes exhale { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 100% { translate: 18px -46vh; opacity: 0; } }

/* ---------- depth gauge (dive computer) ---------- */
.gauge { position: fixed; z-index: 20; right: var(--gut); top: 50%; translate: 0 -50%; display: grid; justify-items: end; gap: 6px; pointer-events: none; }
.gauge-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.gauge-val { margin: 0; padding: 9px 14px; border-radius: 10px; background: rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 1px rgba(246, 246, 0, .35);
  font: 700 30px/1 var(--font); color: var(--yellow); font-variant-numeric: tabular-nums; }
.gauge-scale { position: relative; width: 2px; height: 34vh; margin-right: 16px; background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px calc(34vh / 18)); box-shadow: 0 0 0 .5px var(--line); }
.gauge-scale i { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(0, 0, 0, .6); }

/* ---------- header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); transition: background .4s, box-shadow .4s; }
.head.scrolled { background: rgba(2, 19, 32, .82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand img { width: 46px; height: auto; }
.brand b { display: block; color: var(--yellow); font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover { background-size: 100% 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--yellow); color: #000;
  font: 700 15px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.btn.sm { padding: 11px 18px; font-size: 13px; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ctl); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.link { font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--yellow); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- panels: one screen of the dive each ---------- */
main { position: relative; }
.panel { min-height: 100vh; display: flex; align-items: center; padding: 110px calc(var(--gut) + 110px) 60px var(--gut); }
.card { width: min(560px, 100%); padding: clamp(24px, 3vw, 38px); border-radius: 22px; background: var(--card); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.card.wide { width: min(820px, 100%); }
.card.bare { background: none; backdrop-filter: none; box-shadow: none; padding: 0; width: min(760px, 100%); }
.card p, .card li { color: var(--muted); }
.card-media { margin: calc(-1 * clamp(24px, 3vw, 38px)) calc(-1 * clamp(24px, 3vw, 38px)) 24px; overflow: hidden; border-radius: 22px 22px 0 0; aspect-ratio: 16 / 7; background: #06263d; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow) !important; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 52ch; color: #d3e4ef !important; margin-top: 22px; }
.scroll-hint { margin-top: 46px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scroll-hint::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--yellow), transparent); animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.ticks { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--yellow); }
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; padding: 0; list-style: none; }
.courses li { display: grid; align-content: start; padding: 18px 18px 16px; border-radius: 16px; background: rgba(56, 79, 122, .28); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .3s var(--ease); }
.courses li:hover { background: rgba(56, 79, 122, .5); transform: translateY(-3px); }
.courses b { font-size: 28px; font-weight: 900; line-height: 1; color: var(--ink); }
.courses span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 4px 0 10px; }
.courses p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.courses a { justify-self: start; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--yellow); }
.more { font-size: 15px; }
.more a { color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; margin: 8px 0 18px; }
.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-size: 40px; font-weight: 900; line-height: 1; color: var(--yellow); }
.facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 20px; padding: 0; list-style: none; }
.places li { padding: 10px 14px; border-radius: 12px; background: rgba(56, 79, 122, .28); }
.places b { display: block; color: var(--ink); font-weight: 700; }
.places span { font-size: 14px; }

/* ---------- reservation ---------- */
.end { align-items: flex-end; padding-bottom: 46px; }
.form-card { width: min(640px, 100%); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ctl); border-radius: 12px; background: rgba(2, 19, 32, .7); color: var(--ink); font: 400 16px/1.4 var(--font); }
.form select option { background: var(--abyss); color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: #7f98ab; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246, 246, 0, .2); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.done { grid-column: 1 / -1; margin: 0; color: var(--yellow) !important; font-size: 15px; }
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.reach p { margin: 0; }
.reach b { display: block; color: var(--ink); }
.reach a { color: var(--ink); text-decoration: none; }
.reach a:hover { color: var(--yellow); }

.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px var(--gut) 70px; background: rgba(2, 19, 32, .92); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration: none; }
.mock-tag { position: fixed; z-index: 40; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--yellow); color: #000; font-size: 13px; font-weight: 700; }

/* panels surface out of the blue as they come in */
.js .reveal { opacity: 0; translate: 0 40px; filter: blur(6px); transition: opacity 1s var(--ease), translate 1.1s var(--ease), filter 1s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; filter: none; }
.js .reveal.from-side { translate: -16vw 0; transition-duration: 1.2s; }
.js .reveal.from-side.in { translate: 0 0; }
.js .hero .card > * { opacity: 0; translate: 0 24px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js .hero .card > :nth-child(2) { transition-delay: .12s; } .js .hero .card > :nth-child(3) { transition-delay: .24s; }
.js .hero .card > :nth-child(4) { transition-delay: .36s; } .js .hero .card > :nth-child(5) { transition-delay: .6s; }
.js .loaded .hero .card > * { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .card, .head.scrolled { backdrop-filter: none; }
  .card { background: rgba(3, 22, 38, .72); } /* see-through on phones: the diver and fish show behind the text */
  .head.scrolled { background: rgba(2, 19, 32, .95); }
  .rays { filter: none; animation: none; }
  .js .reveal { filter: none; }
  .diver { width: 120px; }
  .nav { display: none; }
  .head .btn { margin-left: auto; }
  .brand span { display: none; }
  .panel { padding: 96px var(--gut) 50px; align-items: flex-end; }
  .hero { align-items: center; }
  /* phone: the gauge sits in the empty middle of the header */
  .gauge { z-index: 31; top: 19px; right: auto; left: 50%; translate: -50% 0; }
  .gauge-scale, .gauge-label { display: none; }
  .gauge-val { font-size: 20px; }
  .shade { background: linear-gradient(180deg, transparent 30%, rgba(2, 19, 32, .6)); }
  .reef { width: 100vw; }
}
@media (max-width: 600px) {
  .courses, .facts, .form, .reach { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .bubbles, .fishes, .stream, .critters { display: none; }
  .js .reveal.from-side { translate: none; }
  .js .reveal, .js .hero .card > * { opacity: 1; translate: none; filter: none; }
  html { scroll-behavior: auto; }
}
