/* =========================================================================
   Triplio — static implementation of "Triplio Landing.dc.html"
   Token values, spacing and type scale are lifted verbatim from the design.
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #19212E;
  --navy:       #062D67;
  --blue:       #2676FF;
  --link:       #1257D6;
  --muted:      #6E6E6E;
  --border:     #B4B4B4;
  --line:       #E9E9E9;
  --surface:    #F7F7F7;
  --white:      #FFFFFF;
  --footer-bg:  #143344;
  --footer-ink: #C3D2D8;

  /* Shape */
  --r-card: 16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Rhythm */
  --shell-max: 1480px;
  --shell-pad: clamp(24px, 7vw, 120px);
  --inner-max: 1240px;
  --section-pad: clamp(72px, 10vw, 120px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .22s var(--ease);
}

/* ── Base ───────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Figtree, "Circular Std", Gilroy, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); }

::selection { background: var(--blue); color: var(--white); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.hero :focus-visible,
.stickynav :focus-visible,
.mobilemenu :focus-visible,
.footer :focus-visible { outline-color: var(--white); }
/* The booking bar is a white panel inside the dark hero, so the white ring
   above would land on white and disappear. */
.searchbar :focus-visible { outline-color: var(--ink); }
/* A photograph is an unpredictable backdrop — any single-colour ring vanishes
   on some frames. These controls get a white ring with an ink halo, legible on
   every image. The halo is a state indicator, not card decoration. */
.photocard :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 5px rgba(25, 33, 46, .6);
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-160%);
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-size: 1rem; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 24px rgba(6, 45, 103, .28);
  transition: transform var(--t);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

/* ── Layout primitives ──────────────────────────────────────────────────── */

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

[id] { scroll-margin-top: 92px; }

.section { background: var(--white); padding: var(--section-pad) 0; }
.section--surface { background: var(--surface); }
.section--flush-bottom { padding-bottom: 0; }

/* ── Type ───────────────────────────────────────────────────────────────── */

.h2 {
  margin: 32px 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.h3 {
  margin: 0;
  font-size: 1.25rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  color: var(--ink);
}
.h3--onDark { color: var(--white); }

.lead {
  margin: 40px 0 0;
  font-size: 1.125rem; font-weight: 500; line-height: 1.45;
  color: var(--ink);
}
.lead--onDark { margin: 0; color: rgba(255, 255, 255, .86); }

.body {
  margin: 0;
  font-size: 1rem; font-weight: 400; line-height: 1.6;
  color: var(--muted);
}

.pill {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--white); color: var(--muted);
  font-size: .875rem; font-weight: 500; line-height: 1;
  box-shadow: 0 2px 8px rgba(25, 33, 46, .06);
}
/* On the grey sections the chip sits flat, as in the design. */
.section--surface .pill { box-shadow: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center;
  height: 52px; padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn--sm   { height: 44px; padding: 0 22px; }
.btn--wide { padding: 0 28px; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy); color: var(--white); }

.btn--outline { background: var(--white); border-color: var(--border); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ink); color: var(--white); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none;
  border: none; border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.iconbtn--sm { width: 44px; height: 44px; }

.iconbtn--dark { background: var(--ink); color: var(--white); }
.iconbtn--dark:hover { background: var(--navy); color: var(--white); }

/* Hero "Browse trips" pair inverts instead of deepening. */
.iconbtn--dark-invert { background: var(--ink); color: var(--white); }
.iconbtn--dark-invert:hover { background: var(--white); color: var(--ink); }

.iconbtn--white { background: var(--white); color: var(--ink); }
.iconbtn--white:hover { background: var(--ink); color: var(--white); }

.btnrow { display: flex; align-items: center; gap: 8px; }

/* ── Brand + nav ────────────────────────────────────────────────────────── */

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { flex: none; }
.brand__word {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--white);
}
.brand__word--lg { font-size: 1.375rem; }
.brand:hover .brand__word { color: var(--white); }

