/* The finish.
   One pass over every surface so the site reads as a single private viewing
   room: fewer labels, larger pictures, hairlines instead of boxes, drawn icons
   in one weight. Loaded after the base styles; shelf.css holds the collection. */

:root {
  --coal: #0f0e0c;
  --paper-lift: #faf6ee;
  --glide: cubic-bezier(.16, 1, .3, 1);
  --wrap-wide: 1760px;
}

/* ---------- Browser surfaces ---------- */
html { scrollbar-color: #5c5446 var(--basalt); }
::selection { background: var(--verd); color: var(--basalt); }
.ahmad ::selection, .method ::selection, .dossier ::selection, .viewing ::selection,
.contact-choice ::selection, .residence-share ::selection, .portfolio-dialog ::selection { background: var(--ink); color: var(--ivory); }
input, textarea { caret-color: var(--verd-deep); }
.collection-field input { caret-color: var(--verd); }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
h4 { margin: 0; }
h1, h2, h3, h4, .lead, .host__line { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.ui-icon { width: 20px; height: 20px; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Pointer disc over photographs (mouse only, see refinement.js) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 130; width: 0; height: 0; pointer-events: none; }
.cursor span {
  position: absolute; left: -43px; top: -43px; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
  background: var(--lime); color: var(--basalt); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--glide);
}
.cursor.is-on span { transform: scale(1); }
.cursor.is-on.is-pressed span { transform: scale(.86); }
html.cursor-on, html.cursor-on * { cursor: none !important; }
@media (prefers-reduced-motion: reduce) { .cursor span { transition: none; } }

/* ---------- While the collection is on its way ---------- */
html.js:not(.is-ready) .collection { min-height: min(64vh, 42vw); }
html.js:not(.is-ready) .collection::before { content: ''; display: block; height: 1px; background: var(--verd); transform-origin: left; animation: journey-wait 2.2s var(--glide) infinite; }

/* ---------- Buttons and links ---------- */
.btn { transition: background-color .45s ease, color .45s ease, border-color .45s ease, transform .65s var(--glide); }
.btn:hover { transform: translateY(-2px); }
/* A light button empties to an outline when approached; its label stays readable. */
.btn--light:hover { background: transparent; border-color: var(--lime); color: var(--lime); }
.btn--dark:hover { background: var(--verd-deep); border-color: var(--verd-deep); }
.link-arrow:disabled, .btn:disabled { opacity: .45; cursor: default; }
.link-arrow:disabled::after { width: 34px; }
.link-arrow[aria-pressed="true"] { color: var(--verd-deep); }

/* ---------- Header ---------- */
.site-header { transition: background-color .5s ease, border-color .5s ease, transform .7s var(--glide); }
.site-header.is-away { transform: translateY(-101%); }
.brand { gap: 13px; }
.brand__mark { flex: none; width: 17px; height: 21px; fill: none; stroke: var(--verd); stroke-width: 1.3; }
.brand__ar { margin-left: 3px; }
.nav-collection { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: 500 13px/1 var(--sans); letter-spacing: .2em; }
[data-collection-count] { border-color: rgba(203, 183, 142, .7); font: 500 11px/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums; margin-left: 10px; }
.nav__cta { min-height: 44px; transition: border-color .4s ease, background-color .4s ease, color .4s ease; }
.nav__cta:hover { background: var(--lime); border-color: var(--lime); color: var(--basalt); }
.menu { background: var(--coal); border-color: rgba(203, 183, 142, .34); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.menu__nav a { font: 400 22px/1.25 var(--serif); padding: 14px 0; }
.menu__close { font-size: 12px; }

/* ---------- Gates and hero ---------- */
.estate-entry__enter:focus-visible { outline: none; }
.estate-entry__enter:focus-visible span:first-child { outline: 1px solid #f4dcad; outline-offset: 6px; }
.estate-entry__skip { min-height: 32px; }
.hero__kicker { color: var(--lime); }
.hero__title { text-wrap: balance; }

/* ---------- Prologue: the statement brightens as it is read ---------- */
.prologue { padding-block: clamp(110px, 19vh, 220px) clamp(96px, 16vh, 180px); }
.prologue__grid { align-items: start; }
.prologue__title { grid-column: 1 / span 8; max-width: 15ch; font-size: clamp(38px, 5vw, 80px); line-height: 1.05; letter-spacing: -.02em; }
.prologue__title .word { opacity: .24; transition: opacity .8s ease; }
.prologue__title .word.is-lit { opacity: 1; }
.prologue__text { grid-column: 10 / span 3; padding-top: 10px; }
.prologue__text p { font-size: 16.5px; }
.prologue__ar { text-align: left; }
.arch { width: 64px; height: 86px; margin-bottom: 28px; }

/* ---------- The collection: heading and tools ---------- */
.residences { padding-block: clamp(64px, 10vh, 120px) var(--rest); }
/* The collection is the widest room in the house: on large screens its heading
   and tools step out with the shelves so they keep one left edge. */
.residences > .wrap { max-width: var(--wrap-wide); }
.section-head { align-items: flex-end; margin-bottom: clamp(36px, 6vh, 60px); }
.section-head .display { margin-top: 0; max-width: 12ch; }
.collection-count { padding-bottom: 12px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lime-2); font-variant-numeric: tabular-nums; }
/* Filters and search rest on one hairline; the active filter and the field in
   use mark their place on it in gold. */
.collection-tools {
  display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 0 48px;
  margin-bottom: clamp(44px, 7vh, 76px); border-bottom: 1px solid var(--lime-line);
}
.filters { gap: 0 34px; }
.filter { display: inline-flex; align-items: center; gap: 9px; min-height: 58px; margin-bottom: -1px; letter-spacing: .2em; }
.filter__count { font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--verd); font-variant-numeric: tabular-nums; }
.collection-search { display: flex; align-items: stretch; gap: 28px; margin: 0; }
.collection-field {
  display: flex; align-items: center; gap: 10px; min-height: 58px; margin-bottom: -1px; color: var(--lime-2);
  border-bottom: 1px solid transparent; transition: border-color .35s ease, color .35s ease;
}
.collection-field:focus-within { color: var(--lime); border-bottom-color: var(--verd); }
.collection-field .ui-icon { flex: none; width: 18px; height: 18px; }
.collection-field input, .collection-field select {
  min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--lime);
  font: 400 15px/1.4 var(--sans); appearance: none; -webkit-appearance: none; outline: none;
}
.collection-field input { width: 250px; }
.collection-field input::placeholder { color: rgba(228, 222, 211, .64); }
.collection-field input::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 18px; height: 18px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbb78e' stroke-width='1.25'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.collection-field select {
  width: 190px; padding-right: 26px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbb78e' stroke-width='1.25'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") right center / 16px no-repeat;
}
.collection-field option { color: var(--ink); background: var(--ivory); }
.residences .note { margin-top: clamp(48px, 8vh, 80px); }
.collection-empty { padding: 24px 0 16px; }

