/* Alpago Properties — investor microsite prototype */
:root {
  --bg: #F4F0E8;          /* warm travertine */
  --surface: #FFFDF8;     /* brochure */
  --text: #171A18;        /* basalt */
  --muted: #6D6A60;       /* stone */
  --primary: #111615;     /* basalt noir */
  --secondary: #617669;   /* palm sage */
  --accent: #9A7A4E;      /* restrained bronze */
  --border: #D8CBB8;      /* travertine hairline */
  --focus: #2E6F73;       /* gulf teal */
  --hero: #101013;
  --stone: #E2D7C4;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Naskh Arabic', serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--font-arabic), var(--font-body); }
[dir="rtl"] .display, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* type */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.on-dark { color: rgba(255,255,255,.72); }
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 10px 2px;
  vertical-align: middle;
}

/* layout */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
}
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

.hairline { background: var(--border); height: 1px; width: 100%; }
.hairline-v { background: var(--border); width: 1px; align-self: stretch; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), color .4s var(--ease), top .3s var(--ease);
}
.nav.with-flag { top: 32px; }
@media (max-width: 700px) {
  .nav.with-flag { top: 44px; }
}
.nav.transparent { background: transparent; color: #fff; }
.nav.solid { background: rgba(244, 240, 232, .92); backdrop-filter: blur(14px); color: var(--text); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; gap: 36px; }
.nav-links button {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  opacity: .85; transition: opacity .2s;
}
.nav-links button:hover, .nav-links button.active { opacity: 1; }
.nav-links button.active { color: var(--accent); }
.nav-logo { height: 28px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  padding: 12px 22px; border: 1px solid currentColor;
  transition: background .2s, color .2s, border-color .2s;
}
.nav.transparent .nav-cta:hover { background: #fff; color: var(--text); border-color: #fff; }
.nav.solid .nav-cta { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav.solid .nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.lang-switch { display: flex; gap: 0; align-items: center; font-size: 11px; letter-spacing: 0.18em; }
.lang-switch button {
  padding: 6px 8px; opacity: .55; font-weight: 500;
}
.lang-switch button.active { opacity: 1; color: var(--accent); }
.lang-switch .sep { opacity: .35; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--primary);
  background: var(--primary); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--primary); color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--text); }
.btn .arrow { font-size: 16px; line-height: 1; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px;
  transition: gap .25s var(--ease);
}
.btn-link:hover { gap: 16px; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 720px; overflow: hidden; color: #fff; background: var(--hero); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 16s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,16,19,.65) 0%, rgba(16,16,19,.15) 30%, rgba(16,16,19,.25) 65%, rgba(16,16,19,.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 96px;
}
.hero-eyebrow { margin-bottom: 32px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,.85); }
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; align-items: flex-end; }
.hero-meta .col { display: flex; flex-direction: column; gap: 6px; }
.hero-meta .label { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; opacity: .65; }
.hero-meta .value { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; height: 56px;
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,.78); overflow: hidden;
}
.hero-ticker-inner { display: flex; gap: 64px; padding: 0 40px; white-space: nowrap; animation: ticker 60s linear infinite; }
.hero-ticker .sep { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero alt */
.hero.editorial .hero-media img { animation: none; }
.hero.editorial .hero-scrim { background: linear-gradient(90deg, rgba(16,16,19,.78) 0%, rgba(16,16,19,.4) 55%, rgba(16,16,19,.15) 100%); }
.hero.editorial .hero-content { justify-content: center; padding-bottom: 0; max-width: 760px; }

/* proposition */
.prop {
  background: var(--surface);
  position: relative;
}
.prop-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 96px; align-items: start; }
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr; gap: 40px; } }
.prop h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; margin: 20px 0 0;
}
.prop h2 em { font-style: italic; color: var(--accent); }
.prop-body p { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 56ch; line-height: 1.65; }
.prop-body p strong { color: var(--text); font-weight: 500; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--border); }
.pillar { padding: 32px 28px 0; border-right: 1px solid var(--border); }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--font-display); font-size: 13px; color: var(--accent); letter-spacing: 0.2em; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 14px 0 10px; line-height: 1.15; }
.pillar p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
}

