/* =========================================================================
   Hilltop Haven Guesthouse — landing page
   Dusk palette: royal navy sky, polished gold, ember orange, platinum white. Fonts are self-hosted when present (see README), with
   Palatino/Georgia and Century Gothic/Futura as graceful fallbacks.
   ========================================================================= */

@font-face {
  font-family: "Hilltop Serif";
  src: local("Cormorant Garamond Medium"), local("CormorantGaramond-Medium"),
       url("../assets/fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hilltop Serif";
  src: local("Cormorant Garamond Medium Italic"), local("CormorantGaramond-MediumItalic"),
       url("../assets/fonts/CormorantGaramond-MediumItalic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hilltop Sans";
  src: local("Jost"), local("Jost Regular"),
       url("../assets/fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --night: #0c1022;
  --sky: #17204a;            /* royal navy: a brighter field for white and gold */
  --sky-2: #222c5c;
  --dusk: #2c2a55;
  --gold: #ffd21a;           /* bright yellow gold: text, icons, rules, focus ring */
  --gold-soft: #ffe98f;      /* highlights, italic taglines, links */
  --gold-deep: #b8860b;      /* shadow end of the metal */
  /* polished metal: only for large fills (buttons, numerals, hairlines), never small text */
  --gold-metal: linear-gradient(115deg, #a87900 0%, #ffcc14 22%, #fff4b0 46%, #ffd21a 60%, #b8860b 100%);
  --ember: #e8733a;
  --white: #ffffff;          /* text and labels */
  /* platinum: only for large type (headings), never small text */
  --white-metal: linear-gradient(115deg, #b9c0cf 0%, #ffffff 24%, #eef2ff 46%, #ffffff 62%, #c3c9d6 100%);
  --white-dim: #d6dbe8;      /* secondary text: cool silver */
  --line: rgba(255, 255, 255, 0.18);

  --serif: "Cormorant Garamond", "Hilltop Serif", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Jost", "Hilltop Sans", Futura, "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --bar-h: 4.25rem;
  --radius: 6px;             /* every photo, card and map */
  --gap: clamp(4.5rem, 10vw, 8rem);   /* vertical rhythm between sections */

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--sky);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--gold) 55%, transparent) var(--night);
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--night); }
html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 10px; border: 2px solid var(--night); }

body {
  margin: 0;
  background: var(--sky);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-gated { overflow: hidden; }

::selection { background: var(--gold); color: var(--sky); }

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 60;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--white); color: var(--sky);
  font: 500 0.85rem/1 var(--sans); letter-spacing: 0.02em;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 3rem; padding: 0.95rem 1.9rem;
  border-radius: 999px; border: 1px solid var(--b);
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.35s var(--ease-out),
              background-position 0.9s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold {
  --b: var(--gold-deep);
  background: var(--gold) var(--gold-metal) 35% 0 / 220% 100%;
  color: var(--night); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -14px color-mix(in srgb, var(--gold) 80%, transparent);
}
/* the sheen slides across the metal on hover */
.btn--gold:hover {
  background-position: 65% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 34px -12px color-mix(in srgb, var(--gold) 90%, transparent);
}
.btn--gold:active { transform: translateY(1px); }
.btn--lg { min-height: 3.9rem; padding: 1.2rem 3.6rem; font-size: 0.92rem; letter-spacing: 0.32em; gap: 0.9em; }
.btn--lg svg { width: 1.25em; height: 1.25em; stroke-width: 1.7; }
.btn--lg:hover svg { transform: rotate(90deg); }
.btn--quiet { background: transparent; color: var(--white); --b: rgba(255, 255, 255, 0.38); }
.btn--quiet:hover { --b: var(--white); background: rgba(255, 255, 255, 0.06); }

/* =========================================================================
   Gate
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: var(--pad);
  background:
    linear-gradient(to bottom, var(--night) 0%, #15172e 55%, #2a2547 100%);
  transition: opacity 1.1s var(--ease-out), visibility 0s linear 1.1s, filter 1.1s var(--ease-out);
}
.gate.is-leaving { opacity: 0; visibility: hidden; filter: blur(6px); }
.gate.is-gone { display: none; }
.no-js .gate { display: none; }
.no-js body.is-gated { overflow: auto; }

.gate__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 44rem;
}
.gate.is-leaving .gate__inner { transform: scale(1.04); transition: transform 1.1s var(--ease-out); }

.crest {
  position: relative;
  width: clamp(13.2rem, 41vmin, 18.6rem); aspect-ratio: 1;   /* 20% larger than the first cut */
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.crest__mask picture, .footer__brand picture { display: contents; }
.crest__mask {
  position: absolute; inset: 7%;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(#8fa6d4 0%, #f3b98a 22%, #fbe2b6 55%, #6b5a6e 88%);
  /* soft-edged crest: the sun-and-house mark fades into the night */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.5) 67%, transparent 71%);
          mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0,0,0,0.5) 67%, transparent 71%);
  animation: crest-in 1.8s var(--ease-out) both;
}
.crest__logo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transform: scale(1.04);
}
@keyframes crest-in { from { opacity: 0; transform: scale(1.5); filter: blur(8px); } }

