/* =========================================================
   QWAA Al Tahakum — main stylesheet
   Logical properties throughout: RTL (ar) is the default,
   LTR (en) mirrors automatically. Direction-sensitive
   transforms read --dir (rtl: -1, ltr: 1).
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ink: #0F2B36;          /* primary ground */
  --ink-2: #17384A;
  --ink-3: #1E4254;
  --ink-deep: #0A2029;     /* footer */
  --teal: #2E7A8F;         /* logo, links */
  --teal-600: #256A7D;
  --signal: #7FC4D1;       /* on dark only */
  --sand: #C8A464;         /* primary action, highlight numbers — use sparingly */
  --sand-300: #D6B677;
  --mist: #EEF4F6;         /* secondary backgrounds */
  --slate: #4A6470;
  --line: #D5E2E7;
  --haze: #A9C1CA;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--white);
  --text: var(--ink);
  --text-muted: var(--slate);
  --link: var(--teal);
  --on-dark: var(--white);
  --on-dark-muted: var(--haze);
  --line-dark: #23495C;

  /* Type */
  --f-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --header-h: 84px;
  --topbar-h: 42px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .2s;
  --t: .45s;
  --t-slow: .8s;

  --shadow-lift: 0 24px 48px -28px rgba(15, 43, 54, .45);
  --dir: -1;
}
[dir="ltr"] { --dir: 1; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[lang="en"] body { line-height: 1.65; }
html.i18n-pending body { visibility: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.25; font-weight: 600; text-wrap: balance; }
[lang="en"] h1, [lang="en"] h2 { letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .is-dark :focus-visible { outline-color: var(--signal); }
::selection { background: var(--signal); color: var(--ink); }

.num, .ltr { font-family: var(--f-head); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }
.sr-only { 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: 16px; top: -60px; z-index: 200;
  background: var(--sand); color: var(--ink); padding: 12px 18px; border-radius: 10px;
  font-family: var(--f-head); font-weight: 600; text-decoration: none; transition: top var(--t-fast);
}
.skip:focus { top: 12px; }

/* Icons */
.i { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--md { width: 20px; height: 20px; }
.i--lg { width: 34px; height: 34px; }
.i--xl { width: 44px; height: 44px; }
/* "Forward" arrows are drawn pointing left (RTL); mirror for LTR */
[dir="ltr"] .i--fwd, [dir="ltr"] .i--back-flip { transform: scaleX(-1); }
[dir="rtl"] .i--back { transform: scaleX(-1); }
.i--flip-v { transform: scaleY(-1); }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  color: var(--teal);
}
[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--sand); flex-shrink: 0; }
.is-dark .eyebrow, .section--ink .eyebrow, .on-dark .eyebrow { color: var(--signal); }

.h2 { font-size: var(--fs-h2); font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.85; color: var(--text-muted); }
.section--ink .lead, .on-dark .lead { color: var(--on-dark-muted); }
.section--ink .h2 { color: var(--white); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-block-end: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.sec-head__main { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.sec-head .lead { max-width: 480px; }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--white); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-family: var(--f-head); font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i { transition: transform var(--t) var(--ease-out); }
[dir="rtl"] .btn:hover .i--fwd { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .i--fwd { transform: translateX(4px) scaleX(-1); }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.btn--sand:hover { --btn-bg: var(--sand-300); box-shadow: 0 10px 30px -12px rgba(200, 164, 100, .6); }
.btn--teal:hover { --btn-bg: var(--teal-600); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--ink:hover { --btn-bg: var(--ink-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(127, 196, 209, .55); }
.btn--ghost:hover { --btn-bg: rgba(127, 196, 209, .12); --btn-bd: var(--signal); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--line:hover { --btn-bd: var(--teal); --btn-fg: var(--teal); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--f-head); font-weight: 500; color: var(--teal); text-decoration: none;
}
.link-arrow .i { transition: transform var(--t) var(--ease-out); }
[dir="rtl"] .link-arrow:hover .i--fwd { transform: translateX(-5px); }
[dir="ltr"] .link-arrow:hover .i--fwd { transform: translateX(5px) scaleX(-1); }
.on-dark .link-arrow, .section--ink .link-arrow { color: var(--signal); }
.on-dark .link-arrow:hover, .section--ink .link-arrow:hover { color: var(--white); }

/* ---------- 5. Rings motif ---------- */
.rings { position: absolute; bottom: 0; inset-inline-end: 0; pointer-events: none; color: var(--teal); width: min(900px, 90vw); height: auto; }
[dir="ltr"] .rings { transform: scaleX(-1); }
.rings circle { fill: none; stroke: currentColor; }
.rings .rings__dot { fill: var(--sand); stroke: none; }
html.js .rings--draw circle:not(.rings__dot) { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: ringDraw 2.4s var(--ease-out) forwards; }
html.js .rings--draw circle:nth-child(2) { animation-delay: .12s; }
html.js .rings--draw circle:nth-child(3) { animation-delay: .24s; }
html.js .rings--draw circle:nth-child(4) { animation-delay: .36s; }
html.js .rings--draw .rings__dot { opacity: 0; animation: fadeIn .6s 1.4s forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- 6. Top bar & header ---------- */
.topbar { background: var(--ink-2); color: #DCE8EC; font-size: .82rem; position: relative; z-index: 60; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: var(--topbar-h); gap: 16px; }
.topbar__contacts { display: flex; gap: 22px; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-height: 42px; white-space: nowrap; }
.topbar a:hover { color: var(--signal); }
.topbar .i { color: var(--signal); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; min-width: 44px; padding: 0 6px;
  background: none; border: 0; color: var(--signal); font-family: var(--f-head); font-size: .85rem; font-weight: 500;
}
.lang-btn:hover { color: var(--white); }
.lang-btn [data-i18n] { font-family: var(--f-head); }

.site-header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
}
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(15, 43, 54, .35); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand .logo-mark { width: 56px; height: auto; color: var(--teal); transition: color var(--t); }
.brand__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.brand__latin { font-size: .68rem; letter-spacing: .06em; color: var(--slate); white-space: nowrap; transition: color var(--t); }
[lang="en"] .brand__latin { font-family: var(--f-body); letter-spacing: 0; font-size: .74rem; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--f-head); font-size: .93rem; font-weight: 400; color: inherit; text-decoration: none; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sand);
  transform: scaleX(0); transition: transform var(--t) var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--teal); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { min-height: 48px; padding: 0 20px; font-size: .95rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: inherit; align-items: center; justify-content: center;
}

/* Home: header floats over the hero, becomes solid once scrolled */
.page-home .topbar { position: absolute; top: 0; inset-inline: 0; background: rgba(10, 32, 41, .42); border-bottom: 1px solid rgba(255, 255, 255, .08); }
@supports (backdrop-filter: blur(10px)) { .page-home .topbar { backdrop-filter: blur(8px); } }
.page-home .site-header:not(.is-fixed) { position: absolute; top: var(--topbar-h); inset-inline: 0; background: transparent; backdrop-filter: none; color: var(--white); border-bottom-color: rgba(255, 255, 255, .14); }
.page-home .site-header:not(.is-fixed) .logo-mark { color: var(--white); }
.page-home .site-header:not(.is-fixed) .brand__latin { color: var(--haze); }
.page-home .site-header:not(.is-fixed) .primary-nav a[aria-current="page"] { color: var(--white); }
.page-home .site-header:not(.is-fixed) .menu-toggle { border-color: rgba(255, 255, 255, .3); }
.page-home .site-header:not(.is-fixed) .header-cta { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.page-home .site-header.is-fixed { position: fixed; top: 0; inset-inline: 0; animation: headerIn .5s var(--ease-out); }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: none; } }

/* Drawer (below 1300px) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 32, 41, .55); opacity: 0; transition: opacity var(--t); }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100; width: min(420px, 100%);
  background: var(--ink); color: var(--white); display: flex; flex-direction: column; overflow-y: auto;
  transition: transform var(--t) var(--ease-out);
  overscroll-behavior: contain;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
[dir="ltr"] .drawer { transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line-dark); }
.drawer__top .logo-mark { width: 52px; color: var(--white); }
.drawer__close { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-dark); background: none; color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.drawer nav ul { list-style: none; padding: 12px 24px; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-bottom: 1px solid var(--line-dark); color: var(--white); text-decoration: none;
  font-family: var(--f-head); font-size: 1.15rem;
}
.drawer nav a[aria-current="page"] { color: var(--sand); }
.drawer nav a .i { color: var(--signal); opacity: .7; }
.drawer__foot { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.drawer__foot a:not(.btn) { color: var(--haze); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.drawer__foot .lang-btn { align-self: flex-start; }
body.drawer-open { overflow: hidden; }

/* ---------- 7. Inner page head ---------- */
.page-head { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(4rem, 2.5rem + 5vw, 7rem); }
.page-head .rings { width: min(760px, 85vw); }
.page-head__in { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 880px; }
.page-head h1 { font-size: var(--fs-h1); font-weight: 600; color: var(--white); }
.page-head .lead { color: var(--haze); max-width: 680px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--haze); }
.crumb li { display: inline-flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: var(--line-dark); }
.crumb a { color: var(--haze); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumb a:hover { color: var(--signal); }
.crumb [aria-current] { color: var(--signal); }

/* ---------- 8. Reveal on scroll ---------- */
/* Short travel + a fade that leads the movement: content settles in rather than jumps */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(.98); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Phones: one column, so no stagger delays (they read as lag) and an even smaller, quicker lift */
@media (max-width: 700px) {
  html.js [data-reveal], html.js [data-reveal="scale"] { transform: translateY(8px); transition-duration: .5s, .6s; transition-delay: 0s; }
  html.js [data-reveal="fade"] { transform: none; }
  html.js [data-reveal].is-in { transform: none; }
}

/* ---------- 9. Home: hero ---------- */
.hero { position: relative; min-height: 860px; height: 100svh; max-height: 980px; color: var(--white); background: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 28s var(--ease-out) both; }
}
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 43, 54, .97) 0%, rgba(15, 43, 54, .82) 26%, rgba(15, 43, 54, .35) 58%, rgba(15, 43, 54, .55) 100%),
    linear-gradient(to left, rgba(15, 43, 54, .78), rgba(15, 43, 54, .2) 55%, rgba(15, 43, 54, 0) 75%);
}
[dir="ltr"] .hero__shade { background: linear-gradient(to top, rgba(15, 43, 54, .97) 0%, rgba(15, 43, 54, .82) 26%, rgba(15, 43, 54, .35) 58%, rgba(15, 43, 54, .55) 100%), linear-gradient(to right, rgba(15, 43, 54, .78), rgba(15, 43, 54, .2) 55%, rgba(15, 43, 54, 0) 75%); }
.hero .rings { width: min(780px, 80vw); opacity: .55; }
.hero__body { position: relative; flex: 1; display: flex; align-items: flex-end; padding-top: calc(var(--topbar-h) + var(--header-h) + 40px); padding-bottom: 56px; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: 820px; }
.hero h1 { font-size: var(--fs-display); font-weight: 600; line-height: 1.12; color: var(--white); }
[lang="ar"] .hero h1 { line-height: 1.28; }
.hero .lead { color: #D3E2E7; max-width: 580px; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.hero .eyebrow { color: var(--signal); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__line { display: block; overflow: hidden; }
html.js .hero [data-hero] { opacity: 0; transform: translateY(24px); animation: heroIn 1s var(--ease-out) forwards; animation-delay: var(--d, .1s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.stats-bar { position: relative; background: rgba(15, 43, 54, .5); border-top: 1px solid rgba(255, 255, 255, .14); }
@supports (backdrop-filter: blur(10px)) { .stats-bar { background: rgba(23, 56, 74, .38); backdrop-filter: blur(18px) saturate(1.3); } }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 28px; border-inline-start: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 2px; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num { font-family: var(--f-head); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 500; line-height: 1.1; color: var(--white); direction: ltr; unicode-bidi: isolate; text-align: start; font-feature-settings: "tnum"; }
.stat__num--sand { color: var(--sand); }
.stat__label { font-size: .9rem; color: var(--haze); }

/* ---------- 10. Home: statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 32px 64px; align-items: start; }
.statement__aside { display: flex; flex-direction: column; gap: 20px; padding-top: 14px; }
.statement__text { font-family: var(--f-head); font-size: clamp(1.7rem, 1rem + 2.6vw, 3.15rem); font-weight: 400; line-height: 1.55; color: var(--ink); }
[lang="en"] .statement__text { line-height: 1.32; letter-spacing: -.01em; }
.statement__text em { font-style: normal; color: var(--teal); }
html.js .statement__text .w { color: #B9CCD3; transition: color .35s linear; }
html.js .statement__text .w.on { color: var(--ink); }
html.js .statement__text em .w.on { color: var(--teal); }

/* ---------- 11. Home: division panels ---------- */
.panels { display: flex; gap: 14px; height: 600px; }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius-lg); overflow: hidden;
  color: var(--white); text-decoration: none; isolation: isolate; background: var(--ink);
  transition: flex-grow var(--t-slow) var(--ease-out);
}
.panel:hover { color: var(--white); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 43, 54, .96) 0%, rgba(15, 43, 54, .55) 45%, rgba(15, 43, 54, .15) 100%); transition: background var(--t); }
.panel__num { position: absolute; top: 26px; inset-inline-start: 28px; font-family: var(--f-head); font-size: .9rem; color: var(--sand); direction: ltr; }
.panel__icon { position: absolute; top: 22px; inset-inline-end: 24px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; color: var(--signal); background: rgba(15, 43, 54, .35); }
.panel__body { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 28px; display: flex; flex-direction: column; gap: 0; }
.panel h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); font-weight: 600; color: var(--white); }
.panel__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t-slow) var(--ease-out), opacity var(--t) var(--ease-out); }
.panel__more > div { overflow: hidden; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.panel__more p { color: #D3E2E7; max-width: 440px; padding-top: 14px; }
.panel__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-head); font-weight: 500; color: var(--sand); }
.panel:hover img, .panel:focus-visible img { transform: scale(1.06); }
.panel.is-open { flex-grow: 2.6; }
.panel.is-open .panel__more { grid-template-rows: 1fr; opacity: 1; transition-delay: .12s; }
.panel:focus-visible { outline-offset: 4px; }