/* ---------- Collection invitation ---------- */
.collection-intro { align-items: end; gap: clamp(32px, 6vw, 96px); padding-block: clamp(80px, 13vh, 150px); }
.collection-intro::after { content: none; }
.collection-intro h2 { margin-top: 0; font-size: clamp(38px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.018em; }
.collection-intro > div > p:first-child { max-width: 52ch; color: var(--lime-2); }
.collection-intro .small-note { color: var(--lime-2); }

/* ---------- Districts ---------- */
.districts { padding-top: clamp(24px, 4vh, 48px); }
.districts .display { margin-top: 0; }
.strip { min-height: clamp(240px, 38vh, 400px); cursor: pointer; }
/* District imagery is illustrative: toned towards the site's bronze until approached. */
.strip img { transform: scale(1.02); filter: saturate(.28) sepia(.34) brightness(.72) contrast(1.06); transition: transform 3s var(--glide), filter 1.4s ease; }
.strip::before { background: linear-gradient(90deg, rgba(15,14,12,.94) 0%, rgba(15,14,12,.74) 44%, rgba(15,14,12,.42) 100%); transition: opacity 1.2s ease; }
.strip__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 24px 40px; align-items: center; }
.strip__name { font-size: clamp(40px, 5.6vw, 92px); transition: transform 1s var(--glide); }
.strip__btn::before { content: ''; position: absolute; inset: 0; }
.strip__btn { font-variant-numeric: tabular-nums; }
.strip:has(.strip__btn:focus-visible) { outline: 2px solid var(--verd); outline-offset: -6px; }
.strip__btn:focus-visible { outline: none; }
@media (hover: hover) {
  .strip:hover img { transform: scale(1.07); filter: saturate(.85) sepia(.08) brightness(.96); }
  .strip:hover::before { opacity: .78; }
  .strip:hover .strip__name { transform: translateX(16px); }
  .strip:hover .strip__btn::after { width: 56px; }
}

/* ---------- Ahmed ---------- */
.ahmad__name { margin-top: 0; }
.ahmad__ar { text-align: left; }
.portrait figcaption { margin-top: 22px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd-deep); }
.facts dd { font-size: 17px; }

