/* ==========================================================================
   Garúa Getaways
   Layout: a field journal. Deep-green pages, torn sand-paper sheets,
   prints taped on, handwritten notes. Mobile first, desktop layered on top.
   Single brand look (palette from the GARÚA brand book), not theme-switched.
   ========================================================================== */
:root {
  /* Brand palette (Libro de Marca) */
  --green: #173C3B;        /* color principal */
  --ochre: #DE8F00;
  --petrol: #2B6277;
  --sand: #D9D1BD;
  --rust: #BF581B;
  /* Derived neutrals, all biased toward the brand green */
  --green-deep: #0F2928;
  --night: #0A1D1C;
  --paper: #E6DFCC;
  --cream: #F4EFE3;
  --film: #151515;
  --rust-deep: #A64B16;

  /* Type: Gloock stands in for Orelo Semiwide (display), Figtree for Halcom (body) */
  --f-display: "Gloock", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --f-italic: "Fraunces", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.35rem);
  --step-3: clamp(2rem, 1.5rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.7rem, 1.6rem + 5.2vw, 6.6rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 26px;
  --hdr-h: 64px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .23 0 0 0 0 .23 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 38C55 8 145 8 200 38S345 68 400 38V100H0Z'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (min-width: 700px) {
  :root {
    --gutter-l: max(32px, env(safe-area-inset-left, 0px));
    --gutter-r: max(32px, env(safe-area-inset-right, 0px));
    --hdr-h: 76px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter-l: max(48px, env(safe-area-inset-left, 0px));
    --gutter-r: max(48px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--green);
  color: var(--sand);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ochre); color: var(--green); }
.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;
}
.skip {
  position: fixed; z-index: 200; left: var(--gutter-l); top: -80px;
  padding: 10px 18px; border-radius: 999px; background: var(--ochre); color: var(--green);
  font-weight: 700; text-decoration: none; transition: top .25s var(--ease);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
@media (min-width: 1200px) {
  .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .7em;
  margin: 0 0 1.1rem;
  font: 700 var(--step--1)/1.2 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ochre);
}
.eyebrow::before { content: ""; width: 1.8em; height: 1.5px; background: currentColor; }
.eyebrow--ink { color: var(--green); }
.eyebrow--ink::before { background: var(--rust); height: 2px; }

