/* ==========================================================================
   AL QASAEM TRADING & CONTRACTING CO. — company website
   Layout and motifs follow the reference construction template; recoloured
   to the AQT blue range. Plain CSS, no framework.
   ========================================================================== */

:root {
  --c-primary: #0c477a;
  --c-primary-2: #195b86;
  --c-primary-d: #08355c;
  --c-accent: #4aa3dd;
  --c-accent-soft: #8ecdf2;
  --c-ink: #2f2f2f;
  --c-muted: #6b7785;
  --c-bg-soft: #f5f8fb;
  --c-dark: #10233a;
  --c-line: #e3e9ef;

  --topbar-h: 44px;
  --nav-h: 94px;
  --nav-h-sticky: 70px;

  --f-head: "Montserrat", "Segoe UI", sans-serif;
  --f-body: "Raleway", "Segoe UI", sans-serif;
  /* Small prose — captions, notes, meta, table body. Droid Serif was retired
     from Google Fonts; Noto Serif is its successor and is what actually loads,
     so the name is kept first for anyone who has Droid Serif installed. */
  --f-small: "Droid Serif", "Noto Serif", Georgia, serif;
}

/* --- base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  color: var(--c-ink);
  line-height: 1.5;
  margin: 0 0 20px;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 25px; font-weight: 700; }
h4 { font-size: 22px; font-weight: 700; }
h5 { font-size: 18px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 700; }

p { margin: 0 0 20px; font-size: 15px; font-weight: 500; line-height: 23px; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary-2); }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.section { padding: 90px 0; }
.section--soft { background: var(--c-bg-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1200;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: #fff; }

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  min-height: 51px;
  padding: 0 24px;
  border: 2px solid var(--c-primary);
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover, .btn:focus { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover, .btn--ghost:focus { background: #fff; border-color: #fff; color: var(--c-primary); }

.btn--white { background: #fff; border-color: #fff; color: var(--c-primary); }
.btn--white:hover, .btn--white:focus { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* --- section heading motif ---------------------------------------------- */

.heading { max-width: 720px; margin: 0 auto 55px; text-align: center; }
.heading--left { margin-left: 0; text-align: left; }

.heading__bg { position: relative; padding-top: 14px; }

.heading__kicker {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-primary-2);
}
.heading__bg h2 {
  position: relative;
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.24;
  letter-spacing: .01em;
  text-transform: uppercase;
}
/* The trailing accent dot the template ends every section title with. */
.heading__bg h2::after { content: "."; color: var(--c-accent); }
.heading__lead { margin-top: 26px; }

/* Projects-style header: title left, filters right on one row. */
.heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
  margin-bottom: 42px;
  text-align: left;
}
.heading--row > :first-child { flex: 0 1 auto; min-width: 0; }
.heading--row .heading__lead { margin-top: 18px; max-width: 520px; }
.heading--row .filters { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; justify-content: flex-end; }

/* --- top bar ------------------------------------------------------------ */

.topbar {
  height: var(--topbar-h);
  background: var(--c-dark);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.topbar ul { display: flex; align-items: center; gap: 26px; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--c-accent-soft); }
.topbar .icon { width: 16px; height: 16px; color: var(--c-accent-soft); }

.topbar__social { gap: 6px !important; }
.topbar__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.topbar__social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.topbar__social .icon { width: 15px; height: 15px; color: inherit; }

/* --- header / nav ------------------------------------------------------- */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.nav {
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  transition: background-color .3s ease, height .3s ease, box-shadow .3s ease;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

/* Blue logo needs its own white plate over the transparent/dark bar — lifted with the
   same soft shadow the header already uses once stuck, so it reads as a deliberate
   plate rather than a pasted-on box. Shadow drops once the whole bar turns white. */
.logo {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(8, 20, 36, .3);
  transition: box-shadow .3s ease;
}
.logo img { height: 44px; width: auto; transition: height .3s ease; }
.logo .logo--light { display: none; }
.logo .logo--dark { display: block; }
.site-header.is-stuck .logo { box-shadow: none; }

.nav__list { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav__list > li { height: 100%; display: flex; align-items: center; position: relative; }
.nav__list a {
  display: flex;
  align-items: center;
  height: 100%;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
}
.nav__list > li::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--c-accent);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.nav__list > li:hover::after,
.nav__list > li.is-active::after { opacity: 1; transform: translateY(0); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 2px solid var(--c-accent);
  color: #fff;
  cursor: pointer;
}
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

.site-header.is-stuck .topbar { display: none; }
.site-header.is-stuck .nav {
  background: #fff;
  height: var(--nav-h-sticky);
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 18px rgba(16, 35, 58, .12);
}
.site-header.is-stuck .nav__list a { color: var(--c-ink); }
.site-header.is-stuck .nav__list a:hover { color: var(--c-primary); }
.site-header.is-stuck .logo img { height: 38px; }
.site-header.is-stuck .nav__toggle { color: var(--c-ink); }

/* --- hero ---------------------------------------------------------------
   Cinematic project slider. Layers, back to front:
     0  photo (Ken Burns) + sweep
     1  blue grade + readability scrim   (slide ::before / ::after)
     2  engineering line work (SVG) + oversized voltage numeral
     3  copy column
     4  project strip + vertical edge label
   Every animation is keyed off `.hero__slide.is-active`, so a slide replays
   its whole choreography each time it comes round. Only transform, opacity
   and clip-path animate.
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  height: clamp(640px, 92vh, 1000px);
  overflow: hidden;
  background: var(--c-primary-d);
  --hero-ease: cubic-bezier(.22, 1, .36, 1);
  --hero-dur: 6500ms;          /* autoplay interval; heroSlider() uses the same number */
  --hero-bar: 68px;            /* height of the project strip the copy must clear */
}