/* ---------- Method: an itinerary beside its heading ---------- */
.method__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.method__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header) + 40px); max-width: none; }
.method__head .display { margin-top: 0; font-size: clamp(38px, 4.4vw, 68px); }
.steps { grid-column: 7 / span 6; display: block; margin-top: 0; }
.steps li { display: grid; grid-template-columns: clamp(56px, 6vw, 92px) minmax(0, 1fr); gap: 20px; margin: 0; padding: 32px 0 34px; border-right: 0; border-bottom: 1px solid var(--ink-line); }
.steps__num { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.15; }
.steps h3 { margin-top: 0; font-size: clamp(24px, 2.1vw, 32px); }
.steps p { margin-top: 10px; max-width: 46ch; }

/* ---------- Contact: a card table by the door ---------- */
.personal-contact { display: block; min-height: 0; padding-block: clamp(96px, 16vh, 180px); background: var(--basalt); }
.personal-contact::before { background: radial-gradient(56% 78% at 84% 44%, rgba(203, 183, 142, .11), rgba(203, 183, 142, 0) 72%); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: center; }
.contact-content { grid-column: 1 / span 7; padding-block: 0; }
.contact-content h2 { margin: 0 0 28px; font-size: clamp(44px, 5.8vw, 92px); line-height: 1.02; }
.contact-content > p:not(.label) { max-width: 44ch; color: var(--lime-2); }
.contact-image {
  position: relative; inset: auto; z-index: 0; grid-column: 9 / span 4; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0; outline: 1px solid rgba(203, 183, 142, .42); outline-offset: 14px; background: var(--coal);
}
.contact-image img { filter: sepia(.3) saturate(.72) brightness(.84) contrast(1.04); }
.contact-channels { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-top: 40px; border-top: 1px solid var(--lime-line); }
.contact-channel {
  min-height: 86px; padding: 0 4px; gap: 18px; border: 0; border-bottom: 1px solid var(--lime-line);
  transition: padding .7s var(--glide), color .4s ease;
}
.contact-channel strong { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); }
.contact-channel .cp-app-logo { flex: none; width: 22px; height: 22px; color: var(--verd); }
.contact-channel > .ui-icon { flex: none; transition: transform .7s var(--glide); }
.contact-channel:hover { background: none; padding-inline: 18px 4px; }
.contact-channel:hover > .ui-icon { transform: translate(5px, -5px); }
.contact-app-note { margin-top: 20px; color: var(--lime-2); }
.contact-content .contact-note { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 22px 0 30px; font-size: 13px; }
.contact-note a { min-height: 44px; margin: 0; gap: 10px; font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--lime); }
.contact-note a:hover { color: var(--verd); }
.contact-note .cp-app-logo { width: 18px; height: 18px; color: var(--verd); }
.contact-note a[href^="mailto:"]::before {
  content: ''; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbb78e' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 7l9 6.5L21 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact-content .link-arrow { display: inline-flex; }

/* ---------- Viewing request ---------- */
.viewing { padding-block: clamp(80px, 13vh, 140px); }
.viewing__intro .display { margin-top: 0; }
.viewing__ar { text-align: left; }
.field label { color: var(--ink-2); }
.field input, .field select, .field textarea { transition: border-color .3s ease, box-shadow .3s ease; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-bottom: 1px solid var(--verd-deep); box-shadow: 0 1px 0 var(--verd-deep); }
.field input::placeholder { color: var(--ink-2); }
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b18' stroke-width='1.25'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") right 2px center / 16px no-repeat;
}
.consent { cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 20px; min-width: 20px; height: 20px; margin: 2px 0 0;
  border: 1px solid rgba(29, 27, 24, .6); border-radius: 0; background: transparent; cursor: pointer; transition: background-color .25s ease, border-color .25s ease;
}
.consent input::before { content: ''; width: 11px; height: 6px; margin-top: -3px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: rotate(-45deg) scale(0); transition: transform .25s var(--glide); }
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::before { transform: rotate(-45deg) scale(1); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(72px, 12vh, 124px) 36px; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: clamp(40px, 7vh, 72px); border-bottom: 1px solid var(--lime-line); }
.footer__brand { display: flex; flex-direction: column; gap: 14px; font: 400 clamp(54px, 9.4vw, 148px)/.9 var(--serif); letter-spacing: -.025em; }
.footer__ar { margin: 0; font: 300 clamp(16px, 1.5vw, 21px)/1.6 var(--arabic); letter-spacing: 0; text-align: left; color: var(--lime-2); }
.footer__nav { display: flex; flex-direction: column; align-items: flex-end; }
.footer__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: color .3s ease; }
.footer__nav a:hover { color: var(--verd); }
.footer__base { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding-top: 26px; }
.footer__note { max-width: 62ch; font-size: 13.5px; line-height: 1.7; color: rgba(228, 222, 211, .82); }
.footer__links { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0 30px; }
.footer__links a, .footer__links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--lime-2); transition: color .3s ease;
}
.footer__links a:hover, .footer__links button:hover { color: var(--verd); }