/* ---------- 12. Home: technology partners (compact scan wall, see 23) ---------- */
.brands { padding-block: 64px; border-bottom: 1px solid var(--line); }
.brands__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.brands__title { font-family: var(--f-head); font-size: 1.15rem; font-weight: 500; }
.brands .logo-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.brands .logo-card { height: 96px; padding: 16px 18px; }
.brands .logo-card img { max-height: 44px; }
.brands .logo-card--square img { max-height: 58px; }

/* ---------- 13. Home: project rail ---------- */
.rail-section { padding-block: var(--section); }
.rail-section .rings { opacity: .6; }
.rail-head { position: relative; }
.rail-controls { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid rgba(127, 196, 209, .45); background: transparent; color: var(--white);
  transition: background-color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.icon-btn:hover:not(:disabled) { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(540px, 84vw); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding-inline: var(--rail-pad); padding-block: 4px 28px; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 6px; }
.rail > li { scroll-snap-align: start; }
.rail-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 600px;
  border-radius: var(--radius-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; background: var(--ink-2);
}
.rail-card:hover { color: var(--white); }
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.rail-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 32, 41, .95) 0%, rgba(10, 32, 41, .45) 50%, rgba(10, 32, 41, .05) 80%); }
.rail-card:hover img { transform: scale(1.07); }
.rail-card__top { position: absolute; top: 24px; inset-inline: 24px; display: flex; justify-content: space-between; align-items: center; }
/* End client, stacked under the category chip on the photo */
.rail-card__top:has(.rail-card__client) { flex-direction: column; align-items: flex-start; gap: 8px; }
.rail-card__client {
  display: inline-flex; align-items: flex-start; gap: 6px; max-width: 100%;
  padding: 5px 12px; border-radius: 12px; background: rgba(15, 43, 54, .62);
  font-family: var(--f-head); font-size: .8rem; font-weight: 500; line-height: 1.45; color: var(--white);
}
@supports (backdrop-filter: blur(6px)) { .rail-card__client { backdrop-filter: blur(8px); } }
.rail-card__client .i { color: var(--signal); margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-family: var(--f-head); font-size: .8rem; font-weight: 500; background: rgba(255, 255, 255, .14); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); }
@supports (backdrop-filter: blur(6px)) { .chip { backdrop-filter: blur(8px); } }
.chip--light { background: var(--mist); color: var(--ink); border-color: var(--line); }
.rail-card__body { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.rail-card h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; line-height: 1.3; color: var(--white); }
.meta-line { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--haze); }
.rail-card__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 500; color: var(--sand); }
.rail-card--more { background: var(--teal); justify-content: space-between; padding: 34px; }
.rail-card--more::before { display: none; }
.rail-card--more .rings { width: 120%; opacity: .5; color: var(--ink); }
.rail-card--more h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); position: relative; }
.rail-card--more p { color: #E2F0F3; max-width: 340px; position: relative; }
.rail-card__circle { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; transition: transform var(--t) var(--ease-out); }
.rail-card--more:hover .rail-card__circle { transform: scale(1.08) rotate(calc(-8deg * var(--dir))); }

/* ---------- 14. Home: why (sticky) ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 88px; align-items: start; }
.why__aside { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 20px; }
.why__aside .lead { max-width: 460px; }
.why__img { margin-top: 12px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.1; position: relative; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(15, 43, 54, .5), transparent); }
.why__list { list-style: none; counter-reset: why; padding-top: 8px; }
.why__item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 28px; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item::before {
  content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 2px; width: 100%; background: var(--teal);
  transform: scaleX(0); transform-origin: var(--origin, right); transition: transform 1s var(--ease-out);
}
[dir="ltr"] .why__item::before { --origin: left; }
.why__item.is-active::before { transform: scaleX(1); }
.why__num { grid-row: span 2; font-family: var(--f-head); font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); font-weight: 300; line-height: 1; color: var(--line); transition: color var(--t); direction: ltr; min-width: 2.2ch; }
.why__item.is-active .why__num { color: var(--sand); }
.why__item h3 { font-size: var(--fs-h3); font-weight: 600; padding-top: 4px; }
.why__item p { color: var(--slate); max-width: 520px; padding-top: 10px; }

/* ---------- 15. Home: final CTA (Riyadh night) ---------- */
.final { position: relative; min-height: 620px; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink-deep); isolation: isolate; }
.final__bg { position: absolute; inset: 0; z-index: -2; }
[dir="rtl"] .final__bg { transform: scaleX(-1); }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .final__bg img { transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
  .final.is-in .final__bg img { transform: scale(1); }
}
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(10, 32, 41, .2), rgba(10, 32, 41, .1) 40%, rgba(10, 32, 41, .75)); }
.final .rings { opacity: .4; z-index: -1; }
.final__in { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-block: 120px; max-width: 760px; }
.final h2 { font-size: var(--fs-h1); font-weight: 600; color: var(--white); }
.final p { color: #D3E2E7; font-size: var(--fs-lead); max-width: 560px; }
.final__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 16. CTA band (inner pages) ---------- */
.cta-band { background: var(--mist); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.cta-band__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); padding: clamp(2rem, 1.5rem + 2.5vw, 3.6rem) clamp(1.5rem, 1rem + 3vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px 48px; align-items: center; }
.cta-band__card .rings { width: 440px; opacity: .9; z-index: -1; }
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); font-weight: 600; color: var(--white); }
.cta-band p { color: var(--haze); max-width: 600px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band__phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: var(--white); text-decoration: none; font-size: 1.05rem; }
.cta-band__phone .i { color: var(--signal); }
.cta-band__phone:hover { color: var(--signal); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--haze); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-brand .logo-mark { width: 84px; color: var(--white); }
.footer-brand p { max-width: 340px; font-size: .95rem; line-height: 1.9; }
.footer-brand__name { font-family: var(--f-head); color: var(--white); font-weight: 500; font-size: 1.02rem; line-height: 1.5; }
.footer-brand__name span { display: block; }
.footer-brand__name span + span { font-size: .74rem; color: var(--haze); font-weight: 400; letter-spacing: .05em; }
.footer-tagline { font-family: var(--f-head); color: var(--signal); font-size: .95rem; }
.footer-col h2 { font-size: 1rem; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #CFDDE2; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--signal); }
.footer-col address { font-style: normal; font-size: .92rem; line-height: 1.8; padding-top: 6px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid #1E3E4D; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 18px; font-size: .84rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--haze); text-decoration: none; }
.to-top:hover { color: var(--signal); }

/* ---------- 18. About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.story__text { display: flex; flex-direction: column; gap: 20px; }
.story__text p { color: var(--slate); font-size: 1.05rem; }
.story__fig { position: relative; margin: 0; padding-block-end: 40px; padding-inline-start: 40px; }
.story__fig::before { content: ""; position: absolute; inset: 40px 40px 0 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
[dir="ltr"] .story__fig::before { inset: 40px 0 0 40px; }
.story__fig img { position: relative; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); }
.story__badge { position: absolute; bottom: 0; inset-inline-start: 0; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-lift); }
.story__badge strong { font-family: var(--f-head); font-size: 2.6rem; font-weight: 500; color: var(--sand); line-height: 1.1; }
.story__badge span { font-size: .88rem; color: var(--haze); }

.vm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; position: relative; }
.vm__item { padding-block: 12px; display: flex; flex-direction: column; gap: 18px; }
.vm__item + .vm__item { border-inline-start: 1px solid var(--line-dark); padding-inline-start: clamp(2rem, 1rem + 4vw, 5rem); }
.vm__item:first-child { padding-inline-end: clamp(2rem, 1rem + 4vw, 5rem); }
.vm__label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); color: var(--signal); font-size: 1rem; }
.vm__label .i { color: var(--sand); }
.vm__item p { font-family: var(--f-head); font-weight: 300; color: var(--white); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.65; }
.vm__item:first-child p { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.2rem); }

.values { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px 80px; align-items: start; }
.values__head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 14px; }
.values__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.value { padding-block: 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.value:nth-child(even) { transform: translateY(56px); }
.value__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--teal); display: grid; place-items: center; transition: background-color var(--t), color var(--t); }
.value:hover .value__icon { background: var(--teal); color: var(--white); }
.value h3 { font-size: 1.2rem; font-weight: 600; padding-top: 4px; }
.value p { color: var(--slate); }

/* Org chart */
.org { display: flex; flex-direction: column; align-items: center; }
.org__chain { list-style: none; display: flex; flex-direction: column; align-items: center; }
.org__node { position: relative; min-width: 240px; min-height: 52px; padding: 12px 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-align: center; font-family: var(--f-head); font-weight: 500; display: grid; place-items: center; box-shadow: 0 12px 30px -24px rgba(15, 43, 54, .5); }
.org__node--top { background: var(--ink); color: var(--white); border-color: var(--ink); }
.org__node--ops { background: var(--teal); color: var(--white); border-color: var(--teal); }
.org__chain > li + li { margin-top: 30px; }
.org__chain > li + li::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1.5px; height: 30px; background: var(--haze); }
.org__depts { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 60px; }
.org__depts::before { content: ""; position: absolute; top: -30px; inset-inline: calc(100% / 12); height: 1.5px; background: var(--haze); }
.org__depts::after { content: ""; position: absolute; top: -60px; left: 50%; width: 1.5px; height: 30px; background: var(--haze); }
.org__dept { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.org__dept::before { content: ""; position: absolute; top: -31px; left: 50%; width: 1.5px; height: 30px; background: var(--haze); }
.org__dept { overflow: visible; }
.org__dept h3 { font-size: .98rem; font-weight: 600; padding: 14px 14px; text-align: center; border-bottom: 1px solid var(--line); background: var(--mist); border-radius: 16px 16px 0 0; min-height: 64px; display: grid; place-items: center; }
.org__dept ul { list-style: none; padding: 10px 14px 14px; }
.org__dept li { font-size: .86rem; color: var(--slate); padding-block: 6px; text-align: center; }
.org__dept li + li { border-top: 1px dashed var(--line); }

/* Licences */
.licenses { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 40px 80px; align-items: start; }
.licenses__head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: sticky; top: calc(var(--header-h) + 32px); }
.licenses__head p { color: var(--slate); }
.lic-list { list-style: none; counter-reset: lic; }
.lic { counter-increment: lic; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-block: 24px; border-top: 1px solid var(--line); transition: background-color var(--t); }
.lic:last-child { border-bottom: 1px solid var(--line); }
.lic::before { content: counter(lic, decimal-leading-zero); font-family: var(--f-head); font-size: .85rem; color: var(--haze); direction: ltr; min-width: 2ch; }
.lic__icon { width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); transition: border-color var(--t), background-color var(--t); }
.lic:hover .lic__icon { border-color: var(--teal); background: var(--mist); }
.lic h3, .lic h4 { font-size: 1.12rem; font-weight: 600; }
.lic p { color: var(--slate); font-size: .95rem; }
.lic__check { color: var(--sand); }

