/* ==========================================================================
   New Modern — public site styles
   Tokens: structural steel-blue (--ink) and champagne-anodised aluminium (--accent)
   Typeface: Archivo (variable width) — expanded cuts for headlines
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #14202E;
  --accent: #B8955A;
  --ink-2: color-mix(in srgb, var(--ink) 78%, #000);
  --steel: color-mix(in srgb, var(--ink) 86%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 62%, #1a1a1a);
  --alu: #D5DAE0;
  --concrete: #EDEEEC;
  --paper: #FFFFFF;
  --text: #19212B;
  --muted: #5A6571;
  --line: #D8DCE0;
  --line-dark: rgba(255, 255, 255, .14);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --logo-h: 40px;
  --radius: 2px;
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- Type ---------- */
.h-section {
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-weight: 720;
  color: var(--ink);
  margin-bottom: .55em;
  max-width: 22ch;
}
.h-sub {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6em;
}
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.rich { color: var(--text); }
.rich h2, .rich h3 { color: var(--ink); font-variation-settings: "wdth" 108; margin: 1.6em 0 .5em; font-size: 1.35rem; }
.rich ul, .rich ol { padding-left: 1.2em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.rich li::marker { color: var(--accent-ink); }
.rich a { color: var(--accent-ink); text-underline-offset: 3px; }
.rich blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.15rem; }
.rich img { margin: 1.5em 0; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 620;
  font-variation-settings: "wdth" 106;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: #fff; }
.link-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex-shrink: 0; position: relative; }
.brand .logo { height: var(--logo-h); width: auto; max-width: 230px; object-fit: contain; }
.logo-on-light { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-solid .logo-on-dark { opacity: 0; }
.site-header.is-solid .logo-on-light { opacity: 1; }
.logo-on-dark, .logo-on-light { transition: opacity .3s; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  height: var(--header-h);
  padding: 0 11px;
  font-size: .95rem; font-weight: 520;
  text-decoration: none;
  position: relative;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 24px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.is-active > a::after { transform: scaleX(1); }
.chev { opacity: .7; }
.sub {
  list-style: none; position: absolute; top: calc(var(--header-h) - 12px); left: 0;
  min-width: 230px; padding: 10px 0;
  background: var(--paper); color: var(--ink);
  border-top: 2px solid var(--accent);
  box-shadow: 0 18px 40px -12px rgba(10, 20, 30, .28);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 20px; text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--concrete); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header.is-solid .btn-line { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--ink); color: #fff;
  overflow-y: auto; padding: 24px var(--gutter) 40px;
}
.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav > ul > li > a { display: block; padding: 16px 0; font-size: 1.25rem; font-weight: 640; font-variation-settings: "wdth" 110; text-decoration: none; }
.mobile-nav ul ul { padding: 0 0 14px 14px; }
.mobile-nav ul ul a { display: block; padding: 6px 0; color: var(--alu); text-decoration: none; }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav a[aria-current] { color: var(--accent); }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--ink); color: #fff; box-shadow: none; }
body.nav-open .site-header .logo-on-dark { opacity: 1; }
body.nav-open .site-header .logo-on-light { opacity: 0; }