.crest__ring { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.crest__track, .crest__fill { fill: none; stroke-width: 1.45; }
.crest__track { stroke: rgba(255, 255, 255, 0.2); }
.crest__fill {
  stroke: var(--gold);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 65%, transparent));
  stroke-linecap: round;
  stroke-dasharray: 728.85;          /* 2πr, r = 116 */
  stroke-dashoffset: 728.85;
  transition: stroke-dashoffset 0.5s var(--ease-out);
}

/* The key: it rides the leading end of the ring while the film loads (scrub.js turns the orbit
   in step with the ring), then turns a quarter in the lock when everything is ready. */
.crest__orbit {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  transition: transform 0.5s var(--ease-out);
  animation: rise 1.2s 0.5s var(--ease-out) both;
}
.crest__key {
  position: absolute; left: 50%; top: 1.67%;          /* on the ring: r = 116 of a 240 box */
  width: 2.1rem; height: 2.1rem; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--night); color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(12, 16, 34, 0.9), 0 0 16px color-mix(in srgb, var(--gold) 55%, transparent);
  animation: key-glint 2.4s ease-in-out infinite;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
.crest__key svg {
  width: 1.15rem; height: 1.15rem;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: rotate 0.9s var(--ease-out) 0.35s;
}
@keyframes key-glint {
  50% { box-shadow: 0 0 0 4px rgba(12, 16, 34, 0.9), 0 0 26px 4px color-mix(in srgb, var(--gold) 80%, transparent); }
}
.gate.is-ready .crest__key {
  background: var(--gold) var(--gold-metal) 40% 0 / 200% 100%; color: var(--night); border-color: var(--gold-soft);
  animation: none;
}
.gate.is-ready .crest__key svg { rotate: 90deg; }
.gate.is-ready .crest__fill { animation: ring-flash 1.4s var(--ease-out) 0.3s both; }
@keyframes ring-flash {
  35% { stroke: var(--gold-soft); filter: drop-shadow(0 0 14px var(--gold)); }
}
/* once unlocked, a slow sheen crosses the Enter button to invite the press */
.gate.is-ready .btn--gold { animation: rise 1.4s 0.7s var(--ease-out) both, sheen 3.2s 1.6s ease-in-out infinite; }
.gate.is-ready .gate__actions { animation: none; }
@keyframes sheen { 0%, 100% { background-position: 35% 0; } 50% { background-position: 72% 0; } }

.gate__title {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 6.4vw, 3.2rem); line-height: 1; white-space: nowrap;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-left: 0.18em;  /* optically recentre tracked caps */
  animation: rise 1.4s 0.25s var(--ease-out) both;
}
.gate__tagline {
  margin: 0.9rem 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--gold-soft);
  animation: rise 1.4s 0.4s var(--ease-out) both;
}
.gate__status {
  margin: 1.6rem 0 0; min-height: 1.2em;
  font: 400 0.72rem/1.2 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white-dim);
  font-variant-numeric: tabular-nums;
  animation: rise 1.4s 0.55s var(--ease-out) both;
}
.gate__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem;
  margin-top: 1.6rem;
  animation: rise 1.4s 0.7s var(--ease-out) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Platinum type. Large headings only: the gradient is clipped to the glyphs, and the bottom
   padding keeps descenders inside the painted box. */
.gate__title, .display, .chapter__title, .band__title, .amenity__name, .card__title, .sheet__title {
  color: var(--white);
  background: var(--white-metal); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.14em;
}

