/* DIAR · warm stone at dusk. Owner-pinned look (30 Nov 2026): the render leads,
   chrome is warm graphite glass, actions are white, light content rides on
   stone-white sheets. Motion: one entrance, then the page answers the scroll. */

/* ---------- Ground and browser surfaces ---------- */
html { background: var(--sky-deeper); color-scheme: dark; accent-color: #fff }
body { position: relative; isolation: isolate; color: var(--ds-on-sky); background: transparent }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 55% at 50% 0%, rgb(217 185 140 / .07), transparent 70%), linear-gradient(180deg, var(--sky-deep), var(--sky-deeper) 80%) }
::selection { background: #e9d6b6; color: #1d1915 }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid #fff; outline-offset: 3px }
html { scrollbar-color: rgb(255 255 255 / .24) transparent }
main > section { background: transparent; color: var(--ds-on-sky) }
.home-section-title { color: inherit; font-size: var(--ds-fs-title); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance }

/* ---------- Masthead: one floating glass pill ---------- */
:root { --mast-h: 70px }
.home-mast { position: sticky; z-index: 15; top: 0; padding-top: 10px; min-height: var(--mast-h); color: var(--ds-on-sky); background: none; pointer-events: none }
.home-bar, .home-brand, .home-links, .home-utilities, .home-menu-extra { display: flex; align-items: center }
.home-bar { pointer-events: auto; min-height: 56px; gap: clamp(10px, 2vw, 30px); padding-inline: 20px 8px; border-radius: var(--ds-r-pill); background: var(--ds-glass); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: inset 0 1px 0 var(--ds-glass-edge), var(--ds-shadow-sm); transition: background-color var(--ds-dur) var(--ds-ease) }
.home-mast.scrolled .home-bar { background: var(--ds-glass-strong) }
.home-brand { width: fit-content; gap: 10px; flex: none; color: inherit }
.home-brand img { display: block; object-fit: contain }
.home-mast .home-brand img { width: 69px; height: 39px }
.home-links { margin-inline: auto; gap: 2px; min-width: 0; flex-wrap: wrap; justify-content: center }
.home-links a { position: relative; isolation: isolate; min-height: 44px; padding: 10px 14px; display: grid; place-items: center; white-space: nowrap; font-size: var(--ds-fs-footnote); color: var(--ds-on-sky-2); transition: color var(--ds-dur) var(--ds-ease) }
.home-links a::before, .home-utilities :is(a, button)::before, .home-menu-button::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: var(--ds-r-pill); background: transparent; transition: background-color var(--ds-dur) var(--ds-ease) }
.home-links a:hover, .home-links a[aria-current=location] { color: var(--ds-on-sky) }
.home-links a:hover::before { background: rgb(255 255 255 / .08) }
.home-links a[aria-current=location]::before { background: rgb(255 255 255 / .15) }
.home-utilities, .home-menu-extra { gap: 2px }
.home-utilities a, .home-sound, .home-menu-button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 10px; background: transparent; color: var(--ds-on-sky-2); border: 0; cursor: pointer; white-space: nowrap; font-size: var(--ds-fs-footnote) }
.home-sound svg, .home-menu-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round }
.home-language, .home-ar-link { font-weight: 500 }
.home-utilities :is(.home-sound, .home-language, .home-ar-link):hover, .home-menu-button:hover { color: var(--ds-on-sky) }
.home-utilities :is(.home-sound, .home-language, .home-ar-link):hover::before, .home-menu-button:hover::before { background: rgb(255 255 255 / .1) }
.home-utilities .home-visit { padding-inline: 18px; margin-inline-start: 4px; color: var(--ds-ink); font-weight: 600; background: #fff padding-box; border-block: 4px solid transparent; border-radius: var(--ds-r-pill); transition: background-color var(--ds-dur) var(--ds-ease) }
.home-utilities .home-visit::before { display: none }
.home-utilities .home-visit:hover { background: #ece7de padding-box }
.home-menu-button, .home-mobile-nav { display: none }
.home-mobile-nav { color: var(--ds-on-sky); background: rgb(22 19 16 / .82); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: inset 0 1px 0 var(--ds-glass-edge), var(--ds-shadow-lg); pointer-events: auto }
.home-mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px }
.home-mobile-nav a:hover, .home-mobile-nav a[aria-current=location] { background: rgb(255 255 255 / .1) }
.home-assistant-entry { display: none; align-items: center; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; color: inherit; background: transparent; text-align: start; cursor: pointer }
.home-assistant-entry:hover { background: rgb(255 255 255 / .1) }
.home-menu-extra { border-block-start: 1px solid var(--ds-sky-line); justify-content: space-between }

/* ---------- Hero: the render, a line, one way in ---------- */
.sky-hero { position: relative; isolation: isolate; min-height: max(620px, 100svh); margin-top: calc(-1 * var(--mast-h)); overflow: clip; color: var(--ds-on-sky) }
.home-hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; background: #2a251f; transform-origin: 50% 0 }
.home-film, .sky-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40% }
.sky-still { opacity: 0; transition: opacity 1200ms var(--ds-ease) }
html[data-sky="day"] .sky-still[data-still="day"], html[data-sky="night"] .sky-still[data-still="night"] { opacity: 1 }
.home-hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(10 9 7 / .42) 0%, transparent 20%, transparent 42%, rgb(17 15 12 / .5) 66%, rgb(17 15 12 / .9) 90%, var(--sky-deeper) 100%) }
.home-film-pause, .home-gallery-play { width: 44px; height: 44px; color: #fff; border: 0; border-radius: 50%; background: var(--ds-glass); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); cursor: pointer; display: grid; place-items: center; font: 14px/1 system-ui, sans-serif; pointer-events: auto }
.home-film-pause:hover, .home-gallery-play:hover { background: var(--ds-glass-strong) }

.sky-hero-inner { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: inherit; width: min(1480px, calc(100% - 2 * var(--home-gutter))); margin-inline: auto; padding-block: calc(var(--mast-h) + 40px) clamp(18px, 3.2vh, 34px) }
.home-hero-copy { display: grid; justify-items: center; align-content: end; text-align: center; padding-bottom: clamp(28px, 7vh, 80px) }
.hero-brand { margin: 0; font: 600 var(--ds-fs-footnote)/1.4 "Diar Thmanyah", sans-serif; letter-spacing: .02em; color: var(--ds-on-sky-2) }
.hero-brand em { font-style: normal }
.hero-display { margin: 8px 0 0; font: 700 var(--ds-fs-display)/1.06 var(--home-display); letter-spacing: -.012em; text-shadow: 0 2px 40px rgb(0 0 0 / .35); text-wrap: balance }
html[lang=en] .hero-display { font-weight: 400; letter-spacing: -.04em; line-height: .98 }
.hero-display .hero-word { display: inline-block }
.home-intro { margin: 14px 0 0; max-width: 42ch; color: var(--ds-on-sky); font-size: var(--ds-fs-lead); line-height: 1.5; text-shadow: 0 1px 18px rgb(0 0 0 / .5); text-wrap: balance }
.sky-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 3.4vh, 34px) }
.home-hero-actions { display: flex }
.home-pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding-inline: 30px; border-radius: var(--ds-r-pill); font-weight: 600; font-size: var(--ds-fs-body); transition: background-color var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), translate 500ms var(--ds-ease), scale var(--ds-dur-press) var(--ds-ease) }
/* The one action that matters: into the building. */
.home-pill.primary { background: #fff; color: var(--ds-ink); box-shadow: 0 10px 30px rgb(0 0 0 / .3) }
.home-pill.primary:hover { background: #f1ece4; box-shadow: 0 14px 40px rgb(0 0 0 / .38) }
.home-pill.quiet { color: #fff; background: var(--ds-glass); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34) }
.home-pill.quiet:hover { background: var(--ds-glass-strong) }
.hero-arrow { display: inline-block; font: 19px/1 system-ui, sans-serif; transition: transform var(--ds-dur) var(--ds-ease) }
.home-pill.primary:hover .hero-arrow { transform: translateX(-4px) }
html[lang=en] .home-pill.primary:hover .hero-arrow { transform: translateX(4px) }
.home-pill.quiet:hover .hero-arrow.down { transform: translateY(3px) }
.hero-foot { display: flex; justify-content: center; align-items: center; min-height: 48px }
.home-starting-price { margin: 18px 0 0; color: var(--ds-on-sky-2); font-size: var(--ds-fs-footnote); line-height: 1.45; text-shadow: 0 1px 12px rgb(0 0 0 / .5) }
.home-starting-price[data-pending] { visibility: hidden }
.home-starting-price a { display: inline-flex; align-items: baseline; gap: .35em; min-height: 30px; color: #fff; text-decoration: none }
.home-starting-price strong { font-weight: 600; font-variant-numeric: lining-nums tabular-nums }
.home-starting-unit-label { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 4px }
.home-starting-price a:hover .home-starting-unit-label { text-decoration-color: currentColor }
.home-starting-price small { color: var(--ds-on-sky-3); font-size: var(--ds-fs-caption); margin-inline-start: .5em }
.home-starting-price small::before { content: "· "; }
/* Scroll cue: a capsule whose bead drops toward the building. */
.hero-scroll { display: grid; place-items: start center; width: 28px; height: 46px; padding-top: 8px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55) }
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: #fff }
.hero-scroll:hover { box-shadow: inset 0 0 0 1.5px #fff }

/* Press feedback lands on pointer-down. */
:is(.home-utilities :is(a, button), .home-links a, .home-menu-button, .home-pill, .home-film-pause, .hero-scroll, .home-starting-price a):active { scale: .97 }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Entrance, once: the line rises word by word, the rest follows. */
  .sky-hero .hero-brand { animation: rise 800ms var(--ds-ease) 80ms backwards }
  .sky-hero .hero-display .hero-word { animation: word 1000ms var(--ds-ease) backwards; animation-delay: calc(180ms + var(--i, 0) * 110ms) }
  .sky-hero .home-intro { animation: rise 900ms var(--ds-ease) 520ms backwards }
  .sky-hero .sky-cta { animation: rise 900ms var(--ds-ease) 640ms backwards }
  .sky-hero .hero-foot { animation: fade 900ms var(--ds-ease) 900ms backwards }
  .sky-hero .home-starting-price { animation: rise 900ms var(--ds-ease) 760ms backwards }
  .sky-hero .home-hero-media { animation: settle 2200ms var(--ds-ease) backwards }
  .hero-scroll span { animation: bead 2200ms var(--ds-ease) 1600ms infinite }
  @keyframes rise { from { opacity: 0; translate: 0 18px } }
  @keyframes word { from { opacity: 0; translate: 0 .42em; filter: blur(10px) } }
  @keyframes fade { from { opacity: 0 } }
  @keyframes settle { from { scale: 1.08; filter: brightness(.6) } }
  @keyframes bead { 0% { translate: 0 0; opacity: 1 } 60% { translate: 0 14px; opacity: 0 } 61% { translate: 0 0; opacity: 0 } 100% { opacity: 1 } }

  /* Scroll: the render recedes into a framed plate as the explorer rises in. */
  @supports (animation-timeline: scroll()) {
    .sky-hero .home-hero-media { animation: settle 2200ms var(--ds-ease) backwards, recede linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100svh }
    .sky-hero-inner { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 70svh }
    @keyframes recede { to { scale: .9; border-radius: 40px; filter: brightness(.55) } }
    @keyframes lift { to { opacity: 0; translate: 0 -70px } }
    /* Sections arrive as they enter: sheets and the explorer slab lift into place. */
    :is(#apartments, #progress, #payment), :is(#interiors, #gallery, #features) .home-wrap > :is(.home-room-stage, .project-reel-stage, .project-feature-rail) { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 55% }
    main > section :is(.home-section-title) { animation: arrive-title linear both; animation-timeline: view(); animation-range: entry 0% entry 70% }
    @keyframes arrive { from { opacity: .6; translate: 0 56px; scale: .97 } }
    @keyframes arrive-title { from { opacity: 0; translate: 0 32px } }
  }
}

/* ---------- Sections ---------- */
/* Light content rides on porcelain sheets floating over the sky. */
#apartments, #progress, #payment { width: min(1580px, calc(100% - 2 * clamp(8px, 1.6vw, 26px))); margin: clamp(14px, 2vw, 30px) auto; border: 0; border-radius: var(--ds-r-lg); background: var(--ds-sheet); color: var(--ds-ink); box-shadow: var(--ds-shadow-lg); --home-fg: var(--ds-ink); --home-muted: var(--ds-ink-2); --home-gold: var(--ds-indigo) }
#apartments { padding-block-start: clamp(28px, 3.5vw, 56px) }
#apartments #home-plans, #apartments #home-finder, main #home-finder { --cream: var(--ds-ink); --cream-2: var(--ds-ink-2); --cream-3: var(--ds-ink-3); --gold: var(--ds-indigo); --line: var(--ds-hairline); color-scheme: light }
#apartments .diar-tools .btn { background: var(--ds-indigo); color: #fff; border-color: transparent; border-radius: var(--ds-r-pill) }
#apartments .diar-tools .btn:hover { background: var(--ds-indigo-press) }
#payment.buyer-section { --buyer-bg: transparent; --buyer-panel: var(--ds-sheet-2); --buyer-ink: var(--ds-ink); --buyer-subtle: var(--ds-ink-2); --buyer-accent: var(--ds-indigo); --buyer-line: var(--ds-hairline); --buyer-input: #fff; color-scheme: light; background: var(--ds-sheet) }
#payment .buyer-button { color: #fff }
#payment .buyer-secondary { color: var(--ds-indigo) }
.home-timeline { --timeline-bg: transparent; --timeline-accent: var(--ds-indigo); --timeline-track: #c3c7d6; --timeline-muted: var(--ds-ink-2); --timeline-border: #b6bacb; --timeline-text: #262c45 }
#progress { color-scheme: light }

/* Dark content sits straight on the sky. */
#daynight, #interiors, #location, #features, #gallery, #contact, #tabletop, .home-footer { background: transparent; color: var(--ds-on-sky); --home-fg: var(--ds-on-sky); --home-muted: var(--ds-on-sky-2); --home-gold: var(--ds-amber) }
main > #location.buyer-section, main > #contact.buyer-section { background: transparent; --buyer-bg: var(--sky-deeper); --buyer-panel: rgb(10 14 36 / .4); --buyer-ink: #fff; --buyer-subtle: rgb(255 255 255 / .78); --buyer-accent: var(--ds-amber); --buyer-line: rgb(255 255 255 / .18); --buyer-input: rgb(255 255 255 / .07); color-scheme: dark }
:is(#location, #contact) .buyer-panel { -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), var(--ds-shadow-lg); border-color: rgb(255 255 255 / .12) }
:is(#location, #contact) .buyer-button { color: var(--ds-on-amber) }
#tabletop .home-pill.primary { margin-top: 10px }
#tabletop .home-eyebrow { display: none }
.home-footer { border-top: 1px solid var(--ds-sky-line) }


/* ---------- Floating assistant ---------- */
#home-floating-tools [data-assistant-launcher] { color: #fff; background: var(--ds-glass-strong); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); border: 0; box-shadow: inset 0 1px 0 var(--ds-glass-edge), var(--ds-shadow-sm) }

/* ---------- Responsive ---------- */
@media (max-width: 63.125em) {
  .home-links { display: none }
  .home-utilities { margin-inline-start: auto; min-width: 0 }
  .home-utilities .home-language, .home-menu-button { flex: none }
  .home-utilities .home-visit { white-space: normal; text-align: center; line-height: 1.15 }
  .home-utilities .home-sound, .home-utilities .home-ar-link { display: none }
  .home-menu-button { display: grid; place-items: center; padding: 0 }
  .home-menu-button[aria-expanded=true] { color: var(--ds-ink) }
  .home-menu-button[aria-expanded=true]::before { background: #fff }
  .home-mobile-nav { display: grid; position: absolute; top: calc(100% + 4px); inset-inline-end: var(--home-gutter); width: min(340px, calc(100% - var(--home-gutter) * 2)); border-radius: var(--ds-r-md); max-height: calc(100svh - 100% - 12px); overflow: auto; padding: 8px }
}
@media (min-width: 63.1875em) and (max-width: 1300px) {
  .home-utilities .home-ar-link { display: none }
  .home-links a { padding-inline: 6px; font-size: 13.5px }
  .home-bar { gap: 8px; padding-inline: 16px 6px }
  .home-utilities .home-visit { padding-inline: 14px }
}
@media (max-width: 650px) {
  :root { --mast-h: 64px }
  .home-bar { min-height: 52px; padding-inline: 16px 6px; gap: 6px }
  .home-mast .home-brand img { width: 58px; height: 33px }
  .sky-hero-inner { padding-block: calc(var(--mast-h) + 30px) 16px }
  .home-hero-copy { padding-bottom: 28px }
  .hero-display, html[lang=en] .hero-display { font-size: clamp(46px, 13vw, 64px); line-height: 1.08 }
  .home-intro { font-size: 17px }

  .hero-scroll { display: none }
}
@media (max-width: 520px) {
  .sky-cta { width: 100%; flex-direction: column }
  .sky-cta .home-hero-actions, .sky-cta .home-pill { width: 100% }
}
@media (max-width: 390px) {
  .home-utilities .home-visit { padding-inline: 14px }
  .home-pill.primary { padding-inline: 22px }
}
@media (max-width: 350px) {
  .home-bar { padding-inline-start: 8px; gap: 3px }
  .home-utilities .home-language { padding-inline: 4px }
}
@media (max-width: 300px) {
  .home-bar { width: calc(100% - 16px); gap: 3px }
  .home-utilities .home-visit { padding-inline: 9px }
}
@media (prefers-reduced-transparency: reduce) {
  .home-bar, .home-mobile-nav, .home-pill.quiet, .home-film-pause { background: var(--sky-deeper); -webkit-backdrop-filter: none; backdrop-filter: none }
}

/* ---------- Explorer: the model sits in a dark display slab ---------- */
#daynight .exterior-heading p { color: var(--ds-on-sky-2) }
@media (min-width: 651px) { html:not(.exploring) #daynight diar-building-viewer { width: min(1580px, calc(100% - 2 * clamp(8px, 1.6vw, 26px))); height: calc(100svh - var(--mast-h) - 20px); margin-inline: auto; border-radius: var(--ds-r-lg); overflow: hidden; box-shadow: var(--ds-shadow-lg), 0 0 0 1px rgb(255 255 255 / .08) } }

/* ---------- Controls on the sky: clear outlines, glass fills ---------- */
:is(#location, #contact) .buyer-secondary { color: #fff; border-color: rgb(255 255 255 / .42); background: rgb(255 255 255 / .06) }
:is(#location, #contact) .buyer-secondary:hover { background: rgb(255 255 255 / .14) }
:is(#features, #gallery, #interiors) :is(.project-circle, .project-text-button, .project-play, .home-room-controls button) { color: #fff; border: 1px solid rgb(255 255 255 / .42); background: rgb(255 255 255 / .06) }
:is(#features, #gallery, #interiors) :is(.project-circle:hover:enabled, .project-text-button:hover, .project-play:hover, .home-room-controls button:hover) { background: rgb(255 255 255 / .16) }
:is(#features, #gallery, #interiors, #location, #contact, #tabletop) :is(p, .project-intro) { color: var(--ds-on-sky-2) }
#tabletop .home-section-title, #tabletop h2 { color: #fff }
#progress :is(.project-text-button) { color: var(--ds-ink); border: 1px solid rgb(29 25 21 / .3); background: transparent }
:is(#features, #gallery, #progress) .project-text-button { border-radius: 999px }
/* The film control sits on the still bottom row, not on the moving plate. */
.hero-foot .home-film-pause { position: absolute; inset-inline-end: 0 }
.hero-foot { position: relative }
/* Floor-and-wing table: the first way to choose, in the sheet's own inks. */
#apartments [data-wing-table] thead :is(tr, th) { background: var(--ds-indigo); color: #fff }
#apartments [data-wing-directory] > summary { background: var(--ds-sheet-2); border-color: var(--ds-hairline); color: var(--ds-ink) }

/* ---------- Touch targets: every control is at least 44px ---------- */
.home-brand { min-height: 44px }
.hero-scroll { width: 44px; box-shadow: none; position: relative }
.hero-scroll::before { content: ""; position: absolute; inset: 0 8px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); transition: box-shadow var(--ds-dur) var(--ds-ease) }
.hero-scroll:hover::before { box-shadow: inset 0 0 0 1.5px #fff }
.hero-scroll span { position: relative }
#apartments .diar-tools .btn, .project-play, .project-text-button { min-height: 44px }
.buyer-near li span { display: inline-flex; align-items: center; min-height: 44px }
.buyer-map-credit { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px }
.buyer-near li { padding-block: 0 } .buyer-near li:first-child { padding-top: 0 }

/* ---------- Polish pass (30 Nov): one material family, no old greens ---------- */
/* The masthead stays legible over light sheets once the page scrolls. */
.home-mast.scrolled .home-bar { background: rgb(22 19 16 / .84) }
/* Actions on dark ground are white everywhere; sand stays an accent only. */
main > #location.buyer-section, main > #contact.buyer-section { --buyer-accent: #fff }
/* Media frames share one corner family and warm graphite scrims. */
.home-room-stage, .project-reel-stage { border-radius: var(--ds-r-lg) }
.project-feature { border-radius: var(--ds-r-md); overflow: hidden; isolation: isolate }
.buyer-map { border-radius: var(--ds-r-md); border-color: rgb(255 255 255 / .12); box-shadow: var(--ds-shadow-lg) }
.home-ar-grid img { border-radius: var(--ds-r-lg) }
.project-feature::after { background: linear-gradient(0deg, rgb(17 15 12 / .92), transparent 64%) }
.home-room-stage::after { background: linear-gradient(to top, rgb(17 15 12 / .86), transparent 62%) }
/* Visit calendar and clock in warm ink. */
.visit-calendar, .visit-clock { --cal-ink: #1d1915 }
.clock-parts button[aria-selected=true] { border-block-end-color: #1d1915 }
:is(.clock-values button[aria-pressed=true], .visit-calendar td[aria-selected=true] button) { background: #1d1915; color: #fff }
:is(.clock-values button:hover:not([aria-pressed=true]), .clock-bands button:hover:not([aria-pressed=true]), .visit-calendar button:enabled:hover, .visit-calendar button:enabled:active) { background: #ebe6dd; color: #1d1915 }
.buyer-section :is(.visit-clock, .visit-calendar) button:focus-visible { outline-color: #1d1915 }

/* ---------- Behaviour: light, depth and response ---------- */
/* Image cards answer the pointer with a soft light and a slow push-in. */
.project-feature > :is(img, video, picture), .home-room-stage > :is(img, video) { transition: scale 900ms var(--ds-ease) }
@media (hover: hover) and (pointer: fine) {
  .project-feature:hover > :is(img, video, picture) { scale: 1.04 }
  .project-feature::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 400ms var(--ds-ease);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 240 215 / .16), transparent 60%) }
  .project-feature:hover::before { opacity: 1 }
}
/* The estimate settles into its new value instead of snapping. */
.buyer-estimate strong.tick { animation: tick 520ms var(--ds-ease) }
@keyframes tick { from { opacity: .35; translate: 0 8px; filter: blur(3px) } }
@media (prefers-reduced-motion: reduce) { .buyer-estimate strong.tick { animation: none } }
.home-brand { min-width: 44px; justify-content: center }
.project-update { border-radius: var(--ds-r-md); overflow: hidden; isolation: isolate }

/* «تعرّف على ديار» (1 Dec): drawn chevrons in frosted circles, and the rail
   can be dragged with a mouse like a swipe. */
#features .project-arrow { width: 48px; height: 48px; min-width: 48px; padding: 0; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .08); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14) }
#features .project-arrow:hover:enabled { background: #fff; color: var(--ds-ink); border-color: #fff }
#features .project-arrow:disabled { opacity: .3 }
.project-chevron { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
@media (pointer: fine) { .project-feature-rail { cursor: grab } }
.project-feature-rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none }
.project-feature-rail.dragging .project-feature { pointer-events: none }
.project-feature img { -webkit-user-drag: none }
@media (prefers-reduced-motion: no-preference) {
  #features .project-arrow { transition: background-color 220ms var(--ds-ease), color 220ms var(--ds-ease), transform 140ms var(--ds-ease) }
  #features .project-arrow:active:enabled { transform: scale(.94) }
}

/* Section entrances (owner, 1 Dec): as each section arrives its parts rise in
   one after another; cards and clip thumbnails slide in from the reading end.
   The hero, the explorer and the construction stages have their own motion. */
@media (prefers-reduced-motion: no-preference) {
  main > section:not(#home, #daynight, #progress).section-arrived > .home-wrap > :not(.home-room-stage, dialog) {
    animation: section-part 1s var(--ds-ease) backwards;
  }
  main > section.section-arrived > .home-wrap > :nth-child(2) { animation-delay: 120ms }
  main > section.section-arrived > .home-wrap > :nth-child(3) { animation-delay: 240ms }
  main > section.section-arrived > .home-wrap > :nth-child(n+4) { animation-delay: 360ms }
  :is(#features, #gallery).section-arrived > .home-wrap.project-heading { animation: section-part 1s var(--ds-ease) backwards }
  #features.section-arrived .project-feature:nth-child(-n+4),
  #gallery.section-arrived .project-thumb {
    --from: -64px;
    animation: section-card 1.1s var(--ds-ease) backwards;
    animation-delay: calc(200ms + var(--k, 0) * 130ms);
  }
  html[dir=ltr] :is(#features, #gallery).section-arrived :is(.project-feature, .project-thumb) { --from: 64px }
  :is(.project-feature, .project-thumb):nth-child(2) { --k: 1 }
  :is(.project-feature, .project-thumb):nth-child(3) { --k: 2 }
  :is(.project-feature, .project-thumb):nth-child(n+4) { --k: 3 }
  @keyframes section-part { from { opacity: 0; translate: 0 36px } }
  @keyframes section-card { from { opacity: 0; translate: var(--from) 0; scale: .94 } }
}

/* Hero (owner, 1 Dec): the sunset facade film plays at every hour. The copy
   sits low and to the side so the building itself carries the first view. */
.home-hero-media::after { background: linear-gradient(180deg, rgb(10 9 7 / .4) 0%, transparent 14%, transparent 56%, rgb(17 15 12 / .5) 76%, rgb(17 15 12 / .9) 93%, var(--sky-deeper) 100%) }
@media (min-width: 1011px) {
  .home-hero-copy { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title cta" "intro price"; column-gap: 48px; justify-items: start; align-items: end; text-align: start; padding-bottom: clamp(14px, 3vh, 34px) }
  .home-hero-copy .hero-display { grid-area: title; margin: 0; font-size: clamp(56px, 6vw, 88px) }
  .home-hero-copy .home-intro { grid-area: intro; margin-top: 10px; max-width: 36ch; text-wrap: pretty }
  .home-hero-copy .sky-cta { grid-area: cta; justify-self: end; margin: 0 0 12px }
  .home-hero-copy .home-starting-price { grid-area: price; justify-self: end; align-self: start; margin-top: 10px }
}
/* Phones: a shorter frame keeps more of the building in view above the copy. */
@media (max-width: 650px) and (orientation: portrait) {
  .home-hero-media { inset: 0 0 auto 0; height: 60svh }
  .home-film { object-position: 57% 50% }
  .sky-hero { background: var(--sky-deeper) }
  .home-hero-media::after { background: linear-gradient(180deg, rgb(10 9 7 / .45) 0%, transparent 18%, transparent 60%, rgb(17 15 12 / .7) 86%, var(--sky-deeper) 100%) }
}