/* projects grid */
.proj-section { background: var(--bg); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 40px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; margin: 12px 0 0; max-width: 18ch;
}
.section-head .lead { max-width: 38ch; color: var(--muted); font-size: 15px; }

.proj-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.proj-grid .row { display: contents; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  position: relative; overflow: hidden; background: var(--primary);
  cursor: pointer; aspect-ratio: 4/3;
}
.proj-card.tall { aspect-ratio: 4/5; }
.proj-card.wide { grid-column: span 2; aspect-ratio: 16/8; }
@media (max-width: 900px) { .proj-card.wide { grid-column: span 1; aspect-ratio: 4/3; } }
.proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.proj-card:hover img { transform: scale(1.05); filter: brightness(0.9); }
.proj-card-inner {
  position: absolute; inset: 0; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
  color: #fff;
}
.proj-card .status {
  position: absolute; top: 24px; left: 24px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.25); backdrop-filter: blur(6px);
}
.proj-card .status.flag { color: var(--accent); border-color: var(--accent); }
.proj-card .num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; opacity: .8;
}
[dir="rtl"] .proj-card .status { left: auto; right: 24px; }
[dir="rtl"] .proj-card .num { right: auto; left: 24px; }
.proj-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 42px); margin: 0 0 8px; line-height: 1.05;
}
.proj-card .meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8; display: flex; gap: 16px; flex-wrap: wrap; }
.proj-card .arrow {
  position: absolute; right: 32px; bottom: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s, transform .25s;
  background: rgba(0,0,0,.15);
}
[dir="rtl"] .proj-card .arrow { right: auto; left: 32px; transform: scaleX(-1); }
.proj-card:hover .arrow { background: var(--accent); border-color: var(--accent); transform: translate(4px, -4px); }
[dir="rtl"] .proj-card:hover .arrow { transform: translate(-4px, -4px) scaleX(-1); }

/* pedigree strip */
.ped { background: var(--primary); color: #fff; padding: 80px 0; }
.ped-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .ped-grid { grid-template-columns: 1fr; gap: 40px; } }
.ped h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px,3.2vw,44px); line-height: 1.1; margin: 16px 0 0; }
.ped .partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.ped .partner {
  background: var(--primary); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.ped .partner .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.ped .partner .role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 700px) { .ped .partners { grid-template-columns: 1fr; } }

/* record block */
.record {
  background: var(--surface); padding: 100px 0;
}
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; } }
.record .big {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 144px);
  line-height: 0.9;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}
