/* ============================================================
   MUQRIN — shared stylesheet  (premium redesign)
   Design tokens from brand guide
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --cream:        #F1E9DD;
  --cream-soft:   #F8F3EA;
  --teal-deep:    #163832;
  --teal-ink:     #0E2621;
  --copper:       #BC8552;
  --copper-soft:  #D9B48B;
  --ink:          #1C1C1A;
  --ink-soft:     #5B6A64;
  --line:         rgba(22,56,50,0.12);
  --line-on-dark: rgba(241,233,221,0.15);
  --font-display: 'IBM Plex Sans Arabic', sans-serif;
  --font-body:    'IBM Plex Sans Arabic', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --cut: 28px;
  --container: 1220px;
  --shadow-card: 0 2px 12px rgba(14,38,33,0.08), 0 8px 32px rgba(14,38,33,0.06);
  --shadow-card-hover: 0 8px 32px rgba(14,38,33,0.14), 0 24px 56px rgba(14,38,33,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 40px; } }

/* ---- Muqrin Cut ---- */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-sm { --cut: 14px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* ---- Lattice ---- */
.lattice {
  background-image:
    linear-gradient(45deg, var(--line-on-dark) 25%, transparent 25%, transparent 75%, var(--line-on-dark) 75%),
    linear-gradient(45deg, var(--line-on-dark) 25%, transparent 25%, transparent 75%, var(--line-on-dark) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/* ============================================================
   HEADER
   ============================================================ */
/* ── Skip Navigation Link ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  background: var(--teal-deep);
  color: var(--cream);
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ── Focus Visible Ring ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 233, 221, 0.92);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid var(--line);
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(14, 38, 33, 0.08);
  background: rgba(241, 233, 221, 0.88);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
@media (min-width: 860px) { .site-header .wrap { height: 92px; } }

/* Brand logo styling */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; object-fit: contain; display: block; transition: transform 0.2s ease; }
.brand:hover img { transform: scale(1.02); }
@media (min-width: 860px) { .brand img { height: 64px; } }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--copper);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-deep); font-weight: 600; }

.nav-cta {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep) !important;
  text-decoration: none;
  overflow: hidden;
  border: 1.5px solid var(--copper);
  background: transparent;
  transition: color 0.35s ease, border-color 0.35s ease;
  z-index: 0;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.nav-cta:hover::before { transform: scaleY(1); }
.nav-cta:hover { color: #ffffff !important; border-color: var(--copper); }

.nav-cta .nav-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-style: normal;
}
.nav-cta:hover .nav-arrow { transform: translateX(4px); }

.nav-cta.active {
  background: var(--copper);
  color: #ffffff !important;
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 105;
  position: relative;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(22, 56, 50, 0.05); }
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background 0.3s ease;
  transform-origin: center;
}

/* Hamburger animated transform into X */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop overlay for mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 38, 33, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(241, 233, 221, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(188, 133, 82, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding: 84px 28px 36px;
    gap: 6px;
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-shadow: -10px 0 40px rgba(14, 38, 33, 0.15);
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  [dir="rtl"] .nav-links {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    border-left: none;
    border-right: 1px solid rgba(188, 133, 82, 0.25);
    box-shadow: 10px 0 40px rgba(14, 38, 33, 0.15);
  }
  [dir="rtl"] .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(14, 38, 33, 0.08);
    font-size: 16px;
    font-weight: 500;
  }
  .nav-links a.active {
    color: var(--copper);
    font-weight: 600;
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links .lang-toggle {
    margin: 14px 0 6px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    align-self: flex-start;
  }
  .nav-cta {
    margin-top: 14px !important;
    width: 100% !important;
    justify-content: center;
    padding: 13px 20px;
  }
}

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--copper);
  flex-shrink: 0; margin-top: 7px;
}
@media (min-width: 640px) {
  .eyebrow { font-size: 12px; letter-spacing: 0.16em; gap: 12px; margin-bottom: 22px; }
  .eyebrow::before { margin-top: 8px; }
}

/* ============================================================
   HERO — full-bleed two-panel layout
   ============================================================ */
.hero { padding: 0; position: relative; }

/* Two-column grid: left=text, right=full building photo */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 76px);
}
@media (min-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 92px);
  }
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 48px;
  position: relative; z-index: 2;
  max-width: 640px;
}
@media (min-width: 960px) { .hero-left { padding: 80px 56px 80px 60px; max-width: 620px; } }
@media (max-width: 640px)  { .hero-left { padding: 52px 24px 44px; min-height: 55vh; } }




