/* =========================================================
   AMR — Ahmed Alraddadi Engineering Consultancy
   Premium warm-tone architectural aesthetic
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Warm neutrals */
  --ivory:        #f6efe4;
  --ivory-2:      #efe6d6;
  --cream:        #faf6ee;
  --paper:        #fdfaf4;
  --beige:        #e8dcc6;

  /* Browns */
  --brown-50:     #f0e7d8;
  --brown-100:    #d8c4a3;
  --brown-300:    #a98763;
  --brown-500:    #7a5535;
  --brown-700:    #5a3a1f;
  --brown-900:    #2e1c0c;

  /* Gold */
  --gold:         #b08a4a;
  --gold-2:       #c9a25f;
  --gold-soft:    #d9b97a;

  /* Text */
  --text:         #2e1c0c;
  --text-soft:    #6b4f30;
  --text-mute:    #8a7556;
  --line:         #e3d6ba;
  --line-soft:    #ece1c8;

  /* Surfaces */
  --bg:           var(--ivory);
  --bg-2:         var(--cream);
  --surface:      #fbf6ec;
  --surface-2:    #f4ead6;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(46, 28, 12, 0.04), 0 2px 6px rgba(46, 28, 12, 0.04);
  --shadow-md: 0 8px 24px rgba(46, 28, 12, 0.08), 0 2px 6px rgba(46, 28, 12, 0.05);
  --shadow-lg: 0 30px 60px rgba(46, 28, 12, 0.14), 0 8px 18px rgba(46, 28, 12, 0.06);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-ar:    'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --bg:        #1a120a;
  --bg-2:      #221710;
  --surface:   #251a10;
  --surface-2: #2c1f14;
  --ivory:     #1a120a;
  --ivory-2:   #221710;
  --cream:     #1f1610;
  --paper:     #251a10;
  --beige:     #2c1f14;

  --text:      #f3e7d2;
  --text-soft: #d6c2a0;
  --text-mute: #a78b66;
  --line:      #3a2a1a;
  --line-soft: #2c1f14;

  --brown-50:  #2c1f14;
  --brown-100: #4a3520;
  --brown-300: #a98763;
  --brown-500: #c9a25f;
  --brown-700: #e3cfa6;
  --brown-900: #f3e7d2;

  --gold:      #c9a25f;
  --gold-2:    #d9b97a;
  --gold-soft: #b08a4a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.55), 0 8px 18px rgba(0,0,0,0.35);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

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

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: 14px;
  background: transparent;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-block: 10px;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, color-mix(in oklab, var(--gold) 10%, transparent), transparent);
  transition: transform 0.4s var(--ease);
}
.logo-mark--sm { width: 44px; height: 44px; font-size: 15px; }
.nav__logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text__ar { font-weight: 600; color: var(--text); font-size: 15px; }
.logo-text__sub { color: var(--text-soft); font-size: 12px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-inline-start: 6px;
  color: var(--text-soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.nav__burger span {
  position: absolute;
  inset-inline-start: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  letter-spacing: 0;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn--primary {
  background: var(--brown-700);
  color: var(--ivory);
  border-color: var(--brown-700);
}
.btn--primary:hover {
  background: var(--brown-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn:hover svg { transform: translateX(-4px); }

/* ---------- EYEBROW + SECTION HEAD ---------- */
.section__eyebrow, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section__eyebrow-line, .eyebrow__line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__head .section__eyebrow { justify-content: center; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.section__title-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  font-size: 0.7em;
  margin-top: 4px;
}
.section__sub {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.95);
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      color-mix(in oklab, var(--bg) 95%, transparent) 0%,
      color-mix(in oklab, var(--bg) 75%, transparent) 40%,
      color-mix(in oklab, var(--brown-900) 35%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 60%, transparent) 0%,
      color-mix(in oklab, var(--bg) 30%, transparent) 100%);
}
[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(90deg,
      color-mix(in oklab, #1a120a 95%, transparent) 0%,
      color-mix(in oklab, #1a120a 80%, transparent) 40%,
      color-mix(in oklab, #000 60%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in oklab, #1a120a 50%, transparent) 0%,
      color-mix(in oklab, #1a120a 30%, transparent) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--gold) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--gold) 12%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner {
  position: relative;
  width: 100%;
}
.hero__content { max-width: 760px; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__title-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  font-size: 0.75em;
  margin-top: 4px;
}
.hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.85;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 60px;
}
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 600px;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
}
.hero__meta-num {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 20%, transparent);
}
.hero__meta-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}
.hero__scroll {
  position: absolute;
  bottom: -10px;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.75;
}
.hero__scroll-line {
  display: inline-block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- STRIP / MARQUEE ---------- */
.strip {
  background: var(--brown-900);
  color: var(--ivory);
  padding-block: 22px;
  overflow: hidden;
  border-block: 1px solid color-mix(in oklab, var(--gold) 30%, transparent);
}
[data-theme="dark"] .strip {
  background: #110a05;
}
.strip__track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.strip__row {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: strip 40s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ivory);
  flex-shrink: 0;
  padding-inline: 20px;
}
.strip__row span { display: inline-block; }
.strip__dot { color: var(--gold); font-style: normal; font-size: 10px; }
@keyframes strip {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding-block: clamp(80px, 10vw, 130px);
  position: relative;
}

/* ---------- ABOUT ---------- */
.about {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about__media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.about__media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about__media:hover .about__media-frame img { transform: scale(1.06); }
.about__media-accent {
  position: absolute;
  top: 30px;
  inset-inline-end: -30px;
  width: 70%;
  height: 70%;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: 1;
}
.about__chip {
  position: absolute;
  bottom: 30px;
  inset-inline-start: -30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  min-width: 220px;
}
.about__chip-line { width: 3px; height: 36px; background: var(--gold); border-radius: 2px; }
.about__chip strong { display: block; font-family: var(--font-serif); color: var(--gold); font-size: 22px; }
.about__chip span { font-size: 12.5px; color: var(--text-soft); }

.about__lead {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 40px;
  max-width: 560px;
}
.about__points { display: grid; gap: 22px; }
.about__points li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.about__points li:last-child { border-bottom: 1px solid var(--line); }
.about__points-num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 36px;
}
.about__points h3 { color: var(--text); margin-bottom: 6px; font-size: 17px; }
.about__points p { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

/* ---------- SERVICES ---------- */
.services { background: var(--bg-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--gold) 50%, var(--line));
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--gold) 10%, transparent);
  color: var(--gold);
  margin-bottom: 24px;
  transition: background 0.4s, color 0.4s;
}
.service-card:hover .service-card__icon {
  background: var(--gold);
  color: var(--ivory);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}
.service-card__list { display: grid; gap: 10px; }
.service-card__list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ---------- PROJECTS ---------- */
.projects { background: var(--bg); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 22px;
}
.project {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.6s var(--ease);
}
.project--lg {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s;
}
.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.project:hover img { transform: scale(1.08); }
.project:hover { box-shadow: var(--shadow-lg); }
.project:hover .project__overlay { opacity: 1; }
.project__tag {
  color: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}
.project__zoom {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  transition: transform 0.4s var(--ease);
}
.project__zoom svg { width: 18px; height: 18px; }
.project:hover .project__zoom { transform: scale(1.1); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  max-width: min(1100px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__caption {
  color: var(--ivory);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.lightbox__close { top: 30px; inset-inline-end: 30px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { inset-inline-end: 30px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { inset-inline-start: 30px; top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }

/* ---------- COVERAGE ---------- */
.coverage { background: var(--bg-2); }
.coverage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.coverage__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
}
.coverage__col::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.coverage__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.coverage__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}
.coverage__head h3 {
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}
.coverage__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-bottom: 22px;
}
.coverage__list li {
  position: relative;
  padding: 8px 0 8px 14px;
  color: var(--text-soft);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.coverage__list li::before {
  content: '◆';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  color: var(--gold);
  font-size: 7px;
}
.coverage__note {
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
}

/* ---------- WHY US ---------- */
.why { background: var(--bg); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
  overflow: hidden;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--gold) 50%, var(--line));
  box-shadow: var(--shadow-md);
}
.why-card__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1;
}
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}
.why-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}
.why-card__line {
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}
.why-card:hover .why-card__line { transform: scaleX(1); }

