/* ==========================================================================
   Serra Luma — Premium Property Site
   Design system + global styles
   Palette, typography and spacing are centralised in :root for easy editing.
   ========================================================================== */

:root {
  /* Colour palette — Aman-inspired: deep charcoal, warm stone, eucalyptus, bronze */
  --forest: #1F1F1C;       /* deep charcoal — dark backgrounds & headings */
  --forest-deep: #161613;  /* deepest charcoal, used sparingly */
  --stone: #D8D0C4;        /* warm stone */
  --ivory: #F7F4EE;        /* warm ivory background */
  --taupe: #C8B8A3;        /* soft taupe */
  --eucalyptus: #8C9683;   /* soft eucalyptus accent */
  --clay: #B08D57;         /* muted bronze highlight */
  --ink: #2A2926;          /* warm text charcoal */

  --ink-on-dark: #F1ECE2;
  --muted: #7c7367;        /* warm muted grey-brown */
  --line: rgba(31, 31, 28, 0.12);
  --line-dark: rgba(241, 236, 226, 0.16);
  --overlay: rgba(24, 24, 21, 0.44);

  /* Typography */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-section: clamp(4rem, 8vw, 6rem);   /* uniform ~1in (96px) top & bottom on all sections */
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1280px;
  --maxw-text: 760px;

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.5s var(--ease);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.8;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--forest);
}
.display {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.5rem;
}
.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.65;
  color: #4a463f;
  font-weight: 400;
}

/* ----- Layout helpers ----- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.text-col { max-width: var(--maxw-text); }
.center { text-align: center; margin-inline: auto; }
/* Optional line breaks for desktop typography; collapse to natural flow
   on smaller screens so text wraps cleanly on tablet and mobile. */
@media (max-width: 899px) { br.brk { display: none; } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav--solid {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 1rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  transition: color var(--transition);
}
.nav--solid .nav__brand { color: var(--forest); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition);
}
.nav--solid .nav__links a { color: var(--forest); }
/* Underline uses ::before so the dropdown caret (::after) stays separate —
   otherwise they merge and a current/hovered dropdown rotates into a vertical line. */
.nav__links a::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--transition);
}
.nav__links a:hover::before,
.nav__links a[aria-current="page"]::before { width: 100%; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 1.5px;
  background: var(--ink-on-dark);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav--solid .nav__toggle span { background: var(--forest); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  /* The solid nav's backdrop-filter makes .nav a containing block for the
     fixed full-screen menu, collapsing it to the bar height. Drop the blur on
     mobile (the menu's own opaque background is all that's needed here). */
  .nav--solid {
    background: rgba(247, 243, 234, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: safe center;
    gap: 2.25rem;
    background: var(--forest);
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    /* Scroll rather than clip if the items ever exceed the screen
       (e.g. a short phone in landscape). */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5.5rem 1.5rem 3rem;
  }
  .nav__links a { color: var(--ink-on-dark); font-size: 1.05rem; }
  /* On a solid (scrolled) nav the desktop rule darkens links for the light bar;
     inside the open full-screen menu that makes top-level links dark-on-dark
     (invisible). Keep them light whenever the mobile menu is shown. */
  .nav--solid .nav__links a { color: var(--ink-on-dark); }
  .nav--open .nav__links { transform: translateX(0); }
  .nav--open .nav__toggle span { background: var(--ink-on-dark); }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--clay); color: var(--forest-deep); }
.btn--solid:hover { background: #9a7948; }
.btn--dark { background: var(--forest); color: var(--ink-on-dark); }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn--light { border-color: rgba(244,239,228,0.6); color: var(--ink-on-dark); }
.btn--light:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-row--center { justify-content: center; }

/* Nav CTA — restrained, elegant bronze (slightly lighter visual weight) */
.nav__cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  background: #A98A5A;          /* softer, more restrained bronze than --clay */
  color: var(--forest-deep);
}
.nav__cta:hover { background: #957542; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,34,36,0.32) 0%, rgba(28,34,36,0.22) 45%, rgba(28,34,36,0.56) 100%);
  z-index: -1;
}
.hero__inner { padding: 7rem var(--gutter) 4rem; max-width: 960px; }
.hero__name {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink-on-dark);
  margin-bottom: 0.5rem;
}
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 0;
}
/* Introduction — a dark card below the hero/video holding the positioning
   line and a visitor note, giving clean separation from The Story below. */
