:root {
  --brown: #2B1D18;
  --gold: #C6A274;
  --gold-deep: #7F6136; /* gold dark enough for AA text on paper */
  --paper: #F7F5F1;
  --taupe: #5E524C;
  --line: #DDD5CB;
  --white: #FFFFFF;
  --radius: 14px;
  --header-h: 72px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="en"] { --display: "Cormorant Garamond", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--taupe);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--brown); line-height: 1.25; margin: 0 0 .5em; font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-family: var(--font); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { color: var(--gold-deep); font-weight: 600; font-size: .9rem; letter-spacing: .04em; margin-bottom: .6em; }
.muted { color: #6E625B; font-size: .92rem; }
.tri { position: relative; padding-inline-start: 1.4em; }
.tri::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  border-inline: .38em solid transparent; border-bottom: .62em solid var(--gold);
}
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px;
  padding: .7em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.3em; height: 1.3em; fill: currentColor; }
.btn-primary { background: var(--brown); color: var(--paper); }
.btn-primary:hover { background: #45302a; }
.btn-ghost { border-color: var(--line); color: var(--brown); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--brown); font-weight: 500; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.lang-btn {
  min-width: 52px; min-height: 40px; border: 1px solid var(--brown); border-radius: 999px;
  background: none; color: var(--brown); font: 600 .9rem var(--font); cursor: pointer;
}
.lang-btn:hover { background: var(--brown); color: var(--paper); }

/* Header quote button */
.header-quote { min-height: 40px; padding: .35em 1.1em; font-size: .9rem; }

/* Service catalogue: interlocking diamonds (positions set in JS: 3-4-3 wide, 1-2-1… on phones) */
.svc-section { text-align: center; }
.svc-grid {
  --cols: 8; --rows: 4;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr);
  aspect-ratio: var(--cols) / var(--rows); max-width: 920px; margin: 40px auto 0;
}
.svc {
  clip-path: polygon(50% 1.5%, 98.5% 50%, 50% 98.5%, 1.5% 50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20%; text-align: center; text-decoration: none;
  background: var(--brown); color: var(--paper); transition: background .25s, color .25s;
}
.svc { border: 0; font: inherit; cursor: pointer; }
.svc:nth-child(even) { background: #3A2820; }
.svc:hover, .svc:focus-visible { background: var(--gold); color: var(--brown); outline: none; }
.svc-mark { width: 0; height: 0; border-inline: 7px solid transparent; border-bottom: 11px solid var(--gold); }
.svc-name { font-weight: 600; font-size: clamp(.78rem, 1.45vw, 1.02rem); line-height: 1.35; }
.svc-cta { font-size: .78rem; color: var(--gold); }
.svc:hover .svc-mark, .svc:focus-visible .svc-mark { border-bottom-color: var(--brown); }
.svc:hover .svc-cta, .svc:focus-visible .svc-cta { color: var(--brown); }
.quote-cta { margin-top: 36px; }
.btn-quote {
  min-height: 60px; padding: .8em 2.4em; font-size: 1.2rem; font-weight: 700;
  background: var(--gold); color: var(--brown); box-shadow: 0 12px 24px -12px rgb(43 29 24 / .45);
}
.btn-quote:hover { background: #D6B98F; }

/* Hero (first screen, contact first) */
.hero {
  position: relative; overflow: hidden; color: color-mix(in srgb, var(--paper) 82%, transparent);
  background-color: var(--brown);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgb(198 162 116 / .16), transparent 70%),
    linear-gradient(rgb(198 162 116 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(198 162 116 / .07) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  padding: clamp(56px, 9vw, 120px) 0 clamp(120px, 14vw, 180px);
}
/* site plan of the office's real streets, behind the diamonds; office sits in the visual's empty top corner */
.hero { isolation: isolate; }
.hero-map { position: absolute; z-index: -1; width: 280%; aspect-ratio: 1; left: calc(14% - 140%); top: calc(14% - 140%); pointer-events: none; }
.hero-map-img { width: 100%; height: 100%; opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 12%, rgb(0 0 0 / .45) 24%, transparent 40%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 12%, rgb(0 0 0 / .45) 24%, transparent 40%); }
/* office marker: same point as the map centre (map is 280% wide, so 2.8% of it = 7.84% of the visual) */
.office-spot { position: absolute; left: 14%; top: 14%; width: 7.84%; z-index: 4; }
.office-pin { position: absolute; left: 0; top: 0; width: 100%; display: block; }
.office-pin::before { content: ""; position: absolute; left: -22px; bottom: -10px; width: 44px; height: 54px; } /* 44px tap/hover target */
.office-pin:focus-visible { outline: none; }
.office-pin:focus-visible .office { stroke: var(--paper); }
/* satellite popup (hover/keyboard only; touch devices just follow the link) */
.office-pop {
  position: absolute; left: 18px; top: -30px; width: 280px; aspect-ratio: 4 / 3.3; z-index: 5; /* overlaps the 44px hit area so the pointer can cross onto it */
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; border: 1px solid var(--gold);
  background: var(--brown); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .6);
  opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .25s, translate .25s, visibility .25s;
}
.office-spot:hover .office-pop, .office-spot:focus-within .office-pop { opacity: 1; visibility: visible; translate: 0 0; }
.office-pop iframe { flex: 1; width: 100%; border: 0; display: block; background: #1b120f; }
.office-pop-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; font-size: .8rem; color: var(--paper); }
.office-pop-cap a { color: var(--gold); }
@media (hover: none) { .office-pop { display: none; } }
.office { position: absolute; left: 0; bottom: 0; width: 100%; translate: -50% 12%; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.office .office-fill { fill: var(--brown); stroke: none; }
.office-ring { position: absolute; left: 0; top: 0; width: 160%; aspect-ratio: 1; translate: -50% -50%; border: 1.5px solid var(--gold); border-radius: 50%; transform: scaleY(.5); animation: office-ring 2.8s ease-out infinite; }
@keyframes office-ring { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.8; } }
@media (prefers-reduced-motion: reduce) { .office-ring { animation: none; opacity: .5; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--paper); font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.12; margin-bottom: .35em; }
.hero h1 .accent { display: block; color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 32em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-gold { background: var(--gold); color: var(--brown); font-weight: 600; }
.btn-gold:hover { background: #D6B98F; }
.btn-light { border-color: rgb(247 245 241 / .28); color: var(--paper); background: transparent; }
.btn-light:hover { border-color: var(--gold); background: rgb(247 245 241 / .06); }

.hero-visual { position: relative; aspect-ratio: 1; width: min(460px, 100%); justify-self: center; }
.diamond, .diamond-frame { position: absolute; inset: 8%; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.diamond-frame { inset: 4%; translate: 5% 5%; background: var(--gold); opacity: .9; }
.diamond { background: #1b120f; }
.diamond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.diamond img.is-on { opacity: 1; }
/* small "Our services" diamond tucked under the photo diamond; jumps to the catalogue */
.hero-svc {
  position: absolute; left: -2%; bottom: -2%; width: 36%; aspect-ratio: 1; z-index: 2;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--paper); color: var(--brown); font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1.1rem); text-decoration: none;
  transition: background .25s;
}
.hero-svc:hover, .hero-svc:focus-visible { background: var(--gold); outline: none; }
.hero-svc-arrow { font-size: 1.1em; line-height: 1; transition: transform .25s; }
.hero-svc:hover .hero-svc-arrow { transform: translateY(3px); }
/* gold reviews diamond, opposite corner; quotes cross-fade (JS cycles .is-on) */
.hero-rev, .hero-rev-back { position: absolute; right: -4%; top: -4%; width: 44%; aspect-ratio: 1; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.hero-rev {
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 16%; background: var(--gold); color: var(--brown); text-decoration: none; text-align: center; transition: background .25s;
}
.hero-rev:hover, .hero-rev:focus-visible { background: #D6B98F; outline: none; }
.hero-rev-quotes { display: grid; width: 100%; font-size: clamp(.7rem, 1.1vw, .82rem); font-weight: 500; line-height: 1.25; }
.hero-rev-q { grid-area: 1 / 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: 0; transition: opacity .6s; }
.hero-rev-q q { quotes: "«" "»"; }
.hero-rev-stars { font-size: .78rem; letter-spacing: 1px; color: var(--brown); white-space: nowrap; }
.hero-rev-q.is-on { opacity: 1; }
.hero-rev-src { font-size: .72rem; font-weight: 600; letter-spacing: .04em; opacity: .85; white-space: nowrap; }
/* dark backdrop diamond: a bit larger than the gold one, centred behind it and nudged down-right like the photo's frame */
.hero-rev-back { z-index: 2; right: -5.5%; top: -5.5%; width: 47%; translate: 3% 3%; background: #1b120f; overflow: hidden; }
/* geometric lines that drift slowly and pulse softly */
.hero-rev-back::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgb(198 162 116 / .6) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgb(198 162 116 / .35) 0 1px, transparent 1px 12px);
  background-size: 34px 34px;
  animation: rev-lines 18s linear infinite, rev-pulse 3.2s ease-in-out infinite alternate;
}
@keyframes rev-lines { to { background-position: 34px 34px, -34px 34px; } }
@keyframes rev-pulse { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-rev-back::before { animation: none; opacity: .7; } }

/* tiny facade that draws itself line by line, holds, fades, and redraws */
.hero-svc-draw { width: 42%; fill: none; stroke: var(--brown); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-svc-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: svc-draw 5s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes svc-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  30% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-svc-draw path { animation: none; stroke-dashoffset: 0; } }
.contact-mark {
  position: absolute; inset-inline-start: -22%; bottom: -12%; width: 70%; z-index: -0;
  fill: none; stroke: var(--gold); stroke-width: .5; opacity: .6; pointer-events: none;
}

/* Form panel overlapping the hero */
.contact-panel { position: relative; margin-top: clamp(-120px, -10vw, -80px); padding-bottom: clamp(48px, 7vw, 96px); }
.contact-panel .card { max-width: 760px; margin-inline: auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form h2, .contact-form label:has(textarea), .contact-form label:has([type=email]), .contact-form .btn, .contact-form .form-status { grid-column: 1 / -1; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 20px 50px -30px rgb(43 29 24 / .35); }
.contact-form h2 { font-size: 1.4rem; font-family: var(--font); }
.contact-form label { display: block; margin-bottom: 14px; font-size: .9rem; color: var(--brown); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: 400 1rem var(--font); color: var(--brown); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-deep); background: var(--white); }
.contact-form [aria-invalid="true"] { border-color: #b4532a; }
.contact-form .btn { width: 100%; justify-content: center; }
@media (max-width: 560px) {
  .hero-map-img { opacity: .3; }
  .hero-rev { padding: 0 10%; }
  .hero-rev-stars { font-size: .7rem; letter-spacing: 0; } .contact-form { grid-template-columns: 1fr; } }
.hp { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.form-status { margin: 12px 0 0; font-size: .92rem; min-height: 1.5em; }
.form-status.ok { color: #3c6b3c; }
.form-status.err { color: #b4532a; }

/* Showcase band */
.showcase { position: relative; height: clamp(320px, 62vh, 640px); overflow: hidden; background: var(--brown); }
.showcase-slides { position: absolute; inset: 0; height: 118%; will-change: transform; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
/* slow push-in on the visible slide */
.slide.is-on img { animation: slide-zoom 7s ease-out both; }
@keyframes slide-zoom { from { scale: 1.06; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.is-on img { animation: none; } }
.slide figcaption { position: absolute; z-index: 2; inset-inline: 0; bottom: calc(18% + 20px); display: flex; justify-content: space-between; align-items: end; gap: 12px; color: var(--paper); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.slide-name { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }
.slide-count { font-size: .85rem; opacity: .85; letter-spacing: .08em; }
.showcase::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgb(20 13 10 / .8)); pointer-events: none; }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--brown); color: color-mix(in srgb, var(--paper) 80%, transparent); }
.section-dark h2 { color: var(--paper); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .muted { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 80px); }
.about-grid h3 { margin-top: 1.4em; }

/* Why us: a building facade, floor 01 (with the entrance) at the bottom */
.building { --stone: #E8DCC9; --stone-2: #E1D3BD; --slab: #C9B08A; --glass: #3A2A22; --lit: #F1C987;
  max-width: 860px; margin: 48px auto 0; display: flex; flex-direction: column; align-items: center; }
.floors { width: 100%; display: flex; flex-direction: column-reverse; }
.floor {
  display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); padding: 12px clamp(18px, 4vw, 40px);
  background: var(--stone); border-top: 6px solid var(--slab); color: var(--taupe);
}
.floor:nth-child(even) { background: var(--stone-2); }
.floor-text { flex: 1; display: flex; align-items: center; gap: 18px; }
.floor h3 { color: var(--brown); margin: 0 0 .15em; }
.floor p { margin: 0; font-size: .95rem; }
.floor .num { flex: none; width: 42px; height: 42px; margin: 0; display: grid; place-items: center; border: 1px solid #6B4F2A; border-radius: 50%; color: #6B4F2A; }
.windows { flex: none; display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 18px); }
.windows i {
  position: relative; width: clamp(24px, 3.4vw, 32px); aspect-ratio: 1 / 1.8; border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--lit), #D9A35E); box-shadow: inset 0 0 0 3px #CBB79A;
}
.windows i::after { content: ""; position: absolute; inset: 22% 50% 8%; border-inline-start: 1px solid rgb(203 183 154 / .6); }
.windows i.door { width: clamp(40px, 6vw, 56px); aspect-ratio: 1 / 1.5; }
.parapet {
  width: 100%; height: 22px;
  background: linear-gradient(90deg, var(--stone) 0 60%, transparent 60%) 0 0 / 40px 12px repeat-x,
              linear-gradient(var(--stone), var(--stone)) 0 12px / 100% 10px no-repeat;
}
.ground { width: 108%; max-width: calc(100vw - 32px); height: 3px; background: var(--brown); }
.num { display: block; font: 600 .85rem var(--font); color: var(--gold-deep); margin-bottom: 18px; }

/* Services: a route on a drawing sheet, start to handover */
.services-map {
  background-color: var(--paper);
  background-image: linear-gradient(rgb(43 29 24 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(43 29 24 / .045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.route-wrap { max-width: 900px; margin: 48px auto 0; text-align: center; }
.route-cap { display: inline-block; margin: 0; padding: 6px 18px; border: 1px dashed var(--brown); border-radius: 999px; color: var(--brown); font-weight: 600; background: var(--paper); }
.route-end { background: var(--brown); color: var(--paper); border-style: solid; }
.route { position: relative; list-style: none; margin: 0; padding: 28px 0; text-align: start; }
.route::before, .route::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(50% - 1px); width: 2px; }
.route::before { background: repeating-linear-gradient(var(--brown) 0 8px, transparent 8px 16px); opacity: .35; }
.route::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--route-p, 1)); }
.stop { position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; min-height: 112px; }
.node {
  grid-column: 2; z-index: 1; width: 48px; height: 48px; margin-inline: auto; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--brown); background: var(--paper); color: var(--brown); font-weight: 600; font-size: .9rem;
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.stop-card { grid-row: 1; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); transition: opacity .45s, transform .45s; }
.stop:nth-child(odd) .stop-card { grid-column: 1; margin-inline-end: 12px; }
.stop:nth-child(even) .stop-card { grid-column: 3; margin-inline-start: 12px; }
.stop-card h3 { margin: 0 0 .2em; }
.stop-card p { margin: 0; font-size: .92rem; }
/* motion only: stops wait until the route line reaches them */
.motion .stop:not(.is-reached) .node { background: var(--paper); }
.motion .stop:not(.is-reached) .stop-card { opacity: 0; transform: translateY(14px); }
.stop.is-reached .node, .no-motion .node { background: var(--brown); border-color: var(--gold); color: var(--gold); transform: scale(1.06); }

/* 3D */
.model-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.viewer {
  width: 100%; height: clamp(340px, 52vw, 560px); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 65%, #3d2c25 0%, #241813 70%);
  --poster-color: transparent; --progress-bar-color: var(--gold);
}
.ar-btn { position: absolute; bottom: 16px; inset-inline-start: 16px; background: var(--gold); color: var(--brown); }
.ar-btn:hover { background: #D6B98F; }

/* Projects */
.blueprint { position: relative; max-width: 560px; aspect-ratio: 400 / 260; margin: 0 auto clamp(40px, 7vw, 80px); }
.bp-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--brown); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.bp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; opacity: 0; }
.no-motion .bp-photo { opacity: 1; }
.no-motion .bp-svg { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.chip { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--brown); font: 500 .95rem var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--brown); color: var(--paper); border-color: var(--brown); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { all: unset; box-sizing: border-box; cursor: pointer; display: block; }
.project-card:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: var(--radius); }
.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-card:hover .pc-media img { transform: scale(1.04); }
.pc-count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgb(43 29 24 / .75); color: var(--paper); font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.pc-title { margin: 14px 0 0; font-size: 1.15rem; color: var(--brown); font-weight: 600; }
.pc-loc { font-size: .9rem; color: var(--gold-deep); }
.project-card[hidden] { display: none; }

/* Service details popup: the card starts as the clicked diamond and opens into a panel */
.svc-pop { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.svc-pop::backdrop { background: rgb(20 13 10 / .7); }
.svc-pop-card { position: fixed; overflow: auto; border-radius: var(--radius); background: var(--brown); color: color-mix(in srgb, var(--paper) 85%, transparent); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); }
.svc-pop-body { padding: 34px clamp(22px, 4vw, 40px) 30px; text-align: start; }
.svc-pop-body h3 { color: var(--paper); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 10px 0 .4em; }
.svc-pop-desc { line-height: 1.8; }
.svc-pop-inc { margin: 1.2em 0 .5em; color: var(--gold); font-weight: 600; font-size: .9rem; }
.svc-pop-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.svc-pop-points li { position: relative; padding-inline-start: 1.4em; }
.svc-pop-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; border-inline: .32em solid transparent; border-bottom: .52em solid var(--gold); }
.svc-pop-wa { width: 100%; justify-content: center; font-size: 1.05rem; }
.svc-pop-wa svg { width: 1.3em; height: 1.3em; fill: currentColor; }
.svc-pop-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgb(247 245 241 / .12); color: var(--paper); font-size: 1.5rem; line-height: 1; z-index: 1; }
.svc-pop-close:hover, .svc-pop-close:focus-visible { background: rgb(247 245 241 / .25); outline: none; }

/* Company profile viewer */
.profile-dialog { width: min(980px, 100% - 24px); height: calc(100dvh - 24px); max-height: none; padding: 0; border: 0; border-radius: var(--radius); background: var(--brown); }
.profile-dialog[open] { display: flex; flex-direction: column; }
.profile-dialog::backdrop { background: rgb(20 13 10 / .82); }
.pd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--paper); }
.pd-bar strong { margin-inline-end: auto; }
.pd-download { min-height: 40px; padding: .35em 1.1em; font-size: .9rem; }
.pd-close { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgb(247 245 241 / .12); color: var(--paper); font-size: 1.5rem; line-height: 1; }
.pd-close:hover { background: rgb(247 245 241 / .22); }
.profile-dialog iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.about-grid .btn { margin-top: 8px; }