/* ==========================================================================
   Hero slider — the one orchestrated moment on the site
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 960px;
  background: var(--ink); color: #fff;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.07);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-media { transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 60%, transparent) 46%, color-mix(in srgb, var(--ink) 10%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 85%, transparent) 0%, transparent 38%);
}
.hero-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--header-h); padding-bottom: 170px;
}
.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-variation-settings: "wdth" 118;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--alu); max-width: 52ch; margin-bottom: 34px; }
.hero-slide .hero-title, .hero-slide .hero-sub, .hero-slide .btn { opacity: 0; transform: translateY(26px); }
.hero-slide.is-active .hero-title, .hero-slide.is-active .hero-sub, .hero-slide.is-active .btn { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.hero-slide.is-active .hero-title { transition-delay: .25s; }
.hero-slide.is-active .hero-sub { transition-delay: .42s; }
.hero-slide.is-active .btn { transition-delay: .58s; }
.hero-slide .btn { align-self: flex-start; }

.hero-index {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 28px;
}
.hero-tab { background: none; border: 0; color: rgba(255,255,255,.62); text-align: left; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-self: start; }
.hero-tab-bar { display: block; height: 2px; background: rgba(255,255,255,.22); margin-bottom: 14px; overflow: hidden; }
.hero-tab-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.hero-tab.is-active { color: #fff; }
.hero-tab.is-active .hero-tab-bar span { animation: fill var(--interval, 7000ms) linear forwards; }
.hero[data-paused] .hero-tab.is-active .hero-tab-bar span { animation-play-state: paused; }
.hero-tab-label { display: block; font-size: .9rem; font-weight: 520; line-height: 1.35; }
.hero-tab:hover { color: #fff; }
@keyframes fill { to { width: 100%; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--concrete); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin: 0; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.row-between .h-section { margin-bottom: 0; }
.band-head .h-section { margin-bottom: 28px; }
.empty { color: var(--muted); font-size: 1.1rem; }

/* Partners marquee */
.partners-band { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { width: 200px; height: 84px; padding: 0 28px; display: grid; place-items: center; flex-shrink: 0; }
.marquee-item img { max-height: 52px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Split text + media */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-text .btn { margin-top: 30px; }
.framed { position: relative; margin: 0; }
.framed::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1.5px solid var(--accent); pointer-events: none;
}
.framed img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 560; color: var(--ink); }
.checks svg { color: var(--accent-ink); flex-shrink: 0; margin-top: 3px; }

