/* Premium architectural refinement: stable layout, authentic imagery, calm motion. */
.eyebrow::before { flex: 0 0 28px; }
.brand-link,
.brand-link img {
  animation: none !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
}
.header-phone--mobile { display: none; }
.header-phone--mobile svg { width: 18px; height: 18px; }
.primary-nav a { position: relative; padding-block: 12px; }
.primary-nav a::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 5px;
  height: 1px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
.fallback-nav { display: none; }

.hero__media img { filter: contrast(1.03) saturate(.96); }
.hero.is-outside-viewport .hero__media img,
html.is-background .hero__media img { animation-play-state: paused; }
html[dir="rtl"] .hero::before {
  background: linear-gradient(270deg,rgba(21,21,19,.78) 0%,rgba(21,21,19,.57) 42%,rgba(21,21,19,.35) 100%),linear-gradient(180deg,rgba(21,21,19,.38),transparent 24%,transparent 68%,rgba(21,21,19,.72));
}
.scroll-cue svg { animation: none; transition: transform .4s var(--ease); }
.scroll-cue:hover svg { transform: translateY(3px); }
html.motion-ready .line-mask[data-reveal="line-mask"] > :is(span,em) {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .7s var(--ease);
  transition-delay: calc(var(--stagger-index,0) * 90ms);
}
html.motion-ready .line-mask.is-visible > :is(span,em) { transform: none; }
html.motion-ready [data-reveal="fade-up"] { transform: translateY(18px); }
html.motion-ready [data-reveal="fade-up"].is-visible,
html.motion-ready .hero__actions[data-reveal],
html.motion-ready [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.stat-number { font-variant-numeric: tabular-nums; }
.services-stack { gap: 22px; padding-bottom: 0; }
.service-card {
  min-height: 340px;
  border-color: rgba(255,255,255,.12);
  border-radius: 14px;
  padding: clamp(26px,3.3vw,40px);
  box-shadow: 0 18px 50px rgba(0,0,0,.15);
  transition: border-color .4s ease,box-shadow .4s ease;
}
.service-card:hover,
.service-card:focus-within {
  border-color: rgba(224,162,27,.42);
  box-shadow: 0 20px 46px rgba(0,0,0,.2);
}

/* Native photo rail avoids a long pinned scroll and works without JavaScript. */
.projects-scroll { height: auto !important; }
.projects-stage {
  position: relative;
  top: auto;
  display: block;
  height: auto;
  overflow: visible;
  padding-block: 4px 12px;
}
.projects-track {
  width: 100%;
  overflow-x: auto;
  padding: 4px max(var(--pad),calc((100vw - var(--max))/2)) 18px;
  scroll-padding-inline: max(var(--pad),calc((100vw - var(--max))/2));
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(224,162,27,.6) rgba(255,255,255,.1);
  scroll-snap-type: none;
  will-change: auto;
  transform: none !important;
}
.project-card { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.project-card__media { margin: 0; }
.projects-controls { display: flex; gap: 10px; align-items: center; }
.projects-counter {
  min-width: 68px;
  direction: ltr;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.gallery-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: color .3s ease,background .3s ease,border-color .3s ease;
}
html.interactive-ready .gallery-button { display: inline-grid; }
.gallery-button svg { width: 20px; height: 20px; }
.gallery-button:not(:disabled):hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.gallery-button:disabled { opacity: .35; cursor: default; }
html[dir="rtl"] .gallery-button svg { transform: scaleX(-1); }
.process-line-fill {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--process-progress,0));
  transform-origin: top;
}
.whatsapp-float::before { inset: -4px; border-color: rgba(32,199,121,.35); animation: none; }
@media (hover:hover) {
  .project-card:hover .project-card__media img { --photo-zoom: 1.08; }
  .about-card:hover { transform: none; box-shadow: 0 28px 62px rgba(21,21,19,.2); }
}

/* A missing module must never hide answers, photographs or direct contact paths. */
html:not(.interactive-ready) .faq-answer { grid-template-rows: 1fr; }
html:not(.interactive-ready) .faq-plus { display: none; }
html:not(.interactive-ready) #form-submit { display: none; }
html:not(.interactive-ready) .review-stars__fill { width: 88%; }
.privacy-note a { text-decoration: underline; text-underline-offset: 3px; }
html[dir="rtl"] :is(.eyebrow,.hero-project-note__label,.hero-project-note strong,.hero-rating strong,.project-caption h3,.service-card__index,.contact-office h3,.footer-col h3,.process-step__index) {
  font-family: Cairo,Arial,sans-serif;
  letter-spacing: 0;
}

