/* BCG (bcg-sy.com) — one stylesheet for both directions (logical properties throughout). */

:root {
  --navy-950: #101a2d;
  --navy-900: #16223a;
  --navy-800: #1f2f4a;
  --navy-700: #2c4061;
  --navy-600: #3a5375; /* logo background */
  --cyan: #0cc0df; /* logo wordmark */
  --cyan-soft: #e3f7fb;
  --teal: #0a7289; /* cyan that passes contrast on white */
  --ink: #1b2536;
  --muted: #56657c;
  --line: #dfe6ee;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgb(16 26 45 / 0.25);
  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --header-h: 72px;
}

:root:lang(ar) {
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-head: var(--font);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body { line-height: 1.9; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; letter-spacing: 0.005em; }
:lang(ar) :is(h1, h2, h3, h4) { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir='rtl'] .icon--dir { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--cyan); color: var(--navy-950); font-weight: 600; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: var(--navy-950); }
.btn--primary:hover { background: #35d0ea; }
.btn--ghost { border-color: rgb(255 255 255 / 0.35); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 0.6em 1.15em; font-size: 0.95rem; }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: rgb(22 34 58 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block-end: 1px solid rgb(255 255 255 / 0.08); color: #fff;
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; min-width: 0; }
.brand img { width: auto; height: 38px; }
.brand__name {
  padding-inline-start: 0.85rem; border-inline-start: 1px solid rgb(255 255 255 / 0.25);
  font-size: 0.9rem; font-weight: 500; line-height: 1.3; color: rgb(255 255 255 / 0.85); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav ul { display: flex; gap: 1.5rem; }
.nav ul a {
  position: relative; padding-block: 0.4rem; font-size: 0.98rem; font-weight: 500;
  color: rgb(255 255 255 / 0.85); text-decoration: none;
}
.nav ul a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--cyan);
  transform: scaleX(0); transition: transform 0.2s ease;
}
.nav ul a:hover { color: #fff; }
.nav ul a:hover::after { transform: scaleX(1); }
.lang {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none; color: #fff;
}
.lang:hover { border-color: var(--cyan); color: var(--cyan); }
.lang:lang(ar) { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; color: #fff; padding-block: clamp(3rem, 7vw, 6rem) 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(1000px 520px at 85% -10%, rgb(12 192 223 / 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%, var(--navy-600));
}
[dir='rtl'] .hero {
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(1000px 520px at 15% -10%, rgb(12 192 223 / 0.22), transparent 60%),
    linear-gradient(200deg, var(--navy-900), var(--navy-700) 70%, var(--navy-600));
}
.hero__in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
:lang(ar) :is(.eyebrow, .kicker) { letter-spacing: 0; font-size: 1rem; }
.eyebrow::before, .kicker::before { content: ''; width: 2.2rem; height: 2px; background: currentColor; }
.eyebrow, .section--dark .kicker { color: var(--cyan); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; text-wrap: balance; }
:lang(ar) .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.accent { display: block; color: var(--cyan); }
.hero__lead { max-width: 36rem; margin: 1.4rem 0 2.2rem; font-size: 1.2rem; color: rgb(255 255 255 / 0.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; aspect-ratio: 1 / 0.92; }
.shot { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 50px -18px rgb(0 0 0 / 0.6); border: 3px solid rgb(255 255 255 / 0.12); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--a { inset-block-start: 0; inset-inline-end: 0; width: 74%; height: 64%; }
.shot--b { inset-block-end: 0; inset-inline-start: 0; width: 56%; height: 46%; }
.shot--c { inset-block-end: 4%; inset-inline-end: 4%; width: 36%; height: 28%; }
.hero__badge {
  position: absolute; inset-block-start: 8%; inset-inline-start: 2%; width: 34%; aspect-ratio: 1;
  display: grid; place-items: center; padding: 3%;
  border-radius: 50%; background: var(--navy-600); box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.65);
}
.hero__badge img { width: 100%; height: auto; }

.stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-block-start: clamp(2.5rem, 6vw, 4.5rem); transform: translateY(50%);
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 1.6rem 1.8rem; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat dt { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--navy-600); }
:lang(ar) .stat dt { line-height: 1.4; font-size: 2.1rem; }
.stat dd { margin-block-start: 0.2rem; font-size: 0.98rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
/* The stats card hangs halfway into the next section: make room, and land anchor jumps below it */
.hero + .section { padding-block-start: clamp(7rem, 13vw, 10.5rem); scroll-margin-top: -4rem; }
.section--tint { background: var(--tint); }
.section--dark {
  color: #fff;
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.section__head { max-width: 46rem; margin-block-end: clamp(2rem, 4vw, 3.2rem); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; text-wrap: balance; }
:lang(ar) .section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lead { margin: 1rem 0 0; font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: rgb(255 255 255 / 0.75); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__text h2 { margin-block-end: 1.4rem; }
.about__text p { color: #334158; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; margin-block-start: 2rem; padding-block-start: 1.6rem; border-block-start: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.facts dd { font-weight: 600; color: var(--navy-700); }
.vision { position: relative; padding-block-end: 4.5rem; }
.vision__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.vision__photo img { width: 100%; height: 100%; object-fit: cover; }
.vision__card {
  position: absolute; inset-block-end: 0; inset-inline: 8% -4%;
  padding: 1.6rem 1.8rem; color: #fff; background: var(--navy-600); border-radius: var(--radius);
  border-inline-start: 5px solid var(--cyan); box-shadow: var(--shadow);
}
.vision__card h3 { margin-block-end: 0.5rem; font-size: 1.35rem; color: var(--cyan); }
.vision__card p { margin: 0; font-size: 1rem; color: rgb(255 255 255 / 0.9); }

/* Services */
/* 9 services: 3×3, then 2 columns with the last card spanning the row */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  display: flex; flex-direction: column; padding: 1.7rem 1.5rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 1.2rem; }
.service__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; color: var(--teal); background: var(--cyan-soft); border-radius: 12px; transition: background-color 0.2s, color 0.2s; }
.service:hover .service__icon { color: var(--navy-950); background: var(--cyan); }
.service__icon .icon { width: 1.6rem; height: 1.6rem; }
.service__num { font-family: 'Barlow Condensed', var(--font-head); font-size: 1.6rem; font-weight: 700; color: #cbd5e1; }
.service h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy-800); }
:lang(ar) .service h3 { font-size: 1.15rem; }
/* Title in the other language: opposite direction, but aligned with the card's start edge */
.service__alt { margin: 0.3rem 0 0.8rem; font-size: 0.85rem; font-weight: 500; color: var(--teal); }
.service__alt:lang(ar) { font-family: 'Segoe UI', Tahoma, sans-serif; }
html[dir='rtl'] .service__alt { text-align: right; }
html[dir='ltr'] .service__alt { text-align: left; }
.service p:last-child { margin: 0; font-size: 0.98rem; color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; counter-reset: none; }
.project { display: flex; gap: 1.2rem; align-items: flex-start; padding-block: 1.3rem; border-block-end: 1px solid rgb(255 255 255 / 0.1); }
.project__num { flex: none; min-width: 2.4rem; font-family: 'Barlow Condensed', var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--cyan); }
.project h3 { font-family: var(--font); font-size: 1.08rem; font-weight: 500; line-height: 1.5; }
:lang(ar) .project h3 { line-height: 1.7; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0.55rem 0 0; font-size: 0.88rem; }
.project__place { display: inline-flex; align-items: center; gap: 0.3rem; color: rgb(255 255 255 / 0.7); }
.project__place .icon { width: 1em; height: 1em; }
.chip { padding: 0.12rem 0.7rem; font-weight: 600; color: var(--cyan); background: rgb(12 192 223 / 0.12); border: 1px solid rgb(12 192 223 / 0.3); border-radius: 999px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 0.9rem; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery button {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius); background: var(--navy-800); cursor: zoom-in; font: inherit;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem 1rem 0.8rem;
  font-size: 0.95rem; font-weight: 500; text-align: start; color: #fff;
  background: linear-gradient(transparent, rgb(16 26 45 / 0.85));
}
.lightbox { max-width: min(92vw, 1100px); padding: 0; border: 0; border-radius: var(--radius); background: var(--navy-950); color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgb(10 16 28 / 0.88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius) var(--radius) 0 0; }
.lightbox figcaption { padding: 0.8rem 1.2rem; text-align: center; }
.lightbox__close {
  position: absolute; inset-block-start: -1rem; inset-inline-end: -1rem; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--cyan); color: var(--navy-950); cursor: pointer;
}

