/* ==========================================================================
   18 Hiral Khushi Palacio
   1. Tokens  2. Base  3. Primitives  4. Header & menu  5. Hero
   6. Sections  7. Footer  8. Dialogs  9. Motion  10. Reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Palette sampled from the client's reference design */
  --maroon: #470A10;
  --maroon-deep: #2E0509;
  --red: #630510;
  --copper: #B4743C;
  --gold: #D3A46C;
  --ivory: #F8EEE5;
  --sand: #F2E4D5;
  --ink: #2A1512;
  --ink-soft: #6A5C56;
  --line: rgba(71, 10, 16, 0.18);
  --line-light: rgba(211, 164, 108, 0.32);

  /* Cinzel is loaded with digits only, so it supplies the numerals and Marcellus everything else */
  --font-display: "Cinzel", "Marcellus", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 100rem;
  --pad-x: max(var(--gutter), calc(50% - var(--max) / 2));
  --section: clamp(2.5rem, 7.5vw, 7.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-wipe: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p, figure, dl, dd, ul, ol, address {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* Holds icon symbols only; takes no space in the layout */
.sprite {
  position: absolute;
}

.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--maroon);
  color: var(--ivory);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 5rem;
  pointer-events: none;
}

/* 3. Primitives ------------------------------------------------------------ */
.eyebrow,
.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Reference style: a short rule trails every eyebrow */
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 3.5rem;
  height: 1px;
  margin-left: 1rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow {
  color: var(--red);
  margin-bottom: 1.5rem;
}

.eyebrow--light {
  color: var(--gold);
}

.label {
  color: var(--maroon);
  margin-bottom: 1.75rem;
}

.eyebrow--gold,
.label--gold {
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.7vw, 2.625rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.015em;
  color: var(--maroon-deep);
  text-wrap: balance;
  text-transform: uppercase;
}

.display em {
  color: var(--copper);
  font-style: normal;
}

.display--light {
  color: var(--ivory);
}

.display--light em {
  color: var(--gold);
}

.lead {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.85;
  max-width: 34rem;
}

.lead--light {
  color: rgba(248, 238, 229, 0.88);
}

/* Reference style: wine pill, gold hairline, arrow in a dark disc */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3.25rem;
  padding: 0 0.5rem 0 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn::after {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--maroon-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  transition: transform 0.5s var(--ease);
}

.btn:hover {
  background: var(--maroon);
}

.btn:hover::after {
  transform: translateX(0.2rem);
}

.btn--small {
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
}

.btn--small::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn--small::after {
  content: none;
}

.btn--gold {
  justify-content: space-between;
  background: var(--gold);
  color: var(--maroon-deep);
}

.btn--gold:hover {
  background: var(--ivory);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Reference style: squared outline button with an arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 2px solid var(--maroon);
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.text-link::after {
  content: "\2192";
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: transform 0.5s var(--ease);
}

.text-link:hover {
  background: var(--maroon);
  color: var(--ivory);
}

.text-link:hover::after {
  transform: translateX(0.25rem);
}

.text-link--solid {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.text-link--solid:hover {
  border-color: var(--maroon);
}

.text-link--light {
  border-color: var(--gold);
  color: var(--ivory);
}

.text-link--light:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  font-family: var(--font-display);
}

.play-link--light {
  color: var(--ivory);
}

.play-link__icon {
  position: relative;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.play-link__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 0.34rem 0 0.34rem 0.56rem;
  border-color: transparent transparent transparent currentColor;
}

.play-link:hover .play-link__icon {
  background: rgba(211, 164, 108, 0.28);
  transform: scale(1.06);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--split {
  display: grid;
  gap: 2rem var(--gap);
}

.section-head__note {
  max-width: 30rem;
}

/* 4. Header & menu --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease), height 0.6s var(--ease);
}

.header.is-solid {
  --header-h: 4rem;
  background: rgba(248, 238, 229, 0.97);
  color: var(--maroon);
  border-bottom-color: var(--line);
}

.header.is-menu-open {
  background: transparent;
  color: var(--ivory);
  border-bottom-color: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  background: #fff;
}

.brand__text {
  display: grid;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 3.5vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.header.is-solid:not(.is-menu-open) .brand__name {
  color: inherit;
}

.brand__tag {
  font-size: clamp(0.5rem, 2vw, 0.5625rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav {
  display: none;
  gap: clamp(1.5rem, 2.6vw, 3rem);
}

.nav a {
  position: relative;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-display);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header .btn {
  display: none;
}

/* The Enquire button has no phone icon; it joins the bar with the desktop menu */
.header .btn.header__enquire::before,
.header .btn.header__enquire::after {
  content: none;
  display: none;
}

.burger {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
}

.burger span {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.burger span:first-child { top: 1.1rem; }
.burger span:last-child { top: 1.6rem; }

.burger[aria-expanded="true"] span:first-child { top: 1.35rem; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 1.35rem; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--maroon);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__nav {
  display: grid;
}

.menu__nav a {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 0.2s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 0.25s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: 0.3s; }

.menu__foot {
  display: grid;
  gap: 0.25rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.menu__foot a {
  padding: 0.5rem 0;
}

@media (min-width: 600px) {
  .header .btn:not(.header__enquire) {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
    gap: clamp(1rem, 2vw, 3rem);
  }

  .header .header__enquire {
    display: inline-flex;
  }

  .header__actions {
    gap: 0.75rem;
  }

  .burger,
  .menu {
    display: none;
  }
}

/* Quick-contact bar: phones and tablets, once the visitor has scrolled past the top */
.quickbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--maroon);
  color: var(--ivory);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0.6s;
}

.quickbar a {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  border-left: 1px solid var(--line-light);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.quickbar a:first-child {
  border-left: 0;
}

.quickbar a:last-child {
  background: var(--gold);
  color: var(--maroon-deep);
}

.header.is-solid:not(.is-menu-open) ~ .quickbar {
  transform: none;
  visibility: visible;
}

/* Floating WhatsApp button: sits above the quick-contact bar on small screens and shows with it */
.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

/* A small "Reach us at" tag sits above the green WhatsApp disc */
.chat-fab__label {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ivory);
  box-shadow: 0 0.25rem 0.9rem rgba(46, 5, 9, 0.22);
  font-family: var(--font-display);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--maroon);
}

.chat-fab__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0.5rem 1.5rem rgba(46, 5, 9, 0.28);
}

.chat-fab .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.chat-fab:hover {
  transform: translateY(-0.2rem);
}

.header.is-solid:not(.is-menu-open) ~ .chat-fab {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header.is-solid:not(.is-menu-open) ~ .chat-fab:hover {
  transform: translateY(-0.2rem);
}

@media (min-width: 900px) {
  .quickbar {
    display: none;
  }

  .chat-fab {
    right: 1.75rem;
    bottom: 1.75rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* Floating founder-interview video preview ------------------------------- */
.video-teaser {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  z-index: 34;
  width: min(26rem, calc(100vw - 2rem));
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  border: 1px solid rgba(201, 166, 91, 0.36);
  background: #171411;
  color: var(--ivory);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.42);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.header:not(.is-solid):not(.is-menu-open) ~ .video-teaser {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.video-teaser.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
}

.video-teaser__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.video-teaser__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0908;
}

.video-teaser__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
}

.video-teaser__open:hover .video-teaser__image img {
  transform: scale(1.035);
}

.video-teaser__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(20, 15, 11, 0.72);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, scale 0.25s ease;
}

.video-teaser__play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.64rem solid var(--gold);
}

.video-teaser__open:hover .video-teaser__play-icon {
  background: rgba(71, 10, 16, 0.92);
  scale: 1.06;
}

.video-teaser__copy {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
}