/* =========================================================================
   Top bar
   ========================================================================= */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), opacity 0.8s var(--ease-out);
}
.topbar::before {
  content: ""; position: absolute; inset: 0 0 -2.5rem; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 16, 34, 0.62), rgba(12, 16, 34, 0));
  transition: opacity 0.5s var(--ease-out);
}
.topbar.is-solid { background: rgba(23, 32, 74, 0.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .topbar.is-solid { background: rgba(23, 32, 74, 0.78); backdrop-filter: blur(14px) saturate(1.2); }
}
.topbar.is-solid::before { opacity: 0; }
.is-gated .topbar { opacity: 0; }

.topbar__brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.topbar__name {
  font-family: var(--serif); font-weight: 500; font-size: 1.12rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.topbar__sub {
  margin-top: 0.32rem;
  font: 400 0.7rem/1 var(--sans); letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold);
}
.topbar__actions { display: flex; align-items: center; gap: 0.6rem; }
.topbar__nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.topbar__nav a {
  position: relative; padding: 0.7rem 0;
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none;
  color: var(--white); text-shadow: 0 1px 10px rgba(8, 10, 24, 0.6);
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0.26em; bottom: 0.25rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.topbar__nav a:hover::after, .topbar__nav a:focus-visible::after { transform: scaleX(1); }

.pill {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.25rem;
  border-radius: 999px; color: var(--night);
  background: var(--gold) var(--gold-metal) 35% 0 / 220% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font: 600 0.74rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: background-position 0.9s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.pill:hover { background-position: 65% 0; }

/* =========================================================================
   Journey (scroll-scrubbed hero)
   ========================================================================= */
.journey { position: relative; height: 600vh; height: 600svh; }
.journey:focus { outline: none; }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: linear-gradient(to top, var(--dusk), var(--sky) 55%, var(--night));
}

.stage__media {
  position: absolute; inset: -2%;
  will-change: transform;
}
.stage__media > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.stage__poster { opacity: 1; transition: opacity 0.9s var(--ease-out); }
.stage__video, .stage__frames { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.stage__still { opacity: 0; will-change: opacity, transform; }
.stage[data-mode="video"].has-media .stage__video,
.stage[data-mode="frames"].has-media .stage__frames { opacity: 1; }
.stage[data-mode="video"].has-media .stage__poster,
.stage[data-mode="frames"].has-media .stage__poster { opacity: 0; }

/* the warm grade: vignette + bottom fall-off so captions always read */
.stage__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 56%, rgba(8, 10, 24, 0.42) 100%),
    linear-gradient(to top, rgba(10, 12, 30, 0.82) 0%, rgba(10, 12, 30, 0.42) 26%, transparent 52%),
    linear-gradient(to bottom, rgba(10, 12, 30, 0.35), transparent 22%);
}
.stage__grain {
  position: absolute; inset: -50%; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-size: 160px 160px;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Captions ---------- */
.captions {
  position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none;
}
.caption {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: clamp(5.5rem, 15vh, 9.5rem);
  max-width: 44rem;
  opacity: 0; visibility: hidden;
  will-change: opacity, transform, filter;
}
.caption.is-live { visibility: visible; }
.caption--final.is-live { pointer-events: auto; }

.caption__kicker, .kicker {
  margin: 0 0 0.85rem;
  display: flex; align-items: center; gap: 0.9rem;
  font: 500 0.74rem/1.3 var(--sans);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(8, 10, 24, 0.7);
}
.caption__kicker::before, .kicker::before {
  content: ""; flex: none; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.8;
}
.caption__line {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.15rem, 1.2rem + 4.2vw, 5rem);
  line-height: 1.02; letter-spacing: -0.012em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(8, 10, 24, 0.55);
}
.caption__cta { margin-top: 1.8rem; }

/* ---------- Hint + progress ---------- */
.hint {
  position: absolute; left: 50%; bottom: 1.6rem; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  transform: translateX(-50%);
  font: 400 0.72rem/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em;
  color: var(--white);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hint__line {
  position: relative; width: 1px; height: 2.6rem; overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}
.hint__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--gold);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hint.is-hidden { opacity: 0; transform: translate(-50%, 10px); }

.progress {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  height: 2px; background: rgba(255, 255, 255, 0.1);
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.progress__fill {
  height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold) 55%, var(--gold-soft));
  transform-origin: 0 50%; transform: scaleX(0);
}
.progress.is-hidden, .is-gated .progress { opacity: 0; }

/* =========================================================================
   Content: everything below the film. One column (.wrap) for every section.
   ========================================================================= */
.below {
  position: relative;
  padding: 0 var(--pad) clamp(4rem, 9vw, 7rem);
  background: linear-gradient(to bottom, var(--night), var(--sky) 22rem);
}
.below > section { padding-top: var(--gap); }
.wrap { max-width: 78rem; margin-inline: auto; }

.stay__intro {
  display: grid; gap: 1.5rem 4rem; align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.kicker { margin-bottom: 1.1rem; text-shadow: none; }
.display {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 4rem); }
.lede {
  margin: 0; max-width: 34rem;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.7; color: var(--white-dim);
}

/* ---------- Gallery: chapter rail ---------- */
.gallery__head { margin-bottom: 1.6rem; }
.rail {
  position: sticky; top: calc(var(--bar-h) + 0.6rem); z-index: 20;
  display: flex; gap: 0.2rem; width: fit-content; max-width: 100%;
  padding: 0.3rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(23, 32, 74, 0.92);
  overflow-x: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@supports (backdrop-filter: blur(1px)) {
  .rail { background: rgba(23, 32, 74, 0.72); backdrop-filter: blur(14px) saturate(1.2); }
}
.rail a {
  display: inline-flex; align-items: baseline; gap: 0.6em; white-space: nowrap;
  padding: 0.68rem 1.05rem; border-radius: 999px;
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--white-dim);
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.rail a span { color: var(--gold); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.rail a:hover { color: var(--white); }
.rail a[aria-current="true"] {
  background: var(--gold) var(--gold-metal) 35% 0 / 220% 100%;
  color: var(--night); font-weight: 600;
}
.rail a[aria-current="true"] span { color: inherit; }

/* ---------- Gallery: chapters ---------- */
.chapter {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  scroll-margin-top: calc(var(--bar-h) + 2.5rem);
}
.chapter__head {
  position: relative;
  display: grid; align-items: end; gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 21rem);
  padding-bottom: 1.5rem; margin-bottom: clamp(0.9rem, 1.8vw, 1.4rem);
  border-bottom: 1px solid var(--line);
}
/* a short run of polished gold on the rule, under the numeral */
.chapter__head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: clamp(4rem, 9vw, 7rem); height: 1px;
  background: var(--gold-metal);
}
.chapter__num {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(3.6rem, 2rem + 5.4vw, 7rem); line-height: 0.78;
  padding-right: 0.08em;   /* italic overhang would be clipped by background-clip otherwise */
  color: var(--gold);
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chapter__titles .kicker { margin-bottom: 0.65rem; }
.chapter__title {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); line-height: 1; letter-spacing: -0.015em;
}
.chapter__note {
  margin: 0; justify-self: end; text-align: right;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.35; color: var(--gold-soft);
}

