/* ==========================================================================
   The Diver's Boat — Koh Phangan
   A scroll is a descent: every section sits at a depth, and the page
   darkens, cools and quietens the further down you go.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Depth ramp — surface light to abyss. Used for section backgrounds. */
  --d00: #8ed6ec;   /* 0 m   surface glare      */
  --d03: #4fb3d4;   /* 3 m                      */
  --d06: #1f88ae;   /* 6 m   sunlight zone      */
  --d10: #0f6b90;   /* 10 m                     */
  --d14: #0a5476;   /* 14 m                     */
  --d18: #08415e;   /* 18 m  open-water limit   */
  --d24: #063248;   /* 24 m                     */
  --d30: #052534;   /* 30 m                     */
  --d36: #031925;   /* 36 m                     */
  --d42: #010d15;   /* 42 m  the abyss          */

  /* Brand */
  --accent:      #ff7a4d;  /* warm coral — every call to action  */
  --accent-deep: #e85c2c;
  --aqua:        #5ce3d4;  /* dive-computer cyan — data, labels  */
  --sand:        #f4e8d6;  /* warm off-white for body copy       */
  --white:       #ffffff;

  --ink:      #051a26;
  --ink-soft: rgba(244, 232, 214, 0.72);
  --ink-mute: rgba(244, 232, 214, 0.52);
  --hair:     rgba(255, 255, 255, 0.14);
  --hair-hi:  rgba(255, 255, 255, 0.28);
  --glass:    rgba(4, 28, 42, 0.52);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --gut:   clamp(1.25rem, 4vw, 3rem);
  --page:  1320px;
  --nav-h: 88px;
  --note:  0px;   /* height of the temporary notice bar, if any */

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Live scroll depth, 0 → 1. Set by JS; the CSS works without it. */
  --depth: 0;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--sand);
  background: var(--d18);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -140%);
  z-index: 200; padding: 0.75rem 1.25rem;
  background: var(--accent); color: #fff;
  font: 600 0.875rem/1 var(--body);
  border-radius: 0 0 8px 8px;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 860px; }

.band {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  isolation: isolate;
}
.band > .wrap { position: relative; z-index: 2; }

/* Depth-graded section backgrounds. Continuous top-to-bottom gradient. */
.zone-0  { background: linear-gradient(180deg, var(--d03) 0%,  var(--d06) 100%); }
.zone-1  { background: linear-gradient(180deg, var(--d06) 0%,  var(--d10) 100%); }
.zone-2  { background: linear-gradient(180deg, var(--d10) 0%,  var(--d14) 100%); }
.zone-3  { background: linear-gradient(180deg, var(--d14) 0%,  var(--d18) 100%); }
.zone-4  { background: linear-gradient(180deg, var(--d18) 0%,  var(--d24) 100%); }
.zone-5  { background: linear-gradient(180deg, var(--d24) 0%,  var(--d30) 100%); }
.zone-6  { background: linear-gradient(180deg, var(--d30) 0%,  var(--d36) 100%); }
.zone-7  { background: linear-gradient(180deg, var(--d36) 0%,  var(--d42) 100%); }
.zone-8  { background: var(--d42); }

/* --------------------------------------------------------------------------
   4. Type utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px;
  background: var(--aqua); opacity: 0.6; flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

.h-hero {
  /* the slogan is a <p> (the page's h1 names what we do), so it takes the
     heading face explicitly */
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.h-sec {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.h-sub {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h-card {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.005em; line-height: 1.15;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}

.dim   { color: var(--ink-soft); }
.quiet { color: var(--ink-mute); }

.data {
  font: 500 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--aqua);
}

.price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.price small {
  font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  display: block; margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg); color: #fff;
  font: 600 0.9375rem/1 var(--body);
  letter-spacing: 0.005em;
  border: 0; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 28px -12px rgba(255, 122, 77, 0.8);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(255, 122, 77, 0.9);
}
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  color: var(--white);
  border: 1px solid var(--hair-hi);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  box-shadow: none;
}

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 600 0.9375rem/1 var(--body);
  color: var(--white);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--hair-hi);
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.tlink:hover { gap: 0.8rem; border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   6. Ambient layers — bubbles, rays, drifting life
   -------------------------------------------------------------------------- */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}

/* Sunlight from above, strongest near the surface, gone by 40 m. */
.rays {
  position: absolute; inset: -10% -20% auto -20%; height: 120vh;
  opacity: calc(0.85 - var(--depth) * 0.85);
  background:
    linear-gradient(103deg, transparent 46%, rgba(216, 245, 255, 0.10) 49%, transparent 52%),
    linear-gradient(94deg,  transparent 28%, rgba(216, 245, 255, 0.07) 31%, transparent 35%),
    linear-gradient(112deg, transparent 63%, rgba(216, 245, 255, 0.08) 67%, transparent 71%);
  mix-blend-mode: screen;
  animation: sway 19s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: translateX(-3%) skewX(-1.5deg); }
  to   { transform: translateX(3%)  skewX(1.5deg); }
}

