/* ==========================================================================
   MADA Al Masharea Al Mutakamilah — Industrial Contracting
   Global stylesheet: tokens, base, layout, components, utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --gold:       #C89B3C;  /* fills, buttons, rules, large display accents   */
  --gold-mid:   #B4892C;  /* bold accent terms in body copy (3.1:1, large)  */
  --gold-deep:  #8F6B1E;  /* small text on white (5.3:1)                    */
  --gold-light: #DCB25C;  /* accents on dark backgrounds                    */
  --gold-wash:  #FBF6EA;  /* tinted surfaces                                */
  --gold-grad:  linear-gradient(135deg, #D2A64A 0%, #BE8F2F 100%);

  /* Neutrals */
  --black:      #000000;
  --ink:        #111111;
  --ink-2:      #3A3A3A;
  --muted:      #5F5F5F;
  --muted-2:    #8C8C8C;
  --line:       #EAE8E4;
  --line-soft:  #F0EEEA;
  --line-strong:#D6D3CD;
  --surface:    #FFFFFF;
  --surface-2:  #FAF9F7;
  --surface-3:  #F3F2EE;

  /* Typography */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.25rem, 1.25rem + 4vw, 3.5rem);    /* 36 -> 56 */
  --fs-h1:      clamp(2rem,    1.35rem + 2.6vw, 2.75rem); /* 32 -> 44 */
  --fs-h2:      clamp(1.75rem, 1.15rem + 2.4vw, 2.5rem);  /* 28 -> 40 */
  --fs-h3:      clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem); /* 18 -> 21 */
  --fs-lead:    clamp(1.0625rem, 0.95rem + 0.55vw, 1.25rem);  /* 17 -> 20 */
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-label:   0.8125rem;
  --fs-caption: 0.75rem;

  /* Spacing scale */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px; --s-12: 96px;

  --section-y: clamp(64px, 7.5vw, 112px);
  --gap:       clamp(20px, 2.2vw, 32px);
  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 40px);
  --header-h:  84px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation — deliberately restrained */
  --shadow-sm: 0 1px 2px rgba(17,17,17,.05);
  --shadow-md: 0 8px 24px -12px rgba(17,17,17,.16);
  --shadow-lg: 0 28px 70px -30px rgba(17,17,17,.32);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 1600px) { :root { --container: 1360px; } }
@media (max-width: 1023px) { :root { --header-h: 68px; } }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; }
p + p { margin-top: var(--s-4); }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

strong, b { font-weight: 700; color: var(--ink); }

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

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

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

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 4.5vw, 68px); }
.section--soft { background: var(--surface-2); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 var(--s-5);
  color: var(--gold-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }

/* Outlined pill label — hero */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
}
.chip::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.rule {
  width: 64px;
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--gold);
}

.display { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -0.035em; }
.accent  { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}
/* Bold + deepened gold keeps the reference look at an accessible contrast */
.lead .term { color: var(--gold-mid); font-weight: 700; }

/* The block is sized for the description; the heading is held narrower so it
   keeps its tight two-line shape without squeezing the paragraph under it. */
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 3.8vw, 60px); }
.section-head h2 { max-width: 26ch; }
.section-head--wide h2 { max-width: 36ch; }
.section-head p {
  margin-top: var(--s-5);
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: 62ch;
}

/* Projects page: wider heading block on desktop, full width on tablet/mobile */
@media (min-width: 1024px) {
  .page-projects .section-head { max-width: 75ch; }
  .page-projects .section-head p { max-width: 75ch; }
  .page-projects .section-head--wide h2 { max-width: 60ch; }
}
@media (max-width: 1023px) {
  .page-projects .section-head,
  .page-projects .section-head p,
  .page-projects .section-head h2 { max-width: none; }
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-8);
  max-width: none;
}
.section-head--split > div:first-child { max-width: 50ch; }
@media (max-width: 767px) {
  .section-head--split { display: block; }
  .section-head--split > div:last-child { margin-top: var(--s-6); }
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--gold-grad);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 10px 26px -14px rgba(200,155,60,.9); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: none;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface-3); border-color: var(--ink); filter: none; box-shadow: none; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2C2C2C; filter: none; }

.btn--on-dark {
  background: none;
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.btn--on-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); filter: none; box-shadow: none; }

