/* =========================================================
   HOME — "Caribbean postcard" theme
   Loaded only on index.html, after styles.css.
   Warm sand, sea turquoise, sunset coral; serif display type;
   travel-themed motion (waves, flight arcs, passport stamps).
   ========================================================= */





body.page-home {
  --sand: #f7efe2;
  --sand-2: #fffaf1;
  --sea: #0b3a46;
  --sea-deep: #0b2a36;
  --lagoon: #14a3a0;
  --lagoon-soft: #a6e8e0;
  --coral: #ef6a4c;
  --coral-2: #d8533a;
  --mango: #f5b342;
  --palm: #2f7d5b;

  --bg: var(--sand);
  --bg-2: var(--sand-2);
  --ink: #1b2b30;
  --muted: #5d6a6b;
  --line: #eadfcb;
  --accent: var(--lagoon);
  --accent-2: #0e7f7c;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", "Bradley Hand", cursive;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  background: var(--sea-deep);
}

body.page-home.is-scrolled {
  background: var(--sand);
}

/* ---------- Scroll progress: a little plane crossing the top ---------- */
.flight-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.is-scrolled .flight-progress {
  opacity: 1;
}

.flight-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--lagoon), var(--mango) 70%, var(--coral));
}

.flight-progress b {
  position: absolute;
  top: -7px;
  left: 0;
  width: 16px;
  height: 16px;
  transform: translateX(calc(var(--progress, 0) * (100vw - 16px)));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z' fill='%23ef6a4c' transform='rotate(90 12 12)'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Typography ---------- */
.page-home .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--coral-2);
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.page-home .section-kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}

.page-home .section-title {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  font-variation-settings: "SOFT" 100;
}

.page-home .section-lead {
  color: var(--muted);
}

.page-home .nav-brand-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.28rem;
}

.page-home .nav-brand-text em {
  font-style: italic;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.page-home .btn {
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease-spring),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.page-home .btn-primary,
.page-home .nav-cta,
.page-home .dock-btn,
.page-home .hero-dossier-cta,
.page-home .footer-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(239, 106, 76, 0.75);
}

.page-home .btn-primary::after,
.page-home .hero-dossier-cta::after,
.page-home .nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible,
.page-home .hero-actions .btn-primary:hover,
.page-home .hero-actions .btn-primary:focus-visible,
.page-home .nav-cta:hover,
.page-home .hero-dossier-cta:hover,
.page-home .hero-dossier-cta:focus-visible {
  background: var(--coral-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px rgba(216, 83, 58, 0.85);
}

.page-home .btn-primary:hover::after,
.page-home .hero-dossier-cta:hover::after,
.page-home .nav-cta:hover::after {
  transform: translateX(120%);
}

.page-home .hero-actions .btn-primary {
  background: var(--coral);
  color: #fff;
}

.page-home .nav.is-solid .nav-cta,
.page-home .nav-cta {
  background: var(--coral);
  color: #fff;
}

.page-home .nav.is-solid .nav-shell {
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 10px 30px -14px rgba(11, 42, 54, 0.35);
}

/* ---------- HERO ---------- */
.page-home .hero {
  background: var(--sea-deep);
}

.page-home .hero-media {
  will-change: transform;
}

.page-home .hero-media img {
  animation: home-kenburns 30s ease-in-out infinite alternate;
}

.page-home .hero-media::after {
  background:
    linear-gradient(180deg, rgba(11, 42, 54, 0.45) 0%, rgba(11, 42, 54, 0) 26%, rgba(11, 42, 54, 0) 50%, rgba(11, 42, 54, 0.5) 88%, rgba(11, 42, 54, 0.7) 100%),
    linear-gradient(90deg, rgba(11, 42, 54, 0.55) 0%, rgba(11, 42, 54, 0.12) 42%, rgba(11, 42, 54, 0) 64%),
    linear-gradient(200deg, rgba(245, 179, 66, 0.18) 0%, rgba(239, 106, 76, 0.1) 30%, transparent 55%);
}

.hero-sun {
  position: absolute;
  z-index: 1;
  top: 18%;
  left: 52%;
  width: clamp(16rem, 30vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.55) 0%, rgba(255, 170, 110, 0.22) 35%, rgba(255, 150, 100, 0) 68%);
  mix-blend-mode: screen;
  animation: home-sun 9s ease-in-out infinite alternate;
}