/* ---------- Residence page: bar ---------- */
.detail__bar-inner { min-height: 64px; }
.back, .skip-details { gap: 12px; font-size: 12.5px; letter-spacing: .2em; transition: color .3s ease; }
.back .ui-icon, .skip-details .ui-icon, .switcher__step .ui-icon { flex: none; width: 18px; height: 18px; transition: transform .6s var(--glide); }
.back:hover .ui-icon { transform: translateX(-5px); }
.skip-details:hover .ui-icon { transform: translateY(4px); }
.switcher { gap: 22px; }
.switcher__step {
  display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; min-height: 44px;
  font: italic 400 17px/1 var(--serif); color: var(--lime-2); text-decoration: none; transition: color .3s ease;
}
.switcher__step span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher__step:hover { color: var(--lime); }
.switcher__step:first-child:hover .ui-icon { transform: translateX(-5px); }
.switcher__step:last-child:hover .ui-icon { transform: translateX(5px); }
.switcher__count { font: 500 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: none; color: var(--verd); font-variant-numeric: tabular-nums; }

/* ---------- Residence page: showcase ---------- */
.journey { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 6vh, 64px) clamp(56px, 9vh, 96px); }
.journey:empty { min-height: 78vh; }
.journey:empty::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--verd);
  transform-origin: left; animation: journey-wait 2.2s var(--glide) infinite;
}
@keyframes journey-wait { from { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
.journey__ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.journey__ambient span { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(64px) saturate(1.2); opacity: 0; transition: opacity 2s ease; }
.journey__ambient span.is-on { opacity: .32; }
.journey__ambient::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--basalt) 0%, rgba(22,21,19,.8) 32%, rgba(22,21,19,.42) 100%), linear-gradient(180deg, rgba(22,21,19,0) 55%, var(--basalt) 100%);
}
.residence-showcase { align-items: start; }
.residence-intro { padding-top: clamp(4px, 1.6vh, 24px); }
.residence-intro h1 { margin-top: 0; font-size: clamp(34px, 3.3vw, 56px); line-height: 1.05; letter-spacing: -.016em; }
.residence-intro h1.is-caps { font-size: clamp(25px, 2.3vw, 38px); line-height: 1.18; letter-spacing: .05em; }
.residence-tagline { margin-top: 16px; font: italic 400 clamp(18px, 1.5vw, 22px)/1.35 var(--serif); color: var(--lime-2); }
.residence-location { margin-top: 20px; font: 500 12.5px/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd); }
.residence-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; padding-top: 0; }
.residence-facts > div { gap: 4px; padding: 15px 0 17px; border-bottom: 1px solid var(--lime-line); }
.residence-facts > div:nth-child(odd) { padding-right: 16px; }
.residence-facts dt { font: 500 11.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lime-2); }
.residence-facts dd { font-size: clamp(23px, 2vw, 30px); font-variant-numeric: lining-nums tabular-nums; }
.residence-price { margin-top: 26px; font: italic 400 clamp(24px, 2.2vw, 32px)/1.2 var(--serif); font-variant-numeric: lining-nums; }
.residence-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.residence-actions .btn { font-size: 13px; letter-spacing: .2em; }
.residence-tools { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--lime-line); }
.tool {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--lime-2); transition: color .3s ease;
}
.tool .ui-icon, .tool .cp-app-logo { flex: none; width: 17px; height: 17px; }
.tool:hover { color: var(--lime); }
.tool[aria-pressed="true"] { color: var(--verd); }
.tool[aria-pressed="true"] .ui-icon { fill: currentColor; }
.tool:disabled { opacity: .45; cursor: default; }
.residence-photo__open { background: var(--coal); }
.residence-photo__expand { right: 16px; bottom: 16px; width: 42px; height: 42px; background: rgba(15, 14, 12, .5); border: 1px solid rgba(255, 249, 239, .3); }
.residence-photo__expand .ui-icon { width: 18px; height: 18px; }
.residence-gallery__bar { gap: 24px; margin-top: 18px; padding-top: 14px; }
.residence-gallery__count { font: italic 400 17px/1 var(--serif); letter-spacing: .04em; color: var(--lime); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.gallery-play { gap: 10px; min-height: 44px; font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: color .3s ease; }
.gallery-play::before, .gallery-play[aria-pressed="true"]::before { content: none; }
.gallery-play .ui-icon { width: 16px; height: 16px; color: var(--verd); }
.gallery-play[aria-pressed="false"] .ui-icon:nth-of-type(2), .gallery-play[aria-pressed="true"] .ui-icon:nth-of-type(1) { display: none; }
.arrow { width: 48px; height: 48px; transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.arrow .ui-icon { width: 18px; height: 18px; }
.arrow:hover:not([aria-disabled="true"]) { border-color: var(--lime); }
.residence-thumbnails { gap: 10px; padding: 5px 2px 10px; scrollbar-width: none; }
.residence-thumbnails::-webkit-scrollbar { display: none; }
.residence-thumbnails li { flex-basis: 96px; }
.residence-thumbnail { opacity: .5; }
.notfound { padding-block: 140px var(--rest); }
.notfound h1 { margin-top: 0; }

/* ---------- Residence page: dossier ---------- */
.dossier { padding-block: clamp(72px, 12vh, 140px) 0; }
.dossier__grid { padding-top: 0; align-items: start; }
.dossier__story { grid-column: 1 / span 7; }
.dossier__heading { margin-bottom: clamp(28px, 5vh, 48px); font: italic 400 clamp(28px, 2.8vw, 44px)/1.15 var(--serif); letter-spacing: -.01em; }
.dossier__lead { max-width: 64ch; margin-bottom: clamp(48px, 8vh, 72px); }
.dossier__lead > p:first-child:not(.is-label) { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.65; color: var(--ink); }
.dossier__lead p.is-label, .dossier__sub { font: 500 12.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd-deep); }
.dossier__lead p.is-label { margin: 2.4em 0 1em; }
.dossier__lead p.is-label:first-child { margin-top: 0; }
.amenities { max-width: 64ch; margin-top: 18px; }
.amenities ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; border-top: 1px solid var(--ink-line); }
.amenities li { break-inside: avoid; padding: 13px 0 14px; border-bottom: 1px solid var(--ink-line); font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.dossier__ledger {
  grid-column: 9 / span 4; position: sticky; top: calc(var(--header) + 28px);
  padding: clamp(22px, 2.2vw, 32px); background: var(--paper-lift); border: 1px solid var(--ink-line);
}
.ledger { margin-top: 16px; }
.ledger > div { padding: 18px 0 20px; }
.ledger > div:nth-child(odd):not(.ledger__wide) { padding-right: 14px; }
.ledger > div:nth-child(even):not(.ledger__wide) { padding-left: 18px; }
.ledger dt { font-size: 11.5px; letter-spacing: .18em; }
.ledger dd { margin-top: 10px; font-size: clamp(30px, 2.7vw, 42px); font-variant-numeric: lining-nums tabular-nums; }
.ledger dd small { font: 400 15px/1 var(--sans); }
.ledger .ledger__price { font-size: clamp(22px, 1.9vw, 28px); }
.ledger__finishing dd { font-size: clamp(20px, 1.8vw, 26px); }
.ledger__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; }
.ledger__actions .btn { width: 100%; }
.dossier__ledger .small-note { margin-top: 12px; font-size: 13px; }