.navlinks {
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.navlinks a {
  padding: 8px;
  font-size: 1rem; font-weight: 500; line-height: 1;
  color: rgba(255, 255, 255, .78);
  transition: color var(--t);
}
.navlinks a:hover,
.navlinks a.is-current { color: var(--white); }
.navlinks--solid { gap: 8px; }
.navlinks--solid a { color: var(--white); }

.navactions { display: flex; align-items: center; gap: 8px; flex: none; }

.menubtn {
  display: none;
  align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none;
  border: none; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white);
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.menubtn:hover { background: var(--navy); }
.menubtn__close { display: none; }
.menubtn[aria-expanded="true"] .menubtn__open { display: none; }
.menubtn[aria-expanded="true"] .menubtn__close { display: block; }
.menubtn--sm { width: 44px; height: 44px; background: var(--white); color: var(--ink); }
.menubtn--sm:hover { background: var(--ink); color: var(--white); }

/* ── Sticky nav ─────────────────────────────────────────────────────────── */

.stickynav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: var(--navy);
  transition: transform .38s var(--ease), opacity .38s var(--ease), visibility .38s;
}
.stickynav[data-hidden] {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}
.stickynav__inner {
  width: 100%; max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  height: 76px;
  display: flex; align-items: center; gap: 40px;
}

/* ── Mobile menu ────────────────────────────────────────────────────────── */

.mobilemenu {
  position: fixed; inset: 0 0 auto; top: 0; z-index: 90;
  background: var(--navy);
  padding: 14px var(--shell-pad) 32px;
  box-shadow: 0 24px 60px rgba(6, 45, 103, .45);
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* The panel is shorter than the viewport, so the hero underneath stayed
   clickable while the menu was open: keyboard focus was trapped, pointers were
   not. This pseudo-element extends the menu's own hit area across the rest of
   the screen and dims what it covers. A click on it targets .mobilemenu, which
   app.js reads as "close". */
.mobilemenu::after {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: rgba(6, 45, 103, .72);
}
.mobilemenu[hidden] { display: none; }
.mobilemenu__top {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 12px;
}
.mobilemenu__links { display: flex; flex-direction: column; gap: 4px; }
.mobilemenu__links a {
  padding: 14px 0;
  font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobilemenu__links a:hover { color: rgba(255, 255, 255, .78); }
.mobilemenu .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--navy); overflow: hidden; }

.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 45, 103, .55) 0%, rgba(6, 45, 103, .05) 32%, rgba(6, 45, 103, .92) 100%),
    linear-gradient(180deg, rgba(6, 45, 103, .34), rgba(6, 45, 103, .34));
}
.hero__shell { position: relative; }

.masthead { height: 108px; display: flex; align-items: center; gap: 40px; }

.hero__lede {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end;
  padding: clamp(40px, 6.5vw, 96px) 0 clamp(32px, 4.5vw, 56px);
}
.hero__title {
  flex: 1 1 520px; max-width: 640px; margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -.02em;
  color: var(--white);
  text-wrap: pretty;
}
.hero__aside {
  flex: 1 1 380px; max-width: 460px;
  display: flex; flex-direction: column; gap: 24px;
}

.wordmark-wrap { max-width: var(--inner-max); margin: 0 auto; overflow: hidden; }
.wordmark {
  font-size: clamp(4.5rem, 21.4vw, 20rem);
  font-weight: 700; line-height: .8; letter-spacing: -.03em;
  white-space: nowrap; text-align: center;
  color: rgba(255, 255, 255, .22);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .42);
  padding-bottom: .06em;
}