.hero-right {
  position: relative; overflow: hidden;
  min-height: 500px;
}
@media (min-width: 960px) { .hero-right { min-height: unset; } }

.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 12s ease;
}
.hero-right:hover img { transform: scale(1.04); }

/* Left-edge gradient: image bleeds into cream */
.hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, rgba(241,233,221,0) 28%);
  z-index: 1; pointer-events: none;
}
@media (max-width: 959px) {
  .hero-right::after {
    background: linear-gradient(to bottom, var(--cream) 0%, rgba(241,233,221,0) 18%, rgba(241,233,221,0) 82%, var(--cream) 100%);
  }
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 300;
  color: var(--teal-deep);
  line-height: 1.08; letter-spacing: -0.02em;
  max-width: 14ch; margin-bottom: 22px;
}
.hero h1 strong { font-weight: 600; color: var(--copper); }
.hero p.lead {
  font-size: 16.5px; color: var(--ink-soft);
  max-width: 44ch; line-height: 1.75; margin-bottom: 36px;
}
@media (min-width: 900px) { .hero p.lead { font-size: 17.5px; } }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Project plate */
.plate {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(14,38,33,0.88);
  backdrop-filter: blur(8px);
  color: var(--cream-soft);
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; z-index: 2;
}
@media (min-width: 900px) { .plate { left: 24px; bottom: 24px; padding: 14px 22px; font-size: 12px; } }
.plate .dot { width: 7px; height: 7px; background: var(--copper); border-radius: 50%; flex-shrink: 0; animation: pulse 2.4s ease infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.72); }
}

.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--copper); padding-bottom: 2px; margin-top: 16px;
  transition: color 0.2s ease;
}
.map-link:hover { color: var(--copper); }

/* Legacy hero-frame kept for other pages */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-grid-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-frame { position: relative; overflow: hidden; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (min-width: 900px) { .hero-frame img { aspect-ratio: 16/10; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--teal-deep); color: var(--cream-soft); }
.btn-primary:hover { background: var(--teal-ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,38,33,0.25); }
.btn-ghost { background: transparent; color: var(--teal-deep); border: 1.5px solid var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-deep); color: var(--cream-soft); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  background: var(--teal-deep); color: var(--cream-soft);
  padding: 64px 0; position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(241,233,221,0.03) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.03) 75%),
    linear-gradient(45deg, rgba(241,233,221,0.03) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.03) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; pointer-events: none;
}
@media (min-width: 640px) { .stats { padding: 80px 0; } }

.stats-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 40px 32px; position: relative;
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4,1fr); gap: 0; } }

@media (min-width: 760px) {
  .stats-grid > div { padding: 0 44px; }
  .stats-grid > div:first-child { padding-left: 0; }
  .stats-grid > div:last-child  { padding-right: 0; }
  .stats-grid > div + div { border-left: 1px solid var(--line-on-dark); }
}

.stat-num { font-size: clamp(38px,4.2vw,58px); font-weight: 200; color: var(--copper-soft); letter-spacing: -0.025em; line-height: 1; }
.stat-label { margin-top: 12px; font-size: 11px; color: rgba(241,233,221,0.52); letter-spacing: 0.07em; text-transform: uppercase; font-family: var(--font-mono); }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
@media (min-width: 760px) { .section { padding: 116px 0; } .section-tight { padding: 72px 0; } }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px,3.8vw,48px); font-weight: 300; color: var(--teal-deep); line-height: 1.15; letter-spacing: -0.01em; }
.section-head h2 strong { font-weight: 600; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.section-alt { background: var(--cream-soft); }

/* ============================================================
   PILLAR CARDS — premium elevated treatment
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (min-width:640px) and (max-width:860px) { .pillars { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width:639px) { .pillars { grid-template-columns: 1fr; gap: 16px; } }

.pillar {
  background: var(--cream-soft); border: 1px solid var(--line);
  padding: 42px 34px 38px;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Top copper bar on hover */
.pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--copper), var(--copper-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: rgba(188,133,82,0.35); }
.pillar:hover::before { transform: scaleX(1); }