/* Bubbles rise past you the whole way down. */
.bubble {
  position: absolute; bottom: -8vh;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.22) 38%,
      rgba(255, 255, 255, 0.05) 62%,
      transparent 72%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0)     scale(0.85); opacity: 0; }
  12%  { opacity: 0.55; }
  55%  { transform: translateY(-62vh) translateX(14px) scale(1); }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-118vh) translateX(-10px) scale(1.08); opacity: 0; }
}

/* Slow silhouettes crossing the blue at different depths. */
.life {
  position: absolute;
  color: #01202f;
  animation: drift linear infinite;
  will-change: transform;
}
.life svg { width: 100%; height: auto; }
@keyframes drift {
  from { transform: translateX(-30vw) translateY(0); }
  to   { transform: translateX(128vw) translateY(-40px); }
}
.life--rev { animation-name: drift-rev; }
@keyframes drift-rev {
  from { transform: translateX(128vw) scaleX(-1) translateY(0); }
  to   { transform: translateX(-30vw) scaleX(-1) translateY(30px); }
}

/* A floor of particulate that only shows up deep. */
.motes {
  position: absolute; left: 0; right: 0; top: -100%; height: 200%;
  opacity: calc(var(--depth) * 0.5);
  will-change: transform;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,.5) 50%, transparent 52%),
    radial-gradient(1px 1px   at 72% 41%, rgba(255,255,255,.4) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 44% 73%, rgba(255,255,255,.35) 50%, transparent 52%),
    radial-gradient(1px 1px   at 88% 84%, rgba(255,255,255,.4) 50%, transparent 52%),
    radial-gradient(1px 1px   at 8%  62%, rgba(255,255,255,.3) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 59% 12%, rgba(255,255,255,.3) 50%, transparent 52%);
  background-size: 340px 340px;
  animation: motes 26s linear infinite;
}
@keyframes motes {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(14px, -340px, 0); }
}

/* Pressure vignette — the deep squeezes in from the edges. */
.squeeze {
  position: absolute; inset: 0;
  background: radial-gradient(130% 95% at 50% 32%,
    transparent 38%, rgba(1, 10, 18, 0.55) 100%);
  opacity: calc(0.25 + var(--depth) * 0.75);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hdr.is-stuck {
  background: rgba(3, 22, 34, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--hair);
}
.hdr__in {
  max-width: var(--page); margin-inline: auto;
  padding: 0 var(--gut);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.logo {
  display: flex; align-items: center; gap: 0.9rem;
  margin-right: auto; color: var(--white);
}
.logo__img {
  height: 60px; width: auto; flex: none;
  /* the artwork is pure white, so it needs no colour treatment */
}
.logo__place {
  font: 500 0.625rem/1.35 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua);
  padding-left: 0.9rem; border-left: 1px solid var(--hair-hi);
  max-width: 5.5em;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.5vw, 1.75rem); }
.nav a {
  font: 500 0.875rem/1 var(--body);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  position: relative; padding: 0.4rem 0;
  transition: color 0.18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--aqua);
  transition: right 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* Language switcher — EN · ES · FR, dive-computer mono like the rest of the data */
