/* Ethan Cookson Independent Travel Agency — styles
   Palette: Deep Harbour / Ocean / Ember / Paper / Mist / Slate
   Type: Marcellus (display) · Figtree (body) · IBM Plex Mono (utility) */

:root {
  --navy: #0e2a47;
  --navy-deep: #081c33;
  --ocean: #1273b8;
  --sky: #7db8e0;
  --ember: #c6402e;
  --ember-deep: #a93321;
  --paper: #fbfdfe;
  --mist: #eaf2f8;
  --ink: #12283e;
  --slate: #4e6b84;
  --line: #d8e4ee;
  --radius-pill: 999px;
  --radius-card: 14px;
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --header-h: 72px;
}

html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
/* Trademark marks sit beside brand names in headings — kept small so they read as a
   legal notice rather than part of the wordmark. */
h1 sup, h2 sup { font-size: 0.38em; top: -0.9em; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--ocean); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-pill); text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

.mono {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy-deep); color: #d9e8f5;
  text-align: center; padding: 9px 16px;
}
.announce .mono { color: #d9e8f5; }
.announce .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember); margin-right: 9px; vertical-align: 1px;
}
.announce a { color: #fff; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 253, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand svg { flex: none; }
.brand .name { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.15; }
.brand .sub { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  touch-action: manipulation;
}
.site-nav a:hover { color: var(--ocean); }
.site-nav a[aria-current="page"] { color: var(--ocean); border-bottom-color: var(--ocean); }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.97rem; text-decoration: none; text-align: center;
  border-radius: var(--radius-pill); padding: 12px 26px;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--mist); }

.menu-btn {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  touch-action: manipulation;
}
.menu-btn svg { display: block; stroke: var(--ink); }

/* Mobile menu */
@media (max-width: 900px) {
  /* backdrop-filter on the header makes it the containing block for
     position:fixed children, clipping the menu overlay — so no blur on mobile */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .site-nav {
    position: fixed; inset: 0; z-index: 150;
    flex-direction: column; gap: 10px;
    /* "safe" keeps centred content from being clipped past the top edge once the
       Holidays submenu is expanded on a short screen; overflow-y makes the
       overshoot reachable instead of stranded. */
    justify-content: safe center;
    overflow-y: auto;
    padding: 72px 16px 32px;
    background: var(--navy-deep);
    visibility: hidden; opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overscroll-behavior: contain;
  }
  .site-nav.open { visibility: visible; opacity: 1; }
  .site-nav a { color: #fff; font-family: var(--font-display); font-size: 1.6rem; border: 0; padding: 10px; }
  .site-nav a[aria-current="page"] { color: var(--sky); }
  .site-nav .btn { margin-top: 18px; font-family: var(--font-body); font-size: 1rem; }
  .site-nav .nav-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: 0; color: #fff; cursor: pointer; padding: 10px;
  }
  .menu-btn { display: block; }
  .header-cta { display: none; }
}
@media (min-width: 901px) { .site-nav .nav-close, .site-nav .btn { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 51, 0.82) 0%, rgba(8, 28, 51, 0.32) 45%, rgba(8, 28, 51, 0.12) 100%);
}
.hero .content { position: relative; z-index: 1; padding: 72px 0 84px; max-width: 720px; }
.hero .kicker { color: #f3c9c0; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(1.7rem, calc((100vw - 48px) / 9.8), 4.2rem);
  margin-bottom: 20px; color: #fff; text-wrap: initial;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; white-space: nowrap; }
.js .hero h1 .line > span { transform: translateY(110%); }
.js.loaded .hero h1 .line > span { transform: translateY(0); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js.loaded .hero h1 .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero .lede { font-size: 1.1rem; max-width: 56ch; color: #e6eef6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Itinerary rail (signature) ---------- */
.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: none;
}
@media (min-width: 1240px) { .home .rail { display: block; } }
.rail .track {
  position: relative; height: 320px; width: 2px; margin: 0 auto;
  background-image: linear-gradient(to bottom, var(--line) 55%, transparent 55%);
  background-size: 2px 9px;
}
.rail .plane {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  color: var(--ember);
  transition: top 0.15s linear;
}
@media (prefers-reduced-motion: reduce) { .rail .plane { transition: none; } }
.rail ol {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.rail a {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); text-indent: -9999px; overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.rail a.active { background: var(--ocean); transform: scale(1.35); }

/* ---------- Sections ---------- */
.section-pad { padding: 84px 0; }

.eyebrow { color: var(--ocean); display: block; margin-bottom: 14px; }
.stop-label { color: var(--slate); display: block; margin-bottom: 12px; }

h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

/* Trust */
.trust { background: var(--paper); }
.trust .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px; margin-top: 40px;
}
.trust .item h3 { font-size: 1.22rem; display: flex; align-items: center; gap: 12px; }
.trust .item svg { color: var(--ocean); flex: none; }
.trust .item p { color: var(--slate); margin: 0; }
.trust .extra {
  margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line);
  font-style: italic; color: var(--slate);
}

/* Half-screen journey panels */
.panel {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.panel .bg { position: absolute; inset: 0; }
.panel .bg img { width: 100%; height: 100%; object-fit: cover; }
.panel .bg::after { content: ""; position: absolute; inset: 0; }
.panel.from-left .bg::after { background: linear-gradient(100deg, rgba(8, 28, 51, 0.78) 0%, rgba(8, 28, 51, 0.42) 46%, rgba(8, 28, 51, 0.06) 78%); }
.panel.from-right .bg::after { background: linear-gradient(260deg, rgba(8, 28, 51, 0.78) 0%, rgba(8, 28, 51, 0.42) 46%, rgba(8, 28, 51, 0.06) 78%); }
.panel .content { position: relative; z-index: 1; max-width: 520px; padding: 72px 0; }
.panel.from-right .wrap { display: flex; justify-content: flex-end; }
.panel h2 { color: #fff; }
.panel p { color: #e6eef6; max-width: 46ch; }
.panel .stop-label { color: var(--sky); }
.panel .btn { margin-top: 8px; }

/* Destinations strip */
.destinations { background: var(--mist); }
.dest-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px);
  gap: 20px; overflow-x: auto; padding: 34px 24px 14px;
  scroll-snap-type: x mandatory; scroll-padding-left: 24px;
  max-width: 1208px; margin: 0 auto;
}
.dest-card {
  scroll-snap-align: start; border-radius: var(--radius-card); overflow: hidden;
  position: relative; aspect-ratio: 3 / 4; display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
}
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-card:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .dest-card img, .dest-card:hover img { transition: none; transform: none; } }
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 51, 0.78) 0%, rgba(8, 28, 51, 0.05) 55%);
}
.dest-card .label { position: relative; z-index: 1; padding: 20px; }
.dest-card .label .mono { color: var(--sky); display: block; margin-bottom: 4px; }
.dest-card .label strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }

/* Final CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdeeb; max-width: 60ch; margin-inline: auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 51, 0.8) 0%, rgba(8, 28, 51, 0.2) 70%);
}
.page-hero .content { position: relative; z-index: 1; padding: 60px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.4rem); }
.page-hero .kicker { color: var(--sky); }

.page-body { max-width: 720px; }
.page-body .lede { font-size: 1.16rem; color: var(--ink); }

.feature-list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.feature-list svg { color: var(--ember); flex: none; margin-top: 5px; }

.steps { counter-reset: step; list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 22px; }
.steps li { position: relative; padding-left: 62px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ocean);
  border: 1px solid var(--line); border-radius: 50%;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-weight: 600; }
.steps p { color: var(--slate); margin: 2px 0 0; }

.expect-card {
  background: var(--mist); border-radius: var(--radius-card);
  padding: 26px 28px; margin: 34px 0;
}
.expect-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.expect-card .feature-list { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
label .req { color: var(--ember); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: var(--paper);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ocean); outline-offset: 1px; border-color: var(--ocean);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--ember); }
textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ocean); }
.consent span { font-weight: 400; color: var(--slate); }

.form-note { font-size: 0.88rem; color: var(--slate); margin: 14px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: #e8f4ea; color: #1d5a2a; border: 1px solid #bfdcc6; }
.form-status.err { display: block; background: #fbeae7; color: #8c2415; border: 1px solid #eec7c0; }

.contact-ways { display: grid; gap: 14px; }
.way {
  display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.way:hover { border-color: var(--ocean); background: var(--mist); }
/* Not-yet-available contact route: shown for information, but must not look or
   behave like a working control (no hover affordance, not focusable — it is a div). */