.h2 {
  margin: 0 0 1.3rem;
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--step-4); line-height: .95; letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 i, .hero__title i, .about__text i, .dict i, .ftr__tag, .cr__title i, .flip {
  font-family: var(--f-italic); font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.h2 i { color: var(--ochre); }
.lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  font-size: var(--step-1); line-height: 1.45;
  color: color-mix(in srgb, var(--sand) 90%, transparent);
  text-wrap: pretty;
}
.lead--ink { color: color-mix(in srgb, var(--green) 88%, transparent); }
.hand { font-family: var(--f-hand); font-weight: 600; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ochre { background: var(--ochre); color: var(--green); }
.btn--ochre:hover { background: var(--sand); }
.btn--sand { background: var(--sand); color: var(--green); }
.btn--sand:hover { background: var(--ochre); }
.btn--ghost { border-color: color-mix(in srgb, var(--sand) 55%, transparent); color: var(--sand); }
.btn--ghost:hover { background: var(--sand); color: var(--green); border-color: var(--sand); }

/* ---------- Loader (kinetic) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--green); color: var(--sand);
  animation: loader-out .7s var(--ease) 2.4s forwards;
}
.loader__logo { width: min(48vw, 230px); height: auto; aspect-ratio: 184.3 / 90; }
.loader__bar { width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--sand) 22%, transparent); }
.loader__bar span { display: block; height: 100%; background: var(--ochre); transform-origin: left; transform: scaleX(0); animation: load-bar 1.4s var(--ease) .2s forwards; }
@keyframes load-bar { to { transform: scaleX(1); } }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  color: var(--sand);
  transition: transform .55s var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--green) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; transition: opacity .4s var(--ease);
}
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__in {
  max-width: 1264px; margin-inline: auto;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: block; color: var(--sand); border-radius: 6px; }
.brand__logo { display: block; height: 42px; width: auto; aspect-ratio: 184.3 / 90; }
.hdr__right { display: flex; align-items: center; gap: 8px; }

.lang {
  --i: 0;
  position: relative;
  display: inline-grid; grid-template-columns: repeat(3, 2.35rem);
  height: 38px; padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--sand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sand) 28%, transparent);
}
.lang button {
  position: relative; z-index: 1;
  border: 0; background: none; padding: 0; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--sand); cursor: pointer;
  transition: color .35s var(--ease);
}
.lang button[aria-pressed="true"] { color: var(--green); }
.lang__dot {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 2.35rem;
  border-radius: 999px; background: var(--sand);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .6s var(--spring);
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; min-width: 40px; padding: 0 12px;
  border: 0; border-radius: 999px;
  background: var(--sand); color: var(--green);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background-color .3s var(--ease);
}
.menu-btn:hover { background: var(--ochre); }
.menu-btn__label { display: none; }
.menu-btn__lines { display: grid; gap: 5px; width: 16px; }
.menu-btn__lines i { display: block; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3.4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-3.4px) rotate(-45deg); }
@media (min-width: 480px) {
  .menu-btn { padding: 0 16px 0 18px; }
  .menu-btn__label { display: inline; }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  overflow-y: auto;
  padding: calc(var(--hdr-h) + 40px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--green-deep); color: var(--sand);
  clip-path: circle(0% at calc(100% - 44px) 40px);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu__in { max-width: 1264px; min-height: 100%; margin-inline: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu__list a {
  display: inline-flex; align-items: center; gap: .35em;
  padding-block: .08em;
  font-family: var(--f-display); font-size: clamp(2.3rem, 1.4rem + 5vw, 5.6rem); line-height: 1.08;
  text-decoration: none;
  transition: color .3s var(--ease), transform .5s var(--ease);
}
.menu__list a:hover { color: var(--ochre); transform: translateX(10px); }
.menu__list svg { width: .62em; height: .5em; color: var(--ochre); }
.menu.is-open .menu__list li { animation: menu-in .8s var(--ease) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: .06s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: .12s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: .18s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: .24s; }
@keyframes menu-in { from { transform: translateY(40px); opacity: 0; } }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .95rem; }
.menu__ig { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 600; }
.menu__ig svg { width: 22px; height: 22px; }
.menu__where { margin: 0; opacity: .75; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--green-deep); color: var(--sand);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 50%;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.6s ease;
}
.hero__img:nth-child(2) { object-position: 66% 50%; }
.hero__img:nth-child(3) { object-position: 74% 50%; }
.hero__img:nth-child(4) { object-position: 52% 50%; }
.hero__img.is-active { opacity: 1; animation: ken-burns 7.5s ease-out both; }
@keyframes ken-burns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--green-deep) 60%, transparent) 0%,
      transparent 22%, transparent 34%,
      color-mix(in srgb, var(--green-deep) 72%, transparent) 64%,
      var(--green-deep) 100%);
}
.hero__note {
  position: absolute; z-index: 1;
  top: calc(var(--hdr-h) + 28px + env(safe-area-inset-top, 0px));
  right: var(--gutter-r);
  display: flex; flex-direction: column; align-items: flex-end;
  margin: 0; font-size: 1.55rem; color: var(--cream);
  transform: rotate(-5deg);
  text-shadow: 0 2px 14px color-mix(in srgb, var(--night) 55%, transparent);
}
.hero__note svg { width: 62px; height: 46px; transform: scaleX(-1) rotate(8deg); margin-right: 40px; }
.hero__content { padding-top: calc(var(--hdr-h) + 120px); }
.hero__title {
  margin: 0 0 .3em;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.8rem, 1rem + 12.4vw, 12.6rem);
  line-height: .86; letter-spacing: -.025em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero__title .line > span { display: inline-block; }
.hero__title b { font-family: var(--f-body); font-weight: 400; font-size: .62em; vertical-align: .14em; color: var(--ochre); }
.hero__title i { letter-spacing: -.01em; }
.hero__flip {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em;
  margin: 0 0 .9rem;
  font-size: var(--step-1); font-weight: 500;
}
.flip { display: inline-grid; font-size: 1.32em; line-height: 1.15; color: var(--ochre); perspective: 500px; }
.flip__word { grid-area: 1 / 1; white-space: nowrap; }
.flip .ch { display: inline-block; transform-origin: 50% 60%; backface-visibility: hidden; }
.hero__lead { margin: 0 0 1.5rem; max-width: 40ch; color: color-mix(in srgb, var(--sand) 92%, transparent); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__bar {
  display: flex; align-items: center; gap: 14px;
  padding-top: 26px; padding-bottom: 70px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero__dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hero__dots li { width: 30px; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--sand) 28%, transparent); }
.hero__dots i { display: block; width: 100%; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; }
.hero__dots li.is-done i { transform: scaleX(1); }
.hero__dots li.is-active i { animation: dot-fill 5.6s linear forwards; }
.hero.is-paused .hero__dots i, .hero.is-paused .hero__img { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__cap { margin: 0; opacity: .85; }

/* ---------- Marquee band (two crossing tapes) ---------- */
.band {
  position: relative; z-index: 3;
  margin-top: -48px; padding-block: 18px 30px;
  overflow: clip;
  background: linear-gradient(180deg, transparent 0 48px, var(--paper) 48px);
  pointer-events: none;
}
.band__row { width: 112%; margin-left: -6%; overflow: hidden; white-space: nowrap; }
.band__row--a {
  position: relative; z-index: 2;
  padding-block: .75rem;
  background: var(--ochre); color: var(--green);
  transform: rotate(-3deg);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--night) 22%, transparent);
}
.band__row--b {
  margin-top: -6px; padding-block: .55rem;
  background: var(--green); color: var(--sand);
  transform: rotate(1.6deg);
}
.band__track {
  display: inline-flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.band__track--rev { animation-direction: reverse; animation-duration: 44s; }
.band__track span { font-family: var(--f-display); font-size: clamp(1.7rem, 1.25rem + 2vw, 3.2rem); line-height: 1.05; }
.band__track .hand { font-family: var(--f-hand); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem); }
.band__track svg { width: clamp(2rem, 1.6rem + 1.6vw, 3.2rem); height: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); }
.band__row--b svg { color: var(--ochre); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Paper sheets ---------- */
.paper { position: relative; isolation: isolate; background: var(--paper); color: var(--green); }
.paper::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: .32; mix-blend-mode: multiply;
}
.tear { position: absolute; left: 0; z-index: 2; display: block; width: 100%; height: clamp(14px, 2.6vw, 34px); color: var(--paper); pointer-events: none; }
.tear path { fill: currentColor; }
.tear--bottom { top: 100%; margin-top: -1px; }
.tear--top { bottom: 100%; margin-bottom: -1px; }

