/* ==========================================================================
   کابینت البرز — Kabinete Alborz
   Design language: architectural / premium interior studio.
   The Alborz ridgeline is the signature motif — it recurs as the hero
   silhouette, as section dividers, and small in the footer mark.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&family=Noto+Serif+Arabic:wght@500;600;700&family=Cinzel:wght@500;600&display=swap');

:root {
  /* Color */
  --ink:          #121214;
  --charcoal:     #18191c;
  --charcoal-2:   #202226;
  --charcoal-3:   #2a2c31;
  --ivory:        #f5f1e7;
  --ivory-2:      #ece5d4;
  --paper:        #fbf9f4;
  --gold:         #b6905a;
  --gold-light:   #d8b98a;
  --gold-soft:    #d9b988;
  --gold-line:    rgba(182, 144, 90, 0.4);
  --stone:        #6e675c;
  --stone-light:  #93897a;
  --hairline:     rgba(18, 18, 20, 0.1);
  --hairline-dark: rgba(245, 241, 231, 0.14);

  /* Type */
  --f-display: 'Noto Serif Arabic', 'Vazirmatn', serif;
  --f-body: 'Vazirmatn', 'Noto Serif Arabic', sans-serif;
  --f-mark: 'Cinzel', serif;

  /* Layout */
  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 88px;
  --ease: cubic-bezier(.16,.8,.24,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);

  /* Radius scale — modern, rounded */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* Glass */
  --glass-light-bg: rgba(255, 255, 255, 0.55);
  --glass-light-bd: rgba(255, 255, 255, 0.65);
  --glass-dark-bg: rgba(20, 21, 24, 0.46);
  --glass-dark-bd: rgba(245, 241, 231, 0.14);
  --glass-blur: blur(14px) saturate(150%);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; }
p { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utility ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mark);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.28; color: var(--ink); }
.section-head p { margin-top: 16px; color: var(--stone); font-size: 17px; max-width: 54ch; }
.on-dark .section-head h2 { color: var(--ivory); }
.on-dark .section-head p { color: var(--stone-light); }

section { position: relative; }

/* Glass utilities */
.glass {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-bd);
}
.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-bd);
}
.glass-light {
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-bd);
}

/* Reveal-on-scroll — soft rise, tuned for a smooth editorial feel.
   Only transform + opacity animate (both GPU-accelerated) — no filter/blur
   transitions here, since animating CSS blur is expensive and was causing
   the sluggish, stuttery feel on scroll. */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(.985);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px) scale(.98);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
  will-change: transform, opacity;
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .06s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .26s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .36s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .46s; }

/* Buttons — rounded, modern, tactile */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 12px 24px; font-size: 13.5px; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px -10px rgba(182,144,90,.7); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-3px) scale(1.015); box-shadow: 0 18px 34px -12px rgba(182,144,90,.65); }
.btn-line {
  color: var(--ivory);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255,255,255,.22);
}
.btn-line:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.16); transform: translateY(-3px) scale(1.015); }
.btn-line-dark { border-color: rgba(18,18,20,.16); color: var(--ink); background: rgba(255,255,255,.5); backdrop-filter: blur(14px); }
.btn-line-dark:hover { border-color: rgba(18,18,20,.32); background: rgba(255,255,255,.75); transform: translateY(-3px) scale(1.015); }
.btn svg { width: 15px; height: 15px; transition: transform .4s var(--ease-soft); }
.btn:hover svg { transform: translateX(-3px); }
[dir="rtl"] .btn:hover svg { transform: translateX(3px); }

/* Ridge divider (signature motif) used between sections */
.ridge-divider { line-height: 0; width: 100%; }
.ridge-divider svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   HEADER — floating glass navbar
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 22px var(--pad) 0;
  transition: padding .5s var(--ease-soft);
}
.site-header.scrolled { padding: 12px var(--pad) 0; }
.site-header .wrap { padding-inline: 0; }

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 26px;
  transition: padding .5s var(--ease-soft), background .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.5);
}
[dir="rtl"] .nav-glass { padding: 10px 26px 10px 12px; }
.site-header.scrolled .nav-glass {
  background: rgba(20,21,24,.62);
  box-shadow: 0 16px 44px -16px rgba(0,0,0,.55);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; transition: height .5s var(--ease-soft); }