/* Ghost number */
.pillar::after {
  content: attr(data-num); position: absolute; right: 16px; bottom: 4px;
  font-family: var(--font-mono); font-size: 84px; font-weight: 700;
  color: var(--teal-deep); opacity: 0.045; line-height: 1;
  pointer-events: none; user-select: none;
}
.pillar .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--copper); letter-spacing: 0.12em; text-transform: uppercase; }
.pillar h3 { margin-top: 20px; font-size: 21px; font-weight: 600; color: var(--teal-deep); line-height: 1.3; }
.pillar p  { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ============================================================
   VISION / MISSION
   ============================================================ */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-panel {
  background: var(--teal-deep); color: var(--cream-soft);
  padding: 52px 44px; position: relative; overflow: hidden;
  transition: transform 0.3s ease;
}
.vm-panel:hover { transform: translateY(-3px); }
.vm-panel::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(241,233,221,0.04) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.04) 75%),
    linear-gradient(45deg, rgba(241,233,221,0.04) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.04) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; pointer-events: none;
}
.vm-panel.copper { background: var(--copper); color: var(--teal-ink); }
.vm-panel .eyebrow { color: var(--copper-soft); }
.vm-panel.copper .eyebrow { color: var(--teal-ink); opacity: 0.7; }
.vm-panel h3 { position: relative; font-size: 28px; font-weight: 300; margin-bottom: 16px; line-height: 1.25; }
.vm-panel p  { position: relative; font-size: 15.5px; opacity: 0.88; max-width: 44ch; line-height: 1.7; }
@media (max-width:760px) { .vm-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--teal-ink); color: var(--cream-soft);
  padding: 88px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(241,233,221,0.025) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.025) 75%),
    linear-gradient(45deg, rgba(241,233,221,0.025) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.025) 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; pointer-events: none;
}
@media (min-width:640px) { .cta-band { padding: 112px 0; } }
.cta-band h2 { font-size: clamp(28px,3.4vw,44px); font-weight: 300; margin-bottom: 14px; position: relative; letter-spacing: -0.01em; }
.cta-band p  { color: rgba(241,233,221,0.62); margin-bottom: 38px; font-size: 16.5px; position: relative; }
.cta-band .btn-primary { background: var(--copper); color: var(--teal-ink); position: relative; }
.cta-band .btn-primary:hover { background: var(--copper-soft); box-shadow: 0 8px 28px rgba(188,133,82,0.35); }

/* ============================================================
   FORMS
   ============================================================ */
.form-shell {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  border: 1px solid var(--line); background: var(--cream-soft);
  box-shadow: var(--shadow-card);
}
.form-side { background: var(--teal-deep); color: var(--cream-soft); padding: 32px 24px; position: relative; overflow: hidden; }
@media (min-width:900px) { .form-side { padding: 56px 48px; } }
.form-side::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(241,233,221,0.04) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.04) 75%),
    linear-gradient(45deg, rgba(241,233,221,0.04) 25%, transparent 25%, transparent 75%, rgba(241,233,221,0.04) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
}
.form-side h2 { position: relative; font-size: 30px; font-weight: 300; margin-bottom: 16px; line-height: 1.2; }
.form-side p  { position: relative; font-size: 14.5px; opacity: 0.82; margin-bottom: 28px; line-height: 1.65; }
.form-side .contact-line { position: relative; display: flex; gap: 10px; align-items: center; font-size: 14px; margin-top: 12px; opacity: 0.88; }

.form-main { padding: 32px 24px; }
@media (min-width:900px) { .form-main { padding: 56px 48px; } }

.field {
  position: relative;
  margin-bottom: 22px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 22px 16px 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--teal-deep);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 24px;
}

.field label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  background: transparent;
  margin-bottom: 0;
  display: block;
}

[dir="rtl"] .field label {
  left: auto; right: 16px;
}

/* Float label up when input has value or is focused */
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(188, 133, 82, 0.12);
}

/* Input validation feedback */
.field input:invalid:not(:placeholder-shown) { border-color: rgba(188, 66, 66, 0.6); }
.field input:valid:not(:placeholder-shown)   { border-color: rgba(74, 158, 94, 0.6); }

/* Custom select chevron arrow */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23BC8552' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}
[dir="rtl"] .field select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
@media (max-width:900px) { .form-shell { grid-template-columns: 1fr; } }