.hero-birds {
  position: absolute;
  z-index: 1;
  top: 22%;
  left: 60%;
  width: 9rem;
  fill: none;
  stroke: rgba(30, 40, 45, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
  animation: home-birds 34s linear infinite;
}

.hero-birds path {
  animation: home-flap 1.1s ease-in-out infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-birds path:nth-child(2) { animation-delay: -0.4s; }
.hero-birds path:nth-child(3) { animation-delay: -0.7s; }

.page-home .hero-frame {
  padding-bottom: clamp(5.5rem, 9vw, 7.5rem);
}

.page-home .hero-kicker {
  color: var(--mango);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  animation: home-rise 0.9s var(--ease-out) 0.15s both;
}

.page-home .hero-kicker::before {
  background: linear-gradient(90deg, var(--mango), rgba(245, 179, 66, 0));
  width: 2.6rem;
  height: 2px;
}

.page-home .hero h1 {
  max-width: 14ch;
  font-size: clamp(3.1rem, 6vw, 5.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  animation: none;
}

.page-home .hero h1 .hl {
  display: inline-block;
  vertical-align: top;
}

.page-home .hero h1 .hl > span {
  display: inline-block;
  animation: home-line-up 1.1s var(--ease-out) both;
}

.page-home .hero h1 .hl:nth-child(1) > span { animation-delay: 0.25s; }
.page-home .hero h1 .hl:nth-child(2) > span { animation-delay: 0.38s; }
.page-home .hero h1 .hl:nth-child(3) > span { animation-delay: 0.52s; }

.page-home .hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #ffd9a3;
  background: linear-gradient(95deg, #ffe2b3 0%, #ffb37a 45%, #ff8f6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.page-home .hero-lead {
  animation: home-rise 1s var(--ease-out) 0.7s both;
}

.page-home .hero-actions {
  animation: home-rise 1s var(--ease-out) 0.82s both;
}

.page-home .hero-destinations {
  animation: home-rise 1s var(--ease-out) 0.94s both;
}

.page-home .hero-destinations a {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(11, 42, 54, 0.25);
}

.page-home .hero-destinations a:hover,
.page-home .hero-destinations a:focus-visible {
  background: var(--lagoon);
  border-color: var(--lagoon);
}

/* Dossier = boarding pass */
.page-home .hero-dossier {
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
  border: 0;
  border-radius: 22px;
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  transform-origin: 80% 100%;
  animation: home-card-in 1.2s var(--ease-out) 0.6s both, home-float 7s ease-in-out 2s infinite alternate;
}

.page-home .hero-dossier::before {
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  border-radius: 22px 22px 0 0;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--mango) 18px 36px, var(--lagoon) 36px 54px);
}

.page-home .hero-dossier-kicker {
  color: var(--coral-2);
  margin-top: 0.2rem;
}

.page-home .hero-route span,
.page-home .hero-facts dt {
  color: #8a8f8c;
}

.page-home .hero-route strong {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 2.1rem;
  color: var(--sea);
}

.page-home .hero-route em {
  color: var(--muted);
}

.page-home .hero-route-path {
  width: 5.5rem;
  height: 2.2rem;
  background: none;
}

.page-home .hero-route-path svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}

