@font-face {
  font-family: "Diar Home Display";
  src: url("./thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5f2e9;
  --ink: #202b23;
  --olive: #42583f;
  --stone-line: #d2d2c3;
  --home-bg: #18231d;
  --home-fg: #faf7ee;
  --home-gold: #dfd4b8;
  --home-muted: #c8cbbf;
  --home-gutter: clamp(16px, 4.3vw, 80px);
  --home-display: "Diar Home Display", "Diar Thmanyah Display", Georgia, serif;
  --section-inset: 78px;
  scroll-padding-block-start: var(--section-inset);
}
* { box-sizing: border-box }
body { margin: 0; color: var(--home-fg); background: var(--paper); font-family: "Diar Thmanyah", Tahoma, sans-serif }
[hidden] { display: none !important }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #8b763b; outline-offset: 3px }
.home-wrap, .home-bar, .home-mobile-nav, .home-footer { width: min(1480px, calc(100% - 2 * var(--home-gutter))); margin-inline: auto }
.home-section, .home-ar-grid { padding-block: clamp(52px, 6.6vw, 110px) }
.home-section-title { font: 700 clamp(32px, 4vw, 62px)/1.2 var(--home-display); margin: 0 0 20px }
html[lang=en] { --home-display: Georgia, "Times New Roman", serif }
html[lang=en] .home-section-title { font-weight: 400; letter-spacing: -.045em }
.home-skip { position: fixed; z-index: 30; top: 8px; inset-inline-start: var(--home-gutter); padding: 10px 18px; background: var(--paper); color: var(--ink); transform: translateY(-160%) }
.home-skip:focus { transform: none }


#daynight { position: relative; background: #263329; color: var(--home-fg) }
.exterior-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-block: clamp(24px, 3.2vw, 52px) clamp(18px, 2.3vw, 35px) }
.exterior-heading .home-section-title { margin: 0; font-size: clamp(27px, 3vw, 46px) }
.exterior-heading p { margin: 0; color: #d4d8cb; font-size: clamp(15px, 1.2vw, 18px) }
.facade-touch-hint, .facade-keyboard-hint { display: none }
@media (hover: none) {
  .facade-touch-hint { display: inline }
  .facade-mouse-hint { display: none }
}
#daynight:has(diar-building-viewer[data-inspect-input="keyboard"]) .facade-keyboard-hint,
#daynight:has(diar-building-viewer[data-inspect-input="touch"]) .facade-touch-hint,
#daynight:has(diar-building-viewer[data-inspect-input="mouse"]) .facade-mouse-hint { display: inline }
#daynight:has(diar-building-viewer[data-inspect-input="keyboard"]) :is(.facade-mouse-hint, .facade-touch-hint),
#daynight:has(diar-building-viewer[data-inspect-input="touch"]) .facade-mouse-hint,
#daynight:has(diar-building-viewer[data-inspect-input="mouse"]) .facade-touch-hint { display: none }
diar-building-viewer { display: block; width: 100%; height: 100svh; min-height: 360px }
html:not(.exploring) #daynight diar-building-viewer { height: calc(100svh - var(--section-inset)); min-height: 310px }
@media (max-width: 600px) {
  html:not(.exploring) #daynight { display: flex; flex-direction: column; max-height: calc(100svh - var(--section-inset)) }
  .exterior-heading { flex: none; padding-block: 17px 12px }
  /* The photo is 4:3. Reserve only its fitted height and the two tool rows. */
  html:not(.exploring) #daynight diar-building-viewer {
    height: calc(75vw + 168px + env(safe-area-inset-bottom, 0px)); min-height: 270px;
  }
}
@media (min-width: 560px) and (max-width: 960px) and (max-height: 500px) {
  html:not(.exploring) #daynight { display: flex; flex-direction: column; height: calc(100svh - var(--section-inset)) }
  .exterior-heading { flex: none; padding-block: 6px; gap: 2px 16px }
  html:not(.exploring) #daynight diar-building-viewer { flex: 1; min-height: 154px }
  #home-floating-tools [data-assistant-launcher] { display:none }
  body:has([data-assistant-launcher]) .home-assistant-entry { display:flex }
}
.explorer-site-back {display:none}
.exploring .home-only {display:none!important}
.exploring {scroll-padding:0}
.exploring #daynight {height:100svh;min-height:0;display:flex;flex-direction:column}
.exploring diar-building-viewer {flex:1 1 0;min-height:0}
.exploring .explorer-site-back {display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:46px;padding-inline:var(--home-gutter);background:#181714;border-bottom:1px solid #ffffff18;color:#e9e4da;font-size:14px}
.explorer-path {display:flex;align-items:center;gap:8px;list-style:none;margin:0;padding:0;min-width:0}
.explorer-path li,.explorer-path a,.explorer-return {display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.explorer-path li+li::before {content:"";width:5px;height:5px;border:solid #857d70;border-width:0 0 1px 1px;transform:rotate(45deg)}
.explorer-path a {min-height:44px;padding-inline:3px;color:#c9c2b5}
.explorer-path [aria-current] {color:#fff;font-weight:600}
.explorer-path a[href]:hover,.explorer-return:hover {color:white;text-decoration:underline;text-underline-offset:4px}
.explorer-site-back svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.explorer-return {min-height:44px;flex-shrink:0;color:var(--home-gold);font-weight:500}
.return-short {display:none}
@media (max-width:600px) {
  .exploring .explorer-site-back {font-size:13px;padding-inline:12px;gap:6px}
  .explorer-path,.explorer-path li {gap:5px}
  .explorer-path li:first-child a {min-width:28px;justify-content:center}
  .path-home-text {display:none}
}
@media (max-width:360px) {
  .exploring .explorer-site-back {font-size:12px;padding-inline:8px}
  .explorer-path {flex-wrap:wrap;column-gap:3px;row-gap:0}
  .explorer-path li {gap:3px}
  .explorer-return {gap:3px}
  .return-full {display:none}
  .return-short {display:inline}
}

html[lang=en] .explorer-return svg, html[lang=en] .explorer-path li+li::before { scale: -1 1 }

#apartments, #features, #progress, #tabletop { --home-fg: var(--ink); --home-muted: #596456; --home-gold: var(--olive); color: var(--ink); background: var(--paper) }
#apartments { border-block-start: 1px solid var(--stone-line); padding-block-start: clamp(28px, 3.5vw, 56px) }
#interiors, #gallery, .home-footer { background: var(--home-bg); color: var(--home-fg) }
#progress, #tabletop { background: #e7e9dc }
.home-room-caption p { max-width: 44ch; font-size: clamp(14px, 1.3vw, 18px); margin: 0 0 14px; color: #fbf5ea; text-shadow: 0 1px 5px #171613 }
.home-gallery-play { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px }
.home-ar-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 6vw, 100px) }
.home-ar-grid img { width: 100%; height: auto; display: block; border-radius: 3px; border-start-start-radius: clamp(28px, 4vw, 70px) }
.home-ar-grid h2 { margin-block: 12px }
.home-ar-grid p:not(.home-eyebrow) { max-width: 42ch; line-height: 1.65; color: #515d52 }
.home-ar-grid .home-pill { margin-top: 10px }
.home-footer { width: 100%; padding: 32px max(var(--home-gutter), calc((100% - 1480px)/2)) calc(76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: 14px }
.home-footer-brands { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px) }
.home-engineer-logo { display: block; object-fit: contain; border-inline-start: 1px solid var(--ds-sky-line); padding-inline-start: 18px; box-sizing: content-box }
.home-footer-meta { color: var(--home-muted); font-size: 13px; text-align: center }
.home-footer-meta p { margin: 4px 0 }
.home-studio-credit { display: inline-block; max-width: 100%; min-height: 44px; padding-block: 10px; line-height: 1.6; overflow-wrap: anywhere; color: var(--ds-on-sky-2) }
.home-studio-credit strong { font-weight: 600; color: #e5c56f }
.home-studio-credit:is(:hover, :focus-visible) strong { text-decoration: underline; text-underline-offset: .23em }
.home-back-top { display: inline-flex; align-items: center; justify-self: end; min-height: 44px }
body:has([data-compare-dock]) .home-footer { padding-bottom: calc(76px + 5.5rem + env(safe-area-inset-bottom)) }

@media (max-width: 800px) {
  :root { --section-inset: 64px }
  .home-ar-grid { grid-template-columns: 1fr 1fr }
  .home-footer { grid-template-columns: 1fr auto; row-gap: 16px }
  .home-footer-meta { grid-column: 1 / -1; grid-row: 2 }
}
@media (max-width: 650px) {
  #home-floating-tools [data-assistant-launcher] { display:none }
  body:has([data-assistant-launcher]) .home-assistant-entry { display:flex }
  .home-ar-grid { grid-template-columns: 1fr; gap: 23px }
  .home-ar-grid img { max-height: 320px; object-fit: cover }
  .home-footer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-block: 26px calc(24px + env(safe-area-inset-bottom)) }
  .home-back-top { justify-self: center }
}
@media (max-width: 300px) {
  .home-menu-extra { flex-wrap: wrap }
}
@media (pointer: coarse) {
  .home-only :is(a,button,summary), .explorer-return { touch-action: manipulation }
  .home-only .home-swipe-knob { touch-action: pan-y pinch-zoom }
}
@media (prefers-reduced-motion: no-preference) {
  html.home-section-journey:not(.exploring) { scroll-behavior: smooth }
  .section-arrived .home-section-title {
    animation: home-heading-enter .48s cubic-bezier(.16,1,.3,1) backwards;
  }
  @keyframes home-heading-enter { from {opacity:.5; translate:0 .35em} }
  .section-arrived:is(#interiors,#gallery) :is(.home-room-stage,.project-reel-stage),
  #tabletop.section-arrived .home-ar-grid > img {
    animation: home-image-enter .66s cubic-bezier(.22,.8,.25,1) backwards;
  }
  @keyframes home-image-enter { from {opacity:.72; clip-path:inset(0 0 4% 0)} to {clip-path:inset(0)} }
}