.hero-intro {
  text-align: center;
  background: var(--stone);   /* beige band under the hero, distinct from the ivory Story */
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.intro-card {
  max-width: 920px;
  margin-inline: auto;
  background: var(--forest);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 5vw, 4rem);
}
.intro-card__lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--ivory);
  max-width: none;
  margin: 0 auto;
}
/* The opening positioning line wraps naturally, and sits apart from the
   supporting descriptor lines below it so the statement can breathe. */
.intro-card__place { display: block; margin-bottom: 1.35rem; }

/* Highlighted lead lines (e.g. the Future Chapters opening) — an elevated
   serif emphasis that lifts key sentences above the surrounding body copy. */
.why-highlight {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.75rem);
  line-height: 1.4;
  color: var(--forest);
}
.intro-card__note {
  max-width: 620px;
  margin: 1.75rem auto 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  line-height: 1.75;
  color: var(--stone);
}
/* The Film uses the uniform section spacing (var --space-section).
   The Story is pulled up close under the hero/intro band. */
#story { padding-top: clamp(2.5rem, 6vw, 3.5rem); }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-on-dark);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* Crossfade video hero: two stacked layers dissolve between cycles (see main.js). */
.page-hero__video { opacity: 0; transition: opacity 0.85s ease; }
.page-hero__video.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-hero__video { transition: none; }
}
/* Desktop: lower the framing so the mountain top is visible. Mobile keeps the default centred crop. */
@media (min-width: 900px) {
  .page-hero__bg--lower { object-position: center 18%; }
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(28,34,36,0.46), rgba(28,34,36,0.5));
}
.page-hero__inner { padding: 8rem var(--gutter) 4rem; max-width: 820px; }
.page-hero h1 { color: var(--ink-on-dark); font-size: clamp(2.6rem, 7vw, 5rem); }
.page-hero p { color: var(--stone); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.5vw, 1.6rem); }

/* ==========================================================================
   Intro / general text sections
   ========================================================================== */
.intro { text-align: center; }
.intro h2 { margin-bottom: 1.5rem; }
.divider {
  width: 56px; height: 1px;
  background: var(--clay);
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  background: var(--forest);
  color: var(--ink-on-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.stat {
  background: var(--forest);
  padding: clamp(1.75rem, 4vw, 2.75rem) 1rem;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--stone);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,228,0.7);
}
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Gallery (masonry)
   ========================================================================== */
.gallery__head { text-align: center; margin-bottom: 3rem; }

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery__filter {
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.72rem 1.6rem;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.gallery__filter:hover,
.gallery__filter:focus-visible {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ink-on-dark);
}
/* Gallery category sections (Residences / Grounds / Wild-Life) */
/* .gallery-section uses the uniform section spacing (var --space-section). */
.gallery-section__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Even 3-up grid. Every photo is 3:2, so 3:2 cells show them in full with no
   crop and perfectly even rows; flexbox centres any partial final row. */
.photo-masonry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}
.photo-masonry .tile {
  flex: 0 1 calc(33.333% - 0.8rem);
  margin: 0;
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
}
.photo-masonry .tile img { width: 100%; height: 100%; object-fit: cover; }
/* Two-up on tablet and phone — keeps an image-heavy gallery scannable rather
   than an endless single column; tap any photo to view it full size. */
@media (max-width: 900px) { .photo-masonry .tile { flex-basis: calc(50% - 0.5rem); } }