/* ---------- About ---------- */
.about { padding-block: clamp(40px, 7vw, 110px) clamp(84px, 11vw, 170px); }
.about__in { display: grid; gap: clamp(32px, 5vw, 72px); }
.about__head { display: grid; gap: 14px; }
.dict {
  margin: 0; max-width: 42ch;
  padding-left: 14px; border-left: 2px solid var(--rust);
  font-size: .98rem; color: color-mix(in srgb, var(--green) 85%, transparent);
}
.dict b { font-family: var(--f-display); font-weight: 400; font-size: 1.25em; color: var(--green); }
.about__text {
  margin: 0; max-width: 25ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.85rem, 1rem + 3.7vw, 4.7rem); line-height: 1.1; letter-spacing: -.012em;
  text-wrap: pretty;
}
.about__text .w { display: inline; }
.pill {
  display: inline-block; vertical-align: middle;
  width: 2.15em; height: .95em; margin-inline: .06em; padding: 0;
  border: 0; border-radius: .48em; overflow: hidden;
  background: var(--green); font: inherit;
  transform: translateY(-.07em) rotate(-3deg);
  box-shadow: 0 0 0 3px var(--paper), 0 8px 18px color-mix(in srgb, var(--green) 25%, transparent);
  transition: width .75s var(--ease), height .75s var(--ease), border-radius .75s var(--ease), margin .75s var(--ease), box-shadow .3s var(--ease);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
/* tap a photo: it grows inside the sentence and the words reflow around it */
button.pill { cursor: zoom-in; }
button.pill:hover { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ochre), 0 8px 18px color-mix(in srgb, var(--green) 25%, transparent); }
button.pill.is-open { width: min(6.2em, 100%); height: 4.2em; margin: .1em .08em; border-radius: .26em; cursor: zoom-out; }
.about__hint { margin: 4px 0 0; font-size: 1.5rem; color: var(--rust-deep); transform: rotate(-3deg); transform-origin: left; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.pillar { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1.5px solid color-mix(in srgb, var(--green) 22%, transparent); }
.pillar__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--sand); }
.pillar__icon svg { width: 58%; height: 58%; transition: transform .7s var(--spring); }
.pillar:hover .pillar__icon svg { transform: rotate(-12deg) scale(1.12); }
.pillar__icon--rust { background: var(--rust); }
.pillar__icon--petrol { background: var(--petrol); }
.pillar__icon--green { background: var(--green); }
.pillar h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1; }
.pillar p { margin: 0; max-width: 34ch; }