.form-success { display: none; padding: 48px; text-align: center; border: 1px dashed var(--copper); background: var(--cream); margin-top: 24px; }
.form-success.show { display: block; }
.form-success h3 { color: var(--teal-deep); font-weight: 600; margin-bottom: 10px; font-size: 20px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }
.field-error { display: none; margin-top: 16px; padding: 14px 18px; background: rgba(188,66,66,0.08); border: 1px solid rgba(188,66,66,0.3); color: #8a3535; font-size: 13.5px; }
.field-error.show { display: block; }

/* ============================================================
   RESUME / CV UPLOAD FIELD & MODAL (Image 1 & Image 2)
   ============================================================ */
.field-upload {
  position: relative;
  margin-bottom: 22px;
}
.field-upload-trigger {
  width: 100%;
  min-height: 58px;
  padding: 24px 16px 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}
.field-upload-trigger:hover,
.field-upload-trigger:focus-visible {
  border-color: var(--copper);
  background: var(--cream-soft);
  box-shadow: 0 0 0 3px rgba(188, 133, 82, 0.12);
  outline: none;
}
.field-upload.has-file .field-upload-trigger {
  border-color: var(--teal-deep);
  background: var(--cream-soft);
}

.upload-placeholder {
  color: var(--ink-soft);
  font-size: 13.5px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}
[dir="rtl"] .upload-placeholder {
  padding-right: 0;
  padding-left: 8px;
}

.upload-arrow-icon {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.field-upload-trigger:hover .upload-arrow-icon {
  transform: translateY(-2px);
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.upload-file-info .file-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-deep);
  flex-shrink: 0;
}
.upload-file-info .file-name {
  font-weight: 500;
  color: var(--teal-deep);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.upload-file-info .file-size {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--copper);
  flex-shrink: 0;
}
.btn-remove-file {
  background: rgba(188, 66, 66, 0.1);
  color: #a83232;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  margin-left: auto;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.btn-remove-file:hover {
  background: rgba(188, 66, 66, 0.22);
  transform: scale(1.08);
}
[dir="rtl"] .btn-remove-file {
  margin-left: 0;
  margin-right: auto;
}

/* Floating Label on field-upload */
.field-upload label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}
[dir="rtl"] .field-upload label {
  left: auto;
  right: 16px;
}
.field-upload.has-file label,
.field-upload.active-modal label {
  top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Secondary portfolio link toggle */
.field-link-toggle {
  margin-top: -12px;
  margin-bottom: 20px;
  text-align: right;
}
[dir="rtl"] .field-link-toggle {
  text-align: left;
}
.btn-text-link {
  background: none;
  border: none;
  color: var(--copper);
  font-size: 12.5px;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}
.btn-text-link:hover {
  color: var(--teal-deep);
}

/* ── DOCUMENT PICKER MODAL (Image 1) ─────────────────── */
.doc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 38, 33, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}
@media (min-width: 640px) {
  .doc-modal-backdrop {
    align-items: center;
    padding: 24px;
  }
}
.doc-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.doc-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 32px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
  .doc-modal-card {
    border-radius: 24px;
    padding: 28px 24px 28px;
    box-shadow: 0 20px 60px rgba(14, 38, 33, 0.24);
    transform: translateY(24px) scale(0.96);
  }
}
.doc-modal-backdrop.open .doc-modal-card {
  transform: translateY(0) scale(1);
}

.doc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1ede7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}
.doc-modal-close:hover {
  background: #e5ded4;
  transform: scale(1.06);
}
/* In RTL, close button is on top-left matching Image 1 */
[dir="rtl"] .doc-modal-close {
  right: auto;
  left: 18px;
}

.doc-modal-header {
  text-align: center;
  padding: 4px 38px 20px;
}
.doc-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.doc-modal-subtitle {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.doc-modal-options {
  background: #ffffff;
  border: 1px solid rgba(22, 56, 50, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(14, 38, 33, 0.04);
}

.doc-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(22, 56, 50, 0.08);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--teal-ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
}
/* In RTL, start is right, so icon is on right edge and text is next to it */
[dir="rtl"] .doc-option-btn {
  text-align: right;
}
.doc-option-btn:last-child {
  border-bottom: none;
}
.doc-option-btn:hover {
  background: rgba(188, 133, 82, 0.09);
  color: var(--teal-deep);
}
.doc-option-btn:active {
  background: rgba(188, 133, 82, 0.16);
}
.doc-option-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}
.doc-option-btn:hover .doc-option-icon {
  color: var(--copper);
  transform: scale(1.08);
}
.doc-option-icon svg {
  width: 24px;
  height: 24px;
}
.doc-option-text {
  flex: 1;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Scan option only for mobile / touch users */
.doc-option-scan {
  display: none !important;
}
@media (max-width: 860px), (pointer: coarse) {
  .doc-option-scan {
    display: flex !important;
  }
}

/* ============================================================
   LIVE CAMERA SCANNER MODAL (Mobile Document Scanner)
   ============================================================ */
.scanner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 38, 33, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.scanner-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.scanner-container {
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 880px;
  background: #000000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .scanner-container {
    height: 90vh;
    border-radius: 26px;
    border: 1px solid rgba(188, 133, 82, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  }
}

/* Topbar */
.scanner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(14, 38, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  z-index: 20;
}
.scanner-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.scanner-btn-close,
.scanner-btn-flip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 22px;
  line-height: 1;
}
.scanner-btn-close:hover,
.scanner-btn-flip:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}
.scanner-btn-flip svg {
  width: 20px;
  height: 20px;
}