.gallery { margin-top: clamp(88px, 14vh, 160px); }
.gallery__head { align-items: baseline; padding-bottom: 24px; }
.gallery__count { font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd-deep); font-variant-numeric: tabular-nums; }
.gallery__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: stretch; gap: 16px; }
.gallery__cell { min-width: 0; }
.gallery__cell--half { grid-column: span 6; }
.gallery__cell--solo { grid-column: 3 / span 8; }
.gallery__cell--big-l { grid-column: 1 / span 8; grid-row: span 2; }
.gallery__cell--small-r { grid-column: 9 / span 4; }
.gallery__cell--small-l { grid-column: 1 / span 4; }
.gallery__cell--big-r { grid-column: 5 / span 8; grid-row: span 2; }
.gallery__cell--big-l .gallery__item, .gallery__cell--big-r .gallery__item { height: 100%; }
.gallery__cell--big-l .gallery__frame, .gallery__cell--big-r .gallery__frame { height: 100%; aspect-ratio: auto; }
.gallery__item { background: var(--coal); }

.host { align-items: center; margin-top: clamp(88px, 14vh, 160px); padding: clamp(48px, 8vh, 72px) 0 clamp(88px, 14vh, 150px); }
.host__portrait { max-width: 250px; }
.host__line { margin-top: 0; }
.host__actions { gap: 12px 36px; }

/* The page turns: the next residence waits at the foot of this one. */
.next-residence { display: block; background: var(--coal); color: var(--lime); text-decoration: none; }
.next-residence__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-block: clamp(64px, 11vh, 128px); }
.next-residence__text { display: grid; justify-items: start; }
.next-residence__label { font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd); }
.next-residence__name { max-width: 14ch; margin-top: 18px; font: 400 clamp(38px, 4.6vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.next-residence__meta { margin-top: 20px; font: 500 12.5px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lime-2); }
.next-residence__go {
  display: grid; place-items: center; width: 76px; height: 76px; margin-top: clamp(28px, 5vh, 48px);
  border: 1px solid rgba(255, 249, 239, .42); border-radius: 50%; transition: background-color .5s ease, color .5s ease, transform .8s var(--glide);
}
/* The next cover is shown complete, at its own proportions. */
.next-residence__photo { position: relative; justify-self: end; max-width: 100%; }
.next-residence__photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(62vh, 620px); }
.next-residence__photo::after { content: ''; position: absolute; inset: 0; background: rgba(15, 14, 12, .34); transition: opacity 1s ease; pointer-events: none; }
.next-residence:focus-visible { outline-offset: -6px; }
@media (hover: hover) {
  .next-residence:hover .next-residence__photo::after { opacity: 0; }
  .next-residence:hover .next-residence__go { background: var(--lime); color: var(--basalt); transform: translateX(10px); }
}

