/* ==========================================================================
   DNB Construction — stylesheet
   Every value transcribed from the design handoff ("DNB Website.dc.html").
   Signature shape: asymmetric radius `R 0 R 0` (top-left + bottom-right only).
   In RTL the radius does NOT mirror.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ------------------------------------------ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC;
}
/* Latin inside Arabic text (brand names, G+12, mehdubai.com) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-sans-arabic-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink: #15181C;
  --body: #3A3F47;
  --muted: #6B7280;
  --faint: #9AA0A8;
  --nav-idle: #4B5563;
  --accent: #FFC62B;
  --accent-hover: #F5B800;
  --tint: #FFF6D6;
  --gold-text: #B08200;
  --surface: #F6F7F9;
  --border: #E6E8EC;
  --hairline: #EDEFF2;
  --white: #fff;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec-y: clamp(64px, 8vw, 112px);
  --page-top: calc(78px + clamp(44px, 6vw, 92px));

  --font-en: 'DM Sans', system-ui, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --hero-overlay: linear-gradient(180deg, rgba(21, 24, 28, .15) 0%, rgba(21, 24, 28, .25) 40%, rgba(21, 24, 28, .85) 100%);
  --glass-shadow: 0 14px 44px -16px rgba(21, 24, 28, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
  --card-shadow: 0 18px 40px -20px rgba(21, 24, 28, .25);
}

/* ---------- Base --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
html, body { overflow-x: hidden; overflow-x: clip; }
html[lang="ar"] body { font-family: var(--font-ar); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; }
input, textarea, select, button { font-family: inherit; }
a, button, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--faint); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.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;
}
.skip-link {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px 0 10px 0; font-size: 14px; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

@keyframes dnbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dnbToast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.screen { animation: dnbIn .6s var(--ease) both; }

/* ---------- Layout primitives -------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec-y); }
.page-head { padding-top: var(--page-top); }

/* ---------- Type --------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); flex: none;
}
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.eyebrow--dim { color: rgba(255, 255, 255, .65); }

.h1 {
  margin: 18px 0 0; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 600; max-width: 18ch; text-wrap: balance;
}
.h1--hero {
  margin: 20px 0 0; font-size: clamp(38px, 6.2vw, 80px); line-height: 1.02;
  letter-spacing: -.03em; font-weight: 600; max-width: 15ch; text-wrap: balance;
}
.h1--16 { max-width: 16ch; }
.h1--contact { font-size: clamp(36px, 5.2vw, 64px); max-width: none; }
.h2 {
  margin: 18px 0 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1;
  letter-spacing: -.025em; font-weight: 600; text-wrap: balance;
}
.h2--20 { max-width: 20ch; }
.h2--22 { max-width: 22ch; }
.h2--24 { max-width: 24ch; }
.h2-sm {
  margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15;
  letter-spacing: -.025em; font-weight: 600; text-wrap: balance;
}
.lead { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.lead + .lead { margin-top: 16px; }

/* ---------- Links & buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; padding: 14px 22px;
  border-radius: 12px 0 12px 0; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; transition: background .2s; }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; font-size: 15.5px; padding: 16px 26px; transition: transform .2s; }
.btn--ink:hover { transform: translateY(-2px); color: #fff; }

.link-u {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15.5px; border-bottom: 2px solid var(--accent);
  padding-bottom: 4px; transition: gap .2s;
}
.link-u:hover { gap: 14px; }
.link-u--flush { margin-top: 0; }
.link-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.link-back--light { color: rgba(255, 255, 255, .75); }

/* ---------- Header ------------------------------------------------------- */
.hdr {
  position: fixed; top: 14px; left: 14px; right: 14px; z-index: 50;
  width: min(1240px, calc(100% - 28px)); margin-inline: auto;
}
.hdr__in { display: flex; flex-direction: column; gap: 8px; }
.hdr__bar {
  height: 64px; padding-inline: 22px 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; border-radius: 26px 0 26px 0;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--glass-shadow);
}
.hdr__logo { display: flex; align-items: center; gap: 12px; flex: none; }
.hdr__logo img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 13px; font-size: 14.5px; font-weight: 500; color: var(--nav-idle);
  border-bottom: 2px solid transparent; border-radius: 8px 0 8px 0;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(21, 24, 28, .06); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.hdr__right { display: flex; align-items: center; gap: 10px; flex: none; }
