/* ==========================================================================
   PROJECTA — main stylesheet
   Logical properties (margin-inline, inset-inline…) are used throughout so
   the same CSS works for a future Arabic version with <html dir="rtl">.
   ========================================================================== */

/* Brand typefaces (Brand Guidelines v1.1, section 09), self-hosted, SIL Open Font License.
   Poppins: headings and labels. Inter: body text. IBM Plex Sans Arabic: Arabic. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }

:root {
  /* Brand palette (Brand Guidelines v1.1, section 08).
     Gold is an accent: keep it to roughly 10-15% of any layout. */
  --night: #121318;
  --ivory: #F6F3EE;
  --gold: #C8955F;
  --gold-light: #D9AA74;
  --gold-deep: #9A6F48;
  --slate: #2A2C33;
  --stone: #8A8B90;

  --bg: var(--night);
  --bg-2: #181a20;
  --surface: var(--slate);
  --line: rgba(246, 243, 238, 0.10);
  --line-strong: rgba(246, 243, 238, 0.20);
  --text: var(--ivory);
  --text-2: #c9c6c0;
  --text-3: #a3a4a9;
  --gold-2: var(--gold-light);
  --gold-ink: var(--night);
  --danger: #f08a7e;
  --success: #9fd3a8;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}
[lang="ar"] {
  --font-head: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: calc(var(--section) * .6); }

.eyebrow {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.h-display { font-size: clamp(36px, 5.6vw, 76px); font-weight: 600; letter-spacing: -0.02em; }
.h-1 { font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -0.015em; }
.h-2 { font-size: clamp(25px, 2.8vw, 38px); font-weight: 600; }
.h-3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.65; max-width: 62ch; }
.muted { color: var(--text-2); }
.gold { color: var(--gold); }

.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
  .section-head--split .lead { justify-self: end; }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px; font-family: var(--font-head);
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { background: transparent; color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--gold-ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.link-arrow:hover { color: var(--gold-2); }

/* Header ----------------------------------------------------------------- */
.site-header {
  isolation: isolate;
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid, body.menu-open .site-header {
  border-bottom-color: var(--line);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(18, 19, 24, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .35s var(--ease);
}
.site-header.is-scrolled::before, .site-header.is-solid::before, body.menu-open .site-header::before { opacity: 1; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; } /* 164px wide: above the 160px screen minimum for this logo version */
.site-footer .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
  position: relative; font-family: var(--font-head); font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--text-2);
  padding-block: 8px; transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 12px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-inline-end: -12px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--text); content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span { top: 23px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 32px var(--gutter) 48px; background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; font-size: 22px; font-weight: 600; letter-spacing: 0; padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold); }
  .nav .btn { min-height: 52px; }
  body.menu-open { overflow: hidden; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 60px) clamp(56px, 9vw, 110px);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,19,24,.6) 0%, rgba(18,19,24,.25) 35%, rgba(18,19,24,.9) 100%),
    linear-gradient(90deg, rgba(18,19,24,.85) 0%, rgba(18,19,24,.35) 60%, rgba(18,19,24,.15) 100%);
}
[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgba(18,19,24,.55) 0%, rgba(18,19,24,.15) 35%, rgba(18,19,24,.85) 100%),
    linear-gradient(270deg, rgba(18,19,24,.75) 0%, rgba(18,19,24,0) 70%);
}
.hero__content { max-width: 900px; }
.hero__title { margin-bottom: 26px; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 40px; color: var(--text-2); }
.hero__scroll {
  position: absolute; inset-inline-end: var(--gutter); bottom: 40px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(64px, 10vw, 140px)) clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,19,24,.4), var(--bg)); }