.hero-route-path .arc-track {
  stroke: rgba(11, 58, 70, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.hero-route-path .arc-draw {
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: home-draw 2.4s var(--ease-out) 1.3s forwards;
}

.arc-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 00-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z' fill='%230b3a46'/%3E%3C/svg%3E") center / contain no-repeat;
  offset-path: path("M3.6 33.4 Q50 -8.8 96.4 33.4");
  offset-rotate: auto 90deg;
  offset-distance: 0%;
  animation: home-fly 2.4s var(--ease-out) 1.3s forwards;
}

.page-home .hero-facts {
  border-top: 1px dashed var(--line);
}

.page-home .hero-facts dd {
  color: var(--ink);
}

.hero-stamp {
  position: absolute;
  right: -1.4rem;
  top: -2rem;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border: 2px solid rgba(47, 125, 91, 0.75);
  border-radius: 50%;
  color: rgba(47, 125, 91, 0.85);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: inset 0 0 0 3px rgba(255, 250, 241, 1), inset 0 0 0 4px rgba(47, 125, 91, 0.5), 0 8px 18px -8px rgba(0, 0, 0, 0.4);
  transform: rotate(-14deg) scale(1);
  opacity: 0;
  pointer-events: none;
  animation: home-stamp 0.5s var(--ease-spring) 3.5s forwards;
}

.hero-stamp b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* Waves at the bottom of the hero */
.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: clamp(3.5rem, 7vw, 6rem);
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-back {
  fill: rgba(166, 232, 224, 0.35);
  animation: home-wave 22s linear infinite;
}

.wave-mid {
  fill: rgba(20, 163, 160, 0.55);
  animation: home-wave 15s linear infinite reverse;
}

.wave-front {
  fill: var(--lagoon);
  animation: home-wave 11s linear infinite;
}

/* ---------- Destination ribbon ---------- */
.dest-ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--lagoon);
  color: #fff;
  padding: 0.95rem 0 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dest-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: home-marquee 42s linear infinite;
}

.dest-ribbon:hover .dest-track {
  animation-play-state: paused;
}

.dest-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dest-track i {
  font-style: normal;
  color: var(--mango);
  font-size: 1rem;
  animation: home-spin 8s linear infinite;
}

/* ---------- Ticket board ---------- */
.page-home .ticket-board {
  padding-top: 5.5rem;
  background:
    radial-gradient(600px 260px at 92% 8%, rgba(245, 179, 66, 0.16), transparent 65%),
    radial-gradient(700px 300px at 0% 0%, rgba(20, 163, 160, 0.1), transparent 60%),
    var(--sand) !important;
}

.page-home .ticket {
  --ticket-paper: var(--sand-2);
  --ticket-line: #e3d6bf;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand-2);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}

.page-home .ticket-card {
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(11, 42, 54, 0.4);
}

.page-home .ticket-airline {
  position: relative;
  padding: 0.9rem 1.15rem 0.75rem;
  margin-bottom: 0.4rem;
  color: #fff;
  background: linear-gradient(100deg, var(--sea) 0%, #11535f 100%);
}

.page-home .ticket-grid > :nth-child(2) .ticket-airline { background: linear-gradient(100deg, #b4473a, var(--coral)); }
.page-home .ticket-grid > :nth-child(3) .ticket-airline { background: linear-gradient(100deg, #0e7f7c, var(--lagoon)); }
.page-home .ticket-grid > :nth-child(4) .ticket-airline { background: linear-gradient(100deg, #b97a17, var(--mango)); }

.page-home .ticket-flight {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .ticket-city strong {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 2rem;
  color: var(--sea);
}

.page-home .ticket-plane {
  transition: transform 0.9s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease;
}

.page-home .ticket:hover .ticket-plane,
.page-home .ticket:focus-visible .ticket-plane {
  animation: home-ticket-plane 1.1s var(--ease-out);
  border-color: var(--coral);
}

.page-home .ticket-cta {
  font-family: var(--font-body);
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 8px 16px -8px rgba(239, 106, 76, 0.8);
  letter-spacing: 0.08em;
}

.page-home .ticket:hover .ticket-cta,
.page-home .ticket:focus-visible .ticket-cta {
  background: var(--coral-2);
  box-shadow: 0 10px 18px -8px rgba(216, 83, 58, 0.9);
}

.page-home .ticket:hover,
.page-home .ticket:focus-visible {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 28px 44px -22px rgba(11, 42, 54, 0.5);
}

.page-home .ticket-grid > :nth-child(even):hover,
.page-home .ticket-grid > :nth-child(even):focus-visible {
  transform: translateY(-6px) rotate(0.6deg);
}

.ticket-stamp {
  position: absolute;
  right: 6.2rem;
  bottom: 0.55rem;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--coral);
  border-radius: 6px;
  color: var(--coral);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-12deg) scale(1.8);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.35s var(--ease-spring);
}

.ticket:hover .ticket-stamp,
.ticket:focus-visible .ticket-stamp {
  opacity: 0.85;
  transform: rotate(-12deg) scale(1);
}

/* ---------- Trips ---------- */
.page-home #trips {
  background:
    radial-gradient(800px 340px at 100% 30%, rgba(20, 163, 160, 0.08), transparent 60%),
    var(--sand) !important;
}

.page-home .trip-card {
  border-radius: 26px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
  box-shadow: 0 20px 40px -26px rgba(11, 42, 54, 0.55);
}

.page-home .trip-card.reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}

.page-home .trip-card:hover,
.page-home .trip-card:focus-visible {
  --lift: -4px;
  box-shadow: 0 34px 56px -28px rgba(11, 42, 54, 0.7);
}

.page-home .trip-card img {
  transition: transform 1.4s var(--ease-out);
}

.page-home .trip-card:hover img,
.page-home .trip-card:focus-visible img {
  transform: scale(1.08);
}

.page-home .trip-card::after {
  background:
    linear-gradient(180deg, transparent 30%, rgba(11, 42, 54, 0.85) 100%),
    linear-gradient(20deg, rgba(239, 106, 76, 0.18), transparent 50%);
}

.page-home .trip-copy h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
}

.page-home .trip-tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--mango);
  color: var(--sea-deep);
  letter-spacing: 0.14em;
}

.page-home .trip-cta {
  gap: 0.4rem;
  border: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, gap 0.3s var(--ease-out);
}

.page-home .trip-cta::after {
  content: "→";
}

.page-home .trip-card:hover .trip-cta,
.page-home .trip-card:focus-visible .trip-cta {
  background: var(--coral);
  gap: 0.7rem;
}

.page-home .trip-extra-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sand-2);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .trip-extra-card::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--lagoon-soft) center / 58% no-repeat;
}