/* ---------- Gallery: tiles ---------- */
.spread { --g: clamp(0.6rem, 1.2vw, 1rem); }
.shot {
  position: relative; margin: 0; min-height: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--sky-2);
}
.shot__link { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; cursor: zoom-in; }
.shot__link:focus-visible { outline-offset: -5px; }
/* the picture is 8% taller than its frame so it can drift with the scroll without showing an edge */
.shot img, .shot__video {
  position: absolute; left: 0; top: -4%; width: 100%; height: 108%; max-width: none;
  object-fit: cover;
  transition: scale 1.6s var(--ease-out);
}
.shot:hover img, .shot:hover .shot__video { scale: 1.035; }
/* film grain + the hero's vignette, so compressed stills sit in the same world as the film */
.shot__link::before, .shot__link::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shot__link::before { background: var(--grain, none) 0 0 / 160px 160px; mix-blend-mode: overlay; opacity: 0.04; }
.shot__link::after { background: radial-gradient(130% 100% at 50% 45%, transparent 62%, rgba(8, 10, 24, 0.18) 100%); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 2.8rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(10, 12, 30, 0.62), transparent);
  text-shadow: 0 1px 10px rgba(8, 10, 24, 0.6);
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.2;
}
.shot figcaption::before {
  content: ""; display: block; width: 0; height: 1px; margin-bottom: 0.6rem;
  background: var(--gold);
  transition: width 0.9s var(--ease-out);
}
.shot:hover figcaption::before, .shot:focus-within figcaption::before { width: 2.2rem; }

/* the rooftop clip: a silent loop with its own pause control (WCAG 2.2.2) */
.shot__pause {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 16, 34, 0.55); color: var(--white); cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.shot__pause[hidden] { display: none; }
.shot__pause:hover { border-color: var(--gold); color: var(--gold); }
.shot__pause svg { width: 1.1rem; height: 1.1rem; }
.shot__pause-bars { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shot__pause-play { fill: currentColor; display: none; }
.shot__pause[aria-pressed="true"] .shot__pause-bars { display: none; }
.shot__pause[aria-pressed="true"] .shot__pause-play { display: block; }

/* The crest card: the square logo animation, shown whole and never cropped. On desktop the card
   is stretched to the height of the photograph beside it; the space above and below the video
   becomes two equal framed bands, lit from behind by a blurred copy of the logo's own sunset. */
.shot--brand, .reveal-ready .shot--brand.reveal.is-in { background: var(--night); }
.shot--brand .shot__link { display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); text-decoration: none; }
.shot--brand .shot__link::before {
  inset: -14%; z-index: 0; opacity: 1; mix-blend-mode: normal;
  background: url("../assets/gallery/house_logo_poster.jpg") center / cover no-repeat;
  filter: blur(30px) brightness(0.42) saturate(1.25);
}
.shot--brand .shot__link::after { display: none; }
.shot--brand .shot__video {
  position: relative; z-index: 1; left: auto; top: auto;
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}
.shot--brand:hover .shot__video { scale: none; }
.shot__band {
  position: relative; z-index: 1; min-height: 0; overflow: hidden;
  display: grid; place-items: center;
  container-type: size;
}
/* a hairline of polished gold where each band meets the film */
.shot__band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold-metal);
}
.shot__band:first-child::after { bottom: 0; }
.shot__band:last-child::after { top: 0; }
.shot__ornament {
  position: relative; width: min(9rem, 58%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.shot__ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.55rem; height: 0.55rem;
  translate: -50% -50%; rotate: 45deg;
  background: var(--gold) var(--gold-metal) 40% 0 / 200% 100%;
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent);
}
.shot__mark {
  font: 500 0.66rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
  padding-left: 0.3em; color: var(--gold);
}
@container (max-width: 15rem) { .shot__mark { font-size: 0.56rem; letter-spacing: 0.18em; } }
@container (max-height: 2.6rem) { .shot__mark, .shot__ornament { display: none; } }

/* ---------- Gallery: the five spreads (desktop and tablet) ----------
   Lead tiles carry an aspect-ratio and set the row height; the others stretch to match,
   so every spread closes into a clean rectangle whatever the column width. */