/* ---------- 19. Services ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-index__label { font-family: var(--f-head); font-size: .85rem; color: var(--slate); margin-bottom: 12px; }
.svc-index ol { list-style: none; border-inline-start: 1.5px solid var(--line); }
.svc-index a { position: relative; display: flex; gap: 12px; align-items: center; min-height: 48px; padding-inline-start: 18px; color: var(--slate); text-decoration: none; font-family: var(--f-head); font-size: .93rem; line-height: 1.45; transition: color var(--t-fast); }
.svc-index__n { font-size: .78rem; color: var(--haze); direction: ltr; flex-shrink: 0; }
.svc-index a::before { content: ""; position: absolute; inset-inline-start: -1.5px; top: 8px; bottom: 8px; width: 2.5px; background: var(--teal); transform: scaleY(0); transition: transform var(--t) var(--ease-out); }
.svc-index a:hover { color: var(--ink); }
.svc-index a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.svc-index a[aria-current="true"]::before { transform: scaleY(1); }

.svc { padding-block: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc__head { display: flex; flex-direction: column; gap: 18px; }
.svc__num { font-family: var(--f-head); font-size: 4.2rem; line-height: .9; font-weight: 600; color: transparent; -webkit-text-stroke: 1.2px var(--haze); direction: ltr; text-align: start; }
.svc h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 600; }
.svc__head p { color: var(--slate); font-size: 1.05rem; }
.svc__visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); color: var(--signal); display: grid; place-items: center; isolation: isolate; }
.svc__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc:hover .svc__visual img { transform: scale(1.05); }
.svc__visual .rings { width: 140%; color: var(--teal); opacity: .8; z-index: -1; }
.svc__visual .i { width: 76px; height: 76px; stroke-width: 1.1; }
.svc__deliver { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; background: var(--mist); border-radius: var(--radius); padding: 28px 32px; }
.svc__deliver h3 { grid-column: 1 / -1; font-size: .95rem; font-weight: 500; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.bul { list-style: none; display: contents; }
.bul li { position: relative; padding-inline-start: 22px; color: var(--ink); font-size: .98rem; line-height: 1.75; }
.bul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--sand); }

.method { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.method::before { content: ""; position: absolute; top: 33px; inset-inline: 33px; height: 1.5px; background: var(--line-dark); }
.method::after { content: ""; position: absolute; top: 33px; inset-inline: 33px; height: 2px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform 2.2s var(--ease-in-out) .2s; }
[dir="ltr"] .method::after { transform-origin: left; }
.method.is-in::after { transform: scaleX(1); }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step__dot { width: 66px; height: 66px; border-radius: 50%; background: var(--ink-2); border: 1.5px solid var(--line-dark); color: var(--signal); display: grid; place-items: center; position: relative; z-index: 1; transition: background-color .5s, color .5s, border-color .5s; transition-delay: calc(var(--i) * .4s + .2s); }
.method.is-in .step__dot { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.step__n { font-family: var(--f-head); font-size: .82rem; color: var(--haze); direction: ltr; text-align: start; margin-top: 8px; }
.step h3 { font-size: 1.15rem; font-weight: 600; color: var(--white); }
.step p { color: var(--haze); font-size: .94rem; }

/* ---------- 20. Projects list ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-family: var(--f-head); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 10px;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-btn__count { font-size: .78rem; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--mist); color: var(--ink); }
.filter-btn[aria-pressed="true"] .filter-btn__count { background: var(--sand); }
.filter-status { color: var(--slate); font-size: .92rem; }

/* Filter bar docks under the header while the list scrolls (≥701px) */
@media (min-width: 701px) {
  .filter-bar {
    position: sticky; top: var(--header-h); z-index: 20;
    margin-inline: -14px; padding: 10px 14px; border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
  }
  .filter-bar.is-stuck { background: rgba(255, 255, 255, .92); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(15, 43, 54, .35); }
  @supports (backdrop-filter: blur(10px)) { .filter-bar.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); } }
}