.searchband {
  max-width: var(--inner-max); margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 5vw, 72px);
}
.searchbar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  min-height: 96px; padding: 8px;
  border-radius: var(--r-lg);
  background: var(--white);
  /* Lighter than the design's 0 16px 40px /.18. The squint test put this bar
     ahead of the headline in visual weight — the emptiest element on the page
     shouting loudest. It still lifts; it no longer leads. */
  box-shadow: 0 10px 28px rgba(6, 45, 103, .14);
}
.searchbar__field {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
}
.searchbar__field:nth-child(1) { flex: 1 1 240px; }
.searchbar__field:nth-child(2) { flex: 1 1 200px; border-left: 1px solid var(--line); }
.searchbar__field:nth-child(3) { flex: 1 1 180px; border-left: 1px solid var(--line); }
.searchbar__icon { flex: none; color: var(--ink); }
.searchbar__text { display: flex; flex-direction: column; gap: 6px; }
.searchbar__label { font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.searchbar__value { font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--ink); }
.searchbar__go { flex: 0 0 auto; display: flex; align-items: center; padding: 0 0 0 16px; }

/* ── Section heads ──────────────────────────────────────────────────────── */

.sectionhead {
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: flex-end; justify-content: space-between;
}
.sectionhead__text { flex: 1 1 520px; max-width: 640px; }
.sectionhead__note { flex: 1 1 340px; max-width: 420px; }
.sectionhead--center {
  flex-direction: column; align-items: center; text-align: center;
  justify-content: flex-start;
}

/* ── Photo cards (destinations + blog) ──────────────────────────────────── */

.cardgrid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.photocard {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--line);
}
.photocard--tall { aspect-ratio: 3 / 4; }
.photocard--post { aspect-ratio: 4 / 5; }
.photocard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.photocard:hover img { transform: scale(1.04); }
.photocard__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, .55) 100%);
}
.photocard--post .photocard__scrim {
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, .55) 100%);
}
.photocard__go { position: absolute; top: 16px; right: 16px; }
.photocard__caption {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  pointer-events: none;
}
.photocard__meta {
  margin: 6px 0 0;
  font-size: .875rem; font-weight: 400; line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}
/* The caption is pointer-events:none so the photo stays the click target;
   the price line opts back in. It is the first moment a number appears on the
   page, and the answers to "what does that include / can I cancel" already
   exist in the FAQ — this is the shortest path to them. No new copy: the
   accessible name reuses the FAQ question verbatim. */
.photocard__meta a {
  pointer-events: auto;
  display: inline-block;
  padding: 4px 0; margin: -4px 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t);
}
.photocard__meta a:hover { text-decoration-color: rgba(255, 255, 255, .9); }

.photocard__date {
  margin: 0 0 6px;
  font-size: .8125rem; font-weight: 500; line-height: 1.4;
  color: rgba(255, 255, 255, .8);
}

/* ── About ──────────────────────────────────────────────────────────────── */

.split {
  display: flex; flex-wrap: wrap;
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
}
.split__text { flex: 1 1 460px; max-width: 560px; }
.split__text .body--measure { margin-top: 16px; max-width: 46ch; }

.bignum { margin-top: 48px; }
.bignum__value {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--blue);
}
.bignum .h3 { margin-top: 8px; }

.mosaic {
  flex: 1 1 420px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 16px;
}
.mosaic figure {
  position: relative; margin: 0;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--line);
}
.mosaic figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.mosaic__wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.mosaic__sq { aspect-ratio: 1 / 1; }

.statgrid {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.statcard { background: var(--white); border-radius: var(--r-card); padding: 32px; }
.statcard__value {
  font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
}
.statcard .h3 { margin-top: 8px; }
.statcard .body { margin-top: 16px; }

/* ── Trip film ──────────────────────────────────────────────────────────── */

.film {
  margin-top: 40px;
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--line);
}
.film img, .film > iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  object-fit: cover;
}
.film__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 45, 103, .18), rgba(6, 45, 103, .30));
}
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  border: none; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white);
  cursor: pointer;
  transition: background-color var(--t);
}
.film__play:hover:enabled { background: var(--navy); }
/* No data-video-src means there is no player behind the still. app.js already
   takes the button out of the tab order and hides it from screen readers; this
   makes the same fact visible, so a mouse user never clicks a live-looking
   control and gets nothing back. */