.hero__slide {
  position: absolute;
  inset: 0;
  isolation: isolate;          /* keeps the blue grade off the slide underneath */
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

/* --- photograph --------------------------------------------------------- */

.hero__media { position: absolute; inset: 0; overflow: hidden; --flip: 1; }
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(.78) contrast(1.04);
  transform: scaleX(var(--flip));
}
/* Mirrors a frame so its dominant tower sits right of the copy column. */
.hero__media--flip { --flip: -1; }

/* Overlay that crosses the frame as the new photo is revealed. Neutral, not
   tinted: a coloured sweep fought the photograph underneath. */
.hero__sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(-120%);
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, .10) 50%,
    rgba(255, 255, 255, 0) 60%);
}

/* Grade: a light desaturation on the photo itself plus a flat navy veil.
   A `color`-blend layer was tried here and repainted the desert and the
   aviation-red towers blue — the photo stopped looking like a photograph.
   The navy now comes from the scrim below, which darkens without shifting
   hue. */
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 40, 70, .22);
}

/* Readability scrim — heavy on the left where the copy sits, with a foot so
   the project strip keeps its frame against a bright sky. */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(5, 23, 41, .88) 0%, rgba(5, 23, 41, .25) 26%, rgba(5, 23, 41, 0) 48%),
    linear-gradient(90deg, rgba(5, 23, 41, .9) 0%, rgba(5, 23, 41, .76) 34%, rgba(5, 23, 41, .34) 68%, rgba(5, 23, 41, .5) 100%);
}

/* --- engineering line work ---------------------------------------------- */

.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease .25s;
  transform: translate3d(calc(var(--hero-px, 0) * -.7px), calc(var(--hero-py, 0) * -.7px), 0);
}
.hero__slide.is-active .hero__fx { opacity: 1; }

.hero__fx path { vector-effect: non-scaling-stroke; }
.hero__fx-tick { stroke: rgba(255, 255, 255, .34); stroke-width: 1; }

/* Paths carry pathLength="1000", so dash lengths below are percent-like and
   independent of how long the path actually is. */