.page-hero .lead { margin-top: 24px; }
.breadcrumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { margin-inline: 10px; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-inline-start: 1px solid var(--line); }
.stat:nth-child(odd) { border-inline-start: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .stat:first-child { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 0; }
}
.stat__value { font-family: var(--font-head); font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat__value sup, .stat__value .unit { font-size: .45em; font-weight: 700; color: var(--gold); vertical-align: top; margin-inline-start: 2px; }
.stat__label { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }

/* Service cards ---------------------------------------------------------- */
.cards { display: grid; gap: 2px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; overflow: hidden; isolation: isolate; background: var(--surface);
}
.card__media { position: absolute; inset: 0; z-index: -2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,19,24,.05) 20%, rgba(18,19,24,.8) 55%, rgba(18,19,24,.96) 100%); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 32px 28px; }
.card__num { font-family: var(--font-head); font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--gold); margin-bottom: 14px; display: block; }
.card__title { font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.card__text { font-size: 14.5px; color: var(--text-2); margin-bottom: 20px; }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* Work grid -------------------------------------------------------------- */
.work-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } }
.work-item { position: relative; overflow: hidden; background: var(--surface); }
.work-item--tall { grid-row: span 2; }
.work-item a, .work-item button { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; text-align: start; }
.work-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.work-item--tall img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 1079px) { .work-item--tall { grid-row: auto; } .work-item--tall img { aspect-ratio: 4 / 3; } }
.work-item__info {
  position: absolute; inset-inline: 0; bottom: 0; padding: 56px 24px 22px;
  background: linear-gradient(180deg, rgba(18,19,24,0), rgba(18,19,24,.78) 45%, rgba(18,19,24,.95));
}
.work-item__cat { font-family: var(--font-head); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.work-item__title { font-family: var(--font-head); font-size: 18px; font-weight: 500; line-height: 1.3; display: block; }
.work-item:hover img, .work-item:focus-within img { transform: scale(1.04); }
.work-item[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 44px; padding: 10px 20px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* Split / feature blocks ------------------------------------------------- */
.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset-inline-start: -16px; top: -16px; width: 96px; height: 96px;
  border-top: 1px solid var(--gold); border-inline-start: 1px solid var(--gold); pointer-events: none;
}

/* Capability list */
.cap-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cap-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.cap-list__num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold); padding-top: 5px; }
.cap-list h3 { font-size: 18px; margin-bottom: 6px; }
.cap-list p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* Feature grid (about / capabilities) */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); padding: clamp(28px, 3.4vw, 44px); }
.section--alt .feature { background: var(--bg-2); }
.feature__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 12px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Process diagram */
.process { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(6, 1fr); } }
.process__step { position: relative; padding: 28px 24px 28px 0; border-top: 1px solid var(--line-strong); counter-increment: step; }
.process__step::before {
  content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.process__step:last-child::before { background: var(--gold); }
.process__num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold); margin-block: 14px 10px; }
.process__step h3 { font-size: 17px; margin-bottom: 8px; }
.process__step p { font-size: 14px; color: var(--text-2); margin: 0; }
@media (max-width: 1079px) {
  .process { border-inline-start: 1px solid var(--line-strong); margin-inline-start: 5px; }
  .process__step { border-top: 0; padding: 0 0 36px 32px; }
  [dir="rtl"] .process__step { padding: 0 32px 36px 0; }
  .process__step::before { top: 2px; inset-inline-start: -6px; }
  .process__num { margin-top: 0; }
}
.process__arrow { display: none; }

/* Clients ---------------------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .clients { grid-template-columns: repeat(8, 1fr); } }
.client { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 20px 16px; background: var(--bg); text-align: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--text-2); transition: color .25s var(--ease); }
.client:hover { color: var(--text); }
.client--more { color: var(--gold); font-weight: 400; }
.section--alt .client { background: var(--bg-2); }
.client img { max-height: 54px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: all .3s var(--ease); }
.client:hover img { filter: none; opacity: 1; }
.client--placeholder { flex-direction: column; gap: 6px; color: var(--text-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; border: 1px dashed rgba(200,149,95,.3); }

/* Placeholder notice (remove once real content is in) */
.placeholder-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 18px;
  border: 1px dashed rgba(200,149,95,.45); color: var(--text-2); font-size: 13.5px; line-height: 1.55;
}
.placeholder-note strong { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; white-space: nowrap; padding-top: 2px; }