.btn--sm { height: 44px; padding: 0 22px; font-size: var(--fs-label); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Media frames (image-ready containers)
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  color: var(--muted-2);
  font-size: var(--fs-caption);
  letter-spacing: .04em;
  text-align: center;
  pointer-events: none;
}
.media.is-filled::after { content: none; }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.media.is-filled img { opacity: 1; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media--xl   { border-radius: var(--r-xl); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would make it the containing block for the fixed-position
   mobile menu, collapsing the menu to the header's height. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -8px rgba(17,17,17,.2);
}

.header__inner {
  position: relative;          /* anchors the services mega-menu */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { display: block; height: 52px; width: auto; max-width: 210px; object-fit: contain; }
.logo.is-empty .logo__img { display: none; }
.logo.is-empty .logo__text { display: inline-flex; }
.logo__text {
  display: none;
  align-items: baseline;
  gap: 2px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
}
.logo__dot { color: var(--gold); }
.logo__tag {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-transform: uppercase;
}
@media (max-width: 1023px) { .logo__img { height: 42px; } }

.nav {
  display: flex;
  align-self: stretch;         /* full header height, so hover has no dead gap */
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}
:is(.nav > a, .nav__item > a) {
  position: relative;
  padding: 6px 0;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s var(--ease);
}
:is(.nav > a, .nav__item > a)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
:is(.nav > a, .nav__item > a):hover { color: var(--gold-deep); }
:is(.nav > a, .nav__item > a):hover::after,
:is(.nav > a, .nav__item > a)[aria-current="page"]::after { transform: scaleX(1); }

/* ---- Services mega-menu ------------------------------------------------ */
.nav__item {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 2px;
}
.nav__toggle {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

.mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  padding: clamp(18px, 1.8vw, 24px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  /* closing waits a beat, so a diagonal mouse path doesn't snap it shut */
  transition: opacity .2s var(--ease) .12s, transform .2s var(--ease) .12s, visibility 0s linear .32s;
}
.mega::before {                /* invisible bridge across the gap */
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 12px;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px) clamp(14px, 1.8vw, 28px);
}
.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
  padding: 0 clamp(16px, 1.6vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.mega__link svg { flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mega__link:hover, .mega__link:focus-visible {
  border-color: var(--gold);
  background: var(--gold-wash);
  color: var(--gold-deep);
}
.mega__link:hover svg, .mega__link:focus-visible svg { transform: translateX(4px); }

/* open: via the toggle button (click / keyboard / touch) ... */
.nav__item--mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.nav__item--mega.is-open > a { color: var(--gold-deep); }
.nav__item--mega.is-open .nav__toggle svg { transform: rotate(180deg); }
/* ... or by hover, on devices that really hover */
@media (hover: hover) {
  .nav__item--mega:hover .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .2s var(--ease) .05s, transform .2s var(--ease) .05s, visibility 0s;
  }
  .nav__item--mega:hover > a { color: var(--gold-deep); }
  .nav__item--mega:hover .nav__toggle svg { transform: rotate(180deg); }
  /* after a link is chosen, stay shut until the pointer leaves */
  .nav__item--mega.is-dismissed .mega { opacity: 0; visibility: hidden; transform: translate(-50%, -6px); }
}

.header__cta { flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  padding: var(--s-6) var(--gutter) var(--s-9);
  background: #fff;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
}
.mobile-nav a.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.mobile-nav a.mobile-nav__link[aria-current="page"] { color: var(--gold-deep); }
.mobile-nav__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__row a.mobile-nav__link { flex: 1; border-bottom: 0; }
.mobile-nav__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
}
.mobile-nav__toggle svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__sub {
  display: grid;
  padding: var(--s-2) 0 var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__sub[hidden] { display: none; }
.mobile-nav__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink-2);
}
.mobile-nav__sub a svg { width: 16px; height: 16px; color: var(--gold); }
.mobile-nav__sub a:hover { color: var(--gold-deep); }
.mobile-nav .btn { width: 100%; margin-top: var(--s-6); }
.mobile-nav__meta { margin-top: var(--s-7); font-size: var(--fs-small); color: var(--muted); }
.mobile-nav__meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 1199px) and (min-width: 1024px) {
  .mega__link { min-height: 54px; }
}
@media (max-width: 1023px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
}
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(44px, 5vw, 86px) clamp(56px, 6vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 3.6vw, 60px);
  align-items: center;
}
.hero__title { margin: var(--s-7) 0 0; }
.hero .rule { margin: clamp(28px, 3vw, 40px) 0; }
.hero__lead { margin-bottom: clamp(32px, 3.6vw, 48px); }