.lang {
  display: flex; align-items: center; gap: 0.15rem;
  font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.12em;
}
.lang a {
  padding: 0.45rem 0.4rem; border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.lang a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.lang a[aria-current] { color: var(--aqua); }
/* The header copy is always on screen; the drawer copy only takes over on
   the narrowest phones, where the header has no room for it. */
.lang--drawer { display: none; }
@media (max-width: 380px) {
  .hdr .lang { display: none; }
  .lang--drawer { display: flex; margin-top: 1.25rem; gap: 0.5rem; }
  .drawer .lang--drawer a:not(.btn) {
    font: 500 0.8125rem/1 var(--mono); letter-spacing: 0.12em;
    text-transform: none; display: inline-block;
    border: 1px solid var(--hair); padding: 0.55rem 0.8rem;
  }
  .drawer .lang--drawer a[aria-current]:not(.btn) { border-color: var(--aqua); }
}

.burger {
  display: none; width: 44px; height: 44px;
  background: none; border: 1px solid var(--hair-hi);
  border-radius: 999px; cursor: pointer; color: var(--white);
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 17px; height: 1.5px; background: currentColor;
  position: relative; transition: transform 0.25s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: currentColor; transition: transform 0.25s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(-90deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-90deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: linear-gradient(180deg, var(--d10), var(--d30) 70%, var(--d36));
  padding: calc(var(--nav-h) + var(--note) + env(safe-area-inset-top, 0px) + 2rem) var(--gut)
           calc(2rem + env(safe-area-inset-bottom, 0px));
  display: grid; align-content: start; gap: 0.25rem;
  transform: translateY(-101%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateY(0); }
.drawer a:not(.btn) {
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 110;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  text-transform: uppercase; letter-spacing: -0.01em;
  padding: 0.5rem 0; border-bottom: 1px solid var(--hair);
  display: flex; align-items: baseline; gap: 0.75rem;
}
.drawer a:not(.btn) i {
  font: 500 0.6875rem/1 var(--mono); font-style: normal;
  letter-spacing: 0.16em; color: var(--aqua);
}
.drawer .btn { margin-top: 1.75rem; justify-self: start; }
.drawer__foot {
  margin-top: 2rem; font: 500 0.8125rem/1.8 var(--mono);
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   8. Depth HUD — the dive computer
   -------------------------------------------------------------------------- */
.hud {
  position: fixed; z-index: 90;
  right: clamp(1rem, 2vw, 1.75rem); top: 50%;
  transform: translateY(-50%);
  display: grid; gap: 0.85rem; justify-items: end;
  pointer-events: none;
}
.hud__read {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(10px);
  display: grid; gap: 0.35rem; justify-items: end;
  min-width: 126px;
}
.hud__depth {
  font: 500 1.5rem/1 var(--mono);
  color: var(--white); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hud__depth span { font-size: 0.75rem; color: var(--aqua); margin-left: 2px; }
.hud__zone {
  font: 500 0.5625rem/1.3 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua); text-align: right; max-width: 14ch;
}
.hud__rule {
  width: 1px; height: 34vh; min-height: 180px;
  background: linear-gradient(180deg, var(--hair-hi), var(--hair));
  position: relative; margin-right: 12px;
}
.hud__ticks {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg,
    var(--hair-hi) 0 1px, transparent 1px 12.5%);
}
.hud__pin {
  position: absolute; left: 50%; top: 0;
  width: 15px; height: 15px; margin-left: -7px; margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 77, 0.22), 0 0 16px rgba(255, 122, 77, 0.7);
  transition: top 0.18s linear;
}
.hud__scale {
  position: absolute; right: calc(100% + 8px); top: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  font: 500 0.5625rem/1 var(--mono); letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
}

/* Mobile: a hairline of progress plus a compact readout. */
.hud__bar {
  display: none;
  position: fixed; left: 0; top: calc(var(--nav-h) + var(--note) + env(safe-area-inset-top, 0px));
  height: 2px; width: 100%; z-index: 98;
  background: rgba(255, 255, 255, 0.12);
}
.hud__bar i {
  display: block; height: 100%; width: calc(var(--depth) * 100%);
  background: linear-gradient(90deg, var(--aqua), var(--accent));
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-content: end;
  padding-top: calc(var(--nav-h) + var(--note) + 2.5rem);
  padding-bottom: clamp(1.75rem, 4vh, 2.75rem);
  background: var(--d06);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.04);
}
/* Tall screens get their own head-on crop of the whale shark (see the
   <picture> in index.html, mirrored so it swims to the right); keep its
   head in frame on narrower phones. */
@media (orientation: portrait) and (max-width: 900px) {
  .hero__media img { object-position: 70% 50%; }
}
/* Scrims: dark at bottom-left for copy, light at top for the surface. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top,   rgba(2, 20, 32, 0.94) 0%, rgba(3, 32, 48, 0.55) 34%, transparent 62%),
    linear-gradient(to right, rgba(2, 22, 36, 0.86) 0%, rgba(2, 22, 36, 0.42) 42%, transparent 70%),
    radial-gradient(120% 55% at 50% -12%, rgba(215, 246, 255, 0.5) 0%, transparent 70%);
}

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.hero__copy { max-width: min(100%, 880px); }
.h-hero em {
  font-style: normal; color: var(--aqua);
  display: block;
}
.hero__lede { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero .btn-row { margin-top: 1.75rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(1.75rem, 4vh, 2.75rem);
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 14px; overflow: hidden;
}
.hero__stats div {
  background: rgba(3, 24, 38, 0.46);
  padding: 0.9rem 1.1rem;
}
.hero__stats b {
  display: block;
  font: 500 clamp(1.15rem, 2.4vw, 1.6rem)/1 var(--mono);
  color: var(--white); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__stats span {
  display: block; margin-top: 0.4rem;
  font: 500 0.625rem/1.4 var(--mono);
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute);
}

.cue {
  margin-top: clamp(1.1rem, 2.5vh, 1.75rem);
  display: flex; align-items: center; gap: 0.75rem;
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute);
}
.cue i {
  display: block; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--aqua), transparent);
  position: relative; overflow: hidden;
}
.cue i::after {
  content: ""; position: absolute; inset: 0; width: 14px;
  background: var(--white);
  animation: trace 2.4s var(--ease) infinite;
}
@keyframes trace {
  0%   { transform: translateX(-14px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateX(46px);  opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. Cards — shared shell
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--hair-hi);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
.card__pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__pic img { transform: scale(1.06); }
.card__pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3, 20, 32, 0.8), transparent 65%);
}
.card__tag {
  position: absolute; z-index: 2; left: 0.85rem; top: 0.85rem;
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 0.7rem; border-radius: 999px;
  background: rgba(3, 20, 32, 0.72); color: var(--aqua);
  border: 1px solid var(--hair);
  backdrop-filter: blur(6px);
}
.card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  flex: 1;
}
.card__body > p { color: var(--ink-soft); font-size: 0.9375rem; }
.card__foot {
  margin-top: auto; padding-top: 1.1rem;
  border-top: 1px solid var(--hair);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
}

.card--feature {
  border-color: rgba(255, 122, 77, 0.55);
  background: rgba(255, 122, 77, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 122, 77, 0.2), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.card--feature .card__tag { color: var(--accent); border-color: rgba(255, 122, 77, 0.5); }

.grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* --------------------------------------------------------------------------
   11. Quick-book band, lifted over the hero seam
   -------------------------------------------------------------------------- */
.lift { position: relative; z-index: 4; }
.pick { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 900px) {
  .pick { grid-template-columns: repeat(3, 1fr) 0.92fr; align-items: stretch; }
}
.pick .card__pic { aspect-ratio: 16 / 9; }

.depart {
  background: linear-gradient(160deg, rgba(92, 227, 212, 0.14), rgba(3, 24, 38, 0.5));
  border: 1px solid rgba(92, 227, 212, 0.34);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  backdrop-filter: blur(8px);
}
.depart__time {
  font: 500 clamp(2.4rem, 5vw, 3.1rem)/0.9 var(--mono);
  color: var(--white); letter-spacing: -0.04em;
}
.depart ul {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid rgba(92, 227, 212, 0.25);
  display: grid; gap: 0.3rem;
  font: 500 0.75rem/1.5 var(--mono); color: var(--ink-soft);
}
.depart li { display: flex; gap: 0.5rem; }
.depart li::before { content: "▸"; color: var(--aqua); }

/* --------------------------------------------------------------------------
   12. "Why dive with us" — big centred heading between two columns
   -------------------------------------------------------------------------- */
.why { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 980px) {
  .why { grid-template-columns: 1fr 1.08fr 1fr; }
  .why__mid { text-align: center; }
}
.why__mid .h-sec { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.why__mid p { margin-top: 1.5rem; color: var(--ink-soft); }

.why__col { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.point { display: grid; gap: 0.6rem; }
.point h3 {
  font: 600 0.75rem/1.3 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white);
  display: flex; gap: 0.6rem; align-items: baseline;
  font-family: var(--mono);
  font-variation-settings: normal;
}
.point h3::before {
  content: attr(data-n);
  color: var(--accent); font-size: 0.6875rem;
}
.point p { color: var(--ink-soft); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   13. Dive-day timeline
   -------------------------------------------------------------------------- */
.day {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 18px; overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.day__step {
  background: rgba(3, 26, 40, 0.42);
  padding: 1.5rem 1.25rem;
  display: grid; gap: 0.6rem; align-content: start;
  position: relative;
  transition: background 0.3s var(--ease);
}
.day__step:hover { background: rgba(92, 227, 212, 0.09); }
.day__n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hair-hi);
  font: 500 0.75rem/1 var(--mono); color: var(--aqua);
}
.day__step h3 {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.005em;
}
.day__step p { font-size: 0.875rem; color: var(--ink-soft); }
.day__step time {
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em; color: var(--accent);
}

/* --------------------------------------------------------------------------
   14. Dive sites — the torch
   -------------------------------------------------------------------------- */
.sites { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 860px) { .sites { grid-template-columns: 1fr 1fr; } }

.site {
  position: relative; overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--hair);
  min-height: 430px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  isolation: isolate;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.site:hover { border-color: var(--hair-hi); transform: translateY(-4px); }

/* Base pass: how it looks at depth — red light is gone. */
.site__pic, .site__lit { position: absolute; inset: 0; z-index: -3; }
.site__pic img, .site__lit img {
  width: 100%; height: 100%; object-fit: cover;
}
.site__pic img {
  filter: saturate(0.42) brightness(0.62) hue-rotate(12deg) contrast(1.05);
  transition: transform 0.8s var(--ease);
}
/* Torch pass: full colour, revealed only inside the beam. */
.site__lit {
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  -webkit-mask-image: radial-gradient(circle var(--beam, 205px) at var(--mx, 50%) var(--my, 50%),
    #000 0%, rgba(0,0,0,0.65) 45%, transparent 78%);
  mask-image: radial-gradient(circle var(--beam, 205px) at var(--mx, 50%) var(--my, 50%),
    #000 0%, rgba(0,0,0,0.65) 45%, transparent 78%);
}
.site__lit img { filter: saturate(1.15) brightness(1.06); }
.site:hover .site__lit { opacity: 1; }
.site:hover .site__pic img { transform: scale(1.04); }
.site::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(2, 16, 26, 0.94) 0%, rgba(2, 18, 30, 0.54) 32%,
    rgba(2, 18, 30, 0.12) 62%, transparent 84%);
}

/* The beam itself: a puddle of light that reads even over the scrim. */
.site__beam {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle var(--beam, 205px) at var(--mx, 50%) var(--my, 50%),
    rgba(196, 238, 255, 0.30) 0%, rgba(160, 220, 245, 0.12) 46%, transparent 72%);
  transition: opacity 0.3s var(--ease);
}
.site:hover .site__beam, .site:focus-visible .site__beam { opacity: 1; }

.site__head {
  position: absolute; z-index: 2; inset: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.site__lvl {
  font: 500 0.625rem/1.3 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 0.7rem; border-radius: 999px;
  background: rgba(2, 18, 30, 0.72); border: 1px solid var(--hair);
  color: var(--aqua); backdrop-filter: blur(6px);
  max-width: 22ch;
}
.site__d {
  font: 500 1.35rem/1 var(--mono);
  color: var(--white); letter-spacing: -0.03em;
  text-align: right;
}
.site__d span {
  display: block; margin-top: 0.3rem;
  font-size: 0.5625rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.site h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase; letter-spacing: -0.015em;
}
.site__note {
  margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.9375rem;
  max-width: 46ch;
}
.site__meta {
  margin-top: 1.25rem; padding-top: 1.1rem;
  border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.site__life {
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em; color: var(--aqua);
}
.torch-hint {
  display: flex; align-items: center; gap: 0.5rem;
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.torch-hint svg { color: var(--accent); }

/* --------------------------------------------------------------------------
   15. Courses table-style list
   -------------------------------------------------------------------------- */
.course-list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hair);
}
.course {
  display: grid; gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hair);
  align-items: center;
  transition: background 0.25s var(--ease), padding-inline 0.25s var(--ease);
}
.course:hover { background: rgba(255, 255, 255, 0.04); padding-inline: 1rem; }
@media (min-width: 760px) {
  .course { grid-template-columns: minmax(0, 1fr) 9rem 7.5rem auto; }
}
.course h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }
.course h3 + p { font-size: 0.875rem; color: var(--ink-mute); margin: 0.25rem 0 0; }
.course__dur, .course__price {
  font: 500 0.875rem/1 var(--mono); letter-spacing: 0.04em;
}
.course__dur { color: var(--ink-soft); }
.course__price { color: var(--white); font-size: 1.05rem; }
.course.is-top h3 span {
  display: inline-block; margin-left: 0.6rem; vertical-align: 2px;
  font: 500 0.5625rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(255, 122, 77, 0.5); border-radius: 999px;
  padding: 0.35rem 0.55rem;
}

