/* ==========================================================================
   Fistral Beach Surf School — site stylesheet
   Hand-written for this site (not the generator's). Edit freely.

   Type:    Martian Mono (headlines, buttons, nav, labels: heavy caps, the
            Lapoint-style system chosen 16 Nov 2026) · Space Grotesk (text).
            Both OFL, self-hosted in /fonts.
   Colour:  the badge's navy, Fistral sand, Atlantic teal, and the amber the
            old site used for its buttons.
   ========================================================================== */

@font-face {
  font-family: 'Martian Mono';
  src: url('/fonts/martian-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 100% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: only light;

  --ink: #0c1838;
  --navy: #122669;
  --navy-2: #1d3584;
  --deep: #08122e;
  --muted: #4b5675;
  --sea: #0a6772;
  --sea-deep: #06434b;
  --sea-light: #d9ecea;
  --sand: #f5eee1;
  --sand-2: #ebdfc8;
  --sand-3: #dccaa8;
  --paper: #fbf8f1;
  --white: #ffffff;
  --sun: #f7b538;
  --sun-2: #ffc75a;
  --sun-ink: #a86a00;
  --coral: #f2603d;
  --line: rgba(12, 24, 56, 0.13);
  --line-light: rgba(255, 255, 255, 0.22);

  --font-display: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-text: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;
  /* The home hero is the screen less the ticker, so the ticker sits on the fold,
     but never shorter than --hero-floor: on a screen too short for the hero copy
     plus the ticker, the ticker drops below the fold instead of squeezing the copy. */
  --ticker-h: 64px;
  --hero-floor: 520px;
  --bar-h: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 1px 2px rgba(8, 18, 46, 0.06), 0 12px 32px -12px rgba(8, 18, 46, 0.25);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html[data-nav-locked='true'] {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Type ---------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-stretch: 100%;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 0.45em;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.62rem, 4.03vw, 3.7rem);
  font-stretch: 100%;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.3rem, 2.7vw, 2.46rem);
}

h3 {
  font-size: clamp(1.02rem, 1.4vw, 1.23rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-stretch: 100%;
}

h4 {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-stretch: 100%;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

em.serif,
h1 em,
h2 em,
h3 em,
.display em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-stretch: 100%;
  letter-spacing: inherit;
  /* Single-font headlines: an emphasised word keeps the face; only its colour may change. */
  font-size: 1em;
  line-height: inherit;
}

.swipe-hint svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 860px;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-paper {
  background: var(--paper);
}

.section-sand2 {
  background: var(--sand-2);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-deep {
  background: var(--deep);
  color: var(--white);
}

.section-sea {
  background: var(--sea-deep);
  color: var(--white);
}

.section-navy .lede,
.section-deep .lede,
.section-sea .lede {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  margin: 0;
}

.section-head .lede {
  margin: 0;
}

.section-head-center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-head-center .lede {
  margin-top: 18px;
}

.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  --btn-edge: var(--sun-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 3px 0 var(--btn-edge);
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--btn-edge);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-edge);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn-lg {
  min-height: 60px;
  padding: 18px 32px;
  font-size: 0.9rem;
}

.btn-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.76rem;
}

.btn-navy {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-edge: var(--deep);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn-ghost:hover,
.btn-ghost:active {
  box-shadow: inset 0 0 0 2px currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-edge: rgba(8, 18, 46, 0.35);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --- Announcement bar ---------------------------------------------------- */

.announce {
  position: relative;
  z-index: 60;
  height: var(--bar-h);
  background: var(--sun);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
}

.announce-track {
  position: relative;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

.announce a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 48px;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.announce a[data-active='true'] {
  opacity: 1;
  transform: none;
}

.announce a[data-leaving='true'] {
  opacity: 0;
  transform: translateY(-100%);
}

.announce a span.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--sun);
  padding: 3px 8px;
  border-radius: 999px;
}

.announce a u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.announce .short {
  display: none;
}

@media (max-width: 760px) {
  .announce .long {
    display: none;
  }
  .announce .short {
    display: inline;
  }
}

@media (max-width: 560px) {
  .announce {
    font-size: 0.84rem;
  }
  .announce a {
    padding: 0 16px;
  }
  .announce a span.tag {
    display: none;
  }
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: var(--sand);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease);
}