.page-home .trip-extra-card:nth-child(1)::before {
  background-color: #ffe0c2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8533a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}

.page-home .trip-extra-card:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a46' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='9' rx='2'/%3E%3Cpath d='M6 7l2-3h8l2 3'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.5'/%3E%3C/svg%3E");
}

.page-home .trip-extra-card:nth-child(3)::before {
  background-color: #fde7b0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V10'/%3E%3Cpath d='M12 10C9 6 5 6 3 8c3 0 6 1 9 2z'/%3E%3Cpath d='M12 10c3-4 7-4 9-2-3 0-6 1-9 2z'/%3E%3Cpath d='M12 10c-1-4-4-6-7-6 2 2 4 4 7 6z'/%3E%3Cpath d='M12 10c1-4 4-6 7-6-2 2-4 4-7 6z'/%3E%3Cpath d='M6 21h12'/%3E%3C/svg%3E");
}

.page-home .trip-extra-card:hover,
.page-home .trip-extra-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(20, 163, 160, 0.4);
  box-shadow: 0 18px 30px -20px rgba(11, 42, 54, 0.45);
}

.page-home .trip-extra-card h3,
.page-home .county h3,
.page-home .step h3 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

.page-home .trip-extra-card span,
.page-home .trip-seo-links a {
  color: var(--accent-2);
}

/* ---------- Areas: map pins ---------- */
.page-home .areas {
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 58, 70, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    var(--sand-2) !important;
}

.page-home .county {
  position: relative;
  background: #fff;
  border-radius: 22px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .county::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 30 12 30s12-9.6 12-18.3C24 5.2 18.6 0 12 0z' fill='%23ef6a4c'/%3E%3Ccircle cx='12' cy='11.5' r='4.5' fill='%23fffaf1'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: 50% 100%;
}

.page-home .county.is-in::before {
  animation: home-pin-drop 0.8s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 90ms + 200ms);
}

.page-home .county:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 106, 76, 0.35);
  box-shadow: 0 20px 34px -24px rgba(11, 42, 54, 0.5);
}

