/* Home page refresh (22 Nov 2026): reel hero, print-board brand block, film on the destination cards.
   Why: Jackson on gobeyond.travel, "ours is a bit static ... still want to look luxury".
   Borrowed: a moving film behind the wordmark, a clear nav over it, big display type.
   Kept: Othello + Jost, the website gold, every link on the page.
   Second pass the same day, on his notes: the wordmark came down ("a little bit too big"), the
   headline went up, and the flat gold block ("doesn't pop ... needs to look more high-end", "like a
   photo board with maybe thumbtacks") became a dark board of bordered prints on brass pins.
   Loaded on the home page only, after site-design.css.
   Undo: drop this file's <link> and home-refresh.js from index.html. */

/* ---------- Nav: clear over the film, solid once you scroll or open the menu ---------- */
/* The shared nav is always .nav-scrolled (solid); the deploy copies it into every page. Here it is
   clear until the script after it sets .ks-solid (scrolled past 60px, or the menu open). 24 Nov 2026:
   keyed on our own class so the deploy's nav copy can never turn the bar solid over the film. */
html.ks-js .kingse-home #navbar.nav-scrolled:not(.ks-solid) {
  background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
html.ks-js .kingse-home #navbar.nav-scrolled:not(.ks-solid)::before { opacity: 1; }
.kingse-home #navbar { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.kingse-home #navbar.ks-solid,
html:not(.ks-js) .kingse-home #navbar { padding-top: .75rem !important; padding-bottom: .75rem !important; }