/* Over a full-bleed hero the header is transparent until the page scrolls. */
.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--bar-h);
  background: transparent;
  color: var(--white);
}

.has-hero.no-bar .site-header {
  top: 0;
}

.site-header[data-scrolled='true'] {
  background: rgba(245, 238, 225, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(8, 18, 46, 0.4);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.site-header[data-hidden='true'] {
  transform: translateY(-100%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-badge {
  width: 58px;
  height: 58px;
  flex: none;
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-badge {
  transform: rotate(-14deg);
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word b {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand-word small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0.85;
}

/* The nav sits midway between the brand and the actions, with equal gaps either side,
   rather than on the page centre: the brand is much wider than the actions, so
   page-centring left a visibly bigger gap on the right (Adam, 16 Nov). */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav > a,
.nav-group > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.74rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav > a:hover,
.nav-group > button:hover,
.nav-group[data-open='true'] > button {
  background: rgba(128, 128, 128, 0.14);
}

.nav > a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 currentColor;
  border-radius: 0;
}

.nav-group {
  position: relative;
}

.nav-group > button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.nav-group[data-open='true'] > button svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(760px, 90vw);
  transform: translate(-50%, 8px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(8, 18, 46, 0.45), 0 0 0 1px var(--line);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 8px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}

.mega.mega-2 {
  width: min(560px, 90vw);
  grid-template-columns: 1fr 0.95fr;
}

.mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-group[data-open='true'] .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) {
  .nav-group:hover .mega,
  .nav-group:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.mega-col h5 {
  margin: 4px 10px 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-col a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.mega-col a:hover {
  background: var(--sand);
}

.mega-col a b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.86rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.mega-col a span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

.mega-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 250px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  isolation: isolate;
}

.mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}

.mega-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 18, 46, 0) 30%, rgba(8, 18, 46, 0.85));
}

.mega-feature:hover img {
  transform: scale(1.05);
}

.mega-feature .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.mega-feature b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.05rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.mega-feature span {
  font-size: 0.86rem;
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px currentColor;
  opacity: 0.9;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.has-hero .site-header:not([data-scrolled='true']) .nav-toggle {
  background: var(--white);
  color: var(--ink);
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

/* --- Mobile menu --------------------------------------------------------- */

.mobile-menu {
  display: none;
}

@media (max-width: 1180px) {
  .nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: var(--sand);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
  }

  html[data-nav-locked='true'] .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.mobile-menu-top {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sand);
}

.mobile-close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  padding-top: 8px;
}

.mobile-nav details {
  border-bottom: 1px solid var(--line);
}

.mobile-nav summary,
.mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  text-transform: uppercase;
}

.mobile-nav > a {
  border-bottom: 1px solid var(--line);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--ease);
}

.mobile-nav details[open] summary svg {
  transform: rotate(45deg);
}

.mobile-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  padding: 0 0 18px;
}

.mobile-sub a {
  padding: 9px 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.25;
}