/* --------------------------------------------------------------------------
   16. Split feature (boat / team / about)
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--hair);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(2, 18, 30, 0.78); border: 1px solid var(--hair);
  border-radius: 12px; padding: 0.7rem 0.9rem;
  font: 500 0.6875rem/1.5 var(--mono); color: var(--aqua);
  backdrop-filter: blur(8px);
}
.split__body > .lede { margin-bottom: 1.5rem; }

.specs {
  margin-top: 1.75rem; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  background: var(--hair); border: 1px solid var(--hair);
  border-radius: 14px; overflow: hidden;
}
.specs div { background: rgba(3, 24, 38, 0.4); padding: 1rem 1.1rem; }
.specs dt {
  font: 500 0.5625rem/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
.specs dd {
  margin: 0.4rem 0 0;
  font: 500 1.05rem/1.2 var(--mono); color: var(--white);
  letter-spacing: -0.01em;
}

.crew { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 780px) { .crew { grid-template-columns: repeat(3, 1fr); } }
.crew article {
  border: 1px solid var(--hair); border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.crew article:hover { border-color: var(--hair-hi); transform: translateY(-4px); }
.crew img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.crew__body { padding: 1.35rem; }
.crew__role {
  font: 500 0.625rem/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua);
  margin-bottom: 0.45rem;
}
.crew__body p { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   17. Gallery rail
   -------------------------------------------------------------------------- */