/* ---------- Hero: the film, the wordmark as a signature, one big line ---------- */
.home-hero { min-height: 640px; }
.home-hero .hero-gradient {
  background:
    linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.08) 24%, rgba(0,0,0,.06) 52%, rgba(10,7,3,.66) 100%),
    radial-gradient(ellipse 76% 40% at 50% 46%, rgba(0,0,0,.26) 0%, transparent 78%);
}
.home-hero .hero-stage {
  position: relative; z-index: 10; width: 100%; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.home-hero .hero-kicker {
  margin: 0 0 clamp(16px, 2vw, 26px);
  font: 500 clamp(11px, 1.05vw, 14px)/1.4 Jost, system-ui, sans-serif;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.86);
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
/* The <img> keeps the name for readers and old browsers; where masks work the wordmark is
   painted in one flat colour instead.
   24 Nov 2026, Jackson: "Should the Kingse Safaris be like the Kingse color with a black outline ...
   Just trying to make it pop." Tested over the lion, the dunes and the opening elephants: plain gold
   sank into the golden shots, a thick black outline read like a sticker, so it is Golden Sand
   (#D78D2B, the official logo colour) with a fine dark-brown edge and the soft shadow. White was
   the version before; to go back, set --hero-mark to #fff and drop the four 1.6px shadows. */
.home-hero .hero-mark {
  position: relative; width: min(78vw, 640px); margin: 0;
  filter: drop-shadow(1.6px 0 0 #2a1808) drop-shadow(-1.6px 0 0 #2a1808)
          drop-shadow(0 1.6px 0 #2a1808) drop-shadow(0 -1.6px 0 #2a1808)
          drop-shadow(0 3px 18px rgba(0,0,0,.45));
}
.home-hero .hero-mark img { display: block; width: 100%; height: auto; }
@supports ((-webkit-mask-image: url(x)) or (mask-image: url(x))) {
  .home-hero .hero-mark img { opacity: 0; }
  .home-hero .hero-mark-ink {
    position: absolute; inset: 0; background: var(--hero-mark, #D78D2B);
    -webkit-mask: url(/images/kingse-logo.webp) center / contain no-repeat;
            mask: url(/images/kingse-logo.webp) center / contain no-repeat;
  }
}
/* 24 Nov 2026, Jackson on "Africa, up close.": "Maybe it's too big ... It just doesn't seem to look
   right there." It was nearly as wide as the wordmark, so the two fought. Same words and font, about
   60% of the size, so it reads as the wordmark's tagline. */
.home-hero .hero-line {
  margin: clamp(16px, 1.8vw, 26px) 0 0; color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.home-hero .hero-foot { position: relative; z-index: 10; text-align: center; padding: 0 24px; }
.home-hero .hero-foot .ks-hero-note { margin-top: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.45); }
.home-hero .hero-foot .ks-hero-actions { margin-top: 22px; }

/* Film controls: a hairline that fills as the reel plays, and a pause button */
.home-hero .hero-film { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; height: 3px; background: rgba(255,255,255,.16); }
.home-hero .hero-film i { display: block; height: 100%; width: 0; background: #C98239; }
.home-hero .hero-controls { position: absolute; left: 22px; bottom: 22px; z-index: 12; display: flex; gap: 10px; }
.home-hero .hero-pause, .home-hero .hero-sound {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(20,16,10,.28); color: #fff;
  font: 600 11px/1 Jost, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.home-hero .hero-pause:hover, .home-hero .hero-sound:hover { background: rgba(20,16,10,.5); border-color: #fff; }
.home-hero .hero-pause:focus-visible, .home-hero .hero-sound:focus-visible { outline: 2px solid #C98239; outline-offset: 3px; }
.home-hero .hero-pause[hidden], .home-hero .hero-sound[hidden] { display: none; }
/* Sound: a small speaker that fills in when the music is on */
.home-hero .hero-sound::before {
  content: ""; width: 14px; height: 14px; background: currentColor; opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-hero .hero-sound[aria-pressed="true"] { border-color: #C98239; color: #f3c98c; }

@media (min-width: 768px) {
  /* Wordmark and line hold the middle; the note and buttons sit on the bottom edge */
  .home-hero { flex-direction: column; }
  .home-hero .hero-stage { flex: 1; justify-content: center; padding-top: 92px; }
  .home-hero .hero-foot { padding-bottom: clamp(40px, 6.5vh, 76px); }
  .home-hero .hero-foot .ks-hero-note { margin-top: 0; }
}
@media (max-width: 767px) {
  .home-hero { flex-direction: column; justify-content: center; }
  .home-hero .hero-mark {
    width: min(72vw, 420px);
    filter: drop-shadow(1.1px 0 0 #2a1808) drop-shadow(-1.1px 0 0 #2a1808)
            drop-shadow(0 1.1px 0 #2a1808) drop-shadow(0 -1.1px 0 #2a1808)
            drop-shadow(0 2px 14px rgba(0,0,0,.45));
  }
  .home-hero .hero-foot { margin-top: 6px; }
  .home-hero .hero-controls { left: 14px; bottom: 16px; }
}

/* ---------- Brand block: a dark board of prints on brass pins ---------- */
.kingse-home .home-story.home-way {
  position: relative; overflow: hidden; padding: 0; border: 0; color: #f3e8e0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"),
    radial-gradient(88% 72% at 80% 40%, rgba(201,130,57,.18) 0%, rgba(201,130,57,0) 62%),
    #14110d;
}
.kingse-home .home-story.home-way > .way-inner {
  max-width: 1400px; margin: 0 auto; border: 0;
  padding: clamp(72px, 8vw, 120px) 24px clamp(84px, 9vw, 140px);
}
/* 24 Nov 2026, Jackson: "I like the photo board but we need more photos: Namibia, Vic Falls, animals,
   gorillas." So the words became a header row and the board runs the full width underneath. */
.home-way .way-copy {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 110px); align-items: end;
}
.home-way .way-copy > .k-kicker, .home-way .way-copy > .k-display { grid-column: 1; }
.home-way .way-text { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-bottom: .4em; }
.home-way .way-text .way-rule { margin-top: 0; }
.home-way .k-kicker { color: #d49a5a; }
.kingse-home .home-story.home-way .k-display {
  color: #f7efe6; margin-top: 18px;
  font-size: clamp(38px, 4.5vw, 70px); line-height: 1.02;
}
.home-way .k-display span { display: block; }            /* one sentence a line, at every width */
.home-way .k-display b { color: #d9964a; font-weight: inherit; }
.home-way .way-rule { width: 64px; height: 2px; margin: 30px 0 0; background: #C98239; }
.home-way .way-lede { margin: 26px 0 0; max-width: 32ch; color: rgba(243,232,224,.84); font: 400 clamp(18px, 1.45vw, 21px)/1.6 Jost, system-ui, sans-serif; }
.home-way .k-meta { margin-top: 34px; color: #d49a5a; line-height: 2; }
.home-way .k-meta span { display: block; }               /* two clean lines, never a ragged wrap */
.home-way .k-meta .k-meta-dot { display: none; }

/* The board, 24 Nov 2026. Jackson: "you know how you take those Polaroid photos, then you have a name
   below it with kind of messy but kind of funky handwriting ... on a date, and maybe just spread out a
   bit nicer." So: Polaroids (square for upright shots, wide for landscapes), the place and month in
   Rock Salt, pinned in four evenly spaced rows on desktop and a swipeable strip on phones. Places come
   from each photo's GPS or the trip day it was taken; months from the file's own date. */
/* Rock Salt, hosted here (24 Nov 2026, Jackson: "Host the font ourselves"): the Google Fonts latin file,
   unmodified, Apache 2.0, licence beside it in /fonts/rock-salt-LICENSE.txt. The browser fetches it only
   when the board's captions are drawn, and shows the fallback hand until it lands. */
@font-face {
  font-family: "Rock Salt"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/rock-salt.woff2) format("woff2");
}
.home-way .way-board { position: relative; margin-top: clamp(48px, 6vw, 92px); }
.home-way .way-board figure {
  margin: 0; container-type: inline-size; background: #fbf8f1;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 32px rgba(0,0,0,.5);
  rotate: var(--r, 0deg);
  transition: rotate .45s cubic-bezier(.2,.7,.2,1), scale .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.home-way .way-board figure::before {                    /* the brass pin */
  content: ""; position: absolute; z-index: 2; left: 50%; top: -6px;
  width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff1c2 0%, #e8b65c 28%, #b9812f 60%, #6f4715 100%);
  box-shadow: 0 2px 3px rgba(0,0,0,.55), 3px 7px 8px rgba(0,0,0,.3);
}
/* the white border: a margin on the photo, so it is measured against the Polaroid, not the board */
.home-way .way-board .shot { display: block; margin: 5.5% 5.5% 0; aspect-ratio: 1; overflow: hidden; background: #2b2520; }
.home-way .way-board .wd .shot { aspect-ratio: 3 / 2; }
.home-way .way-board .shot img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.home-way .way-board figcaption {
  padding: 9px 3% 13px;                                     /* for browsers without container units */
  padding: clamp(7px, 3.6cqw, 12px) 3% clamp(10px, 5cqw, 16px); text-align: center;
  font-family: "Rock Salt", "Bradley Hand", "Segoe Print", cursive; color: #2b2520; line-height: 1.15;
}
.home-way .way-board figcaption b { display: block; font-weight: 400; font-size: 12px; font-size: clamp(11px, 6.3cqw, 16px); white-space: nowrap; }
.home-way .way-board figcaption span { display: block; margin-top: .35em; font-size: 10px; font-size: clamp(9px, 4.6cqw, 12px); color: #6b5d4f; }
.home-way .way-board .wd figcaption b { font-size: 13px; font-size: clamp(11px, 4.3cqw, 16px); }
.home-way .way-board .wd figcaption span { font-size: 10px; font-size: clamp(9px, 3.2cqw, 12px); }
.home-way .way-board figure:hover {
  z-index: 9; rotate: 0deg; scale: 1.04;
  box-shadow: 0 2px 3px rgba(0,0,0,.4), 0 30px 56px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: reduce) {
  .home-way .way-board figure { transition: none; }
}

/* Fasteners: most prints hang on a brass pin, a few are taped up (24 Nov 2026, "could that maybe look a bit cooler?") */
.home-way .way-board :is(.b-dune, .b-giraffe, .b-sunset, .b-red-dune, .b-guests-ele, .b-rainbow)::before {
  left: 50%; top: -11px; width: 34%; height: 24px; margin-left: -17%; border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px),
    rgba(228, 212, 176, .82);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  rotate: -3deg;
}
.home-way .way-board .wd:is(.b-dune, .b-sunset, .b-guests-ele)::before { width: 26%; margin-left: -13%; rotate: 2deg; }

/* Desktop: an art-directed board. Four feature prints (the dune walker, the gorilla, our truck,
   Deadvlei), the rest medium and small around them, a few corners overlapping. */
@media (min-width: 901px) {
  .home-way .way-board { aspect-ratio: 1352 / 1010; }
  .home-way .way-board figure { position: absolute; }
  .home-way .way-board .b-lioness { left: 0.5%; top: 4.0%; width: 15.5%; --r: -4deg; z-index: 1; --from: 20px; --to: -20px; }
  .home-way .way-board .b-dune { left: 15.0%; top: 0.0%; width: 26.0%; --r: 2deg; z-index: 2; --from: 26px; --to: -26px; }
  .home-way .way-board .b-gorilla { left: 42.5%; top: 3.0%; width: 19.5%; --r: -2.5deg; z-index: 3; --from: 32px; --to: -32px; }
  .home-way .way-board .b-gorge { left: 63.0%; top: 7.0%; width: 21.5%; --r: 3.5deg; z-index: 2; --from: 26px; --to: -26px; }
  .home-way .way-board .b-red-dune { left: 86.0%; top: 0.5%; width: 12.5%; --r: -5deg; z-index: 1; --from: 20px; --to: -20px; }
  .home-way .way-board .b-zebras { left: 1.0%; top: 33.0%; width: 21.5%; --r: 2.5deg; z-index: 2; --from: 26px; --to: -26px; }
  .home-way .way-board .b-giraffe { left: 24.0%; top: 31.0%; width: 12.5%; --r: -3.5deg; z-index: 1; --from: 20px; --to: -20px; }
  .home-way .way-board .b-truck { left: 36.0%; top: 37.0%; width: 26.0%; --r: -1.5deg; z-index: 4; --from: 38px; --to: -38px; }
  .home-way .way-board .b-guest-road { left: 63.5%; top: 34.0%; width: 15.5%; --r: 4deg; z-index: 3; --from: 32px; --to: -32px; }
  .home-way .way-board .b-deadvlei { left: 80.0%; top: 26.0%; width: 19.5%; --r: -2deg; z-index: 3; --from: 32px; --to: -32px; }
  .home-way .way-board .b-ele-calf { left: 2.0%; top: 62.0%; width: 21.5%; --r: -2.5deg; z-index: 2; --from: 26px; --to: -26px; }
  .home-way .way-board .b-ferns { left: 24.5%; top: 57.0%; width: 12.5%; --r: 4.5deg; z-index: 1; --from: 20px; --to: -20px; }
  .home-way .way-board .b-rainbow { left: 22.0%; top: 76.0%; width: 12.5%; --r: -4deg; z-index: 3; --from: 32px; --to: -32px; }
  .home-way .way-board .b-sunset { left: 37.0%; top: 69.0%; width: 21.5%; --r: 1.5deg; z-index: 2; --from: 26px; --to: -26px; }
  .home-way .way-board .b-lioness-tree { left: 60.0%; top: 63.0%; width: 15.5%; --r: -3.5deg; z-index: 3; --from: 32px; --to: -32px; }
  .home-way .way-board .b-guests-ele { left: 76.5%; top: 60.0%; width: 21.5%; --r: 2.5deg; z-index: 2; --from: 26px; --to: -26px; }
}
@keyframes way-drift {
  from { transform: translateY(var(--from)); }
  to   { transform: translateY(var(--to)); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .home-way .way-board figure {
      animation: way-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%;
    }
  }
}

/* Phones and tablets: the words stack, and the board is a pinned collage of ten, two to a row, no caption
   covered (not a slider:
   Jackson, 24 Nov 2026, "does it just look like a slide on the phone version?") */
@media (max-width: 900px) {
  .kingse-home .home-story.home-way > .way-inner { padding: 64px 22px 84px; }
  .home-way .way-copy { grid-template-columns: 1fr; }
  .home-way .way-text { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .home-way .way-text .way-rule { margin-top: 30px; }
  .home-way .way-board { aspect-ratio: 346 / 1110; max-width: 520px; margin: 48px auto 0; }
  .home-way .way-board figure { position: absolute; }
  .home-way .way-board .b-gorilla { left: 0.5%; top: 0.3%; width: 47.0%; --r: -3deg; z-index: 1; }
  .home-way .way-board .b-dune { left: 43.0%; top: 2.2%; width: 57.0%; --r: 2.5deg; z-index: 2; }
  .home-way .way-board .b-truck { left: 0.0%; top: 19.6%; width: 57.0%; --r: -2deg; z-index: 2; }
  .home-way .way-board .b-deadvlei { left: 53.0%; top: 18.8%; width: 47.0%; --r: 3.5deg; z-index: 1; }
  .home-way .way-board .b-giraffe { left: 1.0%; top: 39.6%; width: 47.0%; --r: 2.5deg; z-index: 1; }
  .home-way .way-board .b-zebras { left: 43.0%; top: 41.2%; width: 57.0%; --r: -2deg; z-index: 2; }
  .home-way .way-board .b-gorge { left: 0.0%; top: 59.2%; width: 57.0%; --r: 1.5deg; z-index: 2; }
  .home-way .way-board .b-guest-road { left: 53.0%; top: 58.3%; width: 47.0%; --r: -3.5deg; z-index: 1; }
  .home-way .way-board .b-lioness { left: 3.0%; top: 78.6%; width: 47.0%; --r: -2deg; z-index: 1; }
  .home-way .way-board .b-rainbow { left: 50.0%; top: 79.3%; width: 47.0%; --r: 3deg; z-index: 2; }
  .home-way .way-board :is(.b-red-dune, .b-ele-calf, .b-ferns, .b-sunset, .b-lioness-tree, .b-guests-ele) { display: none; }
  .home-way .way-board figcaption b { font-size: 12px; font-size: clamp(11px, 7.4cqw, 16px); }
  .home-way .way-board figcaption span { font-size: 10px; font-size: clamp(9px, 5.2cqw, 12px); }
  .home-way .way-board .wd figcaption b { font-size: 12px; font-size: clamp(11px, 5.8cqw, 16px); }
  .home-way .way-board .wd figcaption span { font-size: 10px; font-size: clamp(9px, 4.2cqw, 12px); }
}

/* ---------- Destinations: display-size heading, film on the cards we have footage for ---------- */
.kingse-home #destinations .k-display { font-size: clamp(40px, 6vw, 92px); line-height: .98; }
.dest-card .dest-film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.dest-card.is-playing .dest-film { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dest-card .dest-film { display: none; }
}