.video-teaser__eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-teaser__title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.video-teaser__open:focus-visible,
.video-teaser__dismiss:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.video-teaser__dismiss {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 15, 11, 0.76);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 899px) {
  .video-teaser {
    right: 0.85rem;
    bottom: calc(7rem + env(safe-area-inset-bottom));
    width: min(10.5rem, 40vw);
  }

  .video-teaser__copy {
    display: none;
  }

  .video-teaser__play-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .video-teaser__dismiss {
    top: 0.3rem;
    right: 0.3rem;
    width: 1.65rem;
    height: 1.65rem;
    font-size: 1rem;
  }

  .video-teaser__open:focus-visible,
  .video-teaser__dismiss:focus-visible {
    outline-offset: -2px;
  }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(100svh, 36rem);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 0;
  background: var(--maroon-deep);
  color: #fff;
  overflow: hidden;
  touch-action: pan-y;
}

.hero__media,
.hero__slides,
.hero__slide,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  position: absolute;
  inset: 0;
  display: none;
}

.hero__overlay {
  background:
    linear-gradient(to right, rgba(46, 5, 9, 0.62) 0%, rgba(46, 5, 9, 0.28) 36%, rgba(46, 5, 9, 0) 62%),
    linear-gradient(to top, rgba(46, 5, 9, 0.6) 0%, rgba(46, 5, 9, 0.2) 38%, rgba(46, 5, 9, 0) 60%),
    linear-gradient(to bottom, rgba(46, 5, 9, 0.5) 0%, rgba(46, 5, 9, 0) 24%);
}

.hero__content {
  position: relative;
}

.hero__content {
  align-self: end;
  max-width: 60rem;
  padding-bottom: clamp(2rem, 4.5vw, 4rem);
}

.hero__eyebrow {
    margin-top: clamp(1rem, 2vw, 1.75rem);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    line-height: 1.6;
    text-transform: uppercase;
}

