/* Sections. Mobile-first; editorial grids open up from 900px and 1200px. */

/* ---------------------------------------------------------------- B · hero */
.hero { position: relative; min-height: calc(100svh - var(--disc-h)); display: flex; align-items: flex-end; color: var(--limestone);
  overflow: hidden; background: var(--forest); }
.hero-media { position: absolute; inset: 0; }
.hero-media { will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 49, 45, 0.55) 0%, rgba(18, 49, 45, 0) 26%, rgba(18, 49, 45, 0) 46%, rgba(18, 49, 45, 0.82) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) clamp(72px, 11vh, 128px); }
.kicker { display: flex; align-items: center; gap: 16px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sand); margin-block-end: 30px; }
.kicker .rule { width: 44px; height: 1px; background: var(--gold); }
.hero h1 { max-width: 16ch; margin-block-end: 30px; text-wrap: balance; }
.hero-lead { font: 300 clamp(17px, 1.45vw, 20px)/1.65 var(--sans); color: rgba(245, 240, 230, 0.88); max-width: 46ch; margin-block-end: 34px; }
.hero-credit { position: absolute; z-index: 1; inset-block-end: 22px; inset-inline-end: var(--gutter); color: rgba(245, 240, 230, 0.62);
  max-width: 50ch; text-align: end; }

/* ---------------------------------------------------------------- C · story */
.story { padding: var(--section) var(--gutter); }
.story-grid { display: grid; gap: 40px; }
.story-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.story-detail { display: none; }
.story-text .heading { margin-block-end: 34px; }
.story-text .body-lg { margin-block-end: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-block-start: 48px; padding-block-start: 32px; border-block-start: 1px solid var(--line); }
.facts dt { font: 500 10.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin-block-end: 10px; }
.facts dd { font: 400 21px/1.25 var(--serif); color: var(--teal); }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 0 24px; }
  .story-main { grid-column: 1 / span 6; grid-row: 1; }
  .story-main img { aspect-ratio: 4 / 5; }
  .story-detail { display: block; grid-column: 5 / span 3; grid-row: 1; align-self: end; translate: 0 18%;
    border: 10px solid var(--limestone); box-shadow: 0 30px 60px rgba(24, 49, 45, 0.18); }
  .story-detail img { aspect-ratio: 1; object-fit: cover; }
  .story-text { grid-column: 8 / span 5; grid-row: 1; padding-inline-start: clamp(16px, 3vw, 56px); }
}