.lang {
  height: 40px; padding: 0 13px; border: 1px solid rgba(21, 24, 28, .14);
  border-radius: 12px 0 12px 0; background: rgba(255, 255, 255, .6);
  font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ar); transition: background .2s;
}
.lang:hover { background: rgba(21, 24, 28, .08); color: var(--ink); }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent);
  color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 11px 18px;
  border-radius: 14px 0 14px 0; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.hdr__cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hdr__mob { display: none; align-items: center; gap: 8px; }
.hdr__mob .lang { height: 44px; }
.burger {
  width: 44px; height: 44px; border: 1px solid rgba(21, 24, 28, .12);
  border-radius: 12px 0 12px 0; background: rgba(255, 255, 255, .6);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu {
  padding: 10px 22px 22px; display: none; flex-direction: column; gap: 2px;
  border-radius: 22px 0 22px 0; background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--glass-shadow);
  animation: dnbIn .3s ease both;
  max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto;
}
.menu.is-open { display: flex; }
.menu a {
  padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--nav-idle);
  border-bottom: 1px solid rgba(21, 24, 28, .08);
}
.menu a[aria-current="page"] { color: var(--ink); }
.menu__cta {
  margin-top: 16px; display: inline-flex; justify-content: center; align-items: center;
  gap: 8px; background: var(--accent); color: var(--ink); font-weight: 600;
  font-size: 15px; padding: 14px 18px; border-radius: 14px 0 14px 0;
  border-bottom: 0 !important;
}