/* Editorial grid — a curated rhythm of feature, supporting, wide and grid tiles.
   Tiles span a 6-column grid; varied spans create the magazine-style layout.
   When a category filter is active, the grid switches to a tidy uniform layout. */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 19vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(0.65rem, 1.2vw, 1.1rem);
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  grid-column: span 2;   /* default supporting tile */
  grid-row: span 1;
}
.tile--feature  { grid-column: span 4; grid-row: span 2; }  /* large feature */
.tile--wide     { grid-column: span 4; grid-row: span 1; }  /* landscape band */
.tile--tall     { grid-column: span 2; grid-row: span 2; }  /* portrait accent */

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tile:hover img { transform: scale(1.05); }

/* Filtered view → calm, uniform grid (no large feature spans) */
.editorial-grid--uniform .tile { grid-column: span 2 !important; grid-row: span 1 !important; }

/* Pop-out tile — blows up dramatically over its neighbours on hover */
.tile--popout { overflow: visible; }
.tile--popout img { border-radius: var(--radius); transform-origin: center; }
.tile--popout:hover { z-index: 30; }
.tile--popout:hover img {
  transform: scale(2.4);
  box-shadow: 0 30px 80px rgba(10, 14, 16, 0.5);
}
@media (max-width: 700px), (hover: none) {
  .tile--popout:hover img { transform: none; box-shadow: none; }
}

/* Studio — centred, enlarged outdoor garden image */
.studio-outdoor {
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  max-width: 66%;
  aspect-ratio: 3 / 2;
}
@media (max-width: 700px) { .studio-outdoor { max-width: 100%; } }

/* Even 2-column gallery (e.g. residence) — equal cells, no orphan rows */
.estate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.estate-grid .tile {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 3 / 2;
}
@media (max-width: 620px) {
  .estate-grid { grid-template-columns: 1fr; }
}

/* Retreat section — labelled aerial map */
.retreat-map {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 760px;
}
.retreat-map img {
  width: 100%; display: block;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(10, 14, 16, 0.35);
}
.retreat-map--zoom img {
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  transform-origin: center;
  cursor: zoom-in;
}
.retreat-map--zoom:hover img {
  transform: scale(1.32);
  box-shadow: 0 32px 80px rgba(10, 14, 16, 0.55);
  position: relative;
  z-index: 5;
}

/* Retreat Potential — card-style layout on a full-width stone band */
.retreat-card__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.retreat-card__body .eyebrow { margin-bottom: 1rem; color: var(--clay); }
.retreat-card__body h2 { margin: 0 0 1.25rem; }
.retreat-card__body p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.retreat-card__body p + p { margin-top: 1.1rem; }
.retreat-card__note {
  font-size: 0.63rem;
  font-style: italic;
  color: var(--muted);
}
.retreat-card .retreat-map { max-width: none; margin: 0; }
.retreat-card .retreat-map figcaption { color: var(--muted); }
.retreat-card .retreat-map--zoom:hover img { transform: scale(1.51); }
.retreat-card__footer {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.retreat-card__footer .btn-row { justify-content: center; }
.retreat__closer {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 auto 1.5rem;
  max-width: 26ch;
}
@media (max-width: 820px) {
  .retreat-card__top { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (hover: none) {
  .retreat-map--zoom:hover img { transform: none; }
}
.retreat-map figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  opacity: 0.85;
}

/* Why Serra Luma is Different — feature image (with hover enlargement) */
.why-image {
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  max-width: 360px;
}
.why-image img {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  transform-origin: center;
  cursor: zoom-in;
}
.why-image:hover img {
  transform: scale(1.4);
  box-shadow: 0 32px 80px rgba(10, 14, 16, 0.55);
  position: relative;
  z-index: 20;
}
@media (hover: none) {
  .why-image:hover img { transform: none; box-shadow: none; }
}

/* The Experience — wider text block, less vertical white space */
.experience .text-col { max-width: 1040px; }
.experience__closer {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--ink);
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  max-width: 1000px;
}
/* Reflective editorial passage — each line stands on its own with even rhythm */
.experience__passage { max-width: 42rem; margin-inline: auto; }
.experience__passage p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.95vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.experience__passage p:last-child { margin-bottom: 0; }

/* Location — custom editorial map + destinations */
.location__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
.location__map { margin: 0; }
.location__svg {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
}
.location__body .eyebrow { margin-bottom: 1rem; }
.location__body h2 { margin: 0 0 1.25rem; }
.location__intro {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 46ch;
}
.location__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--ink);
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}
.location__list { margin: 0; padding: 0; }
.location__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(0.85rem, 1.6vw, 1.1rem) 0;
  border-top: 1px solid var(--line);
}
.location__row:last-child { border-bottom: 1px solid var(--line); }
.location__row dt {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink);
}
.location__row dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; gap: clamp(1.75rem, 5vw, 2.5rem); }
  .location__map { order: -1; max-width: 720px; margin-inline: auto; }
}