.mobile-sub a small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.mobile-menu-cta {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mobile-menu-cta .btn {
  width: 100%;
}

.mobile-contact {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

.mobile-contact a {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }
  .brand-badge {
    width: 48px;
    height: 48px;
  }
  .brand-word b {
    font-size: 1.2rem;
  }
  .brand-word small {
    font-size: 0.56rem;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-sub {
    grid-template-columns: 1fr;
  }
}

/* --- Hero (home) --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--ticker-h));
  min-height: max(var(--hero-floor), calc(100svh - var(--ticker-h)));
  margin-top: calc(var(--bar-h) * -1);
  padding-top: calc(var(--bar-h) + var(--header-h));
  display: flex;
  flex-direction: column;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
}

.no-bar .hero {
  margin-top: 0;
  padding-top: var(--header-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 18, 46, 0.55) 0%, rgba(8, 18, 46, 0) 26%),
    linear-gradient(0deg, rgba(8, 18, 46, 0.82) 0%, rgba(8, 18, 46, 0.25) 48%, rgba(8, 18, 46, 0) 70%),
    linear-gradient(90deg, rgba(8, 18, 46, 0.45) 0%, rgba(8, 18, 46, 0) 60%);
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(28px, 8svh, 96px);
}

/* Landscape screens (laptops, desktops, tablets on their side): the copy sits a
   little below centre rather than on the floor. The spare height around it is
   split --hero-above : --hero-below, so it holds the same place at any height.
   Portrait screens keep it on the floor: thumbs reach the buttons and the video
   stays clear above. */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .hero-body {
    --hero-above: 3;
    --hero-below: 2;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 32px;
  }
  .hero-body::before,
  .hero-body::after {
    content: '';
    flex: var(--hero-above) 1 0;
  }
  .hero-body::after {
    flex-grow: var(--hero-below);
  }
}

.hero-copy {
  max-width: 980px;
}

.hero h1 {
  font-size: clamp(1.74rem, min(4.7vw, 7svh), 4.37rem);
  margin-bottom: 0.55em;
  text-shadow: 0 2px 30px rgba(8, 18, 46, 0.25);
}

.hero h1 em {
  color: var(--sun);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  max-width: 46ch;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 24px;
  font-size: 0.92rem;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.proof-chip svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.proof-chip b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.proof-chip small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.2;
}

/* The live rating (reviews.js) — styled for dark and light grounds. */
.reviews-rating {
  display: inline-flex;
}

.reviews-rating[hidden] {
  display: none;
}

.reviews-rating-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reviews-stars {
  display: inline-flex;
  gap: 2px;
}

.reviews-stars .star {
  width: 18px;
  height: 18px;
  fill: var(--sun);
}

.reviews-stars .star-empty {
  fill: rgba(128, 128, 128, 0.35);
}

.reviews-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.reviews-count {
  font-size: 0.86rem;
  opacity: 0.85;
}

.hero-rating {
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* The circular badge stamp that turns slowly beside the hero copy. */
.stamp {
  position: absolute;
  right: calc(var(--gutter) + 6px);
  top: calc(var(--bar-h) + var(--header-h) + 3vh);
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 1;
  color: var(--white);
  z-index: 2;
  text-decoration: none;
}

.stamp svg.ring {
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.stamp-core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 0.95;
  transition: transform 0.4s var(--ease);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.stamp:hover .stamp-core {
  transform: scale(1.08) rotate(-6deg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  :root {
    --ticker-h: 56px;
    --hero-floor: 560px;
  }
  .stamp {
    display: none;
  }
  .hero-proof .proof-chip {
    display: none;
  }
  .hero-actions .btn-ghost {
    min-height: 52px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* --- Ticker ---------------------------------------------------------------- */

.ticker {
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  border-top: 3px solid var(--sun);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.ticker-item em {
  font-family: inherit;
  text-transform: inherit;
  font-weight: inherit;
  font-style: normal;
  color: var(--sun);
  letter-spacing: inherit;
}

.ticker-item svg {
  width: 26px;
  height: 26px;
  color: var(--sun);
  flex: none;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --- Location (home) ------------------------------------------------------ */

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.location-film {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sea-deep);
  box-shadow: var(--shadow);
}

.location-film video,
.location-film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-film .pin {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 18, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-film .pin b {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-stretch: 100%;
}

.location-film .pin svg {
  width: 22px;
  height: 22px;
  color: var(--sun);
  flex: none;
}

.location-copy h2 {
  margin-bottom: 0.35em;
}

@media (max-width: 900px) {
  .location {
    grid-template-columns: 1fr;
  }
  .location-film {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 520px) {
  .location-film {
    aspect-ratio: 4 / 5;
  }
}

/* Home: the decking photo (5:4) beside short copy, framed at its own shape at every
   width so nothing is cropped. (/fistral-beach keeps the portrait video frame above.) */
.location-film.location-photo {
  aspect-ratio: 5 / 4;
}

/* --- Cards --------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.tag-sun {
  background: var(--sun);
  color: var(--ink);
}

.tag-sea {
  background: var(--sea);
  color: var(--white);
}

.tag-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fbf6a;
  box-shadow: 0 0 0 3px rgba(31, 191, 106, 0.25);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(8, 18, 46, 0.45);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.card-level {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 18, 46, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-level i {
  width: 6px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.card-level i.on {
  background: var(--sun);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.card-meta .facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.card-meta .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  color: var(--ink);
  font-size: 1.1rem;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.card-meta .price small {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  margin-right: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .card-grid,
  .card-grid.cols-2,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Swipe rows on phones: a card row that scrolls sideways instead of stacking. */
@media (max-width: 620px) {
  .card-grid.swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 20px;
    scrollbar-width: none;
    gap: 14px;
  }
  .card-grid.swipe::-webkit-scrollbar {
    display: none;
  }
  .card-grid.swipe > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

.swipe-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 620px) {
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.season-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: -24px 0 34px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.97rem;
}

.season-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--sea);
}

.season-note a {
  font-weight: 700;
}

/* Audience tiles: big photo doors. */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.tile {
  position: relative;
  grid-column: span 4;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.4vw, 32px);
  isolation: isolate;
}

.tile.wide {
  grid-column: span 6;
}

.tiles-4 .tile {
  grid-column: span 3;
  min-height: 400px;
}

.tiles-4 .tile p {
  margin-bottom: 0;
  min-height: calc(2 * 1.45em);
}

.tile.tall {
  grid-row: span 2;
  min-height: 560px;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 18, 46, 0) 35%, rgba(8, 18, 46, 0.86) 100%);
  transition: opacity 0.4s;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile .tag {
  position: absolute;
  top: 20px;
  left: 20px;
}

.tile h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-stretch: 100%;
  margin-bottom: 8px;
}

.tile p {
  margin: 0 0 16px;
  max-width: 36ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.tile .tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tile .tile-links span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tile .go {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition: transform 0.35s var(--ease);
}

.tile:hover .go {
  transform: rotate(0deg);
}

.tile .go svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .tiles-4 .tile {
    grid-column: span 6;
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  .tiles-4 .tile {
    grid-column: span 6;
    min-height: 230px;
    padding: 16px;
  }
  .tiles-4 .tile h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .tiles-4 .tile p {
    font-size: 0.84rem;
    line-height: 1.35;
    min-height: calc(2 * 1.35em);
  }
  .tiles-4 .tile .go {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }
  .tiles-4 .tile .go svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 980px) {
  .tile,
  .tile.wide {
    grid-column: span 6;
  }
  .tile.tall {
    grid-row: auto;
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .tile,
  .tile.wide {
    grid-column: span 12;
    min-height: 340px;
  }
  .tile.tall {
    min-height: 340px;
  }
}

/* --- Split feature (coasteering, hire) ----------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.split.flip > :first-child {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media .main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow);
}

.split-media .main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .inset {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  bottom: -32px;
  right: -28px;
  border: 6px solid var(--sea-deep);
  box-shadow: var(--shadow);
}

.section-paper .split-media .inset {
  border-color: var(--paper);
}

.section-navy .split-media .inset {
  border-color: var(--navy);
}

.split-media .inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}

.ticks li svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  color: var(--sea);
}

.section-sea .ticks li svg,
.section-navy .ticks li svg,
.section-deep .ticks li svg {
  color: var(--sun);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.price-line b {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .split-media .main {
    aspect-ratio: 4 / 3;
  }
  .split-media .inset {
    right: 12px;
    width: 38%;
    bottom: -24px;
  }
}

/* --- Included strip ------------------------------------------------------ */

.included {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px 24px;
  text-align: center;
}

.included > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.included svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
  color: var(--sea);
  margin-bottom: 18px;
}

.included h3 {
  font-size: 0.98rem;
  margin: 0;
}

@media (max-width: 1100px) {
  .included {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .included {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .included svg {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }
}

/* --- Reviews ------------------------------------------------------------- */

/* Heading on its own line, the rating and Tripadvisor badges in a row beneath it. */
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}

.reviews-head h2 {
  margin: 0;
}

.review-sources {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-tc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.84rem;
  line-height: 1.15;
}

.badge-tc {
  text-decoration: none;
}

.badge-tc svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.badge-tc b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.quote:nth-child(3n + 2) {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.quote .q-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  color: var(--sun);
}

.quote .q-stars svg {
  width: 16px;
  height: 16px;
}

.quote blockquote {
  margin: 0 0 24px;
  font-family: var(--font-text);
  font-size: 1.15rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.quote figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.quote figcaption b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quote figcaption span {
  opacity: 0.7;
}

.quote .src {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 9px 5px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.7;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .quotes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar {
    display: none;
  }
  .quote {
    flex: 0 0 min(78vw, 380px);
    scroll-snap-align: start;
  }
}

/* --- Photo strip ---------------------------------------------------------- */

.strip {
  overflow: hidden;
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker 80s linear infinite;
}

.strip figure {
  margin: 0;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}

.strip figure:nth-child(even) {
  aspect-ratio: 1;
  align-self: flex-end;
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Big CTA -------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: end;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 18, 46, 0.86), rgba(8, 18, 46, 0.35));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.1vw, 2.8rem);
}

.cta-band h2 em {
  color: var(--sun);
}

.cta-band p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-text);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 1.1rem;
  line-height: 1.25;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .pm {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}

.faq summary .pm::before,
.faq summary .pm::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq summary .pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .pm {
  background: var(--sun);
  box-shadow: none;
}

.faq details[open] summary .pm::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq .answer {
  padding: 0 56px 24px 0;
  color: var(--muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.section-navy .faq,
.section-navy .faq details,
.section-deep .faq,
.section-deep .faq details {
  border-color: var(--line-light);
}

.section-navy .faq .answer,
.section-deep .faq .answer {
  color: rgba(255, 255, 255, 0.78);
}

/* --- Page hero (inner pages) --------------------------------------------- */

.page-hero {
  position: relative;
  min-height: clamp(460px, 72svh, 720px);
  margin-top: calc(var(--bar-h) * -1);
  padding-top: calc(var(--bar-h) + var(--header-h));
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
}

.no-bar .page-hero {
  margin-top: 0;
  padding-top: var(--header-h);
}

.page-hero > img,
.page-hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Focus points come from HERO_FOCUS in build.py, set per photo on the <img>. */
.page-hero > img {
  object-position: var(--pos, 50% 50%);
}

@media (max-aspect-ratio: 1/1) {
  .page-hero > img {
    object-position: var(--pos-m, var(--pos, 50% 50%));
  }
}

/* A phone frame shows a landscape photo's full height, so a subject in the middle of
   the photo sits behind the headline, and no focus point can move it. An optional
   per-photo zoom (HERO_FOCUS's third value, as --zoom-m) grows the photo upwards from
   its bottom edge, lifting the subject clear. Unset, the scale is 1 and nothing moves. */
@media (max-aspect-ratio: 1/1) and (max-width: 600px) {
  .page-hero > img {
    transform: scale(var(--zoom-m, 1));
    transform-origin: 50% 100%;
  }
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 18, 46, 0.6) 0%, rgba(8, 18, 46, 0) 30%),
    linear-gradient(0deg, rgba(8, 18, 46, 0.86) 0%, rgba(8, 18, 46, 0.2) 55%, rgba(8, 18, 46, 0.05) 100%);
}

.page-hero .wrap {
  padding-bottom: clamp(36px, 5vw, 64px);
}

.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 0.5em;
  font-size: clamp(1.6rem, 3.5vw, 3.36rem);
  text-shadow: 0 2px 30px rgba(8, 18, 46, 0.25);
}

.page-hero .crumbs {
  text-shadow: 0 1px 10px rgba(8, 18, 46, 0.6);
}

.page-hero .hero-sub {
  margin-bottom: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.6;
}

.page-head {
  padding: calc(var(--header-h) * 0.6 + 40px) 0 40px;
}

.page-head h1 {
  font-size: clamp(1.6rem, 3.6vw, 3.14rem);
}

.page-head .crumbs {
  color: var(--muted);
}

/* Fact pills below a page hero. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.pill svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- Activity page layout ------------------------------------------------- */

.activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.activity-main > section + section {
  margin-top: 56px;
}

.activity-main h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-stretch: 100%;
}