/* ---------- Pilates: sticky stacking cards ---------- */
.pilates { position: relative; background: var(--green-deep); padding-block: clamp(96px, 12vw, 180px) clamp(80px, 10vw, 150px); }
.pilates__grid { display: grid; gap: 44px; }
.pilates__note { margin: 0; font-size: 1.9rem; color: var(--ochre); transform: rotate(-4deg); transform-origin: left; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.card {
  position: sticky;
  top: calc(var(--hdr-h) + 16px + env(safe-area-inset-top, 0px) + var(--i) * 14px);
  height: min(74svh, 640px); min-height: 440px;
}
.card__in {
  --dim: 0;
  position: relative; height: 100%; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--green); transform-origin: 50% 0%;
  box-shadow: 0 -14px 40px color-mix(in srgb, var(--night) 45%, transparent);
}
.card__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:nth-child(1) img { object-position: 42% 50%; }
.card:nth-child(2) img { object-position: 70% 50%; }
.card:nth-child(4) img { object-position: 72% 50%; }
.card--film .card__in { background: var(--film); }
.card__in::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--green-deep) 92%, transparent) 100%);
}
.card__in::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--night); opacity: var(--dim); pointer-events: none; }
.card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 8px; padding: 22px; }
.card h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: .95; text-wrap: balance; }
.card p { margin: 0; max-width: 34ch; color: color-mix(in srgb, var(--sand) 92%, transparent); }
.tag {
  justify-self: start;
  padding: .45em .95em; border-radius: 999px;
  background: var(--sand); color: var(--green);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Activities bento (staggered grid) ---------- */
.acts { background: var(--green); padding-block: clamp(80px, 11vw, 160px) clamp(96px, 12vw, 180px); }
.acts__head { margin-bottom: clamp(32px, 5vw, 64px); }
.bento {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(176px, 48vw, 250px); grid-auto-flow: dense;
  gap: 10px;
}
.tile {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; align-items: flex-end;
  border-radius: 22px;
}
.tile--hike { grid-row: span 2; }
.tile--slow { grid-column: span 2; }
.tile--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--green-deep) 88%, transparent)); }
.tile:hover img { transform: scale(1.06); }
.tile__label { display: grid; gap: 4px; padding: 16px; color: var(--sand); }
.tile__label svg { width: 34px; height: 24px; margin-bottom: 4px; color: var(--ochre); }
.tile h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1; }
.tile p { margin: 0; font-size: .92rem; font-weight: 500; line-height: 1.35; }
.tile--color .tile__label { color: var(--cream); }
.tile--petrol { background: var(--petrol); }
.tile--rust { background: var(--rust-deep); }
.tile--ochre { background: var(--ochre); }
.tile--ochre .tile__label { color: var(--green); }
.tile__big {
  position: absolute; top: 16px; right: 14px; z-index: -1;
  width: 56%; height: 46%;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  transition: transform .9s var(--spring);
}
.tile--ochre .tile__big { color: var(--cream); }
.tile:hover .tile__big { transform: rotate(-10deg) scale(1.1); }

/* ---------- Dolomites ---------- */
.dolo { padding-block: clamp(64px, 9vw, 140px) clamp(64px, 9vw, 130px); }
.dolo__head { position: relative; display: grid; gap: 12px; margin-bottom: clamp(36px, 6vw, 80px); }
.dolo__title {
  position: relative; z-index: 2;
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, .6rem + 13.4vw, 13.5rem); line-height: .84; letter-spacing: -.035em;
  color: var(--green);
}
.dolo__meta { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dolo__head .lead { position: relative; z-index: 2; margin-bottom: 0; }
.dolo__hint { display: none; }
.trail {
  position: absolute; z-index: 1;
  width: clamp(120px, 13vw, 190px); aspect-ratio: 3 / 4; object-fit: cover;
  border: 6px solid var(--cream); border-radius: 4px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--green) 30%, transparent);
  pointer-events: none;
}

.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; align-items: start; }
.print {
  --r: 0deg; --ar: 3 / 4;
  position: relative; margin: 0;
  padding: 8px 8px 10px;
  background: var(--cream);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--green) 22%, transparent);
  rotate: var(--r);
}
.print img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.print figcaption { padding-top: 7px; text-align: center; font-size: 1.4rem; color: var(--green); }
.print::before {
  content: ""; position: absolute; z-index: 1; top: -11px; left: 50%;
  width: 74px; height: 22px; translate: -50% 0; rotate: -4deg;
  background: color-mix(in srgb, var(--ochre) 50%, transparent);
  mix-blend-mode: multiply;
}
.print--film { background: var(--film); padding: 4px 4px 8px; }
.print--film img { aspect-ratio: auto; }
.print--film figcaption { color: var(--sand); }
.print--1 { grid-column: 1 / -1; --r: -1.5deg; --ar: 4 / 3; }
.print--2 { --r: 2.5deg; }
.print--3 { --r: -3deg; margin-top: 40px; }
.print--4 { --r: -2deg; }
.print--5 { --r: 3deg; margin-top: 30px; }
.print--6 { grid-column: 1 / -1; justify-self: center; width: 62%; --r: -2deg; }