.page-home .county:hover::before {
  animation: home-pin-bounce 0.7s var(--ease-spring);
}

.page-home .towns button {
  border-radius: 999px;
  background: var(--sand);
}

.page-home .towns button:hover,
.page-home .towns button:focus-visible {
  background: var(--sea);
  border-color: var(--sea);
}

/* ---------- Steps: a flight route ---------- */
.page-home #how {
  background: var(--sand) !important;
}

.page-home .steps {
  position: relative;
  padding-top: 2.6rem;
}

.steps-route {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.6rem;
  fill: none;
  overflow: visible;
  pointer-events: none;
}

.steps-route .route-track {
  stroke: rgba(11, 58, 70, 0.18);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.steps-route .route-draw {
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--route, 0));
  vector-effect: non-scaling-stroke;
}

.page-home .step {
  position: relative;
  z-index: 1;
  background: var(--sand-2);
  border-radius: 22px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}

.page-home .step:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 20px 34px -24px rgba(11, 42, 54, 0.5);
}

.page-home .step .n {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--sea);
  color: var(--mango);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 0 6px var(--sand-2), 0 0 0 7px var(--line);
}

.page-home .step:nth-child(3) .n { background: var(--lagoon); color: #fff; }
.page-home .step:nth-child(4) .n { background: var(--coral); color: #fff; }

/* ---------- LE band ---------- */
.page-home .leo-band-media {
  inset: -12% 0;
  will-change: transform;
}

.page-home .leo-band-media::after {
  background: linear-gradient(105deg, rgba(11, 42, 54, 0.92) 0%, rgba(11, 42, 54, 0.65) 50%, rgba(11, 42, 54, 0.25) 100%);
}

.page-home .leo-band .section-kicker {
  color: var(--mango);
}

/* ---------- Postcard ---------- */
.page-home .postcard-maker {
  background:
    radial-gradient(500px 260px at 0% 100%, rgba(239, 106, 76, 0.1), transparent 60%),
    var(--sand) !important;
}

.page-home .postcard {
  transform: rotate(-1.6deg);
  transition: transform 0.6s var(--ease-spring), box-shadow 0.4s ease;
  box-shadow: 0 30px 50px -28px rgba(11, 42, 54, 0.55);
  border: 10px solid #fff;
  border-radius: 6px;
}

.page-home .postcard:hover {
  transform: rotate(0deg) scale(1.01);
}

.page-home .postcard.is-flipping {
  animation: home-flip 0.6s var(--ease-out);
}

.page-home .postcard-greeting,
.page-home .postcard-message-out,
.page-home .postcard-to-line,
.page-home .postcard-from-line {
  font-family: var(--font-script);
  font-weight: 600;
  letter-spacing: 0;
}

.page-home .postcard-greeting {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 0.95;
  transform: rotate(-4deg);
}

.page-home .postcard-message-out {
  font-size: 1.45rem;
  line-height: 1.2;
  color: #24406b;
}

.page-home .postcard-stamp {
  transition: transform 0.4s var(--ease-spring);
}

.page-home .postcard:hover .postcard-stamp {
  transform: rotate(8deg) scale(1.06);
}

/* ---------- Quote ---------- */
.page-home .quote {
  position: relative;
  padding-top: 6.5rem;
  background:
    radial-gradient(700px 360px at 85% 20%, rgba(20, 163, 160, 0.25), transparent 65%),
    radial-gradient(500px 300px at 0% 100%, rgba(245, 179, 66, 0.12), transparent 60%),
    var(--sea-deep);
}

.quote-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3.5rem;
  fill: var(--sand);
}

.page-home .quote .section-kicker,
.page-home .path-n {
  color: var(--mango);
}

.page-home .quote-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.page-home .path {
  transition: opacity 0.2s ease, padding 0.35s var(--ease-out);
}

.page-home .path:hover,
.page-home .path:focus-visible {
  opacity: 1;
  padding-left: 0.5rem;
}

.page-home .path:hover strong {
  color: var(--mango);
}


/* ---------- Reveal choreography ---------- */
.page-home .reveal {
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.page-home .reveal.is-in {
  transform: none;
}

.page-home .section-title.reveal {
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.page-home .section-title.reveal.is-in {
  filter: none;
}

.page-home .ticket.reveal {
  transform: translateY(40px) rotate(var(--tilt, -2deg));
}

.page-home .ticket.reveal:nth-child(even) {
  --tilt: 2deg;
}

.page-home .ticket.reveal.is-in {
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-spring), box-shadow 0.4s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.page-home .ticket.reveal.is-in:hover,
.page-home .ticket.reveal.is-in:focus-visible {
  transition-delay: 0s;
  transform: translateY(-6px) rotate(-0.6deg);
}

.page-home .ticket-grid > .ticket.reveal.is-in:nth-child(even):hover {
  transform: translateY(-6px) rotate(0.6deg);
}

.page-home .trip-card.reveal:not(.is-in) {
  transform: perspective(900px) translateY(40px) scale(0.97);
}

.page-home .trip-card.reveal.is-in {
  transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s;
}

.page-home .trip-card.reveal.is-in:hover {
  transition-delay: 0s;
}

/* ---------- Keyframes ---------- */
@keyframes home-kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes home-sun {
  from { transform: scale(0.94); opacity: 0.75; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes home-birds {
  from { transform: translate(-30vw, 2rem); }
  to { transform: translate(60vw, -3rem); }
}

@keyframes home-flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.45); }
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes home-line-up {
  from { opacity: 0; transform: translateY(0.6em) rotate(2deg); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes home-card-in {
  from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(0.95); }
  to { opacity: 1; transform: rotate(-2deg); }
}

@keyframes home-float {
  from { transform: rotate(-2deg) translateY(0); }
  to { transform: rotate(-1deg) translateY(-8px); }
}

@keyframes home-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes home-fly {
  to { offset-distance: 100%; }
}

@keyframes home-stamp {
  from { opacity: 0; transform: rotate(-14deg) scale(2.2); }
  to { opacity: 0.9; transform: rotate(-14deg) scale(1); }
}

@keyframes home-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes home-ticket-plane {
  0% { transform: translateX(0); }
  45% { transform: translateX(260%) scale(0.6); opacity: 0; }
  46% { transform: translateX(-260%) scale(0.6); opacity: 0; }
  100% { transform: translateX(0) scale(1.06); opacity: 1; }
}

@keyframes home-pin-drop {
  0% { opacity: 0; transform: translateY(-26px) scale(0.6); }
  60% { opacity: 1; transform: translateY(0) scaleY(0.85); }
  100% { transform: none; }
}

@keyframes home-pin-bounce {
  0%, 100% { transform: none; }
  40% { transform: translateY(-8px); }
  70% { transform: translateY(0) scaleY(0.9); }
}

@keyframes home-flip {
  0% { transform: rotate(-1.6deg) rotateY(0); }
  50% { transform: rotate(-1.6deg) rotateY(90deg); }
  100% { transform: rotate(-1.6deg) rotateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-sun { left: 40%; top: 10%; }
  .hero-birds { display: none; }
  .steps-route { display: none; }
  .page-home .steps { padding-top: 0; }
  .hero-stamp { right: -0.4rem; width: 4rem; height: 4rem; }
  .ticket-stamp { display: none; }
}

@media (max-width: 640px) {
  .page-home .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .page-home .hero-dossier { animation: home-rise 1s var(--ease-out) 0.9s both; transform: none; }
  .dest-ribbon { padding: 0.7rem 0 0.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .page-home .section-title.reveal { filter: none; }
  .hero-birds,
  .flight-progress b { display: none; }
  .dest-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .page-home .trip-card { transform: none !important; }
}

/* ---------- Fixes for inherited section styles ---------- */
.page-home .postcard-maker::after {
  display: none;
}

.page-home .postcard-maker {
  padding-bottom: 3rem;
}

.page-home .leo-band .section-lead,
.page-home .quote .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .page-home .nav-brand-text {
    font-size: 1.12rem;
    letter-spacing: -0.03em;
  }

  .hero-stamp {
    display: none;
  }
}
