/* Al-Qurum Metal Industries — site styles
   Layout borrowed from the design Ahmed chose (alqurum-website-preview.html), set in the brand colours:
   white pages, navy (#071634) bands and text, cobalt (#1747C9) buttons and accents. Light by default; a dark
   mode the visitor switches on with the header button (see "dark mode" at the end; theme.js remembers it).
   Small Latin "eyebrow" labels with a line sit above headings; blocks fade in as they scroll into view.
   No inline styles anywhere: the Content-Security-Policy forbids them. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --surface: #FFFFFF;     /* cards, menus, forms */
  --field: #FBFCFE;       /* form fields */
  --heading: #071634;     /* navy headings on light surfaces */
  --accent: #1747C9;      /* blue used for text (links, labels); --blue is for fills */
  --q-opacity: .42;
  --tint: #F4F6F9;
  --tint-2: #EDF2FA;
  --ink: #0D1A33;
  --ink-2: #4B5872;
  --ink-3: #6E7A90;
  --line: #DFE5EE;
  --line-2: #C6D0DE;
  --navy: #071634;
  --navy-2: #0F2A5C;
  --blue: #1747C9;
  --blue-hi: #2F6BEA;
  --blue-soft: #E7EEFC;
  --sky: #A9C1F6;
  --on-navy: #C9D4EA;
  --wa: #25D366;
  --wa-ink: #04301A;
  --danger: #B42318;
  --danger-soft: #FCEBE9;
  --ok: #0F7B48;
  --ok-soft: #E2F4EA;
  --focus: #2F6BEA;
  --scrim: rgba(4, 13, 32, .74);
  --shadow-sm: 0 10px 24px -16px rgba(7, 22, 52, .35);
  --shadow: 0 28px 60px -32px rgba(7, 22, 52, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --lat: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-base: 1.0625rem;
  --fs-hero: clamp(2.1rem, 1.2rem + 3.3vw, 3.9rem);
  --fs-h1: clamp(1.9rem, 1.25rem + 2.4vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem);
  --fs-h3: 1.18rem;
  --lh-body: 1.9;
  --lh-head: 1.45;

  --max: 1300px;
  --gutter: clamp(16px, 4vw, 44px);
  --section: clamp(64px, 9vw, 116px);
  --radius: 3px;
}
html[lang="en"] {
  --font: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --lh-body: 1.7;
  --lh-head: 1.15;
  --fs-hero: clamp(2rem, 1.15rem + 3vw, 3.6rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue-soft); color: var(--navy); }
.page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font); line-height: var(--lh-head); margin: 0; text-wrap: balance; color: var(--ink); font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
ul, ol { margin: 0; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--blue); color: #FFFFFF; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #FFFFFF; }
.section--flush { padding-block-start: 0; }
.section--tint + .section--tint, .section:not(.section--tint):not(.section--navy) + .section:not(.section--tint):not(.section--navy) { padding-block-start: 0; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-2); max-width: 44rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mt-s { margin-block-start: 10px; }

/* ---------- letterhead ornaments (Ahmed, 13 Oct 2026) ----------
   Borrowed from the company's report letterhead: diagonal brushed-silver and blue bands in the corners,
   "///" slashes, a thin rail with stacked bars, and a big pale-silver "Q". Silver + navy on the navy bars,
   silver touches only on white. The SVGs are drawn for RTL (Arabic first) and mirrored for English. */
:root {
  --orn-slashes: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%237D889B'/><stop offset='.5' stop-color='%23DDE3EC'/><stop offset='1' stop-color='%238792A4'/></linearGradient></defs><path d='M0 10l4-10h6L6 10z' fill='%231747C9'/><path d='M9 10l4-10h6l-4 10z' fill='%232F6BEA'/><path d='M18 10l4-10h6l-4 10z' fill='url(%23m)'/></svg>");
  --orn-slashes-light: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23B7C0CD'/><stop offset='.5' stop-color='%23F4F6F9'/><stop offset='1' stop-color='%23C9D0DA'/></linearGradient></defs><path d='M0 10l4-10h6L6 10z' fill='%236F95EE'/><path d='M9 10l4-10h6l-4 10z' fill='%23A9C1F6'/><path d='M18 10l4-10h6l-4 10z' fill='url(%23m)'/></svg>");
  --orn-bands: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 100' preserveAspectRatio='none'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%237D889B'/><stop offset='.3' stop-color='%23F4F6F9'/><stop offset='.55' stop-color='%23A9B3C2'/><stop offset='.8' stop-color='%23EEF1F5'/><stop offset='1' stop-color='%238792A4'/></linearGradient></defs><path d='M12 0h9l48 100h-9z' fill='url(%23m)'/><path d='M3 0h4l48 100h-4z' fill='%232F6BEA'/></svg>");
  --orn-corner: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 110'><defs><linearGradient id='b' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%232F6BEA'/><stop offset='1' stop-color='%23102F80'/></linearGradient><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%237D889B'/><stop offset='.35' stop-color='%23F4F6F9'/><stop offset='.6' stop-color='%23A9B3C2'/><stop offset='.85' stop-color='%23EEF1F5'/><stop offset='1' stop-color='%238792A4'/></linearGradient></defs><path d='M0 0h150L40 110H0z' fill='url(%23b)'/><path d='M150 0h22L62 110H40z' fill='url(%23m)'/><path d='M182 0h6L78 110h-6z' fill='%232F6BEA'/><path d='M210 28l8-14h10l-8 14zM226 28l8-14h10l-8 14z' fill='%232F6BEA'/><path d='M242 28l8-14h10l-8 14z' fill='url(%23m)'/></svg>");
  --orn-rail: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 300'><defs><linearGradient id='l' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23B7C0CD' stop-opacity='0'/><stop offset='.5' stop-color='%23A9B3C2'/><stop offset='1' stop-color='%23B7C0CD' stop-opacity='0'/></linearGradient><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23A9B3C2'/><stop offset='.5' stop-color='%23EEF1F5'/><stop offset='1' stop-color='%238792A4'/></linearGradient></defs><rect x='12' width='1.5' height='300' fill='url(%23l)'/><path d='M0 112l8-8v22l-8 8zM0 140l8-8v22l-8 8z' fill='url(%23m)'/><path d='M0 168l8-8v22l-8 8zM0 196l8-8v22l-8 8z' fill='%232F6BEA'/></svg>");
  --metal: linear-gradient(90deg, #8792A4, #EEF1F5 20%, #B7C0CD 46%, #EEF1F5 72%, #8792A4);
}

/* eyebrow: a small Latin label with the letterhead's "///" before it */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; direction: ltr; unicode-bidi: isolate;
  font: 700 .72rem/1.4 var(--lat); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 30px; height: 10px; background: var(--orn-slashes) no-repeat center / contain; flex: none; }