.activity-intro {
  font-size: 1.12rem;
  line-height: 1.6;
}

.activity-intro p:first-child {
  font-family: var(--font-text);
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.prose {
  color: var(--ink);
}

.prose p,
.prose li {
  color: #2d3754;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--sea);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.6rem;
  line-height: 0.9;
  color: var(--sea);
  letter-spacing: -0.04em;
}

.steps b {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.steps span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kit-box {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.kit-box h3 {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kit-box h3 svg {
  width: 22px;
  height: 22px;
  color: var(--sea);
}

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

.kit-box li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.97rem;
  line-height: 1.4;
}

.kit-box li:first-child {
  border-top: 0;
}

.callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--sea-light);
  color: var(--sea-deep);
  font-size: 0.98rem;
  line-height: 1.5;
}

.callout svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
}

.callout b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-size: 0.9rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.callout p {
  margin: 0;
}

.callout a {
  font-weight: 700;
}

.callout-sun {
  background: #fdf0d3;
  color: #5a3c00;
}

@media (max-width: 620px) {
  .kit {
    grid-template-columns: 1fr;
  }
}

/* Booking card (sticky, floats up over the hero on desktop). */
.booking {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  margin-top: clamp(-200px, -14vw, -120px);
  z-index: 5;
}

.booking-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(8, 18, 46, 0.5);
  overflow: hidden;
}