.rail {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(74vw, 400px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-hi) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--hair-hi); border-radius: 999px; }
.rail figure {
  margin: 0; scroll-snap-align: start;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hair);
  position: relative;
}
.rail img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.rail figure:hover img { transform: scale(1.05); filter: saturate(1.1); }
.rail figcaption {
  position: absolute; inset: auto 0 0; padding: 1.25rem 1rem 0.9rem;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(to top, rgba(2, 16, 26, 0.9), transparent);
}

/* Masonry-ish gallery grid (gallery page) */
.tiles {
  display: grid; gap: clamp(0.65rem, 1.4vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.tiles figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--hair);
}
.tiles img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.88) brightness(0.95);
}
.tiles figure:hover img { transform: scale(1.06); filter: saturate(1.12) brightness(1.04); }
.tiles .t-wide { grid-column: span 2; }
.tiles .t-wide img { aspect-ratio: 2 / 1; }
.tiles .t-tall img { aspect-ratio: 3 / 4; }
@media (max-width: 560px) {
  .tiles .t-wide { grid-column: span 1; }
  .tiles .t-wide img { aspect-ratio: 1 / 1; }
}
.tiles figcaption {
  position: absolute; inset: auto 0 0; padding: 1.5rem 0.85rem 0.75rem;
  font: 500 0.625rem/1.4 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(to top, rgba(2, 16, 26, 0.88), transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.tiles figure:hover figcaption, .tiles figure:focus-within figcaption {
  opacity: 1; transform: translateY(0);
}

/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 1fr; } }