/* Trust row — single line, gold dividers */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 11px;
  border-left: 1px solid var(--gold);
}
.hero__stats > .trust-item:first-child { padding-left: 0; border-left: 0; }
.trust-item svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.trust-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
}
.trust-item span {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero__media { position: relative; }
/* The hero artwork carries its own shape — the diagonal left edge and rounded
   corners are designed into the image's transparency. The frame therefore
   matches the artwork's exact ratio at every size and adds no radius or fill
   of its own, so the page background shows through the diagonal cut. */
.hero__media .media {
  aspect-ratio: 3404 / 2436;
  border-radius: 0;
  overflow: visible;
}
.hero__media .media.is-filled { background: none; }
.hero__media .media img { object-fit: contain; }

.trust-card {
  position: absolute;
  left: clamp(-40px, -3vw, -16px);
  bottom: clamp(-28px, -2vw, -14px);
  width: min(400px, 78%);
  padding: clamp(22px, 2vw, 30px) clamp(24px, 2.2vw, 34px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.trust-card__title {
  margin-bottom: var(--s-4);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.trust-card__stats b {
  display: block;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.trust-card__stats b em {
  font-style: normal;
  font-size: .62em;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0;
}
.trust-card__stats span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gold-deep);
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-9); }
  .trust-card {
    position: relative;
    left: auto; bottom: auto;
    width: calc(100% - var(--s-8));
    margin: -40px auto 0;
    z-index: 2;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
  }
}
@media (max-width: 1199px) and (min-width: 1024px) {
  .trust-item strong { white-space: normal; }
}
@media (max-width: 767px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .trust-item strong { white-space: nowrap; }
  .trust-item svg { width: 22px; height: 22px; }
  .trust-item strong { font-size: var(--fs-small); }
  .trust-item span { font-size: var(--fs-caption); }
  .hero__stats > .trust-item:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 359px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats > .trust-item { padding-left: 0; border-left: 0; }
}

/* --------------------------------------------------------------------------
   9. Logo strip
   -------------------------------------------------------------------------- */
.logo-strip__title {
  margin-bottom: clamp(28px, 3vw, 44px);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-strip__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.logo-slot {
  --logo-h: 58px;
  display: grid;
  place-items: center;
  height: var(--logo-h);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.section--soft .logo-slot { background: #fff; }
.logo-slot img {
  /* px cap, not a percentage: percentage heights don't resolve for a grid
     item's child in Chrome, so the logo kept its intrinsic height */
  max-height: var(--logo-h);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity .4s var(--ease), filter .3s var(--ease);
}
.logo-slot.is-filled { background: none; }
.logo-slot.is-filled img { opacity: 1; }
.logo-slot::after {
  content: attr(data-label);
  padding: 0 6px;
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.3;
  color: var(--muted-2);
}
.logo-slot.is-filled::after { content: none; }

@media (max-width: 899px) { .logo-strip__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Vendor registrations: three wide logos, sized by height with a width cap */
.vendor-strip { margin-top: clamp(40px, 4.5vw, 64px); }
.logo-strip__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}
.logo-strip__row--3 .logo-slot { --logo-h: 72px; }
@media (max-width: 899px) {
  /* doubled class so this wins over the base row rules defined further down */
  .logo-strip__row.logo-strip__row--3 { grid-template-columns: 1fr; gap: var(--s-7); max-width: 300px; }
  .logo-strip__row.logo-strip__row--3 .logo-slot { --logo-h: 60px; }
}

/* Infinite logo loop. The track holds the set twice; sliding it by exactly
   -50% lands the second set where the first began, so the loop is seamless.
   Spacing is padding on each item (never `gap`) so both halves are equal. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding-inline: clamp(26px, 3vw, 46px);
}
.marquee__item img { height: 100%; width: auto; max-width: none; object-fit: contain; }
/* Optical balance: SABIC's file is a bare, heavy wordmark with no secondary
   line, so at full height it reads much larger than its neighbours. */
.marquee__item--sabic img { height: 64%; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 767px) {
  .marquee__item { height: 44px; }
  .marquee__track { animation-duration: 34s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-6); }
  .marquee__item[aria-hidden="true"] { display: none; }
}
@media (max-width: 479px) { .logo-strip__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* --------------------------------------------------------------------------
   10. Split (text + media) sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--media-first .split__media { order: -1; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .split--media-first .split__media { order: 0; }
}

/* Leadership without the portrait: one column, readable line length kept */
.split--solo { grid-template-columns: 1fr; }
.split--solo .lead { max-width: 86ch; }
.split--solo p { max-width: 96ch; }
.split--solo .quote { max-width: 80ch; }

.check-list { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
/* Projects page (OMPP scope): items run horizontally in aligned columns */
.page-projects .check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }
.check-list strong { display: block; color: var(--ink); font-weight: 700; }
.check-list span { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }

/* 2 x 2 stat block with gold rules — about section */
.stat-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 48px);
  margin-top: clamp(32px, 3.4vw, 44px);
}
.stat-bars > div { padding-left: var(--s-5); border-left: 2px solid var(--gold); }
.stat-bars b {
  display: block;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat-bars span { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.stat-bars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 899px) { .stat-bars--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .stat-bars { grid-template-columns: 1fr; }
  .stat-bars--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) { .stat-bars--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.4vw, 34px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  display: block;
  width: 26px; height: 26px;
  margin-bottom: clamp(28px, 3vw, 44px);
  color: var(--ink);
  transition: color .3s var(--ease);
}
.card:hover .card__icon { color: var(--gold); }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.card__meta {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.facts { display: grid; gap: 0; margin-top: var(--s-6); }
.facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts span {
  flex: none;
  width: 118px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.facts b { font-size: var(--fs-small); font-weight: 700; color: var(--ink); }

.ref-detail {
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(24px, 2.6vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ref-detail h3 { margin-bottom: var(--s-3); }
.ref-detail p { font-size: var(--fs-small); color: var(--muted); max-width: 88ch; }

.role {
  margin-top: var(--s-2);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: .02em;
}
.quote {
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: var(--s-6) 0 var(--s-6) clamp(20px, 2.4vw, 28px);
  border-left: 2px solid var(--gold);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.quote cite {
  display: block;
  margin-top: var(--s-4);
  font-size: var(--fs-label);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.note {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 76ch;
}
.note em { font-style: italic; color: var(--ink); }
.logo-strip__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .logo-strip__row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bordered sector grid — industries */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sector {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: clamp(24px, 2.6vw, 38px) clamp(20px, 2.2vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: background .28s var(--ease);
}
.sector:hover { background: var(--gold-wash); }
.sector svg { flex: none; width: 26px; height: 26px; color: var(--gold); }
.sector-grid > .sector:nth-child(3n) { border-right: 0; }
.sector-grid > .sector:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 899px) {
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-grid > .sector { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sector-grid > .sector:nth-child(2n) { border-right: 0; }
  .sector-grid > .sector:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 559px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-grid > .sector { border-right: 0; border-bottom: 1px solid var(--line); }
  .sector-grid > .sector:last-child { border-bottom: 0; }
}

/* Project showcase — image, title, meta. No card chrome. */
.work { display: block; }
.work .media { aspect-ratio: 4 / 3.4; }
.work:hover .media.is-filled img { transform: scale(1.04); }
.work h3 {
  margin-top: var(--s-6);
  font-size: var(--fs-h3);
  transition: color .25s var(--ease);
}
.work:hover h3, .work:focus-visible h3 { color: var(--gold-deep); }
.work__meta { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }

/* Bento gallery — projects page */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 12vw, 190px);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.4vw, 20px);
}
.bento__item {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-3);
}
.bento__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.bento__item:hover img { transform: scale(1.05); }
.bento__item--big  { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }
@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 21vw, 170px); }
}
@media (max-width: 479px) {
  .bento { grid-auto-rows: 120px; }
  .bento__item--tall { grid-row: span 1; }
}

/* --------------------------------------------------------------------------
   12. Safety & quality
   -------------------------------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-8); }
.cert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--s-4) var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cert svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.cert b { font-size: var(--fs-small); font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.cert span { font-size: var(--fs-caption); color: var(--muted); }
@media (max-width: 479px) { .cert-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. Closing block — CTA and footer share one black field
   -------------------------------------------------------------------------- */
.cta {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding-block: clamp(64px, 7vw, 104px) clamp(48px, 5vw, 72px);
}
.cta__inner { max-width: 620px; }
.cta h2 { color: #fff; margin-bottom: var(--s-5); }
.cta p { color: rgba(255,255,255,.66); font-size: var(--fs-lead); margin-bottom: var(--s-8); }

.footer { background: var(--black); color: rgba(255,255,255,.62); padding-block: clamp(40px, 4vw, 64px) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1.5fr;
  gap: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(40px, 4.5vw, 64px);
}
.footer .logo__text { color: #fff; }
.footer .logo:not(.is-empty) {
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--r-sm);
}
.footer .logo__img { height: 46px; }
.footer .logo__tag { color: rgba(255,255,255,.45); }
.footer__about { margin-top: var(--s-6); font-size: var(--fs-small); line-height: 1.75; max-width: 40ch; }
.footer h4 {
  margin-bottom: var(--s-6);
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__links { display: grid; gap: 14px; }
.footer__links a { font-size: var(--fs-body); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--gold-light); }
.footer__contact { display: grid; gap: var(--s-5); font-size: var(--fs-body); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.footer__contact a:hover { color: var(--gold-light); }
.footer__reg {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(255,255,255,.45);
}
.footer__social { display: flex; gap: 10px; margin-top: var(--s-6); }
.footer__social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-small);
}
.footer__bar > div { display: flex; align-items: center; gap: var(--s-7); }
.footer__badge { display: inline-flex; align-items: center; gap: 8px; }
.footer__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.footer__bar a:hover { color: var(--gold-light); }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .footer__bar > div { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* --------------------------------------------------------------------------
   14. Quote modal
   -------------------------------------------------------------------------- */
.modal {
  width: min(680px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal::backdrop { background: rgba(10,10,10,.62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .32s var(--ease); }
.modal[open]::backdrop { animation: fade-in .32s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fade-in  { from { opacity: 0; } }

.modal__scroll { max-height: calc(100dvh - 2 * var(--gutter)); overflow-y: auto; }
.modal__head {
  position: relative;
  padding: clamp(24px, 2.6vw, 30px) clamp(24px, 3vw, 40px) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.modal__head .eyebrow { margin-bottom: var(--s-3); }
.modal__head h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.modal__head p { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); max-width: 46ch; }
.modal__close {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.modal__close:hover { background: var(--surface-3); border-color: var(--line-strong); transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { padding: clamp(22px, 2.6vw, 28px) clamp(24px, 3vw, 40px) clamp(26px, 2.8vw, 32px); }
.modal .form { gap: var(--s-4); }
.modal .form__row { gap: var(--s-4); }
.modal .field textarea { min-height: 96px; }
@media (max-width: 599px) { .modal__head { padding-right: 72px; } }

/* --------------------------------------------------------------------------
   15. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(48px, 5vw, 84px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 780px; }
.page-hero h1 { margin-bottom: var(--s-5); }
.page-hero p { color: var(--muted); font-size: var(--fs-lead); max-width: 58ch; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--s-5);
  font-size: var(--fs-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.breadcrumb a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact: one full-width map */
.map-embed {
  height: clamp(340px, 34vw, 500px);
  background: var(--surface-3);
  border-top: 1px solid var(--line);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,60,.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form__note { font-size: var(--fs-caption); color: var(--muted); }
.form__note.is-success { color: var(--gold-deep); font-weight: 600; }

.info-card {
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.info-card + .info-card { margin-top: var(--s-5); }
.info-list { display: grid; gap: var(--s-5); }
.info-list li { display: flex; gap: 12px; }
.info-list svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--gold); }
.info-list b { display: block; font-size: var(--fs-small); color: var(--ink); }
.info-list span, .info-list a { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.info-list a:hover { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   16b. Numbered process steps
   -------------------------------------------------------------------------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.step__num {
  flex: none;
  width: 48px;
  padding-top: 4px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-small); color: var(--muted); max-width: 62ch; }
@media (max-width: 559px) {
  .step { flex-direction: column; gap: var(--s-3); }
  .step__num { width: auto; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   16c. Page hero with background photo (services, about)
   -------------------------------------------------------------------------- */
.page-hero--image { position: relative; overflow: hidden; isolation: isolate; }
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .1;                 /* the design's 10% layer opacity */
  pointer-events: none;
}
.page-hero--tall {
  display: flex;
  align-items: center;
  min-height: clamp(440px, 46vw, 660px);
}
.page-hero--tall .container { width: 100%; }
.page-hero--tall h1 { margin-bottom: clamp(32px, 7vw, 116px); }

/* --------------------------------------------------------------------------
   16d. Services page — story + alternating capability sections
   -------------------------------------------------------------------------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.story h2 { font-size: var(--fs-h1); max-width: 17ch; text-wrap: wrap; }
.nowrap { white-space: nowrap; }
.story__text {
  max-width: none;
  /* line the paragraph up with the heading, below the eyebrow */
  padding-top: calc(var(--fs-label) * 1.4 + var(--s-5));
  color: var(--ink-2);
}

.svc { padding-block: clamp(40px, 5vw, 72px); }
.svc:last-of-type { padding-bottom: var(--section-y); }
.svc__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: center;
}
.svc--flip .svc__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.svc--flip .svc__media { order: 2; }
.svc__num {
  margin-bottom: var(--s-4);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold-deep);
}
.svc__body h2 { font-size: var(--fs-h1); }
.svc__body .lead { margin-top: var(--s-4); max-width: 52ch; color: var(--ink-2); }
.svc__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) clamp(24px, 3vw, 48px);
  margin-top: clamp(24px, 2.6vw, 36px);
}
.svc__label {
  margin-bottom: var(--s-4);
  font-size: clamp(1rem, 0.88rem + 0.45vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.svc__list { display: grid; gap: 8px; }
.svc__list li {
  display: flex;
  gap: 4px;
  font-size: clamp(0.875rem, 0.83rem + 0.18vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.svc__list li::before { content: "-"; flex: none; }
.svc__body .btn { margin-top: clamp(28px, 3vw, 40px); }

@media (max-width: 899px) {
  .story__grid,
  .svc__grid,
  .svc--flip .svc__grid { grid-template-columns: 1fr; }
  .story__text { padding-top: 0; }
  .svc--flip .svc__media { order: 0; }
}
@media (max-width: 479px) {
  .svc__lists { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   16e. Status pages (thank you / 404)
   -------------------------------------------------------------------------- */
.status {
  display: grid;
  place-items: center;
  min-height: clamp(520px, 62vh, 740px);
  text-align: center;
}
.status__inner { max-width: 620px; }
.status__art {
  display: block;
  width: clamp(150px, 19vw, 210px);
  height: auto;
  margin: 0 auto clamp(28px, 3vw, 44px);
}
.status__art--wide { width: clamp(250px, 32vw, 400px); }
.status h1 { margin-bottom: var(--s-5); }
.status .lead { margin-inline: auto; }
.status__actions { justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
.status__meta {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: var(--fs-small);
  color: var(--muted);
}
.status__meta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status__meta a:hover { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   16f. Gallery lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  /* dim on the dialog itself: ::backdrop alone is unreliable in older browsers */
  background: rgba(8, 8, 8, .92);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(8, 8, 8, .9);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox[open] { animation: fade-in .25s var(--ease); }

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: min(1120px, calc(100vw - 2 * clamp(56px, 10vw, 120px)));
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .72);
  text-align: center;
}
.lightbox__count { color: var(--gold-light); font-weight: 700; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(12px, 2vw, 26px); right: clamp(12px, 2vw, 26px); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(10px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 28px); }

@media (max-width: 599px) {
  .lightbox__close, .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__figure { max-width: calc(100vw - 32px); }
  .lightbox__figure img { max-height: calc(100dvh - 190px); }
  .lightbox__nav { top: auto; bottom: clamp(16px, 5vw, 32px); transform: none; }
  .lightbox__nav--prev { left: 25%; }
  .lightbox__nav--next { right: 25%; }
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

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

/* --------------------------------------------------------------------------
   18. Responsive grid collapses
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 200px; }
}
