/* ==========================================================================
   Horizon Engineering Consulting — styles
   ========================================================================== */

:root {
  --navy: #0c2340;
  --navy-deep: #091b31;
  --navy-soft: #13304f;
  --ground: #f4f3ef;
  --ground-2: #eceae4;
  --white: #ffffff;
  --ink: #0e1d31;
  --ink-2: #2f3b4c;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .78);
  --teal: #2aa89a;
  --logo-ink: var(--navy);
  --logo-teal: var(--teal);

  --serif: "Libre Caslon Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[lang="ar"] {
  --serif: "Amiri", "Libre Caslon Display", Georgia, serif;
  --sans: "Tajawal", "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; font-size: 14px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.ico { width: 18px; height: 18px; flex: none; }
.arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

.br-d { display: inline; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.eyebrow i { font-style: normal; margin-inline: .7em; }
.eyebrow-light { color: var(--on-dark-2); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; font-weight: 500; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
}
.section-navy .section-title, .cta .section-title { color: var(--on-dark); }
html[lang="ar"] .section-title { line-height: 1.35; letter-spacing: 0; font-weight: 700; }

.section-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 560px;
}
.section-navy .section-lead { color: var(--on-dark-2); }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:hover .arrow, .link-arrow:hover .arrow, .arrow-btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .link-arrow:hover .arrow, [dir="rtl"] .arrow-btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--ground-2); border-color: var(--ground-2); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding-block: 6px;
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
[dir="rtl"] .link-arrow::after { transform-origin: right; }
.link-arrow:hover::after { transform: scaleX(1); }
.link-light { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(240, 242, 246, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(250, 250, 248, .96); box-shadow: 0 8px 30px rgba(12, 35, 64, .08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.brand .logo { width: 158px; height: auto; }
.site-footer .brand .logo { width: 176px; }
.brand-light .brand-sub { margin-top: 6px; }
.brand-sub { display: flex; flex-direction: column; line-height: 1.15; color: var(--navy); }
.brand-ar { font-family: "Tajawal", sans-serif; font-size: 9.5px; font-weight: 500; direction: rtl; }
.brand-en { font-size: 7.5px; font-weight: 500; letter-spacing: .02em; }
.brand-light { --logo-ink: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .85); }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.main-nav a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--navy); padding-block: 8px;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1.5px;
  background: var(--teal); transform: scaleX(0); transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); }
.lang-btn { padding: 4px 2px; opacity: .55; transition: opacity .25s; }
.lang-btn:hover, .lang-btn.is-active { opacity: 1; }
.lang-btn[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 14px; }
.lang-sep { opacity: .5; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--navy);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 920px;
  color: #fff; overflow: hidden; background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  transform: scale(1.08);
}
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
.hero-slide:nth-child(1) img { object-position: 70% 72%; }
.hero-slide:nth-child(2) img { object-position: 55% 72%; }
.hero-slide:nth-child(3) img { object-position: 60% 50%; }
.hero-slide:nth-child(4) img { object-position: 50% 30%; }
.hero-slide:nth-child(5) img { object-position: 60% 50%; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1.0); } }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 36, .9) 0%, rgba(7, 19, 36, .72) 32%, rgba(7, 19, 36, .25) 62%, rgba(7, 19, 36, .1) 100%),
    linear-gradient(0deg, rgba(7, 19, 36, .55) 0%, rgba(7, 19, 36, 0) 30%);
}
[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(270deg, rgba(7, 19, 36, .9) 0%, rgba(7, 19, 36, .72) 32%, rgba(7, 19, 36, .25) 62%, rgba(7, 19, 36, .1) 100%),
    linear-gradient(0deg, rgba(7, 19, 36, .55) 0%, rgba(7, 19, 36, 0) 30%);
}