.hero__title {
  text-shadow: 0 1px 1.25rem rgba(46, 5, 9, 0.55);
  display: grid;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero__title-pre {
  font-size: clamp(1.375rem, 2.7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.6em;
}

.hero__title-main {
  margin-left: -0.03em;
  font-size: clamp(3.25rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__statement {
  max-width: 30rem;
  margin-top: clamp(1.25rem, 2.2vw, 2rem);
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero__cta {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.hero__dots {
  position: relative;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero__dots button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 3.5rem;
}

.hero__dots button::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: #fff;
  opacity: 0.4;
  transition: opacity 0.5s, height 0.5s;
}

.hero__dots button[aria-current="true"]::before {
  height: 3px;
  opacity: 1;
}

/* Phones and tablets keep the hero video, with a deeper wine fade behind the copy. */
@media (max-width: 1024px) {
  .hero__video:not([hidden]) {
    display: block;
  }

  .hero__overlay {
    background:
      linear-gradient(to top, rgba(46, 5, 9, 0.94) 0%, rgba(46, 5, 9, 0.86) 28%, rgba(46, 5, 9, 0.6) 48%, rgba(46, 5, 9, 0.2) 64%, rgba(46, 5, 9, 0) 76%),
      linear-gradient(to bottom, rgba(46, 5, 9, 0.5) 0%, rgba(46, 5, 9, 0) 22%);
  }
}

@media (max-width: 420px) {
  .hero__eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1025px) {
  .hero {
    touch-action: auto;
  }

  .hero__video:not([hidden]) {
    display: block;
  }

  .hero__dots {
    display: none;
  }
}

/* 6. Sections -------------------------------------------------------------- */

/* About: image and text side by side, sized to one screen on desktop */
.about {
  padding: 2.5rem var(--pad-x);
  background: var(--sand);
}

.about__grid {
  display: grid;
  gap: 2.5rem var(--gap);
}

.about__figure {
  position: relative;
}

.about__figure img {
  width: 100%;
  /* Close to square, so the whole building and its surroundings show */
  aspect-ratio: 1161 / 1250;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Bottom-left corner: the RERA plate sits above a notch cut out of the image.
   ::before is the notch, ::after rounds the image corner beside it. */
.about__figure {
  --notch-w: 10.5rem;
  --notch-h: 2.25rem;
  --corner: 0.75rem;
}

.about__figure::before,
.about__figure::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
}

.about__figure::before {
  left: 0;
  width: var(--notch-w);
  height: var(--notch-h);
  background: var(--sand);
}

    .about__figure::after {
        left: var(--notch-w);
        width: 2.75rem;
        height: 2.75rem;
        background: radial-gradient(circle at 100% 0, transparent calc(2.75rem - 0.5px), var(--sand) 2.75rem);
    }

.about__tag {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: var(--notch-h);
  min-width: calc(var(--notch-w) + 3rem);
  padding: 1rem 1.75rem 1rem 3.75rem;
  border: 0;
/*  border-bottom-left-radius: var(--corner);*/
  background: var(--maroon);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.about__tag::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.6rem;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

.about__title > * {
  display: block;
}

.about__body .lead {
  margin-top: 1.75rem;
}

.about__sub {
  margin: 1.75rem 0 0.75rem;
  padding-top: 1.75rem;
  background: linear-gradient(var(--copper), var(--copper)) 0 0 / 6.5rem 1px no-repeat;
  color: var(--copper);
}

.about__sub + p {
  max-width: 36rem;
}

.about__read-more {
  display: none;
}

@media (max-width: 899px) {
  .about__more-copy {
    display: none;
  }

  .about__body.is-expanded .about__more-copy {
    display: block;
  }

  .about__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0;
    border: 0;
    background: transparent;
    color: var(--copper);
    font: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .about__read-more::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
  }

  .about__read-more[aria-expanded="true"]::after {
    content: "−";
  }

  .about__read-more:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
  }
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.stats {
  display: grid;
  gap: 0 var(--gap);
  margin-top: clamp(1rem, 2vw, 1rem);
}

.stat {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.stat dt {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--maroon);
  font-family: var(--font-display);
}

.stat__num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
}

.stat__unit {
  font-size: clamp(0.8125rem, 1.1vw, 1rem);
  color: var(--copper);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stat dd {
  max-width: 17rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  /* The grid fills the screen below the header; the image takes that full height */
  .about {
    --about-h: max(30rem, calc(100svh - var(--header-h) - 5rem));
    padding-top: 2.5rem;
  }

  /* The image keeps its own proportions at the full height, so the building is never
     cropped; the text takes whatever width is left beside it */
  .about__grid {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: var(--about-h);
  }

  .about__figure {
    width: fit-content;
  }

  /* As tall as the screen allows, but never wider than its share: the height follows the width */
  .about__figure img {
    width: min(var(--about-img-max, 56vw), calc(var(--about-h) * 1161 / 1250));
    height: auto;
  }

  .about__body {
    padding-left: clamp(0.5rem, 2vw, 2.5rem);
  }

  .about__links .text-link {
    padding-inline: 1.1rem;
  }

  .about__title {
    font-size: clamp(2.25rem, min(4.4vw, 8svh), 4.25rem);
    line-height: 1.08;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Narrower desktops give the text half the width; short screens tighten the type so it still fits */
@media (min-width: 900px) and (max-width: 1199px) {
  .about {
    --about-img-max: 45vw;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .about__title {
    font-size: clamp(2rem, min(4vw, 6.4svh), 3.25rem);
  }

  .about__body p:not(.eyebrow) {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .about__body .eyebrow {
    margin-bottom: 1rem;
  }

  .about__body .lead {
    margin-top: 1.1rem;
  }

  .about__sub {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
  }

  .about__links {
    margin-top: 1.25rem;
  }
}

/* Band */
.band {
  position: relative;
  height: clamp(22rem, 46vw, 42rem);
  overflow: hidden;
  background: var(--maroon-deep);
  color: #fff;
}

.band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  /* A wine fade behind the caption: deepest at the bottom left where the text sits,
     clearing towards the sky and the right of the photograph */
  background:
    linear-gradient(to top, rgba(46, 5, 9, 0.9) 0%, rgba(46, 5, 9, 0.72) 22%, rgba(46, 5, 9, 0.3) 42%, rgba(46, 5, 9, 0) 60%),
    linear-gradient(to right, rgba(46, 5, 9, 0.55) 0%, rgba(46, 5, 9, 0.2) 40%, rgba(46, 5, 9, 0) 65%);
}

.band__caption {
  text-shadow: 0 1px 0.75rem rgba(46, 5, 9, 0.7);
}

.band__caption {
  position: absolute;
  z-index: 1;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(2rem, 5vw, 4.5rem);
}

.band__line {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.3vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.band__line em {
  font-style: normal;
  color: var(--gold);
}

/* Residence: heading and intro, then a level list card beside a tabbed floor-plan panel.
   One screen on desktop. */
.residence {
  position: relative;
  padding: var(--section) var(--pad-x);
}

.feature-head {
  display: grid;
  gap: 1.25rem 3rem;
  margin-bottom: 2rem;
}

.feature-head__title > * {
  display: block;
}

.feature-head__intro {
  max-width: 27rem;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
}

.residence__grid {
  display: grid;
  gap: 2.5rem var(--gap);
}

/* Lets the tab rows scroll inside their column instead of widening the page */
.residence__grid > * {
  min-width: 0;
}

.tabs {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs button {
  flex: none;
  padding: 0.25rem 0 0.8rem;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}

@media (max-width: 599px) {
  .tabs {
    gap: 0.75rem;
  }

  .tabs button {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }
}

/* Delayed, non-blocking enquiry panel for visitors who have had time to explore. */
.lead-capture[hidden] {
  display: none !important;
}

.lead-capture {
  position: fixed;
  z-index: 9500;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  width: min(25rem, calc(100vw - 2rem));
  max-height: min(36rem, 82svh);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 0.8rem;
  background: var(--maroon-deep);
  color: var(--ivory);
  box-shadow: 0 1.25rem 3.5rem rgba(22, 8, 7, 0.35);
  animation: lead-capture-enter 0.45s var(--ease) both;
}

.lead-capture__close {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(211, 164, 108, 0.55);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lead-capture h2 {
  max-width: 18rem;
  margin: 0.45rem 2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead-capture__note {
  margin: 0.45rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lead-capture__form label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.85rem;
  color: rgba(248, 238, 229, 0.88);
}

.lead-capture__form input:not([type="hidden"]) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(248, 238, 229, 0.35);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.lead-capture__form input:focus-visible,
.lead-capture__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lead-capture__form .btn {
  width: 100%;
  margin-top: 0.9rem;
}

.lead-capture__form small {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(248, 238, 229, 0.72);
}

.lead-capture__status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.lead-capture__status:empty {
  display: none;
}

.lead-capture__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@keyframes lead-capture-enter {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 599px) {
  .lead-capture {
    left: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom) + 4.25rem);
    width: calc(100vw - 1.5rem);
    max-height: 58svh;
    padding: 1rem 1.1rem;
  }

  .lead-capture h2 {
    font-size: 1.4rem;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .lead-capture {
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    max-height: 70svh;
  }
}

.tabs button:hover,
.tabs button[aria-selected="true"] {
  color: var(--maroon);
}

.tabs button[aria-selected="true"] {
  border-bottom-color: var(--maroon);
}

/* The plan tabs sit in a wine bar that caps the plan panel */
.tabs--bar {
  gap: 0;
  padding: 0.5rem 1.25rem 0;
  border: 0;
  border-radius: 1rem 1rem 0 0;
  background: var(--maroon);
}

.tabs--bar button {
  padding: 0.85rem clamp(0.6rem, 1.05vw, 1.1rem);
  border-bottom: 3px solid transparent;
  margin: 0;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(248, 238, 229, 0.82);
}

.tabs--bar button:hover,
.tabs--bar button[aria-selected="true"] {
  color: #fff;
}

.tabs--bar button[aria-selected="true"] {
  border-bottom-color: var(--gold);
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--red);
}

.detail,
.plan {
  display: none;
}

.detail.is-active,
.no-js .detail {
  display: block;
  animation: fade-in 0.7s var(--ease);
}

.plan.is-active,
.no-js .plan {
  display: grid;
  animation: fade-in 0.7s var(--ease);
}

/* Left card */
.details {
  padding: 1rem 1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.36);
}

.details .tabs {
  gap: 0.25rem;
  margin: 0 0 0.5rem;
}

/* The selected detail tab is a wine block, matching the selected plan tab */
.details .tabs button {
  padding: 0.75rem clamp(0.6rem, 1.2vw, 1.1rem);
  border-radius: 0.5rem 0.5rem 0 0;
}

@media (max-width: 599px) {
  .details .tabs {
    gap: 0;
  }

  .details .tabs button {
    flex: 1 1 auto;
    padding-inline: 0.4rem;
  }
}

/* Small screens drop the level-by-level list: the floor tabs beside it already cover it */
@media (max-width: 899px) {
  .tabs [data-tab-desktop] {
    display: none;
  }
}

.details .tabs button[aria-selected="true"] {
  border-bottom-color: var(--red);
  background: var(--red);
  color: #fff;
}

.level {
  display: grid;
  grid-template-columns: 8.75rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: var(--row, 3rem);
  padding: 0.25rem 0.75rem 0.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0.5rem 0.5rem 0 0;
  text-align: left;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.levels__list li:last-child .level {
  border-bottom-color: transparent;
}

.level__name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--maroon);
}

.level__desc {
  font-size: 0.9375rem;
  line-height: 1.35;
}

.level__arrow {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B4743C' stroke-width='1.2'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
  transition: transform 0.5s var(--ease);
}

button.level:hover {
  background: rgba(99, 5, 16, 0.07);
}

button.level:hover .level__arrow {
  transform: translateX(0.2rem);
}

.level.is-current,
button.level.is-current:hover {
  border-bottom-color: transparent;
  border-radius: 0.5rem;
  background: var(--red);
  color: rgba(248, 238, 229, 0.92);
}

.level.is-current .level__name {
  color: var(--gold);
}

.level.is-current .level__arrow {
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E");
}

@media (max-width: 599px) {
  /* Phones: level name above its description, arrow at the right */
  .level {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name arrow" "desc arrow";
    gap: 0.15rem 0.75rem;
    padding: 0.65rem 0.75rem;
  }

  .level__name {
    grid-area: name;
  }

  .level__desc {
    grid-area: desc;
  }

  .level__arrow {
    grid-area: arrow;
  }
}

.specs__list,
.specs__included {
  padding: 0 0.75rem;
}

.specs__list div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.specs__list dt {
  font-size: 0.8125rem;
}

.specs__list dd {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  text-align: right;
  color: var(--ink);
}

.specs__included li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.specs__included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 0.9rem;
  height: 1px;
  background: var(--copper);
}

:is(.specs__list div, .specs__included li):last-child {
  border-bottom: 0;
}

/* Right panel */
.plans {
  display: flex;
  flex-direction: column;
}

.plan {
  flex: 1;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid var(--line-light);
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
  background: rgba(255, 255, 255, 0.5);
}

.plan__link {
  display: block;
  cursor: zoom-in;
}

.plan__link img {
  width: 100%;
  max-height: 30rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.plan__name {
  padding-top: 1.25rem;
  background: linear-gradient(var(--copper), var(--copper)) 0 0 / 3rem 1px no-repeat;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--maroon);
}

.plan__area {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--ink);
}

.plan__features {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.plan__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan__explore {
  border-radius: 999px;
}

@media (min-width: 900px) {
  /* Row height and plan height are derived from the screen height so the section fits below the header */
  .residence {
    min-height: calc(100svh - var(--header-h));
    padding-block: 1.75rem;
  }

  /* Terrace photograph fading into the page behind the heading */
  .residence::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 46%;
    height: 22rem;
    background: url("assets/images/hero/hero-dawn-l-1024.webp") center / cover;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent), linear-gradient(to top, transparent, #000 70%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 20%, transparent), linear-gradient(to top, transparent, #000 70%);
    mask-composite: intersect;
  }

  .residence > * {
    position: relative;
  }

  .feature-head {
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-bottom: 1.25rem;
  }

  .feature-head__title {
    font-size: clamp(2.25rem, min(4.2vw, 7.4svh), 4rem);
    line-height: 1.05;
  }

  .feature-head__intro {
    padding-left: 3rem;
    border-left: 1px solid var(--line);
  }

  .residence__grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: stretch;
  }

  .details {
    grid-column: 1 / span 5;
    --row: clamp(2rem, calc((100svh - 25.5rem) / 11.2), 3.25rem);
  }

  .plans {
    grid-column: 6 / -1;
  }

  .plan {
    grid-template-columns: minmax(0, 1.55fr) minmax(11rem, 1fr);
  }

  .plan__link img {
    max-height: max(12rem, calc(100svh - 29.5rem));
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .residence {
    padding-block: 1.25rem;
  }

  .feature-head {
    margin-bottom: 0.75rem;
  }

  .feature-head .eyebrow {
    margin-bottom: 0.6rem;
  }

  .level {
    grid-template-columns: 7.5rem 1fr auto;
    gap: 0.6rem;
    padding-left: 0.9rem;
  }

  .level__name {
    font-size: 0.6875rem;
  }

  .level__desc {
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .level__arrow {
    width: 1.5rem;
    height: 1.5rem;
  }

  .specs__list div,
  .specs__included li {
    padding-block: 0.5rem;
  }

  .specs__included li::before {
    top: 1.25rem;
  }

  /* Ten inclusions in two columns so the tab stays within the screen */
  .specs__included {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    font-size: 0.8125rem;
  }

  .plan__features {
    gap: 0.4rem;
    margin: 0.9rem 0;
  }

  .plan {
    padding-block: 0.9rem;
  }

  .plan__link img {
    max-height: max(11rem, calc(100svh - 26.5rem));
  }

  .details {
    --row: clamp(1.75rem, calc((100svh - 25.5rem) / 11.2), 3.25rem);
  }
}

/* Gallery: heading, then a single captioned strip of images at one height. One screen on desktop. */
.gallery {
  padding-block: var(--section);
}

.gallery .feature-head {
  padding-inline: var(--pad-x);
}

.gallery__track {
  --strip-h: clamp(17rem, min(58svh, 110vw), 38rem);
  display: flex;
  gap: var(--gap);
  padding-inline: var(--pad-x);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad-x);
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: none;
  scroll-snap-align: start;
}

.gallery__item a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 0.75rem;
  cursor: zoom-in;
}

.gallery__item img {
  width: auto;
  max-width: 86vw;
  height: var(--strip-h);
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.gallery__item a:hover img {
  transform: scale(1.04);
}

/* The dark band is only as wide as its text: solid behind the number and name,
   then fading out over the padding to their right */
.gallery__caption {
  --fade: 4.5rem;
  position: absolute;
  inset: auto auto 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem var(--fade) 0.75rem 1.25rem;
  background: linear-gradient(to right, rgba(22, 14, 10, 0.86) 0%, rgba(22, 14, 10, 0.74) calc(100% - var(--fade)), rgba(22, 14, 10, 0) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery__num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.gallery__num::after {
  content: "";
  width: 0.5rem;
  height: 1px;
  background: currentColor;
}

.gallery__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 2.2vw, 2rem);
  padding-inline: var(--pad-x);
}

.gallery__explore {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 3rem;
    margin-right: 1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--maroon);
    transition: color 0.4s;
}

.gallery__explore::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--copper);
}

.gallery__explore::after {
  content: "\2192";
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.5s var(--ease);
}

.gallery__explore:hover {
  color: var(--copper);
}

.gallery__explore:hover::after {
  transform: translateX(0.3rem);
}

.gallery__progress {
  flex: 1;
  height: 2px;
  margin-right: clamp(0.75rem, 3vw, 2.5rem);
  background: var(--line);
}

.gallery__progress span {
  display: block;
  height: 100%;
  background: var(--maroon);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.gallery__btn {
  position: relative;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  transition: background-color 0.4s, color 0.4s, opacity 0.4s;
}

.gallery__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.gallery__btn--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.gallery__btn--next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* Phones: no room for the progress line beside the link and arrows */
@media (max-width: 599px) {
  .gallery__progress {
    visibility: hidden;
    margin-right: 0;
  }

  .gallery__explore {
    margin-right: 0;
  }

  .gallery__explore::before {
    width: 1.25rem;
  }
}

.gallery__btn--next {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.gallery__btn:hover:not(:disabled) {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--ivory);
}

.gallery__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 900px) {
  .gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 1.75rem;
  }

  .gallery__track {
    --strip-h: clamp(14rem, calc(100svh - 27.5rem), 38rem);
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .gallery {
    padding-block: 1.25rem;
  }

  .gallery__track {
    --strip-h: clamp(13rem, calc(100svh - 23.5rem), 38rem);
  }

  .gallery__controls {
    margin-top: 1rem;
  }
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
  }

  .section-head--split > :first-child {
    grid-column: 1 / span 7;
  }

  .section-head__note {
    grid-column: 9 / -1;
    padding-bottom: 0.75rem;
  }
}

/* Amenities: heading and a selectable list on the left, an image card on the right,
   and a slim rail with the count and arrows. One screen on desktop. */
.amenities {
  display: grid;
  gap: 2.5rem var(--gap);
  padding: var(--section) var(--pad-x);
  background: var(--maroon);
  color: rgba(248, 238, 229, 0.8);
  overflow: hidden;
}

.amenities__head {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line-light);
}

.amenities__title > * {
  display: block;
}

.amenities__tabs,
.amenities__tagline,
.amenities__rail {
  display: none;
}

.amenities__tabs button {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  min-height: var(--row, 4.25rem);
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0.5rem 0.5rem 0 0;
  font-family: var(--font-display);
  text-align: left;
  text-transform: uppercase;
  color: rgba(248, 238, 229, 0.82);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.amenities__num {
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.amenities__name {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-light);
  font-size: clamp(0.875rem, 1.15vw, 1.0625rem);
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.amenities__arrow {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23D3A46C' stroke-width='1.2'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
  transition: transform 0.5s var(--ease);
}

.amenities__tabs button:hover {
  background: rgba(248, 238, 229, 0.06);
  color: #fff;
}

.amenities__tabs button:hover .amenities__arrow {
  transform: translateX(0.2rem);
}

.amenities__tabs button[aria-selected="true"] {
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  background: var(--red);
  color: #fff;
}

.amenities__tabs button[aria-selected="true"] .amenities__arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E");
}

.amenities__tagline {
  margin-top: 2rem;
  padding-left: 4.5rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 0.55rem / 3.25rem 1px no-repeat;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold);
}

/* Below 900px the stage is a native swipeable strip; above it becomes a cross-fading stack */
.amenities__stage {
  display: flex;
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.amenity {
  flex: 0 0 84%;
  scroll-snap-align: start;
  border: 2px solid var(--line-light);
  border-radius: 0.75rem;
  background: rgba(248, 238, 229, 0.05);
}

.amenity img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

.amenity figcaption {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.amenity__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.6rem;
  background: rgba(211, 164, 108, 0.14);
}

.amenity__icon .plan__icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--gold);
}