@media (min-width: 701px) {
  .spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
  .spread__rest { display: contents; }

  .spread--house .shot--a { grid-column: 1 / span 8; aspect-ratio: 11 / 8; }
  .spread--house .shot--b { grid-column: 9 / span 4; }   /* stretches to the gate photo's height */

  .spread--living .shot--a { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 16 / 9; }
  .spread--living .shot--b { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .spread--living .shot--c { grid-column: 1 / span 4; grid-row: 2; aspect-ratio: 16 / 9; }
  .spread--living .shot--d { grid-column: 5 / span 4; grid-row: 2; aspect-ratio: 16 / 9; }

  .spread--bedrooms .shot--a { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 16 / 9; }
  .spread--bedrooms .shot--b { grid-column: 8 / span 5; grid-row: 1; }
  .spread--bedrooms .shot--c { grid-column: 1 / span 5; grid-row: 2; }
  .spread--bedrooms .shot--d { grid-column: 6 / span 7; grid-row: 2; aspect-ratio: 16 / 9; }

  .spread--kitchen { align-items: start; }
  .spread--kitchen .shot--a { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
  .spread--kitchen .shot--b { grid-column: 5 / span 4; aspect-ratio: 3 / 4; margin-top: clamp(2rem, 5vw, 4.5rem); }
  .spread--kitchen .shot--c { grid-column: 10 / span 3; aspect-ratio: 9 / 16; }

  .spread--dusk .shot--a { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 16 / 9; }
  .spread--dusk .shot--b { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .spread--dusk .shot--c { grid-column: 1 / span 5; grid-row: 2; aspect-ratio: 16 / 9; }
  .spread--dusk .shot--d { grid-column: 6 / span 3; grid-row: 2; }
}

/* ---------- Gallery: phones. A full-width lead, then a native swipe row. ---------- */
@media (max-width: 700px) {
  .chapter__head { grid-template-columns: auto minmax(0, 1fr); }
  .chapter__note { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .spread .shot--a { aspect-ratio: 4 / 3; }
  .spread--kitchen .shot--a { aspect-ratio: 4 / 5; }
  .spread__rest {
    display: flex; gap: var(--g); margin-top: var(--g);
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .spread__rest::-webkit-scrollbar { display: none; }
  .spread__rest .shot { flex: 0 0 74%; aspect-ratio: 1 / 1; scroll-snap-align: start; }
  .spread__rest .shot:only-child { flex-basis: 100%; }
  .rail a { padding: 0.9rem 1rem; }
}

/* ---------- Scroll reveals ----------
   Hidden states only exist once gallery.js has confirmed it can reveal them (.reveal-ready),
   so the page is fully visible without JS, without IntersectionObserver, or with reduced motion.
   The motion repeats the film captions: a 28px rise out of a soft blur. */
.reveal-ready .reveal {
  opacity: 0; translate: 0 28px; filter: blur(6px);
  transition: opacity 1.1s var(--ease-out), translate 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.reveal-ready .reveal.is-in { opacity: 1; translate: 0 0; filter: none; }
/* photographs open like a curtain instead: the frame stays put, the picture is unveiled */
.reveal-ready .shot.reveal { opacity: 1; translate: none; filter: none; background: transparent; transition: background-color 0.6s; }
.reveal-ready .shot.reveal .shot__link {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease-out) var(--d, 0s);
}
.reveal-ready .shot.reveal figcaption, .reveal-ready .shot.reveal .shot__pause {
  opacity: 0; translate: 0 14px;
  transition: opacity 0.9s var(--ease-out) calc(var(--d, 0s) + 0.55s), translate 0.9s var(--ease-out) calc(var(--d, 0s) + 0.55s);
}
.reveal-ready .shot.reveal.is-in { background: var(--sky-2); }
.reveal-ready .shot.reveal.is-in .shot__link { clip-path: inset(0 0 0 0); }
.reveal-ready .shot.reveal.is-in figcaption, .reveal-ready .shot.reveal.is-in .shot__pause { opacity: 1; translate: 0 0; }
.shot--b { --d: 0.12s; }
.shot--c { --d: 0.24s; }
.shot--d { --d: 0.36s; }

/* a slow drift of the picture inside its frame, tied to the scroll position (where supported) */
@keyframes drift { from { translate: 0 -3.4%; } to { translate: 0 3.4%; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot img { animation: drift linear both; animation-timeline: view(); }
  }
}

/* ---------- Booking band ---------- */
.band__inner {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(80% 130% at 50% 0%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.band__inner::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(18rem, 50%); height: 1px;
  transform: translateX(-50%); background: var(--gold-metal);
}
.band .kicker::after { content: ""; flex: none; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.8; }
.band__title {
  margin: 0 0 2.2rem; max-width: 16ch;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance;
}
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* ---------- Amenities: a ruled strip, not cards ---------- */
.amenities {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.amenities::before, .card::before, .footer::before {
  content: ""; position: absolute; left: 0; top: -1px; width: clamp(4rem, 9vw, 7rem); height: 1px;
  background: var(--gold-metal);
}
.card::before { top: 0; }
.footer::before { left: 50%; transform: translateX(-50%); width: min(18rem, 50%); }
.amenity { padding: 2.2rem 1.6rem 2.3rem; }
.amenity + .amenity { border-left: 1px solid var(--line); }
.amenity:first-child { padding-left: 0.25rem; }
.amenity__icon {
  width: 2.4rem; height: 2.4rem; margin-bottom: 1.3rem;
  fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.amenity__name {
  margin: 0 0 0.45rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.1;
}
.amenity__text { margin: 0; color: var(--white-dim); font-size: 0.96rem; line-height: 1.55; max-width: 22ch; }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  background: rgba(8, 10, 24, 0.97); color: var(--white);
  overflow: hidden; overscroll-behavior: contain;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgba(6, 8, 18, 0.9); }
.viewer__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: max(0.9rem, env(safe-area-inset-top)) var(--pad) 0.9rem;
}
.viewer__chapter {
  margin: 0; font: 500 0.74rem/1.3 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
}
.viewer__count {
  margin: 0 0 0 auto; font: 400 0.74rem/1 var(--sans); letter-spacing: 0.22em; color: var(--white-dim);
  font-variant-numeric: tabular-nums;
}
.viewer__btn {
  flex: none; width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 16, 34, 0.6); color: var(--white); cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.viewer__btn:hover { border-color: var(--gold); color: var(--gold); }
.viewer__btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.viewer__stage {
  position: relative; min-height: 0;
  display: grid; place-items: center;
  padding: 0 clamp(0.5rem, 6vw, 5.5rem);
  touch-action: none; user-select: none;
}
.viewer__stage picture { display: contents; }
.viewer__img, .viewer__video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  transition: opacity 0.35s var(--ease-out);
}
.viewer__img.is-loading { opacity: 0.35; }
.viewer__img[hidden], .viewer__video[hidden] { display: none; }
.viewer__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; }
.viewer__nav--prev { left: max(0.75rem, env(safe-area-inset-left)); }
.viewer__nav--next { right: max(0.75rem, env(safe-area-inset-right)); }
.viewer__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 2rem;
  padding: 1rem var(--pad) max(1.1rem, env(safe-area-inset-bottom));
}
.viewer__caption {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); line-height: 1.2;
}
.viewer__book { min-height: 2.6rem; padding: 0.75rem 1.5rem; }

/* thumbnail <-> fullscreen morph (View Transitions API; ignored where unsupported) */
.vt-shot { view-transition-name: shot; }
::view-transition-group(shot) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(shot), ::view-transition-new(shot) { height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .crest__key, .gate.is-ready .btn--gold, .gate.is-ready .crest__fill { animation: none; }
  .shot:hover img, .shot:hover .shot__video { scale: none; }
  .btn--gold:hover, .pill:hover { background-position: 35% 0; }
}
@media (hover: none) {
  .shot:hover img, .shot:hover .shot__video { scale: none; }
  .shot figcaption::before { width: 2.2rem; }
}


/* footer */
.footer {
  position: relative;
  display: grid; gap: 1.5rem 2rem; align-items: center;
  grid-template-columns: auto 1fr auto;
  padding: 2.4rem var(--pad) calc(2.4rem + env(safe-area-inset-bottom));
  background: var(--night);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 26%;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.footer__name { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.footer__tagline { margin: 0; color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.02rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; justify-content: center; }
.footer__nav a { color: var(--white-dim); text-decoration: none; padding: 0.4rem 0; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { margin: 0; color: var(--white-dim); font-size: 0.8rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .stay__intro { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity:nth-child(3) { border-left: 0; padding-left: 0.25rem; }
  .amenity:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
  :root { --bar-h: 3.75rem; }
  .topbar__name { font-size: 0.98rem; letter-spacing: 0.16em; }
  .topbar__sub { font-size: 0.7rem; letter-spacing: 0.3em; }
  .pill { padding: 0 1rem; font-size: 0.72rem; letter-spacing: 0.14em; min-height: 2.6rem; }
  .caption { bottom: clamp(7.5rem, 17vh, 9rem); }
  .caption__kicker { font-size: 0.72rem; letter-spacing: 0.24em; }
  .caption__kicker::before { width: 1.4rem; }
  .shot figcaption { font-size: 1rem; padding: 2rem 0.8rem 0.7rem; }
  .amenities { grid-template-columns: 1fr; }
  .amenity, .amenity:first-child { padding: 1.7rem 0.25rem; border-left: 0 !important; }
  .amenity + .amenity { border-top: 1px solid var(--line); }
  .amenity__text { max-width: none; }
  .btn { padding: 0.95rem 1.5rem; letter-spacing: 0.22em; }
}

/* =========================================================================
   Reduced motion: no scrubbing. A single still, the welcome line and the
   booking call, then the gallery.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .journey { height: auto; }
  .stage { position: relative; }
  .stage__grain, .hint { display: none; }
  .stage__media { inset: 0; transform: none !important; }
  .caption { opacity: 0 !important; visibility: hidden !important; transform: none !important; filter: none !important; }
  .caption--final { opacity: 1 !important; visibility: visible !important; pointer-events: auto; }
  .gate__inner, .gate.is-leaving .gate__inner { transform: none; }
}

/* =========================================================================
   PRODUCTION ADDITIONS (ported from hilltop-guesthouse, extended for booking)
   Real satellite location view, Airbnb + WhatsApp conversion cards, privacy sheet.
   Same palette and type scale as the rest of the page; no dependencies.
   ========================================================================= */

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font: inherit; font-family: var(--sans); letter-spacing: 0.02em;
  color: var(--gold-soft); text-decoration: none; background: none; border: 0; padding: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.text-link:hover { color: var(--white); border-color: var(--white); }

.disclosure {
  max-width: 62ch; margin: 1.6rem 0 0;
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.6;
  color: var(--white-dim);
}

/* ---------- WhatsApp pill in the top bar ---------- */
.pill--wa { display: inline-flex; align-items: center; gap: 0.5em; }
.pill__wa { width: 1em; height: 1em; fill: currentColor; }

/* ---------- location ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.visit__copy p { color: var(--white-dim); max-width: 46ch; }
.visit__copy strong { color: var(--white); font-weight: 500; }
.visit__address {
  display: grid; gap: 0.15rem; margin: 1.15rem 0 0.75rem;
  font-style: normal; font-family: var(--sans); font-size: 0.95rem; color: var(--white);
}
.visit__address span:first-child { color: var(--gold-soft); letter-spacing: 0.04em; }
.visit__coords {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white-dim); margin: 0 0 1.1rem;
}
.visit__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }

.visit__aerial {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--night); transition: border-color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.visit__aerial:hover { border-color: rgba(255, 255, 255, 0.42); }
.visit__aerial img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.02);
  transition: transform 0.8s var(--ease-out), filter 0.4s var(--ease-out);
}
.visit__aerial:hover img { transform: scale(1.035); filter: saturate(1.12) brightness(1.05); }

/* the marker: a gold pin with a slow halo, positioned on the building */
.visit__pin {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  display: grid; place-items: center;
}
.visit__pin::before {
  content: ""; position: absolute; width: 3.6rem; height: 3.6rem; border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 38%, transparent) 0%, color-mix(in srgb, var(--gold) 11%, transparent) 45%, transparent 70%);
  animation: pinPulse 3.6s ease-out infinite;
}
.visit__pin-dot {
  position: absolute; width: 0.85rem; height: 0.85rem; border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--gold); box-shadow: 0 0 0 2px rgba(12, 16, 34, 0.85), 0 2px 10px rgba(0, 0, 0, 0.6);
}
@keyframes pinPulse {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0.95; }
  70%  { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}

.visit__aerial-label {
  position: absolute; left: 0.9rem; bottom: 0.85rem;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--white);
  background: rgba(9, 12, 26, 0.62); padding: 0.32rem 0.55rem; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.visit__aerial-credit {
  position: absolute; right: 0.7rem; bottom: 0.85rem;
  font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- booking cards ---------- */
.booking__lede { color: var(--white-dim); max-width: 56ch; margin: 0.6rem 0 1.75rem; }
.booking__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.card {
  position: relative; display: grid; align-content: start; gap: 0.55rem;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden; isolation: isolate;
  transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s var(--ease-out);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.card--airbnb::after { background: radial-gradient(120% 90% at 12% 0%, rgba(255, 90, 95, 0.16), transparent 62%); }
.card--whatsapp::after { background: radial-gradient(120% 90% at 12% 0%, rgba(37, 211, 102, 0.16), transparent 62%); }
.card:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.card__mark { display: block; width: 2.1rem; height: 2.1rem; margin-bottom: 0.35rem; }
.card--airbnb .card__mark { color: #ff5a5f; }
.card--whatsapp .card__mark { color: #25d366; }
.card__mark svg { width: 100%; height: 100%; fill: currentColor; }
.card__badge {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--white-dim);
}
.card__title {
  margin: 0.1rem 0 0.15rem; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--white);
}
.card__text { margin: 0; color: var(--white-dim); font-size: 0.92rem; line-height: 1.6; max-width: 34ch; }
.card__cta {
  display: inline-flex; align-items: center; gap: 0.45em; margin-top: 0.7rem;
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.card__cta svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 0.3s var(--ease-out); }
.card:hover .card__cta svg { transform: translateX(4px); }

.booking__fallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin: 1.4rem 0 0; font-family: var(--sans); font-size: 0.8rem; color: var(--white-dim);
}
.booking__copy { cursor: pointer; }
.booking__status { color: var(--gold-soft); }

/* ---------- privacy sheet ---------- */
.sheet {
  width: min(34rem, calc(100vw - 2rem)); padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius);
  background: var(--sky); color: var(--white);
  font-family: var(--sans); font-size: 0.92rem; line-height: 1.65;
}
.sheet::backdrop { background: rgba(6, 8, 18, 0.72); backdrop-filter: blur(6px); }
.sheet p { color: var(--white-dim); margin: 0 0 0.85rem; }
.sheet__title { margin: 0 0 1rem; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem); color: var(--white); }
.sheet__close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--white);
}
.sheet__close:hover { border-color: var(--white); }
.sheet__close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.footer__privacy {
  font: inherit; font-family: var(--sans); background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.footer__privacy:hover { text-decoration-color: currentColor; }

@media (max-width: 820px) {
  .topbar__nav { display: none; }
  .visit { grid-template-columns: 1fr; }
  .visit__aerial { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .visit__pin::before { animation: none; opacity: 0.5; }
  .visit__aerial:hover img { transform: none; }
  .card:hover { transform: none; }
}
/* =========================================================================
   MOBILE (tightest target: ~75% of traffic)
   Shorter journey, fewer composited layers, comfortable tap targets,
   safe-area aware captions. Desktop behaviour is untouched.
   ========================================================================= */

@media (max-width: 1024px) {
  .journey { height: 500svh; }          /* less scrolling before the story ends */
}

@media (max-width: 560px) {
  .journey { height: 420svh; }

  /* a full-screen animated grain layer is the most expensive thing on mobile */
  .stage__grain { display: none; }

  /* keep the story text clear of the home-indicator / browser chrome */
  .caption {
    bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .caption__line { font-size: clamp(1.65rem, 7.4vw, 2.15rem); line-height: 1.12; }

  /* 44px minimum touch targets */
  .btn, .pill, .footer__privacy { min-height: 44px; }
  .btn { display: inline-flex; align-items: center; }
  .pill { display: inline-flex; align-items: center; }

  .topbar {
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  }

  .booking__fallback { gap: 0.55rem 1rem; font-size: 0.78rem; }
  .booking__cards { gap: 0.9rem; }
  .card { padding: 1.25rem; }

  .visit__aerial-label { font-size: 0.54rem; letter-spacing: 0.12em; }
  .visit__aerial-credit { font-size: 0.46rem; right: 0.5rem; bottom: 0.6rem; }

  .footer { padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px)); }
  .footer__nav { gap: 0.5rem 1rem; }
}

/* Touch devices: hover styles must not stick after a tap */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); }
  .card:hover::after { opacity: 0; }
  .card:hover .card__cta svg { transform: none; }
  .visit__aerial:hover { border-color: var(--line); }
  .visit__aerial:hover img { transform: none; filter: saturate(1.02); }
}
/* Anchor targets must clear the fixed top bar (all sizes, worst on phones) */
html { scroll-padding-top: calc(var(--bar-h) + 1.5rem); }