.way.is-soon { border-style: dashed; color: var(--slate); cursor: default; }
.way.is-soon:hover { border-color: var(--line); background: transparent; }
.way.is-soon svg { color: var(--slate); }
.way svg { color: var(--ocean); flex: none; }
.way strong { display: block; font-weight: 600; }
.way span { color: var(--slate); font-size: 0.9rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cddd; margin-top: 84px; }
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding: 56px 0 40px;
}
@media (max-width: 820px) { .site-footer .top { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: #d9e8f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .tagline { font-family: var(--font-display); color: #fff; font-size: 1.25rem; margin: 10px 0 6px; }
.site-footer .fine {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0 28px; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
.site-footer .credit { font-size: 0.75rem; }
.site-footer .credit a { color: #8aa3b8; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 180; left: 16px; right: 16px; bottom: 16px;
  max-width: 520px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(8, 28, 51, 0.18);
  padding: 22px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.9rem; color: var(--slate); margin-bottom: 14px; }
.cookie-banner .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.88rem; }
.cookie-prefs { margin: 0 0 14px; display: none; }
.cookie-prefs.show { display: grid; gap: 10px; }
.cookie-prefs label { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 0.92rem; margin: 0; }
.cookie-prefs input { width: 18px; height: 18px; accent-color: var(--ocean); }
.cookie-prefs small { color: var(--slate); font-weight: 400; }

/* ---------- Nav dropdown ---------- */
.site-nav .has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 500; font-size: 0.95rem;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  touch-action: manipulation;
}
.sub-toggle:hover { color: var(--ocean); }
.sub-toggle svg { flex: none; transition: transform 0.18s ease; }
.has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
/* Parent gets the current-page treatment when a child page is open */
.has-sub[data-current] > .sub-toggle { color: var(--ocean); border-bottom-color: var(--ocean); }

.sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  min-width: 236px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 40px rgba(8, 28, 51, 0.15);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity 0.16s ease, visibility 0.16s ease, translate 0.16s ease;
}
/* Bridges the gap between toggle and panel so hover doesn't drop out */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub.open > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; }
}
.sub-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 0.93rem; border-bottom: 0; white-space: nowrap;
}
.sub-menu a:hover { background: var(--mist); color: var(--ocean); }
.sub-menu a[aria-current="page"] { background: var(--mist); border-bottom: 0; }

@media (max-width: 900px) {
  .site-nav .has-sub { flex-direction: column; align-items: center; width: 100%; }
  .sub-toggle {
    color: #fff; font-family: var(--font-display); font-size: 1.6rem;
    padding: 10px; border-bottom: 0;
  }
  .has-sub[data-current] > .sub-toggle { color: var(--sky); border-bottom: 0; }
  .sub-menu {
    position: static; transform: none; translate: none;
    opacity: 1; visibility: hidden; display: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 4px 0 8px; min-width: 0;
  }
  .sub-menu::before { display: none; }
  .has-sub.open > .sub-menu { display: grid; visibility: visible; }
  .sub-menu a {
    color: #fff; font-family: var(--font-display); font-size: 1.12rem;
    text-align: center; padding: 7px;
  }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: transparent; color: var(--sky); }
}

/* ---------- Gallery ---------- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  cursor: pointer; touch-action: manipulation;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--ocean); color: var(--ocean); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.gal-count { color: var(--slate); font-size: 0.9rem; margin: 18px 0 0; }

.gal-grid { columns: 3 262px; column-gap: 18px; margin-top: 24px; }
.gal-item { break-inside: avoid; margin: 0 0 18px; }
.gal-item[hidden] { display: none; }
.gal-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--radius-card); overflow: hidden;
  position: relative; line-height: 0;
}
.gal-btn img { width: 100%; height: auto; transition: transform 0.5s ease; }
.gal-btn:hover img { transform: scale(1.04); }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 30px 16px 14px; text-align: left; color: #fff; line-height: 1.3;
  background: linear-gradient(to top, rgba(8, 28, 51, 0.86) 0%, rgba(8, 28, 51, 0) 100%);
  font-family: var(--font-display); font-size: 1.05rem;
}
.gal-cap small {
  display: block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px;
}
.gal-empty { color: var(--slate); padding: 30px 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 28, 51, 0.95);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0; max-width: min(1100px, 92vw);
  display: flex; flex-direction: column; gap: 16px;
}
.lightbox img {
  max-width: 100%; max-height: 76vh; object-fit: contain;
  border-radius: 10px; margin-inline: auto;
}
.lightbox figcaption {
  color: #e6eef6; text-align: center;
  font-family: var(--font-display); font-size: 1.2rem;
}
.lightbox figcaption small {
  display: block; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px;
}
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, 0.13); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; touch-action: manipulation;
  transition: background-color 0.18s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 42px; height: 42px; }
}

/* Homepage gallery teaser */
.gal-teaser { background: var(--mist); }
.gal-teaser .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
@media (max-width: 760px) { .gal-teaser .strip { grid-template-columns: repeat(2, 1fr); } }
.gal-teaser .strip img {
  border-radius: var(--radius-card); aspect-ratio: 4 / 3;
  object-fit: cover; width: 100%;
}
.gal-teaser .btn { margin-top: 28px; }

/* Race destination grid (static grid, unlike the scrolling homepage strip) */
.dest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px; margin-top: 34px;
}
.dest-grid .dest-card { aspect-ratio: 4 / 5; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .line > span { transform: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .site-nav { transition: none; }
  .sub-menu, .sub-toggle svg, .lb-btn, .chip { transition: none; }
  .gal-btn img, .gal-btn:hover img { transition: none; transform: none; }
}