.amenity figcaption > div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-light);
}

.amenity h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.amenity p {
  max-width: 34rem;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Phones and tablets use the same selected amenity panel as desktop instead
   of revealing clipped neighboring cards in a horizontal strip. */
@media (max-width: 899px) {
  .amenities {
    gap: 1.5rem;
  }

  .amenities__intro {
    display: grid;
    gap: 1.25rem;
  }

  .amenities__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .amenities__tabs button {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.55rem;
    min-height: 3.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line-light);
    border-radius: 0.4rem;
    text-align: left;
  }

  .amenities__tabs button[aria-selected="true"] {
    border-color: var(--gold);
  }

  .amenities__num {
    font-size: 0.8125rem;
  }

  .amenities__name {
    padding-left: 0.55rem;
    font-size: 0.6875rem;
    letter-spacing: 0.07em;
  }

  .amenities__arrow {
    display: none;
  }

  .amenities__stage {
    display: grid;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }

  .amenity {
    grid-area: 1 / 1;
    min-width: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .amenity.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
  }

  .amenity--enter-from-right {
    animation: amenity-enter-from-right 0.55s var(--ease) both;
  }

  .amenity--enter-from-left {
    animation: amenity-enter-from-left 0.55s var(--ease) both;
  }

  .amenities__rail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .amenities__count {
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--gold);
  }

  .amenities__rail .gallery__btn {
    width: 2.75rem;
    height: 2.75rem;
    border-color: var(--gold);
    color: var(--gold);
  }

  .amenities__rail .gallery__btn--next {
    background: var(--gold);
    color: var(--maroon-deep);
  }
}