.record .big em { font-style: italic; color: var(--accent); }
.record .ctx { color: var(--muted); margin-top: 28px; font-size: 16px; max-width: 42ch; }
.record .ctx strong { color: var(--text); font-weight: 500; }
.record .img-frame { aspect-ratio: 4/5; overflow: hidden; }
.record .img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band {
  position: relative; padding: 140px 0; color: #fff; overflow: hidden;
  background: var(--primary);
}
.cta-band .bg { position: absolute; inset: 0; opacity: .35; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,19,.6), rgba(16,16,19,.9)); }
.cta-band .content { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(40px, 6vw, 88px); line-height: 1; margin: 24px 0 40px;
}
.cta-band .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* footer */
.footer { background: var(--primary); color: rgba(255,255,255,.78); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 500; margin: 0 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover, .footer ul button:hover { color: var(--accent); }
.footer ul button { text-align: start; font-size: 14px; }
.footer-logo { height: 32px; margin-bottom: 24px; filter: brightness(0) invert(1); opacity: .9; }
.footer .tagline { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #fff; margin: 0 0 24px; max-width: 28ch; }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}

/* WhatsApp fab */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .2s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
[dir="rtl"] .wa-fab { right: auto; left: 28px; }

/* sticky bottom bar (mobile + cinematic) */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(17, 22, 21, .94); backdrop-filter: blur(12px);
  color: #fff; padding: 14px 24px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sticky-cta .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: .7; }
.sticky-cta .title { font-family: var(--font-display); font-size: 18px; margin-top: 2px; }
.sticky-cta.show { display: flex; }
@media (max-width: 600px) { .sticky-cta .info .title { font-size: 16px; } }

/* project detail */
.pd-hero { position: relative; height: 90vh; min-height: 680px; color: #fff; overflow: hidden; background: var(--hero); }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.7) 100%); }
.pd-hero .content {
  position: absolute; inset: 0; z-index: 2; padding: 0 40px 80px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pd-hero .top {
  padding-top: 110px; display: flex; gap: 24px; align-items: center; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.pd-hero .top .back { display: inline-flex; align-items: center; gap: 8px; }
.pd-hero .bottom {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end;
}
@media (max-width: 900px) { .pd-hero .bottom { grid-template-columns: 1fr; gap: 24px; } }
.pd-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7.5vw, 112px); line-height: .95; letter-spacing: -.01em;
  margin: 0;
}
.pd-hero h1 em { font-style: italic; color: rgba(255,255,255,.85); }
.pd-hero .specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; padding: 0; }
.pd-hero .specs .label { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; opacity: .6; }
.pd-hero .specs .value { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-top: 6px; }

.pd-anchor-nav {
  position: sticky; top: 76px; z-index: 20;
  background: rgba(244,240,232,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; gap: 40px;
}
.pd-anchor-nav .anchors { display: flex; gap: 28px; overflow-x: auto; }
.pd-anchor-nav .anchors button { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 0; color: var(--muted); white-space: nowrap; }
.pd-anchor-nav .anchors button.active { color: var(--accent); border-bottom: 1px solid var(--accent); }

.pd-section { padding: 100px 0; }
.pd-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
@media (max-width: 900px) { .pd-two { grid-template-columns: 1fr; gap: 40px; } }
.pd-two h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px,4vw,56px); line-height: 1.05; margin: 16px 0 0; max-width: 14ch; }
.pd-two p { color: var(--muted); font-size: 16.5px; line-height: 1.7; max-width: 60ch; }
.pd-two p strong { color: var(--text); font-weight: 500; }

/* design partners */
.partners-mono {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.partners-mono .p {
  padding: 40px 32px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.partners-mono .p:last-child { border-right: 0; }
.partners-mono .p .label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.partners-mono .p .name { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.partners-mono .p .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 800px) {
  .partners-mono { grid-template-columns: 1fr; }
  .partners-mono .p { border-right: 0; border-bottom: 1px solid var(--border); }
  .partners-mono .p:last-child { border-bottom: 0; }
}

/* residences concept blocks */
.res-stack { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.res-row {
  background: var(--surface);
  display: grid; grid-template-columns: 80px 1.4fr 2fr 100px; gap: 32px;
  padding: 28px 32px; align-items: center;
}
@media (max-width: 800px) { .res-row { grid-template-columns: 1fr; gap: 8px; padding: 24px; } }
.res-row .idx { font-family: var(--font-display); color: var(--accent); font-size: 16px; letter-spacing: 0.18em; }
.res-row .name { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.res-row .desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.res-row .status { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); justify-self: end; }
@media (max-width: 800px) { .res-row .status { justify-self: start; } }

/* amenities cards */
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .amen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .amen-grid { grid-template-columns: 1fr; } }
.amen-card { background: var(--surface); border: 1px solid var(--border); }
.amen-card .img { aspect-ratio: 4/3; overflow: hidden; }
.amen-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.amen-card:hover .img img { transform: scale(1.04); }
.amen-card .body { padding: 22px 24px 24px; }
.amen-card .label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.amen-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 8px 0 6px; }
.amen-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* gallery */
.gallery { background: var(--primary); padding: 100px 0; }
.gallery .section-head h2 { color: #fff; }
.gallery .section-head .lead { color: rgba(255,255,255,.6); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid .cell { overflow: hidden; cursor: zoom-in; background: #000; }
.gallery-grid .cell.span-2 { grid-column: span 2; }
.gallery-grid .cell.span-2-row { grid-row: span 2; }
.gallery-grid .cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 1s var(--ease), opacity .4s; opacity: .92; }
.gallery-grid .cell:hover img { transform: scale(1.06); opacity: 1; }
.gallery-grid .cell.span-2 img { aspect-ratio: 2/1; }
.gallery-grid .cell.span-2-row img { aspect-ratio: 1/2; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 28px; right: 28px; color: #fff; font-size: 14px; letter-spacing: 0.2em; padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); text-transform: uppercase; }
.lightbox .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 22px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.3); }
.lightbox .nav-arrow.prev { left: 28px; }
.lightbox .nav-arrow.next { right: 28px; }

/* form modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,10,12,.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); width: min(900px, 100%); max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1.1fr; transform: translateY(20px); transition: transform .35s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,.3);
}
.modal-backdrop.open .modal { transform: translateY(0); }
@media (max-width: 800px) { .modal { grid-template-columns: 1fr; max-height: 100vh; } }
.modal .left { position: relative; background: var(--primary); color: #fff; min-height: 320px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.modal .left::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.modal .left .inner { position: relative; z-index: 2; }
.modal .left h3 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.05; margin: 24px 0 16px; }
.modal .left .sub { font-size: 14.5px; color: rgba(255,255,255,.8); max-width: 32ch; }
.modal .left .meta { position: relative; z-index: 2; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .75; display: flex; flex-direction: column; gap: 8px; }
.modal .right { padding: 40px; position: relative; }
.modal .close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .modal .close { right: auto; left: 16px; }
.modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 0 0 8px; }
.modal .form-eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.modal .field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.modal .field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.modal .field input, .modal .field select, .modal .field textarea {
  border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 10px 0; font-size: 15px;
  outline: none; transition: border-color .2s;
}
.modal .field input:focus, .modal .field select:focus, .modal .field textarea:focus { border-color: var(--focus); }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .modal .row { grid-template-columns: 1fr; } }
.modal .checks { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.modal .submit { margin-top: 24px; width: 100%; justify-content: center; }
.modal .tabs { display: flex; gap: 0; border: 1px solid var(--border); margin-top: 14px; }
.modal .tabs button { flex: 1; padding: 10px 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--border); }
.modal .tabs button:last-child { border-right: 0; }
.modal .tabs button.active { background: var(--primary); color: #fff; }
.modal .success { padding: 40px 0; text-align: center; }
.modal .success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 24px; }

/* about */
.about-hero { background: var(--surface); padding: 200px 0 60px; }
.about-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 1; margin: 24px 0 0; max-width: 14ch; letter-spacing: -.01em; }
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero .lead { margin-top: 32px; font-size: 18px; color: var(--muted); max-width: 56ch; line-height: 1.65; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value { padding: 36px 24px; border-right: 1px solid var(--border); }
.value:last-child { border-right: 0; }
.value .num { font-family: var(--font-display); font-size: 14px; color: var(--accent); letter-spacing: 0.18em; }
.value h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 14px 0 8px; }
.value p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } .value { border-bottom: 1px solid var(--border); } }
@media (max-width: 500px) { .values { grid-template-columns: 1fr; } .value { border-right: 0; } }