.booking-top {
  padding: 22px 24px 18px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.booking-top .from {
  font-size: 0.82rem;
  opacity: 0.8;
  line-height: 1;
}

.booking-top .from b {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 2.2rem;
  line-height: 0.9;
  opacity: 1;
  color: var(--white);
  letter-spacing: -0.04em;
}

.booking-top .per {
  font-size: 0.82rem;
  opacity: 0.8;
  text-align: right;
  line-height: 1.35;
}

.booking-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
}

.booking-tabs button {
  flex: 1;
  padding: 10px 10px 9px;
  border: 0;
  border-radius: 12px;
  background: var(--sand);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.booking-tabs button small {
  display: block;
  font-weight: 500;
  font-size: 0.74rem;
  opacity: 0.75;
  margin-top: 2px;
}

.booking-tabs button[aria-selected='true'] {
  background: var(--ink);
  color: var(--white);
}

.booking-pane {
  padding: 14px 12px 6px;
  min-height: 380px;
}

.booking-pane[hidden] {
  display: none;
}

.booking-pane iframe {
  width: 100%;
  border: 0;
  display: block;
}

.booking-foot {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.booking-foot div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.booking-foot svg {
  width: 16px;
  height: 16px;
  color: var(--sea);
  flex: none;
}

.booking-foot a {
  color: var(--ink);
  font-weight: 600;
}

.booking-enquire {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.booking-enquire p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.97rem;
}

.booking-enquire .btn {
  width: 100%;
}

@media (max-width: 1000px) {
  .activity {
    grid-template-columns: 1fr;
  }
  .booking {
    position: relative;
    top: 0;
    margin-top: 0;
    order: -1;
  }
}

/* Mobile "check dates" bar on activity pages. */
.dates-bar {
  display: none;
}

@media (max-width: 1000px) {
  .dates-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 18px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 18px 40px -12px rgba(8, 18, 46, 0.6);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease);
  }
  .dates-bar[data-show='true'] {
    transform: none;
  }
  .dates-bar .from {
    font-size: 0.78rem;
    opacity: 0.8;
    line-height: 1.1;
  }
  .dates-bar .from b {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 100%;
    font-size: 1.3rem;
    line-height: 1;
    opacity: 1;
  letter-spacing: -0.04em;
}
  .dates-bar .btn {
    min-height: 46px;
    padding: 12px 20px;
  }
}