.site-header.scrolled .brand-logo { height: 40px; }
.brand-fa { font-family: var(--f-display); font-size: 13.5px; letter-spacing: .02em; color: var(--gold-soft); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 15px;
  color: var(--ivory);
  opacity: .82;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* Branch switcher — pills used across Group/Woodwork/Metalwork/Investment pages */
.branch-pills { display: flex; align-items: center; gap: 6px; }
.branch-pills a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ivory);
  opacity: .72;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: all .35s var(--ease-soft);
  white-space: nowrap;
}
.branch-pills a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.branch-pills a.active { opacity: 1; background: var(--gold); color: var(--ink); font-weight: 600; }

.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 18px;
}
.branch-tag a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.branch-tag a:hover { color: var(--gold-soft); }

/* Group homepage — branch cards */
.branches { background: var(--charcoal); padding: 130px 0; }
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.branch-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease-soft), background .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.branch-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.07); border-color: var(--gold-line); }
.branch-card .icon-wrap { width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(182,144,90,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.branch-card svg.icon { width: 28px; height: 28px; color: var(--gold); }
.branch-card .en { font-family: var(--f-mark); font-size: 11.5px; letter-spacing: .2em; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 10px; }
.branch-card h3 { font-size: 23px; color: var(--ivory); margin-bottom: 14px; }
.branch-card p { color: var(--stone-light); font-size: 14.5px; line-height: 1.85; margin-bottom: 28px; }
.branch-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
}
.branch-card .go svg { width: 15px; height: 15px; transition: transform .4s var(--ease-soft); }
.branch-card:hover .go svg { transform: translateX(-4px); }
[dir="rtl"] .branch-card:hover .go svg { transform: translateX(4px); }

/* Multi-office contact layout */
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.office-card {
  border-radius: var(--r-md);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hairline-dark);
  padding: 26px 26px 22px;
}
.office-card .office-tag { font-family: var(--f-mark); font-size: 11px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.office-card .office-city { font-family: var(--f-display); font-size: 18px; color: var(--ivory); margin-bottom: 10px; }
.office-card .office-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--stone-light); line-height: 1.7; margin-top: 8px; }
.office-card .office-line svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.office-card .office-line a:hover { color: var(--gold-soft); }

/* Projects-as-text-cards (used where no photos exist yet) */
.notable-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.notable-card {
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-bd);
  border-radius: var(--r-md);
  padding: 30px 28px;
}
.notable-card .tag { font-family: var(--f-mark); font-size: 11px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.notable-card h3 { font-size: 18.5px; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }
.notable-card p { font-size: 14px; color: var(--stone); line-height: 1.8; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill);
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .3s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,.14); }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ivory); transition: all .35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset-inline: 16px; top: 92px;
  z-index: 90;
  border-radius: var(--r-lg);
  padding: 18px 28px 28px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-14px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  background: rgba(16,17,19,.88) !important;
}
.mobile-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-panel a {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--ivory);
  padding: 15px 4px;
  border-bottom: 1px solid var(--hairline-dark);
}
.mobile-panel .btn { margin-top: 24px; align-self: flex-start; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 62%;
  transform: scale(1.14);
  transition: transform 1.9s var(--ease-soft);
}
.hero-media img.settled { transition: none; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,18,.55) 0%, rgba(15,16,18,.35) 30%, rgba(15,16,18,.6) 66%, rgba(15,16,18,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 128px;
  text-align: center;
}
.hero-content .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-family: var(--f-mark);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .3s forwards;
}
.hero-logo-wrap {
  margin: 0;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) .5s forwards;
}
.hero-logo {
  height: clamp(96px, 13vw, 190px);
  width: auto;
  margin-inline: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.35));
}
.hero-fa {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 34px);
  color: var(--ivory);
  margin-top: 14px;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) .68s forwards;
}
.hero-tagline {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ivory-2);
  font-size: 17px;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) .84s forwards;
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 1s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--stone-light);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.3s forwards;
}
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--paper); padding: 132px 0 120px; position: relative; overflow: hidden; }
.services-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.services-blob.b1 { width: 480px; height: 480px; background: rgba(182,144,90,.28); top: -160px; inset-inline-start: -120px; }
.services-blob.b2 { width: 420px; height: 420px; background: rgba(24,25,28,.14); bottom: -180px; inset-inline-end: -100px; }
.services .wrap { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-bd);
  border-radius: var(--r-md);
  padding: 38px 30px 32px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), background .4s var(--ease);
  box-shadow: 0 14px 34px -22px rgba(24,25,28,.25);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -20px rgba(24,25,28,.28); background: rgba(255,255,255,.72); }