.hero__fx-draw {
  stroke: rgba(142, 205, 242, .55);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.hero__slide.is-active .hero__fx-draw { animation: heroDraw 2.4s ease-out .5s both; }

.hero__fx-riser {
  stroke: var(--c-accent-soft);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.hero__slide.is-active .hero__fx-riser { animation: heroDraw 2.8s cubic-bezier(.3, .9, .3, 1) .7s both; }

/* Energy pulse travelling along the conductor. A short dash, not a flash. */
.hero__fx-pulse {
  stroke: var(--c-accent-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 55 945;
  stroke-dashoffset: 1000;
  opacity: 0;
}
.hero__slide.is-active .hero__fx-pulse { animation: heroPulse 5s linear 1.4s infinite; }

@keyframes heroDraw  { to { stroke-dashoffset: 0; } }
@keyframes heroPulse {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  12%  { opacity: .9; }
  76%  { opacity: .9; }
  88%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* --- oversized voltage numeral ------------------------------------------ */

/* Outlined rather than filled: it has to read as drafting, not as a watermark.
   ponytail: -webkit-text-stroke only — no fallback, it is purely decorative. */
/* The ghost wordmark is SVG text so the outline is a real stroke: the glow can
   then sit on the letter contours instead of blurring a filled shape.
   Two copies of the word — a static faint outline, and a neon copy that breathes. */
.hero__ghost {
  position: absolute;
  z-index: 2;
  left: -2vw;
  top: 50%;
  width: 100%;
  height: 40vw;
  overflow: visible;
  fill: none;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate3d(calc(var(--hero-px, 0) * .5px), calc(-50% + var(--hero-py, 0) * .5px), 0);
}
.hero__ghost text {
  font-family: var(--f-head);
  font-size: 300px;         /* viewBox units; the viewBox maps 300 -> 30vw */
  font-weight: 700;
  letter-spacing: -13.5px;  /* -.045em at this size */
}
.hero__ghost-base { stroke: rgba(255, 255, 255, .11); stroke-width: 2; }

/* 70 on, 930 off: one lit segment per ~1000 units of contour, which lands at
   roughly one per letter — the fewest that still reads as a current running
   the wordmark. The drop-shadows make each segment read as light, not ink.
   One dashoffset period (-1000) per cycle, so the loop has no jump; 24s over
   that period is ~40 units/sec, a crawl rather than a chase. */
.hero__ghost-neon {
  stroke: var(--c-accent-soft);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 70 930;
  opacity: .85;
  filter: drop-shadow(0 0 6px rgba(142, 205, 242, .75))
          drop-shadow(0 0 20px rgba(74, 163, 221, .5));
}
.hero__slide.is-active .hero__ghost { animation: heroGhost 1.6s var(--hero-ease) .15s both; }
.hero__slide.is-active .hero__ghost-neon { animation: heroGhostCrawl 24s linear .6s infinite; }
@keyframes heroGhost { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroGhostCrawl { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }

/* --- copy --------------------------------------------------------------- */

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero__copy {
  max-width: 720px;
  padding: var(--nav-h) 0 var(--hero-bar);
  color: #fff;
  font-family: var(--f-head);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--c-accent); }

.hero__head { margin: 0 0 18px; font-family: var(--f-head); }

/* Two masked lines rather than one wrapping block, so each can rise on its own. */
.hero__line {
  display: block;
  font-size: clamp(28px, 3.9vw, 50px);   /* capped: 'POWER INFRASTRUCTURE' measures ~707px at 50px and the copy column is 720px */
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.hero__line--accent { color: var(--c-accent-soft); }

/* The motto reads as a signature under the statement — a rule at its left
   rather than in front of it, so it does not echo the eyebrow above. */
.hero__motto {
  margin: 0 0 26px;
  padding-left: 14px;
  border-left: 2px solid var(--c-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}

.hero__lead {
  max-width: 540px;
  margin: 0 0 32px;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .84);
}

.hero__specs { display: flex; margin: 4px 0 0; padding: 0; }
.hero__specs > div { padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__specs > div:first-child { padding-left: 0; border-left: 0; }
.hero__specs dt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
}
.hero__specs dd {
  margin: 7px 0 0;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* --- entrance choreography ---------------------------------------------- */

.hero__eyebrow,
.hero__motto,
.hero__lead,
.hero__specs > div { opacity: 0; }
.hero__mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__mask > span { transform: translateY(115%); }

.hero__slide.is-active .hero__media          { animation: heroWipe .85s cubic-bezier(.76, 0, .24, 1) both; }
.hero__slide.is-active .hero__media img      { animation: heroKen 8.5s ease-out both; }
.hero__slide.is-active .hero__sweep          { animation: heroSweep .95s cubic-bezier(.65, 0, .3, 1) both; }
.hero__slide.is-active .hero__eyebrow        { animation: heroRise .7s var(--hero-ease) 80ms both; }
.hero__slide.is-active .hero__mask > span    { animation: heroMask .85s var(--hero-ease) 260ms both; }
.hero__slide.is-active .hero__mask + .hero__mask > span { animation-delay: 380ms; }
.hero__slide.is-active .hero__motto          { animation: heroRise .7s var(--hero-ease) 540ms both; }
.hero__slide.is-active .hero__lead           { animation: heroRise .7s var(--hero-ease) 620ms both; }
.hero__slide.is-active .hero__specs > div    { animation: heroRise .6s var(--hero-ease) both; }
.hero__slide.is-active .hero__specs > div:nth-child(1) { animation-delay: 740ms; }
.hero__slide.is-active .hero__specs > div:nth-child(2) { animation-delay: 805ms; }
.hero__slide.is-active .hero__specs > div:nth-child(3) { animation-delay: 870ms; }

@keyframes heroWipe  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes heroKen {
  from { transform: scaleX(var(--flip)) scale(1); }
  to   { transform: scaleX(var(--flip)) scale(1.055) translate(-1%, -.6%); }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroMask { from { transform: translateY(115%); } to { transform: none; } }

/* --- vertical edge label ------------------------------------------------- */

.hero__edge {
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 50%;
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
  pointer-events: none;
}

/* --- project strip ------------------------------------------------------- */

.hero__bar {
  position: absolute;
  z-index: 4;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(4, 20, 36, .96), rgba(4, 20, 36, .8));
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__bar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; }

.hero__tabs { display: flex; flex: 1; min-width: 0; }

.hero__tab {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--hero-bar);
  padding: 0 22px;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--f-head);
  color: rgba(255, 255, 255, .62);
  text-align: left;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease;
}
.hero__tab:first-child { padding-left: 0; border-left: 0; }
.hero__tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hero__tab:focus-visible { outline: 2px solid var(--c-accent-soft); outline-offset: -4px; }

.hero__tab-no { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .5); transition: color .3s ease; }
.hero__tab-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__tab[aria-current="true"] { color: #fff; }
.hero__tab[aria-current="true"] .hero__tab-no { color: var(--c-accent-soft); }

/* Countdown rail along the top edge of the strip. heroSlider() replays it on
   every change, so manual navigation resets the clock. */
.hero__tab-line {
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__tab[aria-current="true"] .hero__tab-line { animation: heroProgress var(--hero-dur) linear forwards; }
.hero.is-paused .hero__tab-line { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__ctrls { display: flex; align-items: center; gap: 10px; }
.hero__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.hero__nav-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero__nav-btn:focus-visible { outline: 2px solid var(--c-accent-soft); outline-offset: 2px; }
.hero__nav-btn .icon { width: 18px; height: 18px; }

/* --- hero responsive ----------------------------------------------------- */

@media (max-width: 1199px) {
  .hero__edge { display: none; }
  .hero__ghost { height: 52vw; }
}

@media (max-width: 991px) {
  /* Tablet keeps the photograph and the type; the drafting layer goes. */
  .hero { height: auto; min-height: 680px; min-height: max(680px, 88vh); }
  .hero__fx { display: none; }
  .hero__ghost { display: none; }
  .hero__copy { padding-top: calc(var(--nav-h) + 30px); padding-bottom: calc(var(--hero-bar) + 30px); }
  .hero__lead { font-size: 16px; }
  .hero__specs > div { padding: 0 18px; }
  /* three project names plus the arrows have to share a tablet width */
  .hero__tab { padding: 0 14px; }
  .hero__tab-name { font-size: 11px; letter-spacing: .08em; }
}

@media (max-width: 767px) {
  .hero { min-height: 660px; min-height: max(660px, 90svh); --hero-bar: 60px; }
  /* Bottom-weighted scrim: on a phone the copy sits over the picture, not
     beside it. */
  .hero__slide::after {
    background:
      linear-gradient(0deg, rgba(5, 23, 41, .92) 0%, rgba(5, 23, 41, .72) 40%, rgba(5, 23, 41, .3) 72%, rgba(5, 23, 41, .5) 100%);
  }
  .hero .container { align-items: flex-end; }
  .hero__copy { padding: calc(var(--nav-h) + 20px) 0 calc(var(--hero-bar) + 26px); }
  /* the longest eyebrow is SPECIALIZED TRANSMISSION WORKS — it has to fit on one line */
  .hero__eyebrow { font-size: 10px; letter-spacing: 2px; margin-bottom: 14px; }
  .hero__eyebrow::before { width: 22px; }
  .hero__line { font-size: 29px; line-height: 1.12; }
  .hero__motto { font-size: 11px; letter-spacing: .18em; margin-bottom: 22px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__specs { display: none; }

  /* Strip keeps the numbers — still tappable, still shows the countdown. */
  .hero__tabs { flex: 0 0 auto; }
  .hero__tab { flex: 0 0 auto; padding: 0 16px; }
  .hero__tab-name { display: none; }
  .hero__nav-btn { width: 44px; height: 44px; }

  /* A phone crop is narrow enough to lose the tower entirely, so each slide
     names its own focal point. The flipped slides get the subject's position
     in the *original* frame — object-position resolves before the mirror. */
  .hero__slide:nth-of-type(1) .hero__media img { object-position: 28% 62%; }
  .hero__slide:nth-of-type(2) .hero__media img { object-position: 70% 46%; }
}

@media (prefers-reduced-motion: reduce) {
  /* The global rule collapses every duration; these two would otherwise be
     left mid-animation. */
  .hero__tab[aria-current="true"] .hero__tab-line { animation: none; transform: scaleX(1); }
  .hero__fx-pulse { display: none; }
  /* Lines stay, they just stop travelling. */
  /* Outline stays, the lit segments stop crawling. */
  .hero__slide.is-active .hero__ghost-neon { animation: none; }
}

/* --- split blocks (about / chairman) ------------------------------------ */

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }
.split--narrow { grid-template-columns: 5fr 7fr; gap: 50px; }

.split > div > p,
.purpose__card > p,
.message__col p { text-align: justify; hyphens: auto; }
.split__media { position: relative; }
.split__media img { width: 100%; }
.split__media::before {
  content: "";
  position: absolute;
  left: -18px; bottom: -18px;
  width: 140px; height: 140px;
  border: 3px solid var(--c-accent);
  z-index: -1;
}

.factlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.factlist li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-left: 3px solid var(--c-primary);
  box-shadow: 0 2px 12px rgba(16, 35, 58, .06);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
}
.factlist .icon { width: 20px; height: 20px; color: var(--c-primary); }

.chairman__quote {
  border-inline-start: 3px solid var(--c-accent);
  padding-inline-start: 22px;
  font-size: 18px;
  font-style: italic;
  color: var(--c-ink);
  margin-bottom: 26px;
}

.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values li {
  padding: 7px 14px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--c-primary);
}

/* --- capability cards --------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 40px; }

/* Bare columns, not boxes: outline icon, uppercase title over a short accent
   rule, copy, then a plus that opens into its label on hover. */
.card { position: relative; background: none; border: 0; padding: 0; }
.card__icon {
  display: block;
  margin-bottom: 24px;
  color: var(--c-primary);
  transition: color .25s ease, transform .25s ease;
}
.card__icon .icon { width: 46px; height: 46px; stroke-width: 1.4; }
.card:hover .card__icon { color: var(--c-accent); transform: translateY(-3px); }
.card h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 2px; background: var(--c-accent); }
.card:hover h3 { color: var(--c-primary-2); }
.card p { margin: 0; font-size: 15px; }


/* --- image bands -------------------------------------------------------- */

.band { position: relative; padding: 80px 0; background: var(--c-primary); color: #fff; overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(8, 53, 92, .9); }
.band .container { position: relative; z-index: 2; }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counters .num {
  display: block;
  font-family: var(--f-head);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.counters .num .suffix { color: var(--c-accent-soft); }
.counters .label {
  display: block;
  margin-top: 8px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.statement { text-align: center; }
.statement h2 { color: #fff; font-size: 38px; margin-bottom: 14px; }
.statement p { max-width: 640px; margin: 0 auto 30px; color: rgba(255, 255, 255, .88); }

/* --- project grid ------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-bottom: 40px; }
.filters button {
  position: relative;
  min-height: 44px;            /* plain text, but still a 44px touch target */
  padding: 0 12px;
  background: none;
  border: 0;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--c-muted);
  cursor: pointer;
  transition: color .25s ease;
}
.filters button::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.filters button:hover { color: var(--c-primary); }
.filters button[aria-pressed="true"] { color: var(--c-primary); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }

/* Gapless full-bleed grid — the photography runs edge to edge, as the template does. */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.projects__all { margin: 48px 0 0; text-align: center; }

/* Image on top, details below. An overlay card buried the photography, and the
   photos are the whole point of this section. */
.project { position: relative; overflow: hidden; background: var(--c-primary-d); }
.project[hidden] { display: none; }

.project__thumb { display: block; }
.project img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.project:hover img,
.project:focus-within img { transform: scale(1.06); }

/* The detail panel sits over the photo and fades in on hover, the way the
   template does it. `focus-within` keeps it reachable from the keyboard, and
   the (hover: none) block below drops it back under the image on touch. */
.project__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 24px;
  background: rgba(8, 53, 92, .94);
  opacity: 0;
  transition: opacity .3s ease;
}
.project:hover .project__body,
.project:focus-within .project__body { opacity: 1; }

.project__cat {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}
.project__body h3 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}
.project__body h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 2px; background: var(--c-accent); }
.project__meta { margin: 0; font-family: var(--f-small); font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.project__meta span { display: block; }
.project__meta b { font-weight: 600; color: #fff; }

/* No hover to reveal with — show the details under the photo instead. */
@media (hover: none) {
  .project { background: #fff; border: 1px solid var(--c-line); }
  .project__body { position: static; opacity: 1; background: none; padding: 18px 20px 22px; }
  .project__cat { color: var(--c-primary-2); }
  .project__body h3 { color: var(--c-ink); }
  .project__meta { color: var(--c-muted); }
  .project__meta b { color: var(--c-ink); }
}

/* --- HSE & quality ------------------------------------------------------ */

.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }

/* One block per discipline: copy beside its list inside a single panel. */
.topic { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px 44px; align-items: start; }
.topic__motto {
  margin-top: 24px;
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-primary);
}

.panel { height: 100%; padding: 40px 36px; background: #fff; border: 1px solid var(--c-line); }
.panel--dark { background: var(--c-primary); border-color: var(--c-primary); color: rgba(255, 255, 255, .85); }
.panel--dark h2, .panel--dark h3 { color: #fff; }
.panel__tag--ink { color: var(--c-primary-2); }
.panel__tag {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  margin-bottom: 10px;
}

.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.tenets li { padding: 18px 14px; text-align: center; background: rgba(255, 255, 255, .07); border-top: 2px solid var(--c-accent); }
.tenets .icon { width: 26px; height: 26px; color: var(--c-accent-soft); }
.tenets strong { display: block; margin: 10px 0 4px; font-family: var(--f-head); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.tenets span { font-family: var(--f-small); font-size: 13px; line-height: 1.5; }

.pillars li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pillars li:last-child { padding-bottom: 0; border-bottom: 0; }
.pillars .icon { color: var(--c-accent-soft); }
.pillars strong { display: block; font-family: var(--f-head); font-size: 15px; color: #fff; }
.pillars span { font-family: var(--f-small); font-size: 14px; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.principles li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  background: var(--c-bg-soft);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
}
.principles .icon { width: 18px; height: 18px; color: var(--c-primary); }

/* --- mission & vision ---------------------------------------------------- */

/* Two facing panels, one dark one light, each led by an outlined numeral that
   echoes the hero's ghost wordmark. Same motifs as the cards: outline icon,
   uppercase title over a 20x2 accent rule. */
.purpose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.purpose__card {
  position: relative;
  overflow: hidden;
  padding: 44px 40px 40px;
  background: #fff;
  border: 1px solid var(--c-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.purpose__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 71, 122, .1); }

/* The accent edge reads as the shared spine between the two panels. */
.purpose__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--c-accent);
}

.purpose__card--dark {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: rgba(255, 255, 255, .84);
}
.purpose__card--dark:hover { box-shadow: 0 18px 40px rgba(8, 53, 92, .32); }
/* On the deep blue the plain accent sinks in; the soft one holds the edge. */
.purpose__card--dark::before { background: var(--c-accent-soft); }

/* Outlined numeral, top-right, behind everything. */
.purpose__ghost {
  position: absolute;
  top: -.22em; right: .04em;
  font-family: var(--f-head);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(12, 71, 122, .09);
  pointer-events: none;
  user-select: none;
}
.purpose__card--dark .purpose__ghost { -webkit-text-stroke-color: rgba(255, 255, 255, .13); }

.purpose__icon { position: relative; margin-bottom: 22px; color: var(--c-primary); }
.purpose__icon .icon { width: 44px; height: 44px; stroke-width: 1.4; }
/* On the deep blue, the soft accent is the one that keeps its contrast. */
.purpose__card--dark .purpose__icon { color: var(--c-accent-soft); }

.purpose__tag {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-primary-2);
}
.purpose__card--dark .purpose__tag { color: var(--c-accent-soft); }

.purpose__card h3 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 16px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.purpose__card h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 20px; height: 2px;
  background: var(--c-accent);
}
.purpose__card--dark h3 { color: #fff; }

.purpose__card > p { position: relative; margin: 0; font-size: 15px; line-height: 1.75; }

.purpose__list { position: relative; margin: 26px 0 0; padding: 0; list-style: none; }
.purpose__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
}
.purpose__list .icon { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: var(--c-accent); }
.purpose__card--dark .purpose__list li { border-top-color: rgba(255, 255, 255, .18); color: #fff; }
.purpose__card--dark .purpose__list .icon { color: var(--c-accent-soft); }

/* --- activity gallery / boards ------------------------------------------ */

/* The posters and boards are client artwork with baked-in headlines, so they are
   never cropped: masonry columns keep each one whole at its own aspect ratio. */
.gallery { columns: 2; column-gap: 24px; }
.gallery figure { break-inside: avoid; margin: 0 0 24px; }
.gallery img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--c-line);
}
.boards { margin-top: 46px; display: grid; gap: 34px; }
.boards figure { margin: 0; }

/* Challenging works: the client's board beside the same content as cards.
   The board stays in view while the longer card column scrolls past it. */
.challenging { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.challenging__board { margin-top: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.challenging .cards { grid-template-columns: 1fr; gap: 44px; }
@media (max-width: 991px) {
  .challenging { grid-template-columns: 1fr; gap: 44px; }
  .challenging__board { position: static; max-width: 560px; width: 100%; margin-inline: auto; }
}
.boards img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); }
.boards figcaption { margin-top: 12px; text-align: center; font-family: var(--f-small); font-size: 14px; }

/* --- chairman's message (bilingual) -------------------------------------- */

.message { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; }
.message__col--rtl {
  direction: rtl; text-align: right;
  border-left: 1px solid var(--c-line); padding-left: 28px;
  line-height: 1.95; /* Arabic script needs more leading than Latin at the same size */
}
/* Portrait leads the message, so the signature block stacks and centres above
   it. 96px is the ceiling: chairman.jpg is cropped from a small headshot. */
.chairman__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  text-align: center;
}
.chairman__sign img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(12, 71, 122, .16);
}
.chairman__sign strong { display: block; font-family: var(--f-head); font-size: 16px; color: var(--c-ink); }
.chairman__sign span { display: block; font-family: var(--f-small); font-size: 14px; }