@keyframes amenity-enter-from-right {
  from { opacity: 0; transform: translateX(1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes amenity-enter-from-left {
  from { opacity: 0; transform: translateX(-1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 900px) {
  /* Image height is derived from the screen height so the card fits below the header */
  .amenities {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.7fr) auto;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 1.75rem;
    overflow: visible;
  }

  .amenities__title {
    font-size: clamp(2.125rem, min(3.8vw, 7svh), 3.75rem);
    line-height: 1.08;
  }

  .amenities__tabs {
    display: block;
    margin-top: clamp(1.5rem, 4svh, 3rem);
    --row: clamp(3rem, 8svh, 4.5rem);
  }

  .amenities__tagline {
    display: block;
  }

  .amenities__stage {
    display: grid;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .amenity {
    grid-area: 1 / 1;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
  }

  .amenity img {
    height: clamp(14rem, calc(100svh - 17.5rem), 42rem);
    aspect-ratio: auto;
  }

  .amenity.is-active {
    opacity: 1;
    visibility: visible;
  }

  .amenity:not(.is-active) {
    pointer-events: none;
  }

  /* Count above a hairline, arrows below */
  .amenities__rail {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    align-self: stretch;
    grid-template-rows: auto 1fr auto auto;
    /* Bottom space keeps the arrows clear of the floating WhatsApp button */
    padding-block: 1.5rem 6.5rem;
  }

  .amenities__rail::before {
    content: "";
    grid-row: 2;
    width: 1px;
    background: var(--line-light);
  }

  .amenities__count {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--gold);
  }

  .amenities__count span {
    display: block;
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .amenities__rail .gallery__btn {
    width: 2.75rem;
    height: 2.75rem;
    border-color: var(--gold);
    color: var(--gold);
  }

  .amenities__rail .gallery__btn--next {
    background: var(--gold);
    color: var(--maroon-deep);
  }

  .no-js .amenities__stage {
    display: block;
  }

  .no-js .amenity {
    opacity: 1;
    visibility: visible;
    margin-bottom: 3rem;
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .amenities {
    padding-block: 1.25rem;
  }

  .amenities__title {
    font-size: clamp(1.875rem, min(3.4vw, 5.6svh), 3rem);
  }

  .amenities__tabs {
    margin-top: 1.25rem;
    --row: clamp(2.75rem, 7svh, 4rem);
  }

  .amenities__tagline {
    margin-top: 1rem;
  }

  .amenity img {
    height: clamp(12rem, calc(100svh - 15.5rem), 42rem);
  }

  .amenity figcaption {
    padding-block: 0.8rem 0.9rem;
  }
}

/* Legacy: heading over a framed portrait on the left, the two houses with their
   figures on the right. One screen on desktop. */
.legacy {
  display: grid;
  gap: 2.5rem var(--gap);
  padding: var(--section) var(--pad-x);
  background: var(--sand);
}

.legacy > * {
  min-width: 0;
}

.legacy__head {
  margin-bottom: 1.5rem;
}

/* Gold eyebrows here; the darker gold keeps them readable on the sand background */
.legacy .eyebrow {
  color: var(--copper);
}

.legacy__title > * {
  display: block;
}

/* The portrait sits inset on a wine-to-copper block, with a plate over its lower left corner */
.legacy__figure {
    --inset: 1.25rem;
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 0.9rem var(--inset) 1.1rem var(--inset);
    --tag-w: min(21rem, 62%);
    --notch-h: 2.25rem;
    --curve: 2.75rem;
    --corner: 0.75rem;
}

/* Bottom-left corner, as on the About image: a notch is cut from the frame and portrait,
   a concave curve rounds the corner beside it, and the plate sits above */
.legacy__figure::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: var(--tag-w);
  height: 2.75rem;
  background:
    linear-gradient(var(--sand), var(--sand)) left bottom / calc(100% - var(--curve)) var(--notch-h) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--curve) - 0.5px), var(--sand) var(--curve)) right bottom / var(--curve) var(--curve) no-repeat;
}

.legacy__figure::before {
  content: "";
  position: absolute;
  inset: 0 1.1rem 0 0;
  border-radius: var(--corner);
  background: linear-gradient(to right, var(--maroon), var(--red) 40%, var(--copper));
}

.legacy__figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--corner);
}

.legacy__tag {
  position: relative;
  z-index: 2;
  left: auto;
  bottom: auto;
  width: min(100%, 21rem);
  margin: 0.75rem 0 0;
  padding: 0.9rem 1.25rem 1rem;
  border: 0;
/*  border-bottom-left-radius: var(--corner);*/
  background: var(--maroon);
  background-image: none;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.legacy__tag strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* On phones the plate sits under the portrait so it does not cover the faces */
@media (max-width: 599px) {
  .legacy__figure::after {
    content: none;
  }

  .legacy__tag {
    width: 100%;
  }
}

.legacy__houses {
  display: grid;
  align-content: center;
  gap: var(--stack, 2.25rem);
}

.legacy__intro {
  max-width: 31rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--copper);
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
}

.house .eyebrow {
  margin-bottom: 0.6rem;
}

.house__name {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.house > p:not(.eyebrow) {
  max-width: 38rem;
}

/* Four figures in a row, each under its icon, separated by hairlines */
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0;
  margin-top: 1.25rem;
  text-align: center;
}

.figures div {
  padding-inline: 0.5rem;
  border-left: 1px solid var(--line);
}

.figures div:nth-child(odd) {
  border-left: 0;
}

.figures__icon {
  display: block;
  color: var(--copper);
  width: var(--figure-icon, 2rem);
  height: var(--figure-icon, 2rem);
  margin: 0 auto 0.4rem;
}

.figures dt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  line-height: 1.15;
  color: var(--maroon);
}