.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .leaders { grid-template-columns: 1fr; gap: 24px; } }
.leader { background: var(--surface); border: 1px solid var(--border); }
.leader .img { aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.leader .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .8s var(--ease); }
.leader:hover .img img { filter: grayscale(0.4); }
.leader .body { padding: 24px 28px 28px; }
.leader .label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.leader h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 8px 0 4px; }
.leader .title { color: var(--muted); font-size: 14px; }

/* contact */
.contact-hero { background: var(--surface); padding: 180px 0 60px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info .row { padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: baseline; }
.contact-info .row .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.contact-info .row .v { font-family: var(--font-display); font-size: 22px; }
.contact-info .row .v a { border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.contact-info .row .v small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0; text-transform: none; }
.map-frame { aspect-ratio: 4/5; background: var(--stone); overflow: hidden; position: relative; border: 1px solid var(--border); }
.map-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) contrast(1.05); }
.map-frame .pin {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%,-100%);
  width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--accent); transform-origin: center bottom;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  animation: pinBounce 2s ease-in-out infinite;
  rotate: -45deg;
}
@keyframes pinBounce { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.map-frame .pin::after {
  content: ""; position: absolute; inset: 6px; background: var(--surface); border-radius: 50%;
}
.map-frame .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: #fff; font-size: 13px;
}