/* Floor plan — closing the residence section */
.floorplan {
  text-align: center;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.floorplan .eyebrow { margin-bottom: 1.25rem; }
.floorplan img {
  max-width: 680px; width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  opacity: 0.96;
}
/* Touch devices: the plan detail is small on a phone — hint that it opens full size. */
@media (hover: none) {
  .floorplan a { display: inline-block; }
  .floorplan a::after {
    content: "Tap the plan to enlarge";
    display: block;
    margin-top: 0.9rem;
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (max-width: 1000px) {
  .editorial-grid { grid-template-columns: repeat(4, 1fr); }
  .tile--feature, .tile--wide { grid-column: span 4; }
  .tile--tall { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 620px) {
  .editorial-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--feature, .tile--wide, .tile--tall,
  .editorial-grid--uniform .tile {
    grid-column: 1 / -1 !important; grid-row: auto !important;
    aspect-ratio: 4 / 3;
  }
}
.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.2rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(transparent, rgba(28,34,36,0.66));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.tile:hover .tile__cap { opacity: 1; transform: translateY(0); }
.tile.is-hidden { display: none; }

/* ==========================================================================
   Feature / split sections
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.feature--reverse .feature__media { order: 2; }
.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { margin-bottom: 1.25rem; }
.feature p + p { margin-top: 1rem; }
/* Subtle downward offset for a single feature image (desktop only) */
@media (min-width: 821px) {
  .feature__media--nudge { position: relative; top: 1cm; }
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16 / 11; }
}

/* Emotional positioning band */
.band {
  position: relative;
  color: var(--ink-on-dark);
  text-align: center;
  overflow: hidden;
}
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28,34,36,0.56); }
.band h2 { color: var(--ink-on-dark); margin-bottom: 1.5rem; }
.band .lead { color: var(--stone); }
/* Vibrant variant — a very light wash so the photography keeps its full colour;
   legibility is carried by a strong text-shadow on the quote, with a subtle
   darkening only toward the lower edge. */
.band--vibrant::after {
  background: linear-gradient(rgba(15,22,24,0.06) 0%, rgba(15,22,24,0.14) 55%, rgba(15,22,24,0.40) 100%);
}
.band--vibrant .story-quote {
  text-shadow: 0 1px 3px rgba(10,14,16,0.55), 0 3px 30px rgba(10,14,16,0.6);
}

/* CTA section */
.cta { text-align: center; background: var(--stone); }
.cta h2 { margin-bottom: 2rem; }

/* Privacy / inspection microcopy */
.privacy-note {
  max-width: 540px;
  margin: 1.75rem auto 0;
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.privacy-note--light { color: rgba(246, 241, 232, 0.72); }

/* Supporting line above the split enquiry buttons */
.enquire-note {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Property details content
   ========================================================================== */
.detail-block { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.detail-block + .detail-block { margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.detail-block__title { position: sticky; top: 6rem; align-self: start; }
.detail-block__title h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.detail-block__num {
  font-size: 0.72rem; letter-spacing: 0.22em; color: var(--clay);
  text-transform: uppercase; display: block; margin-bottom: 0.75rem;
}
.spec-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.spec-list li { display: flex; gap: 0.85rem; align-items: baseline; }
.spec-list li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55rem;
  background: var(--eucalyptus); border-radius: 50%;
}
@media (max-width: 720px) {
  .detail-block { grid-template-columns: 1fr; gap: 1rem; }
  .detail-block__title { position: static; }
}

/* Estate overview — editorial brochure spread (image left, feature list right) */
.overview-spread {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.75rem);
}
.overview-spread__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
}
.overview-spread__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.overview-spread__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.overview-spread__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.overview-spread__lead .eyebrow { margin-bottom: 1rem; }
.overview-spread__lead h2 { margin: 0 0 1.25rem; }
.overview-spread__intro {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}
.overview-spread__media--stack { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.feature-list { margin: 0; padding: 0; }
.feature-list__row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: clamp(0.85rem, 1.5vw, 1.1rem) 0;
  border-top: 1px solid var(--line);
}
.feature-list__row:last-child { border-bottom: 1px solid var(--line); }
.feature-list dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-list dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink);
}
/* Clean, evenly-spaced bullet list (e.g. the Location facts) */
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list li { position: relative; padding-left: 1.15em; }
.loc-list li + li { margin-top: 0.5rem; }
.loc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--clay);
  line-height: inherit;
}
@media (max-width: 760px) {
  .overview-spread__content { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2rem); }
}
@media (max-width: 540px) {
  .overview-spread__images { grid-template-columns: 1fr; }
  .feature-list__row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0; }
}