.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-content .eyebrow { margin-bottom: 26px; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 5.6vw, 86px);
  line-height: 1.02; letter-spacing: -.015em;
  max-width: 12ch;
}
html[lang="ar"] .hero-title { line-height: 1.3; letter-spacing: 0; font-weight: 700; max-width: 14ch; }
.hero-lead { margin-top: 28px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 520px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-buttons .btn { min-width: 180px; }

.hero-bottom {
  position: absolute; inset-inline: 0; bottom: 34px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-pager { display: flex; align-items: center; gap: 20px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 32px; height: 24px; display: grid; align-items: center; }
.hero-dot span { display: block; height: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero-dot span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
[dir="rtl"] .hero-dot span::after { transform-origin: right; }
.hero-dot.is-done span::after { transform: scaleX(1); }
.hero-dot.is-active span::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero-count { white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.hero-count b { color: #fff; font-weight: 600; }

.watch { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.watch-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; position: relative;
  transition: transform .35s var(--ease);
}
.watch-icon::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  animation: pulse 2.6s var(--ease) infinite;
}
.watch:hover .watch-icon { transform: scale(1.08); }
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Intro: on arrival the camera flies into the villa ----------
   The inline script in index.html adds .intro-on and .intro-hold to <html> before
   the first paint; script.js plays the move (inline styles, so it runs even when
   the device asks for reduced motion), then removes both. */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 300; overflow: hidden; background: var(--navy-deep); }
/* hold the hero's own entrance until the intro hands over */
html.intro-hold .hero .reveal { opacity: 0; transform: translateY(24px); }
html.intro-hold .hero-slide img,
html.intro-hold .hero-dot span::after { animation-play-state: paused; }

/* 1. the villa from the street */
.intro-stage { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; }
/* taller than the screen and anchored low, so the logo printed in the photo's sky stays cropped off */
.intro-stage img { position: absolute; left: 0; bottom: 0; width: 100%; height: 125%; max-width: none; object-fit: cover; object-position: 66% 70%; }

/* 3. the room behind the door */
.intro-inside { position: absolute; inset: 0; overflow: hidden; opacity: 0; will-change: transform, opacity; }
.intro-inside img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* 2. the front door up close: dark stone like the facade, gold LED strips, a timber double door */
.intro-entry {
  --dh: min(78vh, 150vw); /* doorway height */
  --dw: calc(var(--dh) * .56); /* doorway width */
  position: absolute; inset: 0; opacity: 0;
  will-change: transform, opacity; /* keep the stone and wood textures as one layer while it scales */
}
.intro-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse calc(var(--dw) * .9) 34vh at 50% 0, rgba(255, 210, 150, .26), rgba(255, 210, 150, 0) 72%),
    linear-gradient(0deg, rgba(8, 8, 8, .92), rgba(16, 15, 14, .8) calc(50% - var(--dh) / 2), rgba(0, 0, 0, 0) calc(50% - var(--dh) / 2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #242322, #3b3937 50%, #242322);
  background-size: auto, auto, 220px 220px, 900px 900px, auto;
  /* cut the doorway out so the room behind shows through */
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-size: var(--dw) var(--dh), 100% 100%;
  -webkit-mask-position: center, 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-size: var(--dw) var(--dh), 100% 100%;
  mask-position: center, 0 0;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
.intro-led {
  position: absolute; top: 0; bottom: calc(50% - var(--dh) / 2); width: 3px;
  left: calc(50% - var(--dw) / 2 - min(9vh, 10vw));
  background: #ffe3b4; box-shadow: 0 0 10px 3px rgba(255, 205, 140, .85), 0 0 60px 14px rgba(255, 180, 100, .3);
}
.intro-led-r { left: auto; right: calc(50% - var(--dw) / 2 - min(9vh, 10vw)); }
.intro-frame {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--dw) + 2.4vh); height: calc(var(--dh) + 1.2vh);
  transform: translate(-50%, calc(-50% - .6vh));
  border: 1.2vh solid #1d1510; border-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 160, .22), 0 0 5vh rgba(255, 190, 120, .14);
}
.intro-doorway {
  position: absolute; left: 50%; top: 50%; width: var(--dw); height: var(--dh);
  transform: translate(-50%, -50%);
  perspective: calc(var(--dh) * 1.8);
}
.intro-leaf {
  position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  transform-origin: 0 50%;
  background:
    linear-gradient(180deg, rgba(255, 214, 160, .24), rgba(255, 214, 160, 0) 36%, rgba(0, 0, 0, .38)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .34) 0 1px, rgba(255, 236, 210, .05) 1px 2px, rgba(0, 0, 0, 0) 2px calc(var(--dw) / 14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5 .006' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 0 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #5b3820, #77492a 46%, #603b22);
  background-size: auto, auto, 300px 600px, auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
}
.intro-leaf-r { left: 50%; transform-origin: 100% 50%; }
/* darkens a leaf as it swings away from the light (opacity set by script.js) */
.intro-leaf::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); }
.intro-handle {
  position: absolute; top: 30%; height: 38%; width: max(5px, .7vh); right: 9%; border-radius: 99px;
  background: linear-gradient(90deg, #6f5127, #f2d7a2 45%, #9c7640);
  box-shadow: 0 0 1.4vh rgba(0, 0, 0, .55);
}
.intro-leaf-r .intro-handle { right: auto; left: 9%; }
/* warm light leaking between the leaves just before they open */
.intro-seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); opacity: 0;
  background: #fff4de; box-shadow: 0 0 1.6vh .5vh rgba(255, 222, 165, .9), 0 0 7vh 1.4vh rgba(255, 196, 120, .45);
}