/* Grid: the first project leads as a wide card; the rest pair up in two columns.
   main.js marks .is-feature on the first visible card (and on a trailing odd one). */
.plist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; counter-reset: proj; }
.plist > li { display: flex; counter-increment: proj; }
.plist > li[hidden] { display: none; }
.pcard {
  position: relative; width: 100%; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t), opacity .4s, transform .4s var(--ease-out);
}
.pcard:hover { box-shadow: var(--shadow-lift); border-color: #C3D6DD; }
.pcard:has(.btn:focus-visible) { outline: 2.5px solid var(--teal); outline-offset: 3px; }
.pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media .chip { position: absolute; top: 20px; inset-inline-start: 20px; background: rgba(15, 43, 54, .6); }
.pcard__body { flex: 1; padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); display: flex; flex-direction: column; gap: 14px; }
/* Project index numeral — same outlined treatment as the services page */
.pcard__body::before {
  content: counter(proj, decimal-leading-zero);
  content: counter(proj, decimal-leading-zero) / "";
  font-family: var(--f-head); font-size: 2.6rem; font-weight: 600; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.2px var(--haze);
  direction: ltr; text-align: start; font-feature-settings: "tnum";
}
.pcard__body h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); font-weight: 600; line-height: 1.4; }
.pcard__body > p { color: var(--slate); }
.pcard .meta-line { color: var(--slate); }
.pcard dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 4px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.pcard dt { font-size: .8rem; color: var(--slate); }
.pcard dd { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: .95rem; line-height: 1.5; }
.pcard .btn { align-self: flex-start; margin-top: auto; }
/* The whole card opens the project; the button stays the visible, focusable target */
.pcard .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
[dir="rtl"] .pcard:hover .btn .i--fwd { transform: translateX(-4px); }
[dir="ltr"] .pcard:hover .btn .i--fwd { transform: translateX(4px) scaleX(-1); }