/* Location list */
.location-list { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 1.5rem; }
.location-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.location-list .place { font-family: var(--serif); font-size: 1.25rem; color: var(--forest); }
.location-list .dist { color: var(--muted); letter-spacing: 0.05em; white-space: nowrap; }

/* ==========================================================================
   Contact / forms
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.1rem;
  border-radius: 0;
  transition: border-color var(--transition);
}
.field textarea { min-height: 130px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.radio-row { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink); }
.form__note { font-size: 0.8rem; color: var(--muted); }
.form__status { font-size: 0.9rem; color: var(--clay); min-height: 1.2em; }

.contact-card {
  background: var(--forest);
  color: var(--ink-on-dark);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
}
.contact-card h3 { color: var(--stone); margin-bottom: 1.5rem; }
.contact-card dl { display: grid; gap: 1.25rem; }
.contact-card dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--eucalyptus); }
.contact-card dd { font-size: 1.1rem; margin-top: 0.2rem; }
.contact-card a:hover { color: var(--clay); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--forest);
  color: var(--ink-on-dark);
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.footer__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--stone);
  letter-spacing: 0.04em;
}
.footer__loc { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,239,228,0.7); margin-top: 0.75rem; }
.footer__cta { margin-top: 2.25rem; }
.footer__links { display: flex; gap: 2rem; justify-content: center; margin-top: 2.75rem; list-style: none; padding: 0; flex-wrap: wrap; }
.footer__links a { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,239,228,0.85); transition: color var(--transition); }
.footer__links a:hover { color: var(--clay); }
.footer__disclaimer {
  max-width: 640px; margin: 2.75rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.74rem; line-height: 1.7; color: rgba(244,239,228,0.55);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* Gallery grids reveal as a calm fade only — no slide, no layout shift.
   Combined with per-image fade-in, this keeps scrolling seamless. */
.editorial-grid.reveal,
.gallery-immersive.reveal,
.poss-grid.reveal {
  transform: none;
  transition: opacity 0.4s var(--ease);
}

/* Per-image fade-in on load — only images not already painted are hidden,
   so there is no flash for cached images. Simple opacity, no scaling. */
.img-fade { opacity: 0; }
.img-fade.is-loaded {
  opacity: 1;
  transition: opacity 0.26s var(--ease);
}