.intro-shade { position: absolute; inset: 0 0 auto; height: 34%; background: linear-gradient(180deg, rgba(7, 19, 36, .6), rgba(7, 19, 36, 0)); }
.intro-vignette {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(7, 19, 36, 0) 35%, rgba(7, 19, 36, .85) 100%);
}
/* the light that pours out as the door opens */
.intro-flood {
  position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 38% 55% at 50% 50%, rgba(255, 246, 228, .95), rgba(255, 224, 176, .5) 45%, rgba(255, 210, 150, 0) 78%);
}

/* the logo sits where the header's logo will be */
.intro-top { position: absolute; inset: 0 0 auto; z-index: 2; height: var(--header-h); display: flex; align-items: center; }
.intro-logo { width: 158px; height: auto; }

/* the line that greets you once you're inside; the shade keeps it readable over the room */
.intro-welcome {
  position: absolute; inset: 0; z-index: 2; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--header-h) var(--gutter);
  background:
    radial-gradient(ellipse 46% 36% at 50% 50%, rgba(7, 19, 36, .58), rgba(7, 19, 36, 0) 100%),
    linear-gradient(0deg, rgba(7, 19, 36, .55), rgba(7, 19, 36, 0) 32%);
}
.intro-welcome .eyebrow { color: rgba(255, 255, 255, .82); }
.intro-welcome-title {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(36px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(7, 19, 36, .45);
}
html[lang="ar"] .intro-welcome-title { line-height: 1.35; letter-spacing: 0; font-weight: 700; }

.intro-skip {
  position: absolute; bottom: 30px; inset-inline-end: var(--gutter); z-index: 3;
  padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .45);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); transition: color .4s, border-color .4s;
}
.intro-skip:hover { color: #fff; border-color: #fff; }
html[lang="ar"] .intro-skip { letter-spacing: 0; font-size: 13px; }

/* ---------- Sections ---------- */
.section-light { background: var(--ground); }
.section-navy { background: var(--navy); color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.section-head .link-arrow { flex: none; margin-bottom: 4px; }

/* Services */
.services { padding-block: clamp(80px, 8vw, 118px) clamp(80px, 7vw, 110px); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-media {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9.4; overflow: hidden; text-align: start;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 20, 38, .72) 0%, rgba(8, 20, 38, .15) 45%, rgba(8, 20, 38, 0) 70%);
  transition: opacity .5s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-label {
  position: absolute; z-index: 2; inset-inline-start: 20px; bottom: 18px; inset-inline-end: 20px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 16px; font-weight: 500;
}
.service-icon {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-icon .ico { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: #fff; color: var(--navy); }
.service-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 8px 0; }
.service-body p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.arrow-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); flex: none; }

.more-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 44px; padding: 36px 32px; background: var(--ground-2);
}
.more-services:not([hidden]) { animation: fadeUp .6s var(--ease-out) both; }
.more-item h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.more-item p { font-size: 15px; color: var(--ink-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Projects */
.projects { padding-block: clamp(80px, 8vw, 118px); }
.projects .section-head { margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.filter {
  min-height: 40px; padding: 0 22px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85);
  border-radius: 2px; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filter:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.filter.is-active { background: #fff; color: var(--navy); font-weight: 600; }

.project-feature { display: grid; grid-template-columns: 1.85fr 1fr; gap: clamp(28px, 3.4vw, 48px); align-items: stretch; position: relative; }
.project-media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 8.6; background: var(--navy-soft); cursor: zoom-in; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .45s var(--ease); }
.project-media:hover img { transform: scale(1.04); }
.project-info { display: flex; flex-direction: column; padding-top: 4px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.project-feature.is-swapping .project-media img, .project-feature.is-swapping .project-info { opacity: 0; }
.project-feature.is-swapping .project-info { transform: translateY(10px); }
.project-info .eyebrow { margin-bottom: 14px; }
.project-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; }
html[lang="ar"] .project-name { font-weight: 700; line-height: 1.4; }
.project-loc { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--on-dark-2); }
.project-loc .ico { width: 16px; height: 16px; }
.project-desc {
  margin-top: 22px; padding-block: 22px; font-size: 15.5px; line-height: 1.7; color: var(--on-dark-2);
  border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.project-info > .link-arrow { margin-top: 20px; align-self: flex-start; }
.project-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 28px; }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), opacity .3s; opacity: .85; }
.thumb:hover img { transform: scale(1.08); opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .3s; }
.thumb:hover::after { border-color: rgba(255, 255, 255, .8); }
.project-empty {
  grid-column: 1 / -1; min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px;
  padding: 48px; background: var(--navy-soft);
}
.project-empty p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; max-width: 640px; }
.project-feature.is-empty .project-media, .project-feature.is-empty .project-info { display: none; }