.service-num {
  font-family: var(--f-mark);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .2em;
  margin-bottom: 26px;
}
.service-card svg.icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 18px; }
.service-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.service-card p { color: var(--stone); font-size: 14.5px; line-height: 1.75; margin-top: auto; }

/* ==========================================================================
   STORY (dark, split)
   ========================================================================== */
.story { background: var(--charcoal); color: var(--ivory); padding: 130px 0; overflow: hidden; }
.story .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.story-media { position: relative; }
.story-media .frame {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  padding: 18px;
  overflow: hidden;
}
.story-media img { width: 100%; height: 560px; object-fit: cover; border-radius: calc(var(--r-lg) - 14px); filter: grayscale(1) contrast(1.08); transition: transform 1.2s var(--ease-soft); }
.story-media:hover img { transform: scale(1.04); }
.story-media .frame::before {
  content: '';
  position: absolute; inset: -18px;
  border: 1px solid var(--hairline-dark);
  border-radius: calc(var(--r-lg) + 18px);
  pointer-events: none;
  transform: translate(14px, 14px);
  z-index: -1;
}
.story-copy .eyebrow { color: var(--gold-soft); }
.story-quote {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.6;
  color: var(--ivory);
  font-weight: 600;
}
.story-quote .accent { color: var(--gold-soft); }
.story-copy p.lede {
  margin-top: 28px;
  color: var(--stone-light);
  font-size: 16.5px;
  line-height: 1.95;
  max-width: 52ch;
}
.story-meta {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline-dark);
}
.story-meta div span { display: block; }
.story-meta .label { font-family: var(--f-mark); font-size: 11px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.story-meta .val { font-family: var(--f-display); font-size: 15.5px; color: var(--ivory); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { background: var(--paper); padding: 130px 0 100px; }
.projects .section-head { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 30px; flex-wrap: wrap; }
.projects .section-head .head-text { max-width: 620px; }

.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tabs button {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(18,18,20,.08);
  color: var(--stone);
  padding: 11px 22px;
  font-size: 13.5px;
  font-family: var(--f-body);
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: all .45s var(--ease-soft);
}
.filter-tabs button:hover { border-color: var(--gold-line); color: var(--ink); transform: translateY(-2px); }
.filter-tabs button.active { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(18,18,20,.5); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: row dense;
  gap: 22px;
  margin-top: 10px;
}
.gallery-item {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ivory-2);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(34px) scale(.97);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.gallery-item.show { opacity: 1; transform: translateY(0) scale(1); }
.gallery-item.hide-item { display: none; }
.gallery-item .ph { aspect-ratio: 4/3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(15,16,18,.82), transparent);
  color: var(--ivory);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item .cap .tag { font-family: var(--f-mark); font-size: 10.5px; letter-spacing: .18em; color: var(--gold-soft); text-transform: uppercase; }
.gallery-item .cap .name { font-family: var(--f-display); font-size: 15.5px; margin-top: 6px; }

.gallery-item.tall { grid-column: span 3; }
.gallery-item.wide { grid-column: span 6; }
.gallery-item.wide .ph { aspect-ratio: 21/9; }
.gallery-item.third { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,16,18,.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-soft);
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-cap { position: absolute; bottom: 34px; inset-inline: 0; text-align: center; color: var(--ivory-2); font-size: 14px; letter-spacing: .04em; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--ivory);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .4s var(--ease-soft);
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); color: var(--gold-soft); }
.lightbox-close { top: 30px; inset-inline-end: 30px; }
.lightbox-nav.prev { inset-inline-start: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { inset-inline-end: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-nav svg { width: 18px; height: 18px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--ivory); padding: 130px 0; }
.about .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--r-lg); }
.about-media .badge {
  position: absolute;
  bottom: -28px; inset-inline-start: -28px;
  color: var(--ivory);
  padding: 26px 30px;
  border-radius: var(--r-md);
  max-width: 240px;
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.35);
}
.about-media .badge .mark { width: 30px; height: 26px; margin-bottom: 12px; display: block; }
.about-media .badge .mark img { width: 100%; height: 100%; object-fit: contain; }
.about-media .badge p { font-size: 13.5px; line-height: 1.7; color: var(--ivory-2); }
.about-copy p.lede { font-size: 18px; line-height: 2; color: var(--ink); max-width: 58ch; }
.about-copy p.lede + p { margin-top: 22px; color: var(--stone); font-size: 15.5px; line-height: 1.95; max-width: 58ch; }
.about-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
}
.about-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.about-list li svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