.figures dd {
  margin-top: 0.3rem;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.legacy__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

@media (max-width: 899px) {
  .legacy__links {
    justify-content: center;
  }
}

@media (min-width: 600px) {
  .legacy__figure {
    --inset: 3rem;
  }

  .figures {
    grid-template-columns: repeat(4, 1fr);
  }

  .figures div:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .figures div:first-child {
    border-left: 0;
  }
}

@media (min-width: 900px) {
  /* The portrait's height is derived from the screen height so both columns fit below the header */
  .legacy {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 1.75rem;
  }

  .legacy__title {
    font-size: clamp(2rem, min(3.8vw, 6.6svh), 3.75rem);
    line-height: 1.08;
  }

  .legacy__figure img {
    width: auto;
    max-width: 100%;
    height: clamp(13rem, calc(100svh - 22.5rem), 36rem);
  }

  .legacy__houses {
    --stack: clamp(1.25rem, 3.2svh, 2.5rem);
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .legacy {
    padding-block: 1.25rem;
  }

  .legacy__head {
    margin-bottom: 1rem;
  }

  .legacy__figure img {
    height: clamp(12rem, calc(100svh - 19rem), 36rem);
  }

  .legacy__houses {
    --stack: 1rem;
    --figure-icon: 1.5rem;
  }

  .legacy__houses p:not(.eyebrow) {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .house .eyebrow {
    margin-bottom: 0.35rem;
  }

  .house__name {
    margin-bottom: 0.4rem;
    font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  }

  .figures {
    margin-top: 0.75rem;
  }

  .figures dd {
    margin-top: 0.15rem;
  }
}

/* Location: copy on the left, the round map in the middle over a sunset photograph that
   fades in from the right, and a strip of travel times below. One screen on desktop. */
.location {
  display: grid;
  background: var(--maroon);
  color: rgba(248, 238, 229, 0.82);
}

.location__main {
  position: relative;
  display: grid;
  gap: 2.5rem var(--gap);
  padding: var(--section) var(--pad-x);
  overflow: hidden;
}

.location__main > * {
  position: relative;
  min-width: 0;
}

.location__title {
  font-size: clamp(2.5rem, min(5vw, 11svh), 5.5rem);
  line-height: 1;
}

.location__lead {
  max-width: 26rem;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, min(2.1vw, 3.8svh), 1.875rem);
  line-height: 1.25;
  color: var(--ivory);
}

.location__text {
  max-width: 29rem;
  margin-top: var(--stack, 1.5rem);
}

.location__address {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: var(--stack, 1.5rem);
  padding-left: 1.25rem;
  border-left: 1px solid var(--gold);
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.75;
  text-transform: uppercase;
}

.location__address .plan__icon {
  width: 2.25rem;
  height: 2.25rem;
  stroke: var(--gold);
}

.location__address strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ivory);
}

.location__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  margin-top: var(--stack, 1.5rem);
}

.location__map {
  justify-self: center;
  width: var(--map, min(100%, 24rem));
  border-radius: 50%;
}

.location__map img {
  width: 100%;
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.location__note {
  display: none;
}

/* Travel times */
.location__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0;
  padding: 1.5rem var(--pad-x);
  background: var(--ivory);
  color: var(--ink-soft);
}

.location__times li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-inline: 1rem;
  border-left: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.location__times li:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.location__times .plan__icon {
  width: 2.25rem;
  height: 2.25rem;
}

.location__times strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

@media (min-width: 600px) and (max-width: 1099px) {
  .location__times {
    grid-template-columns: repeat(3, 1fr);
  }

  .location__times li:nth-child(odd) {
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }

  .location__times li:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 900px) {
  .location {
    grid-template-rows: 1fr auto;
    min-height: calc(100svh - var(--header-h));
  }

  /* The map is sized from the screen height so the panel and the strip fit below the header */
  .location__main {
    --map: min(34vw, calc(100svh - 17rem));
    --stack: clamp(1rem, 2.6svh, 1.75rem);
    grid-template-columns: minmax(0, 1fr) auto minmax(6rem, 0.42fr);
    align-items: center;
    padding-block: 1.75rem;
  }

  .location__main::before {
    content: "";
    position: absolute;
    inset: 0 0 0 46%;
    background: linear-gradient(rgba(71, 10, 16, 0.58), rgba(71, 10, 16, 0.58)), url("assets/images/amenities/amenity-pool-daylight.webp") 70% center / cover;
    opacity: 0.48;
    filter: saturate(0.72);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
    mask-image: linear-gradient(to right, transparent, #000 45%);
  }

  .location__note {
    display: block;
    align-self: end;
    justify-self: end;
    font-family: var(--font-display);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    line-height: 1.9;
    text-align: right;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(22, 14, 10, 0.7);
    /* Sits clear of the floating WhatsApp button */
    margin-bottom: 2.75rem;
  }

  /* Right-hand space keeps the last travel time clear of the floating WhatsApp button */
  .location__times {
    padding-block: 1.25rem;
    padding-right: calc(var(--pad-x) + 4.5rem);
  }
}

@media (min-width: 1100px) {
  .location__times {
    grid-template-columns: repeat(6, auto);
    justify-content: space-between;
    gap: 0;
  }

  .location__times li {
    padding-inline: clamp(1rem, 2vw, 2.5rem) 0;
  }

  .location__times li:nth-child(odd) {
    padding-left: clamp(1rem, 2vw, 2.5rem);
    border-left: 1px solid var(--line);
  }

  .location__times li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .location__main {
    --map: min(32vw, calc(100svh - 14.5rem));
    --stack: 0.9rem;
    padding-block: 1.25rem;
  }

  .location__main .eyebrow {
    margin-bottom: 0.75rem;
  }

  .location__text {
    font-size: 0.875rem;
  }

  .location__times {
    padding-block: 0.9rem;
  }
}

/* Other projects: introduction on the left, two project cards on the right, the second
   set lower over a wine panel. One screen on desktop. */
.projects {
  position: relative;
  display: grid;
  gap: 2.5rem var(--gap);
  padding: var(--section) var(--pad-x);
  background: var(--ivory);
  overflow: hidden;
}

.projects > * {
  position: relative;
  min-width: 0;
}

.projects__title > * {
  display: block;
}

.projects__title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--red);
}

.projects__text {
  max-width: 27rem;
  margin-top: 1.5rem;
}

.projects__badges {
  display: flex;
  margin-top: var(--stack, 2rem);
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  color: var(--maroon);
}

.projects__badges li {
  padding-inline: clamp(1rem, 2.2vw, 2.25rem);
  border-left: 1px solid var(--line);
}

.projects__badges li:first-child {
  padding-left: 0;
  border-left: 0;
}

.projects__badges li:last-child {
  padding-right: 0;
}

.projects__badges .plan__icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.5rem;
}

.projects__tagline {
    margin-top: var(--stack, 2rem);
    padding-left: 4.5rem;
    background: linear-gradient(var(--copper), var(--copper)) 0 0.55rem / 3.25rem 1px no-repeat;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1.9;
    text-transform: uppercase;
    color: var(--copper);
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 0.9rem;
  background: var(--ivory);
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(46, 5, 9, 0.45);
}

.project__figure {
  display: block;
  overflow: hidden;
}

.project__figure img {
  width: 100%;
  height: var(--project-img, auto);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.project:hover img {
  transform: scale(1.04);
}

.project__body {
  flex: 1;
  padding: 1.1rem 1.4rem 1.2rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.project__status {
  margin-bottom: 0.4rem;
  font-size: 0.625rem;
  color: var(--copper);
}

.project__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project__row > div {
  flex: 1;
}

.project__name {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.55vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* The project name's link covers the whole card */
.project__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project__arrow {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23D3A46C' stroke-width='1.2'%3E%3Cpath d='M2.5 8h11M9.5 4l4 4-4 4'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  transition: transform 0.5s var(--ease);
}

.project:hover .project__arrow {
  transform: translateX(0.25rem);
}

.project__features {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--maroon);
}

.project__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.project__features li:first-child {
  padding-left: 0;
  border-left: 0;
}

.project__features span {
  max-width: 6.5rem;
}

.project__features .plan__icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 600px) and (max-width: 899px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }

  .projects__intro {
    grid-column: 1 / -1;
  }
}