/* ---------- CONTACT ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__text .section__title { text-align: right; }
.contact__text .section__eyebrow { justify-content: flex-start; }
.contact__list {
  margin-block: 36px 32px;
  display: grid;
  gap: 18px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  color: var(--gold);
  flex-shrink: 0;
}
.contact__icon svg { width: 18px; height: 18px; }
.contact__label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact__value {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
  transition: color 0.3s;
}
a.contact__value:hover { color: var(--gold); }
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.contact__card {
  background: var(--brown-900);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: sticky;
  top: 110px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--gold) 30%, transparent), transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .contact__card {
  background: #110a05;
  border: 1px solid var(--line);
}
.contact__card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}
.contact__card-head .logo-mark {
  background: transparent;
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.contact__card-head strong { display: block; font-size: 17px; color: var(--ivory); }
.contact__card-head span { font-size: 13px; color: color-mix(in oklab, var(--ivory) 60%, transparent); }
.contact__card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ivory);
  line-height: 1.4;
  margin-bottom: 36px;
  position: relative;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--gold);
}
.contact__card-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-block: 1px solid color-mix(in oklab, var(--ivory) 18%, transparent);
  margin-bottom: 28px;
  position: relative;
}
.contact__card-info > div { display: flex; flex-direction: column; gap: 6px; }
.contact__card-info span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ivory) 60%, transparent);
}
.contact__card-info strong { font-size: 13.5px; color: var(--ivory); font-weight: 500; }
.contact__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--gold);
  color: #1a120a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s, transform 0.4s var(--ease);
  position: relative;
}
.contact__map-btn:hover { background: var(--gold-2); transform: translateY(-2px); }
.contact__map-btn svg { width: 18px; height: 18px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--brown-900);
  color: var(--ivory);
  padding-block: 80px 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
[data-theme="dark"] .footer {
  background: #0a0604;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid color-mix(in oklab, var(--ivory) 15%, transparent);
}
.footer__brand .nav__logo--footer { color: var(--ivory); margin-bottom: 18px; }
.footer__brand .logo-text__ar { color: var(--ivory); }
.footer__brand .logo-text__sub { color: color-mix(in oklab, var(--ivory) 60%, transparent); }
.footer__about {
  color: color-mix(in oklab, var(--ivory) 65%, transparent);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 360px;
}
.footer__col h4 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  color: color-mix(in oklab, var(--ivory) 75%, transparent);
  font-size: 14px;
  transition: color 0.3s, padding 0.3s;
  display: inline-block;
}
.footer__col a:hover { color: var(--gold); padding-inline-start: 4px; }
.footer__contact li { color: color-mix(in oklab, var(--ivory) 75%, transparent); font-size: 14px; line-height: 1.6; }
.footer__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  transition: background 0.3s, color 0.3s;
}
.footer__map:hover { background: var(--gold); color: #1a120a; }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: color-mix(in oklab, var(--ivory) 55%, transparent);
  font-size: 13px;
}
.footer__signature { font-family: var(--font-serif); font-style: italic; color: var(--gold); }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal[data-reveal="up"]    { transform: translateY(36px); }
.reveal[data-reveal="left"]  { transform: translateX(40px); }
.reveal[data-reveal="right"] { transform: translateX(-40px); }
.reveal.is-in { opacity: 1; transform: translate(0, 0); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { transform: none; }
  .strip__row { animation: none; }
  .hero__scroll-line { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__media { max-width: 520px; margin: 0 auto; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav__burger { display: inline-grid; place-items: center; }
  .nav__links {
    position: fixed;
    top: 70px;
    inset-inline-end: 0;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-inline-start: 1px solid var(--line);
    padding: 20px;
    gap: 0;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,0.06);
    overflow-y: auto;
  }
  [dir="rtl"] .nav__links.is-open { transform: translateX(0); }
  .nav__link {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav__link::after { display: none; }
  .theme-toggle { margin: 18px auto 0; }

  .hero { min-height: 90vh; }
  .hero__title { font-size: clamp(34px, 9vw, 50px); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__meta-divider { display: none; }
  .hero__scroll { display: none; }

  .section__head { margin-bottom: 48px; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 26px; }

  .projects__grid { grid-template-columns: 1fr; }
  .project, .project--lg { aspect-ratio: 4/5; grid-column: auto; grid-row: auto; }

  .coverage__grid { grid-template-columns: 1fr; }
  .coverage__col { padding: 32px 24px; }
  .coverage__list { grid-template-columns: 1fr; }

  .why__grid { grid-template-columns: 1fr; }

  .contact__card { position: static; padding: 36px 28px; }
  .contact__card-info { grid-template-columns: 1fr; gap: 14px; }
  .contact__card-quote { font-size: 22px; }
  .contact__cta { flex-direction: column; align-items: stretch; }
  .contact__cta .btn { justify-content: center; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .about__media-accent { inset-inline-end: -15px; top: 15px; }
  .about__chip { inset-inline-start: 0; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-mark { width: 42px; height: 42px; font-size: 14px; }
  .section__title { font-size: 28px; }
  .section__title-accent { font-size: 0.85em; }
}