/* --- clients ------------------------------------------------------------ */

/* One endless row. main.js duplicates the logos once, so translating the track
   by exactly half its width loops seamlessly. Faded edges, no scrollbar. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.clients { display: flex; gap: 28px; align-items: center; width: max-content; }
.clients li { flex: 0 0 190px; }
.clients--rolling { animation: marquee 45s linear infinite; }
.marquee:hover .clients--rolling, .clients--rolling:focus-within { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
/* Bare marks, no plates: each logo is pre-letterboxed into the same transparent
   box by make_assets.py, so the row stays even whatever shape the original is. */
.clients img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.clients__note { margin-top: 18px; text-align: center; font-family: var(--f-small); font-size: 14px; }

/* --- scroll reveal ------------------------------------------------------- */
/* .reveal is added by main.js, so a page without JS renders fully visible. */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* Children ride the section's .reveal, so a page without the observer still
   renders everything — nothing is hidden until main.js opts the section in. */
.reveal .stagger > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-in .stagger > * { opacity: 1; transform: none; }
.reveal .stagger > :nth-child(2) { transition-delay: 70ms; }
.reveal .stagger > :nth-child(3) { transition-delay: 140ms; }
.reveal .stagger > :nth-child(4) { transition-delay: 210ms; }
.reveal .stagger > :nth-child(5) { transition-delay: 280ms; }
.reveal .stagger > :nth-child(6) { transition-delay: 350ms; }
.reveal .stagger > :nth-child(7) { transition-delay: 420ms; }