/* Lightbox */
.lightbox { width: min(1100px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--taupe); }
.lightbox::backdrop { background: rgb(20 13 10 / .82); }
.lb-inner { display: grid; grid-template-columns: 1.5fr 1fr; }
.lb-figure { position: relative; margin: 0; background: #1b120f; min-height: 300px; display: grid; place-items: center; }
.lb-img { width: 100%; max-height: calc(100dvh - 24px); object-fit: contain; }
.lb-nav, .lb-close {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(247 245 241 / .9); color: var(--brown); font-size: 1.6rem; line-height: 1;
}
.lb-prev { inset-inline-start: 12px; top: calc(50% - 22px); }
.lb-next { inset-inline-end: 12px; top: calc(50% - 22px); }
[dir="rtl"] .lb-nav { transform: scaleX(-1); }
.lb-close { z-index: 2; top: 12px; inset-inline-end: 12px; }
.lb-count { position: absolute; bottom: 10px; left: 50%; translate: -50%; padding: 2px 12px; border-radius: 999px; background: rgb(20 13 10 / .6); color: var(--paper); font-size: .85rem; }
.lb-count:empty { display: none; }
.lb-text { padding: clamp(22px, 3vw, 36px); overflow: auto; max-height: calc(100dvh - 24px); }
.lb-text ul { padding: 0; list-style: none; margin: 0; }
.lb-text li { margin-bottom: .4em; }
.lb-inner.no-text { grid-template-columns: 1fr; }
.lb-inner.no-text .lb-text { display: none; }

/* Google reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--taupe); }
.rating strong { font-size: 2.6rem; line-height: 1; color: var(--brown); }
/* stars filled to the rating: faint stars with solid gold stars on top, cut to --r/5 of the width */
.rating-stars { position: relative; display: inline-block; font-size: 1.3rem; letter-spacing: 2px; color: var(--line); white-space: nowrap; }
.rating-stars::before { content: "★★★★★"; position: absolute; inset-inline-start: 0; top: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: var(--gold); }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.review blockquote { margin: 0; color: var(--brown); line-height: 1.85; font-size: .98rem; }
.review figcaption { font-size: .88rem; color: #6E625B; }
.review-stars { color: var(--gold-deep); letter-spacing: 1px; margin-inline-end: 6px; }
.reviews-note:empty { display: none; }
.reviews-note { margin-top: 14px; }

/* Footer */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer-grid img { width: 96px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-credit { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.footer-credit a { color: #6E625B; }
.footer-address { grid-column: 1 / -1; margin: 0; color: #6E625B; font-size: .92rem; }
.footer-links a { text-decoration: none; color: var(--brown); font-weight: 500; }
.footer-grid .muted { grid-column: 1 / -1; margin: 12px 0 0; }

.wa-float {
  position: fixed; z-index: 30; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Responsive */
@media (max-width: 960px) {
  .review-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .review { scroll-snap-align: start; }
  .hero-visual { width: min(300px, 78%); }
  .hero-grid, .about-grid, .model-grid, .lb-inner { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header-quote { margin-inline-start: auto; }
  .brand img { height: 36px; }
  .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .route-wrap { text-align: start; }
  .route::before, .route::after { inset-inline-start: 23px; }
  .stop { grid-template-columns: 48px 1fr; min-height: 0; padding-block: 10px; }
  .node { grid-column: 1; }
  .stop:nth-child(n) .stop-card { grid-column: 2; margin-inline: 14px 0; }
  .floor { gap: 12px; padding: 12px 14px; }
  .floor-text { gap: 12px; }
  .floor .num { width: 34px; height: 34px; font-size: .75rem; }
  .floor p { font-size: .85rem; line-height: 1.6; }
  .windows { gap: 8px; }
  .windows i { width: 18px; }
  .windows i.door { width: 28px; }
  .windows i:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.calm .stop:not(.is-reached) .stop-card, .calm .stop.is-reached .node { transform: none; }