.roll { margin-top: clamp(64px, 9vw, 120px); }
.roll__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.roll__head .eyebrow { margin: 0; }
.roll__hint { margin: 0; font-size: 1.5rem; color: var(--rust-deep); }
.for-coarse { display: none; }
@media (pointer: coarse) { .for-fine { display: none; } .for-coarse { display: inline; } }
.roll__track {
  display: flex; gap: 14px;
  margin-top: 18px;
  padding: 8px var(--gutter-r) 22px var(--gutter-l);
  scroll-padding-inline: var(--gutter-l);
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.roll__track::-webkit-scrollbar { display: none; }
.roll__track:focus-visible { outline-offset: -4px; }
.roll__track.is-dragging { cursor: grabbing; }
.roll__track figure { margin: 0; flex: none; height: clamp(260px, 72vw, 440px); }
.roll__track img {
  width: auto; height: 100%; max-width: none;
  border-radius: 14px; object-fit: cover;
  user-select: none; -webkit-user-drag: none;
  transition: transform .8s var(--ease);
}
.roll__track figure:hover img { transform: rotate(-1.5deg) scale(1.02); }
@media (pointer: coarse) { .roll__track { scroll-snap-type: x mandatory; } .roll__track figure { scroll-snap-align: start; } }
.roll__progress { height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--green) 16%, transparent); }
.roll__progress i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(var(--p, .12)); transition: transform .2s linear; }

/* ---------- Community: fan of prints ---------- */
.crew { background: var(--green); padding-block: clamp(110px, 13vw, 190px) clamp(80px, 10vw, 150px); overflow-x: clip; }
.crew__grid { display: grid; gap: 40px; }
.fan { position: relative; height: clamp(330px, 92vw, 540px); }
.polaroid {
  position: absolute; inset: 0;
  width: min(50%, 270px); height: fit-content; margin: auto;
  padding: 8px 8px 34px;
  background: var(--cream);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--night) 45%, transparent);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid:nth-child(1) { transform: translate(-48%, 6%) rotate(-11deg); }
.polaroid:nth-child(2) { transform: translate(-16%, -6%) rotate(-3deg); }
.polaroid:nth-child(3) { transform: translate(16%, -2%) rotate(4deg); }
.polaroid:nth-child(4) { transform: translate(48%, 8%) rotate(11deg); }

/* ---------- Costa Rica: flat brand poster + boarding pass ----------
   Only the five brand colors, flat, in pairings the brand book marks as correct:
   brand colors on sand, sand on green. No ochre on petrol (listed as incorrect). */
.cr {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(96px, 12vw, 170px) clamp(250px, 27vw, 360px);
  background: var(--sand); color: var(--green);
}
.cr__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cr__sun {
  --sun: clamp(220px, 38vw, 500px);
  --sun-x: 50%;
  position: absolute; left: calc(var(--sun-x) - var(--sun) / 2); bottom: calc(70px - var(--sun) * .3);
  width: var(--sun); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--ochre);
}
/* retro sunset: sand bands cut across the lower part of the sun */
.cr__sun::after {
  content: ""; position: absolute; left: 0; right: 0; top: 34%; bottom: 0;
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--sun) * .06), var(--sand) calc(var(--sun) * .06) calc(var(--sun) * .08));
}
.cr__wave {
  --h: 120px; --t: 12s;
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--h);
  -webkit-mask: var(--wave) 0 0 / 420px 100% repeat-x; mask: var(--wave) 0 0 / 420px 100% repeat-x;
  animation: wave-x var(--t) linear infinite;
}
.cr__wave--1 { --h: 150px; --t: 18s; bottom: 64px; background: var(--rust); }
.cr__wave--2 { --h: 116px; --t: 12s; bottom: 30px; background: var(--petrol); animation-direction: reverse; }
.cr__wave--3 { --h: 80px; --t: 8s; background: var(--green); }
@keyframes wave-x { to { -webkit-mask-position: 420px 0; mask-position: 420px 0; } }

.cr__in { position: relative; display: grid; gap: clamp(30px, 5vw, 56px); }
.cr__head { position: relative; }
.cr__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(4.4rem, 1rem + 17vw, 11rem); line-height: .82; letter-spacing: -.035em;
  color: var(--petrol);
}
.cr__title span, .cr__title i { display: block; }
.cr__title i { padding-left: .5em; color: var(--rust); }

.stamp {
  position: absolute; right: 0; bottom: -6px;
  width: clamp(92px, 12vw, 148px); aspect-ratio: 1;
  color: var(--rust); rotate: -14deg;
}
.stamp svg:first-child { width: 100%; height: 100%; }
.stamp text { font: 700 15px/1 var(--f-body); letter-spacing: .2em; fill: currentColor; }
.stamp__icon { position: absolute; left: 32%; top: 32%; width: 36%; height: 36%; }