/* Related products row. */
.related {
  border-top: 1px solid var(--line);
}

/* --- Simple content pages ------------------------------------------------- */

.content {
  max-width: 760px;
}

.content h2 {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  margin-top: 1.6em;
}

.content h3 {
  margin-top: 1.4em;
}

.content p,
.content li {
  color: #2d3754;
}

.legal h2 {
  font-size: 1rem;
  font-stretch: 100%;
  margin-top: 2em;
}

.legal h3 {
  font-size: 0.9rem;
}

.legal p,
.legal li {
  font-size: 0.98rem;
}

/* Two-column information blocks (find us, contact). */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.info svg.ico {
  width: 30px;
  height: 30px;
  color: var(--sea);
  margin-bottom: 16px;
}

.info h3 {
  font-size: 0.98rem;
}

.info p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 0.7em;
}

.info a {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sand-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 620px) {
  .map-frame {
    aspect-ratio: 4 / 5;
  }
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person {
  margin: 0;
}

.person .photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.person .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person .photo svg {
  width: 52%;
  height: auto;
  opacity: 0.9;
}

.person .photo .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.person h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.person .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
}

.person p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .team {
    grid-template-columns: 1fr 1fr;
  }
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.stats > div {
  padding: 28px 24px 26px 0;
}

.stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line-light);
}

.stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 0.9;
  color: var(--sun);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.stats span {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
  display: block;
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div:nth-child(n) {
    padding: 22px 16px 20px 0;
    border-left: 0;
  }
  .stats > div:nth-child(2n) {
    padding-left: 16px;
    border-left: 1px solid var(--line-light);
  }
  .stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-light);
  }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(64px, 8vw, 110px) 0 0;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.footer-hello {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-light);
}

.footer-hello h2 {
  color: var(--white);
  font-size: clamp(1.45rem, 3.4vw, 3rem);
  margin: 0;
}

.footer-hello h2 em {
  color: var(--sun);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid address {
  font-style: normal;
  line-height: 1.6;
}

.footer-hours {
  margin-top: 16px;
}

.footer-contact {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}

.footer-contact a {
  font-weight: 600;
  color: var(--white);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.socials a:hover {
  background: var(--sun);
  color: var(--ink);
  box-shadow: none;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-word {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  /* Sized so FISTRAL spans the viewport (~4.62em wide in Martian Mono 800 at this tracking). */
  font-size: 20.8vw;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
  margin: 0 0 -0.08em;
  user-select: none;
  pointer-events: none;
  /* Clip to its own box: the text's descent area hangs below it and otherwise added a
     strip of page background under the footer. The letters sit inside the box. */
  overflow: hidden;
}

.footer-legal {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line-light);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
  background: var(--deep);
}

/* Copyright, then the Powered by pill, centred (as on Wee Adventures). */
.footer-legal .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-legal p {
  margin: 0;
}

.footer-legal nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* A white pill, so the logo keeps its own colours and stands off the dark footer. It is
   Swellbase's badge, not the site's, so it sets the device's system font (the stack
   embed.js gives the floating Book button) rather than the site's type. */
.footer-legal .powered-by {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.footer-legal .powered-by:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.powered-by img {
  height: 32px;
  width: auto;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-hello {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Floating booking bar clearance (embed.js's phone bar). */
@media (max-width: 768px) and (hover: none) {
  .footer-legal {
    padding-bottom: 96px;
  }
}

/* --- Swellbase floating booking button -----------------------------------
 * embed.js mounts it in the operator's embed colours (a pale orange). `html #id`
 * out-specifies the embed's own `#id … !important`, so here it wears the site's
 * amber and display type instead.
 */
html #swellbase-floating-button {
  background: var(--sun) !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-stretch: 100% !important;
  font-size: 0.88rem !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  padding: 15px 24px !important;
  box-shadow: 0 3px 0 var(--sun-ink), 0 16px 30px -10px rgba(8, 18, 46, 0.5) !important;
}

/*
 * embed.js's own #id:hover swaps the shadow for a grey one and darkens the button with a
 * filter, and its #id:active resets the lift. Override every property it sets, or the
 * amber edge disappears on hover. Same press as the site's .btn: up 2px with a deeper
 * edge on hover, down 2px with a thin one while pressed. Hover devices only: the phone
 * bar is positioned BY its transform (as on Wee Adventures).
 */
@media (hover: hover) {
  html #swellbase-floating-button:hover {
    filter: none !important;
    background: var(--sun-2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 var(--sun-ink), 0 18px 32px -10px rgba(8, 18, 46, 0.5) !important;
  }

  html #swellbase-floating-button:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 var(--sun-ink), 0 10px 20px -10px rgba(8, 18, 46, 0.5) !important;
  }
}

@media (max-width: 768px) and (hover: none) {
  html #swellbase-floating-button {
    border-radius: 16px !important;
  }

  /* The bar sits 16px off the bottom (embed.js's own offset); pressing drops it 2px. */
  html #swellbase-floating-button:active {
    transform: translateY(calc(-100% - 14px - env(safe-area-inset-bottom))) !important;
    box-shadow: 0 1px 0 var(--sun-ink), 0 10px 20px -10px rgba(8, 18, 46, 0.5) !important;
  }
}

/* Over the home hero the header and hero already carry Book buttons. */
html #swellbase-floating-button {
  transition: opacity 0.3s, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s !important;
}