/* ---------- Media frames ------------------------------------------------- */
.frame { border-radius: 28px 0 28px 0; overflow: hidden; background: var(--border); }
.frame--43 { aspect-ratio: 4/3; }
.frame--433 { aspect-ratio: 4/3.3; }
.frame--219 { aspect-ratio: 21/9; }
.frame img, .frame--sm img { width: 100%; height: 100%; object-fit: cover; }
.frame--sm { border-radius: 22px 0 22px 0; overflow: hidden; background: var(--border); aspect-ratio: 4/3; position: relative; }
.zoom { transition: transform 1.2s var(--ease); }
.frame:hover .zoom, .frame--sm:hover .zoom { transform: scale(1.03); }
.card-link:hover .zoom-card { transform: scale(1.04); }
.zoom-card { transition: transform 1s var(--ease); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; min-height: min(72vh, 700px); display: flex;
  align-items: flex-end; background: var(--ink); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__veil { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__in {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(128px, 14vw, 168px) var(--gutter) clamp(44px, 5vw, 64px); color: #fff;
}
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 28px; margin-top: 32px;
}
.hero__p {
  margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55;
  color: rgba(255, 255, 255, .82); max-width: 52ch; text-wrap: pretty;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

@supports (height: 1svh) {
  .hero { min-height: min(72svh, 700px); }
  .hero--svc { min-height: min(60svh, 560px); }
}

/* Service-detail hero */
.hero--svc { min-height: min(60vh, 560px); }
.hero--svc .hero__bg { opacity: .85; }
.hero--svc .hero__veil { background: linear-gradient(180deg, rgba(21, 24, 28, .1), rgba(21, 24, 28, .85)); }
.hero--svc .hero__in { padding-top: clamp(96px, 14vw, 160px); }
.hero__icon {
  margin-top: 22px; width: 56px; height: 56px; border-radius: 14px 0 14px 0;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.hero__tagline {
  margin: 18px 0 0; font-size: 18px; line-height: 1.55;
  color: rgba(255, 255, 255, .82); max-width: 56ch; text-wrap: pretty;
}

/* ---------- Stats band --------------------------------------------------- */
.stats { border-bottom: 1px solid var(--hairline); }
.stats__in { display: flex; flex-wrap: wrap; }
.stat {
  flex: 1 1 210px; padding: 30px 0; padding-inline-end: 24px;
  border-inline-end: 1px solid var(--hairline); margin-inline-end: 24px;
  display: flex; gap: 18px; align-items: flex-start; transition: transform .3s;
}
.stat:hover { transform: translateY(-3px); }
.stat:last-child { border-inline-end: 0; margin-inline-end: 0; }
.stat__n {
  font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat__l { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Icon tiles --------------------------------------------------- */
.tile {
  flex: none; width: 44px; height: 44px; border-radius: 12px 0 12px 0;
  background: var(--tint); display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.tile--48 { width: 48px; height: 48px; }
.tile--white { background: #fff; }

/* ---------- Section head (eyebrow + h2 + right link) --------------------- */
.sec-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px;
}
.split, .split--360, .split--340, .split--380 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.split--360 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.split--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.split--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--body); }
.prose p { margin: 0; text-wrap: pretty; }

/* ---------- Grids -------------------------------------------------------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--cards { gap: 24px; }
.mt48 { margin-top: 48px; }
.mt36 { margin-top: 36px; }

/* ---------- Service / value cards ---------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px 0 22px 0;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: var(--accent); }
.card__t { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card__d { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card--dark {
  background: var(--ink); color: #fff; border: 0; justify-content: space-between;
  transition: transform .3s;
}
.card--dark:hover { transform: translateY(-4px); box-shadow: none; }
.card--dark .card__t { line-height: 1.3; }
.card__go { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 15px; }
.value { display: block; }
.value__top { display: flex; justify-content: space-between; align-items: center; }
.value__n { font-size: 13px; font-weight: 600; color: var(--gold-text); letter-spacing: .08em; }
.value__t { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.value__d { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Project cards ------------------------------------------------ */
.card-link { display: block; transition: transform .3s; }
.card-link:hover { transform: translateY(-4px); }
.pcard__tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px;
  font-weight: 600; padding: 6px 10px; border-radius: 6px; letter-spacing: .02em;
}
.pcard__row { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pcard__n { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pcard__a { font-size: 13px; color: var(--muted); flex: none; }
.pcard__m { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.pcard--rel .pcard__n { margin-top: 14px; font-size: 18px; }
.pcard--rel .pcard__m { margin-top: 3px; }

/* ---------- Dark bands (steps / certs) ----------------------------------- */
.band-dark { background: var(--ink); color: #fff; }
.cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px 0 22px 0; overflow: hidden;
}
.cells--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cell { background: var(--ink); padding: 32px 28px; transition: background .3s; }
.cell:hover { background: #1E2228; }
.cell--cert { padding: 28px 32px; }
.cell__top { display: flex; justify-content: space-between; align-items: center; }
.cell__n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.cell__t { margin-top: 14px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.cell__d { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .7); }
.cert__t { font-size: 17px; font-weight: 600; }
.cert__d { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.mt56 { margin-top: 56px; }

/* ---------- MEH band ----------------------------------------------------- */
.meh-logo { margin-top: 20px; display: inline-block; transition: opacity .2s; }
.meh-logo:hover { opacity: .7; }
.meh-logo img { height: clamp(38px, 4vw, 52px); width: auto; }
.meh-wordmark {
  font-size: clamp(17px, 1.9vw, 23px); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); line-height: 1.2;
}
.meh-wordmark span { display: block; font-size: .52em; font-weight: 600; letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.meh-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 520px; }
.meh-stat { border-top: 2px solid var(--border); padding-top: 16px; }
.meh-stat__n { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.meh-stat__l { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Group companies ---------------------------------------------- */
.grp-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 12px; border-top: 1px solid var(--ink); padding-top: 24px;
}
.grp-head__l { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.grp-head__r { font-size: 14.5px; color: var(--muted); }
.grp-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grp {
  border: 1px solid var(--border); border-radius: 14px 0 14px 0; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .25s, background .25s, transform .25s;
}
.grp:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-3px); }
.grp__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grp__logo { height: 56px; width: 150px; max-width: 100%; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start; }
.grp__logo img { max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.grp--static { cursor: default; }
.grp--static:hover { border-color: var(--border); background: transparent; transform: none; }
.grp__d { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; min-height: 40.5px; }

/* ---------- CTA band ----------------------------------------------------- */
.cta { background: var(--accent); }
.cta__in {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.cta__h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1;
  letter-spacing: -.025em; font-weight: 600; max-width: 22ch; text-wrap: balance;
}
.cta__p { margin: 14px 0 0; font-size: 17px; color: rgba(21, 24, 28, .75); }
.cta--svc .cta__in { padding: clamp(48px, 6vw, 80px) var(--gutter); gap: 24px; }
.cta--svc .cta__h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; max-width: 24ch; }

/* ---------- Services overview -------------------------------------------- */
.svc-list { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }
.svc-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.svc-row__head { display: flex; align-items: center; gap: 14px; }
.svc-row__n { font-size: 13px; font-weight: 600; color: var(--gold-text); letter-spacing: .08em; }
.svc-row h2 { margin: 12px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.svc-row__p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--surface); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--body); }
.svc-row .link-u { margin-top: 26px; }
@media (min-width: 900px) { .svc-row--flip .frame { order: 2; } }

/* ---------- Scope checklist ---------------------------------------------- */
.scope-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px 0 12px 0;
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.scope-item__c {
  flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.scope-item span:last-child { font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.grid--scope { margin-top: 36px; gap: 12px; }

/* ---------- Projects filter ---------------------------------------------- */
.chips { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--body);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pgrid > .card-link.is-hidden { display: none; }

/* ---------- Track record / sector register ------------------------------- */
.track-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; border-top: 1px solid var(--ink); padding-top: 28px;
}
.track-head h2 { margin: 14px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; max-width: 22ch; text-wrap: balance; }
.track-note { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.sectors { margin-top: 36px; columns: 3 300px; column-gap: 20px; }
.sector {
  background: var(--surface); border-radius: 22px 0 22px 0; padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 20px; break-inside: avoid; margin-bottom: 20px;
}
.sector__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sector__n { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.sector__m { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.sector__rows { display: flex; flex-direction: column; gap: 10px; }
.srow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.45; }
.srow__l { min-width: 0; color: var(--ink); }
.srow__l b { font-weight: 600; }
.srow__l i { font-style: normal; color: var(--muted); }
.srow__l u { text-decoration: none; color: var(--faint); }
.srow__a { flex: none; font-variant-numeric: tabular-nums; color: var(--body); }

/* ---------- Project detail ----------------------------------------------- */
.proj-head { padding-top: calc(78px + clamp(32px, 4vw, 56px)); }
.proj-title {
  margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 20px;
}
.proj-title h1 { margin: 0; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.proj-title__m { font-size: 16px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border); }
.fact { padding: 18px 0; padding-inline-end: 16px; border-bottom: 1px solid var(--border); }
.fact__k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fact__v { margin-top: 6px; font-size: 16px; font-weight: 600; }
.proj-body h2 { margin: 0 0 4px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.proj-body .tags { margin-top: 8px; }
.next { display: block; background: var(--ink); color: #fff; }
.next:hover { color: #fff; }
.next__in {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.next__l { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.next__n { margin-top: 8px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.next__go {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none;
  transition: transform .3s;
}
.next:hover .next__go { transform: translateX(4px); }
html[dir="rtl"] .next:hover .next__go { transform: translateX(-4px); }

/* ---------- Contact ------------------------------------------------------ */
.contact-rows { margin-top: 40px; display: grid; gap: 22px; }
.crow { display: flex; gap: 16px; align-items: flex-start; }
.crow__k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.crow__v { display: block; margin-top: 3px; font-size: 16.5px; font-weight: 600; }
.crow__v--addr { line-height: 1.4; }
.crow__s { display: block; font-size: 14px; color: var(--muted); }
.crow__s--gap { margin-top: 4px; }
.btn-out {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 10px 0 10px 0; padding: 10px 16px;
  font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
}
.btn-out:hover { background: var(--ink); color: #fff; }
.form {
  background: var(--surface); border-radius: 28px 0 28px 0; padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--body); }
.field--full { grid-column: 1 / -1; }
.field input, .field select {
  height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px;
  font-size: 15px; background: #fff; outline: none; color: var(--ink);
}
.field textarea {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; background: #fff; outline: none; resize: vertical; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #C2410C; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__note { font-size: 13px; color: var(--faint); }
.form__btn { font-size: 15px; padding: 14px 22px; }
.form__btn[disabled] { opacity: .6; cursor: progress; }
/* Honeypot. Deliberately not display:none (naive bots skip those), and
   deliberately offset-free — a left:-9999px field overflows to the END side
   in RTL and stretches the page's scroll width. */
.hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  border: 0; white-space: nowrap;
}

/* ---------- Footer ------------------------------------------------------- */
.ftr { background: var(--surface); border-top: 1px solid var(--hairline); }
.ftr__in {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px;
}
.ftr__in > :first-child {
  grid-column: span 2;
}
@media (max-width: 899px) {
  .ftr__in > :first-child { grid-column: span 1; }
}
.ftr__logo { height: 32px; width: auto; }
.ftr__blurb { margin: 18px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 32ch; }
.ftr__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--body); }
.ftr__h { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ftr__col a { color: var(--body); transition: color .2s; }
.ftr__col a:hover { color: var(--ink); }
.ftr__bot {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--border); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint);
}
.ftr__bot a { color: var(--faint); }
.ftr__bot a:hover { color: var(--ink); }
.ftr__bot span:last-child { display: flex; gap: 18px; }

/* ---------- Toast -------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px 0 12px 0;
  font-size: 14.5px; font-weight: 500; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
  animation: dnbToast .35s ease both; max-width: calc(100vw - 40px);
  display: flex; align-items: center; gap: 10px;
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.toast[hidden] { display: none; }

/* ---------- RTL ---------------------------------------------------------- */
html[dir="rtl"] * { letter-spacing: 0 !important; }
html[dir="rtl"] svg[data-arrow] { transform: scaleX(-1); }
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { direction: rtl; }
html[dir="rtl"] input[dir="ltr"] { direction: ltr; text-align: right; }
html[dir="rtl"] .grp__logo { justify-content: flex-end; }
html[dir="rtl"] .grp__logo img { object-position: right center; }

/* ---------- Mobile (< 900px) --------------------------------------------- */
@media (max-width: 899px) {
  .nav, .hdr__right { display: none; }
  .hdr__mob { display: flex; }
  .grp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
  .facts { grid-template-columns: 1fr; }
  .meh-band > .frame { order: -1; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

@media (max-width: 560px) {
  .meh-stats { grid-template-columns: 1fr; gap: 14px; }
  .frame--219 { aspect-ratio: 16/10; }   /* 21:9 is a letterbox at phone width */
  .hero__btns { width: 100%; }
  .hero__btns .btn { flex: 1 1 auto; justify-content: center; }
  .proj-title h1 { max-width: none; }
}

/* ---------- Touch devices: no hover-only motion ---------------------------- */
@media (hover: none) {
  .stat:hover, .card:hover, .card--dark:hover, .card-link:hover, .grp:hover,
  .btn--accent:hover, .btn--ink:hover, .hdr__cta:hover { transform: none; }
  .frame:hover .zoom, .card-link:hover .zoom-card { transform: none; }
  .card:hover { box-shadow: none; border-color: var(--border); }
  .grp:hover { border-color: var(--border); background: transparent; }
  .link-u:hover { gap: 10px; }
  .next:hover .next__go { transform: none; }
}

/* ---------- Scroll reveal ------------------------------------------------ */
/* Same motion as the page-enter (14px rise, .6s, brand easing). app.js adds
   .rv only to elements still below the viewport when it runs, so nothing that
   has already painted is ever hidden, and without JS nothing is hidden at all.
   `backwards` fill means the element returns to normal styles afterwards, so
   hover transforms keep working. */
.rv { opacity: 0; }
.rv.is-in { opacity: 1; animation: dnbIn .6s var(--ease) backwards; animation-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; }
  .rv.is-in { animation: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .hdr, .menu, .toast, .next, .cta { display: none !important; }
  .rv { opacity: 1; animation: none; }
  .screen { animation: none; }
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .screen { animation: none; }
  .zoom, .zoom-card { transition: none; }
}