/* Viewfinder */
.scanner-viewfinder {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanner-viewfinder video,
.scanner-viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reticle bounding box */
.scanner-reticle {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 8%;
  right: 8%;
  pointer-events: none;
  border: 1px dashed rgba(241, 233, 221, 0.35);
  border-radius: 16px;
}
.reticle-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--copper);
  border-style: solid;
}
.corner-tl { top: -2px; left: -2px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 12px; }
.corner-tr { top: -2px; right: -2px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 12px; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 12px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 12px; }

/* Laser sweep line */
.scanner-scanline {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--copper) 50%, transparent 100%);
  box-shadow: 0 0 12px var(--copper);
  animation: scannerSweep 2.4s ease-in-out infinite alternate;
}
@keyframes scannerSweep {
  0%   { top: 5%; opacity: 0.3; }
  50%  { opacity: 1; }
  100% { top: 95%; opacity: 0.3; }
}

/* Bottombar */
.scanner-bottombar {
  padding: 18px 24px 26px;
  background: rgba(14, 38, 33, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 20;
}
.scanner-hint {
  font-size: 13px;
  color: rgba(241, 233, 221, 0.78);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Shutter button */
.scanner-shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
  outline: none;
}
.scanner-shutter-btn:active {
  transform: scale(0.92);
}
.shutter-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  display: block;
  transition: background 0.15s ease;
}
.scanner-shutter-btn:hover .shutter-inner {
  background: var(--cream);
}

/* Preview action buttons */
.scanner-actions-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.scanner-actions-preview .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
}
.scanner-retake-btn {
  border: 1px solid rgba(241, 233, 221, 0.4);
  color: var(--cream);
  background: transparent;
}
.scanner-retake-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.scanner-actions-preview svg {
  width: 16px;
  height: 16px;
}

/* ── Button Loading Shimmer State ────────────────────── */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
  overflow: hidden;
}
.btn.loading::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.25) 50%,
    transparent 100%
  );
  animation: btnShimmer 1.2s ease infinite;
}
@keyframes btnShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── Floating Scroll-to-Top Button ───────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: var(--teal-deep);
  color: var(--cream);
  border: 1px solid rgba(188,133,82,0.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(14, 38, 33, 0.2);
}
.scroll-top.visible { opacity: 1; pointer-events: all; transform: none; }
.scroll-top:hover { background: var(--copper); color: #ffffff; border-color: var(--copper); }
[dir="rtl"] .scroll-top { right: auto; left: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--teal-ink); color: var(--cream-soft); padding: 88px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px;
  padding-bottom: 60px; border-bottom: 1px solid var(--line-on-dark);
}

/* Footer logo */
.footer-brand .footer-logo-wrap {
  display: inline-block;
  margin-bottom: 22px;
}
.footer-brand .footer-logo-wrap img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  display: block;
  transition: opacity 0.2s ease;
}
.footer-brand .footer-logo-wrap:hover img { opacity: 1; }
.footer-brand p { font-size: 13.5px; color: rgba(241,233,221,0.58); max-width: 32ch; line-height: 1.75; }

.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 22px; }
.footer-col a { display: block; font-size: 14px; color: rgba(241,233,221,0.62); margin-bottom: 13px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--copper-soft); }

