/* AlMaymanah — Engineering Group. Design system for the static site.
   Group palette (2025 identity): Crystal Splash #EAEAEA · Polished Steel #A9A7A8 · Pipe Gray #696565 · Midnight Alloy #282223 · Deep Azure #005DFF.
   Division colours are scoped to dedicated division pages, directory links, project divisions and partner tiles. */

:root {
  --crystal: #eaeaea;
  --steel: #a9a7a8;
  --pipe: #696565;
  --alloy: var(--wp--preset--color--charcoal, #282223);
  --azure: var(--wp--preset--color--water, #005dff);
  --paper: #f6f6f6;           /* crystal tint for page background */
  --surface: #ffffff;
  --ink: var(--alloy);
  --ink-2: #4a4546;          /* alloy/pipe blend for body copy */
  --line: #d9d8d8;
  --line-dark: rgba(234, 234, 234, 0.14);
  --accent: var(--azure);
  --accent-ink: #ffffff;
  --accent-text: #0047c4;
  --div: var(--azure);
  --div-ink: #ffffff;
  --div-text: #0047c4;
  --font: "Schibsted Grotesk", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 4px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(40, 34, 35, .06), 0 12px 32px -12px rgba(40, 34, 35, .18);
  --hdr: 76px;
}

:is(body,.division-link,.dr-project-scope,.project-division,.partner-tile,.cat-group)[data-division="water"] { --div: var(--wp--preset--color--water, #005dff); --div-ink: #fff; --div-text: #0047c4; --div-soft: #e6efff; }
:is(body,.division-link,.dr-project-scope,.project-division,.partner-tile,.cat-group)[data-division="heat"] { --div: var(--wp--preset--color--heat, #6936d0); --div-ink: #fff; --div-text: #5a2bb8; --div-soft: #efe9fa; }
:is(body,.division-link,.dr-project-scope,.project-division,.partner-tile,.cat-group)[data-division="access"] { --div: var(--wp--preset--color--access, #e94c30); --div-ink: #282223; --div-text: #b8341c; --div-soft: #fcebe7; }
:is(body,.division-link,.dr-project-scope,.project-division,.partner-tile,.cat-group)[data-division="mo"] { --div: var(--wp--preset--color--maintenance, #1fa368); --div-ink: #282223; --div-text: #137a4c; --div-soft: #e5f4ec; }
:is(body,.division-link,.dr-project-scope,.project-division,.partner-tile,.cat-group)[data-division="oil"] { --div: var(--wp--preset--color--oil, #f2a900); --div-ink: #282223; --div-text: #8a6100; --div-soft: #fdf3dc; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
html.noscroll { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--alloy); color: #fff; padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.sec-tint { background: var(--crystal); }
.sec-dark { background: var(--alloy); color: var(--crystal); overflow: hidden; }

/* ---------- type ---------- */
.display { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
.h4 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 28px 0 12px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.lead-sm { font-size: 1.1rem; line-height: 1.55; max-width: 44ch; }
.body-lg { font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--pipe); max-width: 48ch; }
.small { font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pipe); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--azure); flex: none; }
.eyebrow-light { color: var(--steel); }
.eyebrow-div::before { background: var(--div); }
.step-n { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--pipe); font-variant-numeric: tabular-nums; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: #004ad0; }
.btn-div { background: var(--div); color: var(--div-ink); }
.btn-div:hover { filter: brightness(.94); }
.btn-outline { border-color: var(--alloy); color: var(--alloy); background: transparent; }
.btn-outline:hover { background: var(--alloy); color: var(--crystal); }
.btn-outline-light { border-color: rgba(234, 234, 234, .45); color: var(--crystal); background: transparent; }
.btn-outline-light:hover { background: var(--crystal); color: var(--alloy); border-color: var(--crystal); }
.btn-ghost { background: transparent; color: inherit; border-color: transparent; }
.btn-ghost:hover { border-color: currentColor; }
.btn[aria-pressed="true"] { background: var(--alloy); color: var(--crystal); border-color: var(--alloy); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .ic { transition: transform .25s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
[data-division] .prose .link, [data-division] .enquiry .link { color: var(--div-text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(246, 246, 246, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr-dark { background: var(--alloy); color: var(--crystal); border-bottom-color: var(--line-dark); }
.hdr-dark.is-scrolled { background: rgba(40, 34, 35, .94); }
.hdr-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.hdr-logo { flex: none; display: block; padding: 6px 0; }
.hdr-logo img { width: 214px; height: auto; }
.hdr-nav { margin-left: auto; }
.hdr-nav > ul { display: flex; align-items: center; gap: 4px; }
.hdr-nav > ul > li { position: relative; display: flex; align-items: center; }
.hdr-nav a { display: block; padding: 10px 12px; text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: var(--r); position: relative; }
.hdr-nav > ul > li > a:is([aria-current="page"], [aria-current="location"])::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--azure); }
.hdr-nav > ul > li > a:hover { background: rgba(105, 101, 101, .1); }
.hdr-nav .service-nav { min-height: var(--hdr); }
.hdr-nav > ul > .service-nav > a:hover { background: transparent; }
.service-nav-toggle { display: none; align-items: center; justify-content: center; width: 28px; height: 38px; margin-inline-start: -8px; padding: 0; border: 0; border-radius: 0; color: inherit; background: transparent; cursor: pointer; }
.js .service-nav-toggle { display: inline-flex; }
.service-nav-toggle:hover, .service-nav-toggle[aria-expanded="true"] { background: transparent; }
.service-nav-toggle svg { width: 10px; height: 10px; }
.service-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.service-menu { position: absolute; z-index: 1; top: 100%; inset-inline-start: 0; width: 18rem; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.hdr-nav .service-menu a { padding: 10px 12px; }
.service-menu a:is(:hover,:focus-visible) { background: var(--paper); color: var(--accent-text); }
.hdr-act { display: flex; gap: 8px; align-items: center; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: var(--r); background: none; align-items: center; justify-content: center; cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }
.mmenu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 59; background: var(--paper); overflow-y: auto; border-top: 1px solid var(--line); }
.mmenu-in { padding: 20px var(--gutter) 120px; }
.mm-main a { display: block; padding: 14px 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mm-main a:is([aria-current="page"], [aria-current="location"]) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.mmenu .eyebrow { margin-top: 28px; }
.mm-div a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-2); }
.mm-act { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--pipe); margin-bottom: 36px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--steel); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- brand pattern ---------- */
.hero-pattern, .sec-pattern, .cta-pattern, .ftr-pattern { position: absolute; inset: 0; pointer-events: none; background: url("../img/brand/almaymanah-pattern.svg") right -120px bottom -40px / 1500px auto no-repeat; opacity: .16; filter: invert(1); }
.sec-pattern { opacity: .1; background-position: left -200px center; }
.cta-pattern { opacity: .12; background-position: right -300px center; }
.ftr-pattern { opacity: .06; background-position: center bottom -160px; }

/* ---------- home hero ---------- */
.home-hero { position: relative; background: var(--alloy); color: var(--crystal); overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.home-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-hero .lead { color: #cfcdcd; margin-top: 26px; }
.hero-index { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; border-top: 1px solid var(--line-dark); }
.hero-index a { display: block; padding: 14px 10px 0 0; font-size: .82rem; line-height: 1.3; text-decoration: none; color: #cfcdcd; }
.hero-index a span { display: block; color: var(--steel); font-size: .72rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.hero-index a:hover { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 10px; aspect-ratio: 1 / 1.02; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: #3a3334; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile.is-contain { background: #fff; }
.tile.is-contain img { object-fit: contain; padding: 14% 18%; }
.tile span { position: absolute; left: 10px; bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--alloy); background: rgba(246, 246, 246, .94); padding: 5px 9px; border-radius: 2px; }
.tile-1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.tile-2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.tile-3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.tile-4 { grid-column: 1 / 3; grid-row: 5 / 7; }
.tile-5 { grid-column: 3 / 7; grid-row: 5 / 7; }

.benefits { background: var(--surface); border-bottom: 1px solid var(--line); }
.benefits ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefits li { padding: 24px 18px 24px 0; font-weight: 600; font-size: 1rem; display: flex; gap: 12px; align-items: baseline; border-right: 1px solid var(--line); padding-left: 18px; }
.benefits li:first-child { padding-left: 0; }
.benefits li:last-child { border-right: 0; }
.benefits li span { font-size: .74rem; color: var(--azure); font-variant-numeric: tabular-nums; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head > div { max-width: 760px; }
.sec-head .muted { margin: 0; }

/* division rows (home) */
.drows { border-top: 1px solid var(--alloy); }
.drow a { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr) 140px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s; }
.drow a:hover { background: var(--surface); }
.drow-n { font-size: .85rem; color: var(--pipe); font-variant-numeric: tabular-nums; padding-left: 8px; align-self: start; padding-top: 6px; }
.drow-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--crystal); }
.drow-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.drow-media.is-contain { background: #fff; border: 1px solid var(--line); }
.drow-media.is-contain img { object-fit: contain; padding: 10%; }
.drow a:hover .drow-media img { transform: scale(1.05); }
.drow-main h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.drow-main p { color: var(--ink-2); margin: 0 0 12px; max-width: 64ch; }
.drow-partners { font-size: .82rem; color: var(--pipe); letter-spacing: .02em; }
.drow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding-right: 8px; }
.drow-count { font-size: .85rem; color: var(--pipe); }
.drow-go { width: 48px; height: 48px; border: 1px solid var(--alloy); border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s; }
.drow a:hover .drow-go { background: var(--alloy); color: var(--crystal); }

/* presence */
.presence { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.presence .lead-sm { color: #cfcdcd; margin-top: 22px; }
.locs { display: inline-flex; gap: 8px; align-items: center; color: var(--steel); margin: 12px 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: 26px 0 26px; border-top: 1px solid var(--line-dark); }
.stats li:nth-child(odd) { padding-right: 24px; }
.stats b { display: block; font-size: clamp(2.8rem, 5.5vw, 4.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--steel); font-size: .95rem; }
.stats-light { grid-template-columns: repeat(5, 1fr); }
.stats-light li { border-top: 1px solid var(--alloy); padding-right: 20px; }
.stats-light b { color: var(--alloy); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.stats-light span { color: var(--pipe); }

/* home featured projects */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { position: relative; display: block; text-decoration: none; color: var(--crystal); border-radius: var(--r-lg); overflow: hidden; background: var(--alloy); min-height: 520px; }
.feature-media { position: absolute; inset: 0; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform 1s var(--ease), opacity .3s; }
.feature:hover .feature-media img { transform: scale(1.03); opacity: .66; }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 34, 35, 0) 30%, rgba(40, 34, 35, .92) 100%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); display: block; }
.feature-body .eyebrow { color: var(--steel); }
.feature-body h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.facts-inline, .feature .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.feature .facts span { display: block; font-size: .85rem; color: #cfcdcd; max-width: 18ch; }
.feature .facts b { display: block; font-size: 2rem; letter-spacing: -0.04em; color: #fff; font-weight: 600; line-height: 1.05; }
.feature .link { color: #fff; }
.proj-p { margin: 36px 0 0; max-width: 70ch; font-size: 1.1rem; color: var(--ink-2); }
.strip-wrap { margin-top: 48px; overflow-x: auto; scrollbar-width: thin; padding: 0 var(--gutter) 8px; }
.strip { display: flex; gap: 12px; width: max-content; margin: 0 auto; }
.strip li { width: 160px; flex: none; }
.strip a { display: block; aspect-ratio: 296 / 560; overflow: hidden; border-radius: var(--r); background: var(--crystal); }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.strip a:hover img { transform: scale(1.04); }

.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--steel); border: 1px solid var(--steel); }
.sectors li { background: var(--crystal); padding: 32px 28px 40px; min-height: 240px; }
.sectors h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 40px 0 12px; }
.sectors p { color: var(--ink-2); margin: 0; }

.apart { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.apart-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.apart-media img { width: 100%; height: 100%; object-fit: cover; }
.apart-copy p { color: var(--ink-2); }
.apart-copy .h3 { margin: 30px 0 12px; }
.popular { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.popular ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.popular a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem; }
.popular a:hover { color: var(--accent-text); }

.clients { padding: 56px 0 64px; background: var(--surface); border-top: 1px solid var(--line); overflow: hidden; }
.clients-track { overflow: hidden; }
.clients-row { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; }
.clients-row img { height: 84px; width: auto; max-width: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA + footer ---------- */
.cta { position: relative; background: var(--alloy); color: var(--crystal); padding: clamp(64px, 8vw, 112px) 0; overflow: hidden; }
.cta-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.cta p:not(.eyebrow) { color: #cfcdcd; max-width: 52ch; margin-top: 18px; }
.cta-act { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.ftr { position: relative; background: #1e1a1b; color: #cfcdcd; padding: 72px 0 110px; overflow: hidden; }
.ftr .wrap { position: relative; }
.ftr-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.ftr-logo { width: 296px; }
.ftr-logo[src$="/almaymanah-logo.png"] { filter: brightness(0) invert(1); }
.ftr-p { max-width: 44ch; margin: 0; justify-self: end; }
.ftr-cols { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding: 48px 0; }
.ftr h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; font-weight: 600; }
.ftr li { margin-bottom: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .ftr-catalogue { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ftr-contact a, .ftr-contact li > span { display: inline-flex; gap: 10px; align-items: center; }
.ftr-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--steel); }

/* ---------- floating + mobile bar ---------- */
.fab { position: fixed; right: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; }
.fab .ic { width: 22px; height: 22px; }
.fab-q { bottom: 84px; background: var(--azure); color: #fff; }
.fab-q .n { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--alloy); color: #fff; font-size: .75rem; display: grid; place-items: center; border: 2px solid var(--paper); }
.fab-top { bottom: 148px; background: var(--surface); color: var(--alloy); border: 1px solid var(--line); }
body.has-picks .fab-top { bottom: 148px; }
body:not(.has-picks) .fab-top { bottom: 84px; }
.pulse { animation: pulse .6s var(--ease); }
@keyframes pulse { 50% { transform: scale(1.12); } }
.mbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; background: var(--alloy); color: #fff; padding: 12px 18px; border-radius: var(--r); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: .95rem; }

/* ---------- modal + forms ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30, 26, 27, .62); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.mcard { position: relative; width: min(520px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.mcard.wide { width: min(980px, 100%); }
.mcard h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 18px 0 8px; }
.mlead { color: var(--pipe); }
.mlogo { width: 180px; }
.mx { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.mx:hover { background: var(--crystal); }
.fwrap { margin-bottom: 14px; }
.fld { display: block; }
.lbl { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--accent-text); margin-left: 3px; }
.fld input, .fld textarea, .sel select, body .search input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--steel); border-radius: var(--r); background: var(--surface); font: inherit; color: var(--ink); }
.fld textarea { resize: vertical; min-height: 140px; }
.fld input:focus, .fld textarea:focus, .sel select:focus, body .search input:focus { outline: 2px solid var(--azure); outline-offset: 0; border-color: var(--azure); }
[aria-invalid="true"] { border-color: #c0261a !important; }
.err { color: #b3261e; font-size: .85rem; min-height: 0; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .84rem; color: var(--pipe); }
.fstatus { margin-top: 14px; font-size: .95rem; }
.fstatus:empty { display: none; }
.fstatus.notice { background: var(--crystal); border-left: 3px solid var(--azure); padding: 16px 18px; border-radius: var(--r); }
.fstatus.notice b { display: block; margin-bottom: 4px; }
.fstatus.notice p { margin: 0 0 12px; color: var(--ink-2); }
.fstatus .fs-act { display: flex; flex-wrap: wrap; gap: 10px; }
.fstatus.ok { color: #137a4c; }
.fstatus.bad { color: #b3261e; }
.tabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .9rem; }
.tabs button[aria-pressed="true"] { background: var(--alloy); color: #fff; border-color: var(--alloy); }
.qitems { display: grid; gap: 10px; margin: 16px 0 20px; }
.qitem { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.qitem img { width: 56px; height: 44px; object-fit: contain; background: var(--paper); border-radius: 2px; }
.qitem b { font-size: .92rem; line-height: 1.3; }
.qitem label { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--pipe); }
.qitem input { width: 64px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--steel); border-radius: var(--r); font: inherit; }
.qitem .x { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.qitem .x:hover { background: var(--crystal); }
.qitem-error { grid-column: 1 / -1; }
.qitem-error:empty { display: none; }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.cmp > div { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cmp img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--paper); margin-bottom: 12px; }
.cmp h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cmp .s { font-size: .8rem; color: var(--pipe); margin-bottom: 8px; }
.cmp p { font-size: .9rem; color: var(--ink-2); }
.cmp .r { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- services hub ---------- */
.hub-hero { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); background: var(--paper); }
.hub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hub-hero .lead { margin-top: 24px; }
.hero-search { margin-top: 34px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--steel); border-radius: var(--r); padding: 6px 6px 6px 16px; max-width: 600px; }
.hero-search:focus-within { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(0, 93, 255, .15); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 0; outline: none; }
.hub-actions { margin-top: 22px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--pipe); font-size: .92rem; }
.proof b { color: var(--ink); font-weight: 600; }
.hub-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1.1 / 1; }
.hub-mosaic a { position: relative; overflow: hidden; border-radius: var(--r); text-decoration: none; background: var(--crystal); }
.hub-mosaic a:first-child { grid-row: 1 / 3; }
.hub-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hub-mosaic a:hover img { transform: scale(1.04); }
.hub-mosaic span { position: absolute; left: 10px; bottom: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(246, 246, 246, .95); padding: 8px 12px; border-radius: 2px; font-size: .84rem; font-weight: 600; }

.div-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.div-cards li { grid-column: span 2; }
.div-cards li:nth-child(1), .div-cards li:nth-child(2) { grid-column: span 3; }
.div-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.div-card:hover { border-color: var(--alloy); transform: translateY(-3px); box-shadow: var(--shadow); }
.div-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--crystal); }
.div-card-media img { width: 100%; height: 100%; object-fit: cover; }
.div-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.div-card-body h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.div-card-body p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.div-card-body .link { align-self: flex-start; }

.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--alloy); }
.how-steps li { padding: 28px 28px 8px 0; }
.how-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.how-steps h3 { font-size: 1.3rem; margin: 22px 0 10px; letter-spacing: -0.02em; }
.how-steps p { color: var(--ink-2); }

.filters { position: sticky; top: calc(var(--hdr) + 8px); z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 10px; padding: 10px; background: rgba(234, 234, 234, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--steel); border-radius: var(--r-lg); margin-bottom: 18px; }
body .search { position: relative; display: block; }
body .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pipe); }
body .search input { padding-left: 42px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--steel); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 500; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; }
.chip span { color: var(--pipe); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--alloy); }
.chip[aria-pressed="true"] { background: var(--alloy); color: #fff; border-color: var(--alloy); }
.chip[aria-pressed="true"] span { color: var(--steel); }
.count { color: var(--pipe); font-size: .92rem; margin: 6px 0 24px; }
.empty { padding: 28px; background: var(--surface); border-radius: var(--r-lg); }
.cat-group { padding-top: 32px; }
.cat-group + .cat-group { margin-top: 40px; }
.cat-group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--alloy); }
.cat-group-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; }
.cat-count { color: var(--pipe); font-size: .9rem; }
.cat-group-head .link { margin-left: auto; font-size: .92rem; }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.svc-card:hover { border-color: var(--alloy); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card[hidden] { display: none; }
.svc-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.svc-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--crystal); }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card-media.is-small img { object-fit: contain; padding: 8% 20%; }
.svc-card:hover .svc-card-media img { transform: scale(1.04); }
.card-n { position: absolute; top: 10px; left: 10px; background: rgba(246, 246, 246, .94); font-size: .72rem; font-weight: 600; padding: 4px 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.svc-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.svc-card-body .eyebrow { font-size: .68rem; margin-bottom: 12px; }
.svc-card-body .eyebrow::before { width: 14px; }
[data-division] .svc-card-body .eyebrow::before { background: var(--div); }
.svc-card-body h3 { font-size: 1.18rem; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.svc-card-body p { color: var(--ink-2); font-size: .94rem; line-height: 1.5; flex: 1; margin-bottom: 16px; }
.svc-card-body .link { align-self: flex-start; font-size: .9rem; border-bottom: 0; }
.svc-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-top: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: background .2s; }
.svc-add:hover { background: var(--paper); color: var(--ink); }
.svc-add[aria-pressed="true"], .svc-add-inline[aria-pressed="true"] { background: var(--alloy); color: #fff; }
.svc-add[aria-pressed="true"] .ic, .svc-add-inline[aria-pressed="true"] .ic { transform: rotate(45deg); }

/* ---------- division & service detail ---------- */
.svc-hero { padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); background: var(--paper); position: relative; }
.svc-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--div); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sig { margin-bottom: 30px; }
.sig img { width: auto; height: 34px; }
.svc-hero .lead { margin-top: 22px; }
.svc-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.svc-meta > div { padding: 16px 28px 0 0; }
.svc-meta > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.svc-meta dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pipe); margin-bottom: 6px; }
.svc-meta dd { font-weight: 600; font-size: .95rem; }
.svc-meta a { text-decoration: none; color: var(--div-text); }
.plate { margin: 0; }
.plate-frame { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.plate-frame::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--div); }
.plate-img { width: 100%; height: 100%; object-fit: cover; }
.plate.is-small .plate-img { object-fit: contain; width: auto; max-width: 70%; height: auto; max-height: 76%; }
.plate.is-small .plate-frame { background: var(--surface) radial-gradient(circle at 50% 50%, var(--paper), var(--surface) 70%); }
.plate figcaption { margin-top: 12px; font-size: .82rem; color: var(--pipe); }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose .h2 { margin-bottom: 24px; max-width: 22ch; }
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.svc-split .h3 { margin-bottom: 20px; font-size: 1.2rem; }
.checks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks .ic { color: var(--div-text); margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--div-soft, var(--crystal)); font-size: .92rem; }
.enquiry { position: sticky; top: calc(var(--hdr) + 24px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--div); border-radius: var(--r-lg); padding: 30px; }
.enquiry .h3 { margin-bottom: 12px; }
.enquiry > p { color: var(--ink-2); font-size: .95rem; }
.steps { margin: 20px 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.steps .step-n { padding-top: 3px; }
.note { font-size: .86rem; color: var(--pipe); }
.enq-act { display: grid; gap: 10px; margin-top: 18px; }
.sub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sub-links a { padding: 8px 14px; border: 1px solid var(--steel); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--surface); }
.sub-links a:hover { border-color: var(--div); }
.sub-group { padding-top: 36px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--alloy); }
.sub-head h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.sub-head span { color: var(--pipe); font-size: .9rem; }
.aftersales { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.as-list { border-top: 1px solid var(--alloy); }
.as-list li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 500; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--alloy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { transition: transform .25s var(--ease); }
.faq details[open] .faq-ic { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 24px 0; margin: 0; }

/* ---------- projects ---------- */
.proj-hero { position: relative; background: var(--alloy); color: var(--crystal); padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.proj-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.proj-hero .display { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; }
.proj-hero .display span { color: var(--steel); }
.proj-hero .lead { color: #cfcdcd; margin-top: 24px; }
.proj-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1.05 / 1; }
.proj-art figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: #3a3334; }
.pa-main { grid-row: 1 / 3; }
.proj-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj-art figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(246, 246, 246, .95); color: var(--alloy); font-size: .76rem; font-weight: 600; padding: 5px 9px; border-radius: 2px; }
.caps { background: var(--surface); border-bottom: 1px solid var(--line); }
.caps-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.caps p { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pipe); font-weight: 600; }
.caps nav { display: flex; flex-wrap: wrap; gap: 8px; }
.caps nav a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--steel); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.caps nav a:hover { border-color: var(--alloy); background: var(--paper); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--alloy); }
.case-rev .case-media { order: 2; }
.case-media { position: sticky; top: calc(var(--hdr) + 24px); }
.case-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.case-media-stack > img:first-child { aspect-ratio: 1 / 1; }
.case-inset { width: 62% !important; margin: -22% 0 0 auto; aspect-ratio: 16 / 10 !important; border: 6px solid var(--paper); border-radius: var(--r-lg); object-fit: cover; position: relative; }
.credit { font-size: .8rem; color: var(--pipe); margin-top: 10px; }
.case-body .h2 { margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 18px 0 0; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pipe); margin-bottom: 8px; }
.facts dd { white-space: nowrap; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.pdf-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--alloy); border-radius: var(--r-lg); margin: 28px 0 16px; }
.pdf-ic { width: 52px; height: 52px; border-radius: var(--r); background: var(--alloy); color: #fff; display: grid; place-items: center; }
.pdf-ic .ic { width: 24px; height: 24px; }
.pdf-t { font-weight: 600; margin: 0 0 2px; }
.pdf-m { margin: 0; font-size: .86rem; color: var(--pipe); }
.source { font-size: .88rem; color: var(--pipe); }
.source a { color: var(--accent-text); }
.case-act { margin-top: 24px; }
.project-filters { margin-bottom: 10px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid li[hidden] { display: none; }
.pgrid > li { min-width: 0; }
.pcard { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.pcard:hover { border-color: var(--alloy); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--crystal); width: 100%; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-n { position: absolute; top: 10px; left: 10px; background: rgba(246, 246, 246, .95); font-size: .72rem; font-weight: 600; padding: 4px 7px; border-radius: 2px; }
.pcard-body { display: flex; flex-direction: column; padding: 18px 20px 20px; gap: 6px; }
.pcard-body .eyebrow { font-size: .68rem; margin-bottom: 4px; }
.pcard-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.pcard-body .link { font-size: .88rem; border-bottom: 0; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(30, 26, 27, .72); display: grid; place-items: center; padding: 20px; }
.lb-card { width: min(1120px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.lb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pipe); }
.lb-head .mx { position: static; }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; flex: 1; overflow: hidden; }
.lb-media { background: var(--alloy); display: grid; place-items: center; min-height: 0; }
.lb-media img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.lb-body { padding: 32px; overflow-y: auto; }
.lb-body .h3 { margin-bottom: 18px; font-size: 1.8rem; letter-spacing: -0.03em; }
.lb-body .project-detail p { color: var(--ink-2); }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 20px 0; }
.project-facts > div { padding: 14px 12px 0 0; }
.project-facts dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pipe); }
.project-facts dd { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.project-case-study { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--alloy); border-radius: var(--r); margin: 18px 0; }
.project-case-study h3 { font-size: 1rem; }
.project-case-study p { margin: 0; font-size: .85rem; color: var(--pipe); }
.project-case-study a { font-weight: 600; color: var(--accent-text); }
.project-detail-heading { font-size: 1rem; margin-top: 20px; }
.project-context summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.project-source { font-size: .85rem; color: var(--pipe); }
.project-source a { color: var(--accent-text); }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.lb-n { font-size: .9rem; color: var(--pipe); font-variant-numeric: tabular-nums; }