/* In narrow cards each feature stacks its icon over its label */
@media (max-width: 1299px) {
  .project__features {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .project__features li {
    flex-direction: column;
    gap: 0.3rem;
    padding-inline: 0.25rem;
  }
}

@media (min-width: 900px) {
  /* The card images take their height from the screen so both cards fit below the header */
  .projects {
    --offset: clamp(1.25rem, 4svh, 2.5rem);
    --project-img: clamp(9rem, calc(100svh - 27.5rem), 34rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 1.75rem;
  }

  .projects::before {
    content: "";
    position: absolute;
    inset: 0 0 9% 49%;
    border-bottom-left-radius: 30rem;
    background: var(--maroon);
  }

  .projects__intro {
    --stack: clamp(1.25rem, 4svh, 2.75rem);
    padding-right: 1rem;
  }

  .projects__title {
    font-size: clamp(2rem, min(3.1vw, 7svh), 3.75rem);
    line-height: 1.05;
  }

  .project__figure img {
    aspect-ratio: auto;
  }

  .projects .project {
    margin-bottom: var(--offset);
  }

  .projects .project--offset {
    margin-top: var(--offset);
    margin-bottom: 0;
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .projects {
    --project-img: clamp(9rem, calc(100svh - 23.5rem), 34rem);
    padding-block: 1.25rem;
  }

  .projects__title::after,
  .projects__text {
    margin-top: 1rem;
  }

  .projects__text {
    font-size: 0.875rem;
  }

  .project__body {
    padding-block: 0.8rem 0.9rem;
    font-size: 0.75rem;
  }

  .project__features {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }
}

/* Narrow desktops: the card text wraps more, so the images give up a little height */
@media (min-width: 900px) and (max-width: 1399px) {
  .projects {
    --project-img: clamp(9rem, calc(100svh - 29.5rem), 34rem);
  }

  .projects__badges {
    letter-spacing: 0.1em;
  }

  .projects__badges li {
    padding-inline: 0.7rem;
  }

  .projects__badges li:first-child {
    padding-left: 0;
  }
}

@media (min-width: 900px) and (max-width: 1399px) and (max-height: 800px) {
  .projects {
    --project-img: clamp(9rem, calc(100svh - 26rem), 34rem);
  }
}

/* Questions: heading on the left, numbered questions on the right. Only one answer
   is open at a time, so the section stays within one screen on desktop. */
.faq {
  display: grid;
  gap: 2.5rem var(--gap);
  padding: var(--section) var(--pad-x);
  background: var(--sand);
}

.faq > * {
  min-width: 0;
}

.faq__title > * {
  display: block;
}

.faq__text {
  max-width: 25rem;
  margin-top: 1.5rem;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
}

.faq__list {
  counter-reset: faq;
}

.faq__item {
  border-top: 1px solid var(--line);
  counter-increment: faq;
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: var(--row, 4.5rem);
  padding: 0.75rem 0 0.75rem 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.45vw, 1.3125rem);
  line-height: 1.35;
  color: var(--maroon);
  cursor: pointer;
  list-style: none;
  transition: color 0.4s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::before {
  content: counter(faq, decimal-leading-zero);
  align-self: stretch;
  display: grid;
  align-items: center;
  margin-block: 0.35rem;
  padding-right: clamp(1rem, 1.6vw, 1.5rem);
  border-right: 1px solid var(--copper);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--copper);
}

.faq__item summary::after {
  content: "";
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background:
    linear-gradient(var(--copper), var(--copper)) center / 0.9rem 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) center / 1px 0.9rem no-repeat;
  transition: transform 0.5s var(--ease), background-color 0.4s;
}

.faq__item summary:hover {
  color: var(--red);
}

.faq__item summary:hover::after {
  background-color: rgba(180, 116, 60, 0.12);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  max-width: 46rem;
  padding: 0 4rem 1.5rem clamp(3.4rem, 5.5vw, 5.4rem);
}

@media (max-width: 599px) {
  .faq__item p {
    padding-inline: 0.5rem 0;
  }
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    align-items: center;
    padding-block: clamp(2rem, 9svh, 6rem);
  }

  .faq__title {
    font-size: clamp(2.25rem, min(4.6vw, 9svh), 4.5rem);
    line-height: 1.05;
  }

  .faq__list {
    --row: clamp(3.75rem, 9.4svh, 5.4rem);
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .faq__item p {
    padding-bottom: 1rem;
    font-size: 0.875rem;
  }
}

/* Enquiry: invitation on the left over the living-room photograph, the form card on the right.
   Compact enough to share a tall screen with the footer. */
.enquire {
  position: relative;
  padding: var(--section) var(--pad-x);
  border-bottom: 2px solid var(--gold);
  background: var(--maroon-deep);
  color: #fff;
  overflow: hidden;
}

.enquire__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.enquire::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The photograph is bright at the top (ceiling lights), so the stacked layout needs an even, deeper tint */
  background: linear-gradient(to top, rgba(71, 10, 16, 0.9), rgba(71, 10, 16, 0.74));
}

.enquire__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem var(--gap);
}

.enquire__inner > * {
  min-width: 0;
}

.enquire__title > * {
  display: block;
}

.enquire__text {
  max-width: 31rem;
  margin-top: 1.5rem;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.92);
}

.enquire__badges {
  display: flex;
  margin-top: var(--stack, 2rem);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.enquire__badges li {
  padding-inline: clamp(0.9rem, 2.4vw, 2.5rem);
  border-left: 1px solid var(--gold);
}

.enquire__badges li:first-child {
  padding-left: 0;
  border-left: 0;
}

.enquire__badges .plan__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  stroke: var(--gold);
}

.form {
  padding: clamp(1rem, 2.6vw, 1rem) clamp(1.5rem, 3vw, 2.75rem);
  border: 2px solid rgba(211, 164, 108, 0.45);
  border-radius: 0.75rem;
  background: var(--maroon);
  color: rgba(248, 238, 229, 0.84);
}

.form__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__note {
  margin: 0.4rem 0 var(--field-gap, 1.25rem);
  font-size: 0.875rem;
}

.field {
  margin-bottom: var(--field-gap, 1.25rem);
}

.field label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.field label span {
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.35rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid rgba(246, 242, 236, 0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 300 0.9375rem / 1.5 var(--font-body);
  resize: vertical;
  transition: border-color 0.4s;
}

.field ::placeholder {
  color: rgba(248, 238, 229, 0.45);
  opacity: 1;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}

.field--trap {
  position: absolute;
  left: -100vw;
  height: 0;
  overflow: hidden;
}

.form__submit {
  width: 100%;
  margin-top: 0.25rem;
  justify-content: space-between;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gold);
}

.form__status:empty {
  display: none;
}

.form__privacy {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .enquire {
    padding-block: clamp(1.25rem, 2.2svh, 3rem);
  }

  .enquire__inner {
    --stack: clamp(1.25rem, 4svh, 2.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    align-items: center;
  }

  .enquire__title {
    font-size: clamp(2.25rem, min(4.4vw, 8.5svh), 4.25rem);
    line-height: 1.05;
  }

  .form {
    --field-gap: clamp(0.7rem, 2svh, 1.25rem);
  }

  .enquire::after {
    /* A wine fade behind the copy on the left, clearing towards the form */
    background: linear-gradient(to right, rgba(71, 10, 16, 0.92) 0%, rgba(71, 10, 16, 0.8) 30%, rgba(71, 10, 16, 0.4) 52%, rgba(71, 10, 16, 0.12) 70%, rgba(71, 10, 16, 0.12) 100%);
  }
}

/* 7. Footer ---------------------------------------------------------------- */
.footer {
  padding: clamp(1rem, 2.5svh, 1rem) var(--pad-x) 1rem;
  background: var(--maroon);
  color: rgba(248, 238, 229, 0.8);
  font-size: 0.8125rem;
}

.footer a {
  transition: color 0.4s;
}

.footer a:hover {
  color: var(--gold);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem var(--gap);
}

.footer__brand {
  grid-column: 1 / -1;
}

.footer__brand img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  background: #fff;
}