[dir="rtl"] .eyebrow { flex-direction: row-reverse; }
.eyebrow--light { color: var(--sky); }
.eyebrow--light::before { background-image: var(--orn-slashes-light); }

/* the big pale-silver "Q" in the corner of some white sections (letterhead watermark) */
.has-q { position: relative; isolation: isolate; overflow: hidden; }
.has-q::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset-inline-end: -4%; bottom: -18%;
  width: clamp(220px, 30vw, 420px); aspect-ratio: 1; background: url("../brand/q-silver.png") no-repeat center / contain; opacity: var(--q-opacity);
}
.has-q--start::after { inset-inline-end: auto; inset-inline-start: -4%; }

/* section heading: title on one side, lead and link on the other */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-block-end: clamp(32px, 4.5vw, 52px); }
.sec-head__title { display: grid; gap: 12px; justify-items: start; max-width: 40rem; }
.sec-head__side { display: grid; gap: 14px; justify-items: start; max-width: 34rem; }
.sec-head__side p { color: var(--ink-2); }
.section--navy .sec-head h2 { color: #FFFFFF; }
.section--navy .sec-head__side p { color: var(--on-navy); }
.txt-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--accent); transition: gap .25s var(--ease); white-space: nowrap; }
.txt-link:hover { gap: 18px; }
@media (max-width: 860px) { .sec-head { flex-direction: column; align-items: flex-start; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 12px 26px; border-radius: var(--radius);
  font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { font: 700 1.15rem/1 var(--lat); transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
[dir="rtl"] .btn:hover .arrow { transform: translate(-3px, -3px); }
.btn--primary { background: var(--blue); color: #FFFFFF; box-shadow: 0 14px 30px -18px rgba(23, 71, 201, .8); }
.btn--primary:hover { background: var(--navy-2); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); color: var(--accent); }
.btn--light { background: #FFFFFF; color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); }
.btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- header (navy bar) ----------
   The logo's navy lettering got lost on the navy bar, so it sits on a white-to-silver plate that runs in
   from the edge of the screen and ends in a slanted cut edged with silver and blue bands (letterhead corner). */
.progress-line { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
[dir="rtl"] .progress-line { transform-origin: right center; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy); color: #FFFFFF;
  border-block-end: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .3s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(7, 22, 52, .95); backdrop-filter: saturate(1.3) blur(14px); } }
.site-header.is-scrolled { box-shadow: 0 16px 40px -22px rgba(7, 22, 52, .75); }
.site-header :focus-visible { outline-color: var(--sky); }
.header-bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 88px; }
.brand { position: relative; isolation: isolate; align-self: stretch; display: inline-flex; align-items: center; flex: none; padding-block: 4px; padding-inline-end: 54px; }
.brand img { height: 56px; width: auto; }
.brand::before, .foot-logo::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: -100vw; inset-inline-end: 0;
  background: #FFFFFF linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, #E8ECF2 70%, #D3DAE4 100%) no-repeat right center / 240px 100%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
}
[dir="rtl"] .brand::before, [dir="rtl"] .foot-logo::before {
  background-image: linear-gradient(255deg, rgba(255, 255, 255, 0) 0%, #E8ECF2 70%, #D3DAE4 100%); background-position: left center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 48px 100%);
}
.brand::after, .foot-logo::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: -26px; width: 74px; pointer-events: none;
  background: var(--orn-bands) no-repeat 0 0 / 100% 100%; transform: scaleX(-1);
}
[dir="rtl"] .brand::after, [dir="rtl"] .foot-logo::after { transform: none; }
.nav-main { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(2px, 1vw, 14px); }
.nav-main > a, .nav-main > .menu-wrap > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 8px;
  color: rgba(255, 255, 255, .84); text-decoration: none; font: 500 .96rem/1.2 var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.nav-main > a:hover, .nav-main > .menu-wrap > button:hover { color: #FFFFFF; }
.nav-main > a::after, .nav-main > .menu-wrap > button::after {
  content: ""; position: absolute; inset-inline: 8px; bottom: 4px; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
[dir="ltr"] .nav-main > a::after, [dir="ltr"] .nav-main > .menu-wrap > button::after { transform-origin: left; }
.nav-main > a:hover::after, .nav-main > a[aria-current="page"]::after,
.nav-main > .menu-wrap > button:hover::after, .nav-main > .menu-wrap > button[aria-current="page"]::after { transform: scaleX(1); }
.nav-main a[aria-current="page"], .nav-main button[aria-current="page"] { color: #FFFFFF; }
.nav-main svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-main [aria-expanded="true"] svg { transform: rotate(180deg); }
.header-end { display: flex; align-items: center; gap: 16px; flex: none; }
.lang-link { font: 700 .82rem/1 var(--lat); letter-spacing: .04em; color: #FFFFFF; text-decoration: none; padding: 10px 4px; }
.lang-link:hover { color: var(--sky); }
.header-cta { min-height: 46px; padding: 10px 18px; font-size: .92rem; box-shadow: none; }
.site-header .btn--primary:hover { background: var(--blue-hi); }
.menu-wrap { position: relative; }
.mega {
  position: absolute; inset-inline-end: -40px; top: calc(100% + 16px); width: min(660px, 84vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px;
}
[dir="rtl"] .mega { inset-inline-end: auto; inset-inline-start: -40px; }
.mega a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 3px; color: var(--ink); text-decoration: none; font-size: .97rem; }
.mega a:hover { background: var(--tint); color: var(--accent); }
.mega-no { font: 700 .72rem/1 var(--lat); color: var(--ink-3); min-width: 20px; }
.mega a:hover .mega-no { color: var(--accent); }
.mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; color: var(--accent); }
.menu-toggle { display: none; margin-inline-start: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #FFFFFF; border-radius: var(--radius); font: 600 .95rem/1 var(--font); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--navy); padding-block: 12px 22px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav ul { list-style: none; padding: 0; display: grid; }
.mobile-nav a { display: block; padding: 12px 4px; color: #FFFFFF; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 500; }
.mobile-nav .sub a { padding-inline-start: 18px; font-weight: 400; font-size: .97rem; color: var(--on-navy); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (max-width: 1120px) {
  .nav-main, .header-end { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 44px; }
  .header-bar { min-height: 72px; }
}

/* shared entrance motion: header text rises in */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- home: hero ----------
   Full-width photo slideshow behind the headline (Ahmed, 13 Oct 2026): photos cross-fade with a slow zoom under a
   navy shade that is darkest on the text side, so the white text reads. No captions: it is a first impression. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, calc(100vh - 88px), 780px); background: var(--navy); color: #FFFFFF; }
.hero__media { position: absolute; z-index: -1; inset: 0; animation: fade-in 1.2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__slides { position: absolute; inset: 0; background: var(--navy); }
.hero__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; transform: scale(1.03); }
.hero__slide--top img { object-position: 50% 22%; transform-origin: 50% 22%; } /* portrait photos: keep the upper part */
.hero__slide.is-active img { animation: kenburns 11s linear both; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
/* navy shade: darkest behind the text (inline-start), lighter on the far side so the photos still show */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 22, 52, .9) 0%, rgba(7, 22, 52, .76) 36%, rgba(7, 22, 52, .32) 70%, rgba(7, 22, 52, .14) 100%), linear-gradient(0deg, rgba(7, 22, 52, .6) 0%, rgba(7, 22, 52, 0) 32%);
}
[dir="rtl"] .hero__media::after {
  background: linear-gradient(270deg, rgba(7, 22, 52, .9) 0%, rgba(7, 22, 52, .76) 36%, rgba(7, 22, 52, .32) 70%, rgba(7, 22, 52, .14) 100%), linear-gradient(0deg, rgba(7, 22, 52, .6) 0%, rgba(7, 22, 52, 0) 32%);
}
.hero__dots { position: absolute; z-index: 1; bottom: 30px; inset-inline-end: var(--gutter); display: flex; gap: 8px; }
.hero__dots span { position: relative; width: 38px; height: 3px; background: rgba(255, 255, 255, .42); overflow: hidden; }
.hero__dots span::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .hero__dots span::after { transform-origin: right center; }
.hero__dots span.is-active::after { animation: dot-fill var(--hold, 5s) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__inner { position: relative; }
.hero__copy { display: grid; justify-items: start; max-width: min(40rem, 52%); padding-block: clamp(48px, 7vw, 96px); }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .12s; }
.hero__copy > :nth-child(3) { animation-delay: .24s; }
.hero__copy > :nth-child(4) { animation-delay: .36s; }
.hero__copy > :nth-child(5) { animation-delay: .46s; }
.hero__copy > :nth-child(6) { animation-delay: .56s; }
.hero .eyebrow { color: var(--sky); }
.hero .eyebrow::before { background-image: var(--orn-slashes-light); }
.hero h1 { font-size: var(--fs-hero); margin: 22px 0 20px; color: #FFFFFF; text-shadow: 0 2px 24px rgba(7, 22, 52, .45); }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero__lead { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 40rem; }
.hero .btn-row { margin: 32px 0 16px; }
.hero__note { font-size: .92rem; color: var(--on-navy); }
.hero__facts { list-style: none; padding: 0; margin-top: 34px; display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .22); width: 100%; max-width: 36rem; }
.hero__facts li { padding-block: 18px 0; padding-inline-end: clamp(16px, 2.6vw, 36px); margin-inline-end: clamp(16px, 2.6vw, 36px); border-inline-end: 1px solid rgba(255, 255, 255, .22); display: grid; gap: 2px; }
.hero__facts li:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.hero__facts b { font: 800 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--lat); color: #FFFFFF; }
.hero__facts span { font-size: .82rem; color: var(--on-navy); line-height: 1.5; }
.hero__scroll { position: absolute; bottom: 24px; inset-inline-start: var(--gutter); display: flex; align-items: center; gap: 12px; font: 700 .64rem/1 var(--lat); letter-spacing: .3em; color: rgba(255, 255, 255, .7); }
.hero__scroll::before { content: ""; width: 1px; height: 46px; background: var(--sky); }
@media (max-width: 1100px) { .hero__copy { max-width: 60%; } }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  [dir] .hero__media::after { background: linear-gradient(180deg, rgba(7, 22, 52, .5) 0%, rgba(7, 22, 52, .72) 45%, rgba(7, 22, 52, .9) 100%); }
  .hero__dots { top: 16px; bottom: auto; inset-inline-end: 16px; }
  .hero__copy { max-width: none; padding-block: 72px 56px; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) { .hero__facts li { flex: 1 1 30%; } }
/* letterhead side rail (thin silver line with stacked bars) on the text side of the hero */
@media (min-width: 1200px) {
  .hero::after {
    content: ""; position: absolute; z-index: -1; top: 50%; inset-inline-start: 18px; width: 14px; height: 300px; pointer-events: none;
    background: var(--orn-rail) no-repeat center / contain; transform: translateY(-50%) scaleX(-1);
  }
  [dir="rtl"] .hero::after { transform: translateY(-50%); }
}

/* licences band under the hero (navy) */
.facts-band { position: relative; background: var(--navy); color: #FFFFFF; }
.facts-band::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--metal); opacity: .8; }
@media (min-width: 1000px) {
  .facts-band::after {
    content: ""; position: absolute; bottom: 0; inset-inline-end: 0; width: 190px; aspect-ratio: 320 / 110;
    background: var(--orn-corner) no-repeat 0 0 / 100% 100%; transform: scale(-1, -1); pointer-events: none;
  }
  [dir="rtl"] .facts-band::after { transform: scaleY(-1); }
}
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts > div { padding: 28px clamp(14px, 2vw, 26px); border-inline-start: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; align-content: start; min-width: 0; }
.facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { font-size: .9rem; font-weight: 600; color: #FFFFFF; display: grid; }
.facts dt small { font-weight: 400; font-size: .78rem; color: var(--on-navy); }
.facts dd { margin: 0; font: 800 clamp(1.05rem, .9rem + .7vw, 1.45rem)/1.3 var(--lat); color: var(--sky); overflow-wrap: anywhere; }
.facts dd small { display: block; font: 500 .78rem/1.5 var(--font); color: var(--on-navy); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-inline-start: 0; }
  .facts > div + div { border-top: 1px solid rgba(255, 255, 255, .12); }
  .facts dd { font-size: 1.05rem; }
}

/* "our work": featured projects */
.work-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 16px; }
.work { position: relative; display: block; overflow: hidden; background: var(--navy); color: #FFFFFF; text-decoration: none; min-height: 240px; isolation: isolate; }
.work--lead { grid-row: 1 / 3; }
.work--wide { grid-column: 2 / 4; }
.work picture, .work img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work img { object-fit: cover; transition: transform .9s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 22, 52, .9) 0%, rgba(7, 22, 52, .25) 48%, rgba(7, 22, 52, 0) 72%); }
.work__body { position: absolute; z-index: 1; inset-inline: 22px; bottom: 20px; display: grid; gap: 2px; }
.work__body small { font: 700 .68rem/1.4 var(--lat); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .work__body small { font: 600 .82rem/1.5 var(--font); letter-spacing: 0; }
.work__name { font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.work--lead .work__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.work__go { position: absolute; z-index: 1; top: 16px; inset-inline-end: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); font: 700 1rem/1 var(--lat); transition: background-color .3s, color .3s; }
.work:hover .work__go { background: #FFFFFF; color: var(--navy); }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 230px; }
  .work--lead { grid-column: 1 / -1; grid-row: span 2; }
  .work--wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } }

/* "details from our work": six square photo tiles, each opens its service */
.details-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.detail { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--navy); color: #FFFFFF; text-decoration: none; isolation: isolate; }
.detail picture, .detail img { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail img { object-fit: cover; transition: transform .9s var(--ease); }
.detail:hover img { transform: scale(1.06); }
.detail::before { content: ""; position: absolute; z-index: 1; top: 16px; inset-inline-start: 16px; width: 30px; height: 10px; background: var(--orn-slashes-light) no-repeat center / contain; }
.detail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 22, 52, .88) 0%, rgba(7, 22, 52, .2) 42%, rgba(7, 22, 52, 0) 64%); }
.detail__body { position: absolute; z-index: 1; inset-inline: 18px; bottom: 16px; display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.08rem; line-height: 1.4; }
.detail__body small { font: 800 .78rem/1 var(--lat); color: var(--sky); }
.detail:hover .detail__body span { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 560px) { .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .detail__body { inset-inline: 12px; bottom: 12px; font-size: .95rem; } }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; min-width: 0; }
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 28px 54px -32px rgba(7, 22, 52, .5); border-color: transparent; }
.svc-card__img { position: relative; height: 250px; overflow: hidden; background: var(--tint); }
.svc-card__img picture, .svc-card__img img { width: 100%; height: 100%; }
.svc-card__img img { object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.07); }
.svc-card__no { position: absolute; top: 16px; inset-inline-start: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(7, 22, 52, .84); color: #FFFFFF; font: 700 .8rem/1 var(--lat); }
.svc-card__body { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-card__body h3 { font-size: 1.16rem; }
.svc-card__body p { font-size: .93rem; color: var(--ink-2); line-height: 1.85; flex: 1; }
.svc-card__more { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; font-size: .86rem; font-weight: 700; color: var(--accent); }
.round-arrow { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font: 700 .9rem/1 var(--lat); color: var(--ink); transition: background-color .3s, border-color .3s, color .3s; }
.svc-card:hover .round-arrow { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
/* ten cards in three columns: the first and last run wide so every row is full */
@media (min-width: 1101px) {
  .svc-grid > .svc-card:first-child, .svc-grid > .svc-card:last-child { grid-column: span 2; }
  .svc-grid > .svc-card:first-child .svc-card__img, .svc-grid > .svc-card:last-child .svc-card__img { height: 300px; }
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-card__img { height: 220px; } }

/* manifesto band: navy, faded photo, rings */
.manifesto { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #FFFFFF; }
.manifesto__bg { position: absolute; inset: 0; z-index: -2; }
.manifesto__bg picture, .manifesto__bg img { width: 100%; height: 100%; }
.manifesto__bg img { object-fit: cover; opacity: .2; }
.manifesto::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); top: -340px; inset-inline-end: -240px; box-shadow: 0 0 0 110px rgba(255, 255, 255, .03), 0 0 0 220px rgba(255, 255, 255, .025); }
.manifesto .wrap > div { padding-block: clamp(76px, 10vw, 120px); max-width: 54rem; display: grid; justify-items: start; gap: 18px; }
.manifesto h2 { color: #FFFFFF; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); }
.manifesto p { color: var(--on-navy); max-width: 44rem; }
.manifesto .btn-row { margin-top: 8px; }

/* steps */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { counter-increment: step; background: var(--surface); border: 1px solid var(--line); padding: 30px 22px 26px; min-height: 230px; transition: border-color .25s, transform .35s var(--ease); min-width: 0; }
.step:hover { border-color: var(--blue); transform: translateY(-5px); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.5rem/1 var(--lat); color: #BCCDF3; margin-block-end: 24px; }
.step h3 { font-size: 1.08rem; margin-block-end: 8px; }
.step p { font-size: .9rem; color: var(--ink-2); line-height: 1.85; }
@media (max-width: 1100px) { .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step { min-height: 0; } }
@media (max-width: 460px) { .steps-grid { grid-template-columns: 1fr; } }

/* profile guide teaser (home) */
.part-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.part-mini { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; min-width: 0; }
.part-mini:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.part-mini__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.part-mini__img picture, .part-mini__img img { width: 100%; height: 100%; }
.part-mini__img img { object-fit: cover; transition: transform .8s var(--ease); }
.part-mini:hover .part-mini__img img { transform: scale(1.06); }
.part-mini__body { display: grid; gap: 2px; padding: 16px 18px 18px; }
.part-mini__body small { color: var(--accent); font-weight: 600; font-size: .8rem; }
.part-mini__body b { font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 900px) { .part-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* client names strip */
.clients { border-block: 1px solid var(--line); background: var(--paper); padding-block: 44px 10px; overflow: hidden; }
.clients__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.clients__head h2 { font-size: 1.15rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.clients:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 40px; padding: 22px 0; padding-inline-end: 40px; white-space: nowrap; font: 700 clamp(1.15rem, .95rem + .8vw, 1.6rem)/1.4 var(--font); color: var(--heading); }
.marquee li::after { content: ""; width: 9px; height: 9px; background: var(--blue); transform: rotate(45deg); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* spec tables (materials, profile comparison) */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.spec { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec th, .spec td { text-align: start; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { background: var(--navy); color: #FFFFFF; font-weight: 600; font-size: .88rem; border-bottom: 0; }
.spec tbody tr { transition: background-color .2s; }
.spec tbody tr:hover { background: var(--tint); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody th { font-weight: 700; width: 28%; }
.spec td.w { width: 26%; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.spec td.w:empty::before { content: "\2014"; color: var(--line-2); font-weight: 400; }
.spec-note { margin-block-start: 12px; font-size: .9rem; color: var(--ink-2); }
.section--navy .spec-note { color: var(--on-navy); }
.brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brands li { direction: ltr; unicode-bidi: isolate; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); font-size: .88rem; white-space: nowrap; }
.spec .note { display: block; margin-block-start: 6px; font-size: .87rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto !important; }
  .spec tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .spec tbody tr:last-child { border-bottom: 0; }
  .spec th, .spec td { padding: 0; border: 0; }
  .spec td { margin-block-start: 4px; color: var(--ink-2); }
  .spec td .brands { margin-block-start: 8px; }
  .spec td.w:not(:empty) { margin-block-start: 6px; }
  .spec td.w:not(:empty)::before { content: attr(data-label) ": "; font-weight: 400; color: var(--ink-2); }
  .spec td.w:empty { display: none; }
  .compare td::before { content: attr(data-label) ": "; color: var(--ink-3); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.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: 20px 2px; font-weight: 600; font-size: 1.04rem; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 400 1.3rem/1 var(--lat); color: var(--accent); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 2px 22px; color: var(--ink-2); max-width: 54rem; }
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 90px); align-items: start; }
.faq-split__head { display: grid; justify-items: start; gap: 14px; position: sticky; top: 120px; }
.faq-split__head p { color: var(--ink-2); }
.faq-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: 32px clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 900px) { .faq-split, .faq-page { grid-template-columns: 1fr; } .faq-split__head { position: static; } }

/* contact block (home) */
.contact-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 36px clamp(32px, 6vw, 90px); align-items: stretch; }
.contact-split h2 { margin-top: 12px; }
.contact-list { margin: 30px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; font-size: .92rem; }
.contact-list dd { margin: 0; color: var(--ink-2); min-width: 0; }
.contact-list dd a { font-weight: 600; text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list dd small { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.contact-list address { font-style: normal; }
.contact-visual { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; background: var(--navy); color: #FFFFFF; }
.contact-visual picture { position: absolute; inset: 0; z-index: -1; }
.contact-visual picture, .contact-visual img { width: 100%; height: 100%; }
.contact-visual img { object-fit: cover; opacity: .32; }
.contact-visual__body { position: absolute; inset-inline: clamp(24px, 4vw, 42px); bottom: clamp(24px, 4vw, 38px); display: grid; justify-items: start; gap: 10px; }
.contact-visual h3 { color: #FFFFFF; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.contact-visual p { color: rgba(255, 255, 255, .78); max-width: 26rem; }
.map-link { color: var(--sky); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .92rem; }
.map-link:hover { color: #FFFFFF; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } .contact-visual { min-height: 360px; } }
@media (max-width: 520px) { .contact-list > div { grid-template-columns: 1fr; } }

/* closing band (cobalt) */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #FFFFFF; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 26px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
[dir="rtl"] .closing::before { -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; padding-block: clamp(54px, 7vw, 82px); }
.closing h2 { color: #FFFFFF; font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem); }
.closing p { color: #DCE6FF; margin-top: 8px; max-width: 42rem; }
.closing .btn-row { flex: none; }
@media (max-width: 900px) { .closing .wrap { flex-direction: column; align-items: flex-start; } }

/* ---------- inner page header ----------
   With a photo (main pages and service pages): the photo fills the header behind the text under the same navy
   shade as the home hero, white text, and the photo stays still (Ahmed: like the home page, minus the slideshow).
   Without a photo (privacy, 404): a light tint header. */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(40px, 6.5vw, 92px) clamp(40px, 6vw, 80px); }
.page-head__text { display: grid; justify-items: start; gap: 14px; max-width: 46rem; }
.page-head__text .btn-row { margin-top: 10px; }
.page-head h1 { color: var(--heading); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.updated { color: var(--ink-2); font-size: .92rem; }

.page-head--photo { display: flex; align-items: center; min-height: clamp(340px, 36vw, 480px); background: var(--navy); color: #FFFFFF; border-bottom: 0; }
.page-head--photo .wrap { width: 100%; }
.page-head--photo .page-head__text { max-width: min(46rem, 60%); }
.page-head__bg { position: absolute; z-index: -1; inset: 0; }
.page-head__bg picture, .page-head__bg img { width: 100%; height: 100%; }
.page-head__bg img { object-fit: cover; }
.page-head__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 22, 52, .9) 0%, rgba(7, 22, 52, .74) 38%, rgba(7, 22, 52, .3) 72%, rgba(7, 22, 52, .14) 100%), linear-gradient(0deg, rgba(7, 22, 52, .5) 0%, rgba(7, 22, 52, 0) 35%);
}
[dir="rtl"] .page-head__bg::after {
  background: linear-gradient(270deg, rgba(7, 22, 52, .9) 0%, rgba(7, 22, 52, .74) 38%, rgba(7, 22, 52, .3) 72%, rgba(7, 22, 52, .14) 100%), linear-gradient(0deg, rgba(7, 22, 52, .5) 0%, rgba(7, 22, 52, 0) 35%);
}
.page-head--photo h1 { color: #FFFFFF; text-shadow: 0 2px 24px rgba(7, 22, 52, .45); }
.page-head--photo .lead { color: rgba(255, 255, 255, .88); }
.page-head--photo .eyebrow { color: var(--sky); }
.page-head--photo .eyebrow::before { background-image: var(--orn-slashes-light); }
.page-head--photo .crumbs ol, .page-head--photo .crumbs a { color: var(--on-navy); }
.page-head--photo .crumbs a:hover { color: #FFFFFF; }
.page-head--photo .crumbs li + li::before { color: rgba(255, 255, 255, .4); }
@media (max-width: 860px) {
  .page-head--photo { min-height: 0; }
  .page-head--photo .page-head__text { max-width: none; }
  [dir] .page-head__bg::after { background: linear-gradient(180deg, rgba(7, 22, 52, .55) 0%, rgba(7, 22, 52, .78) 50%, rgba(7, 22, 52, .9) 100%); }
}
/* same entrance motion for the text as the home hero; the photo itself stays still */
.page-head__text > * { animation: rise .8s var(--ease) both; }
.page-head__text > :nth-child(2) { animation-delay: .08s; }
.page-head__text > :nth-child(3) { animation-delay: .16s; }
.page-head__text > :nth-child(4) { animation-delay: .26s; }
.page-head__text > :nth-child(5) { animation-delay: .36s; }
/* ---------- service page ---------- */
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.system { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 26px 26px 22px; min-width: 0; transition: border-color .25s; }
.system:hover { border-color: var(--blue); }
.system__i { display: block; font: 800 1.6rem/1 var(--lat); color: #BCCDF3; margin-block-end: 14px; }
.system h3 { margin-block-end: 10px; }
.system p { color: var(--ink-2); font-size: .98rem; line-height: 1.95; }
@media (max-width: 780px) { .systems { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.h-sm { font-size: 1.25rem; margin-block-end: 16px; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-inline-start: 28px; }
.tick-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .6em; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; direction: ltr; }
.other-services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.other-services a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .2s, padding .25s var(--ease); }
.other-services a:hover { color: var(--accent); padding-inline-start: 10px; }
@media (max-width: 860px) { .other-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .other-services { grid-template-columns: 1fr; } }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: "↗"; position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(7, 22, 52, .78); color: #FFFFFF; display: grid; place-items: center; font: 700 .9rem/1 var(--lat); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* profile guide (aluminum windows page) */
/* two columns of side-by-side cards (photo + notes), one column on phones */
.part-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.part { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.part:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.part__img { display: block; overflow: hidden; background: var(--tint); min-height: 220px; position: relative; }
.part__img picture { position: absolute; inset: 0; }
.part__img picture, .part__img img { width: 100%; height: 100%; }
.part__img img { object-fit: cover; transition: transform .8s var(--ease); }
.part:hover .part__img img { transform: scale(1.05); }
.part__body { padding: 22px 24px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.part__body h3 { font-size: 1.12rem; padding-block-end: 10px; border-bottom: 2px solid var(--blue-soft); }
.part__body p { font-size: .95rem; color: var(--ink-2); line-height: 1.95; }
.part__ask { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; font-size: .9rem; color: #0F7B48; text-decoration: none; }
.part__ask svg { width: 18px; height: 18px; }
.part__ask:hover { text-decoration: underline; }
.compare-title { margin: 44px 0 16px; font-size: 1.25rem; }
@media (max-width: 1100px) { .part-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .part { grid-template-columns: 1fr; } .part__img { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- projects page ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.proj { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 110px; transition: box-shadow .35s var(--ease); }
.proj:hover { box-shadow: var(--shadow-sm); }
/* photos: the first one sits in the flow and sets the height; the others are stacked on it and cross-fade */
.proj__media { position: relative; display: grid; overflow: hidden; background: var(--tint); } /* grid: the first photo stretches when the card is taller */
.proj__img { position: absolute; inset: 0; display: block; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.proj__img:first-child { position: relative; }
.proj__img.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s ease, visibility 0s; }
.proj__img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.proj__img:hover img { transform: scale(1.05); }
/* arrows (need JavaScript) on both sides of the photo, and small dots for the position */
.proj__nav {
  position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 0;
  background: rgba(7, 22, 52, .62); color: #FFFFFF; display: none; place-items: center; cursor: pointer; transition: background-color .2s, opacity .25s;
}
.has-js .proj__nav { display: grid; }
.proj__nav:hover, .proj__nav:focus-visible { background: var(--blue); }
.proj__nav svg { width: 22px; height: 22px; }
.proj__nav--prev { inset-inline-start: 12px; }
.proj__nav--next { inset-inline-end: 12px; }
.proj__nav--prev svg { transform: rotate(90deg); }
.proj__nav--next svg { transform: rotate(-90deg); }
[dir="rtl"] .proj__nav--prev svg { transform: rotate(-90deg); }
[dir="rtl"] .proj__nav--next svg { transform: rotate(90deg); }
.proj__dots { position: absolute; z-index: 2; bottom: 12px; left: 50%; transform: translateX(-50%); display: none; gap: 6px; pointer-events: none; }
.has-js .proj__dots { display: flex; }
.proj__dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 4px rgba(7, 22, 52, .4); transition: width .3s var(--ease), background-color .3s; }
.proj__dots span.is-active { width: 20px; background: #FFFFFF; }
.proj__body { padding: 18px 22px 22px; display: grid; gap: 4px; align-content: start; }
.proj__body small { color: var(--accent); font-weight: 600; font-size: .82rem; }
.proj__body h2 { font-size: 1.2rem; }
.proj__body p { color: var(--ink-2); font-size: .92rem; }
.proj--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.proj--lead .proj__img img { aspect-ratio: 16 / 11; height: 100%; }
.proj--lead .proj__body { padding: clamp(26px, 4vw, 54px); align-content: center; gap: 10px; }
.proj--lead .proj__body small { color: var(--sky); }
.proj--lead .proj__body h2 { color: #FFFFFF; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.proj__thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.proj__thumbs button { display: block; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); background: none; cursor: pointer; transition: border-color .25s; }
.proj__thumbs button.is-current { border-color: var(--sky); }
.proj__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.proj__thumbs button:hover img { transform: scale(1.06); }
/* three columns: a card left alone in the last row stretches across it (wide card), two share it 2 + 1 */
@media (min-width: 1001px) {
  .proj-grid > .proj:last-child:nth-child(3n + 2) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .proj-grid > .proj:last-child:nth-child(3n + 2) .proj__img img { aspect-ratio: 21 / 9; height: 100%; }
  .proj-grid > .proj:last-child:nth-child(3n + 2) .proj__body { align-content: center; padding: clamp(24px, 3vw, 44px); }
  .proj-grid > .proj:last-child:nth-child(3n) { grid-column: span 2; }
  .proj-grid > .proj:last-child:nth-child(3n) .proj__img img { aspect-ratio: 16 / 7; }
}
@media (max-width: 1000px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .proj--lead { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--blue); padding: clamp(24px, 3.4vw, 40px); display: grid; justify-items: start; gap: 12px; box-shadow: var(--shadow-sm); }
.panel p { color: var(--ink-2); font-size: 1.04rem; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }
.num-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.num-card { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.section--tint .num-card { border-color: transparent; }
.num-card__i { font: 700 .8rem/1 var(--lat); color: var(--accent); letter-spacing: .06em; }
.num-card h3 { font-size: 1.08rem; }
.num-card p { color: var(--ink-2); font-size: .94rem; line-height: 1.85; }
@media (max-width: 900px) { .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .num-grid { grid-template-columns: 1fr; } }
.lic-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lic-grid > div { position: relative; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); padding: 28px 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.lic-grid > div::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 2px; background: var(--sky); }
.lic-grid dt { font-weight: 600; display: grid; gap: 2px; color: #FFFFFF; }
.lic-grid dt small { font-weight: 400; font-size: .8rem; color: var(--on-navy); }
.lic-grid dd { margin: 0; font: 800 clamp(1.05rem, .9rem + .6vw, 1.4rem)/1.3 var(--lat); color: var(--sky); overflow-wrap: anywhere; }
.lic-grid dd small { display: block; font: 500 .8rem/1.5 var(--font); color: var(--on-navy); }
@media (max-width: 900px) { .lic-grid { grid-template-columns: 1fr; } }
.certs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 36px 8px; }
.cert { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cert a.cert__img { display: block; padding: 8px; background: #FFFFFF; border: 1px solid var(--line); }
.cert a.cert__img:hover { border-color: var(--sky); }
.cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF; }
.cert h3 { font-size: 1.02rem; }
.cert p { color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
.section--navy .cert h3 { color: #FFFFFF; }
.section--navy .cert p { color: var(--on-navy); }
@media (max-width: 860px) { .certs { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 30px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h2 { font-size: 1.25rem; }
.card .muted { font-size: .93rem; }
.wa-list, .mail-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.wa-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700; }
.wa-link:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.wa-link svg { width: 22px; height: 22px; flex: none; }
.wa-link .num { font-size: 1.08rem; }
.mail-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mail-item a { font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { flex: none; font: 500 .85rem/1 var(--font); padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--blue); color: var(--accent); }
address { font-style: normal; }
.map-card { position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; background:
  linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px, var(--tint); }
.map-card .map-inner { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 16px; }
.map-card .pin { width: 34px; height: 34px; margin-inline: auto; color: var(--accent); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legal-list { margin: 0; display: grid; gap: 8px; }
.legal-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.legal-list dt { color: var(--ink-2); }
.legal-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-grid .card--address { grid-column: 1 / -1; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* social icons in circles */
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--heading); transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.social a:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.social--lg a { width: 54px; height: 54px; }
.social--lg svg { width: 22px; height: 22px; }

/* ---------- quote form ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { order: 2; } }
.form { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: clamp(20px, 3.4vw, 40px); display: grid; gap: 22px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .97rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .85rem; color: var(--ink-2); }
.field-label { font-weight: 600; font-size: .97rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 1rem/1.5 var(--font); }
textarea.input { min-height: 150px; resize: vertical; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); background: var(--surface); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input.ltr-input { direction: ltr; text-align: start; }
[dir="rtl"] .input.ltr-input { text-align: right; }
.field .error { color: var(--danger); font-size: .88rem; font-weight: 500; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .95rem; cursor: pointer; user-select: none; transition: border-color .2s, background-color .2s; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-3); flex: none; }
.chip span:hover { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); }
.chip input:checked + span::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--blue-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip-set[aria-invalid="true"] .chip span { border-color: var(--danger); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 24px 18px; text-align: center; background: var(--tint); display: grid; gap: 6px; justify-items: center; transition: border-color .15s, background-color .15s; }
.drop.is-over { border-color: var(--blue); background: var(--blue-soft); }
.drop svg { width: 30px; height: 30px; color: var(--ink-3); }
.drop .browse { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.drop .hint { max-width: 32rem; }
.file-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); font-size: .93rem; min-width: 0; }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.file-list .fsize { color: var(--ink-2); font-variant-numeric: tabular-nums; direction: ltr; }
.file-list button { background: none; border: 0; color: var(--danger); font: 500 .88rem/1 var(--font); cursor: pointer; padding: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: .35em; flex: none; accent-color: var(--blue); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.progress { height: 6px; background: var(--tint-2); border-radius: 999px; overflow: hidden; flex: 1 1 160px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.alert--error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert--info { background: var(--blue-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.success { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 14px; }
.success h2 { color: var(--ok); font-size: 1.5rem; }
.success .ref { font: 800 1.6rem/1.2 var(--lat); direction: ltr; unicode-bidi: isolate; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-aside { display: grid; gap: 20px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; }
.aside-box h2 { font-size: 1.15rem; }
.section--tint .aside-box { border-color: transparent; }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; }
.steps-mini li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 800 1.2rem/1.4 var(--lat); color: var(--accent); }
.steps-mini h3 { font-size: 1rem; }
.steps-mini p { color: var(--ink-2); font-size: .92rem; line-height: 1.7; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; display: grid; gap: 28px; }
.prose section { display: grid; gap: 10px; }
.prose h2 { font-size: 1.3rem; }
.prose p { color: var(--ink-2); }

/* ---------- footer (navy, like the header) ---------- */
.site-footer { position: relative; background: var(--navy); color: var(--on-navy); }
/* brushed-silver top edge and a silver + blue letterhead corner at the top inline-end */
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--metal); pointer-events: none; }
.site-footer::after {
  content: ""; position: absolute; top: 0; inset-inline-end: 0; width: clamp(200px, 24vw, 320px); aspect-ratio: 320 / 110;
  background: var(--orn-corner) no-repeat 0 0 / 100% 100%; transform: scaleX(-1); pointer-events: none;
}
[dir="rtl"] .site-footer::after { transform: none; }
.site-footer :focus-visible { outline-color: var(--sky); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 36px 44px; padding-block: clamp(48px, 6vw, 76px) 40px; }
.site-footer h2 { font: 700 .95rem/1.4 var(--font); color: #FFFFFF; margin-block-end: 16px; letter-spacing: 0; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer .muted { color: var(--on-navy); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a { background: transparent; border-color: rgba(255, 255, 255, .3); color: #FFFFFF; }
.site-footer .social a:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; text-decoration: none; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand .foot-logo { justify-self: start; position: relative; isolation: isolate; display: inline-flex; align-items: center; padding-block: 12px; padding-inline: 18px 60px; }
.foot-brand .foot-logo::before { inset-inline-start: 0; }
.foot-brand .foot-logo img { height: 56px; width: auto; }
.foot-brand p { font-size: .95rem; max-width: 26rem; }
.foot-follow h2 { margin-block-end: 12px; }
.site-footer .num { color: #FFFFFF; }
.site-footer dl { margin: 0; display: grid; gap: 12px; font-size: .92rem; }
.site-footer dd { margin: 2px 0 0; color: #FFFFFF; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 100px; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 980px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 60; inset-inline-end: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: end; gap: 10px; }
[dir="rtl"] .wa-float { justify-items: start; }
.wa-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); border: 0; font: 700 1rem/1 var(--font); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease); }
.wa-fab:hover { transform: scale(1.05); }
.wa-fab svg { width: 24px; height: 24px; }
.wa-sheet { width: min(320px, calc(100vw - 36px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.wa-sheet header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wa-sheet h2 { font: 700 1rem/1.3 var(--font); letter-spacing: 0; }
.wa-sheet .x { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px; border-radius: var(--radius); }
.wa-sheet .x svg { width: 18px; height: 18px; }
.wa-sheet p { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .wa-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-fab svg { width: 28px; height: 28px; }
}

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); max-height: 92vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 9, 22, .88); }
.lightbox figure { margin: 0; display: grid; gap: 10px; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; margin-inline: auto; background: #FFFFFF; }
.lightbox figcaption { color: #FFFFFF; text-align: center; font-size: .95rem; }
.lightbox .lb-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.lightbox .lb-close svg { width: 18px; height: 18px; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 10px; }
.lightbox .lb-nav button { min-height: 40px; padding: 6px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #FFFFFF; font: 500 .9rem/1 var(--font); cursor: pointer; }
.lightbox .lb-nav button:hover { border-color: #FFFFFF; }

/* ---------- 404 ---------- */
.nf { display: grid; justify-items: start; gap: 18px; max-width: 40rem; }
.nf ul { list-style: none; padding: 0; display: grid; gap: 8px; }

/* ---------- reveal on scroll (site.js marks only blocks below the fold) ---------- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .marquee__track { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .hero__dots { display: none; }
}

/* ---------- theme toggle (header) ---------- */
.theme-toggle {
  display: none; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #FFFFFF; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.has-theme .theme-toggle { display: inline-grid; } /* needs JavaScript (theme.js marks <html>) */
.theme-toggle:hover { background: rgba(255, 255, 255, .1); border-color: #FFFFFF; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (max-width: 1120px) { .theme-toggle { margin-inline-start: auto; } .has-theme .menu-toggle { margin-inline-start: 0; } }
/* phones: logo plate, dark-mode button and menu button must fit side by side */
@media (max-width: 480px) {
  .header-bar { gap: 10px; }
  .brand { padding-inline-end: 44px; }
}
@media (max-width: 400px) {
  .brand img { height: 38px; }
  .menu-toggle { padding: 8px 11px; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- dark mode (Ahmed, 13 Oct 2026) ----------
   White backgrounds turn navy and every silver or white touch (letterhead ornaments, metal lines, the "Q", the
   logo plate, light buttons) turns a shade of navy; the top bar keeps its normal navy look. The logo gets a faint
   light edge so its navy lettering still reads on the navy plate. Screen only; printing stays light. */
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #071634;
    --tint: #0B1C40;
    --tint-2: #10244D;
    --surface: #0E2149;
    --field: #0A1A3B;
    --ink: #EEF2F8;
    --ink-2: #C2CDE0;
    --ink-3: #95A3BD;
    --line: #1F3461;
    --line-2: #2E4777;
    --navy: #030A1A;     /* bands and footer sit a shade darker than the navy page */
    --navy-2: #1E4CC2;
    --blue: #2F5FE0;
    --blue-hi: #3F6EEA;
    --blue-soft: #14295A;
    --accent: #8AACF8;
    --heading: #FFFFFF;
    --focus: #8AACF8;
    --danger: #F28B82;
    --danger-soft: #3B1518;
    --ok: #6FD39C;
    --ok-soft: #0E3322;
    --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, .6);
    --shadow: 0 28px 60px -32px rgba(0, 0, 0, .75);
    --q-opacity: .6;
    --metal: linear-gradient(90deg, #13295A, #3A5DAE 20%, #1C3A7A 46%, #3A5DAE 72%, #13295A);
    --orn-slashes: var(--orn-slashes-navy);
    --orn-slashes-light: var(--orn-slashes-navy);
    --orn-slashes-navy: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'><path d='M0 10l4-10h6L6 10z' fill='%232F5FE0'/><path d='M9 10l4-10h6l-4 10z' fill='%2327499A'/><path d='M18 10l4-10h6l-4 10z' fill='%233A5DAE'/></svg>");
    --orn-bands: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 100' preserveAspectRatio='none'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%231C3A7A'/><stop offset='.4' stop-color='%233A5DAE'/><stop offset='1' stop-color='%2322427F'/></linearGradient></defs><path d='M12 0h9l48 100h-9z' fill='url(%23m)'/><path d='M3 0h4l48 100h-4z' fill='%232F6BEA'/></svg>");
    --orn-corner: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 110'><defs><linearGradient id='b' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%232F6BEA'/><stop offset='1' stop-color='%23102F80'/></linearGradient><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%231C3A7A'/><stop offset='.4' stop-color='%233A5DAE'/><stop offset='1' stop-color='%2322427F'/></linearGradient></defs><path d='M0 0h150L40 110H0z' fill='url(%23b)'/><path d='M150 0h22L62 110H40z' fill='url(%23m)'/><path d='M182 0h6L78 110h-6z' fill='%232F5FE0'/><path d='M210 28l8-14h10l-8 14zM226 28l8-14h10l-8 14z' fill='%232F5FE0'/><path d='M242 28l8-14h10l-8 14z' fill='%233A5DAE'/></svg>");
    --orn-rail: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 300'><defs><linearGradient id='l' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%233A5DAE' stop-opacity='0'/><stop offset='.5' stop-color='%233A5DAE'/><stop offset='1' stop-color='%233A5DAE' stop-opacity='0'/></linearGradient></defs><rect x='12' width='1.5' height='300' fill='url(%23l)'/><path d='M0 112l8-8v22l-8 8zM0 140l8-8v22l-8 8z' fill='%233A5DAE'/><path d='M0 168l8-8v22l-8 8zM0 196l8-8v22l-8 8z' fill='%232F5FE0'/></svg>");
  }
  html[data-theme="dark"] ::selection { color: #FFFFFF; }

  /* logo plates (header and footer): navy shades instead of white and silver, lighter toward the slanted edge */
  html[data-theme="dark"] .brand::before, html[data-theme="dark"] .foot-logo::before {
    background: #10285A linear-gradient(105deg, rgba(16, 40, 90, 0) 0%, #1C3A78 70%, #284B92 100%) no-repeat right center / 240px 100%;
  }
  html[dir="rtl"][data-theme="dark"] .brand::before, html[dir="rtl"][data-theme="dark"] .foot-logo::before {
    background: #10285A linear-gradient(255deg, rgba(16, 40, 90, 0) 0%, #1C3A78 70%, #284B92 100%) no-repeat left center / 240px 100%;
  }
  html[data-theme="dark"] .brand img, html[data-theme="dark"] .foot-logo img {
    filter: drop-shadow(0 0 .6px #DCE5F5) drop-shadow(0 0 .6px #DCE5F5) drop-shadow(0 0 6px rgba(138, 172, 248, .25));
  }
  /* the big "Q" in navy shades */
  html[data-theme="dark"] .has-q::after { background-image: url("../brand/q-navy.png"); }
  /* light buttons and white details become navy shades */
  html[data-theme="dark"] .btn--light { background: #1C3A7A; color: #FFFFFF; }
  html[data-theme="dark"] .btn--light:hover { background: #27499A; }
  html[data-theme="dark"] .work:hover .work__go { background: #27499A; border-color: #27499A; color: #FFFFFF; }
  html[data-theme="dark"] .hero__dots span { background: rgba(58, 93, 174, .55); }
  html[data-theme="dark"] .hero__dots span::after { background: #8AACF8; }
  html[data-theme="dark"] .proj__dots span { background: rgba(138, 172, 248, .45); }
  html[data-theme="dark"] .proj__dots span.is-active { background: #8AACF8; }
}@media print {
  .wa-float, .site-header, .site-footer, .closing, .progress-line, .manifesto__bg, .has-q::after, .hero::after, .facts-band::after { display: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