/* About */
.about { padding-block: clamp(80px, 7vw, 100px) clamp(64px, 6vw, 84px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.about-media { aspect-ratio: 16 / 10; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.4s var(--ease-out); }
.about-media:hover img { transform: scale(1.04); }
.about-lead { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 560px; }
.about-text .btn { margin-top: 32px; }

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(48px, 5vw, 72px);
}
.features li { display: flex; align-items: center; gap: 18px; padding-inline-start: 18px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.f-ico { width: 40px; height: 40px; flex: none; color: var(--navy); transition: transform .5s var(--ease); }
.features li:hover .f-ico { transform: translateY(-3px) rotate(-4deg); }

/* Process */
.process { padding-block: clamp(72px, 7vw, 100px) clamp(64px, 6vw, 88px); }
.process .eyebrow { margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 4vw, 56px); counter-reset: step; }
.step { padding-inline-end: 28px; }
.step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 5px solid #fff; background: var(--navy); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); transition: box-shadow .4s var(--ease);
}
.step:hover .step-dot { box-shadow: 0 0 0 7px rgba(255, 255, 255, .12); }
.step-num { font-size: 15px; font-weight: 500; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.step-line { position: relative; flex: 1; height: 1px; margin-inline-start: 8px; background: rgba(255, 255, 255, .28); transform-origin: left; }
[dir="rtl"] .step-line { transform-origin: right; }
.step-line::after {
  content: ""; position: absolute; inset-inline-end: -1px; top: -3.5px; width: 8px; height: 8px;
  border-top: 1px solid rgba(255, 255, 255, .5); border-right: 1px solid rgba(255, 255, 255, .5); transform: rotate(45deg);
}
[dir="rtl"] .step-line::after { transform: rotate(-135deg); }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-2); }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(80px, 8vw, 120px); }
.cta-media { position: absolute; inset-block: 0; inset-inline-end: 0; width: 58%; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.05); will-change: transform; }
.cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, rgba(12, 35, 64, .7) 58%, rgba(12, 35, 64, .15) 80%, rgba(12, 35, 64, .05) 100%);
}
[dir="rtl"] .cta-scrim { background: linear-gradient(270deg, var(--navy) 0%, var(--navy) 42%, rgba(12, 35, 64, .7) 58%, rgba(12, 35, 64, .15) 80%, rgba(12, 35, 64, .05) 100%); }
.cta-content { position: relative; z-index: 2; }
.cta .section-title { font-size: clamp(36px, 4vw, 58px); }
.cta-lead { margin-top: 22px; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 480px; }