/* Skip link */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 0.5rem; z-index: 200;
  background: var(--forest); color: var(--ivory);
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16, 21, 24, 0.94);
  display: none;
  place-items: center;
  padding: var(--gutter);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  background: none; border: 0; color: var(--ivory);
  font-size: 2rem; line-height: 1;
}

/* ==========================================================================
   Dropdown navigation ("The Estate")
   ========================================================================== */
.nav__has-drop { position: relative; }
.nav__has-drop > a::after {
  content: "›";
  display: inline-block;
  margin-left: 0.45rem;
  transform: rotate(90deg);
  font-size: 0.8em;
  opacity: 0.7;
}
.nav__drop {
  list-style: none;
  margin: 0; padding: 0.6rem 0;
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: rgba(31, 31, 28, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.nav__has-drop:hover .nav__drop,
.nav__has-drop:focus-within .nav__drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__drop a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em;
  color: var(--ink-on-dark) !important;
  white-space: nowrap;
}
.nav__drop a::before, .nav__drop a::after { display: none; }
.nav__drop a:hover { color: var(--clay) !important; }

@media (max-width: 860px) {
  /* Hide this pseudo-element entirely on mobile. It carries both the dropdown
     caret and (via the underline rule) the current-page underline — and the
     caret's rotate(90deg) would otherwise turn that underline into a stray
     vertical line under the current dropdown parent. */
  .nav__has-drop > a::after { display: none; }
  .nav__drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; min-width: 0;
    padding: 0.75rem 0 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__drop a {
    padding: 0.55rem 0;
    font-size: 0.85rem !important;
    color: var(--stone) !important;
    text-align: center;
  }
}

/* Anchor scroll offset for sticky nav */
[id] { scroll-margin-top: 92px; }

/* ==========================================================================
   Possibilities / Future Chapters — cards
   ========================================================================== */
.poss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 3rem;
}
@media (max-width: 900px) { .poss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .poss-grid { grid-template-columns: 1fr; } }

.poss-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  color: var(--ink-on-dark);
  background: var(--forest);
}
.poss-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.poss-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,24,21,0.82) 0%, rgba(24,24,21,0.15) 55%, rgba(24,24,21,0.25) 100%);
}
.poss-card:hover img { transform: scale(1.06); }
.poss-card__body {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}
.poss-card__eyebrow {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.6rem;
}
.poss-card__title {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ivory); line-height: 1.1;
}
.poss-card__title--oneline { white-space: nowrap; }
.poss-card__more {
  margin-top: 0.85rem; font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone); opacity: 0.85;
  display: inline-flex; gap: 0.4rem;
}
.poss-card:hover .poss-card__more { color: var(--clay); }

/* Full-width banner beneath the chapter grid */
.poss-banner {
  display: block;
  margin-top: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--forest);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-on-dark);
  transition: background var(--transition), box-shadow var(--transition);
}
.poss-banner:hover { background: var(--forest-deep); box-shadow: 0 18px 50px rgba(10, 14, 16, 0.3); }
.poss-banner__inner { max-width: 720px; margin-inline: auto; }
.poss-banner__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ivory);
  line-height: 1.15;
  margin: 0.35rem 0 0;
}
.poss-banner .poss-card__more { margin-top: 1rem; }
.poss-banner:hover .poss-card__more { color: var(--clay); }

/* ==========================================================================
   Estate facts — visual grid
   ========================================================================== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
@media (max-width: 820px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
.fact {
  background: var(--ivory);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.25rem;
  text-align: center;
}
.fact__icon { color: var(--eucalyptus); font-size: 1.4rem; line-height: 1; }
.fact__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--forest);
  margin-top: 0.4rem;
  line-height: 1.15;
}

/* ==========================================================================
   Location — lifestyle
   ========================================================================== */