@media (max-width: 420px) {
  /* the wordmark must stay on one line on small phones */
  .topbar__name { font-size: 0.86rem; letter-spacing: 0.10em; white-space: nowrap; }
  .topbar__sub { font-size: 0.62rem; letter-spacing: 0.22em; }
  .topbar__actions { gap: 0.4rem; }
  .pill { padding: 0 0.8rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .pill__wa { width: 0.9em; height: 0.9em; }
}
/* =========================================================================
   MOBILE, round 2 (about three in four visitors)
   Cheaper painting, full-width photographs in the viewer, a gate that fits any phone
   in either orientation, and instant taps.
   ========================================================================= */

/* no 300 ms tap delay and no grey flash on anything tappable */
.btn, .pill, .rail a, .topbar__nav a, .shot__link, .shot__pause, .viewer__btn, .card, .text-link, .footer__nav a {
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

@media (max-width: 700px) {
  /* a blended grain layer on every tile, a 30 px blur and a backdrop blur are the costliest paints
     on a phone GPU, and none of them is visible at this size */
  .shot__link::before, .shot--brand .shot__link::before { display: none; }
  .rail { background: rgba(23, 32, 74, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .reveal-ready .reveal { filter: none; translate: 0 18px; transition-duration: 0.8s; }
  .reveal-ready .shot.reveal .shot__link { transition-duration: 0.9s; }

  .below > section { padding-top: clamp(3.5rem, 13vw, 4.5rem); }
  .chapter { padding-top: 3.25rem; }
  .chapter__num { font-size: 3.4rem; }
  .spread__rest .shot { flex-basis: 78%; }

  /* every link and control is at least 44 px tall under a thumb */
  .rail a, .text-link, .footer__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .topbar__brand { min-height: 44px; justify-content: center; }
  .booking__fallback { gap: 0.25rem 1.1rem; }
  .band__inner { padding: 2.75rem 1.25rem; }
  .band__actions { flex-direction: column; align-self: stretch; }
  .band__actions .btn { width: 100%; }

  /* the viewer: the photograph runs edge to edge, controls stay within thumb reach */
  .viewer__bar { padding-bottom: 0.6rem; }
  .viewer__stage { padding: 0; }
  .viewer__img, .viewer__video { border-radius: 0; }
  .viewer__nav { width: 2.75rem; height: 2.75rem; background: rgba(12, 16, 34, 0.5); border-color: rgba(255, 255, 255, 0.22); }
  .viewer__nav--prev { left: 0.5rem; }
  .viewer__nav--next { right: 0.5rem; }
  .viewer__foot { flex-direction: column; align-items: stretch; gap: 0.8rem; text-align: center; }
  .viewer__caption { font-size: 1.2rem; }
  .viewer__book { justify-content: center; min-height: 3rem; }
}

@media (max-width: 560px) {
  /* the one button on the gate stays generous */
  .btn--lg { min-height: 3.75rem; padding: 1.1rem 3rem; font-size: 0.9rem; letter-spacing: 0.3em; }
  .gate__title { font-size: clamp(1.45rem, 7.4vw, 2.2rem); letter-spacing: 0.14em; padding-left: 0.14em; }
  .disclosure { font-size: 0.8rem; }
}

/* phones held sideways: the gate must fit a ~360 px tall screen without clipping the button */
@media (max-height: 540px) and (orientation: landscape) {
  .gate { overflow-y: auto; padding-block: 0.75rem; }
  .crest { width: clamp(6.5rem, 40vh, 10.5rem); margin-bottom: 0.7rem; }
  .crest__key { width: 1.6rem; height: 1.6rem; }
  .crest__key svg { width: 0.9rem; height: 0.9rem; }
  .gate__title { font-size: clamp(1.3rem, 7vh, 2rem); }
  .gate__tagline { margin-top: 0.4rem; font-size: 1.05rem; }
  .gate__status { margin-top: 0.6rem; }
  .gate__actions { margin-top: 0.7rem; }
  .btn--lg { min-height: 3rem; padding: 0.8rem 2.6rem; }
  .caption { bottom: 3.25rem; }
  .caption__line { font-size: clamp(1.5rem, 7.5vh, 2.4rem); }
}