.film__play:disabled { cursor: default; opacity: .45; }
.film__badge { position: absolute; left: 24px; bottom: 24px; }

/* ── Testimonials ───────────────────────────────────────────────────────── */

.quotes {
  margin-top: 40px;
  columns: 3 300px; column-gap: 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.quote {
  break-inside: avoid;
  margin: 0 0 24px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
}
.quote blockquote { margin: 0; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-pill);
  background: var(--line); color: var(--ink);
  font-size: .8125rem; font-weight: 600;
}
.quote__who { display: flex; flex-direction: column; gap: 2px; }
.quote__name { font-size: .875rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.quote__role { font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  display: flex; flex-wrap: wrap;
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
}
.faq__intro { flex: 1 1 380px; max-width: 460px; }
.faq__note { margin-top: 40px; max-width: 38ch; }
.faq__cta { margin-top: 40px; }

.faq__list { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border-radius: var(--r-card); padding: 0 24px; }
.faq__q { margin: 0; font-weight: inherit; }
.faq__btn {
  width: 100%; min-height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  background: transparent; border: none; cursor: pointer;
  text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.6;
  color: var(--ink);
}
.faq__chev {
  flex: none; color: var(--ink);
  transition: transform .28s var(--ease);
}
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }

.faq__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__panel > div { overflow: hidden; }
.faq__panel[data-open] { grid-template-rows: 1fr; }
.faq__panel .body { padding: 0 0 24px; max-width: 60ch; }

/* ── Closing CTA ────────────────────────────────────────────────────────── */