html.hero-in-view #swellbase-floating-button {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* The site's own bars take over on pages that have them. */
html[data-nav-locked='true'] #swellbase-floating-button,
html.has-dates-bar #swellbase-floating-button {
  display: none !important;
}

/* --- Reveal on scroll ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal][data-shown='true'] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --- 404 ------------------------------------------------------------------ */

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.notfound h1 {
  font-size: clamp(2.2rem, 7.8vw, 6.2rem);
}

/* --- Lesson comparison table ----------------------------------------------- */

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--white);
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare thead th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th a {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 0.92rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.compare td {
  color: var(--muted);
}

.compare td.num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.compare tbody tr:hover {
  background: var(--paper);
}

/* --- Hire grid --------------------------------------------------------------- */

/* The hire grid sits straight on the page: its frame is transparent. */
.hire-block {
  min-height: 420px;
}

.hire-block iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* --- Character: wave edges and sand grain ----------------------------------- */

/* A soft wave along the top of the dark bands, the same swell as the badge. */
.section-sea,
.section-navy,
.site-footer {
  position: relative;
}

.section-sea::before,
.section-navy::before,
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 23px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 23' preserveAspectRatio='none'%3E%3Cpath d='M0 23V14C70 14 100 3 165 3c85 0 110 15 200 15 80 0 105-4 155-4v9z'/%3E%3C/svg%3E") repeat-x left top / 520px 23px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 23' preserveAspectRatio='none'%3E%3Cpath d='M0 23V14C70 14 100 3 165 3c85 0 110 15 200 15 80 0 105-4 155-4v9z'/%3E%3C/svg%3E") repeat-x left top / 520px 23px;
  pointer-events: none;
}

/* --- Seasons (/fistral-beach) --------------------------------------------------
   Three columns of icon, title and paragraph, ruled like a table. Its own class: it
   used to borrow .included, which is now a centred row of icons without text. */
.seasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.seasons > div {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.seasons > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.seasons svg {
  width: 34px;
  height: 34px;
  color: var(--sea);
  margin-bottom: 16px;
}

.seasons h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.seasons p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .seasons {
    grid-template-columns: 1fr;
  }
  .seasons > div,
  .seasons > div + div {
    padding: 24px 0;
    border-left: 0;
  }
}

/* The faintest sand grain on the light grounds, so they read as sand, not beige. */
body,
.section-paper,
.section-sand2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