/* Contact page */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy-deep); color: #fff;
  padding-block: calc(var(--header-h) + clamp(72px, 9vw, 130px)) clamp(64px, 7vw, 104px);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: kenburns 14s linear forwards; }
.page-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 36, .9) 0%, rgba(7, 19, 36, .7) 45%, rgba(7, 19, 36, .35) 100%); }
[dir="rtl"] .page-hero-scrim { background: linear-gradient(270deg, rgba(7, 19, 36, .9) 0%, rgba(7, 19, 36, .7) 45%, rgba(7, 19, 36, .35) 100%); }
.page-hero-content { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .72); margin-bottom: 22px; }
.crumbs a { color: #fff; transition: opacity .25s; }
.crumbs a:hover { opacity: .75; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.015em; }
html[lang="ar"] .page-title { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.page-lead { margin-top: 22px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 520px; }

.contact { padding-block: clamp(80px, 8vw, 118px); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 44px; display: grid; gap: 34px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; transition: transform .4s var(--ease); }
.contact-icon .ico { width: 22px; height: 22px; }
.contact-item:hover .contact-icon { transform: translateY(-3px); }
.contact-item h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
html[lang="ar"] .contact-item h3 { letter-spacing: 0; font-size: 14px; }
.contact-value { font-family: var(--serif); font-style: normal; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.35; color: var(--navy); }
html[lang="ar"] .contact-value { font-family: var(--sans); font-weight: 500; font-size: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 8px; }

.contact-form { display: grid; gap: 16px; background: #fff; padding: clamp(28px, 3vw, 44px); box-shadow: 0 30px 60px -30px rgba(12, 35, 64, .25); }
.contact-form-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; color: var(--navy); }
html[lang="ar"] .contact-form-title { font-weight: 700; line-height: 1.4; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { background: var(--ground); border-color: var(--ground-2); }
.contact-form .btn { margin-top: 6px; }
.form-note { font-size: 14px; font-weight: 500; color: var(--navy); background: var(--ground); padding: 12px 14px; border-inline-start: 3px solid var(--teal); }

.map-section { padding-block: clamp(64px, 6vw, 96px) 0; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.map-frame { height: clamp(340px, 42vw, 520px); background: var(--navy-soft); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* Services page */
.svc-rows { padding-block: clamp(80px, 8vw, 120px); }
.svc-rows .container { display: grid; gap: clamp(80px, 9vw, 130px); }
.svc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5.5vw, 88px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.svc-row:hover .svc-row-media img { transform: scale(1.04); }
.svc-row-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 22px; }
.svc-row-icon .ico { width: 24px; height: 24px; }
.svc-row-lead { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 520px; }
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--navy); }
.ticks .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.svc-row-text .btn { margin-top: 32px; }

.svc-more { background: var(--ground-2); padding-block: clamp(72px, 7vw, 104px); }
.svc-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.svc-more-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: start;
  background: var(--ground); padding: 32px 28px; transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.svc-more-item:hover { background: #fff; transform: translateY(-4px); }
.svc-more-item h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--navy); }
html[lang="ar"] .svc-more-item h3 { font-weight: 700; line-height: 1.4; }
.svc-more-item p { font-size: 15px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.svc-more-item .link-arrow { margin-top: 6px; }
.svc-more-item:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .svc-more-item:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* Projects page */
.page-hero-short { padding-bottom: clamp(56px, 6vw, 88px); }
.gallery { padding-block: clamp(56px, 6vw, 88px) clamp(88px, 9vw, 130px); }
.filters-light { margin-bottom: clamp(36px, 4vw, 52px); }
.filters-light .filter { color: var(--ink-2); }
.filters-light .filter:hover { background: var(--ground-2); color: var(--navy); }
.filters-light .filter.is-active { background: var(--navy); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 56px) clamp(20px, 2.2vw, 32px); }
.pcard { animation: fadeUp .7s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.pcard-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); cursor: zoom-in; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 35, 64, 0); transition: background-color .45s var(--ease); }
.pcard-media:hover img { transform: scale(1.05); }
.pcard-media:hover::after { background: rgba(12, 35, 64, .12); }
.pcard-count {
  position: absolute; z-index: 2; inset-inline-start: 14px; bottom: 14px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; background: rgba(12, 35, 64, .82);
}
.pcard-body { padding-top: 20px; }
.pcard-cat { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
html[lang="ar"] .pcard-cat { letter-spacing: 0; font-size: 13.5px; }
.pcard-name { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 28px); line-height: 1.15; color: var(--navy); }
html[lang="ar"] .pcard-name { font-weight: 700; line-height: 1.4; }
.pcard-loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.pcard-loc .ico { width: 15px; height: 15px; }
.grid-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 48px; background: var(--ground-2); }
.grid-empty p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--navy); max-width: 640px; }