/* awards strip */
.awards {
  background: var(--surface); padding: 60px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.awards .label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.awards .items { display: flex; gap: 40px; flex-wrap: wrap; }
.awards .item { font-family: var(--font-display); font-size: 19px; }
.awards .item small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) { .awards { flex-direction: column; align-items: flex-start; } }

/* projects index page */
.proj-index-hero { background: var(--surface); padding: 180px 0 60px; border-bottom: 1px solid var(--border); }
.proj-list { padding: 60px 0 120px; }
.proj-list-row {
  display: grid; grid-template-columns: 60px 1fr 1.4fr 200px; gap: 40px;
  padding: 32px 0; border-top: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: background .25s;
}
.proj-list-row:hover { background: rgba(154,122,78,.06); }
.proj-list-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .proj-list-row { grid-template-columns: 1fr; gap: 16px; } }
.proj-list-row .idx { font-family: var(--font-display); color: var(--accent); font-size: 16px; letter-spacing: 0.18em; }
.proj-list-row .img { aspect-ratio: 5/4; overflow: hidden; max-width: 260px; }
.proj-list-row .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj-list-row:hover .img img { transform: scale(1.05); }
.proj-list-row .info h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,2.6vw,40px); margin: 0 0 8px; line-height: 1.05; }
.proj-list-row .info .meta { display: flex; gap: 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.proj-list-row .status-col { text-align: end; }
.proj-list-row .status-col .badge { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--border); display: inline-block; }
.proj-list-row .status-col .badge.live { color: var(--accent); border-color: var(--accent); }
.proj-list-row .status-col .badge.legend { color: var(--secondary); border-color: var(--secondary); }
@media (max-width: 900px) { .proj-list-row .status-col { text-align: start; } }

/* utility */
.flag-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--primary); color: rgba(255,255,255,.78);
  padding: 8px 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center; border-bottom: 1px solid rgba(255,255,255,.08);
}
.flag-strip strong { color: var(--accent); font-weight: 500; }
@media (max-width: 700px) {
  .flag-strip { font-size: 10px; padding: 6px 14px; letter-spacing: 0.14em; }
}

.scroll-cue {
  position: absolute; right: 40px; bottom: 80px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,.7); font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue .line { width: 1px; height: 48px; background: rgba(255,255,255,.5); animation: cuePulse 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cuePulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
[dir="rtl"] .scroll-cue { right: auto; left: 40px; }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* attribution flag */
.attrib {
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; padding: 6px 10px;
  border: 1px dashed var(--border); display: inline-block;
}
.attrib.dark { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }

/* loader/animations */
.fade-in { animation: fadeIn .8s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* RTL specific */
[dir="rtl"] .nav-cta .arrow,
[dir="rtl"] .btn .arrow,
[dir="rtl"] .pd-hero .top .back { transform: scaleX(-1); }