/* ---------------------------------------------------------------- D · stay */
.stay { position: relative; background: linear-gradient(180deg, var(--limestone) 0, var(--sand) clamp(180px, 20vw, 320px)); padding: var(--section) var(--gutter); }
.stay-head { display: grid; gap: 22px; margin-block-end: clamp(48px, 7vw, 96px); }
.stay-head .label { margin-block-end: 6px; }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic figure { position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m-tall { grid-column: 1 / -1; }
.m-tall img { aspect-ratio: 6 / 5; object-position: 50% 100%; }
.m-wide { grid-column: 1 / -1; }
.m-wide img { aspect-ratio: 3 / 2; }
.m-owner, .m-small { grid-column: 1 / -1; }
.m-small img { aspect-ratio: 16 / 9; object-position: 50% 0%; }
.owner-ph { width: 100%; height: 100%; min-height: 240px; aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 24px; color: var(--sand); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(197, 163, 106, 0.22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(245, 240, 230, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #1d4a46 0%, var(--teal) 55%, var(--forest) 100%); }
.owner-ph .ph-mark { position: absolute; inset-block-start: 24px; inset-inline-start: 24px; width: 30px; height: 30px; border: 1px solid var(--gold); transform: rotate(45deg); }
.owner-ph .ph-label { font: 400 26px/1.1 var(--serif); color: var(--limestone); }
.owner-ph .ph-sub { font: 400 12.5px/1.55 var(--sans); color: rgba(233, 221, 200, 0.78); max-width: 28ch; }
.mosaic .credit { position: absolute; inset-inline-start: 14px; inset-block-end: 12px; margin: 0; color: rgba(245, 240, 230, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-block-start: clamp(48px, 6vw, 80px); border-block-start: 1px solid var(--line); }
.amenities li { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-block-end: 1px solid var(--line);
  font: 400 clamp(20px, 1.9vw, 26px)/1.2 var(--serif); color: var(--teal); }
.amenities .num { font: italic 400 15px/1 var(--serif); color: var(--terracotta); min-width: 26px; }
@media (min-width: 900px) {
  .stay-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 60px; }
  .stay-head .label { grid-column: 1 / -1; }
  /* fixed row heights so no single photo dictates the mosaic; every tile fills its cell */
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-template-rows: clamp(320px, 31vw, 500px) clamp(280px, 25vw, 400px); gap: 18px; }
  .mosaic figure { overflow: hidden; }
  .mosaic img { position: absolute; inset: 0; aspect-ratio: auto; }
  .m-tall { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .m-tall img { inset: auto 0 0 0; height: 138%; object-position: 50% 100%; } /* bottom of the photo: arches, no ceiling fan */
  .m-wide { grid-column: 6 / span 7; grid-row: 1; }
  .m-wide img { object-position: 50% 60%; }
  .m-owner { grid-column: 6 / span 3; grid-row: 2; }
  .owner-ph { aspect-ratio: auto; min-height: 0; }
  .m-small { grid-column: 9 / span 4; grid-row: 2; }
  .m-small img { inset: 0 auto auto 50%; translate: -50% 0; max-width: none; width: max(150%, calc(clamp(280px, 25vw, 400px) * 1.75)); height: auto; } /* upper brick vault only, never the fan */
  .amenities { grid-template-columns: repeat(4, 1fr); }
  .amenities li { padding-inline-end: 24px; }
}

/* ---------------------------------------------------------------- E · rooftop (experience) */
.rooftop { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: visible; background: var(--forest); }
.rooftop-media { position: absolute; inset: 0; overflow: hidden; }
.rooftop-media img { position: absolute; inset-inline-start: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.rooftop::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 49, 45, 0.25) 0%, rgba(18, 49, 45, 0) 40%, rgba(18, 49, 45, 0.35) 100%); }
.rooftop-panel { position: relative; z-index: 2; background: var(--limestone); padding: clamp(32px, 5vw, 64px);
  margin-inline: var(--gutter); translate: 0 64px; max-width: 600px; box-shadow: 0 40px 80px rgba(24, 49, 45, 0.18); }
.rooftop-panel .heading { margin-block-end: 26px; }
.roof-credit { position: absolute; z-index: 2; inset-block-end: 22px; inset-inline-end: var(--gutter); color: rgba(245, 240, 230, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }

/* ---------------------------------------------------------------- F · dining */
.dining { position: relative; padding: calc(var(--section) + 64px) var(--gutter) var(--section); }
.dining-grid { display: grid; gap: 40px; }
.dining-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dining-inset { display: none; }
.dining-text .heading { margin-block-end: 30px; }
@media (min-width: 900px) {
  .dining-grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
  .dining-text { grid-column: 1 / span 5; padding-inline-end: 24px; grid-row: 1; }
  .dining-main { grid-column: 7 / span 6; grid-row: 1; }
  .dining-main img { aspect-ratio: 5 / 4; }
  .dining-inset { display: block; grid-column: 6 / span 3; grid-row: 1; align-self: end; translate: 0 26%; z-index: 1;
    border: 10px solid var(--limestone); box-shadow: 0 30px 60px rgba(24, 49, 45, 0.2); }
  .dining-inset img { aspect-ratio: 4 / 5; object-fit: cover; }
  .dining-inset .credit { padding: 8px 4px 0; }
  .dining-main { position: relative; }
  .dining-main .credit { position: absolute; inset-inline-end: 14px; inset-block-end: 12px; margin: 0; max-width: 60%; text-align: end;
    color: rgba(245, 240, 230, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
}

/* ---------------------------------------------------------------- G · location */
.location { background: var(--teal); color: var(--limestone); padding: var(--section) var(--gutter); margin-block-start: clamp(40px, 6vw, 90px); }
.location-grid { display: grid; gap: 48px; }
.location-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location-media .credit { color: rgba(245, 240, 230, 0.6); }
.location-text .heading { margin-block-end: 30px; }
.loc-list { margin-block-start: 44px; border-block-start: 1px solid var(--line-light); }
.loc-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-block-end: 1px solid var(--line-light); }
.loc-list .k { font: 500 10.5px/1.9 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.loc-list .v { font-size: 15.5px; color: rgba(245, 240, 230, 0.86); }
@media (min-width: 900px) {
  .location-grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
  .location-media { grid-column: 1 / span 6; }
  .location-media img { aspect-ratio: 5 / 6; }
  .location-text { grid-column: 8 / span 5; }
}

/* ---------------------------------------------------------------- H · booking */
.book { position: relative; background: var(--sand); padding: var(--section) var(--gutter); }
.book-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.book .heading { margin-block-end: 28px; }
.book .body { margin-block-end: 44px; }
.book-actions { display: grid; justify-items: center; gap: 22px; }
.pending { font-size: 13.5px; color: var(--ink-soft); }
.pending::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--gold); vertical-align: middle; margin-inline-end: 10px; }

/* ---------------------------------------------------------------- I · footer */
.site-footer { background: var(--forest); color: var(--sand); padding: clamp(72px, 9vw, 120px) var(--gutter) 90px; }
.footer-top { display: grid; gap: 40px; padding-block-end: 48px; border-block-end: 1px solid var(--line-light); }
.footer-wordmark { font: 300 clamp(40px, 5vw, 72px)/1 var(--serif); color: var(--limestone); }
.footer-place { font: 500 11px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-block-start: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 30px; align-content: start; }
.footer-nav a { text-decoration: none; font: 500 12px/1.6 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(233, 221, 200, 0.85); }
.footer-nav a:hover { color: var(--limestone); }
.footer-notice { display: grid; gap: 14px; padding-block: 40px; max-width: 780px; }
.footer-notice .notice { font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--serif); color: var(--limestone); }
.fine { font-size: 12.5px; color: rgba(233, 221, 200, 0.66); max-width: 70ch; }
.credits { border-block-start: 1px solid var(--line-light); padding-block-start: 24px; }
.credits summary { cursor: pointer; font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.credits ul { display: grid; gap: 8px; margin-block: 18px; font-size: 12.5px; color: rgba(233, 221, 200, 0.8); }
.credits a { color: var(--sand); }
.credits p { margin-block-start: 12px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; align-items: end; } .footer-nav { justify-content: flex-end; } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 600px) {
  .header-inner { gap: 18px; padding-block: 18px; }
  .wm-name { font-size: 21px; }
  .hero-credit { inset-inline-start: var(--gutter); text-align: start; }
  .hero-content { padding-block-end: 96px; }
  .facts { grid-template-columns: 1fr; }
  .rooftop { min-height: 78svh; }
  .rooftop-panel { margin-inline: 16px; }
  .roof-credit { inset-block-end: auto; inset-block-start: 16px; }
  .loc-list li { grid-template-columns: 1fr; gap: 6px; }
  .concept-badge { inset-block-end: 12px; inset-inline-start: 12px; }
}

/* overlay photo captions sit on a translucent chip so they stay legible on pale sand or sky */
.mosaic .credit, .dining-main .credit { background: rgba(24, 49, 45, 0.62); color: rgba(245, 240, 230, 0.92); text-shadow: none;
  padding: 5px 9px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* keep the last footer line clear of the fixed concept badge */
.site-footer { padding-block-end: max(var(--gutter), 96px); }
@media (min-width: 900px) { .story-main .credit { max-width: 58%; } }

/* small-screen fixes from visual QA */
@media (max-width: 600px) {
  .kicker { line-height: 1.7; align-items: flex-start; }
  .kicker .rule { display: none; }
  .hero-credit { inset-block-end: auto; inset-block-start: 84px; max-width: none; }
  .amenities { grid-template-columns: 1fr; }
  .roof-credit { inset-inline-start: var(--gutter); }
}
/* on narrow screens the headline sits over the brightest part of the river: deepen the overlay */
@media (max-width: 899px) {
  .hero::after { background: linear-gradient(180deg, rgba(18, 49, 45, 0.6) 0%, rgba(18, 49, 45, 0.1) 20%, rgba(18, 49, 45, 0.45) 42%, rgba(18, 49, 45, 0.9) 100%); }
}
.hero-content { text-shadow: 0 1px 18px rgba(18, 49, 45, 0.35); }
/* soft scrim on the reading side of the hero (left in English, right in Arabic) */
@media (min-width: 900px) {
  .hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(18, 49, 45, 0.5) 0%, rgba(18, 49, 45, 0.18) 38%, rgba(18, 49, 45, 0) 60%); }
  html[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(18, 49, 45, 0.5) 0%, rgba(18, 49, 45, 0.18) 38%, rgba(18, 49, 45, 0) 60%); }
}