/* Wide (featured) card: media and text side by side */
.plist > li.is-feature, .plist:not(.is-managed) > li:first-child { grid-column: 1 / -1; }
.plist > li.is-feature .pcard, .plist:not(.is-managed) > li:first-child .pcard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.plist > li.is-feature .pcard__media, .plist:not(.is-managed) > li:first-child .pcard__media { aspect-ratio: auto; min-height: 420px; }
.plist > li.is-feature .pcard__body, .plist:not(.is-managed) > li:first-child .pcard__body { justify-content: center; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.plist > li.is-feature .pcard__body h2, .plist:not(.is-managed) > li:first-child .pcard__body h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.plist > li.is-feature .pcard .btn, .plist:not(.is-managed) > li:first-child .pcard .btn { margin-top: 6px; }
.plist > li.is-feature--alt .pcard { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.plist > li.is-feature--alt .pcard__media { order: 2; }
.plist > li.is-entering .pcard { animation: cardIn .6s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.plist-empty { padding: 48px; text-align: center; color: var(--slate); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 21. Project detail ---------- */
.cover { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
@media (prefers-reduced-motion: no-preference) { .cover > img { animation: kenburns 22s var(--ease-out) both; } }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 43, 54, .97) 0%, rgba(15, 43, 54, .7) 38%, rgba(15, 43, 54, .15) 75%); }
.cover .rings { opacity: .5; z-index: -1; width: min(700px, 80vw); }
.cover__in { display: flex; flex-direction: column; gap: 20px; padding-block: 120px 64px; max-width: 920px; }
.cover h1 { font-size: var(--fs-h1); color: var(--white); font-weight: 600; }
.cover .chip { align-self: flex-start; }

.detail { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.detail__main { display: flex; flex-direction: column; gap: 56px; }
.detail__block { display: flex; flex-direction: column; gap: 20px; }
.detail__block h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); font-weight: 600; }
.detail__block p { color: var(--slate); font-size: 1.06rem; }
.detail__block p:first-of-type { color: var(--ink); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.8; }
.scope { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.scope li { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; font-family: var(--f-head); font-weight: 500; font-size: .96rem; line-height: 1.45; transition: border-color var(--t), background-color var(--t); }
.scope li:hover { border-color: var(--teal); background: var(--mist); }
.scope .i { color: var(--teal); width: 30px; height: 30px; }

.facts { position: sticky; top: calc(var(--header-h) + 28px); background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 30px; overflow: hidden; isolation: isolate; }
.facts .rings { width: 360px; opacity: .7; z-index: -1; }
.facts h2 { font-size: 1.1rem; font-weight: 500; color: var(--signal); margin-bottom: 8px; }
.facts dl { margin: 0 0 24px; }
.facts dl > div { display: flex; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line-dark); }
.facts dl > div .i { color: var(--signal); margin-top: 3px; }
.facts dt { font-size: .82rem; color: var(--haze); }
.facts dd { margin: 0; font-family: var(--f-head); font-weight: 500; line-height: 1.5; }

.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: rgba(15, 43, 54, 0); transition: background-color var(--t); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn:hover::after { background: rgba(15, 43, 54, .18); }
.gallery__zoom { position: absolute; z-index: 1; bottom: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity var(--t), transform var(--t) var(--ease-out); }
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; transform: none; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 22, 28, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(6, 22, 28, .9); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: center; min-width: 0; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { font-size: .9rem; color: var(--haze); direction: ltr; }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .06); }

.next-proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; isolation: isolate; position: relative; }
.next-proj:hover { color: var(--white); }
.next-proj__media { position: relative; overflow: hidden; }
.next-proj__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.next-proj:hover .next-proj__media img { transform: scale(1.07); }
.next-proj__body { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; }
.next-proj__body .rings { width: 380px; opacity: .6; z-index: -1; }
.next-proj__label { font-family: var(--f-head); color: var(--signal); font-size: .9rem; }
.next-proj__name { font-family: var(--f-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.35; }
.next-proj__go { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; transition: transform var(--t) var(--ease-out); }
.next-proj:hover .next-proj__go { transform: translateX(calc(8px * var(--dir))); }
.detail-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ---------- 22. Trading ---------- */
.perks { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 2rem + 2vw, 3.5rem)); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(15, 43, 54, .5); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .9fr) repeat(3, minmax(0, 1fr)); }
.perks__head { padding: 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center; background: var(--mist); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
[dir="rtl"] .perks__head { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.perks__head h2 { font-size: 1.5rem; font-weight: 600; }
.perk { padding: 32px; display: flex; flex-direction: column; gap: 12px; border-inline-start: 1px solid var(--line); }
.perk .i { color: var(--teal); }
.perk h3 { font-size: 1.08rem; font-weight: 600; }
.perk p { color: var(--slate); font-size: .95rem; }

.lines { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px 72px; align-items: start; }
.lines__head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lines__head p { color: var(--slate); }
.line-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: line; }
.line-item { counter-increment: line; }
.line-item a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding: 26px 4px 26px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; align-content: start; }
[dir="rtl"] .line-item a { padding: 26px 0 26px 4px; }
.line-item__icon { grid-row: span 3; width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--teal); display: grid; place-items: center; transition: background-color var(--t), color var(--t), transform var(--t) var(--ease-out); }
.line-item h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: baseline; gap: 10px; padding-top: 2px; }
.line-item h3::before { content: counter(line, decimal-leading-zero); font-size: .75rem; color: var(--haze); font-weight: 400; direction: ltr; }
.line-item p { color: var(--slate); font-size: .95rem; }
.line-item__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--f-head); font-weight: 500; font-size: .9rem; color: var(--teal); opacity: .0; transform: translateX(calc(10px * var(--dir) * -1)); transition: opacity var(--t), transform var(--t) var(--ease-out); }
.line-item a:hover .line-item__icon, .line-item a:focus-visible .line-item__icon { background: var(--teal); color: var(--white); transform: rotate(calc(-6deg * var(--dir))); }
.line-item a:hover .line-item__cta, .line-item a:focus-visible .line-item__cta { opacity: 1; transform: none; }
@media (hover: none) { .line-item__cta { opacity: 1; transform: none; } }