.ticket {
  --stub: 96px;
  --notch: 13px;
  position: relative;
  display: grid; grid-template-rows: auto var(--stub);
  background: var(--green); color: var(--sand);
  border-radius: 20px;
  rotate: -1.2deg;
  box-shadow: 0 24px 44px color-mix(in srgb, var(--green) 28%, transparent);
}
.ticket__main { display: grid; gap: 18px; min-width: 0; padding: 22px 22px 26px; }
.ticket__brand {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.ticket__brand svg { width: 30px; height: 22px; }
.ticket__kind { margin-left: auto; padding: .4em .85em; border: 1.5px solid currentColor; border-radius: 999px; }
@media (max-width: 479px) { .ticket__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.ticket__route {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px;
  padding-block: 16px;
  border-block: 1px solid color-mix(in srgb, var(--sand) 26%, transparent);
}
.ticket__route .field:last-child { text-align: right; }
.ticket__arrow { width: 26px; height: 26px; margin-bottom: .2em; color: var(--ochre); }
.ticket__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket__meta .field:last-child .field__v { color: var(--ochre); }
.field { display: grid; gap: 5px; min-width: 0; margin: 0; }
.field__k { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--sand) 72%, transparent); }
.field__v { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1.1vw, 2rem); line-height: 1.02; }
.field__v--sm { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.ticket__lead { margin: 0; max-width: 44ch; color: color-mix(in srgb, var(--sand) 92%, transparent); text-wrap: pretty; }
.ticket__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket__stub {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  border-top: 2px dashed color-mix(in srgb, var(--sand) 40%, transparent);
}
/* perforation notches, punched in the section's sand */
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; top: calc(var(--notch) * -1 - 1px);
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--sand);
}
.ticket__stub::before { left: calc(var(--notch) * -1); }
.ticket__stub::after { right: calc(var(--notch) * -1); }
/* Calendario icon, as drawn in the brand book: ochre disc, sand spiral */
.ticket__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ochre); color: var(--sand); }
.ticket__icon svg { width: 58%; height: 58%; animation: spin 18s linear infinite; }
.ticket__date { display: flex; align-items: baseline; gap: .5em; font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.ticket__mon { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.circled { position: relative; display: inline-block; padding-inline: .1em; }
.circled svg { position: absolute; left: -16%; top: -26%; width: 132%; height: 152%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--ochre); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: clip; isolation: isolate; background: var(--green); padding-block: 64px calc(120px + env(safe-area-inset-bottom, 0px)); }
.ftr__in { display: grid; gap: 36px; }
.ftr__logo { display: block; width: min(100%, 720px); height: auto; aspect-ratio: 184.3 / 90; color: var(--sand); }
.ftr__tag { margin: 0; max-width: 26ch; font-size: var(--step-2); line-height: 1.15; }
.ftr__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.ftr__cols > div:last-child { grid-column: 1 / -1; }
.ftr h3 { margin: 0 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.ftr__cols p, .ftr__cols a { margin: 0; font-weight: 500; }
.ftr__cols a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ftr__legal { margin: 0; font-size: .8rem; opacity: .7; }
.ftr__iso { position: absolute; z-index: -1; right: -14%; bottom: -6%; width: 78vw; max-width: 760px; height: auto; aspect-ratio: 104.3 / 77.8; color: color-mix(in srgb, var(--sand) 6%, transparent); }

/* ---------- Dynamic island ---------- */
.island {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--sand); text-decoration: none;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--night) 45%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--sand) 12%, transparent);
  transform: translateY(170%) scale(.86);
  opacity: 0; visibility: hidden;
  transition: transform .7s var(--spring), opacity .4s var(--ease), visibility 0s linear .7s, gap .5s var(--ease);
}
.island.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .7s var(--spring), opacity .4s var(--ease), visibility 0s, gap .5s var(--ease); }
.island:hover { gap: 16px; }
.island__icon, .island__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.island__icon { background: var(--ochre); color: var(--green); }
.island__icon svg { width: 21px; height: 21px; animation: spin 10s linear infinite; }
.island__go { background: var(--sand); color: var(--green); }
.island__go svg { width: 18px; height: 18px; }
.island__text { display: grid; overflow: hidden; min-width: 0; height: 1.35em; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.island__a, .island__b { grid-area: 1 / 1; white-space: nowrap; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.island__b { transform: translateY(110%); opacity: 0; }
.island.flip .island__a { transform: translateY(-110%); opacity: 0; }
.island.flip .island__b { transform: none; opacity: 1; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .hero__note { font-size: 1.9rem; }
  .ftr__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__cols > div:last-child { grid-column: auto; }
  .card figcaption { padding: 30px; }
}

@media (min-width: 900px) {
  .brand__logo { height: 50px; }
  .hero__content {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 48px; align-items: end;
  }
  .hero__content .eyebrow { grid-column: 1 / -1; }
  .hero__title { margin-bottom: 0; font-size: clamp(5rem, 9.2vw, 10rem); }
  .hero__side { padding-bottom: .6rem; }
  .hero__note { top: 26%; right: 9%; }

  .about__in { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 56px; }
  .about__head { align-content: start; position: sticky; top: calc(var(--hdr-h) + 40px); }
  .pillars { grid-column: 2; }

  .pilates__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .pilates__intro { position: sticky; top: calc(var(--hdr-h) + 48px); }

  .acts__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .acts__head .eyebrow { grid-column: 1 / -1; }
  .acts__head .lead { justify-self: end; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 14px; }
  .tile--pil { grid-column: span 2; }
  .tile--slow { grid-column: auto; }
  .tile__label { padding: 22px; }

  .dolo__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .dolo__head > * { grid-column: 1 / -1; }
  .dolo__head .dolo__meta { grid-column: 1; grid-row: 3; align-self: end; }
  .dolo__head .lead { grid-column: 2; grid-row: 3; justify-self: end; }
  .collage { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; }
  .print--1 { grid-column: 1 / span 6; grid-row: 1; }
  .print--2 { grid-column: 7 / span 3; grid-row: 1; margin-top: 70px; }
  .print--3 { grid-column: 10 / span 3; grid-row: 1; margin-top: -30px; }
  .print--4 { grid-column: 2 / span 3; grid-row: 2; margin-top: -40px; }
  .print--5 { grid-column: 5 / span 3; grid-row: 2; margin-top: 50px; }
  .print--6 { grid-column: 9 / span 3; grid-row: 2; margin-top: -60px; width: auto; justify-self: stretch; }
  .print figcaption { font-size: 1.6rem; }

  .crew__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; }
  .fan { height: 560px; }

  .cr__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: 56px; }
  .cr__title { font-size: clamp(6rem, 10vw, 10.5rem); }
  .cr__sun { --sun-x: 70%; }
  .ticket { --stub: 170px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) var(--stub); }
  .ticket__main { gap: 22px; padding: 30px 32px 32px; }
  .ticket__stub { flex-direction: column; justify-content: center; gap: 22px; padding: 28px 16px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--sand) 40%, transparent); }
  .ticket__stub::before { top: calc(var(--notch) * -1); left: calc(var(--notch) * -1 - 1px); }
  .ticket__stub::after { top: auto; bottom: calc(var(--notch) * -1); left: calc(var(--notch) * -1 - 1px); right: auto; }
  .ticket__icon { width: 64px; height: 64px; }
  .ticket__date { flex-direction: column; align-items: center; gap: .35em; font-size: 2.4rem; }
}