/* ================================================================ V3 · motion and pacing */

/* hero entrance: the photograph is unveiled like light coming up over the water, then the words arrive in reading order */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media img { animation: hero-unveil 2.4s var(--drift) both; }
  .js .hero .kicker, .js .hero h1, .js .hero .hero-lead, .js .hero .link-cta, .js .hero-credit {
    animation: hero-rise 1.2s var(--drift) both; }
  .js .hero .kicker { animation-delay: .45s; }
  .js .hero h1 { animation-delay: .6s; }
  .js .hero h1 em { display: inline-block; animation: hero-rise 1.3s var(--drift) .78s both; }
  .js .hero .hero-lead { animation-delay: .95s; }
  .js .hero .link-cta { animation-delay: 1.1s; }
  .js .hero-credit { animation: hero-fade 1.2s var(--breeze) 1.5s both; }
  .js .hero .kicker .rule { transform-origin: var(--rule-origin, left); animation: rule-draw 1.4s var(--drift) .5s both; }
}
@keyframes hero-unveil { from { opacity: 0; transform: scale(1.07); clip-path: inset(6% 5% 6% 5%); } 45% { opacity: 1; } to { opacity: 1; transform: scale(1); clip-path: inset(0); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } }
@keyframes rule-draw { from { transform: scaleX(0); } }

/* the thread: a gold hairline that carries the eye across section joins, drawn as you scroll (where supported) */
.stay::before, .dining::before, .book::before {
  content: ""; position: absolute; z-index: 3; inset-inline-start: 50%; width: 1px; height: clamp(72px, 9vw, 132px);
  inset-block-start: calc(clamp(72px, 9vw, 132px) / -2); pointer-events: none;
  background: linear-gradient(180deg, rgba(197, 163, 106, 0), var(--gold) 30%, var(--gold) 70%, rgba(197, 163, 106, 0));
  transform-origin: 50% 0; }
.dining::before { inset-block-start: clamp(96px, 10vw, 140px); }
@media (max-width: 899px) { .dining::before { display: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stay::before, .dining::before, .book::before {
      animation: thread-draw linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes thread-draw { from { transform: scaleY(0); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }

/* the rooftop is the page's long breath: a little more height on large screens, the panel rises over the photo */
@media (min-width: 1200px) { .rooftop { min-height: 100svh; } }