.ctapanel {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex; flex-wrap: wrap;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.ctapanel__text { flex: 1 1 400px; max-width: 520px; }
.ctapanel .h2 { margin-top: 0; }
.ctapanel .body--measure { margin-top: 24px; max-width: 44ch; }
.ctapanel__actions { margin-top: 40px; }
.ctapanel__pics {
  flex: 1 1 380px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px;
}
.ctapanel__pics figure {
  position: relative; margin: 0; aspect-ratio: 3 / 4;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--line);
}
.ctapanel__pics img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer { position: relative; background: var(--footer-bg); overflow: hidden; }
.footer__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .22;
}
.footer__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 51, 68, .94) 0%, rgba(61, 67, 78, .94) 100%);
}
.footer__shell { position: relative; padding-block: 80px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); }
.footer__about { flex: 1 1 320px; max-width: 380px; }
.footer__blurb {
  margin: 24px 0 0; max-width: 36ch;
  font-size: .875rem; font-weight: 400; line-height: 1.5;
  color: var(--footer-ink);
}
.footer__col { flex: 1 1 160px; }
.footer__links {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.footer a:not(.brand) {
  font-size: .875rem; font-weight: 400; line-height: 1.5;
  color: var(--footer-ink);
  transition: color var(--t);
}
.footer a:not(.brand):hover { color: var(--white); }
/* Social and legal destinations this operator does not actually have. They stay
   readable and focusable, but drop the affordances that promise navigation. */
.footer a[data-placeholder] { cursor: default; }
.footer a[data-placeholder]:hover { color: var(--footer-ink); }
.footer__rule {
  margin: 56px 0 0; height: 1px; border: none;
  background: rgba(255, 255, 255, .1);
}
.footer__base {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer__copy {
  margin: 0;
  font-size: .875rem; font-weight: 400; line-height: 1.5;
  color: var(--footer-ink);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }

/* ── Reveal-on-scroll (driven by app.js) ────────────────────────────────── */

[data-reveal][data-pending] {
  opacity: 0;
  transform: translateY(24px);
}
/* Declaring the transition only on the settled state means adding
   [data-pending] snaps the element out of view, while removing it animates. */
[data-reveal]:not([data-pending]) {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

/* =========================================================================
   Responsive. The design carries no media queries — it relies on flex-wrap
   and clamp() — so everything below is implementation work: a real nav for
   small screens, and a search bar that reads correctly once it stacks.
   ========================================================================= */

@media (max-width: 1080px) {
  .masthead { gap: 24px; }
  .stickynav__inner { gap: 24px; }
}

@media (max-width: 980px) {
  .masthead > .navlinks,
  .stickynav__inner > .navlinks { display: none; }
  .menubtn { display: inline-flex; }
  .navactions { margin-left: auto; }
  /* The booking pair collapses into the menu, which carries its own CTA. */
  .masthead .btn--dark,
  .masthead .iconbtn--dark,
  .stickynav .btn--white,
  .stickynav .iconbtn--white { display: none; }
  .masthead { height: 88px; }
  .stickynav__inner { height: 68px; }
}

@media (max-width: 860px) {
  .searchbar { min-height: 0; }
  .searchbar__field { flex: 1 1 100% !important; border-left: none !important; }
  .searchbar__field + .searchbar__field { border-top: 1px solid var(--line); }
  .searchbar__go { width: 100%; padding: 12px 0 4px; }
  .searchbar__go .btn { width: 100%; justify-content: center; }
  .quotes {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

@media (max-width: 640px) {
  .hero__lede { gap: 32px; }
  .mosaic__wide { grid-column: span 2; }
  .footer__col { flex: 1 1 140px; }
  .footer__shell { padding-block: 64px; }
  .film__play { width: 68px; height: 68px; }
  .film__badge { left: 16px; bottom: 16px; }
  .photocard__caption { left: 20px; right: 20px; bottom: 20px; }
  .statcard { padding: 24px; }
}

@media (max-width: 420px) {
  .btnrow { flex-wrap: wrap; }
  .ctapanel__pics { grid-template-columns: 1fr; }
  .ctapanel__pics figure:last-child { display: none; }
}

/* ── Touch ergonomics ─────────────────────────────────────────────────────
   The design carries no touch context, so its footer link lists render 21px
   tall on a phone. The 12px gaps already carry them past WCAG 2.2 SC 2.5.8
   via the spacing exception, but not past the 44px a thumb actually wants.
   The padding absorbs the gap rather than adding to it, so each column grows
   about 10px per row instead of doubling. Keyed on pointer type as well as
   width — a touchscreen laptop has the same thumbs as a phone. */

@media (max-width: 640px), (pointer: coarse) {
  .footer__links { margin-top: 12px; gap: 0; }
  /* min-width catches the short labels — FAQ, Blog, Chile — whose text box is
     narrower than a fingertip. The box is transparent, so nothing moves. */
  .footer__links a { padding-block: 12px; min-width: 44px; }
  .footer__legal { gap: 0 24px; }
  .footer__legal a { padding-block: 12px; }
  .brand { padding-block: 9px; }
  /* The full nav survives down to 980px, so a touch tablet at 1024px still
     gets it at 32px tall. Same pattern, same reason. */
  .navlinks a { padding: 14px 8px; }
  /* Same treatment for the price link on the destination cards: the negative
     margin absorbs the padding, so nothing in the caption moves. */
  .photocard__meta a { padding: 12px 0; margin: -12px 0; }
}

@media (max-width: 640px) {
  /* The design hard-breaks this headline into two lines, which is a desktop
     instruction: at phone widths each half wraps again and leaves "Here"
     alone on a 69px line. Let the browser wrap the whole string and balance
     it. The desktop composition is untouched. */
  .hero__title br { display: none; }
  .hero__title { text-wrap: balance; }
}

/* ── Motion preferences ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal][data-pending] { opacity: 1; transform: none; }
  .photocard:hover img { transform: none; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */

@media print {
  .stickynav, .mobilemenu, .skip-link, .film__play { display: none !important; }
  .hero { background: none; }
  .hero__scrim, .footer__scrim { display: none; }
  [data-reveal][data-pending] { opacity: 1; transform: none; }
}