.reach { display: grid; gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.reach > li { background: rgba(255, 255, 255, 0.035); }
.reach > li > a,
.reach > li.reach--static {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: 1.15rem 1.25rem;
  transition: background 0.25s var(--ease);
}
.reach > li > a:hover { background: rgba(255, 122, 77, 0.12); }
.reach svg { grid-row: 1 / span 2; align-self: start; margin-top: 3px;
  flex: none; color: var(--aqua); }
.reach .k {
  font: 500 0.5625rem/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
.reach .v { font-size: 0.9375rem; color: var(--white); }

.map {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--hair);
  position: relative;
}
.map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.8) brightness(0.9); }
.map--live iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: 0;
  background: var(--d24);
}

.faq { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  padding: 1.2rem 2.5rem 1.2rem 0; cursor: pointer; position: relative;
  font-weight: 600; font-size: 1.0625rem; color: var(--white);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--aqua); border-bottom: 1.5px solid var(--aqua);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 1.35rem; color: var(--ink-soft); max-width: 68ch; }

/* --------------------------------------------------------------------------
   19. Footer — the safety stop, then the surface
   -------------------------------------------------------------------------- */
.foot {
  background: linear-gradient(180deg, var(--d42) 0%, var(--d36) 100%);
  border-top: 1px solid var(--hair);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.foot__stop {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--aqua);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.foot__stop i { display: block; width: clamp(2rem, 8vw, 5rem); height: 1px; background: var(--hair-hi); }

.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.foot h4 {
  font: 600 0.625rem/1.4 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 1rem; font-family: var(--mono); font-variation-settings: normal;
}
/* Footer links carry their own vertical padding so each one is a
   comfortable thumb target on a phone, not an 18 px strip of text. */
.foot ul { display: grid; gap: 0; }
.foot li a { display: inline-block; padding: 0.35rem 0; }
@media (pointer: coarse) { .foot li a { padding: 0.6rem 0; } }
.foot li a, .foot address a {
  font-size: 0.9375rem; color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.foot li a:hover, .foot address a:hover { color: var(--accent); }
.foot address { font-style: normal; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.8; }
.foot .logo { gap: 0.9rem; }
.foot .logo__img { height: 76px; }
.foot__brand p { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 1.25rem; max-width: 34ch; }
.foot__certs { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.foot__certs img {
  height: 26px; width: auto;
  filter: brightness(0) invert(1) opacity(0.62);
  transition: filter 0.25s var(--ease);
}
.foot__certs img:hover { filter: none; }

.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hair); color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.foot__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hair);
  /* extra room underneath so the floating action never sits on the
     "back to the surface" link at the very bottom of the page */
  padding-block: 1.5rem calc(5rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font: 500 0.75rem/1.6 var(--mono); color: var(--ink-mute);
}
.foot__base a:hover { color: var(--accent); }
.ascend { display: inline-flex; align-items: center; gap: 0.5rem; }
.ascend:hover { color: var(--aqua); }

/* Sites strip in footer */
.bases { display: grid; gap: 0.75rem; }
.bases a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--hair); border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: 500 0.8125rem/1 var(--mono); color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.bases a:hover { border-color: var(--aqua); color: var(--white); }
.bases em {
  font-style: normal; font-size: 0.5625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   20. Floating WhatsApp action
   -------------------------------------------------------------------------- */
.wa {
  position: fixed; z-index: 95;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.15rem; border-radius: 999px;
  background: #25d366; color: #04331a;
  font: 700 0.875rem/1 var(--body);
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.9);
  transition: transform 0.45s var(--ease), background 0.2s var(--ease);
}
.js .wa { transform: translateY(260%); }
.js .wa.is-in { transform: translateY(0); }
.wa:hover { background: #1fbe5a; }
.wa span { display: none; }
@media (min-width: 560px) { .wa span { display: inline; } }

/* --------------------------------------------------------------------------
   21. Section intro reveal
   -------------------------------------------------------------------------- */
.rise { opacity: 1; }
.js .rise { opacity: 0; transform: translateY(26px); }
.js .rise.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .rise.d1.is-in { transition-delay: 0.08s; }
.js .rise.d2.is-in { transition-delay: 0.16s; }
.js .rise.d3.is-in { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   22. Page headers (sub-pages)
   -------------------------------------------------------------------------- */
.phead {
  position: relative; isolation: isolate;
  min-height: clamp(460px, 62svh, 640px);
  display: grid; align-content: end;
  padding-top: calc(var(--nav-h) + var(--note) + 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.phead__media { position: absolute; inset: 0; z-index: -2; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait photo in a wide header: keep the diver's face in the band that shows */
.phead__media--face img { object-position: 50% 28%; }
.phead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(2, 20, 32, 0.95) 0%, rgba(3, 30, 46, 0.6) 40%, rgba(3, 30, 46, 0.35) 100%),
    linear-gradient(to right, rgba(2, 22, 36, 0.7), transparent 70%);
}
.phead h1 { font-size: clamp(2.5rem, 7vw, 5rem); text-transform: uppercase; }
.phead .lede { margin-top: 1.5rem; }
.crumb {
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 1.25rem;
}
.crumb a { color: var(--aqua); }
.crumb a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   23. Includes / feature list
   -------------------------------------------------------------------------- */
.inc {
  display: grid; gap: 0.75rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-top: 1.5rem;
}
.inc li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.9375rem; color: var(--ink-soft);
}
.inc li::before {
  content: ""; flex: none; margin-top: 0.55rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(92, 227, 212, 0.16);
}

.callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 122, 77, 0.4);
  background: linear-gradient(140deg, rgba(255, 122, 77, 0.12), rgba(2, 20, 32, 0.3));
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 780px) { .callout { grid-template-columns: 1fr auto; } }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; }
.callout p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 54ch; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */

/* Wherever the dive computer is on screen, it owns the right margin — the
   content column keeps clear of it rather than running underneath. */
@media (min-width: 1181px) {
  .hero > .wrap,
  .phead > .wrap,
  .band > .wrap,
  .foot > .wrap { padding-right: calc(var(--gut) + 7.5rem); }
}

@media (max-width: 1180px) {
  .hud { display: none; }
  .hud__bar { display: block; }
}
/* Spanish and French menu labels run longer, so the burger takes over a
   little earlier than the English header alone would need. */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 900px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__copy { max-width: 100%; }
}
@media (max-width: 560px) {
  :root { --nav-h: 72px; }
  .logo__img { height: 44px; }
  .logo { gap: 0.65rem; }
  .logo__place { padding-left: 0.65rem; letter-spacing: 0.16em; }
  .foot .logo__img { height: 62px; }
  .hdr__in .btn { display: none; }

  /* Seven items plus the CTA have to clear a phone viewport, so the drawer
     tightens rather than pushing "Book now" below the fold. */
  .drawer {
    padding-top: calc(var(--nav-h) + var(--note) + env(safe-area-inset-top, 0px) + 1.25rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .drawer a:not(.btn) { font-size: clamp(1.4rem, 6.4vw, 1.9rem); padding: 0.3rem 0; }
  .drawer .btn { margin-top: 1.25rem; }
  .drawer__foot { margin-top: 1.25rem; }

  .hero__stats { border-radius: 12px; }
  .hero__stats div { padding: 0.9rem; }
  .site { min-height: 380px; }
  .foot__base { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   25. Motion & contrast preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bubble, .life, .motes, .rays { display: none; }
  .rise { opacity: 1; transform: none; }
  .wa { transform: none; }
}

@media print {
  .ambient, .hud, .hud__bar, .wa, .hdr, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   26. Addenda
   -------------------------------------------------------------------------- */
.band--clip { overflow: hidden; }

/* Section-anchored marine life sits behind the copy, inside its own depth. */
.band .life { z-index: 0; }

/* Trust strip */
.trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--hair);
}
.trust img {
  height: 30px; width: auto; flex: none;
  filter: brightness(0) invert(1) opacity(0.7);
}
.trust li {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
  display: flex; gap: 0.6rem; align-items: center;
}
.trust li::before { content: "●"; color: var(--aqua); font-size: 0.4rem; }

/* Depth backdrop (homepage) — one photo per depth band behind the page.
   The sections go see-through and a tint in the depth colour, set by JS,
   keeps the copy readable and the descent getting darker. */
.deep { display: none; }
.js .deep {
  display: block;
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  background: var(--d18);
}
.deep img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6s var(--ease);
}
.deep img.is-on { opacity: 1; transform: scale(1); }
/* The jack ball is a dark shape in dark water; lift it a little through the tint */
.deep img[data-src$="bg-jacks"] { filter: brightness(1.3) contrast(1.15); }
.deep::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tint, rgba(8, 65, 94, 0.7));
  transition: background 0.3s linear;
}
.js .has-deep .band { background: transparent; }
/* Leaving the hero: carry its dark lower edge down and let it thin out,
   so the batfish come up out of the blue instead of switching on. */