/* Why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.why__item { display: flex; gap: 1.1rem; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why__check { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--navy-950); background: var(--cyan); border-radius: 50%; }
.why__item h3 { margin-block-end: 0.35rem; font-size: 1.3rem; color: var(--navy-800); }
:lang(ar) .why__item h3 { font-size: 1.15rem; }
.why__item p { margin: 0; color: var(--muted); }
.process { margin-block-start: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.6rem, 3vw, 2.5rem); color: #fff; background: var(--navy-600); border-radius: var(--radius); }
.process__title { margin-block-end: 1.6rem; font-size: 1.5rem; color: var(--cyan); }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process li { position: relative; }
.process__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-block-end: 0.9rem; font-family: 'Barlow Condensed', var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 50%; }
.process li:not(:last-child)::after { content: ''; position: absolute; top: 1.2rem; inset-inline: 3.2rem -0.7rem; height: 2px; background: rgb(12 192 223 / 0.35); }
.process h4 { margin-block-end: 0.3rem; font-size: 1.2rem; }
:lang(ar) .process h4 { font-size: 1.08rem; }
.process p { margin: 0; font-size: 0.96rem; color: rgb(255 255 255 / 0.78); }

/* Contact */
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__list { display: grid; gap: 0.4rem; margin-block-start: 2rem; }
.contact__list :is(a, div) { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0.9rem; border-radius: 12px; text-decoration: none; transition: background-color 0.15s; }
.contact__list a:hover { background: rgb(255 255 255 / 0.07); }
.contact__list .icon { width: 2.8rem; height: 2.8rem; padding: 0.7rem; color: var(--cyan); background: rgb(12 192 223 / 0.12); border-radius: 12px; }
.contact__list span { display: grid; font-size: 1.1rem; font-weight: 500; }
.contact__list small { font-size: 0.82rem; font-weight: 400; color: rgb(255 255 255 / 0.6); }
.quote { padding: clamp(1.5rem, 3vw, 2.4rem); color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgb(0 0 0 / 0.6); }
.quote h3 { margin-block-end: 1.4rem; font-size: 1.6rem; color: var(--navy-800); }
.field { margin-block-end: 1rem; }
.field label { display: block; margin-block-end: 0.35rem; font-size: 0.92rem; font-weight: 600; color: var(--navy-700); }
.field :is(input, select, textarea) {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--tint); border: 1.5px solid var(--line); border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgb(12 192 223 / 0.2); }
.field .is-invalid { border-color: #c2410c; }
[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.quote__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-block-start: 1.4rem; }
.quote__actions .btn { flex: 1 1 12rem; }
.quote .btn--ghost { color: var(--navy-700); border-color: var(--line); }
.quote .btn--ghost:hover { color: var(--teal); border-color: var(--teal); }
.quote__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Footer */
.footer { color: rgb(255 255 255 / 0.75); background: var(--navy-950); font-size: 0.98rem; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer__brand img { width: 150px; margin-block-end: 1rem; }
.footer__brand strong { color: #fff; font-size: 1.1rem; }
.footer h3 { margin-block-end: 1rem; font-size: 1.15rem; color: #fff; }
.footer li { margin-block-end: 0.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; padding-inline-end: 4.5rem; /* room for .fab */ border-block-start: 1px solid rgb(255 255 255 / 0.1); font-size: 0.9rem; }
.footer__bar p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: 0.4rem; }

.fab {
  position: fixed; inset-block-end: calc(1.2rem + env(safe-area-inset-bottom, 0px)); inset-inline-end: 1.2rem; z-index: 40; display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; color: #fff; background: #1fa855; border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.5); transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.08); }
.fab .icon { width: 1.8rem; height: 1.8rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--navy-900); }
.notfound main { padding: 2rem; }
.notfound img { margin: 0 auto 1rem; }
.notfound__code { margin: 0; font-size: 4rem; font-weight: 700; line-height: 1; color: var(--cyan); }
.notfound h1 { margin: 1.2rem 0 0.8rem; font-size: 1.5rem; }

/* Responsive */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .brand__name { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 5px; padding: 0.7rem; margin-inline-end: -0.7rem; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand__name { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.2rem 1.25rem 1.6rem; background: var(--navy-900); border-block-end: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 30px 40px -20px rgb(0 0 0 / 0.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding-block: 0.8rem; font-size: 1.1rem; border-block-end: 1px solid rgb(255 255 255 / 0.08); }
  .nav ul a::after { display: none; }
  .lang { align-self: flex-start; }
  .hero__in, .about, .contact__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; width: 100%; margin-inline: auto; }
  .vision { max-width: 520px; }
  .vision__card { inset-inline: 6% 0; }
  .projects { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 32px; }
  .brand__name { font-size: 0.8rem; }
  .stats { grid-template-columns: 1fr; transform: none; margin-block: 2.5rem 0; }
  .hero { padding-block-end: 3rem; }
  .hero + .section { padding-block-start: 4rem; scroll-margin-top: 0; }
  .stat { display: flex; align-items: baseline; gap: 0.9rem; padding: 1rem 1.3rem; border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .stat:first-child { border-block-start: 0; }
  .stat dt { min-width: 3.4rem; font-size: 1.8rem; }
  .services, .why { grid-template-columns: 1fr; }
  .service:last-child:nth-child(odd) { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .process ol { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .lightbox__close { inset-block-start: 0.5rem; inset-inline-end: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .fab, .nav-toggle, .quote, .lightbox { display: none !important; }
  .hero, .section--dark { color: #000; background: none; }
  .js .reveal { opacity: 1; transform: none; }
}