/* ---------- Dialogs ---------- */
.contact-choice, .residence-share { padding: clamp(26px, 4vw, 44px); border: 0; box-shadow: 0 34px 90px rgba(0, 0, 0, .42); }
.contact-choice::backdrop, .residence-share::backdrop { background: rgba(15, 14, 12, .78); }
.contact-choice h2, .residence-share h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.contact-choice__close, .residence-share [data-close], .p-close, .lightbox__close {
  min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: inherit; transition: color .3s ease;
}
.contact-choice__close:hover, .residence-share [data-close]:hover, .p-close:hover { color: var(--verd-deep); }
.lightbox__close:hover { color: var(--verd); }
.contact-choice .contact-channels { margin-top: 26px; border-top-color: var(--ink-line); }
.contact-choice .contact-channel { border-bottom-color: var(--ink-line); }
.contact-choice .contact-channel .cp-app-logo { color: var(--verd-deep); }
.contact-choice .contact-app-note { margin-top: 18px; }
.residence-share [data-name] { margin: 14px 0 24px; font: italic 400 20px/1.3 var(--serif); color: var(--ink-2); }
.residence-share button:not([data-close]), .residence-share .share-actions a {
  min-height: 52px; font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border-color: rgba(29, 27, 24, .32); transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.residence-share button:not([data-close]):hover, .residence-share .share-actions a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.residence-share label { font: 500 11.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.residence-share input { border: 0; border-bottom: 1px solid rgba(29, 27, 24, .4); padding: 10px 0; letter-spacing: 0; text-transform: none; }

/* The private collection: the same ink, paper and bronze as the rest. */
.collection-dock {
  background: var(--coal); color: var(--lime); border: 1px solid rgba(203, 183, 142, .6); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 16px 20px; transition: background-color .35s ease, color .35s ease;
}
.collection-dock:hover { background: var(--lime); color: var(--basalt); }
.portfolio-dialog { background: var(--ivory); color: var(--ink); box-shadow: 0 34px 100px rgba(0, 0, 0, .45); }
.portfolio-dialog::backdrop { background: rgba(15, 14, 12, .8); backdrop-filter: none; }
.p-head { background: var(--ivory); border-bottom-color: var(--ink-line); padding-block: 14px; }
.p-head p { font-size: 21px; }
.p-title { font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -.015em; }
.p-copy, .p-meta, .p-small, .p-field small { color: var(--ink-2); }
.p-summary { background: var(--ivory-2); padding: 30px; }
.p-primary { min-height: 52px; background: var(--ink); border-color: var(--ink); color: var(--ivory); font: 500 12.5px/1 var(--sans); letter-spacing: .2em; transition: background-color .4s ease, border-color .4s ease; }
.p-primary:hover:not(:disabled) { background: var(--verd-deep); border-color: var(--verd-deep); }
.p-secondary { color: var(--ink); border-bottom-color: rgba(29, 27, 24, .4); }
.p-card, .p-receipt { border-color: var(--ink-line); }
.p-card { grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 24px; align-items: start; }
/* Saved residences keep their complete cover photograph, at its own proportions. */
.p-card .p-photo { height: auto; }
.p-card .p-photo img { display: block; width: 100%; height: auto; }
.p-card h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; text-wrap: balance; }
.p-meta { margin: 10px 0 16px; font: 500 11.5px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.p-card label, .p-field label { font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.p-card textarea, .p-field input, .p-field select, .p-field textarea { background: var(--paper-lift); border-color: rgba(29, 27, 24, .3); color: var(--ink); margin-top: 8px; }
.p-card textarea:focus-visible, .p-field input:focus-visible, .p-field select:focus-visible, .p-field textarea:focus-visible { outline: 2px solid var(--verd-deep); outline-offset: 2px; }
.p-check input { accent-color: var(--ink); }
.p-notice { background: var(--ivory-2); }
.p-toast { background: var(--coal); color: var(--lime); }

/* ---------- Visitor analytics choice (drawn by /shared/visitor-analytics.js) ----------
   A quiet note in the same coal and bronze as the collection dock, instead of
   a pale card across the opening photograph. Both answers carry the same
   weight. It waits beneath the full-screen photograph viewer. */
.analytics-choice {
  z-index: 75; left: 24px; bottom: 24px; width: min(376px, calc(100vw - 48px)); padding: 22px 24px;
  background: rgba(15, 14, 12, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(203, 183, 142, .36); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  color: var(--lime-2); font: 400 14px/1.6 var(--sans);
}
.analytics-choice h2 { margin: 0 0 8px; font: 400 21px/1.2 var(--serif); color: var(--lime); }
.analytics-choice p { margin: 0 0 18px; text-wrap: balance; }
.analytics-choice > div { gap: 10px; }
.analytics-choice button {
  flex: 1 1 0; min-height: 44px; padding: 0 12px; border: 1px solid rgba(236, 230, 218, .34); background: transparent; color: var(--lime);
  font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.analytics-choice button:hover { background: var(--lime); border-color: var(--lime); color: var(--basalt); }
.analytics-choice button:focus-visible, .analytics-preferences:focus-visible { outline: 2px solid var(--verd); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .analytics-choice { animation: choice-arrive .9s var(--glide) both; }
  @keyframes choice-arrive { from { opacity: 0; transform: translateY(var(--choice-from, 14px)); } }
}
/* On a wide screen the lower corners hold the enquiry buttons, so the note
   sits under the header on the right, where it covers no control and none of
   the opening words. A residence page has its own bar to clear first. */
@media (min-width: 1280px) {
  .analytics-choice { --choice-from: -14px; left: auto; bottom: auto; right: 24px; top: calc(var(--header) + 81px); transition: top .6s var(--glide); }
  body:has(#detail[hidden]) .analytics-choice { top: calc(var(--header) + 20px); }
}
@media (max-width: 520px) {
  .analytics-choice { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px 18px 16px; }
  .analytics-choice h2 { font-size: 19px; }
  .analytics-choice p { margin-bottom: 14px; font-size: 13.5px; line-height: 1.55; }
}

/* ---------- Lightbox ---------- */
.lightbox { background: rgba(10, 9, 8, .985); }
.lightbox__nav { width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; background: rgba(15, 14, 12, .5); border-color: rgba(255, 249, 239, .34); transition: background-color .4s ease, color .4s ease, transform .6s var(--glide); }
.lightbox__nav--prev:hover { transform: translateX(-4px); }
.lightbox__nav--next:hover { transform: translateX(4px); }
.lightbox__figure figcaption { font: italic 400 17px/1 var(--serif); letter-spacing: .04em; color: var(--lime); }

/* ---------- Server-rendered residence text, shown until the page is ready ---------- */
.dossier > .wrap > h1 { font: 400 clamp(34px, 3.3vw, 56px)/1.05 var(--serif); margin-bottom: 20px; }
.dossier > .wrap > h2 { font: 500 12.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--verd-deep); margin: 32px 0 12px; }
.dossier > .wrap > p { color: var(--ink-2); margin-bottom: 14px; }
.dossier > .wrap > img { margin: 28px 0 80px; max-height: 60vh; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .prologue__text { grid-column: 9 / span 4; }
  .filters, .collection-search { flex: 1 1 100%; }
  .filters { border-bottom: 1px solid var(--lime-line); }
  .collection-field--search { flex: 1; }
  .collection-field--search input { width: 100%; }
  .strip__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .strip__line { grid-column: 1; }
  .strip__btn { grid-column: 2; grid-row: 1; }
  .dossier__story { grid-column: 1 / span 7; }
  .dossier__ledger { grid-column: 8 / span 5; }
  .contact-image { grid-column: 9 / span 4; }
}

@media (max-width: 900px) {
  .site-header.is-away { transform: none; }
  .prologue { padding-block: 88px 72px; }
  .prologue__title, .prologue__text { grid-column: 1; }
  .prologue__title { max-width: 100%; font-size: clamp(34px, 8.6vw, 60px); }
  .prologue__text { padding-top: 0; margin-top: 36px; }
  .prologue__text p { font-size: 16px; max-width: 46ch; margin-inline: auto; }
  .prologue__ar { text-align: center; }
  .arch { margin-inline: auto; }

  .residences { padding-top: 72px; }
  .section-head { gap: 14px; margin-bottom: 28px; }
  .collection-count { width: 100%; padding-bottom: 0; text-align: center; }
  .collection-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; margin-bottom: 44px; border-bottom: 0; }
  /* District filters stay on one line and scroll sideways when they outgrow the screen. */
  .filters {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0 26px; width: auto;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--lime-line);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; width: auto; min-height: 52px; font-size: 12px; letter-spacing: .16em; white-space: nowrap; }
  .collection-search { flex-direction: column; align-items: stretch; gap: 0; }
  .collection-field { min-height: 52px; margin-bottom: 0; border-bottom-color: var(--lime-line); }
  .collection-field input, .collection-field select { width: 100%; font-size: 16px; }
  .chapter + .chapter { margin-top: 72px; }

  .collection-intro { padding-block: 72px; text-align: center; }
  .collection-intro > div > p:first-child { margin-inline: auto; }
  .districts { padding-top: 16px; text-align: center; }
  .strip { min-height: 0; }
  .strip__inner { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding-block: 52px 44px; }
  .strip__line, .strip__btn { grid-column: 1; grid-row: auto; }
  .strip__name { font-size: clamp(38px, 11vw, 60px); }
  .strip::before { background: linear-gradient(180deg, rgba(15,14,12,.62) 0%, rgba(15,14,12,.9) 100%); }

  .ahmad__ar { text-align: center; }
  .method__grid { display: block; }
  .method__head { position: static; }
  .steps { margin-top: 40px; text-align: left; border-top: 1px solid var(--ink); }
  .steps li:nth-child(n) { margin-top: 0; padding: 26px 0 28px; border-top: 0; }

  .personal-contact { padding-block: 88px; }
  .contact-grid { display: flex; flex-direction: column-reverse; align-items: center; gap: 56px; }
  .contact-content { width: 100%; }
  .contact-image { width: min(64%, 300px); outline-offset: 10px; }
  .contact-channels { margin-inline: auto; text-align: left; }
  .contact-content .contact-note { justify-content: center; }
  .viewing__ar { text-align: center; }

  .footer__top { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
  .footer__brand { align-items: center; font-size: clamp(50px, 15vw, 96px); }
  .footer__ar { text-align: center; }
  .footer__nav { align-items: center; }
  .footer__base { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }

  .detail__bar-inner { gap: 0 16px; padding-block: 4px; }
  .detail__bar .back, .detail__bar .skip-details { font-size: 11.5px; letter-spacing: .16em; }
  .switcher { justify-content: space-between; gap: 12px; }
  .switcher__count { display: block; }
  .switcher__step { font-size: 16px; }

  .journey { padding-block: 28px 52px; }
  .journey__ambient { display: none; }
  .residence-showcase { gap: 0; }
  .residence-intro h1 { order: 0; font-size: clamp(32px, 8vw, 50px); max-width: 100%; }
  .residence-tagline { order: 1; margin-top: 12px; }
  .residence-location { order: 2; margin-top: 14px; }
  .residence-gallery { order: 3; margin-top: 26px; }
  .residence-facts { order: 4; margin-top: 30px; padding-top: 0; gap: 0; }
  .residence-price { order: 5; margin-top: 22px; }
  .residence-actions { order: 6; margin-top: 22px; }
  .residence-tools { order: 7; width: 100%; margin-top: 22px; }
  .residence-actions .btn { flex: 1 1 100%; }

  .dossier { padding-top: 72px; }
  .dossier__story, .dossier__ledger { grid-column: 1; }
  .dossier__ledger { position: static; margin-top: 56px; }
  .ledger dd { font-size: clamp(30px, 8vw, 40px); }
  .gallery { margin-top: 80px; }
  .host { margin-top: 80px; padding-bottom: 88px; }
  .host__portrait { max-width: 200px; }
  .next-residence__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 72px; }
  .next-residence__photo { justify-self: stretch; }
  .next-residence__photo img { width: 100%; max-height: none; }
  .next-residence__go { width: 60px; height: 60px; margin-top: 28px; }
  .next-residence__name { font-size: clamp(36px, 10vw, 60px); }
  .lightbox__nav { width: 52px; height: 52px; }
}

@media (max-width: 700px) {
  .gallery__grid { gap: 10px; }
  .gallery__cell--big-l, .gallery__cell--big-r, .gallery__cell--half, .gallery__cell--solo { grid-column: 1 / -1; grid-row: auto; }
  .gallery__cell--small-l, .gallery__cell--small-r { grid-column: span 6; }
  .gallery__cell--big-l .gallery__frame, .gallery__cell--big-r .gallery__frame { height: auto; aspect-ratio: 4 / 3; }
  .amenities ul { columns: 1; }
}

@media (max-width: 520px) {
  .hero__kicker { font-size: 11px; letter-spacing: .14em; }
  /* The slideshow control keeps its accessible name; only the icon is shown. */
  .gallery-play [data-slideshow-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gallery-play { min-width: 44px; justify-content: center; }
  .gallery-play .ui-icon { width: 18px; height: 18px; }
  .residence-facts dd { font-size: 24px; }
  .contact-content h2 { font-size: clamp(40px, 12vw, 54px); }
  .footer__links { gap: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .prologue__title .word { opacity: 1; }
  .site-header.is-away { transform: none; }
  .journey:empty::after { animation: none; transform: none; }
}