.places {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
  margin-top: 3rem;
}
@media (max-width: 880px) { .places { grid-template-columns: repeat(2, 1fr); } }
.place-cell {
  background: var(--forest);
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  text-align: center;
}
.place-cell__time { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--stone); line-height: 1; }
.place-cell__name { display: block; margin-top: 0.6rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(241,236,226,0.72); }

/* ==========================================================================
   Future Chapters — large alternating narrative blocks
   ========================================================================== */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.chapter + .chapter { margin-top: clamp(2rem, 5vw, 4rem); }
.chapter__media { overflow: hidden; min-height: 420px; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background: var(--stone);
}
.chapter--reverse .chapter__media { order: 2; }
.chapter--dark .chapter__body { background: var(--forest); }
.chapter--dark .chapter__body h2 { color: var(--ivory); }
.chapter--dark .chapter__body p { color: rgba(241,236,226,0.82); }
.chapter__num { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.chapter__body h2 { margin-bottom: 1.25rem; }
.chapter__body p + p { margin-top: 1rem; }
/* Italic serif closing line for each chapter */
.chapter__closer {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.55rem);
  line-height: 1.4;
  color: var(--forest);
  margin-top: 1.5rem !important;
}
.chapter--dark .chapter__closer { color: var(--ivory); }
@media (max-width: 820px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter--reverse .chapter__media { order: 0; }
  /* Height-based, not aspect-ratio — combining aspect-ratio with min-height
     forces the width wider than the viewport and causes horizontal overflow. */
  .chapter__media { min-height: 0; height: clamp(240px, 60vw, 360px); aspect-ratio: auto; }
}

/* ==========================================================================
   Gallery page — immersive
   ========================================================================== */
.gallery-immersive {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 20vw, 300px);
  grid-auto-flow: dense;
  gap: clamp(0.5rem, 1vw, 1rem);
}
.gallery-immersive .tile { grid-column: span 2; grid-row: span 1; }
.gallery-immersive .tile--feature { grid-column: span 4; grid-row: span 2; }
.gallery-immersive .tile--wide { grid-column: span 4; grid-row: span 1; }
.gallery-immersive .tile--tall { grid-column: span 2; grid-row: span 2; }
.gallery-immersive .tile--full { grid-column: span 6; grid-row: span 2; }
/* Panoramic closing image — a deliberate final visual moment. Its caption
   sits persistently, signalling the curated end of the journey. */
.gallery-immersive .tile--full .tile__cap {
  opacity: 1;
  transform: none;
  font-size: 0.72rem;
  padding: 2.5rem 1.6rem 1.6rem;
  letter-spacing: 0.22em;
}
@media (max-width: 1000px) {
  .gallery-immersive { grid-template-columns: repeat(4, 1fr); }
  .gallery-immersive .tile--feature,
  .gallery-immersive .tile--wide,
  .gallery-immersive .tile--full { grid-column: span 4; }
}
@media (max-width: 620px) {
  .gallery-immersive { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-immersive .tile,
  .gallery-immersive .tile--feature,
  .gallery-immersive .tile--wide,
  .gallery-immersive .tile--tall,
  .gallery-immersive .tile--full {
    grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   The Film — click-to-play feature
   ========================================================================== */
.film {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--forest);
  /* Lift the video off the page with a soft, warm-toned drop shadow. */
  box-shadow:
    0 26px 60px -20px rgba(24, 24, 21, 0.45),
    0 8px 24px -14px rgba(24, 24, 21, 0.30);
  transition: box-shadow var(--transition), transform var(--transition);
}
.film:hover {
  transform: translateY(-4px);
  /* On hover, deepen the shadow and add a subtle bronze glow so it pops. */
  box-shadow:
    0 36px 78px -20px rgba(24, 24, 21, 0.52),
    0 0 0 1px rgba(176, 141, 87, 0.35),
    0 0 42px -4px rgba(176, 141, 87, 0.40);
}
.film__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.1rem;
  border: 0; cursor: pointer;
  color: var(--ivory);
  background: linear-gradient(rgba(24,24,21,0.12), rgba(24,24,21,0.45));
  transition: opacity 0.4s var(--ease);
}
.film__play-icon {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,0.85);
  background: rgba(24,24,21,0.25);
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.film__play-icon::after {
  content: ""; display: block;
  width: 0; height: 0; margin-left: 5px;
  border-left: 18px solid var(--ivory);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.film__play:hover .film__play-icon { background: var(--clay); transform: scale(1.05); }
.film__play-label {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
}
.film.is-playing .film__play { opacity: 0; pointer-events: none; }
@media (max-width: 620px) {
  .film__play-icon { width: 58px; height: 58px; }
  .film__play-icon::after { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }
}

/* Enquiry form — checkbox */
.check-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.check-row input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--clay); flex: none; }
.check-row label { font-size: 0.95rem; color: var(--ink); letter-spacing: 0; text-transform: none; }