/* The board unrolls left-to-right instead of fading — it is a banner, and the
   wipe reads as one being unfurled. clip-path only, so no reflow. */
.reveal .boards img { clip-path: inset(0 100% 0 0); transform: scale(1.03); transition: clip-path .9s cubic-bezier(.22, .61, .36, 1) .15s, transform 1s ease-out .15s; }
.reveal.is-in .boards img { clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .reveal .stagger > *, .reveal .boards img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .clients--rolling { animation: none; }
  .clients { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --- footer ------------------------------------------------------------- */

.footer { padding: 80px 0 0; background: var(--c-dark); color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer h4 {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 12px;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
}
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--c-accent-soft); }
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: var(--c-accent-soft); }

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 45px; }
.footer__logo { height: 52px; width: auto; margin-bottom: 22px; }
.footer__links li { margin-bottom: 10px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--c-accent-soft); }

.footer__social { display: flex; gap: 8px; margin-top: 22px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
}
.footer__social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}
.footer__bottom strong { font-family: var(--f-head); letter-spacing: 1px; color: var(--c-accent-soft); }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 991px) {
  /* No h1/h2 overrides: the base scale (32/28px) is already template-sized. */
  .section { padding: 70px 0; }

  .nav__toggle { display: inline-flex; }
  /* An open menu needs a solid bar behind it — the hero must not read through. */
  .nav:has(.nav__list.is-open) { background: var(--c-dark); }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 8px 15px 16px;
    background: var(--c-dark);
  }
  .nav__list.is-open { display: flex; }
  .nav__list > li { height: auto; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__list > li::after { display: none; }
  .nav__list a { min-height: 48px; color: #fff; }
  .site-header.is-stuck .nav__list a { color: #fff; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  /* Title over filters once they stop fitting side by side. */
  .heading--row { display: block; }
  .heading--row .filters { flex-wrap: wrap; margin-top: 24px; justify-content: flex-start; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .split, .split--narrow, .duo { grid-template-columns: 1fr; gap: 40px; }
  .topic { grid-template-columns: 1fr; gap: 34px; }
  .purpose { grid-template-columns: 1fr; gap: 24px; }
  .message { grid-template-columns: 1fr; }
  .message__col--rtl { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-line); padding-top: 28px; }
  .gallery { columns: 1; }
  .split__media::before { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }

  .topbar .topbar__meta li:not(:first-child) { display: none; }
  .logo img { height: 36px; }

  .cards, .projects, .factlist, .principles { grid-template-columns: 1fr; }
  .tenets { grid-template-columns: 1fr; }
  .purpose__card { padding: 34px 26px 30px; }
  .purpose__ghost { font-size: 110px; }
  .counters { grid-template-columns: 1fr; }
  .panel { padding: 30px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- inner page banner -------------------------------------------------- */

.page-head {
  position: relative;
  padding: 210px 0 90px;
  background: var(--c-primary-d);
  overflow: hidden;
  text-align: center;
}
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; background: rgba(8, 53, 92, .85); }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: 44px; margin-bottom: 14px; }
.page-head p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .88); }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.breadcrumb a { color: var(--c-accent-soft); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .4); }