/* ---------- 23. Partners ---------- */
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.logo-card { position: relative; overflow: hidden; isolation: isolate; height: 128px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 22px 26px; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
/* Scan sweep (adapted from 21st.dev "Logo Clouds" swap-reveal wave): a soft cyan band with a
   hairline teal edge passes over each card in reading direction, card after card. The logo
   itself never hides. main.js adds .is-scan with a per-card --sd delay, a few waves only. */
.logo-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(46, 122, 143, .5) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 22%, rgba(127, 196, 209, .26) 50%, transparent 78%);
  transform: translateX(calc(-100% * var(--dir)));
}
.logo-card.is-scan::after { animation: logoScan 1.2s var(--ease-in-out) var(--sd, 0s) both; }
@keyframes logoScan {
  0% { opacity: 0; transform: translateX(calc(-100% * var(--dir))); }
  18%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100% * var(--dir))); }
}
.logo-card img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter var(--t), transform var(--t) var(--ease-out); }
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C3D6DD; }
.logo-card:hover img { filter: none; transform: scale(1.04); }
.logo-card--square img { max-height: 80px; }
.partners-group + .partners-group { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.agent { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 80px; align-items: center; position: relative; }
.agent__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.agent__list { list-style: none; display: flex; flex-direction: column; }
.agent__list li { display: flex; align-items: center; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line-dark); color: var(--white); font-family: var(--f-head); font-size: 1.05rem; }
.agent__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.agent__list .i { color: var(--sand); }

