:root {
  --paper: oklch(96% 0.018 88);
  --paper-soft: oklch(98% 0.012 82);
  --ink: oklch(23% 0.025 62);
  --muted: oklch(46% 0.026 70);
  --line: oklch(86% 0.018 82);
  --sage: oklch(61% 0.063 145);
  --sage-deep: oklch(34% 0.054 146);
  --clay: oklch(60% 0.1 42);
  --rose: oklch(78% 0.06 24);
  --walnut: oklch(34% 0.055 48);
  --white: oklch(99% 0.006 88);
  --shadow-sm: 0 2px 10px color-mix(in oklch, var(--walnut), transparent 90%);
  --shadow-lg: 0 30px 70px color-mix(in oklch, var(--walnut), transparent 80%);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklch, var(--sage), transparent 88%), transparent),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 40rem);
  background-color: var(--paper-soft);
  color: var(--ink);
  font-family: "Manrope", "Readex Pro", sans-serif;
  font-size: clamp(15px, 0.6vw + 13.5px, 16.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: "Readex Pro", "Noto Naskh Arabic", sans-serif;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2 {
  font-family: "Noto Naskh Arabic", "Fraunces", serif;
  line-height: 1.25;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--sage-deep);
  box-shadow: 0 12px 28px color-mix(in oklch, var(--sage-deep), transparent 70%);
}

.button.primary:hover {
  background: color-mix(in oklch, var(--sage-deep), black 6%);
}

.button.ghost {
  color: inherit;
  background: color-mix(in oklch, currentColor, transparent 92%);
  border-color: color-mix(in oklch, currentColor, transparent 62%);
  backdrop-filter: blur(6px);
}

.button.ghost:hover {
  background: color-mix(in oklch, currentColor, transparent 84%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 54px);
  color: var(--white);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.site-header[data-elevated="true"] {
  background: color-mix(in oklch, var(--paper-soft), transparent 8%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-text small {
  opacity: 0.74;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: var(--uline-origin, left);
  transition: transform 220ms ease;
}

body[dir="rtl"] .nav-links a::after {
  --uline-origin: right;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.icon-link {
  display: inline-grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  color: inherit;
  background: color-mix(in oklch, currentColor, transparent 88%);
  border: 1px solid color-mix(in oklch, currentColor, transparent 70%);
  border-radius: 999px;
  text-decoration: none;
  transition: background 180ms ease;
}

.lang-toggle:hover,
.icon-link:hover {
  background: color-mix(in oklch, currentColor, transparent 80%);
}

.lang-toggle {
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

.icon-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 40px) clamp(16px, 5vw, 70px) clamp(28px, 4vw, 48px);
  color: var(--white);
}

.hero-slides,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(75deg, color-mix(in oklch, var(--ink), transparent 8%) 0%, color-mix(in oklch, var(--ink), transparent 40%) 46%, transparent 82%),
    linear-gradient(0deg, color-mix(in oklch, var(--ink), transparent 16%) 0%, transparent 46%);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-content {
  max-width: 660px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  text-shadow: 0 2px 30px color-mix(in oklch, var(--ink), transparent 55%);
}

.hero .eyebrow {
  color: color-mix(in oklch, var(--rose), var(--white) 30%);
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 28px;
  color: color-mix(in oklch, var(--white), transparent 8%);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .button.primary {
  background: var(--white);
  color: var(--sage-deep);
  box-shadow: 0 14px 34px color-mix(in oklch, var(--ink), transparent 60%);
}

.hero .button.primary:hover {
  background: var(--paper-soft);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 660px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--white), transparent 78%);
  background: color-mix(in oklch, var(--white), transparent 80%);
  backdrop-filter: blur(14px);
}

.hero-facts div {
  padding: 16px 18px;
  background: color-mix(in oklch, var(--ink), transparent 52%);
}

.hero-facts dt {
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.1;
  font-weight: 600;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: color-mix(in oklch, var(--white), transparent 22%);
  font-size: 0.82rem;
}

/* Hero slider controls */
.hero-controls {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 3vw, 28px);
  inset-inline-end: clamp(16px, 5vw, 70px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: color-mix(in oklch, var(--ink), transparent 50%);
  border: 1px solid color-mix(in oklch, var(--white), transparent 64%);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, transform 180ms ease;
}

.hero-arrow:hover {
  background: color-mix(in oklch, var(--ink), transparent 28%);
  transform: scale(1.06);
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[dir="rtl"] .hero-arrow svg {
  transform: scaleX(-1);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in oklch, var(--white), transparent 55%);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--ink), transparent 55%);
  transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
  width: 26px;
  background: var(--white);
}