@media (max-width: 1180px) { .hero-project-note { display: none; } }
@media (max-width: 900px) {
  .header-phone--mobile { display: inline-flex; }
  html:not(.interactive-ready) .menu-toggle { visibility: hidden; pointer-events: none; }
  html:not(.interactive-ready) .fallback-nav {
    position: fixed;
    z-index: 98;
    inset: calc(var(--nav-height) + 3px) 0 auto;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 22px;
    color: var(--white);
    background: var(--ink);
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (max-width: 800px) {
  .projects-track { gap: 14px; padding-inline: var(--pad); padding-bottom: 12px; scroll-padding-inline: var(--pad); }
}
@media (max-width: 640px) {
  .service-card { min-height: 300px; padding: 26px; }
  html[dir="rtl"] .hero::before { background: linear-gradient(270deg,rgba(21,21,19,.76),rgba(21,21,19,.55)),linear-gradient(180deg,rgba(21,21,19,.36),transparent 25%,rgba(21,21,19,.34) 62%,rgba(21,21,19,.82)); }
  html.motion-ready .hero .line-mask[data-reveal="line-mask"] > :is(span,em) { transform: none; transition: none; }
  .projects-controls { gap: 7px; }
}
@media (max-width: 360px) {
  .brand-link img { width: 118px; }
  .header-actions { gap: 6px; }
  .menu-toggle,.header-phone--mobile { width: 40px; height: 40px; }
}

/* Live preference changes disable every decorative motion without hiding content. */
html.reduced-motion *,html.reduced-motion *::before,html.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.reduced-motion .hero__media,
html.reduced-motion .hero__media img,
html.reduced-motion .project-card__media img,
html.reduced-motion .process-line-fill,
html.reduced-motion .line-mask > :is(span,em) { transform: none !important; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero__media,.hero__media img,.process-line-fill { animation: none !important; transform: none !important; will-change: auto; }
  .projects-track { scroll-snap-type: none; }
}

/* Scroll choreography: compositor-only motion; never target branding or layout boxes. */
.projects-track { overflow-y: hidden; }
html.motion-ready .service-card[data-reveal] {
  transition: opacity .85s var(--ease), transform .85s var(--ease), border-color .4s ease, box-shadow .4s ease;
  transition-delay: calc(min(var(--stagger-index,0),3) * 85ms);
}
html.motion-ready .section [data-reveal="fade-up"]:not(.is-visible):not(:focus-within) { transform: translateY(26px); }
html.scroll-motion-ready [data-scroll-motion]:not(.is-scroll-visible):not(:focus-within) {
  opacity: 0;
  transform: translate3d(0,26px,0);
}
html.scroll-motion-ready [data-scroll-motion]:focus-within {
  opacity: 1 !important;
  transform: none !important;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.scroll-motion-ready:not(.reduced-motion) .section h2 {
      animation: section-title-entry 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes section-title-entry {
  from { opacity: .65; transform: translate3d(0,28px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
html.reduced-motion [data-scroll-motion] {
  opacity: 1 !important;
  transform: none !important;
}
html.scroll-motion-ready .reveal:not(.in):not(:focus-within) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d,0ms);
}
html.scroll-motion-ready .reveal.in,
html.scroll-motion-ready .reveal:focus-within {
  opacity: 1;
  transform: none;
}
html.reduced-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-scroll-motion] { opacity: 1 !important; transform: none !important; }
}


/* Single responsive primary navigation: open in place, no mirrored link lists. */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    z-index: 99;
    inset: calc(var(--nav-height) + 3px) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 14px var(--pad) calc(96px + env(safe-area-inset-bottom));
    color: var(--white);
    background: rgba(21,21,19,.985);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .28s var(--ease),transform .28s var(--ease),visibility .28s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .primary-nav a {
    border-bottom: 1px solid rgba(255,255,255,.13);
    padding: 15px 0;
    color: var(--white);
    font: 600 clamp(1.45rem,7vw,2.2rem)/1.2 Sora,Inter,sans-serif;
  }
  .primary-nav a::after { display: none; }
  .primary-nav.is-open a { animation: menu-link-in .4s var(--ease) both; }
  .primary-nav.is-open a:nth-child(2) { animation-delay: 45ms; }
  .primary-nav.is-open a:nth-child(3) { animation-delay: 90ms; }
  .primary-nav.is-open a:nth-child(4) { animation-delay: 135ms; }
  .primary-nav.is-open a:nth-child(5) { animation-delay: 180ms; }
  html[dir="rtl"] .primary-nav a { font-family: Cairo,Sora,sans-serif; }

  /* With scripts unavailable, keep the same one nav visible as a scrollable row. */
  html:not(.interactive-ready) .primary-nav {
    inset-block-end: auto;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 11px var(--pad);
    background: var(--ink);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  html:not(.interactive-ready) .primary-nav a {
    flex: 0 0 auto;
    border: 0;
    padding: 3px 0;
    font-size: 12px;
  }
  html:not(.interactive-ready) .menu-toggle { visibility: hidden; pointer-events: none; }
}

html[dir="rtl"] .review-stars { direction: rtl; }
.review-stars::before {
  display: inline-block;
  content: "★★★★★";
  color: transparent;
  background: linear-gradient(90deg,var(--amber-dark) 0 88%,rgba(21,21,19,.2) 88% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}
html[dir="rtl"] .review-stars::before {
  background-image: linear-gradient(270deg,var(--amber-dark) 0 88%,rgba(21,21,19,.2) 88% 100%);
}

.map-link {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-color .2s ease,color .2s ease,background .2s ease;
}
.map-link:hover,.map-link:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(224,162,27,.06);
}
.contact-map .map-link { margin: 9px 12px 11px; }
.footer-map-link { margin-top: 10px; }

.footer-main { grid-template-columns: minmax(200px,.85fr) minmax(280px,1.15fr) minmax(250px,1fr); }
.footer-hours-note { display: none; }
[data-extra-project][hidden] { display: none !important; }
.project-caption p { text-wrap: pretty; }
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  inset-inline-start: -10000px !important;
}

@media (max-width: 1120px) {
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-map .map-link { margin: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav,.primary-nav a,.review-stars::before,.map-link { transition: none !important; animation: none !important; }
}

/* Complete construction photos, gently drifting within unchanged card frames. */
.project-card__media { background: #20211e; }
.project-card__media img {
  display: block;
  width: 100%;
  height: calc(100% - 28px);
  margin-block: 14px;
  object-fit: contain;
  object-position: center;
  transform: translate3d(0,var(--project-drift,0px),0);
  transition: none;
}
.project-card__media::after { display: none; }
.project-tag {
  inset: auto;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  max-width: calc(100% - 24px);
  border-color: rgba(255,255,255,.36);
  padding: 8px 12px;
  color: #fff;
  background: #171815;
  box-shadow: 0 3px 14px rgba(0,0,0,.25);
  font-size: clamp(11px,.85vw,12px);
  line-height: 1.45;
  letter-spacing: .025em;
  text-transform: none;
  overflow-wrap: anywhere;
}
html[dir="rtl"] .project-tag { inset-inline-start: 12px; inset-inline-end: auto; font-family: Cairo,Arial,sans-serif; letter-spacing: 0; }
.project-caption { align-items: flex-start; gap: 14px; }
.project-caption > div { min-width: 0; }
.project-caption h3 { text-wrap: balance; }
.project-caption p { color: #cbd0c5; font-size: 12px; line-height: 1.6; }
.project-number { flex-shrink: 0; }

/* The hero retains its layout/overlays but no longer crops or zooms the real photo. */
.hero__media { inset: 0; background: #20211e; transform: none !important; will-change: auto; }
.hero__media img { object-fit: contain; object-position: center; animation: none; transform: none !important; filter: none; }
.hero-project-note { background: #171815; }
.hero-project-note__detail,.hero-rating small { color: #dde0d5; }
.hero-rating { background: #171815; }
.hero .btn--outline-light { background: rgba(21,21,19,.9); }
.hero__license { padding: 5px 9px; border-radius: 5px; background: #171815; color: #e7e9e0; }

@media (max-width: 640px) {
  .project-tag { padding: 7px 10px; }
  .project-caption h3 { font-size: 16px; line-height: 1.4; }
  .hero-project-note__label { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card__media img { transform: none !important; transition: none !important; will-change: auto !important; }
}

@media (max-width: 900px) {
  /* Initial enhancement must not animate the fallback row into the hidden panel. */
  .primary-nav[aria-hidden="true"] { transition: none; }
}
