/* ═══════════════════════════════════════════════════════════
   QARIBIA — Landing Page
   Requires the tokens added to :root in style.css:
   --forest-dark, --forest-deep, --forest-mist, --ivory, --gold-soft,
   --ink, --ink-muted, --ink-line, --kenya-red, --kenya-red-deep,
   --kenya-red-mist
   ══════════════════════════════════════════════════════════ */

.home-page {
  --home-gutter: clamp(20px, 3.6vw, 56px); /* edge margin: scales with the viewport */
  /* THE homepage margin, set by one number. Content sits in a centred column at most --home-max wide, with the gutter inside it:
       left edge = max(gutter, (screen - --home-max) / 2 + gutter)
     1560px reproduces the Experiences page (228px from the edge on a 1903px screen); 1903px-wide full-bleed would be 56px.
     1740px sits between the two: about 138px on a 1903px screen, 86px on a 1800px screen, and unchanged (the gutter) on laptops of 1740px or less.
     The hero copy, the search bar, every section and the city row all follow it. --home-inline is the same edge as padding for full-width elements (the % is of the element's own width). */
  --home-max: 1740px;
  --home-inline: max(var(--home-gutter), calc((100% - var(--home-max)) / 2 + var(--home-gutter)));

  /* Landing palette – defined here too so the page never depends on style.css being updated */
  --forest-dark: #123F31;
  --forest-deep: #082B24;
  --forest-mist: #DBE8DD;
  --ivory: #F5F0E6;
  --gold-soft: #E9D8B4;
  --ink: #111713;
  --ink-muted: #68716B;
  --ink-line: rgba(17, 23, 19, 0.14);
  --kenya-red: #A3151E;
  --kenya-red-deep: #6F0D14;
  --kenya-red-mist: #F4E4E1;

  /* Accent – carries the eyebrows, accent words, CTA and hovers.
     Gold is now decoration only (beads, rings), so the page stops reading as one flat ivory-gold. */
  --orange: #DB693D;
  --orange-deep: #C2552B;
  --orange-light: #E8814F;  /* on dark backgrounds */

  background: var(--ivory);
  color: var(--ink);
  word-spacing: 0.04em;
}

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

/* ── Shared type + buttons ───────────────────────────────── */
.home-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase;
  color: var(--orange);
}
.home-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.home-eyebrow--light { color: #fff; }
.home-eyebrow--gold  { color: var(--gold-soft); }
.home-eyebrow--light > span,
.home-eyebrow--gold > span { background: currentColor; }
.home-eyebrow + .home-h2 { margin-top: 22px; }

/* "— KARIBU KENYA —": long dashes either side, wider tracking, colour unchanged */
.home-eyebrow--lines { justify-content: center; gap: 18px; font-size: 12px; letter-spacing: 0.42em; }
.home-eyebrow--lines > span { display: none; }
.home-eyebrow--lines::before,
.home-eyebrow--lines::after { content: ''; flex: 0 0 auto; width: clamp(28px, 4vw, 52px); height: 1px; background: currentColor; opacity: 0.6; }
.home-eyebrow--lines::after { margin-left: -0.42em; } /* cancel the trailing letter-space so the dashes sit evenly */

.home-h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}

/* Accent words inside a heading.
   The split: orange is typographic only — the accent words on the light/ivory sections and
   the one remaining eyebrow. Gold carries every dark section (hero, flights)
   and all decorative work. Midnight black (--ink) carries hovers and the primary button. */
.home-accent { color: var(--orange); }