.lb-desc { flex-basis: 100%; max-width: 640px; margin: 4px auto 0; font-size: 14.5px; line-height: 1.6; text-align: center; color: rgba(255, 255, 255, .72); }
.lightbox.is-single .lb-nav { visibility: hidden; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #fff; padding-block: 48px 30px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.6vw, 38px); }
.footer-nav a { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); transition: color .25s; }
.footer-nav a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; color: rgba(255, 255, 255, .9); transition: background-color .3s, color .3s; border-radius: 50%; }
.social a:hover { background: #fff; color: var(--navy); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.footer-address { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); transition: color .25s; }
.footer-address:hover { color: #fff; }
.footer-address address { font-style: normal; }
.footer-address .ico { width: 16px; height: 16px; }
@media (max-width: 1100px) { .footer-bottom { flex-wrap: wrap; } }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6, 15, 28, .78); }
dialog[open] { animation: dialogIn .4s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.modal { width: min(520px, calc(100% - 32px)); background: var(--ground); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-card { position: relative; padding: 40px 36px 36px; display: grid; gap: 16px; }
.modal-card .eyebrow { margin-bottom: 0; }
.modal-title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--navy); }
html[lang="ar"] .modal-title { font-weight: 700; line-height: 1.4; }
.modal-lead { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 15px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #d5d8de; border-radius: 2px; padding: 12px 14px;
  transition: border-color .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 35, 64, .12); }