.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a { width: 40px; height: 40px; border: 1px solid var(--line-on-dark); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.social-row a:hover { background: var(--copper); border-color: var(--copper); transform: translateY(-2px); }
.social-row svg { width: 15px; height: 15px; fill: var(--cream-soft); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 12px; color: rgba(241,233,221,0.38); flex-wrap: wrap; gap: 12px; }
@media (max-width:760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

.reveal-group > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-group.in > * { opacity: 1; transform: none; }
.reveal-group.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-group.in > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-group.in > *:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  padding: 7px 13px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--teal-deep);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--copper); color: var(--copper); }
.lang-sep { opacity: 0.3; font-size: 10px; }
.lang-opt { font-weight: 500; transition: color 0.2s; }
.lang-opt[data-active="true"] { color: var(--copper); font-weight: 700; }

/* ============================================================
   PROJECT CARDS  (reference-style card grid)
   ============================================================ */
.proj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .proj-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .proj-cards { grid-template-columns: 1fr; } }

.proj-card {
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

/* Image area */
.proj-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.proj-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: bottom;
  transition: transform 7s ease;
}
.proj-card:hover .proj-card-img img { transform: scale(1.06); }

/* Teaser (no image) */
.proj-card-img-teaser {
  background: var(--teal-ink);
}
.proj-teaser-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(241,233,221,0.04) 22px, rgba(241,233,221,0.04) 23px),
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(241,233,221,0.04) 22px, rgba(241,233,221,0.04) 23px);
}

/* Status badges */
.proj-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 2;
}
.proj-badge-construction { background: #f59e0b; color: #1a0d00; }
.proj-badge-upcoming     { background: rgba(241,233,221,0.12); border: 1px solid rgba(241,233,221,0.25); color: rgba(241,233,221,0.75); }
.proj-badge-future       { background: rgba(188,133,82,0.2); border: 1px solid rgba(188,133,82,0.35); color: var(--copper-soft); }

/* Card body */
.proj-card-body {
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}

/* Meta row: location + type (enlarged for legibility) */
.proj-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0.02em;
  color: var(--teal-deep); gap: 12px;
}
.proj-location {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal-deep); font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.proj-location svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--copper); transition: transform 0.2s ease; }
.proj-location-link { cursor: pointer; }
.proj-location-link:hover { color: var(--copper); }
.proj-location-link:hover svg { transform: translateY(-1px) scale(1.12); }
.proj-type {
  background: var(--cream-soft); border: 1px solid rgba(188, 133, 82, 0.35);
  padding: 5px 12px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap; border-radius: 2px;
}

/* Title */
.proj-card h3 {
  font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; color: var(--teal-deep);
  line-height: 1.15; margin: 0;
}
.proj-card-teaser h3 { color: rgba(241,233,221,0.85); }
.proj-card-teaser .proj-card-body { background: var(--teal-ink); color: var(--cream-soft); }
.proj-card-teaser .proj-card-meta { color: rgba(241,233,221,0.5); }
.proj-card-teaser .proj-type { background: rgba(241,233,221,0.06); border-color: rgba(241,233,221,0.12); color: rgba(241,233,221,0.5); }
.proj-card-far { opacity: 0.7; }
.proj-card-far:hover { opacity: 1; }

/* Progress bar */
.proj-card-progress { display: flex; flex-direction: column; gap: 6px; }
.proj-prog-bar { height: 2px; background: var(--line); position: relative; }
.proj-prog-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(to right, var(--teal-deep), var(--copper));
}
.proj-prog-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.06em;
}
.proj-pct { font-weight: 600; color: var(--copper); }

/* Spec chips */
.proj-card-specs {
  display: flex; gap: 0;
  border: 1px solid var(--line);
}
.proj-spec-item {
  flex: 1; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line);
}
[dir="rtl"] .proj-spec-item {
  border-right: none;
  border-left: 1px solid var(--line);
}
[dir="rtl"] .proj-spec-item:last-child {
  border-left: none;
}
.proj-spec-item:last-child { border-right: none; }
.proj-spec-item span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.proj-spec-item strong { font-size: 12px; font-weight: 600; color: var(--teal-deep); line-height: 1.25; }

/* Unit availability 2x3 grid */
.proj-card-unit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.proj-unit {
  padding: 6px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  border: 1px solid;
  white-space: nowrap;
}
.proj-unit-avail { background: rgba(188,133,82,0.1); border-color: var(--copper); color: var(--copper-soft); }
.proj-unit-reserved { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.proj-unit em { font-style: normal; font-size: 9px; opacity: 0.7; }

/* Teaser body text */
.proj-teaser-text {
  font-size: 13px; color: rgba(241,233,221,0.55); line-height: 1.65;
}

/* Card CTA link */
.proj-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--copper); margin-top: auto; padding-top: 4px;
  transition: gap 0.2s ease, opacity 0.2s;
  text-decoration: none;
}
.proj-card:hover .proj-card-cta,
a.proj-card-cta:hover { gap: 10px; opacity: 1; }
.proj-card-teaser .proj-card-cta { color: var(--copper-soft); }