/* CTA band --------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.cta { isolation: isolate; }
.cta .h-1 { max-width: 16ch; margin-inline: auto; margin-bottom: 24px; }
.cta .lead { margin-inline: auto; margin-bottom: 40px; }
.cta .btn-row { justify-content: center; }

/* Prose ------------------------------------------------------------------ */
.prose { max-width: 68ch; color: var(--text-2); font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.quote { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; font-weight: 500; color: var(--text); border-inline-start: 2px solid var(--gold); padding-inline-start: clamp(20px, 3vw, 36px); margin: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-list li { font-size: 12px; font-weight: 500; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--text-2); }

/* Service sections */
.service { padding-block: var(--section); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.service:first-of-type { border-top: 0; }
.service__num { font-family: var(--font-head); font-size: clamp(64px, 10vw, 140px); font-weight: 600; line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(200,149,95,.55); margin-bottom: 20px; }
.service__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.service__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.service__body { margin-top: 40px; display: grid; gap: 32px; }
@media (min-width: 960px) { .service__body { grid-template-columns: 1fr 1fr; gap: 72px; } }
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* Project modal ---------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,8,9,.88); }
.modal__dialog {
  position: relative; max-width: 1100px; max-height: calc(100vh - 48px); margin: 24px auto; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line);
}
@media (max-width: 700px) { .modal__dialog { margin: 0; max-height: 100vh; height: 100%; } }
.modal__close {
  position: fixed; top: 36px; inset-inline-end: max(36px, calc((100vw - 1100px) / 2 + 12px)); z-index: 2;
  width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
  background: rgba(18,19,24,.85); color: var(--text); font-size: 26px; line-height: 1;
}
@media (max-width: 700px) { .modal__close { top: 12px; inset-inline-end: 12px; } }
.modal__close:hover { color: var(--gold); }
.modal__gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 8px; }
.modal__thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.modal__body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
@media (min-width: 900px) { .modal__body { grid-template-columns: 1.4fr 1fr; } }
.meta-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.meta-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.meta-list dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.meta-list dd { margin: 0; color: var(--text); }
.modal__related { padding: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.modal__related .work-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-block { padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact-block:first-child { border-top: 1px solid var(--line); }
.contact-block h2 { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.contact-block a, .contact-block p { display: block; font-size: 18px; font-weight: 500; margin: 0 0 4px; overflow-wrap: anywhere; }
.contact-block a:hover { color: var(--gold); }
.contact-block small { display: block; color: var(--text-3); font-size: 13px; }
.whatsapp { margin-top: 28px; }

.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--bg-2); border: 1px solid var(--line); }
.form__row { display: grid; gap: 22px; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.field .req { color: var(--gold); }
.field .opt { color: var(--text-3); text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 16px; transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] .field select { background-position: 22px 23px, 16px 23px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.form__privacy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.form__consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.form__status { padding: 16px 18px; font-size: 15px; border: 1px solid; }
.form__status[hidden] { display: none; }
.form__status--success { border-color: rgba(159,211,168,.5); color: var(--success); background: rgba(159,211,168,.06); }
.form__status--error { border-color: rgba(240,138,126,.5); color: var(--danger); background: rgba(240,138,126,.06); }
.form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #0d0e12; border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 32px; font-size: 14.5px; color: var(--text-2); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 56px; } }
.footer-brand p { max-width: 34ch; margin-top: 20px; }
.footer-title { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-block; padding-block: 2px; }
.footer-links a:hover, .site-footer address a:hover { color: var(--gold); }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); transition: all .25s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

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

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.center { text-align: center; }

/* Project detail extras */
figure { margin: 0; }
.modal__gallery { position: relative; }
.modal__gallery figcaption, .modal__thumbs figcaption {
  font-size: 12px; color: var(--text-3); padding: 8px 2px 0; line-height: 1.4;
}
.modal__gallery figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 8px 14px; background: rgba(18,19,24,.8); color: var(--text-2); }
.scope-list { display: grid; gap: 4px; }
.scope-list li::before { content: "—"; color: var(--gold); margin-inline-end: 8px; }
.project-detail[hidden] { display: none; }

/* Equipment gallery (capabilities) */
.equip-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
.equip-grid img { width: 100%; aspect-ratio: 972 / 410; object-fit: cover; }
.equip-grid figcaption { margin-top: 10px; font-family: var(--font-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.service-nav .filter { display: inline-flex; align-items: center; }
.project-details { display: none; }

/* Contact page: "Get in touch" + "Project inquiry" two-column layout */
.contact-page { padding-block: calc(var(--header-h) + clamp(40px, 6vw, 80px)) var(--section); }
.contact-page .contact-grid { align-items: start; }
@media (min-width: 1000px) { .contact-page .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); } }
.contact-title, .inquiry__title { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.contact-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 24px; }
.contact-intro .lead { color: var(--text-2); max-width: 52ch; }
.contact-list { display: grid; gap: 30px; margin-block: 44px 48px; }
.contact-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.contact-list__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--gold); border-radius: var(--radius); }
.contact-list__icon svg { width: 24px; height: 24px; }
.contact-list h2 { font-family: var(--font-head); font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin: 4px 0 6px; }
.contact-list p, .contact-list a { display: block; margin: 0; font-size: 18px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }
.btn--whatsapp { background: #25D366; border-color: #25D366; color: #0b1a10; text-transform: none; letter-spacing: .02em; font-size: 16px; font-weight: 600; min-height: 56px; padding-inline: 28px; }
.btn--whatsapp:hover { background: #3ee07a; border-color: #3ee07a; }
.btn--whatsapp svg { width: 20px; height: 20px; }
.inquiry { padding: clamp(28px, 4vw, 56px); }
.inquiry__title { font-size: clamp(22px, 2vw, 28px); margin-bottom: 4px; }