@media (hover: hover) and (pointer: fine) {
  .dolo__hint { display: block; position: absolute; right: 0; top: 4%; margin: 0; font-size: 1.7rem; color: var(--rust-deep); transform: rotate(6deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__img.is-active { animation: none; }
}

/* ==========================================================================
   Reference-board additions: route map, organic mosaics, getaways index
   ========================================================================== */

/* ---------- Dolomites: hand-drawn route over a photo ---------- */
.route { margin: 0 0 clamp(56px, 8vw, 110px); }
.route__map {
  position: relative; overflow: hidden;
  aspect-ratio: 1; max-width: 100%;
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--green) 22%, transparent);
}
.route__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.route__svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--night) 50%, transparent));
}
.route__reveal { fill: none; stroke: white; stroke-width: 44; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route__line { fill: none; stroke: var(--sand); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 14 14; }
.route__stop circle { fill: var(--sand); stroke: var(--green); stroke-width: 6; }
.route__stop text {
  font-family: var(--f-hand); font-weight: 600; font-size: 52px;
  fill: var(--sand); stroke: var(--green); stroke-width: 10px; stroke-linejoin: round; paint-order: stroke;
}
.route__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.route__cap .eyebrow { margin: 0; }
.route__note { font-size: 1.55rem; color: var(--rust-deep); }

/* ---------- Pilates mantras: photo split into a 3x3 mosaic of petal shapes ---------- */
.mantras { display: grid; gap: 18px; margin-top: clamp(64px, 9vw, 120px); }
.mosaic { --g: 6px; position: relative; margin: 0; aspect-ratio: 1; max-width: 100%; color: var(--sand); }
.mosaic__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic.is-built .mosaic__src { opacity: 0; }
.mosaic__tiles {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--g);
}
/* each corner flag (0/1) times --k, so one variable morphs square -> petal */
.mosaic__cell {
  --k: 1;
  position: relative; overflow: hidden;
  border-radius:
    calc(var(--k) * var(--tl, 0) * 100%) calc(var(--k) * var(--tr, 0) * 100%)
    calc(var(--k) * var(--br, 0) * 100%) calc(var(--k) * var(--bl, 0) * 100%);
}
.mosaic__cell img {
  position: absolute; max-width: none;
  width: calc(300% + 2 * var(--g)); height: calc(300% + 2 * var(--g));
  left: calc(var(--c) * (-100% - var(--g))); top: calc(var(--row) * (-100% - var(--g)));
  object-fit: cover; filter: brightness(.74);
}
.mosaic .mosaic__cell:nth-child(3) { --tr: 1; }
.mosaic .mosaic__cell:nth-child(4) { --bl: 1; }
.mosaic .mosaic__cell:nth-child(5) { --tl: 1; --br: 1; }
.mosaic .mosaic__cell:nth-child(8) { --tr: 1; --bl: 1; }
.mosaic .mosaic__cell:nth-child(9) { --br: 1; }
.mosaic--b .mosaic__cell:nth-child(n) { --tl: 0; --tr: 0; --br: 0; --bl: 0; }
.mosaic--b .mosaic__cell:nth-child(2) { --br: 1; }
.mosaic--b .mosaic__cell:nth-child(4) { --tr: 1; --bl: 1; }
.mosaic--b .mosaic__cell:nth-child(6) { --tl: 1; }
.mosaic--b .mosaic__cell:nth-child(7) { --bl: 1; }
.mosaic--b .mosaic__cell:nth-child(9) { --tl: 1; --br: 1; }
.mosaic__text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7%; pointer-events: none;
  text-shadow: 0 2px 18px color-mix(in srgb, var(--night) 60%, transparent);
}
.mosaic__quote {
  max-width: 11ch;
  font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); line-height: .98; letter-spacing: -.01em;
  text-wrap: balance;
}
.mosaic__sub { max-width: 26ch; font-size: .95rem; font-weight: 600; }