/* ---------- 24. Contact ---------- */
.contact-cards { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 2rem + 2vw, 3.5rem)); list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; }
.contact-card { height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; box-shadow: 0 24px 50px -36px rgba(15, 43, 54, .5); color: inherit; text-decoration: none; transition: border-color var(--t), transform var(--t) var(--ease-out); }
a.contact-card:hover { border-color: var(--teal); transform: translateY(-3px); color: inherit; }
.contact-card__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; }
.contact-card__label { font-size: .85rem; color: var(--slate); }
.contact-card__value { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.contact-card__phones { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card__phones a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.contact-card__phones a:hover { color: var(--teal); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.form-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--mist); margin-bottom: 28px; }
.tab { flex: 1; min-height: 50px; border-radius: 12px; border: 0; background: transparent; color: var(--slate); font-family: var(--f-head); font-weight: 500; font-size: .98rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px -12px rgba(15, 43, 54, .6); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .9rem; font-weight: 500; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.field .req { color: #9A6B1E; font-size: .78rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid #BFD1D8; background: var(--white);
  font-size: 1rem; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6470' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 20px; background-position: left 14px center; padding-inline-end: 44px; }
[dir="ltr"] .field select { background-position: right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: #7F959E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 122, 143, .18); }
.field [aria-invalid="true"] { border-color: #B3402F; }
.field__err { font-size: .82rem; color: #A33A2B; min-height: 0; }
.field [type="email"], .field [type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .field [type="email"], [dir="rtl"] .field [type="tel"] { text-align: right; }
.file { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border: 1.5px dashed #A9C1CA; border-radius: 14px; background: var(--mist); transition: border-color var(--t-fast), background-color var(--t-fast); }
.file:hover, .file.is-drag { border-color: var(--teal); background: #E3EEF1; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; min-height: 0; }
.file input:focus-visible + .file__btn { outline: 2.5px solid var(--teal); outline-offset: 3px; }
.file__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-family: var(--f-head); font-weight: 500; font-size: .92rem; white-space: nowrap; pointer-events: none; }
.file__name { font-size: .9rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.field__hint { font-size: .8rem; color: var(--slate); }
.quote-only[hidden] { display: none; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot small { color: var(--slate); font-size: .84rem; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #E4F2EC; color: #1F5B43; }
.form-status.is-err { background: #FBEDEA; color: #8A2F22; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; background: var(--mist); border: 1px solid var(--line); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.02); }
.map-card__label { position: absolute; inset-inline: 16px; bottom: 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.map-card__label strong { font-family: var(--f-head); font-weight: 500; display: block; }
.map-card__label span { color: var(--haze); font-size: .88rem; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1300px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1080px) {
  :root { --gutter: 28px; --header-h: 76px; }
  .statement, .why, .story, .values, .licenses, .lines, .agent, .contact-grid, .detail, .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .why__aside, .values__head, .licenses__head, .lines__head, .facts, .svc-index { position: static; }
  .why__img { aspect-ratio: 16 / 9; }
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 420px; flex: none; }
  .panel .panel__more { grid-template-rows: 1fr; opacity: 1; }
  .rail-card { height: 520px; }
  .vm { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .vm__item + .vm__item { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-dark); padding-top: 40px; }
  .vm__item:first-child { padding-inline-end: 0; }
  .value:nth-child(even) { transform: none; }
  .org__depts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .org__depts::before, .org__dept::before { display: none; }
  .org__depts::after { top: -60px; height: 60px; }
  .svc-index ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .svc-index a { border: 1px solid var(--line); border-radius: 999px; padding-inline: 16px; min-height: 44px; }
  .svc-index a::before { display: none; }
  .svc-index { margin-bottom: 8px; }
  .method { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .method::before, .method::after { top: 33px; bottom: 33px; inset-inline-start: 32px; inset-inline-end: auto; width: 1.5px; height: auto; }
  .method::after { transform: scaleY(0); transform-origin: top; width: 2px; }
  [dir="ltr"] .method::after { transform-origin: top; }
  .method.is-in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 4px 22px; padding-bottom: 32px; }
  .step__dot { grid-row: span 3; }
  .step__n { margin-top: 0; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks__head, [dir="rtl"] .perks__head { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .perk { border-inline-start: 0; border-top: 1px solid var(--line); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .brands .logo-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .plist { gap: 20px; }
  .plist > li.is-feature .pcard, .plist:not(.is-managed) > li:first-child .pcard { display: flex; }
  .plist > li.is-feature .pcard__media, .plist:not(.is-managed) > li:first-child .pcard__media { aspect-ratio: 16 / 9; min-height: 0; }
  .plist > li.is-feature--alt .pcard__media { order: 0; }
  .cta-band__card { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .next-proj { grid-template-columns: minmax(0, 1fr); }
  .next-proj__media { min-height: 220px; }
  .map-card { min-height: 420px; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .topbar .topbar__mail { display: none; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; line-height: 1.4; }
  .brand .logo-mark { width: 46px; }
  .brand__name { font-size: .88rem; }
  .brand__latin { font-size: .6rem; }
  .hero { min-height: 720px; height: auto; max-height: none; }
  .hero__body { padding-bottom: 36px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 16px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .panel { min-height: 380px; }
  .rail-card { height: 460px; }
  .rail-head .rail-controls { display: none; }
  .why__item { grid-template-columns: minmax(0, 1fr); }
  .why__num { grid-row: auto; font-size: 2.4rem; }
  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .org__node { min-width: 0; width: 100%; }
  .org__chain { width: 100%; max-width: 340px; }
  .org__depts { grid-template-columns: minmax(0, 1fr); }
  .lic { grid-template-columns: auto minmax(0, 1fr); }
  .lic::before, .lic__check { display: none; }
  .svc__deliver { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .svc__num { font-size: 3.2rem; }
  .line-list { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tab { font-size: .9rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .pcard__body::before { font-size: 2.1rem; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-card { height: 104px; padding: 16px; }
  .logo-card img { max-height: 52px; }
  .brands .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .brands .logo-card { height: 76px; padding: 12px; border-radius: var(--radius-sm); }
  .brands .logo-card img { max-height: 34px; }
  .brands .logo-card--square img { max-height: 44px; }
  .pcard dl { grid-template-columns: minmax(0, 1fr); }
  .final { min-height: 560px; }
  .cover__in { padding-block: 96px 48px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); padding: 64px 12px 12px; }
  .lightbox [data-lb-prev], .lightbox [data-lb-next] { position: absolute; bottom: 20px; z-index: 2; }
  .lightbox [data-lb-prev] { inset-inline-start: 20px; }
  .lightbox [data-lb-next] { inset-inline-end: 20px; }
  .map-card { min-height: 380px; }
}

/* ---------- 28. Motion layer (GSAP + Lenis, see assets/js/motion.js) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.has-gsap .bw { display: inline-block; will-change: transform, filter, opacity; }
.has-gsap .sw { transition: none; }
.has-gsap .par { translate: 0 var(--py, 0); scale: 1.15; }
.has-gsap .hero__media { will-change: transform; }
.has-gsap .method::after { transform: scaleX(var(--mp, 0)); transition: none; }
.has-gsap .method .step__dot { background: var(--ink-2); color: var(--signal); border-color: var(--line-dark); transition-delay: 0s; transition-duration: .35s; }
.has-gsap .method .step.on .step__dot { background: var(--sand); color: var(--ink); border-color: var(--sand); }
@media (max-width: 1080px) { .has-gsap .method::after { transform: scaleY(var(--mp, 0)); } }

/* ---------- 29. Company-profile additions ---------- */
/* Framed project cover (used where the only photos are small) */
.cover--framed { display: grid; grid-template-columns: minmax(0, 1fr) min(42%, 520px); align-items: center; gap: 40px 64px; min-height: 0;
  padding: 72px max(var(--gutter), calc((100vw - var(--container)) / 2)) 72px; }
.cover--framed::before { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.cover--framed > img { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 4.4;
  object-fit: cover; border-radius: var(--radius-lg); animation: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); outline: 1px solid rgba(127, 196, 209, .25); outline-offset: 10px; }
.cover--framed .cover__in { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding-block: 24px; }
.page-project .cover--framed .rings { opacity: .7; }
/* Licences grouped */
.lic-groups { display: flex; flex-direction: column; gap: 44px; }
.lic-group__title { font-size: 1rem; font-weight: 500; color: var(--teal); display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.lic-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lic h4 { font-family: var(--f-head); font-size: 1.08rem; font-weight: 600; margin: 0; line-height: 1.4; }
.lic-group .lic:first-child { border-top: 0; }
/* Extra service lists */
.svc__deliver--ink { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.svc__deliver--ink h3 { color: var(--signal); }
.svc__deliver--ink .bul li { color: #DCE8EC; }
.svc__more { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 1080px) {
  .cover--framed { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .cover--framed > img { grid-column: 1; grid-row: 2; aspect-ratio: 16 / 11; max-width: 640px; }
  .cover--framed .cover__in { padding-block: 0; }
}

/* ---------- 30. Design additions: marine band, map, numbers, before/after, timeline, certificates, mobile bar, 404, transitions ---------- */
.i--flip { transform: scaleX(-1); }

/* Marine band */
.marine { position: relative; overflow: hidden; isolation: isolate; color: var(--white); padding-block: var(--section);
  background: radial-gradient(120% 90% at 85% 10%, #1D5A6B 0%, rgba(29, 90, 107, 0) 60%), linear-gradient(160deg, #0C2C38 0%, #0F3B4A 45%, #0A2029 100%); }
.marine__waves { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 200px; z-index: -1; fill: none; stroke: var(--signal); stroke-width: 1.2; opacity: .22; }
.marine__waves path:nth-child(2) { opacity: .7; }
.marine__waves path:nth-child(3) { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .marine__waves path { animation: wave 9s ease-in-out infinite alternate; }
  .marine__waves path:nth-child(2) { animation-duration: 12s; }
  .marine__waves path:nth-child(3) { animation-duration: 15s; }
}
@keyframes wave { to { transform: translateX(-40px); } }
.marine__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.marine__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.marine .h2 { color: var(--white); }
.marine .lead { color: #CFE3E8; max-width: 560px; }
.marine__clients { font-size: .92rem; color: var(--haze); }
.marine__clients strong { color: var(--white); font-weight: 500; font-family: var(--f-head); }
.marine__fig { position: relative; margin: 0; padding-block-end: 64px; padding-inline-start: 56px; }
.marine__fig > img:first-child { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.marine__fig-2 { position: absolute; bottom: 0; inset-inline-start: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 5px solid #0F3B4A; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }

/* Achievement numbers */
.ach { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 100%; }
.ach__item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-inline-start: 1px solid rgba(127, 196, 209, .25); }
.ach__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ach__num { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; color: var(--sand); }
.ach__suf { font-size: .5em; color: var(--signal); }
.ach__label { font-size: .88rem; color: var(--haze); line-height: 1.5; }
.ach--marine { border-block: 1px solid rgba(127, 196, 209, .25); margin-block: 6px; }
.ach-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 2rem + 2vw, 3.5rem)); }
.ach-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(15, 43, 54, .5);
  padding: 22px clamp(18px, 2vw, 32px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; align-items: center; }
.ach-card__title { font-size: 1rem; font-weight: 500; color: var(--teal); max-width: 9ch; line-height: 1.4; }
.ach-card .ach__item { border-color: var(--line); }
.ach-card .ach__num { color: var(--ink); }
.ach-card .ach__suf { color: var(--teal); }
.ach-card .ach__label { color: var(--slate); }

/* Projects map */
/* The map stands alone; each pin opens a small project card (hover on desktop, tap on touch). */
.map { max-width: 880px; margin-inline: auto; }
/* overflow-x: clip keeps closed cards from widening the page; cards are clamped inside horizontally anyway */
.map__canvas { position: relative; aspect-ratio: 680 / 570; overflow-x: clip; overflow-y: visible; }
.map__svg { width: 100%; height: 100%; overflow: visible; }
.map__land { fill: #DCE8EC; stroke: var(--teal); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 18px 30px rgba(15, 43, 54, .12)); }
.map__sea { fill: var(--teal); opacity: .6; font: 500 15px var(--f-head); letter-spacing: .04em; text-anchor: middle; }
.map__hq circle { fill: var(--ink); }
.map__hq .map__hq-ring { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .35; }
.map__hq text { fill: var(--ink); font: 600 14px var(--f-head); text-anchor: middle; }
.map__spot { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 1; }
.map__spot.is-open { z-index: 6; }
.map__pin { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.map__dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 3px solid var(--white); box-shadow: 0 0 0 1px rgba(15, 43, 54, .25), 0 6px 14px -4px rgba(15, 43, 54, .5); transition: transform .3s var(--ease-out), background-color .2s; }
.map__pin::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .map__pin::before { animation: pinPulse 2.4s var(--ease-out) infinite; } }
@keyframes pinPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.map__count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--white); font-size: .68rem; line-height: 18px; text-align: center; }
.map__pin:hover .map__dot, .map__pin:focus-visible .map__dot, .map__spot.is-open .map__dot { transform: scale(1.45); background: var(--teal); }
.map__spot.is-open .map__pin::before { animation: none; opacity: 0; }

/* Pin popup — scales from the pin it belongs to (origin set by main.js) */
.map__pop {
  position: absolute; left: var(--px, -144px); top: var(--py, -200px); width: 288px; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -22px rgba(15, 43, 54, .45);
  opacity: 0; visibility: hidden; transform: scale(.96); transform-origin: var(--po, 50% 100%);
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.map__spot.is-open .map__pop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s; }
/* Invisible bridge so the pointer can travel from the pin into the card without it closing */
.map__pop::before { content: ""; position: absolute; inset-inline: 0; height: 18px; }
.map__pop[data-side="above"]::before { top: 100%; }
.map__pop[data-side="below"]::before { bottom: 100%; }
.map__pop-list { list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 248px; overflow-y: auto; scrollbar-width: thin; }
.map__card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color var(--t-fast); }
.map__card:hover, .map__card:focus-visible { background: var(--mist); color: inherit; }
.map__card:focus-visible { outline-offset: -2px; }
.map__card img { width: 64px; height: 50px; object-fit: cover; border-radius: 8px; }
.map__card-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.map__card-cat { font-size: .74rem; color: var(--teal); font-family: var(--f-head); }
.map__card strong { font: 600 .9rem/1.45 var(--f-head); }
.map__card-loc { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--slate); min-width: 0; }
.map__card-loc > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map__card-go { color: var(--teal); transition: transform var(--t) var(--ease-out); }
[dir="rtl"] .map__card:hover .map__card-go { transform: translateX(-3px); }
[dir="ltr"] .map__card:hover .map__card-go { transform: translateX(3px) scaleX(-1); }

/* Before / after */
/* A focused, smaller comparison: a centred column instead of the full container width */
.compare-wrap { max-width: 760px; }
.compare { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; max-height: 460px; width: 100%; background: var(--mist); user-select: none; touch-action: pan-y; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[dir="rtl"] .compare__before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.compare__handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 3px; margin-inline-start: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(15, 43, 54, .2); pointer-events: none; }
.compare__handle > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--sand); color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.compare__handle .i { width: 14px; height: 14px; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font: 500 .82rem var(--f-head); background: rgba(15, 43, 54, .78); color: var(--white); pointer-events: none; }
.compare__tag--before { inset-inline-start: 16px; }
.compare__tag--after { inset-inline-end: 16px; background: rgba(46, 122, 143, .92); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare__handle > span { outline: 3px solid var(--white); outline-offset: 2px; }
.compare__hint { margin-top: 10px; font-size: .88rem; color: var(--slate); text-align: center; }

/* Timeline */
.tl { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-block: 8px 24px; scrollbar-width: thin; }
.tl__item { position: relative; scroll-snap-align: start; padding-inline-end: 28px; padding-top: 52px; display: flex; flex-direction: column; gap: 8px; }
.tl__item::before { content: ""; position: absolute; top: 18px; inset-inline: 0; height: 2px; background: var(--line); }
.tl__dot { position: absolute; top: 11px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 3px solid var(--mist); box-shadow: 0 0 0 2px var(--sand); }
.tl__year { position: absolute; top: -10px; inset-inline-start: 26px; font: 600 1.4rem var(--f-head); color: var(--teal); }
.tl__item h3 { font-size: 1.08rem; font-weight: 600; }
.tl__item p { color: var(--slate); font-size: .94rem; }

/* Certificates */
.lic--doc { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.lic__view { position: relative; width: 62px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; cursor: zoom-in;
  transition: transform .3s var(--ease-out), box-shadow .2s, border-color .2s; }
.lic__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lic__view span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 43, 54, .5); color: var(--white); opacity: 0; transition: opacity .2s; }
.lic__view:hover, .lic__view:focus-visible { transform: translateY(-2px) rotate(calc(-2deg * var(--dir))); box-shadow: var(--shadow-lift); border-color: var(--teal); }
.lic__view:hover span, .lic__view:focus-visible span { opacity: 1; }
.lightbox img { background: var(--white); }

/* Mobile action bar (phones only) */
.mbar { display: none; }
@media (max-width: 1080px) and (min-width: 701px) {
  .marine__in { grid-template-columns: minmax(0, 1fr); }
  .marine__fig { max-width: 560px; }
}
@media (max-width: 700px) {
  .mbar { position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px;
    background: rgba(15, 43, 54, .94); border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--white); text-decoration: none; font: 500 .78rem var(--f-head); }
  .mbar a .i { width: 22px; height: 22px; color: var(--signal); }
  .mbar a:active { background: rgba(255, 255, 255, .08); }
  .mbar .mbar__cta { background: var(--sand); color: var(--ink); }
  .mbar .mbar__cta .i { color: var(--ink); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.drawer-open .mbar { display: none; }
  .marine__in { grid-template-columns: minmax(0, 1fr); }
  .marine__fig { padding-inline-start: 32px; padding-block-end: 48px; }
  .map__pop { width: 264px; }
  .map__card { grid-template-columns: 56px minmax(0, 1fr); }
  .map__card img { width: 56px; height: 46px; }
  .map__card-go { display: none; }
  .ach-card { grid-template-columns: minmax(0, 1fr); }
  .ach-card__title { max-width: none; }
  .ach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ach__item { border-inline-start: 0; padding-inline-start: 0; }
  .ach__item:nth-child(even) { border-inline-start: 1px solid rgba(127, 196, 209, .25); padding-inline-start: 16px; }
  .ach__item:nth-child(n+3) { border-top: 1px solid rgba(127, 196, 209, .25); }
  .ach-card .ach__item { border-color: var(--line); }
  .compare { aspect-ratio: 4 / 3.4; }
  .lic--doc { grid-template-columns: minmax(0, 1fr) auto; }
  .lic--doc .lic__icon { display: none; }
}

/* 404 */
.nf { position: relative; overflow: hidden; background: var(--ink); color: var(--white); min-height: 72vh; display: flex; align-items: center; }
.nf__in { position: relative; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-block: 96px; }
.nf__code { font: 600 clamp(6rem, 4rem + 10vw, 12rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--sand); letter-spacing: .02em; }
.nf h1 { font-size: var(--fs-h1); color: var(--white); }
.nf .lead { color: var(--haze); max-width: 520px; }
.nf__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Smooth cross-page transitions (supporting browsers only) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut .28s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vtIn .42s var(--ease-out) both; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero [data-hero] { opacity: 1; transform: none; }
  .logo-card::after { display: none; }
  html.js .statement__text .w { color: inherit; }
}

/* ---------- 27. Print ---------- */
@media print {
  .topbar, .site-header, .drawer, .cta-band, .final, .rail-controls, .site-footer .to-top { display: none !important; }
  .page-head, .section--ink { background: none !important; color: #000 !important; }
}