/* ---------- generic page hero / partners / about / contact ---------- */
.page-hero { padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-hero-grid .lead { margin: 0; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-top: clamp(48px, 6vw, 80px); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logos a { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 18px; background: var(--surface); text-decoration: none; height: 100%; font-size: .85rem; color: var(--ink-2); transition: background .2s; }
.logos a:hover { background: var(--paper); }
.logo-box { display: grid; place-items: center; height: 72px; }
.logo-box img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--steel); border: 1px solid var(--steel); }
.areas li { background: var(--crystal); padding: 28px 28px 32px; }
.areas h3 { font-size: 1.3rem; margin: 28px 0 10px; letter-spacing: -0.02em; }
.areas p { color: var(--ink-2); margin: 0; }
.areas-end { margin: 36px 0 0; max-width: 78ch; color: var(--ink-2); font-size: 1.05rem; }
.partners { border-top: 1px solid var(--alloy); }
.partner { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: 40px 0; border-bottom: 1px solid var(--line); }
.partner-logo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; padding: 28px; aspect-ratio: 16 / 10; align-self: start; }
.partner-logo img { max-height: 90px; width: auto; object-fit: contain; }
.partner-body .h3 { margin: 8px 0 16px; }
.partner-body p { color: var(--ink-2); max-width: 72ch; white-space: pre-line; }
.about-intro p:not(.lead) { color: var(--ink-2); }
.about-intro .lead { margin-bottom: 18px; max-width: none; }
.about-photo figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.callout { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 18px; align-items: center; background: var(--surface); padding: 16px 16px 16px 22px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.callout b { display: block; }
.callout span span { display: block; font-size: .86rem; color: var(--pipe); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--steel); border: 1px solid var(--steel); }
.values li { background: var(--crystal); padding: 28px 26px 32px; }
.values h3 { font-size: 1.25rem; margin: 30px 0 10px; letter-spacing: -0.02em; }
.values p { color: var(--ink-2); margin: 0; }
.about-divs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.linklist { border-top: 1px solid var(--alloy); }
.linklist a { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.linklist a span { font-size: .78rem; color: var(--pipe); font-weight: 500; }
.linklist a .ic { margin-left: auto; }
.linklist a:hover { color: var(--accent-text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-grid .lead { margin-top: 22px; }
.ccards { margin-top: 36px; border-top: 1px solid var(--alloy); }
.ccards li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.ccard { flex: 1; display: flex; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; min-width: 0; }
.ccard-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.ccard-l { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pipe); }
.ccard .val { display: block; font-weight: 600; font-size: clamp(.98rem, 4vw, 1.08rem); overflow-wrap: break-word; }
.ccard > span:last-child { min-width: 0; }
a.ccard:hover .val { color: var(--accent-text); }
.copy { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; }
.copy.ok { background: var(--alloy); color: #fff; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.form .h3 { margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.nf { padding: clamp(64px, 10vw, 140px) 0; }
.nf-in { max-width: 760px; }
.nf-code { font-size: clamp(6rem, 18vw, 13rem); font-weight: 600; letter-spacing: -0.06em; line-height: .9; margin: 0 0 24px; color: var(--alloy); }
.nf-in .lead, .nf-in h1 + p { margin-top: 16px; }
.nf-links { margin-top: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hdr-cat { display: none; }
  .drow a { grid-template-columns: 40px 180px minmax(0, 1fr) 70px; gap: 22px; }
  .drow-count { display: none; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .stats-light { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  :root { --hdr: 68px; }
  .hdr-nav, .hdr-act { display: none; }
  .burger { display: inline-flex; }
  .home-hero-grid, .hub-hero-grid, .svc-hero-grid, .proj-hero-grid, .presence, .cta-in, .apart, .faq-grid, .svc-cols, .page-hero-grid, .contact-grid, .about-divs, .aftersales, .case, .ftr-top { grid-template-columns: minmax(0, 1fr); }
  .case-rev .case-media { order: 0; }
  .case-media, .enquiry { position: static; }
  .cta-act { justify-content: flex-start; }
  .ftr-p { justify-self: start; }
  .benefits ul { grid-template-columns: repeat(3, 1fr); }
  .benefits li { border-bottom: 1px solid var(--line); }
  .benefits li:nth-child(3n) { border-right: 0; }
  .benefits li:nth-child(3n+1) { padding-left: 0; }
  .sectors, .areas { grid-template-columns: repeat(2, 1fr); }
  .div-cards { grid-template-columns: 1fr 1fr; }
  .div-cards li, .div-cards li:nth-child(1), .div-cards li:nth-child(2) { grid-column: auto; }
  .hero-index { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .partner { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .hdr-logo img { width: 176px; }
  .tiles { aspect-ratio: auto; grid-template-rows: repeat(6, 64px); }
  .drow a { grid-template-columns: 1fr 52px; gap: 14px 16px; padding: 22px 0; }
  .drow-n { display: none; }
  .drow-media { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .drow-main { grid-column: 1; }
  .drow-side { grid-column: 2; align-self: start; padding-right: 0; }
  .drow-go { width: 44px; height: 44px; }
  .feature-pair { grid-template-columns: 1fr; }
  .feature { min-height: 440px; }
  .benefits ul { grid-template-columns: 1fr 1fr; }
  .benefits li { border-right: 0 !important; padding-left: 0 !important; }
  .sectors, .areas, .values, .how-steps, .div-cards { grid-template-columns: 1fr; }
  .how-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .popular ul { grid-template-columns: 1fr; }
  .stats-light { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; position: static; }
  .sel { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
  .chip { flex: none; }
  .project-filters { margin: 0 0 10px; padding: 0; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard-body { padding: 14px; }
  .pcard-name { font-size: .98rem; }
  .facts, .project-facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pdf-card { grid-template-columns: auto 1fr; }
  .pdf-card .btn { grid-column: 1 / -1; }
  .svc-split, .form-grid { grid-template-columns: 1fr; }
  .svc-meta { grid-template-columns: 1fr 1fr; }
  .svc-meta > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; gap: 20px; }
  .partner-logo { max-width: 260px; }
  .ftr-cols { grid-template-columns: 1fr; gap: 28px; }
  .ftr-logo { width: 240px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .callout { position: static; border-radius: 0; flex-direction: column; align-items: flex-start; box-shadow: none; border: 1px solid var(--line); }
  .lb-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-media { height: min(40vh, 340px); overflow: hidden; }
  .lb-media img { height: min(40vh, 340px); max-height: none; object-fit: contain; }
  .lb-body { overflow: visible; padding: 22px; }
  .lb-card { max-height: calc(100vh - 24px); }
  .lb { padding: 12px; }
  .lb-foot .btn { padding: 0 12px; }
  .cat-group-head .link { margin-left: 0; }
  .fab { display: none; }
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: .72rem; text-decoration: none; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
  .mbar button { color: var(--azure); font-weight: 600; }
  .mbar button[hidden] { display: none; }
  .toast { bottom: 80px; }
  .mcard { padding: 26px 20px; }
  .qitem { grid-template-columns: 44px 1fr auto; }
  .qitem img { width: 44px; height: 36px; }
  .qitem label { grid-column: 2; }
  .qitem .x { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .clients-row { animation: none; flex-wrap: wrap; width: auto; }
  .clients-row img[aria-hidden] { display: none; }
}
@media print { .hdr, .ftr, .fab, .mbar, .cta { display: none; } }

/* ---- Homepage refinement: compact hero, intentional instrument plates ---- */
.home-hero { padding: clamp(32px, 4.5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.home-hero .display { font-size: clamp(2.15rem, 4.6vw, 4.25rem); line-height: 1.02; max-width: 13ch; }
.home-hero .lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.home-hero .actions { margin-top: 28px; }
.tile.tile-5, .tile-plate { grid-column: 1 / 3; grid-row: 5 / 7; }
.tile-4 { grid-column: 3 / 7; grid-row: 5 / 7; }
.tile img { object-position: center; }
.tile-1 img { object-position: 50% 40%; }
.tile-plate, .drow-media.is-plate { display: flex; align-items: center; justify-content: center; background: var(--crystal); }
.tile-plate { position: relative; overflow: hidden; border-radius: var(--r); text-decoration: none; }
.plate-row { display: flex; align-items: center; justify-content: center; gap: 4%; width: 100%; height: 100%; padding: 12% 8% 22%; }
.drow-media .plate-row { padding: 10% 12%; }
.plate-row img { flex: 1 1 0; min-width: 0; height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.tile-plate:hover .plate-row img, .drow a:hover .plate-row img { transform: translateY(-3px); }
.feature.feature-kafd .feature-media img { object-position: 50% 100%; }
.feature { min-height: 460px; }
.link-light { color: #fff; margin-top: 18px; display: inline-flex; }
#divisions .popular ul { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .home-hero { padding: 22px 0 32px; }
  .home-hero .display { font-size: clamp(1.95rem, 8.6vw, 2.5rem); max-width: none; }
  .home-hero .lead { margin-top: 14px; font-size: 1rem; line-height: 1.5; }
  .home-hero .actions { margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
  .home-hero .actions .btn-lg { padding: 13px 16px; font-size: .95rem; }
  .home-hero .eyebrow { margin-bottom: 14px; }
  .tiles { grid-template-rows: repeat(6, 52px); gap: 8px; }
  .plate-row { padding: 10% 8% 26%; }
  .feature { min-height: 380px; }
  #divisions .popular ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .tile span { font-size: .68rem; padding: 4px 7px; } }

/* Consistency: hero action buttons share one width on phones across page families */
@media (max-width: 520px) {
  .svc-hero-copy .actions .btn, .page-hero .actions .btn, .proj-hero .actions .btn { width: 100%; }
}