/* --- project register table --------------------------------------------- */

.register-wrap { overflow-x: auto; border: 1px solid var(--c-line); background: #fff; }
.register { width: 100%; border-collapse: collapse; font-family: var(--f-small); font-size: 14px; }
.register caption { padding: 18px 20px; text-align: left; color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
.register th, .register td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.register thead th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.register tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.register tbody tr:hover { background: #eef4fa; }
.register td:first-child { font-variant-numeric: tabular-nums; color: var(--c-muted); width: 52px; }
.register .scope { color: var(--c-ink); font-weight: 600; }
.register tr[hidden] { display: none; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-primary-2);
}
.tag--ongoing { border-color: var(--c-accent); color: var(--c-primary); }

/* --- contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }

.contact-cards { display: grid; gap: 16px; }
.contact-cards li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
}
.contact-cards .icon { width: 22px; height: 22px; color: var(--c-primary); margin-top: 3px; }
.contact-cards h3 { font-size: 15px; margin: 0 0 4px; }
.contact-cards p, .contact-cards a { font-size: 15px; margin: 0; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form .field--wide { grid-column: 1 / -1; }
.form label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--c-ink);
}
.form .req { color: var(--c-primary-2); }
.form input, .form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--c-primary); outline-offset: 0; }
.form .hint { margin-top: 8px; font-family: var(--f-small); font-size: 13px; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--c-primary); }

@media (max-width: 991px) {
  .page-head { padding: 175px 0 70px; }
  .page-head h1 { font-size: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 767px) {
  .page-head { padding: 160px 0 56px; }
  .page-head h1 { font-size: 28px; }
  .form { grid-template-columns: 1fr; }
}

/* --- justified body copy -------------------------------------------------
   Client request: prose reads justified. Display copy that is centred or set
   short on purpose (page heads, section leads, hero, captions, statements)
   keeps the alignment its container gives it. */

main p, .footer__grid p { text-align: justify; hyphens: auto; }
main :is(.page-head, .hero, .heading, .statement, .counters, .boards, .clients__note, .projects__all) p,
.project__meta, .footer__bottom p { text-align: inherit; hyphens: manual; }

/* --- certificates --------------------------------------------------------
   Same motifs as .card (outline icon, uppercase title over a 20x2 accent rule)
   but boxed, and each item can carry more than one document link — so these are
   real links rather than .card's single whole-column click target. */

.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.cert { padding: 36px 34px; background: #fff; border: 1px solid var(--c-line); }
.cert__icon { display: block; margin-bottom: 22px; color: var(--c-primary); }
.cert__icon .icon { width: 42px; height: 42px; stroke-width: 1.4; }
.cert h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cert h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 2px; background: var(--c-accent); }
.cert p { font-size: 15px; }

.cert__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 24px; }
.cert__facts dt {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.cert__facts dd { margin: 0; font-family: var(--f-small); font-size: 14px; color: var(--c-ink); }

.cert__docs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.cert__doc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cert__doc .icon { width: 18px; height: 18px; color: var(--c-accent); }
.cert__doc:hover .icon { color: var(--c-primary-2); }
.cert__note { margin: 0; font-family: var(--f-small); font-size: 14px; }

/* Certificate scans shown on the page: one uniform frame per document, the
   scan contained inside it whatever its orientation. */
.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.cert-gallery__item { display: block; color: inherit; }
.cert-gallery__frame {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 18px;
  background: #fff; border: 1px solid var(--c-line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cert-gallery__frame img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 6px 18px rgba(8, 53, 92, .12); }
.cert-gallery__item:hover .cert-gallery__frame,
.cert-gallery__item:focus-visible .cert-gallery__frame { border-color: var(--c-accent); box-shadow: 0 12px 30px rgba(8, 53, 92, .12); }
.cert-gallery__cap { display: block; margin-top: 14px; text-align: center; font-family: var(--f-small); font-size: 14px; }
.cert-gallery__cap strong { display: block; margin-bottom: 2px; font-family: var(--f-head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dark); }
.cert-gallery__item:hover strong { color: var(--c-primary-2); }

.policy-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.policy-links--head { justify-content: center; }

@media (max-width: 860px) {
  .certs { grid-template-columns: 1fr; gap: 28px; }
  .cert-gallery { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .cert { padding: 30px 24px; }
}

/* Key-activity list inside a capability card (challenging works). */
.card__acts { margin-top: 18px; display: grid; gap: 8px; }
.card__acts li { display: flex; gap: 10px; font-family: var(--f-small); font-size: 14px; }
.card__acts .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--c-accent); }