.footer__name {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.75rem);
  line-height: 1.2;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__place {
  margin-top: 0.4rem;
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.footer__col .label {
  margin-bottom: 0.8rem;
}

.footer__line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-style: normal;
  line-height: 1.5;
}

.footer__line + .footer__line {
  margin-top: 0.6rem;
}

.footer__line .plan__icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--gold);
}

.footer__line a {
  overflow-wrap: anywhere;
}

.footer__legal {
  margin-top: clamp(1.5rem, 3.5svh, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer__legal p {
  max-width: 62rem;
}

.footer__legal .label {
  margin-bottom: 0.4rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer__top-link::before {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
}

.footer__top-link::after {
  content: "\2191";
  margin-left: -0.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1.05fr 1.1fr 1.05fr 1.05fr;
    gap: 0;
  }

  .footer__brand {
    grid-column: auto;
    padding-right: 1.5rem;
  }

  .footer__col {
    padding-inline: clamp(0.9rem, 1.6vw, 2rem) 0.25rem;
    border-left: 1px solid var(--line-light);
  }

  .footer__name {
    white-space: nowrap;
  }

  /* Keeps "Back to top" clear of the floating WhatsApp button */
  .footer__bottom {
    padding-right: 4.5rem;
  }
}

@media (max-width: 899px) {
  .footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

/* Room for the floating WhatsApp button, which sits over the bottom right corner on desktop */
@media (min-width: 900px) {
  .gallery__controls {
    padding-right: calc(var(--pad-x) + 5.5rem);
  }

  .projects {
    padding-right: calc(var(--pad-x) + 4.75rem);
  }
}

/* Section washes: like the terrace photograph behind the Residence heading, a related
   photograph fades into one corner of each section. Desktop only; purely decorative.
   --wash-x / --wash-y give the direction in which the photograph fades out. */
@media (min-width: 900px) {
  .about,
  .gallery,
  .amenities,
  .legacy,
  .projects,
  .faq {
    position: relative;
    isolation: isolate;
  }

  :is(.about, .gallery, .amenities, .legacy, .faq)::before,
  .projects::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: var(--wash-inset, 0 0 auto auto);
    width: var(--wash-w, 46%);
    height: var(--wash-h, 22rem);
    background: var(--wash) var(--wash-focus, center) / cover;
    opacity: var(--wash-opacity, 0.4);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(var(--wash-x, to left), #000 20%, transparent), linear-gradient(var(--wash-y, to bottom), #000 30%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(var(--wash-x, to left), #000 20%, transparent), linear-gradient(var(--wash-y, to bottom), #000 30%, transparent);
    mask-composite: intersect;
  }

  /* About: the rooftop at twilight, top right */
  .about {
    --wash: url("assets/images/hero/hero-aerial-l-1024.webp");
    --wash-opacity: 0.32;
  }

  /* Gallery: the living room, top right behind the introduction */
  .gallery {
    --wash: url("assets/images/hero/hero-living-l-1024.webp");
    --wash-h: 18rem;
  }

  /* Amenities: the sunset lounge, bottom left on the wine background */
  .amenities {
    --wash: url("assets/images/hero/hero-dusk-l-1024.webp");
    --wash-inset: auto auto 0 0;
    --wash-w: 42%;
    --wash-h: 17rem;
    --wash-focus: center 65%;
    --wash-x: to right;
    --wash-y: to top;
    --wash-opacity: 0.3;
  }

  /* Heritage: the building itself, top right */
  .legacy {
    --wash: url("assets/images/hero/hero-building-l-1024.webp");
    --wash-opacity: 0.28;
  }

  /* Other projects: the Sea Link at sunset along the bottom left, as in the design */
  .projects {
    --wash: url("assets/images/amenities/amenity-pool-800.webp");
    --wash-inset: auto auto 0 0;
    --wash-w: 44%;
    --wash-h: 13rem;
    --wash-focus: center 45%;
    --wash-x: to right;
    --wash-y: to top;
    --wash-opacity: 0.45;
  }

  /* Questions: the library lounge, bottom left */
  .faq {
    --wash: url("assets/images/amenities/amenity-library-800.webp");
    --wash-inset: auto auto 0 0;
    --wash-w: 40%;
    --wash-h: 16rem;
    --wash-x: to right;
    --wash-y: to top;
    --wash-opacity: 0.35;
  }
}

/* 8. Dialogs --------------------------------------------------------------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--ivory);
}

dialog[open] {
  animation: fade-in 0.5s var(--ease);
}

dialog::backdrop {
  background: rgba(24, 4, 2, 0.94);
}

.dialog-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  background: transparent;
  touch-action: pan-y;
}

.lightbox__figure {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  height: 100%;
  padding: 4rem 1rem;
}

.lightbox__img {
  max-width: min(92vw, 100rem);
  max-height: calc(100dvh - 10rem);
  width: auto;
  object-fit: contain;
}

.lightbox__caption {
  max-width: 40rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(246, 242, 236, 0.75);
}

.lightbox__btn {
  position: fixed;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background-color 0.4s;
}

.lightbox__btn:hover {
  background: rgba(246, 242, 236, 0.14);
}

.lightbox__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.lightbox__btn--prev { left: calc(50% - 3.5rem); }
.lightbox__btn--next { right: calc(50% - 3.5rem); }
.lightbox__btn--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__btn--next::before { transform: translate(-70%, -50%) rotate(45deg); }

.film {
  width: min(92vw, 150dvh);
  max-width: 78rem;
  background: #000;
  overflow: visible;
}

.film__frame {
  aspect-ratio: 16 / 9;
}

.film__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .lightbox__btn {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .lightbox__btn--prev { left: 1.5rem; }
  .lightbox__btn--next { right: 1.5rem; }
}

/* 9. Motion ---------------------------------------------------------------- */
@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(2rem); }
}

@keyframes slow-zoom {
  from { transform: scale(1.1); }
}

@keyframes band-drift {
  from { transform: translateY(-5%) scale(1.12); }
  to { transform: translateY(5%) scale(1.12); }
}

.hero__content > *,
.hero__dots {
  animation: rise-in 1.1s var(--ease) both;
}

.hero__title { animation-delay: 0.4s; }
.hero__statement { animation-delay: 0.55s; }
.hero__cta { animation-delay: 0.7s; }
.hero__dots { animation-delay: 0.9s; }

.hero__slide.is-active img {
  animation: slow-zoom 8s var(--ease) both;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* The clip sits on the image, not the observed element: a fully clipped target never intersects. */
.js :is([data-reveal="image"], [data-reveal="map"]) {
  opacity: 1;
  transform: none;
  overflow: hidden;
}

/* Images wipe in from left to right; the transform transition is kept for hover zooms. */
.js [data-reveal="image"] img {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 2.4s var(--ease-wipe), transform 1.4s var(--ease);
}

.js [data-reveal="map"] img {
  clip-path: circle(0% at 25% 85%);
  transition: clip-path 1.8s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal="image"].is-visible img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.js [data-reveal="map"].is-visible img {
  clip-path: circle(150% at 25% 85%);
}

/* Stacked amenities: an image closes once it has faded out, so it wipes in again when reselected. */
@media (min-width: 900px) {
  .js .amenity:not(.is-active) img {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0s 0.9s, transform 1.4s var(--ease);
  }
}

/* Stagger siblings that enter together */
.js :is(.stats, .about__body, .house, .location__body, .enquire__intro) > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js :is(.stats, .about__body, .house, .location__body, .enquire__intro) > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.js :is(.about__body, .house, .location__body) > [data-reveal]:nth-child(n + 4) { transition-delay: 0.3s; }

@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .band__img {
      animation: band-drift linear both;
      animation-timeline: view();
    }
  }
}

/* 10. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-reveal] img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