/* Card Primary Button (Option selected from red guidelines) */
.proj-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 2px;
  text-decoration: none;
  margin-top: 10px;
  border: 1px solid rgba(188, 133, 82, 0.45);
  box-shadow: 0 4px 14px rgba(14, 38, 33, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.proj-card-btn:hover {
  background: var(--copper);
  color: #ffffff;
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(188, 133, 82, 0.32);
}
.proj-card-btn:active {
  transform: translateY(0);
}
[dir="rtl"] .proj-card-btn {
  letter-spacing: 0;
  font-size: 14.5px;
}
@media (max-width: 640px) {
  .proj-card-meta { font-size: 12px; gap: 8px; }
  .proj-type { font-size: 10.5px; padding: 4px 9px; }
  .proj-card-btn { font-size: 13px; padding: 11px 16px; }
}

/* RTL flips for card section */
[dir="rtl"] .proj-cards { direction: rtl; }
[dir="rtl"] .proj-badge { left: auto; right: 16px; }
[dir="rtl"] .proj-card-meta { flex-direction: row-reverse; }
[dir="rtl"] .proj-card-body { text-align: right; }
[dir="rtl"] .proj-card-unit-row { flex-direction: row-reverse; }




/* Left: image panel */
.ps-img-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.ps-img-panel img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
  transition: transform 9s ease;
}
.ps-img-panel:hover img { transform: scale(1.04); }

/* Status ribbon top-left */
.ps-status-ribbon {
  position: absolute; top: 20px; left: 20px;
  background: rgba(14,38,33,0.9);
  backdrop-filter: blur(10px);
  color: var(--cream-soft);
  padding: 9px 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
  z-index: 3;
}
.ps-live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
  animation: pulse 2.2s ease infinite;
}

/* Unit availability strip at bottom of image */
.ps-unit-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,38,33,0.9) 0%, transparent 100%);
  padding: 52px 20px 22px;
  display: flex; gap: 10px; flex-wrap: wrap;
  z-index: 3;
}
.ps-unit-chip {
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 9px;
  border: 1px solid; cursor: default;
  transition: transform 0.2s ease;
  text-transform: uppercase;
}
.ps-unit-chip:hover { transform: translateY(-2px); }
.ps-chip-id { font-weight: 600; }
.ps-unit-chip.available {
  background: rgba(188,133,82,0.18); border-color: var(--copper);
  color: var(--copper-soft);
}
.ps-unit-chip.reserved {
  background: rgba(255,255,255,0.06); border-color: rgba(241,233,221,0.3);
  color: rgba(241,233,221,0.55);
}
.ps-unit-chip em { font-style: normal; font-size: 10px; opacity: 0.8; }

/* Right: detail panel */
.ps-detail-panel {
  background: var(--cream);
  padding: 44px 40px 44px;
  display: flex; flex-direction: column; gap: 30px;
  border-left: 1px solid var(--line);
}
@media (max-width: 640px) { .ps-detail-panel { padding: 32px 22px; border-left: none; border-top: 1px solid var(--line); } }

/* Phase progress block */
.ps-phase-block { display: flex; flex-direction: column; gap: 8px; }
.ps-phase-header { display: flex; justify-content: space-between; align-items: baseline; }
.ps-phase-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--copper);
}
.ps-phase-pct {
  font-size: clamp(36px, 3.5vw, 52px); font-weight: 200; color: var(--teal-deep);
  letter-spacing: -0.03em; line-height: 1;
}
.ps-progress-bar {
  position: relative; height: 3px; background: var(--line);
}
.ps-progress-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(to right, var(--teal-deep), var(--copper));
  transition: width 1.4s ease;
}
.ps-progress-milestones {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-soft); letter-spacing: 0.04em;
}

/* Specs 2×2 grid */
.ps-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.ps-spec {
  background: var(--cream-soft); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 5px;
}
.ps-spec-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.ps-spec-value { font-size: 19px; font-weight: 600; color: var(--teal-deep); line-height: 1.1; }