.modal .btn { margin-top: 8px; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; background: transparent; display: none; place-items: center; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px; }
.lightbox::backdrop { background: rgba(5, 12, 22, .94); }
.lb-figure { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; transition: opacity .3s; }
.lb-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: #fff; font-size: 14px; }
.lb-figure figcaption b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.lb-figure figcaption span { color: rgba(255, 255, 255, .7); align-self: center; }
.lb-count { font-variant-numeric: tabular-nums; }
.lb-close { position: fixed; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 50%; transition: background-color .25s; }
.lb-nav { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border-radius: 50%; transition: background-color .25s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .12); }
.lb-nav .ico { width: 26px; height: 26px; }
.lb-next .ico { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .ico { transform: scaleX(-1); }
[dir="rtl"] .lb-next .ico { transform: none; }

body.no-scroll { overflow: hidden; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step .step-line { transform: scaleX(0); transition: transform 1s var(--ease-out) .35s; }
.js .step.is-in .step-line { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
  .header-actions .btn-sm { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--ground);
    box-shadow: 0 24px 40px rgba(12, 35, 64, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-size: 18px; padding-block: 14px; border-bottom: 1px solid var(--ground-2); }
  .main-nav a::after { display: none; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; }
  .service-card:last-child .service-media { aspect-ratio: 16 / 7; }
  .more-services { grid-template-columns: 1fr; }

  .project-feature { grid-template-columns: 1fr; }
  .project-thumbs { margin-top: 0; }

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

  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(2) .step-line { display: none; }

  .cta-media { width: 100%; opacity: .45; }
  .cta-scrim { background: linear-gradient(90deg, rgba(12, 35, 64, .95) 0%, rgba(12, 35, 64, .75) 60%, rgba(12, 35, 64, .5) 100%); }
  [dir="rtl"] .cta-scrim { background: linear-gradient(270deg, rgba(12, 35, 64, .95) 0%, rgba(12, 35, 64, .75) 60%, rgba(12, 35, 64, .5) 100%); }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .svc-more-grid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .br-d { display: none; }
  .brand .logo { width: 128px; }
  .brand-sub { display: none; }
  .site-footer .brand-sub { display: flex; }
  .header-actions { gap: 10px; }

  .hero { min-height: 620px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(7, 19, 36, .92) 0%, rgba(7, 19, 36, .7) 45%, rgba(7, 19, 36, .45) 100%); }
  [dir="rtl"] .hero-scrim { background: linear-gradient(0deg, rgba(7, 19, 36, .92) 0%, rgba(7, 19, 36, .7) 45%, rgba(7, 19, 36, .45) 100%); }
  .hero-title { font-size: clamp(40px, 11.5vw, 54px); }
  .hero-lead { font-size: 16px; }
  .hero-buttons .btn { flex: 1 1 140px; min-width: 0; padding-inline: 16px; }
  .hero-bottom { bottom: 22px; }
  .hero-dot { width: 22px; }
  .intro-logo { width: 128px; }
  .intro-skip { bottom: 22px; }
  .watch span:last-child { display: none; }
  .hero-content .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .hero-content .eyebrow i { margin-inline: .35em; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-card:last-child .service-media { aspect-ratio: 16 / 9.4; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 0 16px; }
  .project-media { aspect-ratio: 4 / 3; }
  .project-empty { padding: 32px 24px; }

  .features { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .features li { flex-direction: column; align-items: flex-start; padding-inline-start: 0; gap: 12px; font-size: 14px; }

  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { padding-inline-end: 0; }
  .step-line { display: none; }

  .cta-lead { font-size: 16px; }
  .cta .hero-buttons .btn { flex-basis: 100%; }
  .pgrid { grid-template-columns: 1fr; }
  .grid-empty { padding: 32px 24px; }
  .page-hero-scrim, [dir="rtl"] .page-hero-scrim { background: rgba(7, 19, 36, .78); }
  .contact-item { gap: 16px; }
  .contact-icon { width: 44px; height: 44px; }
  .map-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-address { align-items: flex-start; }
  .footer-address .ico { margin-top: 3px; }
  .modal-card { padding: 36px 22px 24px; }
  .modal-title { font-size: 30px; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 64px 12px 24px; }
  .lb-nav { position: fixed; bottom: 18px; }
  .lb-prev { inset-inline-start: 18px; }
  .lb-next { inset-inline-end: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide.is-active img, .page-hero-media img { animation: none; transform: none; }
  .pcard { animation: none; }
}