/* Mullion grid — content laid out like a curtain-wall grid */
.mullion-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--paper);
}
.mullion-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mullion-cell { padding: 26px 26px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell-media { margin: -1px -1px 24px; overflow: hidden; }
.cell-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mullion-cell h3 { font-size: 1.25rem; font-variation-settings: "wdth" 108; color: var(--ink); margin-bottom: 10px; }
.mullion-cell p { color: var(--muted); margin: 0; font-size: 1rem; }
.text-only .mullion-cell { padding: 32px 28px 36px; }
.text-only .mullion-cell h3 { padding-top: 18px; border-top: 3px solid var(--accent); display: inline-block; }

/* Numbers */
.numbers { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.numbers-media { position: absolute; top: 0; bottom: 0; right: 0; width: 44%; background-size: cover; background-position: center; }
.numbers-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 30%, transparent) 40%, transparent 100%); }
.numbers-body { position: relative; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.numbers .h-section { color: #fff; margin-bottom: 44px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 0; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; padding: 26px 32px 26px 0; border-top: 1px solid var(--line-dark); }
.stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.stat:nth-child(even) { padding-left: 32px; }
.stat dd {
  margin: 0; font-size: clamp(2.4rem, 4.4vw, 3.9rem); line-height: 1;
  font-variation-settings: "wdth" 125; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat dt { margin-top: 10px; color: var(--alu); font-size: 1rem; }

/* Contact band + form */
.contact-band { background: var(--concrete); }
.split-form { align-items: start; }
.contact-lines { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines svg { color: var(--accent-ink); flex-shrink: 0; margin-top: 3px; }
.contact-lines a { text-decoration: none; font-weight: 560; color: var(--ink); }
.contact-lines a:hover { text-decoration: underline; }
.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 1.35rem; font-variation-settings: "wdth" 108; color: var(--ink); margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.hp { position: absolute; left: -9999px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; font-weight: 560; }
.form-note.is-ok { background: #E6F2EA; color: #1C5B33; }
.form-note.is-err { background: #FBE9E7; color: #8A2418; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band .h-section { color: #fff; margin-bottom: 10px; }
.cta-band .lead { color: var(--alu); margin: 0; }

/* ==========================================================================
   Inner page banner
   ========================================================================== */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 55%, color-mix(in srgb, var(--ink) 35%, transparent) 100%);
}
.page-hero-body { position: relative; padding-top: calc(var(--header-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-variation-settings: "wdth" 116; font-weight: 750; letter-spacing: -0.02em;
  max-width: 20ch; margin-bottom: 16px;
}
.page-hero-sub { font-size: 1.15rem; color: var(--alu); max-width: 58ch; margin: 0; }
.page-hero-kicker { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.tabbar { position: relative; border-top: 1px solid var(--line-dark); background: color-mix(in srgb, var(--ink-2) 55%, transparent); backdrop-filter: blur(6px); }
.tabbar-inner { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.tabbar-inner::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 18px 0 16px; color: var(--alu); text-decoration: none; font-weight: 560; font-size: .98rem;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--accent); }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: clamp(56px, 7vw, 88px); }
.timeline li { position: relative; padding: 28px 22px 0 0; border-top: 1.5px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--accent); }
.tl-year { display: block; font-size: 2rem; font-variation-settings: "wdth" 122; font-weight: 720; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.tl-title { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.tl-desc { display: block; color: var(--muted); font-size: .95rem; line-height: 1.5; }

.vm { display: grid; gap: 44px; }
.vm-block .h-section { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* Certificates & team */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.cert-media { background: var(--concrete); padding: 22px; margin-bottom: 18px; }
.cert-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cert h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.cert p { color: var(--muted); margin-bottom: 10px; font-size: .95rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 28px; }
.member-photo { background: var(--concrete); aspect-ratio: 4 / 5; margin-bottom: 16px; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.member-role { color: var(--accent-ink); font-weight: 560; margin-bottom: 8px; font-size: .95rem; }
.member-bio { color: var(--muted); font-size: .95rem; }
.member-in { color: var(--ink); }

/* Services page */
.service-rows { display: grid; gap: clamp(64px, 9vw, 112px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; scroll-margin-top: 110px; }
.service-row.is-flipped .service-media { order: 2; }
.service-text .lead { color: var(--ink); }

/* Solutions */
.group-head { margin-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.group-head .h-section { margin: 0; }
.group-head .lead { margin: 0; }

/* Brands */
.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.brand-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.brand-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s; }
a.brand-card:hover { border-color: var(--accent); }
a.brand-card:hover .brand-logo { background: color-mix(in srgb, var(--concrete) 70%, var(--alu)); }
.brand-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--concrete); padding: 24px; transition: background-color .2s; }
.brand-logo img { max-height: 64%; max-width: 74%; object-fit: contain; }
.brand-meta { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.brand-name { font-size: 1.3rem; font-weight: 720; font-variation-settings: "wdth" 110; color: var(--ink); line-height: 1.15; }
.brand-tag { color: var(--accent-ink); font-weight: 580; font-size: .95rem; }
.brand-desc { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.brand-visit { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--ink); }
.is-compact .brand-meta { padding: 16px 18px 18px; }
.is-compact .brand-name { font-size: 1.1rem; }
.is-compact .brand-visit { padding-top: 10px; font-size: .92rem; }

/* Partners wall */
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 26px; }
.logo-wall a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-wall img { max-height: 70%; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logo-wall li:hover img { filter: none; opacity: 1; }

/* Projects */
.project-group + .project-group { margin-top: clamp(56px, 7vw, 88px); }
.project-group > .h-sub { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.p-card { display: block; text-decoration: none; color: inherit; }
.p-card-media { display: block; overflow: hidden; background: var(--concrete); }
.p-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.p-card:hover .p-card-media img { transform: scale(1.03); }
.p-card-body { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.p-card-title { font-size: 1.2rem; font-weight: 680; font-variation-settings: "wdth" 106; color: var(--ink); }
.p-card:hover .p-card-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.p-card-meta { color: var(--muted); font-size: .95rem; }
.p-card-scope { color: var(--accent-ink); font-size: .9rem; font-weight: 560; }

.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.project-main .lead { color: var(--ink); }
.project-cover { margin: 14px 0 44px 14px; }
.project-cover img { aspect-ratio: 16 / 10; }
.spec-card { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); padding: 28px; background: var(--paper); }
.spec-logo { max-height: 60px; max-width: 70%; margin-bottom: 20px; object-fit: contain; }
.specs { margin: 0 0 24px; }
.specs > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .85rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 18, .92); display: grid; place-items: center; padding: 40px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.post-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.post-body time { color: var(--muted); font-size: .9rem; }
.post-title { font-size: 1.3rem; font-weight: 700; font-variation-settings: "wdth" 108; color: var(--ink); line-height: 1.2; }
.is-lead .post-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.post-excerpt { color: var(--muted); }
.post-body .link-inline { margin-top: 6px; }
.article-lead { color: var(--ink); font-size: 1.3rem; margin-bottom: 28px; }
.back-link { margin-top: 48px; }

/* Offices */
.country + .country { margin-top: 64px; }
.country-name { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; font-variation-settings: "wdth" 112; color: var(--ink); margin-bottom: 26px; }
.country-name img { width: 36px; height: 24px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 28px; }
.office { display: grid; grid-template-columns: 42% 1fr; border: 1px solid var(--line); background: var(--paper); }
.office-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.office-body { padding: 26px; }
.office-body h3 { font-size: 1.25rem; color: var(--ink); }
.office-body .contact-lines { margin: 18px 0 20px; }

/* 404 */
.notfound { background: var(--ink); color: #fff; min-height: 78vh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.nf-code { font-size: clamp(5rem, 16vw, 11rem); font-variation-settings: "wdth" 125; font-weight: 760; line-height: .9; color: var(--accent); margin-bottom: 18px; }
.notfound h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-variation-settings: "wdth" 112; margin-bottom: 12px; }
.notfound .lead { color: var(--alu); margin-bottom: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-2); color: var(--alu); padding-top: clamp(56px, 7vw, 88px); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand .logo { height: calc(var(--logo-h) + 4px); width: auto; max-width: 240px; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; }
.socials { list-style: none; display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: #fff; transition: border-color .2s, background-color .2s; }
.socials a:hover { border-color: var(--accent); background: rgba(255,255,255,.04); }
.f-title { font-size: 1rem; font-variation-settings: "wdth" 110; color: #fff; margin-bottom: 18px; font-weight: 680; }
.f-links { list-style: none; display: grid; gap: 10px; }
.f-links a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.f-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.f-contact a { word-break: break-word; }
.footer-bottom { padding-bottom: 26px; font-size: .9rem; color: color-mix(in srgb, var(--alu) 75%, transparent); }
.footer-bottom p { margin: 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.admin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--accent); color: var(--ink); padding: 8px 14px; font-size: .85rem; font-weight: 600; text-decoration: none; font-family: "IBM Plex Sans Arabic", var(--font); direction: rtl; }

/* Maintenance */
.maint { background: var(--ink); color: #fff; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.maint-box { max-width: 560px; }
.maint-logo { height: 46px; width: auto; margin-bottom: 40px; }
.maint h1 { font-size: clamp(2rem, 5vw, 3rem); font-variation-settings: "wdth" 116; margin-bottom: 16px; }
.maint p { color: var(--alu); }
.maint-contact { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.maint-contact a { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav > ul > li > a { padding: 0 8px; font-size: .9rem; }
  .main-nav > ul > li > a::after { left: 8px; right: 8px; }
  .hide-sm { display: none; }
}
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mullion-grid, .mullion-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .project-detail { grid-template-columns: 1fr; }
  .spec-card { position: static; }
}
@media (max-width: 860px) {
  .split, .service-row, .group-head, .post-card.is-lead { grid-template-columns: 1fr; }
  .service-row.is-flipped .service-media { order: 0; }
  .split-media { order: -1; }
  .framed { margin: 14px 14px 0 0; }
  .numbers-media { position: relative; width: 100%; height: 260px; }
  .numbers-media::after { background: linear-gradient(0deg, var(--ink), transparent 60%); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .hero-tab-label { display: none; }
  .hero-index { gap: 10px; bottom: 32px; }
  .hero-body { padding-bottom: 96px; }
  .office-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .mullion-grid, .mullion-grid.cols-4, .post-grid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 16px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .office { grid-template-columns: 1fr; }
  .office-media img { min-height: 180px; aspect-ratio: 16/9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .lead { font-size: 1.075rem; }
  .btn { padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-media { transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
}