.home-arrow-link {
  display: inline-flex; align-items: center; gap: 28px;
  font-size: 12px; font-weight: 700; color: var(--gold-dark, #9A6E22);
}
.home-arrow-link span { border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.home-arrow-link i { font-size: 0.85rem; transition: transform 0.25s; }
.home-arrow-link:hover i { transform: translateX(5px); }
.home-arrow-link--light { color: #fff; }
.home-arrow-link--light:hover { color: var(--gold-soft); }
.home-arrow-link:focus-visible,
.home-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.home-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn i { font-size: 0.8rem; }
.home-btn--dark { background: var(--forest-deep); color: #fff; }
.home-btn--dark:hover { background: var(--forest-dark); }
.home-btn--ink { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(17, 23, 19, 0.3); }
.home-btn--ink:hover { background: #000; box-shadow: 0 14px 32px rgba(17, 23, 19, 0.4); }

/* Section heading: title on the left, a link or a note on the right */
.home-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }

.home-section {
  max-width: var(--home-max);
  margin: 0 auto;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
}

/* ── Bead divider (diamond · circle · diamond) ───────────── */
.home-beads { display: flex; justify-content: center; gap: 8px; overflow: hidden; width: 100%; }
.home-beads i { display: block; flex: 0 0 auto; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.home-beads i:nth-child(4n + 2) { background: var(--kenya-red); border-radius: 50%; transform: none; }
.home-beads i:nth-child(4n + 3) { background: var(--ink); }
.home-beads--dark i { background: var(--gold); }
.home-beads--dark i:nth-child(4n + 2) { background: var(--gold-soft); }
.home-beads--dark i:nth-child(4n + 3) { background: rgba(255, 255, 255, 0.55); }

/* The strand ripples left to right — the page's quietest piece of motion, and the one
   that signals "alive" without asking for attention. */
.home-beads i { animation: home-bead-wave 3.4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 90ms); }
@keyframes home-bead-wave {
  0%, 100% { scale: 1; opacity: 0.8; }
  50%      { scale: 1.55; opacity: 1; }
}

/* ═══ HERO ═══════════════════════════════════════════════ */
.home-hero {
  position: relative;
  height: auto;            /* sized by its content so there's no dead space above or below */
  min-height: clamp(600px, 80vh, 820px); /* was clamp(560px, 72vh, 760px). The clip is 16:9, so width sets its scale: a taller hero shows more of each scene and does not enlarge the video. */
  overflow: hidden;
  display: grid;
  place-items: center;   /* the copy sits on the centre line of the clip */
  /* top: clears the navbar. bottom: must stay ≥ the search overlap (110px, .home-search__bar-wrap margin-top) + breathing room,
     otherwise the Safaris/Stays tabs collide with the subtext. */
  padding: 140px var(--home-inline) 150px;
  color: #fff;
  text-align: center;
  background: var(--ink); /* shown only while the image loads */
}

/* The clip fills the frame; the poster is what shows before it plays, or instead of it
   when autoplay is refused (iOS low-power mode) or the visitor prefers reduced motion.
   Sharpness: the source is 720p, so nothing may resample it any further. The old slow zoom
   (animated `scale`) re-filtered every frame and softened it, so it is gone; the clip sits at
   its natural size and only the parallax (`translate`, whole pixels, set in page.js) moves it.
   The colour grade (saturation +12%, contrast +5%) is baked into the MP4, not applied here: a CSS
   `filter` on a <video> makes the browser re-process every frame. Keep this element free of
   filter, mix-blend-mode and transform animation so Chrome can play it on the fast path. */
.home-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%; /* keep the sky, summit and warrior's face; the bottom crops under the search card */
  background: var(--forest-deep); /* shown only before the poster paints */
}

/* Overlay for a montage whose scenes run from dark gold (migration) to bright cloud and sea.
   Cool forest-black rather than warm umber: it sits naturally under blue sky and turquoise water
   and leaves the gold and the Maasai red alone. The overlay is deliberately NOT an even tint
   (that is what flattens a video): shade is placed only where type or UI sits.
   - Mobile / tablet (copy centred): a soft pool behind the copy.
   - Desktop (copy left-aligned, see the media query below): a scrim that fades from the left edge,
     so the right half of every scene stays at full brightness and colour.
   Both add a top band for the navbar and a bottom band for the Safaris / Stays tabs. */
.home-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 46% at 50% 50%, rgba(4, 20, 16, 0.66) 0%, rgba(4, 20, 16, 0.46) 62%, transparent 100%),
    linear-gradient(180deg, rgba(4, 20, 16, 0.55) 0%, transparent 24%, transparent 66%, rgba(4, 20, 16, 0.55) 100%);
}
@media (min-width: 961px) {
  .home-hero__overlay {
    background:
      linear-gradient(90deg, rgba(4, 20, 16, 0.66) 0%, rgba(4, 20, 16, 0.44) 26%, rgba(4, 20, 16, 0.14) 50%, transparent 66%),
      linear-gradient(180deg, rgba(4, 20, 16, 0.46) 0%, transparent 22%, transparent 70%, rgba(4, 20, 16, 0.5) 100%);
  }
}
.home-hero__grain {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.home-hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  display: flex; flex-direction: column; align-items: center;
  animation: home-copy-in 1s 0.2s ease-out both;
}
/* One line: "Kenya, in one journey". It wraps naturally on narrow screens. */
.home-hero__content h1 {
  margin: 0 0 26px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 6px 34px rgba(0, 0, 0, 0.5);
}
.home-hero__accent {
  color: var(--gold-light, #E8B96A); /* fallback */
  background: linear-gradient(90deg, #F3D595 0%, #E8B96A 50%, #D79A45 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)) drop-shadow(0 6px 26px rgba(0, 0, 0, 0.5));
}
.home-hero__sub {
  max-width: 580px; font-size: 1.08rem; line-height: 1.75; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* The line break after "Kenya," only applies on desktop; narrower screens let the headline wrap naturally. */
.home-hero__br { display: none; }

/* Desktop: copy left-aligned (must sit after the base .home-hero__content / h1 rules above).
   In most scenes the left of the frame is open sky or ground, and it keeps the headline off the
   warrior's face. To go back to centred copy, delete this block and the desktop overlay in the
   media query further up. */
@media (min-width: 961px) {
  .home-hero { place-items: center start; text-align: left; }
  .home-hero__content { align-items: flex-start; max-width: 600px; }
  .home-hero__content h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
  .home-hero__br { display: inline; }
  .home-hero__sub { max-width: 600px; }
}

.home-hero__side-note {
  position: absolute; z-index: 2; left: calc(var(--home-gutter) * 0.6); bottom: 150px;
  display: flex; align-items: center; gap: 18px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  transform: rotate(-90deg); transform-origin: left;
}
.home-hero__side-note i { width: 38px; height: 1px; background: #fff; opacity: 0.5; }
.home-hero__side-note i { transform-origin: left; animation: home-cue 2.6s ease-in-out infinite; }
@keyframes home-cue {
  0%, 100% { scale: 1 1; opacity: 0.45; }
  50%      { scale: 1.7 1; opacity: 0.95; }
}

/* Floating bead decor */
.home-hero__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.home-bead {
  position: absolute; display: block;
  animation: home-bead-float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.home-bead--diamond { --r: 45deg; }
.home-bead--dot { border-radius: 50%; }
.home-bead--gold { background: var(--gold); box-shadow: 0 0 18px rgba(232, 185, 106, 0.45); }
.home-bead--soft { background: var(--gold-soft); opacity: 0.9; }
.home-bead--forest { background: var(--forest-mist); opacity: 0.75; }
.home-bead--ring { border-radius: 50%; background: none; border: 1.5px solid; box-shadow: none; }
.home-bead--ring.home-bead--gold { border-color: rgba(232, 185, 106, 0.7); }
.home-bead--ring.home-bead--soft { border: 1.5px dashed rgba(233, 216, 180, 0.65); opacity: 1; }
.home-bead--ring.home-bead--forest { border-color: rgba(219, 232, 221, 0.6); }

@keyframes home-bead-float {
  from { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  to   { transform: translate3d(var(--dx, 0), var(--dy, -20px), 0) rotate(calc(var(--r, 0deg) + 28deg)); }
}

.home-strand { position: absolute; width: min(320px, 26vw); height: auto; opacity: 0.92; animation: home-strand-sway 9s ease-in-out infinite alternate; }
.home-strand--tl { top: 22%; left: -2%; }
.home-strand--br { bottom: 24%; right: -2%; transform: rotate(180deg); animation-delay: -4s; }
.home-strand__thread { fill: none; stroke: rgba(233, 216, 180, 0.35); stroke-width: 1; }
.home-strand__bead--0 { fill: var(--gold); }
.home-strand__bead--1 { fill: var(--gold-soft); }
.home-strand__bead--2 { fill: var(--forest-dark); stroke: var(--gold-soft); stroke-width: 1.5; }
.home-strand__bead--3 { fill: var(--forest-mist); opacity: 0.8; }

@keyframes home-strand-sway {
  from { translate: 0 0; rotate: -1.5deg; }
  to   { translate: 10px 14px; rotate: 1.5deg; }
}
@keyframes home-copy-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ═══ SEARCH BAR (elevated) ══════════════════════════════ */
.home-search__bar-wrap {
  position: relative; z-index: 10;
  margin-top: -110px;
  padding: 0 var(--home-gutter);
}

.home-search__bar {
  max-width: calc(var(--home-max) - 2 * var(--home-gutter)); margin: 0 auto;
  display: grid; align-items: stretch;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr auto;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(26, 8, 10, 0.06),
    0 14px 28px rgba(26, 8, 10, 0.14),
    0 40px 90px rgba(26, 8, 10, 0.34);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-search__bar:hover,
.home-search__bar:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(26, 8, 10, 0.06),
    0 18px 34px rgba(26, 8, 10, 0.16),
    0 50px 110px rgba(26, 8, 10, 0.4);
}

.home-search__field { position: relative; min-width: 0; padding: 24px 28px; }
.home-search__field + .home-search__field { border-left: 1px solid var(--ink-line); }
.home-search__field label {
  display: block; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase;
  color: #2c352f; /* darker than the placeholders so labels read as labels */
}
.home-search__control { display: flex; align-items: center; gap: 10px; }
.home-search__control > i { flex: 0 0 auto; width: 16px; color: var(--gold); }
.home-search__control .react-datepicker-wrapper { width: 100%; }

.home-search__control input,
.home-search__control select {
  width: 100%; min-width: 0; padding: 4px 0;
  border: 0; outline: 0; background: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.home-search__control input[type='text'] { cursor: text; }
.home-search__control input::placeholder { color: #8b918d; opacity: 1; }
.react-datepicker-popper { z-index: 30 !important; }

.home-search__btn {
  align-self: center;                 /* don't stretch to the row height */
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 64px; min-width: 152px; padding: 0 32px;
  border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-deep) 100%);
  color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 43, 36, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.home-search__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8, 43, 36, 0.46); }
.home-search__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.home-search__menu {
  position: absolute; top: calc(100% + 6px); left: 16px; z-index: 40;
  width: min(320px, 86vw); padding: 8px;
  background: #fff; border: 1px solid var(--ink-line); border-radius: 12px;
  box-shadow: 0 24px 50px rgba(26, 8, 10, 0.2);
  animation: home-pop 0.18s ease-out;
}
@keyframes home-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.home-search__option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 8px; background: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer; transition: background 0.2s;
}
.home-search__option i { width: 16px; color: #b3b9b5; }
.home-search__option:hover,
.home-search__option:focus-visible { background: var(--ivory); outline: none; }
.home-search__option--locate { color: var(--gold-dark); }
.home-search__option--locate i { color: var(--gold); }
.home-search__menu-note { padding: 12px 14px; font-size: 12px; color: var(--ink-muted); }


/* Safaris / Stays switch: sits on the bar like folder tabs */
.home-search__tabs { max-width: calc(var(--home-max) - 2 * var(--home-gutter)); margin: 0 auto; padding: 0 8px; display: flex; gap: 6px; }
.home-search__tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px;
  border: 0; border-radius: 14px 14px 0 0;
  background: rgba(8, 20, 16, 0.58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.home-search__tab i { color: var(--gold-light, #E8B96A); transition: color 0.2s; }
.home-search__tab:hover { background: rgba(8, 8, 8, 0.66); color: #fff; }
.home-search__tab.is-active { background: #fff; color: var(--ink); box-shadow: inset 0 3px 0 var(--gold); }
.home-search__tab.is-active i { color: var(--gold); }
.home-search__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.home-search__tabs + .home-search__bar { border-top-left-radius: 0; }

/* Occupancy (shared field) inside the bar */
.home-search__control .occ { min-width: 0; }
.home-search__control .occ__trigger { padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.home-search__control .occ__trigger i { color: var(--ink-muted); }
.home-search__control .occ__panel--right { right: -12px; top: calc(100% + 34px); }

/* Calendar in the Qaribia palette */
.home-cal-popper { z-index: 40 !important; }
.home-cal.react-datepicker { border: 0; border-radius: 16px; padding: 10px 10px 12px; background: #fff; font-family: var(--font-body); box-shadow: 0 2px 8px rgba(17, 23, 19, 0.08), 0 28px 60px rgba(17, 23, 19, 0.24); }
.home-cal .react-datepicker__header { padding-top: 10px; border: 0; background: #fff; }
.home-cal .react-datepicker__current-month { margin-bottom: 8px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--ink); }
.home-cal .react-datepicker__day-name { width: 2.3rem; margin: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-muted); }
.home-cal .react-datepicker__day { width: 2.3rem; height: 2.3rem; margin: 2px; border-radius: 50%; line-height: 2.3rem; font-size: 13px; font-weight: 600; color: var(--ink); transition: background 0.15s, color 0.15s; }
.home-cal .react-datepicker__day:hover { background: var(--forest-mist); border-radius: 50%; }
.home-cal .react-datepicker__day--today { color: var(--kenya-red); font-weight: 700; }
.home-cal .react-datepicker__day--in-range,
.home-cal .react-datepicker__day--in-selecting-range { background: var(--forest-mist); color: var(--forest-deep); border-radius: 50%; }
.home-cal .react-datepicker__day--selected,
.home-cal .react-datepicker__day--range-start,
.home-cal .react-datepicker__day--range-end { background: var(--forest-dark); color: #fff; }
.home-cal .react-datepicker__day--keyboard-selected { background: none; box-shadow: inset 0 0 0 2px var(--gold); color: var(--ink); }
.home-cal .react-datepicker__day--selected.react-datepicker__day--keyboard-selected { background: var(--forest-dark); color: #fff; }
.home-cal .react-datepicker__day--disabled { color: #c3c8c4; font-weight: 500; background: none; cursor: not-allowed; }
.home-cal .react-datepicker__day--outside-month { visibility: hidden; }
.home-cal .react-datepicker__navigation { top: 14px; }
.home-cal .react-datepicker__navigation-icon::before { border-color: var(--gold); border-width: 2px 2px 0 0; }
.home-cal .react-datepicker__navigation:hover .react-datepicker__navigation-icon::before { border-color: var(--forest-dark); }
.home-cal .react-datepicker__triangle { display: none; }

.home-beads { margin: 64px auto 30px; }

/* ═══ INTRO ══════════════════════════════════════════════ */
/* Three columns: the heading (as wide as its text), a flexible middle that holds the watermark, and the copy. The copy column is half the width minus 4vw,
   which keeps the copy where it was (the right half). */
.home-intro .home-h2 { white-space: nowrap; }
.home-intro { position: relative; overflow: hidden; display: grid; grid-template-columns: max-content 1fr calc(50% - 4vw); align-items: center; padding-top: 56px; padding-bottom: 96px; }
.home-intro__copy > p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.85; color: #4a4f4c; }


/* "Twende Safari" (let's go on a journey) – a quiet Swahili watermark behind the copy (decorative, clipped by the section).
   The copy is lifted above it rather than pushing the watermark to z-index -1, which would
   drop it behind .home-page's ivory background. */
.home-intro > div { position: relative; z-index: 1; }
.home-intro__watermark {
  /* The middle grid cell, centred in it: the middle of the gap between the heading and the copy. */
  position: relative; z-index: 0; justify-self: center; align-self: center;
  font-family: 'Lora', Georgia, serif; font-style: italic; white-space: nowrap;
  font-size: clamp(2.6rem, 3.4vw, 4rem); line-height: 1;
  color: rgba(18, 63, 49, 0.06);
  pointer-events: none; user-select: none;
  animation: home-drift 20s ease-in-out infinite alternate;
}
@keyframes home-drift { from { translate: -12px 0; } to { translate: 12px 0; } }

/* ═══ DISCOVER BY CITY ═══════════════════════════════════
   A row of photo cards that scrolls sideways (the last card peeks in from the edge). Two motions:
   - Entrance: each card (the <li>) bounces up into place, staggered, when it scrolls into view.
   - Hover: the photo zooms with a springy overshoot and an arrow chip appears. (No bounce: the ripple is the motion.) */
.home-cities { padding-top: 80px; padding-bottom: 100px; }

.home-cities__head { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.home-cities__head h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.home-cities__tools { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.home-cities__nav { display: inline-flex; gap: 8px; }
.home-cities__nav button {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink-line); border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 0.8rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-cities__nav button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; scale: 1.08; }
.home-cities__nav button:active:not(:disabled) { scale: 0.92; }
.home-cities__nav button:disabled { opacity: 0.35; cursor: default; }
.home-cities__nav button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.home-cities__track {
  list-style: none; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline-start: 40px; scrollbar-width: none;
  /* Room above for the bounce (it rises ~50px) and below for the shadow, which overflow-x would otherwise clip.
     Right: the row bleeds off the screen edge; (50vw - 50%) is the space between this column and the edge, so the last card can scroll back into the column. */
  padding: 36px calc(50vw - 50%) 60px 40px; margin: -36px calc(50% - 50vw) -60px -40px;
}
.home-cities__track::-webkit-scrollbar { display: none; }
.home-cities__track > li { flex: 0 0 clamp(236px, 19vw, 340px); scroll-snap-align: start; }

.home-ccard {
  position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 1.5; border-radius: 16px;
  color: var(--ink); /* no background colour: until the photo loads (or if it fails) you see the browser's own not-loaded image */
  box-shadow: 0 10px 24px rgba(17, 23, 19, 0.16);
  transition: box-shadow 0.3s ease, scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-ccard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.home-ccard__shade { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s ease; background: linear-gradient(0deg, rgba(4, 19, 15, 0.78) 0%, rgba(4, 19, 15, 0.2) 46%, transparent 72%); }
.home-ccard.is-loaded .home-ccard__shade { opacity: 1; }
.home-ccard__name { position: absolute; left: 18px; right: 56px; bottom: 15px; font-family: var(--font-body); font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; transition: color 0.3s ease; }
.home-ccard.is-loaded .home-ccard__name { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.home-ccard__go {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.72rem;
  opacity: 0; scale: 0.5; transition: opacity 0.25s ease, scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.4s ease;
}

.home-ccard:hover { box-shadow: 0 18px 36px rgba(17, 23, 19, 0.26); }
.home-ccard:hover img { scale: 1.1; }
.home-ccard:hover .home-ccard__go, .home-ccard:focus-visible .home-ccard__go { opacity: 1; scale: 1; rotate: -45deg; }
.home-ccard:active { scale: 0.96; }
.home-ccard:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ── animate.css, verbatim ──────────────────────────────────
   Entrance = animate.css "bounceInUp" (https://animate.style/#bounceInUp), then the looping ripple below.
   The keyframes are animate.css v4's own values and easings. Entrance and ripple only run when motion is allowed (see useScrollReveal). */
@keyframes bounceInUp {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  from { opacity: 0; transform: translate3d(0, 3000px, 0) scaleY(5); }
  60% { opacity: 1; transform: translate3d(0, -20px, 0) scaleY(0.9); }
  75% { transform: translate3d(0, 10px, 0) scaleY(0.95); }
  90% { transform: translate3d(0, -5px, 0) scaleY(0.985); }
  to { transform: translate3d(0, 0, 0); }
}
/* hidden only until revealed: bounceInUp's last keyframe does not set opacity, so a base opacity: 0 would win again once it ends */
.home-page.is-motion .home-bounce:not(.is-in) { opacity: 0; }
/* bounceInUp once, then the ripple loops: it starts 3s after the cards arrive and travels across the row (--n is the card's index). */
.home-page.is-motion .home-bounce.is-in {
  animation: bounceInUp 1s both, home-ripple 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 90ms), calc(3s + var(--n, 0) * 280ms);
}

/* The ripple, part 1: the card lifts and settles (smooth, not a bounce) */
@keyframes home-ripple {
  0%, 15%, 100% { transform: translate3d(0, 0, 0); }
  6% { transform: translate3d(0, -12px, 0); }
}
/* part 2: a soft diagonal glint sweeps across the photo, in step with the lift */
.home-ccard::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.3) 50%, transparent 68%);
  transform: translateX(-110%);
}
.home-page.is-motion .home-bounce.is-in .home-ccard::after {
  animation: home-glint 8s ease-in-out infinite;
  animation-delay: calc(3s + var(--n, 0) * 280ms);
}
@keyframes home-glint {
  0% { opacity: 0; transform: translateX(-110%); }
  2% { opacity: 1; }
  15% { opacity: 1; transform: translateX(110%); }
  16%, 100% { opacity: 0; transform: translateX(110%); }
}

/* ═══ ICONIC GEMS ═══════════════════════════════════════
   Six featured heritage sites, parks and museums from the gems API. A four-column grid where the first and last cards are wide, so the
   rows read wide + 2 small, then 2 small + wide. The photo (or tonal placeholder) is GemArt; it fills each card. */
.home-gems { padding-top: 100px; padding-bottom: 110px; }
.home-gems__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 440px; gap: 14px; }

.home-gem { position: relative; display: block; overflow: hidden; border-radius: 6px; color: #fff; isolation: isolate; }
.home-gem--wide { grid-column: span 2; }
.home-gem .gemart img { transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.home-gem:hover .gemart img { transform: scale(1.04); }
.home-gem--empty .gemart { animation: home-gem-pulse 1.6s ease-in-out infinite alternate; }
@keyframes home-gem-pulse { from { opacity: 0.55; } to { opacity: 0.85; } }
.home-gem__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 19, 15, 0.82) 0%, rgba(4, 19, 15, 0.1) 54%, transparent 100%); }

.home-gem__body { position: absolute; left: 26px; right: 84px; bottom: 24px; }
.home-gem__kind { font-family: var(--font-body); display: inline-flex; gap: 8px; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft, #E9D8B4); }
.home-gem__body h3 {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.12;
  transition: translate 0.35s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.home-gem--wide .home-gem__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.5rem); }
.home-gem:hover .home-gem__body h3 { translate: 0 -4px; }
.home-gem__place { font-family: var(--font-body); display: block; margin-top: 6px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

.home-gem__arrow {
  position: absolute; right: 20px; bottom: 22px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; font-size: 0.8rem;
  transition: background 0.25s, border-color 0.25s;
}
.home-gem:hover .home-gem__arrow { color: #fff; background: var(--ink); border-color: var(--ink); }


/* ═══ FLIGHTS ════════════════════════════════════════════
   Left: the bush-runway photo under a green tint, with the animated network map (FlightRouteMap)
   and a legend on top. Right: the pitch. The photo has its own slow drift, so it is NOT part of the
   shared scroll-settle rules further down. */
.home-flights {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; overflow: hidden;
  /* BACKGROUND of the section (the words side). Swap both lines to change it.
       Forest green (current):  --flights-bg: var(--forest-deep);  --flights-base: var(--forest-deep);
       Midnight black:          --flights-bg: var(--ink);          --flights-base: var(--ink);
       Qaribia red:             --flights-bg: linear-gradient(160deg, var(--kenya-red) 0%, var(--kenya-red-deep) 100%);  --flights-base: var(--kenya-red-deep);
     --flights-base is the solid colour under the gradient; layout.js reads it to know the navbar sits over dark content.
     The photo panel does not take this colour at all: it has its own warm dusk overlay (see .home-flights__visual). */
  --flights-bg: var(--forest-deep);
  --flights-base: var(--forest-deep);
  background: var(--flights-bg); background-color: var(--flights-base); color: #fff;
}

.home-flights__visual { position: relative; min-height: 680px; overflow: hidden; isolation: isolate;
  /* The photo fills the whole panel with its own natural sky: no fade, no colour wash. The map earns its legibility from the map itself
     (line colour, label outlines, soft shadows), not from darkening the picture. --photo-tint (r, g, b) is only the warm brown of the
     map nodes and the legend chip. The section green shows only if the photo fails to load. */
  --photo-tint: 46, 24, 14;
  background: var(--flights-base); }
.home-flights__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%;
  scale: 1.22; transform-origin: 50% 0; /* zoomed from the top edge: the aircraft sits lower and the sky above it is taller, which is where the map lives */
  animation: home-flights-drift 38s ease-in-out infinite alternate;
}
@keyframes home-flights-drift { from { translate: 2.2% 0; } to { translate: -2.2% 0; } }

/* Almost no overlay: only a soft warm shade at the very bottom, under the legend chip. */
.home-flights__visual::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--photo-tint), 0.4) 0%, transparent 22%);
}
.home-flights__decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ── Network map ── */
/* The single grid cell has a definite size, so the svg (width/height 100%, preserveAspectRatio meet) fits the box in BOTH directions.
   The box is set with `inset`, not padding: padding percentages are always of the WIDTH, which made the bottom margin huge on wide panels.
   Top/bottom inset percentages are of the height. The map is height-limited to about 0.9 of its drawn size (labels about 14px); the bottom fifth is left to the aircraft in the photo. */
.fmap { position: absolute; inset: 4% 4% 38% 4%; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); pointer-events: none; }
.fmap svg { width: 100%; height: 100%; overflow: visible; }

.fmap__grid { opacity: 0; transition: opacity 1.6s ease 0.1s; }
.fmap.is-live .fmap__grid { opacity: 0.2; }

/* Spokes draw on: a white stroke in the mask grows along each route, uncovering the dashed line */
.fmap__reveal { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fmap.is-live .fmap__reveal {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 0.8, 0.3, 1) calc(0.35s + var(--i, 0) * 0.2s);
}
.fmap__spoke { fill: none; stroke: #FFF4DC; stroke-opacity: 0.92; stroke-width: 2; stroke-dasharray: 3 6.5; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(40, 20, 10, 0.6)); }
.fmap__spoke--intl { stroke-opacity: 0.8; stroke-dasharray: 2 7; }
.fmap__trail { fill: none; stroke-width: 2.6; stroke-linecap: round; opacity: 0; stroke-dasharray: 0 2; filter: drop-shadow(0 0 5px currentColor); }

/* Nodes and labels pop after their spoke has drawn */
.fmap__stop .fmap__node,
.fmap__stop .fmap__label { opacity: 0; transition: opacity 0.6s ease, scale 0.7s cubic-bezier(0.3, 1.5, 0.5, 1), translate 0.6s ease; transition-delay: calc(1.25s + var(--i, 0) * 0.2s); }
.fmap__node { fill: rgba(var(--photo-tint), 0.88); stroke: #E8B96A; stroke-width: 2.4; scale: 0.2; transform-box: fill-box; transform-origin: center; }
.fmap__stop .fmap__label { translate: 0 5px; }
.fmap.is-live .fmap__stop .fmap__node { opacity: 1; scale: 1; }
.fmap.is-live .fmap__stop .fmap__label { opacity: 1; translate: 0 0; }

.fmap__label { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: 0.02em; fill: #fff; paint-order: stroke; stroke: rgba(46, 24, 14, 0.85); stroke-width: 3.5px; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(30, 14, 6, 0.55)); }
.fmap__label--hub { opacity: 0; transition: opacity 0.7s ease 0.5s; }
.fmap.is-live .fmap__label--hub { opacity: 1; }
.fmap__label--intl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; fill: #F3D595; opacity: 0; transition: opacity 0.9s ease 1.3s; }
.fmap.is-live .fmap__label--intl { opacity: 0.95; }

/* Hub: dot pops first, then two rings ping outward on a loop */
.fmap__hub-dot, .fmap__hub-ring, .fmap__ping { transform-box: fill-box; transform-origin: center; }
.fmap__hub-dot { fill: #E8B96A; stroke: rgba(var(--photo-tint), 0.9); stroke-width: 3; paint-order: stroke; scale: 0; filter: drop-shadow(0 1px 4px rgba(40, 20, 10, 0.7)); transition: scale 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s; }
.fmap__hub-ring { fill: none; stroke: rgba(255, 244, 220, 0.9); stroke-width: 1.8; filter: drop-shadow(0 1px 3px rgba(40, 20, 10, 0.6)); scale: 0; transition: scale 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 0.25s; }
.fmap.is-live .fmap__hub-dot, .fmap.is-live .fmap__hub-ring { scale: 1; }
.fmap__ping { fill: none; stroke: #FFF4DC; stroke-width: 1.6; opacity: 0; }
.fmap.is-live .fmap__ping { animation: fmap-ping 3.6s ease-out 0.9s infinite; }
.fmap.is-live .fmap__ping--late { animation-delay: 2.1s; }
@keyframes fmap-ping { 0% { scale: 1; opacity: 0.7; } 100% { scale: 4.2; opacity: 0; } }

.fmap__plane { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55)); }

/* Reduced motion: the finished map, nothing moving */
.fmap.is-still .fmap__grid { transition: none; }
.fmap.is-still .fmap__reveal,
.fmap.is-still .fmap__stop .fmap__node,
.fmap.is-still .fmap__stop .fmap__label,
.fmap.is-still .fmap__hub-dot,
.fmap.is-still .fmap__hub-ring,
.fmap.is-still .fmap__label--hub,
.fmap.is-still .fmap__label--intl { transition: none; }
.fmap.is-still .fmap__ping { animation: none; }

/* ── Legend: the four plane colours are the carriers; none is named ── */
.home-flights__legend {
  position: absolute; z-index: 3; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 16px; padding: 13px 22px 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  background: rgba(var(--photo-tint), 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.home-flights__legend strong { font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.home-flights__fleet { display: inline-flex; gap: 9px; }
.home-flights__fleet i { font-size: 0.85rem; animation: home-fleet-glow 4.8s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.6s); }
@keyframes home-fleet-glow { 0%, 100% { opacity: 0.55; translate: 0 0; } 18% { opacity: 1; translate: 3px -2px; } 36% { opacity: 0.55; translate: 0 0; } }

/* ── Copy ── */
.home-flights__content { align-self: center; max-width: 660px; padding: 48px var(--home-gutter) 48px clamp(32px, 5vw, 80px); }
.home-flights__content > p { max-width: 34em; margin-top: 22px; margin-bottom: 28px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }

/* The eyebrow sits in a reveal wrapper, so .home-eyebrow + .home-h2 no longer matches */
.home-flights__content .home-h2 { margin-top: 22px; }

/* A slow gold shimmer travels through the accent line */
.home-flights .home-accent {
  background: linear-gradient(100deg, #E8B96A 0%, #E8B96A 38%, #FBE8B8 50%, #E8B96A 62%, #E8B96A 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: home-shimmer 7s ease-in-out infinite;
}
@keyframes home-shimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

/* ═══ SCROLL REVEAL (sections after the hero) ═══════════ */
.home-page.is-motion .home-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.home-page.is-motion .home-reveal.is-in { opacity: 1; transform: none; }

/* Photographs settle rather than simply appear. `scale` again, so card hover (which uses
   `transform`) stays independent. */
.home-page.is-motion .home-gem .gemart img {
  scale: 1.07;
  transition: opacity 0.5s ease, scale 1.5s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-page.is-motion .home-gem.is-in .gemart img { scale: 1; }

/* The hero copy and the search card arrive in sequence under the clip. */
.home-hero__content { animation: home-copy-in 1s 0.2s ease-out both; }
.home-search__bar-wrap { animation: home-copy-in 1s 0.45s ease-out both; }


/* ═══ FINAL CTA — copy + moving coastal photo ════════════ */
.home-final { position: relative; overflow: hidden; padding: 96px 0 104px; }
.home-final__inner {
  max-width: var(--home-max); margin: 0 auto; padding: 0 var(--home-gutter);
  /* Two balanced halves, like the flights section: the photo (left, via order) on the page margin, the words in the other half, with a moderate gap.
     A 480px square next to a short line of words left the right third of the screen empty and the group looking pushed left. */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(72px, 9vw, 168px); /* wide enough that the floating chip over the photo's right edge does not crowd the words */
}
.home-final__visual { order: -1; }
.home-final__copy { display: flex; flex-direction: column; align-items: flex-start; }
.home-final__copy h2 {
  margin: 16px 0 20px; white-space: nowrap; /* a one-liner, under the headliner */
  font-family: var(--font-heading); font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink);
}
.home-final .home-eyebrow { color: var(--orange); }
.home-final__copy > p { max-width: 470px; text-wrap: pretty; margin-bottom: 32px; font-size: 17px; line-height: 1.75; color: var(--ink-muted); }

.home-final__visual { position: relative; isolation: isolate; width: 100%; max-width: none; justify-self: stretch; }

/* Slowly turning rings + a bead travelling the orbit */
.home-final__rings {
  position: absolute; z-index: -1; top: 50%; left: 50%;
  width: 118%; aspect-ratio: 1;
  border: 1px solid rgba(201, 159, 88, 0.38); border-radius: 50%;
  translate: -50% -50%;
  animation: home-spin 90s linear infinite;
}
.home-final__rings::before,
.home-final__rings::after { content: ''; position: absolute; border: 1px dashed rgba(201, 159, 88, 0.4); border-radius: 50%; }
.home-final__rings::before { inset: 9%; }
.home-final__rings::after { inset: 19%; animation: home-spin 60s linear infinite reverse; }
.home-final__rings span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(201, 159, 88, 0.7); }
@keyframes home-spin { to { rotate: 360deg; } }
@media (min-width: 961px) {
  .home-final__rings { width: auto; height: 134%; aspect-ratio: 1; }
}

.home-final__frame {
  position: relative; overflow: hidden; aspect-ratio: 1.4 / 1; /* landscape, so it fills its half without becoming tall */
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(8, 43, 36, 0.28), 0 8px 20px rgba(8, 43, 36, 0.12);
  animation: home-frame-float 9s ease-in-out infinite;
}
.home-final__img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.08); animation: home-kenburns 24s ease-in-out infinite alternate; }
@keyframes home-kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-3%, -2%, 0); } }
@keyframes home-frame-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }

.home-final__decor { position: absolute; inset: 0; pointer-events: none; }
.home-final__decor .home-bead--forest { background: var(--forest-dark); opacity: 1; box-shadow: 0 0 0 2px rgba(233, 216, 180, 0.7); }
.home-final__decor .home-bead--ring.home-bead--forest { background: none; box-shadow: none; border-color: rgba(18, 63, 49, 0.6); }

/* Floating glass chips over the photo */
.home-final__chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(8, 43, 36, 0.22);
}
.home-final__chip i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest-dark); color: var(--gold-soft); font-size: 0.85rem; }
.home-final__chip strong { display: block; font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.home-final__chip span { font-size: 11px; color: var(--ink-muted); }
.home-final__chip--a { left: -7%; bottom: 14%; animation: home-chip-float 6.5s ease-in-out -1s infinite; }
.home-final__chip--b { right: -5%; top: 12%; animation: home-chip-float 7.5s ease-in-out -3.5s infinite; }
@keyframes home-chip-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }

/* ═══ RESPONSIVE ═════════════════════════════════════════ */
@media (max-width: 1100px) {
  .home-search__field { padding: 22px 20px; }
  .home-gems__grid { grid-auto-rows: 420px; }
}

@media (max-width: 960px) {
  .home-search__bar { grid-template-columns: 1fr 1fr; padding: 8px 8px 12px; }
  .home-search__field { padding: 18px 18px; border-bottom: 1px solid var(--ink-line); }
  .home-search__field + .home-search__field { border-left: 0; }
  .home-search__field--dest,
  .home-search__field--occ { grid-column: 1 / -1; }
  .home-search__tab { flex: 1; justify-content: center; padding: 13px 14px; }
  .home-search__btn { grid-column: 1 / -1; width: calc(100% - 20px); height: 58px; margin: 12px 10px 2px; }
  .home-intro { grid-template-columns: 1fr 1fr; gap: 40px; }
  .home-intro__watermark { display: none; }
  .home-shead { flex-direction: column; align-items: flex-start; gap: 22px; }
  .home-gems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 380px; }
  .home-flights { grid-template-columns: 0.9fr 1.1fr; }
  .home-strand { width: 220px; }
  .home-final__inner { grid-template-columns: 1fr; gap: 64px; }
  .home-final__visual { order: 0; max-width: 420px; justify-self: center; }
  .home-final__copy h2 { white-space: normal; }
  .home-final__chip--a { left: 2%; }
  .home-final__chip--b { right: 2%; }
}

@media (max-width: 760px) {
  .home-hero { min-height: min(78vh, 660px); padding-top: 128px; padding-bottom: 150px; }
  .home-hero__side-note { display: none; }
  .home-hero__sub { font-size: 0.95rem; }
  .home-bead--hide-sm { display: none; }
  .home-strand { width: 150px; opacity: 0.7; }
  .home-search__bar-wrap { margin-top: -96px; }
  .home-beads { margin-top: 44px; }
  .home-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 44px; padding-bottom: 56px; }
  .home-intro__watermark { display: none; }
  .home-cities { padding-top: 44px; padding-bottom: 72px; }
  .home-cities__head { flex-wrap: wrap; }
  .home-cities__tools { width: 100%; margin-left: 0; justify-content: space-between; }
  .home-cities__nav { display: none; }
  .home-gems { padding-top: 70px; padding-bottom: 70px; }
  .home-gems__grid { grid-template-columns: 1fr; grid-auto-rows: 400px; }
  .home-gem--wide { grid-column: auto; }
  .home-gem__body { left: 20px; right: 76px; bottom: 22px; }
  .home-flights { display: flex; flex-direction: column; }
  .home-flights__visual { min-height: 560px; }
  .home-flights__legend { left: 16px; bottom: 16px; padding: 11px 18px 11px 14px; }
  .fmap { inset: 10% 3% 28% 3%; }
  .fmap__label { font-size: 17px; stroke-width: 4px; }
  .fmap__label--intl { font-size: 12.5px; }
  .home-flights__content { padding: 52px var(--home-gutter) 60px; }
  .home-final { padding-top: 80px; padding-bottom: 90px; }
  .home-final__frame { aspect-ratio: 1 / 1; }
  .home-final__chip { padding: 9px 14px 9px 9px; }
  .home-final__chip i { width: 30px; height: 30px; }
  .home-final__rings { width: 108%; }
}

@media (max-width: 560px) {
  .home-search__bar { grid-template-columns: 1fr; }
  .home-search__field--dest,
  .home-search__field--occ,
  .home-search__btn { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-bead, .home-strand, .home-hero__content { animation: none; }
  .home-hero__video, .home-beads i, .home-hero__side-note i, .home-intro__watermark,
  .home-search__bar-wrap { animation: none; }
  .home-page.is-motion .home-gem .gemart img { scale: 1; transition: none; }
  .home-gem__body h3, .home-gem--empty .gemart { transition: none; animation: none; }
  .home-ccard, .home-ccard img, .home-ccard__go, .home-cities__nav button { transition: none; }
  .home-ccard:hover img { scale: 1; }
  .home-flights__visual img, .home-flights__fleet i, .home-flights .home-accent { animation: none; }
  .home-flights__visual img { translate: none; }
  .home-final__rings, .home-final__rings::after, .home-final__frame, .home-final__img, .home-final__chip { animation: none; }
  .home-gem .gemart img { transition: none; }
  .home-gem:hover .gemart img { transform: none; }
  .home-search__bar { transition: none; }
}