/* Vertical construction timeline */
.ps-timeline {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 0;
}
.ps-milestone {
  display: flex; align-items: flex-start; gap: 16px;
  position: relative; padding-left: 24px;
}
.ps-milestone:not(:last-child) { padding-bottom: 18px; }
.ps-m-node {
  position: absolute; left: -5px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--cream);
  z-index: 1;
}
.ps-milestone.done .ps-m-node { background: var(--teal-deep); border-color: var(--teal-deep); }
.ps-milestone.active .ps-m-node {
  background: var(--copper); border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(188,133,82,0.22);
  animation: pulse 2s ease infinite;
}
.ps-m-content { display: flex; flex-direction: column; gap: 2px; }
.ps-m-label { font-size: 13.5px; font-weight: 500; color: var(--teal-deep); }
.ps-milestone:not(.done):not(.active) .ps-m-label { color: var(--ink-soft); font-weight: 400; }
.ps-m-date {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em;
}
.ps-m-date-live { color: var(--copper) !important; font-weight: 500; }

/* ============================================================
   FEATURES / RESIDENCE HIGHLIGHTS
   ============================================================ */
.features-section { background: var(--cream-soft); position: relative; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 38px 32px 34px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: 0 4px 20px rgba(14, 38, 33, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--copper));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 38, 33, 0.08);
}
.feature-card:hover::before { transform: scaleX(1); }

.feat-icon {
  width: 50px; height: 50px;
  border-radius: 6px;
  background: rgba(188,133,82,0.08);
  border: 1px solid rgba(188,133,82,0.22);
  color: var(--copper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.feat-icon svg { width: 24px; height: 24px; }

.feature-card:hover .feat-icon {
  background: var(--copper);
  color: #ffffff;
  border-color: var(--copper);
  transform: scale(1.06);
}

.feature-card h3 {
  font-size: 17px; font-weight: 600; color: var(--teal-deep);
  line-height: 1.3; margin: 0; letter-spacing: -0.01em;
}
.feature-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* ============================================================
   RTL SUPPORT  (Arabic — dir="rtl")
   ============================================================ */
[dir="rtl"] body { text-align: right; }

/* Nav (Desktop RTL only) */
@media (min-width: 861px) {
  [dir="rtl"] .nav-links { flex-direction: row-reverse; }
}
[dir="rtl"] .nav-cta .nav-arrow { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .nav-cta:hover .nav-arrow { transform: scaleX(-1) translateX(4px); }

/* Eyebrow line — reverse order */
[dir="rtl"] .eyebrow { flex-direction: row-reverse; }

/* Hero */
[dir="rtl"] .hero-left { text-align: right; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .hero-right::after {
  background: linear-gradient(to left, var(--cream) 0%, rgba(241,233,221,0) 28%);
}
@media (max-width: 959px) {
  [dir="rtl"] .hero-right::after {
    background: linear-gradient(to bottom, var(--cream) 0%, rgba(241,233,221,0) 20%, rgba(241,233,221,0) 80%, var(--cream) 100%);
  }
}

/* Sections */
[dir="rtl"] .section-head { text-align: right; }
[dir="rtl"] .section-head .eyebrow { justify-content: flex-end; }

/* Project status timeline */
[dir="rtl"] .ps-timeline { border-left: none; border-right: 1px solid var(--line); padding-left: 0; padding-right: 24px; }
[dir="rtl"] .ps-milestone { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .ps-m-node { left: auto; right: -5px; }
[dir="rtl"] .ps-phase-header { flex-direction: row-reverse; }
[dir="rtl"] .ps-detail-panel { text-align: right; border-left: none; border-right: 1px solid var(--line); }
[dir="rtl"] .ps-status-ribbon { left: auto; right: 20px; }
[dir="rtl"] .ps-unit-strip { flex-direction: row-reverse; }

/* Features */
[dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .feature-card::before { transform-origin: right; }

/* Pillars */
[dir="rtl"] .pillar { text-align: right; }
[dir="rtl"] .pillar::before { right: auto; left: 0; }

/* Footer */
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .footer-col a { text-align: right; }

/* Stats */
[dir="rtl"] .stats-grid { direction: rtl; }
[dir="rtl"] .stats-grid > div { border-right: none; border-left: 1px solid var(--line-on-dark); }
[dir="rtl"] .stats-grid > div:first-child { border-left: none; }