/* ---------- Getaways index: done / next / open ---------- */
.trips { background: var(--green); padding-block: 0 clamp(110px, 13vw, 180px); }
.trips__head { margin-bottom: clamp(26px, 4vw, 48px); }
.trips__head .h2 { margin: 0; }
.trips__list {
  list-style: none;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l));
  padding: 6px var(--gutter-r) 18px var(--gutter-l);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter-l);
  scrollbar-width: none;
}
.trips__list::-webkit-scrollbar { display: none; }
.trip { min-width: 0; scroll-snap-align: start; }
.trip__card {
  display: flex; flex-direction: column; height: 100%;
  padding: 10px; border-radius: 22px;
  background: var(--sand); color: var(--green); text-decoration: none;
  transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.trip__card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 22px 40px color-mix(in srgb, var(--night) 35%, transparent); }
.trip__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--green); }
.trip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.trip__card:hover .trip__media img { transform: scale(1.06); }
.trip__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 8px 8px; }
.trip__chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .4em .85em; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.trip__chip--next { background: var(--green); border-color: var(--green); color: var(--sand); }
.trip__chip--next::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: .45; } }
.trip__name { margin-top: 4px; font-family: var(--f-display); font-size: var(--step-2); line-height: 1; }
.trip__meta { font-size: .95rem; color: color-mix(in srgb, var(--green) 82%, transparent); }
.trip__cta { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; padding-top: 12px; font-size: .92rem; font-weight: 700; }
.trip__cta svg { width: 1.1em; height: 1.1em; transition: transform .45s var(--ease); }
.trip__card:hover .trip__cta svg { transform: translateX(4px); }

/* mini Costa Rica poster, same flat recipe as the big one */
.trip__media--poster { background: var(--sand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 22%, transparent); }
.mini-sun { position: absolute; left: 28%; bottom: 10%; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ochre); }
.mini-sun::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; bottom: 0; background: repeating-linear-gradient(180deg, transparent 0 7px, var(--sand) 7px 9px); }
.mini-wave {
  --h: 40%; --t: 9s;
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--h);
  -webkit-mask: var(--wave) 0 0 / 160px 100% repeat-x; mask: var(--wave) 0 0 / 160px 100% repeat-x;
  animation: wave-x-sm var(--t) linear infinite;
}
.mini-wave--1 { --h: 44%; --t: 12s; bottom: 16%; background: var(--rust); }
.mini-wave--2 { --h: 34%; --t: 8s; bottom: 7%; background: var(--petrol); animation-direction: reverse; }
.mini-wave--3 { --h: 22%; --t: 6s; background: var(--green); }
@keyframes wave-x-sm { to { -webkit-mask-position: 160px 0; mask-position: 160px 0; } }

/* open card: dashed outline on green, sand ink */
.trip--open .trip__card { background: transparent; color: var(--sand); border: 2px dashed color-mix(in srgb, var(--sand) 55%, transparent); }
.trip--open .trip__meta { color: color-mix(in srgb, var(--sand) 85%, transparent); }
.trip__media--open { display: grid; place-items: center; background: color-mix(in srgb, var(--sand) 9%, transparent); }
.trip__q { font-family: var(--f-display); font-size: clamp(5rem, 4rem + 4vw, 8rem); line-height: 1; color: var(--sand); }
.trip__icon { position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); color: var(--sand); }
.trip__icon svg { width: 58%; height: 58%; animation: spin 16s linear infinite; }

@media (min-width: 700px) {
  .route__map { aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .mantras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .mosaic { --g: 8px; }
  .mosaic--b { margin-top: 90px; }
  .trips__list {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    margin: 0; padding: 6px 0 0; overflow: visible;
  }
}