/* Section intro helper for left-aligned editorial blocks */
.section-eyebrow { text-align: center; }
.story-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  color: var(--forest);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   Mobile refinements
   A focused pass for phones: touch ergonomics, caption visibility, spacing
   rhythm and notch safe-areas. No layout or design changes beyond these.
   ========================================================================== */

/* Calm, on-brand tap feedback instead of the default blue flash */
a, button, .tile, .poss-card, .btn {
  -webkit-tap-highlight-color: rgba(176, 141, 87, 0.18);
}

/* Respect the notch / rounded corners on modern phones */
.nav {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Touch devices have no hover — so reveal the editorial tile captions
   permanently (otherwise the labels never appear on a phone) and drop the
   hover-zoom that would otherwise "stick" after a tap. */
@media (hover: none) {
  .tile__cap { opacity: 1; transform: none; }
  .tile img { transition: none; }
  .tile:hover img,
  .poss-card:hover img { transform: none; }
}

/* Comfortable ≥44px tap targets in the mobile menu, and a larger,
   safe-area-aware lightbox close control. */
@media (max-width: 860px) {
  .nav__links > li > a { padding-block: 0.75rem; }
  .nav__drop a { padding-block: 0.75rem; }
  .lightbox__close {
    font-size: 2.6rem;
    padding: 0.25rem 0.75rem;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
}

/* Phone layout: tighten the vertical rhythm so pages don't feel endless. */
@media (max-width: 620px) {
  :root { --space-section: clamp(3rem, 9vw, 4rem); }
  .gallery__head { margin-bottom: 2rem; }
  .hero__inner { padding-top: 6rem; }
  .intro-card__lead { font-size: clamp(1.25rem, 1rem + 2.4vw, 1.6rem); }
  .intro-card { padding: clamp(2rem, 7vw, 3rem) clamp(1.4rem, 6vw, 2.5rem); }
  .footer__links { gap: 1.25rem 1.75rem; }
}

/* ===================== Enquiry confirmation modal ===================== */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(24, 24, 21, 0.55);            /* medium-transparency backdrop */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.enquiry-modal.is-open { opacity: 1; visibility: visible; }

.enquiry-modal__card {
  position: relative;
  max-width: 30rem;
  width: 100%;
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 6vw, 3.25rem) clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 24px 70px rgba(24, 24, 21, 0.35);
  transform: translateY(12px) scale(0.985);
  transition: transform var(--transition);
}
.enquiry-modal.is-open .enquiry-modal__card { transform: translateY(0) scale(1); }

.enquiry-modal__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--clay);
  margin: 0 0 0.9rem;
}
.enquiry-modal__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.enquiry-modal__text {
  font-family: var(--sans);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.enquiry-modal__close {
  display: inline-flex;
  margin-inline: auto;          /* reliably centred within the card */
  min-width: 11rem;
  justify-content: center;
}
/* On-brand focus ring instead of the browser's default blue outline
   (the button is auto-focused when the modal opens). */
.enquiry-modal__close:focus { outline: none; }
.enquiry-modal__close:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