.js .has-deep .zone-0 {
  background: linear-gradient(180deg,
    rgb(3, 22, 34) 0%, rgba(3, 26, 40, 0.78) 30%,
    rgba(4, 32, 48, 0.4) 65%, transparent 100%);
}

/* Google reviews — a sideways rail under the trust strip */
.reviews { margin-top: clamp(3rem, 6vw, 4.5rem); }
.reviews__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.25rem 2rem;
}
.reviews__head .eyebrow { margin-bottom: 0.75rem; }

.stars { color: #fbbc04; letter-spacing: 0.08em; }

.score {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  background: var(--glass); border: 1px solid var(--hair);
  border-radius: 999px; backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.score:hover { border-color: var(--hair-hi); transform: translateY(-2px); }
.score__g { flex: none; }
.score b {
  font: 500 1.5rem/1 var(--mono); color: var(--white);
  letter-spacing: -0.03em;
}
.score .stars { font-size: 1.05rem; }
.score__n {
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute);
}

.reviews__rail {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(84vw, 360px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-hi) transparent;
}
/* An expanded review grows on its own instead of stretching its neighbours. */
.reviews__rail:has(.is-open) { align-items: start; }
.reviews__rail::-webkit-scrollbar { height: 6px; }
.reviews__rail::-webkit-scrollbar-thumb { background: var(--hair-hi); border-radius: 999px; }

.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.35rem 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hair);
  border-radius: 18px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.review:hover { border-color: var(--hair-hi); background: rgba(255, 255, 255, 0.07); }
.review header { display: flex; align-items: center; gap: 0.8rem; }
.review__av {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(92, 227, 212, 0.14); border: 1px solid rgba(92, 227, 212, 0.34);
  font: 600 1rem/1 var(--display); color: var(--aqua);
}
.review h3 {
  font: 600 0.9375rem/1.2 var(--body); letter-spacing: 0;
  color: var(--white); font-variation-settings: normal;
}
.review header .stars { font-size: 0.8125rem; }
.review__txt { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.6; }
.review__txt p { margin-bottom: 0.6em; }
.js .review__txt:not(.is-open) {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden;
}
.review__more {
  margin-top: auto; align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 0.8125rem/1 var(--body); color: var(--aqua);
}
.review__more:hover { color: var(--white); }

.reviews__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem;
}
.reviews__nav { display: none; gap: 0.5rem; }
.js .reviews__nav { display: flex; }
.reviews__btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--hair-hi); color: var(--white);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.reviews__btn:hover { border-color: var(--accent); color: var(--accent); }
.reviews__btn:disabled { opacity: 0.3; cursor: default; border-color: var(--hair-hi); color: var(--white); }
.js .reviews__nav[hidden] { display: none; }

/* Blog posts — long-form text, set narrower than the bands so the lines
   stay readable, with the byline in the dive-computer mono. */
.post { margin-top: 1.75rem; max-width: 68ch; }
.post p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.75; }
.post p + p { margin-top: 1.1rem; }
.post__by {
  margin-top: 1.25rem;
  font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--aqua);
}

/* --------------------------------------------------------------------------
   Temporary notice bar (e.g. a changed departure time) at the top of the
   fixed header. Pages that carry one get the extra height via --note.
   -------------------------------------------------------------------------- */
:root:has(.notice) { --note: 2rem; }
.notice {
  margin: 0; min-height: var(--note);
  display: flex; align-items: center; justify-content: center;
  padding: 0.25rem var(--gut);
  background: var(--accent); color: var(--ink);
  font: 600 0.8rem/1.3 var(--body); text-align: center;
}
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: 0.4rem; }
@media (max-width: 700px) {
  :root:has(.notice) { --note: 2.9rem; }
  .notice { font-size: 0.72rem; }
}