/* ---------- Intro band ---------- */
.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(18px, 4vw, 32px);
}

.intro-lead {
  max-width: 760px;
  margin: 0;
  color: var(--walnut);
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.18;
}

body[dir="rtl"] .intro-lead {
  font-family: "Noto Naskh Arabic", "Fraunces", serif;
  line-height: 1.5;
}

.intro-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 360px;
  gap: 8px;
}

.intro-list span {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-deep);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 32px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading.compact {
  display: block;
  max-width: 680px;
}

.section-heading h2,
.video-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--walnut);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: var(--line);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in oklch, var(--ink), transparent 55%) 0%, transparent 42%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

/* ---------- Details ---------- */
.details-section {
  border-top: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-bottom: 16px;
}

.detail-panel,
.amenity-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.detail-panel {
  padding: clamp(24px, 3vw, 36px);
}

.detail-panel.accent {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(140deg, color-mix(in oklch, var(--sage-deep), var(--walnut) 26%), var(--sage-deep));
  box-shadow: var(--shadow-lg);
}

.detail-panel h3,
.amenity-grid h3 {
  margin-bottom: 14px;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1.25;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--muted);
}

.detail-panel.accent .check-list li,
.detail-panel.accent p {
  color: color-mix(in oklch, var(--white), transparent 8%);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.detail-panel.accent .check-list li::before {
  background: color-mix(in oklch, var(--rose), var(--white) 20%);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  text-underline-offset: 6px;
  padding-bottom: 1px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.amenity-grid article {
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.amenity-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.amenity-number {
  display: block;
  margin-bottom: 28px;
  color: var(--clay);
  font-family: "Fraunces", "Noto Naskh Arabic", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.amenity-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Video strip ---------- */
.media-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 70px);
  background: linear-gradient(140deg, color-mix(in oklch, var(--sage-deep), var(--walnut) 30%), var(--sage-deep));
  color: var(--white);
}

.video-copy .eyebrow {
  color: color-mix(in oklch, var(--rose), var(--white) 30%);
}

.video-copy h2 {
  color: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 14px;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.video-grid video:nth-child(2) {
  aspect-ratio: 4 / 5;
}

/* ---------- Location ---------- */
.location-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
}

.location-section .section-heading {
  margin-bottom: 0;
  align-self: center;
}

.map-wrap {
  min-height: clamp(360px, 50vw, 540px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-lg);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.82) contrast(0.98);
}

/* ---------- Contact ---------- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 80px);
  max-width: var(--container);
  margin: 0 auto clamp(48px, 8vw, 96px);
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 32px);
  border-top: 1px solid var(--line);
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--sage-deep);
  font-weight: 800;
  text-decoration: none;
}

.phone-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.visit-form {
  display: grid;
  gap: 16px;
}

.visit-form label {
  display: grid;
  gap: 8px;
  color: var(--walnut);
  font-weight: 700;
  font-size: 0.94rem;
}

.visit-form input,
.visit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.visit-form textarea {
  resize: vertical;
}

.visit-form input:focus,
.visit-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--sage), transparent 82%);
}

.form-submit {
  justify-self: start;
  margin-top: 4px;
}

body[dir="rtl"] .form-submit {
  justify-self: end;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 70px) calc(26px + env(safe-area-inset-bottom));
  color: color-mix(in oklch, var(--muted), var(--ink) 12%);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-underline-offset: 5px;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  display: none;
  gap: 10px;
  padding: 12px clamp(14px, 4vw, 24px) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--paper-soft), transparent 6%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px color-mix(in oklch, var(--walnut), transparent 88%);
  backdrop-filter: blur(16px);
}

.mobile-cta .button {
  flex: 1;
  min-height: 48px;
}

.mobile-cta .button.ghost {
  flex: 0 0 38%;
  border-color: var(--line);
  background: var(--white);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(94vw, 1040px);
  max-width: none;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  overflow: visible;
}

.lightbox::backdrop {
  background: color-mix(in oklch, var(--ink), transparent 8%);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 80svh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--ink);
}

.lightbox figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}

.lightbox-count {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: color-mix(in oklch, var(--ink), transparent 24%);
  border: 1px solid color-mix(in oklch, var(--white), transparent 72%);
  border-radius: 50%;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: color-mix(in oklch, var(--ink), transparent 8%);
  transform: scale(1.06);
}

.lightbox-close {
  top: 18px;
  inset-inline-end: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav.prev {
  inset-inline-start: max(18px, calc(50vw - 560px));
}

.lightbox-nav.next {
  inset-inline-end: max(18px, calc(50vw - 560px));
}

body[dir="rtl"] .lightbox-nav.prev svg,
body[dir="rtl"] .lightbox-nav.next svg {
  transform: scaleX(-1);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
  will-change: opacity, transform;
}

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

/* ---------- RTL flow ---------- */
body[dir="rtl"] .intro-list {
  justify-content: flex-start;
}

body[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(285deg, color-mix(in oklch, var(--ink), transparent 8%) 0%, color-mix(in oklch, var(--ink), transparent 40%) 46%, transparent 82%),
    linear-gradient(0deg, color-mix(in oklch, var(--ink), transparent 16%) 0%, transparent 46%);
}

/* ---------- Responsive ---------- */
/* Tablet: slider controls sit below the highlights panel */
@media (min-width: 621px) and (max-width: 1024px) {
  .hero-controls {
    position: static;
    inset: auto;
    margin-top: clamp(22px, 3vw, 30px);
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .intro-list {
    justify-content: flex-start;
    max-width: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-layout,
  .media-strip,
  .location-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid video,
  .video-grid video:nth-child(2) {
    aspect-ratio: 4 / 5;
  }

  body {
    padding-bottom: 84px; /* room for mobile CTA */
  }

  .mobile-cta {
    display: flex;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(88svh, 720px);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  /* Mobile: gallery becomes a framed 4:3 block above the text */
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 clamp(28px, 8vw, 40px);
    color: var(--ink);
  }

  .hero-slides {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  /* Scrim so the header menu stays legible over the image */
  .hero-slides::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(96px, 24vw, 140px);
    background: linear-gradient(180deg, color-mix(in oklch, var(--ink), transparent 38%), transparent);
    z-index: 2;
    pointer-events: none;
  }

  .hero-overlay {
    display: none;
  }

  .hero-inner {
    padding: clamp(40px, 11vw, 52px) clamp(16px, 5vw, 22px) 0;
  }

  .hero h1 {
    color: var(--walnut);
    text-shadow: none;
  }

  .hero .eyebrow {
    color: var(--clay);
  }

  .hero-copy {
    color: var(--muted);
  }

  .hero .button.primary {
    background: var(--sage-deep);
    color: var(--white);
    box-shadow: 0 12px 28px color-mix(in oklch, var(--sage-deep), transparent 72%);
  }

  /* Highlights panel on light background */
  .hero-facts {
    border-color: var(--line);
    background: var(--line);
    backdrop-filter: none;
  }

  .hero-facts div {
    background: var(--white);
  }

  .hero-facts dt {
    color: var(--walnut);
  }

  .hero-facts dd {
    color: var(--muted);
  }

  /* Arrows on the image's left/right edges; dots overlay the bottom */
  .hero-controls {
    display: contents;
  }

  .hero-dots {
    position: absolute;
    z-index: 3;
    top: calc(75vw - 34px);
    inset-inline: 0;
    justify-content: center;
  }

  .hero-arrows {
    display: flex;
    position: absolute;
    z-index: 3;
    top: 37.5vw;
    transform: translateY(-50%);
    inset-inline: clamp(10px, 3vw, 16px);
    justify-content: space-between;
  }

  .lightbox figcaption {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 400px) {
  .brand-text small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