.about-stats {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.about-stats .stat { display: flex; flex-direction: column; gap: 6px; }
.about-stats .num { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); color: var(--gold); line-height: 1; }
.about-stats .lbl { font-size: 12.5px; color: var(--stone); line-height: 1.5; }

/* ==========================================================================
   CLOSING QUOTE
   ========================================================================== */
.closing-quote { background: var(--paper); padding: 20px 0 120px; text-align: center; }
.closing-quote .wrap { max-width: 760px; }
.closing-quote .quote-mark {
  display: block;
  font-family: var(--f-display);
  font-size: 64px;
  color: var(--gold-line);
  line-height: 1;
  margin-bottom: 6px;
}
.closing-quote p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.75;
  color: var(--ink);
}
.closing-quote .quote-by {
  display: block;
  margin-top: 26px;
  font-family: var(--f-mark);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--charcoal); color: var(--ivory); padding: 130px 0 0; }
.contact .wrap-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; }
.contact-info { padding-inline-end: 80px; padding-bottom: 110px; }
.contact-info .section-head { margin-bottom: 44px; }
.contact-rows { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 22px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hairline-dark);
  transition: background .4s var(--ease-soft), transform .4s var(--ease-soft);
}
.contact-row:hover { background: rgba(255,255,255,.06); transform: translateX(-2px); }
[dir="rtl"] .contact-row:hover { transform: translateX(2px); }
.contact-row svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-row .label { font-family: var(--f-mark); font-size: 11px; letter-spacing: .16em; color: var(--stone-light); text-transform: uppercase; margin-bottom: 7px; }
.contact-row .val { font-family: var(--f-display); font-size: 16.5px; color: var(--ivory); line-height: 1.6; }
.contact-row .val a:hover { color: var(--gold-soft); }
.contact-row .soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--stone-light);
  background: rgba(245,241,231,.06);
  border: 1px dashed var(--hairline-dark);
  border-radius: var(--r-pill);
  padding: 7px 16px;
}
.contact-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.contact-map { position: relative; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(.35) contrast(1.05); position: absolute; inset: 0; }
.map-tag {
  position: absolute; bottom: 26px; inset-inline-start: 26px;
  color: var(--ivory);
  padding: 16px 20px;
  border-radius: var(--r-md);
  z-index: 2;
  max-width: 240px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
}
.map-tag .en { font-family: var(--f-mark); font-size: 12px; letter-spacing: .14em; color: var(--gold-soft); }
.map-tag a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ivory); }
.map-tag a:hover { color: var(--gold-soft); }
.map-tag a svg { width: 13px; height: 13px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); border-top: 1px solid var(--hairline-dark); padding: 44px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--stone-light); }
.footer-brand .mark { width: 24px; height: 24px; display: block; }
.footer-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand span { font-family: var(--f-mark); font-size: 13px; letter-spacing: .16em; color: var(--ivory-2); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 13.5px; color: var(--stone-light); transition: color .3s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-fine { font-size: 12.5px; color: var(--stone); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .story .wrap, .about .wrap { grid-template-columns: 1fr; gap: 50px; }
  .story-media img { height: 400px; }
  .contact .wrap-inner { grid-template-columns: 1fr; }
  .contact-info { padding-inline-end: 0; padding-bottom: 60px; }
  .contact-map { min-height: 400px; }
  .branches-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .notable-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta, .branch-pills { display: none; }
  .nav-toggle { display: flex; }
  .nav-glass { padding: 8px 10px 8px 18px; }
  [dir="rtl"] .nav-glass { padding: 8px 18px 8px 10px; }
  .brand-logo { height: 38px; }
  .hero-content { padding-bottom: 90px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item, .gallery-item.wide, .gallery-item.third { grid-column: span 2; }
  .gallery-item.wide .ph { aspect-ratio: 4/3; }
  .projects .section-head { flex-direction: column; align-items: flex-start; }
  .about-media .badge { position: static; margin-top: -6px; max-width: none; }
  .about-list { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 32px 26px; }
  .story, .about, .projects, .services, .branches { padding-top: 90px; padding-bottom: 90px; }
  .closing-quote { padding-top: 0; padding-bottom: 90px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .contact { padding-top: 90px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.wide, .gallery-item.third { grid-column: span 1; }
  .lightbox-nav.prev { inset-inline-start: 10px; }
  .lightbox-nav.next { inset-inline-end: 10px; }
  .lightbox { padding: 16px; }
}
