/* Revive Integrated Services : site stylesheet, v4 (October 2026 redesign).
   Palette from the official logo files and Company Profile 2026: navy #0B2A66, teal #017F7E, gold rule #C6A15B,
   surface #F1F4F8, line #D5DCE6. No framework. Logical properties throughout so the Arabic (RTL) build mirrors correctly.
   Generated rules (villa drawing, marker positions, system colours, score bar widths) are appended by build.py. */

/* ---------------------------------------------------------------- fonts (self-hosted, OFL) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Arabic"; src: url("../fonts/noto-sans-arabic-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------------------------------------------------------------- tokens */
:root {
  --navy: #0B2A66; --navy-2: #12357A; --navy-deep: #081F4D;
  --teal: #017F7E; --teal-text: #016B6A; --teal-light: #7FD3CF; --teal-wash: #E3F1F0;
  --gold: #C6A15B; --gold-text: #7A5A1F; --gold-wash: #F6EEDC;
  --ink: #1B2430; --ink-2: #3D4A5C; --mute: #556274;
  --page: #FFFFFF; --surface: #F1F4F8; --surface-2: #E7ECF2; --line: #D5DCE6; --line-2: #B8C2D0;
  --on-dark: #FFFFFF; --on-dark-2: #C9D3E3; --on-dark-3: #93A3BD; --dark-line: #2A4378;
  --crit: #A3372A; --crit-bg: #F7E4E1; --high: #8A5A0C; --high-bg: #F7EBD3; --med: #1D4F8F; --med-bg: #E2EAF5; --low: #4E5A6A; --low-bg: #E8ECF1;
  --good: #24704A; --good-bg: #E0EFE6;
  --zc: var(--teal);
  /* type scale: every font size on the site uses one of these (SVG drawing labels excepted; they scale with the drawing) */
  --fs-xs: 12px; --fs-desc: 13px; --fs-sm: 14px; --fs-md: 15.5px; --fs-body: 17px; --fs-lg: 18.5px;
  --fs-lead: clamp(18px, 1.4vw, 20.5px);
  --fs-t3: clamp(20px, 1.7vw, 23px); --fs-t2: clamp(24px, 2.4vw, 30px);
  --fs-stat: clamp(30px, 3vw, 42px);
  --fs-h2: clamp(28px, 3.2vw, 44px); --fs-h1: clamp(36px, 4.6vw, 60px); --fs-display: clamp(40px, 5.6vw, 76px);
  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-body: var(--f-sans);
  --gut: clamp(16px, 4.2vw, 80px);
  --max: 1280px;
  --sec: clamp(64px, 8vw, 120px);
  --r: 3px;
  --head-h: 88px;
  --shadow: 0 1px 2px rgba(11, 42, 102, .06), 0 12px 32px -20px rgba(11, 42, 102, .28);
}
html[lang="ar"] { --f-body: "Noto Arabic", "Archivo", system-ui, Tahoma, Arial, sans-serif; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6; font-kerning: normal; overflow-x: clip; }
html[lang="ar"] body { font-size: var(--fs-body); line-height: 1.85; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; color: var(--navy); }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
h1 { font-size: var(--fs-display); letter-spacing: -0.035em; line-height: 1; }
html[lang="ar"] h1 { font-size: calc(var(--fs-display) * .85); line-height: 1.3; }
h2 { font-size: var(--fs-h2); }
html[lang="ar"] h2 { font-size: calc(var(--fs-h2) * .9); }
h3, .h3 { font-size: var(--fs-t3); letter-spacing: -0.01em; line-height: 1.25; }
html[lang="ar"] :is(h3, .h3) { font-size: var(--fs-t3); line-height: 1.5; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi[dir="ltr"] { unicode-bidi: isolate; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 1px; }
:is(.band-ink, .proof, .cta-band, .nav) :focus-visible { outline-color: var(--teal-light); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(860px + 2 * var(--gut)); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* labels: mono in English; Arabic uses the body face at medium weight without tracking or capitals */
.eyebrow, .mini-h, .sheet, .doc-head, .opt-k, .phase-h, .cap-k, .d-k, .tb-h, .tb-base, .reg-t .ref, .crumbs, .line-lab, .vx-lab, .vx-hint, .aud-k, .ill-tag, .cta-label {
  font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
}
html[lang="ar"] :is(.eyebrow, .mini-h, .sheet, .doc-head, .opt-k, .phase-h, .cap-k, .d-k, .tb-h, .tb-base, .crumbs, .line-lab, .vx-lab, .vx-hint, .aud-k, .ill-tag, .cta-label) {
  font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); font-weight: 600;
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--teal-text); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.mini-h { display: block; color: var(--mute); margin: 0 0 14px; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 44em; }
html[lang="ar"] .lead { line-height: 1.9; }
.note { font-size: var(--fs-sm); color: var(--mute); max-width: 62em; margin-top: 20px; }
.ref, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 14px 24px; border: 1.5px solid var(--navy); border-radius: var(--r);
  background: var(--navy); color: #fff; font: 600 var(--fs-md)/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-teal { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }
.btn-teal:hover { background: #01504F; border-color: #01504F; color: #fff; }
.band-ink .btn-teal:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-timber { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #6F82A8; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.arr { width: 20px; height: 12px; flex: none; transition: transform .2s; }
[dir="rtl"] .arr { transform: scaleX(-1); }
.btn:hover .arr, .lnk:hover .arr, .route:hover .arr { transform: translateX(3px); }
[dir="rtl"] :is(.btn, .lnk, .route):hover .arr { transform: scaleX(-1) translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lnk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--teal-text); font-weight: 600; text-decoration: none; }
.lnk span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color .18s; }
.lnk:hover span { text-decoration-color: currentColor; }
.lnk-light { color: var(--teal-light); }
.lnk-timber { color: var(--teal-text); }
.lnk-row { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 12px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { --brand-pad: 9px; position: relative; flex: none; display: block; padding-block: var(--brand-pad); border-radius: var(--r); }
.brand img { display: block; height: 70px; width: auto; }
/* about every ten seconds a band of teal light passes across the logo, clipped to the logo's own shapes, with a faint glow
   (site.js adds .glint only while the tab is visible and never with reduced motion). The artwork, size and layout never change. */
.brand::after { content: ""; position: absolute; inset: var(--brand-pad) 0; pointer-events: none; opacity: 0;
  -webkit-mask: url(../img/logo-h.svg) no-repeat center / contain; mask: url(../img/logo-h.svg) no-repeat center / contain;
  background: linear-gradient(110deg, transparent 43%, rgba(150, 236, 226, .55) 50%, transparent 57%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; }
.brand.glint::after { animation: sweep 1.6s ease-in-out; }
.brand.glint img { animation: glow 1.6s ease-in-out; }
@keyframes sweep { 0% { opacity: 0; background-position: 100% 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@keyframes glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 5px rgba(1, 127, 126, .22)); } }
@media (prefers-reduced-motion: reduce) { .brand::after, .brand.glint img { animation: none !important; } }
.brand .logo-w { display: none; }
.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li > a, .sub-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font: 500 var(--fs-md)/1.2 var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.nav-list > li > a:hover, .sub-btn:hover { background: var(--surface); color: var(--navy); }
.nav-list a[aria-current="page"], .has-sub.is-active > .sub-btn { color: var(--navy); box-shadow: inset 0 -2px 0 var(--teal); }
.caret { width: 10px; height: 6px; transition: transform .2s; }
.sub-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { position: absolute; inset-inline-start: 0; top: calc(100% + 10px); width: 316px; padding: var(--sp-2); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); box-shadow: var(--shadow); display: none; }
.has-sub.open .sub { display: block; }
.js .has-sub:not(.open) .sub { display: none; }
/* a service in a list: brand name on the first line, its description underneath (menu, phone menu, footer) */
.svc-t { display: block; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; color: var(--navy); }
.svc-d { display: block; font-size: var(--fs-sm); font-weight: 400; line-height: 1.4; color: var(--mute); }
.sub .svc-d { font-size: var(--fs-desc); line-height: 1.45; }
.sub-item > a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--sp-3) var(--sp-4); text-decoration: none; border-radius: var(--r); }
.sub-item > a:hover, .sub-item > a:focus-visible { background: var(--surface); }
.sub-item > a:hover .svc-t { color: var(--teal-text); }
.sub-item > a[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .sub-item > a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--teal); }
/* nested page of a service (ReviveCheck: the eight systems and the score): one step in from the service titles, smaller, with a short dash */
.sub-nested { margin: 0 0 var(--sp-1); padding-inline-start: var(--sp-4); }
.sub-nested a { display: flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: var(--sp-2) var(--sp-4); border-radius: var(--r);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.sub-nested a::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--teal); }
.sub-nested a:hover, .sub-nested a:focus-visible { background: var(--surface); color: var(--navy); }
.sub-nested a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .sub-nested a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--teal); }
.sub-all { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.sub-all a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) var(--sp-4); border-radius: var(--r);
  font-size: var(--fs-md); font-weight: 600; color: var(--teal-text); text-decoration: none; }
.sub-all a:hover, .sub-all a[aria-current="page"] { background: var(--surface); }
.sub-all a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nav-extra { display: none; }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-weight: 500; text-decoration: none; border-radius: var(--r); color: var(--ink); }
.lang:hover { background: var(--surface); }
html[lang="en"] .lang { font-family: "Noto Arabic", var(--f-sans); font-size: var(--fs-md); }
.head-cta { min-height: 46px; padding: 11px 20px; font-size: var(--fs-md); }
.head-wa { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--navy); border-radius: var(--r); color: var(--navy); }
.head-wa svg { width: 22px; height: 22px; }
.head-wa:hover { background: var(--navy); color: #fff; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; background: transparent; border: 1.5px solid var(--navy); border-radius: var(--r); font: 600 var(--fs-md)/1 var(--f-body); color: var(--navy); cursor: pointer; }
.menu-close { display: none; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.burger i { display: block; height: 2px; background: currentColor; transition: transform .2s; }

@media (max-width: 1240px) {
  .head-row { gap: 12px; }
  .nav-list > li > a, .sub-btn { padding-inline: 8px; font-size: var(--fs-md); }
  .head-cta { padding: 10px 14px; gap: 8px; font-size: var(--fs-md); }
  .head-cta .arr { display: none; }
}
@media (max-width: 1000px) {
  :root { --head-h: 72px; }
  .brand img { height: 56px; }
  .brand { --brand-pad: 8px; }
  .menu-btn, .head-wa { display: inline-flex; }
  .head-cta { display: none; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; margin: 0; background: var(--navy); color: #fff; overflow-y: auto; padding: 16px var(--gut) 40px; display: none; }
  .nav.open { display: block; }
  .nav-list { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--dark-line); }
  .nav-list > li > a, .sub-btn { width: 100%; justify-content: space-between; color: #fff; font-size: var(--fs-t3); font-weight: 600; padding: 16px 0; }
  .nav-list > li > a:hover, .sub-btn:hover { background: none; color: var(--teal-light); }
  .nav-list a[aria-current="page"], .has-sub.is-active > .sub-btn { box-shadow: none; color: var(--teal-light); }
  .sub { position: static; display: block; width: auto; padding: 0 0 var(--sp-3); background: none; border: 0; box-shadow: none; }
  .js .has-sub:not(.open) .sub { display: block; }
  .sub-btn .caret { display: none; }
  .sub-item > a { padding: var(--sp-3) var(--sp-4); }
  .sub .svc-t { color: #fff; font-size: var(--fs-body); }
  .sub .svc-d { color: var(--on-dark-2); }
  .sub-item > a:hover, .sub-item > a:focus-visible, .sub-item > a[aria-current="page"], .sub-all a:hover, .sub-all a[aria-current="page"] { background: var(--navy-2); box-shadow: none; }
  .sub-item > a:hover .svc-t { color: #fff; }
  .sub-all { border-top-color: var(--dark-line); }
  .sub-nested a { color: var(--on-dark-2); }
  .sub-nested a::before { background: var(--teal-light); }
  .sub-nested a:hover, .sub-nested a:focus-visible, .sub-nested a[aria-current="page"] { background: var(--navy-2); color: #fff; box-shadow: none; }
  .sub-all a { color: var(--teal-light); }
  .nav-extra { display: block; padding-top: 24px; }
  .nav-cta { width: 100%; }
  .nav-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-family: var(--f-mono); font-size: var(--fs-sm); }
  .nav-contact a { color: var(--teal-light); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
  .menu-open-state .site-head { background: var(--navy); border-color: var(--dark-line); }
  .menu-open-state .logo-c { display: none; } .menu-open-state .logo-w { display: block; }
  .menu-open-state :is(.lang, .menu-btn, .head-wa) { color: #fff; border-color: #fff; }
  .menu-open-state .lang:hover { background: var(--navy-2); }
  .menu-open-state .menu-open { display: none; }
  .menu-open-state .menu-close { display: inline; }
  .menu-open-state .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open-state .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .menu-open-state { overflow: hidden; }
}
@media (max-width: 420px) {
  .menu-btn .menu-open, .menu-btn .menu-close { font-size: var(--fs-sm); }
  .head-actions { gap: 6px; }
  .lang { padding-inline: 8px; }
  .head-wa { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- breadcrumbs and page heads */
.crumbs { padding-top: 26px; color: var(--mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--teal-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.page-head { padding-top: clamp(24px, 3.4vw, 44px); padding-bottom: clamp(52px, 6vw, 88px); }
.page-head h1 { max-width: 15em; font-size: var(--fs-h1); margin-bottom: var(--sp-5); }
html[lang="ar"] .page-head h1 { font-size: calc(var(--fs-h1) * .88); }
.page-head-wide h1 { max-width: 18em; }

/* ---------------------------------------------------------------- bands */
.band { padding-block: var(--sec); }
.band-tight { padding-top: 0; }
.band-alt { background: var(--surface); }
.band-ink { background: var(--navy); color: #fff; }
.band-ink :is(h2, h3) { color: #fff; }
.band-ink p { color: var(--on-dark-2); }
.band-craft { background: #fff; border-top: 1px solid var(--line); }
.band-timber2 { background: var(--surface); }
.sheet { display: flex; align-items: center; gap: 12px; color: var(--teal-text); margin: 0 0 clamp(24px, 2.6vw, 40px); }
.sheet::after { content: ""; width: 56px; height: 2px; background: var(--gold); }
.band-ink .sheet { color: var(--teal-light); }
.sheet-sep { color: var(--line-2); }
.split-h { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 80px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.split-h h2 { max-width: 14em; }
.intro { font-size: var(--fs-lg); color: var(--ink-2); margin: 0; max-width: 32em; }
.band-ink .intro { color: var(--on-dark-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.two-col h2 { margin-bottom: 22px; }
.two-col-art { align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "text art" "actions art"; grid-template-rows: auto 1fr;
  gap: 28px clamp(32px, 4vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero-text { grid-area: text; padding-top: clamp(0px, 2vw, 32px); }
.hero-art { grid-area: art; margin: 0; }
.hero-actions { grid-area: actions; }
.hero h1 { margin-bottom: 26px; max-width: 9.2em; }
html[lang="ar"] .hero h1 { max-width: 10em; }
.hero .lead { max-width: 32em; margin-bottom: 8px; }
.hero-actions .btn-row { margin-bottom: 26px; }
.aud { margin: 0 0 6px; max-width: 34em; font-size: var(--fs-md); color: var(--ink-2); padding-top: 18px; border-top: 1px solid var(--line); }
.aud-k { color: var(--teal-text); margin-inline-end: 6px; }
.hero-more { margin: 4px 0 0; }

/* ---------------------------------------------------------------- villa explorer */
.vx { --vx-pad: clamp(14px, 1.8vw, 24px); }
.vx-fig { margin: 0; padding: var(--vx-pad) var(--vx-pad) 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0;
  background-image: radial-gradient(circle, rgba(11, 42, 102, .09) 1px, transparent 1.2px); background-size: 18px 18px; }
.vx-hint { display: none; margin: 0 0 4px; color: var(--teal-text); }
.js .vx-hint { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.vx-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(1, 127, 126, .45); }
@media (prefers-reduced-motion: no-preference) { .js .vx:not([data-active]) .vx-hint::before { animation: beacon 2s ease-out 3; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(1, 127, 126, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(1, 127, 126, 0); } }
.vx-hint-p { display: none; }
@media (hover: hover) and (pointer: fine) { .vx-hint-t { display: none; } .vx-hint-p { display: inline; } }
.vx-stage { position: relative; direction: ltr; }
.vx-stage .villa { display: block; width: 100%; height: auto; overflow: visible; }
.vx-cap { margin: 4px 0 0; font: 400 var(--fs-xs)/1.5 var(--f-mono); color: var(--mute); }
html[lang="ar"] .vx-cap { font: 400 var(--fs-sm)/1.6 var(--f-body); }

/* markers: HTML controls over the drawing, so they keep a comfortable touch size at every width */
.vx-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; background: var(--navy); color: #fff; border-radius: var(--r);
  font: 500 var(--fs-md)/1 var(--f-mono); text-decoration: none; box-shadow: inset 0 -4px 0 var(--zc); transition: transform .15s, box-shadow .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.vx-pin::before { content: ""; position: absolute; inset: -5px; }
.vx-pin:hover, .vx-pin.hot { transform: scale(1.08); }
.vx-pin[aria-expanded="true"] { box-shadow: inset 0 -4px 0 var(--zc), 0 0 0 3px #fff, 0 0 0 6px var(--zc); transform: scale(1.1); }
.vx[data-active] .vx-pin:not([aria-expanded="true"]) { background: #5E6E8C; }
.vx-pin:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

/* the drawing: base look comes from drawings.STYLE (appended below); this is the selection state */
.villa .tag .lead { stroke: var(--zc); stroke-width: 1.1; max-width: none; }
.villa .tag .pin, .villa .tag .tagend { fill: var(--zc); }
.villa .tag.on .lead, .villa .tag.hot .lead { stroke-width: 2.2; }
.vx[data-active] .villa .tag:not(.on) { opacity: .35; }
.villa .z, .villa .win { transition: opacity .3s ease; }
.villa .zfx { display: none; }
.villa :is(.trace, .flow, .heat, .crack-glow) { fill: none; }
.vx[data-active] .villa :is(.z:not(.on), .win) { opacity: .3; }
.villa .z.on :is(polygon, rect, circle, path, polyline):not(.zfx *) { stroke: var(--zc); }
.villa .z.on :is(polygon.ft, polygon.fy, polygon.fx, .pave, .gpave, .tank, .ac, .bw, .par, .db, .lamp, .chamber, .plot) { fill: color-mix(in srgb, var(--zc) 16%, #fff); }
.villa .z.on .zfx { display: inline; }
.villa .z.on .zfx > * { stroke: var(--zc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.villa .z.on .zfx :is(.halo, .ring, .glow) { fill: color-mix(in srgb, var(--zc) 28%, #fff); }
.villa .z.on .zfx .drop { fill: var(--zc); stroke: none; }
.villa .z.hot:not(.on) :is(polygon, path, polyline, circle) { stroke: var(--zc); }
@media (prefers-reduced-motion: no-preference) {
  .villa .z.on .zfx .flow { stroke-dasharray: 7 7; animation: vflow 1s linear 4; }
  .villa .z.on .zfx .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vtrace .9s cubic-bezier(.4, 0, .2, 1) forwards; }
  .villa .z.on .zfx :is(.halo, .ring) { transform-box: fill-box; transform-origin: center; animation: vpulse 1.1s ease-out 3; }
  .villa .z.on .zfx .heat { animation: vheat 1.4s ease-in-out 3; }
  .villa .z.on .zfx .heat.h1 { animation-delay: .2s; } .villa .z.on .zfx .heat.h2 { animation-delay: .4s; }
  .villa .z.on .zfx .crack-glow { animation: vblink 1s ease-in-out 3; }
  .villa .z.on .zfx .glow { animation: vblink 1.2s ease-in-out 2; }
  .villa .z.on .zfx .drop { animation: vdrop 1s ease-in 4; }
  .villa .z.on .blade { transform-box: fill-box; transform-origin: center; animation: vspin .7s linear 6; }
}
@keyframes vflow { to { stroke-dashoffset: -28; } }
@keyframes vtrace { to { stroke-dashoffset: 0; } }
@keyframes vpulse { 0% { transform: scale(.6); opacity: .2; } 60% { opacity: 1; } 100% { transform: scale(1.15); opacity: 1; } }
@keyframes vheat { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: .9; transform: translateY(0); } }
@keyframes vblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes vdrop { 0% { transform: translateY(-4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(4px); opacity: .2; } }
@keyframes vspin { to { transform: rotate(360deg); } }

/* entry: the drawing traces in once when it reaches the screen; markers work throughout */
.js .villa.pre .draw { opacity: 0; }
.js .villa.drawing .draw :is(polygon, line, path, polyline) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline .9s cubic-bezier(.4, 0, .2, 1) forwards; }
.js .villa.drawing .draw polygon { fill-opacity: 0; }
.js .villa.drawing .zfx * { animation: none !important; }
@keyframes drawline { 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.js .vx.drawn .vx-pin { animation: vxpop .45s cubic-bezier(.2, .8, .3, 1.3) both; }
.vx-pin[data-sys="B"] { animation-delay: .04s; } .vx-pin[data-sys="C"] { animation-delay: .08s; } .vx-pin[data-sys="D"] { animation-delay: .12s; }
.vx-pin[data-sys="E"] { animation-delay: .16s; } .vx-pin[data-sys="F"] { animation-delay: .2s; } .vx-pin[data-sys="G"] { animation-delay: .24s; } .vx-pin[data-sys="H"] { animation-delay: .28s; }
@keyframes vxpop { 0% { opacity: 0; translate: 0 6px; } 100% { opacity: 1; translate: 0 0; } }   /* no scaling: the tap target is full size from the first frame */

/* system list */
.vx-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px var(--vx-pad); background: #fff; border: 1px solid var(--line); border-top: 0; }
.vx-chip { display: flex; align-items: center; gap: 9px; min-height: 48px; height: 100%; padding: 6px 10px 6px 7px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  text-decoration: none; color: var(--ink); line-height: 1.2; transition: border-color .15s, background-color .15s; }
[dir="rtl"] .vx-chip { padding: 6px 7px 6px 10px; }
.vx-chip:hover, .vx-chip.hot { border-color: var(--zc); }
.vx-chip[aria-expanded="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.vx-ck { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: #fff; color: var(--navy); border: 2px solid var(--zc); font: 500 var(--fs-sm)/1 var(--f-mono); border-radius: var(--r); }
.vx-cn { font-size: var(--fs-sm); font-weight: 500; }
html[lang="ar"] .vx-cn { font-size: var(--fs-sm); line-height: 1.35; }

/* panels */
.vx-panels { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: #fff; }
.vx-panel[hidden] { display: none; }
.vx-intro { padding: 16px var(--vx-pad) 18px; }
.vx-intro .vx-h { font-size: var(--fs-lg); margin: 0 0 4px; }
.vx-intro p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.js .vx[data-active] .vx-intro { display: none; }
.vx-panel[data-panel]:not(.vx-intro) { border-top: 4px solid var(--zc); }
.vx-body { padding: 16px var(--vx-pad) 12px; }
.vx-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.vx-tile { display: grid; place-items: center; width: 46px; height: 46px; background: var(--navy); color: #fff; font: 500 var(--fs-t3)/1 var(--f-mono); border-radius: var(--r); box-shadow: inset 0 -5px 0 var(--zc); }
.vx-lab { margin: 0; color: var(--mute); }
.vx-top .vx-h { margin: 2px 0 0; font-size: var(--fs-t3); }
.vx-top .vx-h:focus { outline: none; }
.vx-close, .vx-step button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--navy); cursor: pointer; }
.vx-close svg { width: 14px; height: 14px; }
.vx-close:hover, .vx-step button:hover { border-color: var(--navy); background: var(--surface); }
.vx-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.vx-main:has(.vx-ph) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.vx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.vx-main:has(.vx-ph) .vx-cols { grid-template-columns: minmax(0, 1fr); }
.vx-cols p, .vx-ex p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.55; }
.vx-cols .mini-h, .vx-ex .mini-h { font-size: var(--fs-xs); margin-bottom: 4px; }
html[lang="ar"] :is(.vx-cols, .vx-ex) .mini-h { font-size: var(--fs-sm); }
.vx-ex { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.vx-ex .vx-ex-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink); font-weight: 500; }
.vx-ex-t .ref { color: var(--teal-text); font-size: var(--fs-sm); }
.vx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.vx-step { display: inline-flex; gap: 6px; }
.vx-step .arr { width: 18px; }
[dir="rtl"] .vx-foot .arr, [dir="rtl"] .vx-step .arr-back, [dir="rtl"] .vx-step button:last-child .arr { transform: scaleX(-1); }
html:not(.js) .vx-ctl { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .vx-panel:not([hidden]):not(.vx-intro) .vx-body { animation: vxin .25s ease-out; } }
@keyframes vxin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- proof strip */
.proof { background: var(--navy); color: #fff; }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-list li { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 30px; border-inline-start: 1px solid var(--dark-line); }
.proof-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pf-n { font-size: var(--fs-stat); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
html[lang="ar"] .pf-n { font-weight: 700; }
.pf-t { font-size: var(--fs-md); line-height: 1.45; color: var(--on-dark-2); max-width: 18em; }

/* ---------------------------------------------------------------- journey */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.journey li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 8px; border-inline-start: 1px solid var(--line-2); }
.journey li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.journey li:not(:last-child)::after { content: ""; position: absolute; top: -7px; inset-inline-end: -7px; width: 12px; height: 12px; background: var(--surface); border: 2px solid var(--navy); border-radius: 50%; z-index: 1; }
.journey-wide li:not(:last-child)::after { background: #fff; }
.j-n { font: 500 var(--fs-sm)/1 var(--f-mono); color: var(--teal-text); }
.j-v { margin: 0; font-size: var(--fs-t2); }
.journey p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.j-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font: 500 var(--fs-sm)/1.2 var(--f-mono); color: var(--teal-text); text-decoration: none; }
.j-link:hover { text-decoration: underline; }
[dir="rtl"] .j-link .arr { transform: scaleX(-1); }

/* ---------------------------------------------------------------- service lines */
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.line { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--r); }
.line-craft { border-top-color: var(--gold); }
.line h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; letter-spacing: -.01em; font-size: var(--fs-t2); }
.line h3 a:hover { color: var(--teal-text); }
.line p { margin: 0; color: var(--ink-2); }
.line-text { font-size: var(--fs-md); }
.line-k { display: flex; align-items: center; gap: 12px; margin: 0; }
.line-lab { color: var(--mute); font-size: var(--fs-xs); line-height: 1.35; }
html[lang="ar"] .line-lab { font-size: var(--fs-sm); }
.line-tag, .line .line-tag { margin: -6px 0 0; font-size: var(--fs-md); font-style: italic; color: var(--teal-text); }
html[lang="ar"] .line-tag { font-style: normal; font-weight: 600; }
.tile { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: 10px; background: var(--navy); color: #fff; font: 500 var(--fs-lg)/1 var(--f-mono); border-radius: var(--r); }
.tile-timber, .line-craft .tile { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------------------------------------------------------------- climate */
.climate-sec.has-wide { padding-top: 0; }
.ph-wide { margin: 0 0 clamp(48px, 6vw, 88px); max-height: 520px; overflow: hidden; }
.ph-wide img { aspect-ratio: 21 / 9; max-height: 520px; }
.climate { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; align-items: start; }
.climate-text h2 { margin-bottom: 24px; }
.climate-text p { font-size: var(--fs-lg); }
.climate-art { margin: 0; }
.curve { width: 100%; }
.curve .axis { stroke: #6F82A8; stroke-width: 1; }
.curve .cv { fill: none; stroke: var(--gold); stroke-width: 3; }
.curve .mk { stroke: var(--navy); stroke-width: 3; }
.curve .m-low { fill: var(--teal-light); } .curve .m-mid { fill: #E2B55A; } .curve .m-high { fill: #E77A6B; }
.curve .tickv { stroke: #3B5488; stroke-dasharray: 3 4; }
.curve .ch { fill: var(--teal-light); font: 500 13px var(--f-mono); letter-spacing: .06em; }
.curve .cost { fill: var(--on-dark-2); font: 500 13px var(--f-mono); letter-spacing: .06em; }
html[lang="ar"] .curve :is(.ch, .cost) { font: 600 14px var(--f-body); letter-spacing: 0; }
.js .curve.drawing .cv { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 1.4s .2s ease-out forwards; }
.curve-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.curve-caps li { padding-top: 12px; border-top: 1px solid var(--dark-line); font-size: var(--fs-md); color: var(--on-dark-2); line-height: 1.5; }
.cap-k { display: block; color: var(--teal-light); margin-bottom: 4px; }
.climate-art figcaption { font: 400 var(--fs-xs)/1.5 var(--f-mono); color: var(--on-dark-3); margin-top: 22px; }
html[lang="ar"] .climate-art figcaption { font: 400 var(--fs-sm)/1.6 var(--f-body); }
.band-ink .ill-tag, .ill-tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border: 1px solid var(--dark-line); color: var(--on-dark-2); font-size: var(--fs-xs); }
.facts-row { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--dark-line); }
.facts-row .mini-h { color: var(--teal-light); margin-bottom: 22px; }
.qfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.qf-n { display: block; font-size: var(--fs-stat); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: #fff; margin-bottom: 12px; font-family: var(--f-sans); }
html[lang="ar"] .qf-n { text-align: right; }
.qfacts p { margin: 0 0 10px; font-size: var(--fs-md); line-height: 1.55; }
.qfacts .qf-src { font-size: var(--fs-sm); color: var(--on-dark-3); }
.qf-src a { color: var(--on-dark-2); text-underline-offset: 3px; }
.qf-src a:hover { color: var(--teal-light); }

/* ---------------------------------------------------------------- photographs (illustrative, always labelled) */
.ph { position: relative; margin: 0; background: var(--surface-2); overflow: hidden; border-radius: var(--r); }
.ph img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-tag, .ph > .ph-tag { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; margin: 0; max-width: calc(100% - 20px); padding: 3px 9px; background: rgba(8, 31, 77, .86); color: #fff;
  font: 500 var(--fs-xs)/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; border-radius: 2px; }
html[lang="ar"] :is(.ph-tag, .ph > .ph-tag) { font: 600 var(--fs-xs)/1.6 var(--f-body); letter-spacing: 0; text-transform: none; }
.ph-wide { border-radius: 0; }

/* ---------------------------------------------------------------- documents (register, score, quote) */
.doc { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.doc-head { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: var(--fs-xs); }
html[lang="ar"] .doc-head { font-size: var(--fs-sm); }
.doc-tag { display: inline-block; padding: 1px 8px; background: var(--gold-wash); color: var(--gold-text); border-radius: 2px; white-space: nowrap; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
html[lang="ar"] .doc-tag { font: 600 var(--fs-xs)/1.6 var(--f-body); letter-spacing: 0; text-transform: none; }
.doc-note { margin: 0; padding: 12px 22px 16px; font-size: var(--fs-sm); color: var(--mute); font-style: italic; }
html[lang="ar"] .doc-note { font-style: normal; }
.doc-sub { margin: 0; padding: 12px 22px 0; font-size: var(--fs-md); color: var(--mute); }
.reg-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.reg-sys { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.reg-sys-k { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--navy); color: #fff; font: 500 var(--fs-md)/1 var(--f-mono); border-radius: var(--r); box-shadow: inset 0 -4px 0 var(--zc); }
.reg-sys-n { font-size: var(--fs-xs); line-height: 1.3; color: var(--mute); }
.reg-t { margin: 0 0 4px; font-weight: 600; font-size: var(--fs-md); line-height: 1.35; }
.reg-t .ref { font-size: var(--fs-sm); color: var(--teal-text); margin-inline-end: 6px; }
.reg-d { margin: 0; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.5; }
.reg-tot { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 22px 4px; text-align: center; }
.reg-n { display: block; font-size: var(--fs-t2); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.reg-l { font-size: var(--fs-sm); color: var(--mute); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 2px; font: 500 var(--fs-xs)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
html[lang="ar"] .chip { font: 600 var(--fs-sm)/1.5 var(--f-body); letter-spacing: 0; }
.chip-immediate { background: var(--crit-bg); color: var(--crit); box-shadow: inset 0 0 0 1px var(--crit); }
.chip-urgent { background: var(--high-bg); color: var(--high); }
.chip-medium { background: var(--med-bg); color: var(--med); }
.chip-routine { background: var(--low-bg); color: var(--low); }
.chip-na { background: transparent; color: var(--low); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-dev { background: var(--gold-wash); color: var(--gold-text); margin-inline-start: 6px; vertical-align: 2px; }

/* home: evidence */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.evidence-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; margin-top: clamp(36px, 4vw, 56px); }
.evidence-foot:not(:has(.ph)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.evidence-text .mini-h { color: var(--navy); }
.docs li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.docs .n { font: 500 var(--fs-sm)/1.9 var(--f-mono); color: var(--teal-text); }

/* score card */
.score-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px 6px; }
.score-meta { margin: 10px 0 0; font-size: var(--fs-md); color: var(--ink-2); }
.dial { width: 170px; }
.dial .track { fill: none; stroke: var(--surface-2); stroke-width: 14; stroke-linecap: round; }
.dial .arc { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .7, .3, 1); }
.dial .tick { stroke: var(--line-2); stroke-width: 1.5; }
.dial .dnum { font: 600 52px var(--f-sans); fill: var(--navy); }
.dial .dsub { font: 400 13px var(--f-mono); fill: var(--mute); }
html[lang="ar"] .dial .dsub { font: 500 14px var(--f-body); }
.bars { padding: 6px 22px 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 30px; gap: 14px; align-items: center; padding: 6px 0; font-size: var(--fs-md); }
.bar-k bdi { font-family: var(--f-mono); color: var(--mute); margin-inline-end: 4px; }
.bar { display: block; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--zc); transition: width 1s cubic-bezier(.3, .7, .3, 1); }
.bar-v { font-family: var(--f-mono); font-weight: 500; text-align: end; }
.js .score:not(.in) .bar i { width: 0 !important; }

/* home: workshop */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.shop-text h2 { margin-bottom: 22px; }
.shop-text > p { font-size: var(--fs-lg); color: var(--ink-2); }
.made { margin: 26px 0 30px; columns: 2; column-gap: 32px; }
.made li { break-inside: avoid; padding: 10px 0; padding-inline-start: 20px; position: relative; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
.made li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15em; width: 8px; height: 2px; background: var(--gold); }
.shop-art { margin: 0; }
/* ReviveCraft cabinet (build/cabinet.py). Materials are variables: the finished view shows oak, stone and steel,
   the technical view the same faces in near-white so the linework and the hidden lines read. No panel behind it. */
.cab3 { --oak-f: #DDB98C; --oak-s: #C99E6C; --oak-t: #E9CFA6; --oak-e: #D3AB7A; --oak-in: #B68C5D; --oak-is: #C69B69; --oak-ib: #CFA676;
  --stone-t: #EFEBE4; --stone-f: #DED8CD; --stone-s: #D2CBBF; --plinth-f: #4A5262; --plinth-s: #3D4452; --metal: #C9CFD7; --metal-t: #E2E6EB;
  --shade: rgba(11, 42, 102, .05); --grain: .55; --hidden: 0; --cut: #E3C9A2; --cut-stone: #E4DFD6; }
.cab3[data-view="technical"], .cab3.pre:not(.in) { --oak-f: #FFFFFF; --oak-s: #F2F4F7; --oak-t: #FAFBFC; --oak-e: #F6F7F9; --oak-in: #ECEFF3; --oak-is: #F2F4F7; --oak-ib: #F6F7F9;
  --stone-t: #FAFBFC; --stone-f: #FFFFFF; --stone-s: #F2F4F7; --plinth-f: #E8ECF1; --plinth-s: #DFE4EA; --metal: #EEF1F5; --metal-t: #F6F7F9;
  --shade: rgba(11, 42, 102, 0); --grain: 0; --hidden: 1; --cut: #FFFFFF; --cut-stone: #FFFFFF; }
.cab3 svg { display: block; width: 100%; height: auto; overflow: visible; }
.cab3 polygon, .cab3 rect, .cab3 circle { transition: fill .5s ease; }
.cab3 .m-oak-f { fill: var(--oak-f); } .cab3 .m-oak-s { fill: var(--oak-s); } .cab3 .m-oak-t { fill: var(--oak-t); } .cab3 .m-oak-e { fill: var(--oak-e); }
.cab3 .m-oak-in { fill: var(--oak-in); } .cab3 .m-oak-is { fill: var(--oak-is); } .cab3 .m-oak-ib { fill: var(--oak-ib); }
.cab3 .m-stone-t { fill: var(--stone-t); } .cab3 .m-stone-f { fill: var(--stone-f); } .cab3 .m-stone-s { fill: var(--stone-s); }
.cab3 .m-plinth-f { fill: var(--plinth-f); } .cab3 .m-plinth-s { fill: var(--plinth-s); }
.cab3 .m-metal { fill: var(--metal); } .cab3 .m-metal-t { fill: var(--metal-t); } .cab3 .m-shadow { fill: var(--shade); }
.cab3 .m-cut { fill: var(--cut); } .cab3 .m-cut-stone { fill: var(--cut-stone); }
.cab3 .ln { stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.cab3 .lf { stroke: var(--navy); stroke-opacity: .55; stroke-width: 1.3; stroke-linejoin: round; }
.cab3 .nl { stroke: none; }
.cab3 .floor { stroke-opacity: .35; }
.cab3 .gr { opacity: var(--grain); transition: opacity .5s ease; pointer-events: none; }
.cab3 .grain path { fill: none; stroke: #8A5A2B; stroke-opacity: .22; stroke-width: 1.4; }
.cab3 .speck circle { fill: #8E8576; fill-opacity: .28; }
.cab3 .hatch { stroke: var(--navy); stroke-opacity: .3; stroke-width: 1.4; }
.cab3 .hole { fill: var(--navy); fill-opacity: .32; }
.cab3 .hid { fill: none; stroke: var(--navy); stroke-opacity: .55; stroke-width: 1.4; stroke-dasharray: 9 7; opacity: var(--hidden); transition: opacity .5s ease; }
.cab3 .handle-o, .cab3 .arm-o { fill: none; stroke: var(--navy); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.cab3 .handle, .cab3 .arm { fill: none; stroke: var(--metal); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s ease; }
/* dimensions are secondary: fine teal lines, labels in the site typeface with a halo instead of a box */
.cab3 .dml { stroke: var(--teal); stroke-width: 1.3; }
.cab3 .dm text { fill: var(--teal-text); font: 500 32px var(--f-sans); letter-spacing: .01em; paint-order: stroke; stroke: var(--page); stroke-width: 10px; stroke-linejoin: round; }
.cab3 .cab-sub-svg .dm text { font-size: 44px; stroke-width: 12px; }
html[lang="ar"] .cab3 .dm text { font-family: var(--f-body); font-weight: 600; }
.cab3 .ld { stroke: var(--teal); stroke-width: 1.6; }
.cab3 .ld-dot { fill: var(--teal); }
.cab3 .mk-n circle { fill: var(--teal); stroke: var(--page); stroke-width: 4; }
.cab3 .mk-n text { fill: #fff; font: 700 26px var(--f-sans); text-anchor: middle; dominant-baseline: central; }
/* switch, key, the two small views and the note */
.cab3-bar { display: none; gap: 0; margin-bottom: var(--sp-4); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; width: max-content; max-width: 100%; }
.js .cab3-bar { display: inline-flex; }
.cab3-bar button { white-space: nowrap; font: 600 var(--fs-sm)/1 var(--f-body); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 10px 16px; min-height: 40px; cursor: pointer; }
.cab3-bar button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cab3-bar button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cab3-key { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-3) 0 var(--sp-6); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-2); }
.cab3-key li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cab3-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 var(--fs-xs)/1 var(--f-sans); }
.cab3-sub { display: grid; grid-template-columns: 1190fr 820fr; gap: var(--sp-5); align-items: end; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.cab3-vh { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.shop-art.cab3 figcaption { margin-top: var(--sp-4); font: 400 var(--fs-xs)/1.5 var(--f-body); color: var(--mute); }
html[lang="ar"] .shop-art.cab3 figcaption { font-size: var(--fs-sm); line-height: 1.7; }
@media (min-width: 1001px) {
  .pg-workshop .two-col-art { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .pg-workshop .two-col-art > div { position: sticky; top: calc(var(--head-h) + 32px); }
}
@media (max-width: 600px) {
  .cab3 .dm text { font-size: 52px; stroke-width: 13px; }
  .cab3 .mk-n { transform-box: fill-box; transform-origin: center; transform: scale(1.35); }
  .cab3-sub { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .cab3-v { max-width: 88%; } .cab3-v-s { max-width: 66%; }
  .cab3 .cab-sub-svg .dm text { font-size: 52px; }
}
/* draw-in (site.js adds .pre, then .in when the drawing comes into view, then .done). Before .in the faces are white,
   like an inked drawing (so lines behind a face stay hidden); the lines draw, the materials then colour in, and the
   dimensions and notes appear last. The delays apply only to that first reveal: switching views later is immediate. */
.cab3.pre:not(.in) { --hidden: 0; }
.cab3.pre :is(.ln, .lf, .dml, .handle-o, .arm-o) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cab3.pre:not(.in) :is(.hole, .dm text, .mk, .hatch-f) { opacity: 0; }
.cab3.pre.in :is(.ln, .lf, .dml, .handle-o, .arm-o) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1); }
.cab3.pre.in:not(.done) .dml { transition-delay: .4s; }
.cab3.pre.in:not(.done) :is(polygon, rect, circle) { transition: fill .8s ease 1s, opacity .6s ease 1s; }
.cab3.pre.in:not(.done) :is(.handle, .arm) { transition: stroke .8s ease 1s; }
.cab3.pre.in:not(.done) .gr { transition: opacity .8s ease 1.3s; }
.cab3.pre.in:not(.done) :is(.dm text, .mk) { transition: opacity .5s ease 1.7s; }
.shop-art figcaption, .walk-art figcaption { font: 400 var(--fs-xs)/1.5 var(--f-mono); color: var(--mute); margin-top: 10px; }
html[lang="ar"] :is(.shop-art, .walk-art) figcaption { font: 400 var(--fs-sm)/1.6 var(--f-body); }

/* home: why and who */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.why li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 12px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.why-n { grid-row: span 2; font: 500 var(--fs-sm)/1.9 var(--f-mono); color: var(--gold-text); }
.why h3 { font-size: var(--fs-lg); }
.why p { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }
.who { margin-top: clamp(32px, 4vw, 52px); padding: clamp(20px, 2.6vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.who .mini-h { color: var(--navy); }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who-list li { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 20px; font-size: var(--fs-md); font-weight: 500; color: var(--navy); }
.who-line { margin: 18px 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--teal-text); }

/* home: routes */
#s5-h { margin-bottom: 32px; }
.routes { border-top: 2px solid var(--navy); }
.route { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
.route:hover { background: var(--surface); }
.route-q { font-size: var(--fs-t2); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; color: var(--navy); }
.route-a { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; }
.route .arr { width: 26px; height: 16px; color: var(--teal-text); }

/* CTA band: closing section of every page */
.cta-band { background: var(--navy); color: #fff; border-top: 4px solid var(--gold); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7) var(--sp-8); align-items: center; }
.cta-text h2 { margin-bottom: var(--sp-4); color: #fff; max-width: 14em; }
.cta-text p { margin: 0; font-size: var(--fs-lg); max-width: 30em; color: var(--on-dark-2); }
.cta-contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding-inline-start: var(--sp-7); border-inline-start: 1px solid var(--dark-line); }
.cta-band .cta-label { margin: 0; color: var(--teal-light); }
.cta-nums { display: grid; gap: var(--sp-1); }
/* one style for both numbers: same family, size, weight, line height, spacing and colour */
.cta-num { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--f-sans); font-size: var(--fs-t2); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-lg); color: var(--teal-light); text-decoration: none; }
.cta-num:hover, .cta-mail:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.cta-actions { margin-top: var(--sp-2); }
.cta-actions .btn { min-width: 13.5em; }
@media (max-width: 960px) {
  .cta-contact { padding-inline-start: 0; border-inline-start: 0; padding-top: var(--sp-6); border-top: 1px solid var(--dark-line); width: 100%; }
}
@media (max-width: 640px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn { min-width: 0; }
}

/* ---------------------------------------------------------------- about / approach */
.pull { margin: 0; padding-inline: 28px 0; border-inline-start: 4px solid var(--gold); }
.pull p { font-size: var(--fs-t3); line-height: 1.45; color: var(--navy); font-weight: 500; margin: 0; }
html[lang="ar"] .pull p { line-height: 1.8; }
.philo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.philo li { position: relative; padding: 20px 24px 20px; padding-inline-start: 24px; background: var(--surface); border-inline-start: 1px solid #fff; }
.philo li:first-child { background: var(--navy); } .philo li:nth-child(2) { background: var(--navy-2); } .philo li:nth-child(3) { background: #1A4A86; } .philo li:nth-child(4) { background: var(--teal-text); }
.philo li :is(h3, p, .philo-n) { color: #fff; }
.philo-n { display: block; font: 500 var(--fs-xs) var(--f-mono); opacity: .8; margin-bottom: 8px; }
.philo h3 { text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-lg); margin-bottom: 6px; }
html[lang="ar"] .philo h3 { text-transform: none; letter-spacing: 0; }
.philo p { margin: 0; font-size: var(--fs-md); opacity: .92; }
.philo-line { margin: 22px 0 0; font-size: var(--fs-t3); font-weight: 600; color: var(--navy); }
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; counter-reset: m; }
.method li { padding-top: 18px; border-top: 3px solid var(--navy); counter-increment: m; }
.method li::before { content: "0" counter(m); display: block; font: 500 var(--fs-sm) var(--f-mono); color: var(--teal-text); margin-bottom: 14px; }
.method h3 { margin-bottom: 12px; }
.method p { color: var(--ink-2); font-size: var(--fs-md); margin: 0; }
#clients-h, #method-h, #cmp-h, #steps-h { margin-bottom: 32px; }
.mission { font-size: var(--fs-lg); color: var(--ink-2); }
.facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; }
.facts a { text-decoration: none; color: var(--teal-text); }
.facts a:hover { text-decoration: underline; }
.facts dd a { display: inline-flex; align-items: center; min-height: 40px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.rules li { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 20px; padding: 30px 0; border-top: 2px solid var(--navy); }
.rule-n { grid-row: span 2; font: 500 var(--fs-stat)/1 var(--f-mono); color: var(--gold-text); }
.rules p { margin: 0; color: var(--ink-2); }
.lead-light, .band-ink .lead-light { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-2); margin-top: 20px; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.glossary > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 600; color: var(--navy); }
.glossary dd { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-md); background: #fff; }
.tbl th, .tbl td { text-align: start; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 500 var(--fs-xs)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--surface); border-bottom: 2px solid var(--navy); }
html[lang="ar"] .tbl thead th { font: 600 var(--fs-sm)/1.5 var(--f-body); letter-spacing: 0; text-transform: none; }
.band-alt .tbl thead th { background: var(--surface-2); }
.tbl tbody th { font-weight: 600; color: var(--navy); width: 26%; }
.tbl-cmp td:first-child { color: var(--mute); }
.tbl-cmp td:last-child { font-weight: 600; }
.tbl-cmp td:last-child::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--teal); margin-inline-end: 12px; }
.tbl .num { text-align: end; }
.dec { font-weight: 600; color: var(--good); }
.dec-no { color: var(--mute); font-weight: 500; }
.tbl-q td { font-size: var(--fs-md); }
.tbl-plans { table-layout: fixed; }
.tbl-plans thead th:first-child { width: 34%; font: 600 var(--fs-md)/1.4 var(--f-body); color: var(--mute); }
.tbl-plans th, .tbl-plans td { padding: 18px 16px; }
.tbl-plans thead th { vertical-align: bottom; text-transform: none; letter-spacing: 0; font-family: var(--f-body); color: var(--navy); }
.plan-n { display: block; font-size: var(--fs-t3); font-weight: 600; letter-spacing: -0.01em; }
.plan-s { display: block; font-size: var(--fs-sm); color: var(--mute); font-weight: 400; }
.rec { display: block; min-height: 2.7em; margin-top: 10px; font-size: var(--fs-xs); line-height: 1.35; font-weight: 600; color: var(--teal-text); }
.rec:empty { visibility: hidden; }
.tbl-plans :is(th, td).is-rec { background: var(--teal-wash); }
.tbl-plans thead .is-rec { box-shadow: inset 0 3px 0 var(--teal); }
.tbl-plans td { text-align: center; }
.v-yes { color: var(--teal-text); font-weight: 600; }
.v-no { color: var(--mute); font-style: italic; }
html[lang="ar"] .v-no { font-style: normal; }
.v-part { color: var(--ink); }
.tbl-plans tbody th { width: 34%; font-weight: 500; color: var(--ink); }
@media (max-width: 760px) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack th, .tbl-stack td { display: block; width: 100% !important; }
  .tbl-stack tr { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .tbl-stack th, .tbl-stack td { border: 0; padding: 4px 0; text-align: start !important; }
  .tbl-stack tbody th { font-size: var(--fs-lg); margin-bottom: 6px; }
  .tbl-stack td[data-label]::before { content: attr(data-label); display: block; font: 500 var(--fs-xs)/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
  html[lang="ar"] .tbl-stack td[data-label]::before { font: 600 var(--fs-sm)/1.6 var(--f-body); letter-spacing: 0; text-transform: none; }
  .tbl-plans td { display: grid !important; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 10px !important; }
  .tbl-plans td[data-label]::before { margin: 0; }
  .tbl-cmp.tbl-stack td:last-child::before { content: attr(data-label); display: block; width: auto; height: auto; background: none; margin-inline-end: 0; }
  .tbl-q tr { padding-inline: 16px; display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .tbl-q td:nth-child(1), .tbl-q td:nth-child(2) { grid-column: 1 / -1; }
  .tbl-q td:nth-child(1)::before, .tbl-q td:nth-child(2)::before { display: none !important; }
  .tbl-q td:nth-child(2) { font-weight: 600; font-size: var(--fs-md); margin-bottom: 4px; }
  .quote .tbl td:first-child { padding-inline-start: 0; }
}

/* ---------------------------------------------------------------- services overview */
.map { border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: clamp(18px, 2.4vw, 28px); background: #fff; border-radius: var(--r); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 20px 0; align-items: center; }
.mbox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: #fff; border: 1.5px solid var(--navy); border-radius: var(--r); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mbox:hover { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.mbox .tile, .mbox-d .tile { min-width: 38px; height: 38px; font-size: var(--fs-body); }
.mb-t { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; color: var(--navy); }
html[lang="ar"] .mb-t { line-height: 1.5; font-weight: 700; }
.mb-b { display: block; font: 500 var(--fs-sm)/1.4 var(--f-mono); letter-spacing: .04em; color: var(--teal-text); margin-bottom: 4px; }
.mbox-d .mb-b { color: var(--gold-text); }
.mb-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-s { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--navy); font: 400 var(--fs-xs) var(--f-mono); border-radius: 2px; }
.mb-e { border: 2px solid var(--gold); color: var(--gold-text); font-weight: 500; }
.mb-sub { font: 400 var(--fs-xs) var(--f-mono); color: var(--mute); }
html[lang="ar"] .mb-sub { font: 500 var(--fs-sm) var(--f-body); }
.mbox-a { grid-column: 1; grid-row: 1 / span 3; justify-content: center; align-self: stretch; }
.mbox-b { grid-column: 3; grid-row: 1; } .mbox-c { grid-column: 3; grid-row: 2; } .mbox-d { grid-column: 3; grid-row: 3; }
.mflow { grid-column: 2; display: flex; flex-direction: column; gap: 8px; padding-inline: 14px; }
.mflow-b { grid-row: 1; } .mflow-c { grid-row: 2; } .mflow-d { grid-row: 3; }
.mline { position: relative; display: block; height: 2px; background: var(--teal); }
.mline::after { content: ""; position: absolute; inset-inline-end: -2px; top: -5px; border: 6px solid transparent; border-inline-start: 9px solid var(--teal); border-inline-end: 0; }
.mlab { font: 400 var(--fs-xs)/1.45 var(--f-mono); color: var(--teal-text); }
html[lang="ar"] .mlab { font: 500 var(--fs-sm)/1.6 var(--f-body); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); gap: 24px 48px; padding: 44px 0; border-top: 2px solid var(--navy); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-h { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.svc-h h2 { font-size: var(--fs-t2); letter-spacing: -.01em; }
.svc-sub { margin: 4px 0 6px; font-weight: 600; color: var(--ink-2); }
.svc-for p { color: var(--ink-2); margin: 0; }
.ticks li { position: relative; padding: 6px 0; padding-inline-start: 24px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.95em; width: 12px; height: 2px; background: var(--teal); }
html[lang="ar"] .ticks li::before { top: 1.1em; }

/* ---------------------------------------------------------------- inspection */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.opt { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--r); }
.opt-ink { background: var(--navy); color: #fff; border-color: var(--navy); border-top-color: var(--gold); }
.opt-ink h3 { color: #fff; }
.opt-k { color: var(--teal-text); margin-bottom: 12px; }
.opt-ink .opt-k { color: var(--teal-light); }
.opt h3 { font-size: var(--fs-t2); margin-bottom: 14px; }
.opt p:last-child { margin: 0; color: var(--ink-2); }
.opt-ink p:last-child { color: var(--on-dark-2); }
.indep { margin-top: 44px; max-width: 50em; padding-inline-start: 28px; border-inline-start: 4px solid var(--gold); }
.indep h2 { margin-bottom: 10px; }
.indep p { margin: 0; color: var(--ink-2); }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.phase { padding-top: 16px; border-top: 4px solid var(--navy); }
.phase:nth-child(3) { border-color: var(--teal); }
.phase:nth-child(4) { border-color: var(--gold); }
.phase-h { margin-bottom: 18px; color: var(--navy); }
.steps li { margin-bottom: 22px; }
.step-n { display: block; font-size: var(--fs-t3); font-weight: 600; color: var(--gold-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.steps h4 { font-size: var(--fs-body); letter-spacing: -0.005em; margin: 4px 0 6px; line-height: 1.25; }
html[lang="ar"] .steps h4 { line-height: 1.5; }
.steps p { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.5; margin: 0; }
.walk-art { margin: 0; }
.recv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; margin-bottom: 48px; }
.contents li { position: relative; padding: 12px 0; padding-inline-start: 26px; border-bottom: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink-2); }
.contents li::before { content: ""; position: absolute; inset-inline-start: 0; top: 21px; width: 10px; height: 10px; background: var(--teal); }
html[lang="ar"] .contents li::before { top: 25px; }
.contents strong { color: var(--navy); }
.quote .tbl { margin-top: 10px; }
.quote .tbl th:first-child, .quote .tbl td:first-child { padding-inline-start: 22px; }
.quote .tbl th:last-child, .quote .tbl td:last-child { padding-inline-end: 22px; }
.transp { margin-top: 48px; max-width: 50em; }
.transp h2 { margin-bottom: 12px; }
.plan { width: 100%; height: auto; display: block; }
.plan .pl-plot { fill: var(--surface); stroke: var(--navy); stroke-opacity: .3; stroke-dasharray: 4 4; }
.plan .pl-bw { fill: none; stroke: var(--navy); stroke-width: 7; }
.plan .pl-gate { stroke: var(--navy); stroke-width: 2; stroke-dasharray: 4 3; }
.plan .pl-house { fill: #fff; stroke: var(--navy); stroke-width: 4; }
.plan .pl-in { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.plan .pl-door { stroke: #fff; stroke-width: 6; }
.plan .pl-swing { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 3 3; }
.plan :is(.pl-stair, .pl-fix) { fill: var(--surface-2); stroke: var(--navy); stroke-width: 1.3; }
.plan .pl-bed { fill: #E7EEE3; stroke: var(--navy); stroke-width: 1.2; }
.plan .pl-shrub { fill: #D5E6D0; stroke: var(--navy); stroke-width: 1; }
.plan .pl-drip { stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 4 3; }
.plan .pl-pave { fill: var(--surface-2); }
.plan .pl-lab { fill: var(--mute); font: 500 15px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .plan .pl-lab { font: 600 16px var(--f-body); letter-spacing: 0; }
.plan .pl-mk rect { fill: var(--navy); }
.plan .pl-mk text { fill: #fff; font: 500 17px var(--f-mono); }

/* ---------------------------------------------------------------- systems */
.sys-index { padding-bottom: 40px; }
.sys-index ol { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); text-decoration: none; font-size: var(--fs-md); border-radius: var(--r); box-shadow: inset 0 -3px 0 var(--zc); }
.sys-index a:hover { border-color: var(--navy); background: var(--surface); }
.sys-index bdi { font-family: var(--f-mono); font-weight: 500; color: var(--navy); }
.sysrow { display: grid; grid-template-columns: 64px minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--head-h) + 20px); }
.sysrow:first-child { border-top: 2px solid var(--navy); }
.sysrow:target { background: color-mix(in srgb, var(--zc) 7%, #fff); box-shadow: -16px 0 0 color-mix(in srgb, var(--zc) 7%, #fff), 16px 0 0 color-mix(in srgb, var(--zc) 7%, #fff); }
.sys-tile { display: grid; place-items: center; width: 52px; height: 52px; background: var(--navy); color: #fff; font: 500 var(--fs-t3) var(--f-mono); border-radius: var(--r); box-shadow: inset 0 -5px 0 var(--zc); }
.sysrow h3 { padding-top: 10px; }
.sysrow p { margin: 0; }
.sysrow .mini-h { margin-bottom: 6px; font-size: var(--fs-xs); }
html[lang="ar"] .sysrow .mini-h { font-size: var(--fs-sm); }
.sysrow.has-ph { grid-template-columns: 64px minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); }
.sys-ph { align-self: start; }
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.score-text h2 { margin-bottom: 20px; }
.score-text .lead { margin-bottom: 16px; }
.score-text .mini-h { margin-top: 36px; }
.bands { display: flex; flex-wrap: wrap; gap: 8px; }
.bands li { padding: 6px 12px; font-weight: 600; font-size: var(--fs-md); border-radius: 2px; }
.bands .band-0 { background: #D6EADF; color: #1F5A3B; } .bands .band-1 { background: var(--good-bg); color: var(--good); }
.bands .band-2 { background: var(--high-bg); color: var(--high); } .bands .band-3 { background: var(--crit-bg); color: var(--crit); }
.bands .band-4 { background: var(--crit-bg); color: var(--crit); box-shadow: inset 0 0 0 1.5px var(--crit); }
.bands + .note { margin-top: 12px; }
.prio li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prio li .chip { justify-self: start; }
.prio p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.na { padding-bottom: 6px; }
.na > p { padding-inline: 22px; color: var(--ink-2); }
.na-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 22px 16px; }
.na-s { display: grid; place-items: center; width: 40px; height: 40px; background: var(--navy); color: #fff; font: 500 var(--fs-md) var(--f-mono); border-radius: 2px; }
.na-off { background: transparent; color: var(--mute); border: 1.5px dashed var(--line-2); }
.is h2 { margin-bottom: 20px; }
.is > div { padding: 18px 0; border-top: 1px solid var(--line); }
.is h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.is p { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- maintenance and workshop */
.maint { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.maint h2#trades-h { margin-bottom: 28px; }
.maint-side { position: sticky; top: calc(var(--head-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: clamp(24px, 3vw, 36px); border-radius: var(--r); }
.maint-side .h3 { margin-bottom: 18px; }
.maint-side .btn { width: 100%; justify-content: center; gap: 10px; }
.run li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 14px; padding-bottom: 18px; }
.run .step-n { grid-row: span 2; font-size: var(--fs-t2); }
.run h3 { font-size: var(--fs-body); }
.run p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.same { padding: 20px 0 24px; border-top: 1px solid var(--line); margin-top: 6px; }
.same .h3 { margin-bottom: 10px; font-size: var(--fs-lg); }
.same p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.pg-workshop .made { columns: 1; margin-top: 18px; }
.pull-timber { border-color: var(--gold); }
.rail4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rail4 li { position: relative; padding-top: 26px; }
.rail4 li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--gold); }
.rail4 .step-n { position: absolute; top: -18px; inset-inline-start: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-body); }
.rail4 h3 { margin: 18px 0 8px; font-size: var(--fs-lg); }
.rail4 p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.enquiry { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: clamp(22px, 3.4vw, 44px); scroll-margin-top: calc(var(--head-h) + 16px); border-radius: var(--r); box-shadow: var(--shadow); }
.enquiry h2 { font-size: var(--fs-t2); margin-bottom: 6px; }
.form-note { font-size: var(--fs-sm); color: var(--mute); margin-bottom: 24px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: var(--fs-md); margin-bottom: 8px; padding: 0; color: var(--ink); }
.req { color: var(--crit); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #7E8A9C; border-radius: var(--r); background: #fff; color: var(--ink);
  font: 400 var(--fs-md)/1.4 var(--f-body); transition: border-color .15s, box-shadow .15s; }
html[lang="ar"] :is(input, select, textarea) { line-height: 1.6; }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230B2A66' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 8px; background-position: right 16px center; padding-inline-end: 44px; }
[dir="rtl"] select { background-position: left 16px center; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 127, 126, .25); }
input[dir="ltr"] { text-align: left; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.field.invalid :is(input, select, textarea) { border: 2px solid var(--crit); }
.field-err { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--crit); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.tell { background: var(--teal-wash); padding: 14px 18px; margin: -6px 0 22px; border-inline-start: 3px solid var(--teal); }
.tell .mini-h { color: var(--teal-text); margin-bottom: 4px; font-size: var(--fs-xs); }
html[lang="ar"] .tell .mini-h { font-size: var(--fs-sm); }
.tell-p { margin: 0; font-size: var(--fs-md); }
.send { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.send .mini-h { margin-bottom: 12px; }
.send-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.btn-send { justify-content: center; gap: 10px; width: 100%; }
.btn-send .send-ico { width: 22px; height: 22px; flex: none; }
.btn-mail { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-mail:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-wa { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }
.btn-wa:hover { background: #01504F; border-color: #01504F; color: #fff; }
.send-note { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); margin: 14px 0 0; }
.send-note a { color: var(--teal-text); }
.form-status { margin: 0 0 22px; padding: 16px 18px; border-inline-start: 4px solid var(--navy); background: var(--surface); font-size: var(--fs-md); }
.form-status.ok { border-color: var(--good); background: var(--good-bg); color: #1E4A33; }
.form-status.err { border-color: var(--crit); background: var(--crit-bg); color: #6E2016; }
.form-status.info { border-color: var(--teal); background: var(--teal-wash); }
.form-status:focus { outline: 3px solid var(--teal); outline-offset: 2px; }
.fallback { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.fallback[hidden] { display: none; }
.fallback-text { flex-basis: 100%; white-space: pre-wrap; font: 400 var(--fs-sm)/1.55 var(--f-mono); background: #fff; border: 1px dashed var(--line-2); padding: 14px; max-height: 240px; overflow: auto; margin: 0; }
html[lang="ar"] .fallback-text { font-family: var(--f-body); font-size: var(--fs-md); line-height: 1.8; }
.direct { position: sticky; top: calc(var(--head-h) + 24px); }
.profile-dl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 24px; margin-bottom: 40px; background: var(--navy); color: #fff; border-radius: var(--r); border-top: 4px solid var(--gold); }
.profile-dl .pdf-ico { width: 40px; color: var(--teal-light); }
.profile-dl h2 { color: #fff; margin-bottom: 8px; }
.profile-dl p { color: var(--on-dark-2); font-size: var(--fs-md); margin-bottom: 16px; }
.profile-dl .profile-meta { font-size: var(--fs-sm); color: var(--on-dark-3); margin: 12px 0 0; }
.profile-dl .btn-teal:hover { background: #fff; border-color: #fff; color: var(--navy); }
.arr-down { width: 12px; height: 16px; }
[dir="rtl"] .arr-down { transform: none; }
.btn:hover .arr-down, [dir="rtl"] .btn:hover .arr-down { transform: translateY(2px); }
.direct-list { border-top: 2px solid var(--navy); margin-bottom: 40px; }
.direct-list li { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.d-k { color: var(--mute); font-size: var(--fs-xs); margin-bottom: 2px; }
html[lang="ar"] .d-k { font-size: var(--fs-sm); }
.direct-list a, .direct-list span:not(.d-k) { font-size: var(--fs-t3); font-weight: 600; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; color: var(--navy); }
.direct-list a:hover { color: var(--teal-text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- care: planned items */
.dev { margin-top: 36px; padding: 24px 26px; border: 1px dashed var(--line-2); background: var(--surface); border-radius: var(--r); }
.dev h2 { margin: 0 0 8px; }
.dev > p { margin: 0 0 14px; color: var(--ink-2); }
.dev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.dev-list p { margin: 0; }
.dev-list .dev-t { font-weight: 600; margin-bottom: 4px; }
.pending { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border: 1px dashed #8A5A00; background: #FFF4D6; color: #6B4600; font: 600 var(--fs-xs)/1.5 var(--f-body); border-radius: 2px; vertical-align: middle; }

/* ---------------------------------------------------------------- contact: the Doha skyline
   The heading sits in the open sky; the photograph has no frame: a mask fades its sky into the section's own sky colour
   (#0E3976, sampled from the photograph's upper edge) and its water into navy, where the form section continues.
   --sky-ov is how far the photograph's faded sky runs up behind the text: chosen so the tallest tower (36.6% down the
   photograph) stands about 7vw below the introduction. --body-ov is how far the form runs over the faded water. */
.sky { --sky-top: #0E3976; --sky-ov: min(calc(12.96vw + 24px), 230px); --body-ov: clamp(48px, 8vw, 132px);
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--sky-top) 0%, #0C3471 40%, var(--navy) 100%); }
/* overflow: hidden keeps the photograph's 3% entrance scale from widening the page */
.sky .crumbs, .sky .crumbs a { color: var(--on-dark-2); }
.sky .crumbs a:hover { color: var(--teal-light); }
.sky .crumbs [aria-current] { color: #fff; }
.sky .crumbs li + li::before { color: var(--dark-line); }
.sky-head { position: relative; z-index: 2; padding-top: clamp(20px, 2.6vw, 36px); padding-bottom: clamp(40px, 5vw, 72px); }
.sky-head .eyebrow { color: var(--teal-light); }
.sky-head h1 { color: #fff; font-size: var(--fs-h1); max-width: 15em; margin-bottom: var(--sp-5); }
.sky-head .lead { color: var(--on-dark-2); max-width: 38em; }
.sky-photo .sky-head { padding-bottom: var(--sp-5); }
.sky-art { position: relative; z-index: 1; margin-top: calc(-1 * var(--sky-ov)); height: min(54.55vw, 820px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 70%, transparent 100%); }
.sky-art picture, .sky-art img { display: block; width: 100%; height: 100%; }
.sky-art img { object-fit: cover; object-position: 50% 40%; transform: translate3d(0, var(--sky-y, 0px), 0); }
/* shading: darker towards the sides and behind the heading, the skyline itself left untouched */
.sky-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at var(--sky-tx, 18%) 0%, rgba(6, 28, 74, .55), rgba(6, 28, 74, 0) 70%),
              linear-gradient(90deg, rgba(8, 31, 77, .5) 0%, rgba(8, 31, 77, 0) 16%, rgba(8, 31, 77, 0) 84%, rgba(8, 31, 77, .5) 100%); }
[dir="rtl"] .sky-art::after { --sky-tx: 82%; }
.sky-tag { position: absolute; z-index: 2; inset-inline-end: var(--gut); bottom: calc(var(--body-ov) + var(--sp-4)); margin: 0;
  padding: 3px 8px; background: rgba(8, 31, 77, .88); color: var(--on-dark-2); font: 500 var(--fs-xs)/1.4 var(--f-mono); letter-spacing: .04em; border-radius: 2px; }
html[lang="ar"] .sky-tag { font-family: var(--f-body); font-size: var(--fs-sm); letter-spacing: 0; }
/* the form section continues the navy; its top --body-ov stays clear so the fading water shows around the form */
.contact-body { --body-ov: clamp(48px, 8vw, 132px); position: relative; z-index: 2; padding-top: 0; background: var(--navy); }
.sky-photo + .contact-body { margin-top: calc(-1 * var(--body-ov)); background: linear-gradient(180deg, transparent var(--body-ov), var(--navy) var(--body-ov)); }
.contact-body .enquiry { border-top: 4px solid var(--teal); box-shadow: 0 30px 60px -30px rgba(2, 12, 36, .6); }
/* contact details beside the form, on navy */
.contact-body .direct .mini-h { color: var(--on-dark-3); }
.contact-body .profile-dl { background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); border-top: 3px solid var(--teal-light); }
.contact-body .direct-list { border-top-color: var(--teal-light); }
.contact-body .direct-list li { border-bottom-color: var(--dark-line); }
.contact-body .d-k { color: var(--teal-light); }
.contact-body .direct-list a, .contact-body .direct-list span:not(.d-k) { color: #fff; }
.contact-body .direct-list a:hover { color: var(--teal-light); }
.contact-body .run h3 { color: #fff; }
.contact-body .run p { color: var(--on-dark-2); }
.contact-body .run .step-n { color: var(--gold); }
/* entrance: the photograph settles in, the heading rises; nothing moves with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .sky-photo .sky-art { animation: skyin 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .sky-head > * { animation: skyrise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .sky-head > :nth-child(2) { animation-delay: .08s; } .sky-head > :nth-child(3) { animation-delay: .16s; }
}
@keyframes skyin { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes skyrise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .sky, .contact-body { --body-ov: 40px; }
  .sky { --sky-ov: calc(6vw + 24px); }
  .sky-art { height: 75vw; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 64%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 64%, transparent 100%); }
  .sky-art img { object-position: 50% 50%; }
  .sky-art::after { background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(6, 28, 74, .5), rgba(6, 28, 74, 0) 70%),
    linear-gradient(90deg, rgba(8, 31, 77, .35) 0%, rgba(8, 31, 77, 0) 12%, rgba(8, 31, 77, 0) 88%, rgba(8, 31, 77, .35) 100%); }
}

/* ---------------------------------------------------------------- legal and 404 */
.legal { max-width: calc(780px + 2 * var(--gut)); padding-top: 40px; padding-bottom: var(--sec); }
.legal h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.updated { font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--mute); margin-bottom: 40px; }
html[lang="ar"] .updated { font-family: var(--f-body); font-size: var(--fs-sm); }
.legal h2 { font-size: var(--fs-t3); margin: 36px 0 12px; }
.legal p { color: var(--ink-2); }
.nf { padding-bottom: var(--sec); }
.nf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.nf-links li { border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- insights */
.ins-list { border-top: 2px solid var(--navy); }
.ins-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ins-n { font: 500 var(--fs-md)/1.9 var(--f-mono); color: var(--gold-text); }
.ins-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 8px; font: 500 var(--fs-xs)/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
html[lang="ar"] .ins-meta { font: 600 var(--fs-sm)/1.7 var(--f-body); letter-spacing: 0; text-transform: none; }
.ins-meta .dot, .art-meta .dot { margin-inline: 10px; }
.ins-t { font-size: var(--fs-t2); line-height: 1.2; margin-bottom: 8px; }
html[lang="ar"] .ins-t { line-height: 1.5; font-size: var(--fs-t3); }
.ins-list-big .ins-t { font-size: var(--fs-t2); }
html[lang="ar"] .ins-list-big .ins-t { font-size: var(--fs-t2); }
.ins-t a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
[dir="rtl"] .ins-t a { background-position: 100% 100%; }
.ins-t a:hover { color: var(--teal-text); background-size: 100% 1.5px; }
.ins-dek { margin: 0; color: var(--ink-2); max-width: 42em; }
.schips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 190px; }
.schip { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); font: 500 var(--fs-xs) var(--f-mono); color: var(--navy); text-decoration: none; border-radius: 2px; }
a.schip { width: 44px; height: 44px; font-size: var(--fs-sm); border-color: var(--navy); }
a.schip:hover { background: var(--navy); color: #fff; }
.schips .schip-more { width: auto; padding-inline: 8px; font-size: var(--fs-xs); }
.fr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
html[lang="ar"] .fr-head .h3 { font-size: var(--fs-t3); }
.further { padding-top: var(--sec); }
.art-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.art-head h1 { font-size: var(--fs-h1); max-width: 16em; margin-bottom: var(--sp-5); }
html[lang="ar"] .art-head h1 { font-size: calc(var(--fs-h1) * .88); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 18px 0 0; font-size: var(--fs-md); color: var(--mute); }
.art-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 40px clamp(40px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); padding-top: 40px; }
.art-rule { border: 0; border-top: 2px solid var(--navy); margin: 0; }
.art-side { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
.art-side .schips { max-width: none; margin-bottom: 32px; }
.toc { counter-reset: t; border-top: 1px solid var(--line); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 9px 0; font-size: var(--fs-md); line-height: 1.4; text-decoration: none; color: var(--ink-2); }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 var(--fs-xs)/1.9 var(--f-mono); color: var(--mute); }
.toc a:hover { color: var(--teal-text); }
.art-body { font-size: var(--fs-lg); line-height: 1.7; }
html[lang="ar"] .art-body { font-size: var(--fs-lg); line-height: 1.95; }
.art-body p { color: var(--ink-2); margin-bottom: 1.1em; }
.art-sec { padding-top: 12px; margin-bottom: 36px; scroll-margin-top: calc(var(--head-h) + 20px); }
.art-sec h2 { font-size: var(--fs-t2); margin-bottom: 16px; }
html[lang="ar"] .art-sec h2 { font-size: var(--fs-t2); line-height: 1.5; }
.art-sec ul { margin: 0 0 1.2em; }
.art-sec ul li { position: relative; padding: 8px 0; padding-inline-start: 26px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.art-sec ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.25em; width: 12px; height: 2px; background: var(--teal); }
.keypoints { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--teal); padding: 22px 26px; margin-bottom: 40px; }
.keypoints .mini-h { color: var(--teal-text); margin-bottom: 10px; }
.keypoints li { position: relative; padding: 6px 0; padding-inline-start: 22px; font-size: var(--fs-body); line-height: 1.55; }
.keypoints li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.95em; width: 8px; height: 8px; background: var(--navy); }
html[lang="ar"] .keypoints li::before { top: 1.15em; }
.art-sources { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.art-sources li { font-size: var(--fs-md); padding: 4px 0; }
.art-sources a { color: var(--teal-text); }
.art-cta { margin-top: 48px; padding: 28px; background: var(--navy); color: #fff; border-radius: var(--r); border-top: 4px solid var(--gold); }
.art-body .art-cta-t { font-size: var(--fs-t3); font-weight: 600; color: #fff; margin-bottom: 18px; }
.art-cta .btn { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }
.art-cta .btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.art-cta .lnk { color: var(--teal-light); }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--surface); padding: clamp(48px, 6vw, 72px) 0 32px; border-top: 1px solid var(--line); }
.tb { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line-2); }
.tb-cell { padding: 28px; border-inline-start: 1px solid var(--line); }
.tb-cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.tb-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.tb-tag { font-weight: 600; font-size: var(--fs-md); margin-bottom: 8px; color: var(--navy); }
.tb-about { font-size: var(--fs-md); color: var(--mute); margin: 0; max-width: 34em; }
.tb-h { color: var(--navy); font-size: var(--fs-xs); margin-bottom: 14px; }
html[lang="ar"] .tb-h { font-size: var(--fs-sm); }
.tb li { margin-bottom: 4px; }
.tb a { text-decoration: none; font-size: var(--fs-md); display: inline-flex; min-height: 36px; align-items: center; }
.tb a:hover { color: var(--teal-text); text-decoration: underline; text-underline-offset: 4px; }
.tb-contact li { font-size: var(--fs-md); }
.tb .tb-svc { margin-bottom: var(--sp-2); }
.tb .tb-svc a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; justify-content: center; }
.tb .tb-svc a:hover { text-decoration: none; }
.tb .tb-svc a:hover .svc-t { color: var(--teal-text); text-decoration: underline; text-underline-offset: 4px; }
.tb-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 18px; color: var(--mute); font-size: var(--fs-xs); }
html[lang="ar"] .tb-base { font-size: var(--fs-sm); }
.tb-base p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.dot { display: inline-block; width: 4px; height: 4px; background: var(--line-2); margin-inline: 12px; }
.tb-page { margin-inline-end: 24px; }
.lang-foot { color: var(--navy); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
html[lang="en"] .lang-foot { font-family: "Noto Arabic", var(--f-sans); font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; }
html[lang="ar"] .lang-foot { font-family: var(--f-sans); }
.lang-foot:hover { color: var(--teal-text); }

/* ---------------------------------------------------------------- root language page */
.pg-root { min-height: 100vh; display: grid; place-items: center; background: var(--surface); }
.root-choose { text-align: center; padding: 40px 16px; }
.root-choose img { margin: 0 auto 24px; width: 150px; }
.root-tag { font-size: var(--fs-lg); margin: 0 0 4px; color: var(--navy); }
.root-tag[lang="ar"], .root-choose li a[lang="ar"] { font-family: "Noto Arabic", sans-serif; }
.root-choose ul { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sysrow.has-ph { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
  .sysrow.has-ph .sys-ph { grid-column: 2 / -1; max-width: 420px; }
  .vx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .phases { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .phase { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .phase .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
  .method, .philo { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .philo { row-gap: 0; }
  .sysrow { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
  .sysrow h3 { grid-column: 2 / span 2; padding-top: 12px; }
  .sysrow > div:nth-of-type(1) { grid-column: 2; }
  .sysrow > div:nth-of-type(2) { grid-column: 3; }
  .sys-tile { grid-row: span 2; }
  .tb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-inline-end: 0; }
  .tb-cell:nth-child(2) { border-inline-start: 0; padding-inline-start: 0; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .journey li:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .journey li:nth-child(3)::after { display: none; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero, .split-h, .two-col, .climate, .evidence, .evidence-foot, .shop, .cta-grid, .score-grid, .recv, .maint, .contact-grid, .svc { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-areas: "text" "art" "actions"; grid-template-rows: none; gap: 20px; padding-top: 28px; }
  .hero-text { padding-top: 0; }
  .split-h { align-items: start; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-list li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .proof-list li { padding: 20px 16px 22px; }
  .proof-list li:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .rules, .glossary { grid-template-columns: minmax(0, 1fr); }
  .rail4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .maint-side, .direct { position: static; }
  .map-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .mbox-a, .mbox-b, .mbox-c, .mbox-d, .mflow { grid-column: 1; grid-row: auto; }
  .mflow { flex-direction: row; align-items: center; padding: 12px 0; padding-inline: 20px 0; gap: 14px; }
  .mline { width: 2px; height: 44px; flex: none; }
  .mline::after { inset-inline-end: auto; inset-inline-start: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--teal); border-bottom: 0; }
  .mbox-a { order: 1; } .mflow-b { order: 2; } .mbox-b { order: 3; } .mflow-c { order: 4; } .mbox-c { order: 5; } .mflow-d { order: 6; } .mbox-d { order: 7; }
  .route { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 0; }
  .route-a { grid-column: 1; grid-row: 2; }
  .route .arr { grid-row: 1 / span 2; grid-column: 2; }
  .facts > div, .glossary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .qfacts { grid-template-columns: minmax(0, 1fr); }
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-side { position: static; }
  .art-side nav { display: none; }
  .ins-row { grid-template-columns: 40px minmax(0, 1fr); }
  .ins-row .schips { grid-column: 2; max-width: none; }
  .dev-list { grid-template-columns: minmax(0, 1fr); }
  /* explorer: full width under the introduction */
  .hero-art { margin-inline: calc(-1 * var(--gut) + 8px); }
  .vx-pin { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: var(--fs-body); }
  .vx-pin::before { inset: -4px; }
  .vx-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .btn { padding-inline: 20px; }
  .profile-dl { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .profile-dl .btn { width: 100%; }
  .hero { padding-top: 20px; gap: 14px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(36px, 10.4vw, 44px); }
  html[lang="ar"] .hero h1 { font-size: clamp(31px, 8.8vw, 38px); }
  .hero .lead { font-size: var(--fs-body); margin-bottom: 0; }
  .hero-actions .btn-row { margin-bottom: 18px; }
  .aud { font-size: var(--fs-md); line-height: 1.5; }
  .phases, .method, .philo, .why, .rail4, .row2, .lines { grid-template-columns: minmax(0, 1fr); }
  .philo li { border-inline-start: 0; border-top: 1px solid #fff; }
  .made { columns: 1; }
  .curve-caps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .curve .ch, .curve .cost { font-size: 24px; }
  html[lang="ar"] .curve :is(.ch, .cost) { font-size: 25px; }
  .sysrow { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 16px; }
  .sys-tile { width: 44px; height: 44px; font-size: var(--fs-t3); grid-row: auto; }
  .sysrow h3 { grid-column: 2; padding-top: 6px; }
  .sysrow > div:nth-of-type(1), .sysrow > div:nth-of-type(2), .sysrow.has-ph .sys-ph { grid-column: 1 / -1; max-width: none; }
  .reg-row { grid-template-columns: minmax(0, 1fr) auto; }
  .reg-sys { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
  .reg-tx { grid-column: 1 / -1; }
  .reg-row .chip { grid-column: 1; justify-self: start; }
  .reg-tot { grid-template-columns: minmax(0, 1fr); gap: 14px; text-align: start; }
  .reg-tot > div { display: flex; align-items: baseline; gap: 12px; }
  .reg-n { display: inline; min-width: 2.2ch; font-size: var(--fs-t3); }
  .score-top { grid-template-columns: 130px minmax(0, 1fr); padding-inline: 16px; }
  .dial { width: 130px; }
  .bars { padding-inline: 16px; }
  .bars li { grid-template-columns: minmax(0, 1fr) 70px 28px; gap: 10px; font-size: var(--fs-sm); }
  .prio li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tb { grid-template-columns: minmax(0, 1fr); }
  .tb-cell { border-inline-start: 0 !important; padding-inline: 0 !important; border-bottom: 1px solid var(--line); }
  .tb-cell:last-child { border-bottom: 0; }
  .btn-row .btn { width: 100%; }
  .doc-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-inline: 16px; }
  .reg-row, .doc-note, .doc-sub { padding-inline: 16px; }
  .tbl-plans td { grid-template-columns: 96px minmax(0, 1fr); }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .phase .steps { grid-template-columns: minmax(0, 1fr); }
  .send-row { grid-template-columns: minmax(0, 1fr); }
  .plan .pl-lab { font-size: 18px; }
  html[lang="ar"] .plan .pl-lab { font-size: 19px; }
  .plan .pl-mk text { font-size: 19px; }
  .journey { grid-template-columns: minmax(0, 1fr); border-top: 0; row-gap: 0; }
  .journey li, .journey li:first-child, .journey li:nth-child(4) { border-inline-start: 2px solid var(--navy); padding: 0 0 22px; padding-inline: 22px 0; }
  .journey li:not(:last-child)::after { display: block !important; top: 2px; inset-inline-end: auto; inset-inline-start: -8px; }
  .journey li:last-child { border-inline-start-color: transparent; }
  .journey li:last-child::before { content: ""; position: absolute; top: 2px; inset-inline-start: -8px; width: 12px; height: 12px; border: 2px solid var(--navy); border-radius: 50%; background: var(--navy); }
  .ph-wide img { aspect-ratio: 16 / 10; }
  /* explorer on phones: drawing edge to edge, system list as one scrolling row so the panel sits right under it */
  .hero-art { margin-inline: calc(-1 * var(--gut)); }
  .vx { --vx-pad: 12px; }
  .vx-fig { border-inline: 0; border-radius: 0; padding-inline: 4px; }
  .vx-hint { margin-inline-start: 8px; }
  .vx-cap { padding-inline: 8px; }
  .vx-list { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 12px 10px; border-inline: 0; scrollbar-width: thin; }
  .vx-list li { flex: none; scroll-snap-align: start; }
  .vx-chip { white-space: nowrap; min-height: 46px; }
  .vx-panels { border-inline: 0; border-radius: 0; }
  .vx-pin { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: var(--fs-md); }
  .vx-pin::before { inset: -5px; }
  .vx-main:has(.vx-ph) { grid-template-columns: minmax(0, 1fr); }
  .vx-cols { grid-template-columns: minmax(0, 1fr); }
  .why li { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 0; }
}
@media (max-width: 380px) {
  .vx-pin { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: var(--fs-md); }
  .vx-pin::before { inset: -5px; }
}

/* ---------------------------------------------------------------- motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .villa.pre .draw, .js .villa.drawing .draw * { opacity: 1 !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
  .js .villa.drawing .draw polygon { fill-opacity: 1 !important; }
}
@media print {
  .site-head, .cta-band, .site-foot .tb-base a, .menu-btn, .skip, .vx-list, .vx-ctl { display: none !important; }
  body { background: #fff; }
  .band-ink, .proof { background: #fff; color: #000; }
}
.line .line-more { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; }

/* ---------------------------------------------------------------- icons (drawings.ICONS, one sprite per page) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line-k { justify-content: space-between; width: 100%; }
.line-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--teal-wash); color: var(--teal-text); }
.line-ico .ico { width: 28px; height: 28px; }
.line-craft .line-ico { background: var(--gold-wash); color: var(--gold-text); }
.line-n { font: 500 var(--fs-sm)/1 var(--f-mono); color: var(--mute); }
p.line-lab { margin: 0; }
.svc-h .line-ico { width: 60px; height: 60px; }
.svc-h .line-ico .ico { width: 32px; height: 32px; }
#line-d .line-ico { background: var(--gold-wash); color: var(--gold-text); }
.vx-tile, .sys-tile { position: relative; color: #fff; }
.vx-tile .ico, .sys-tile .ico { width: 24px; height: 24px; stroke-width: 1.8; }
.vx-tile b, .sys-tile b { position: absolute; top: -7px; inset-inline-end: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; border-radius: 10px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--zc); font: 500 var(--fs-xs)/1 var(--f-mono); }
.sys-tile { width: 52px; height: 52px; }
.sys-index a .ico { width: 18px; height: 18px; color: var(--zc); }

/* ---------------------------------------------------------------- about: the team's previous experience */
.team { border-top: 4px solid var(--gold); }
.team-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 80px; align-items: start; }
.team .eyebrow { color: var(--teal-light); }
.team h2 { color: #fff; max-width: 12em; }
.team .lead-light { margin-top: 0; }
.team-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 28px 0 0; }
.team-facts > div { padding: 18px 0; border-top: 1px solid var(--dark-line); }
.team-facts dt { font-size: var(--fs-stat); font-weight: 600; color: #fff; letter-spacing: -.02em; line-height: 1.15; }
.team-facts dd { margin: 6px 0 0; color: var(--on-dark-2); font-size: var(--fs-md); }
.team .team-note { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--on-dark-3); }
@media (max-width: 960px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .team-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---- villa drawing (generated from drawings.STYLE) ---- */
.villa .f{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1.1;stroke-linejoin:round}
.villa .par{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1}
.villa .tank{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1.1}
.villa .ac{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1.1}
.villa .bw{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1}
.villa .bed{fill:#E7EEE3;stroke:#0B2A66;stroke-width:1}
.villa polygon.fx{fill:#DCE3EC}
.villa polygon.fy{fill:#EDF1F6}
.villa polygon.ft{fill:#FFFFFF}
.villa .plot{fill:#F7F9FB;stroke:#0B2A66;stroke-opacity:.3;stroke-dasharray:4 4}
.villa .pave{fill:#E3E8EF;stroke:none}
.villa .gpave{fill:#E3E8EF;stroke:#0B2A66;stroke-width:.7}
.villa .joint{stroke:#0B2A66;stroke-opacity:.35;stroke-width:.6}
.villa .w{fill:#D3E2EC;stroke:#0B2A66;stroke-width:.9}
.villa .glaze{fill:#C9DAE6}
.villa .door{fill:#D9C3A1;stroke:#0B2A66;stroke-width:1}
.villa .screen{fill:#E9D9BF;stroke:#0B2A66;stroke-width:.9}
.villa .lat{stroke:#8A6A43;stroke-width:.6}
.villa .db{fill:#FFFFFF;stroke:#0B2A66;stroke-width:1}
.villa .lamp{fill:#FFFFFF;stroke:#0B2A66;stroke-width:.8}
.villa .ext{fill:#C9372C;stroke:#0B2A66;stroke-width:.8}
.villa .pipe{fill:none;stroke:#0B2A66;stroke-width:1.4;stroke-linejoin:round}
.villa .chamber{fill:#DCE3EC;stroke:#0B2A66;stroke-width:.8}
.villa .l{stroke:#0B2A66;stroke-width:1.1}
.villa .thin{stroke-width:.7}
.villa .crack{fill:none;stroke:#A3372A;stroke-width:1.5}
.villa .shrub{fill:#D5E6D0;stroke:#0B2A66;stroke-width:1}
.villa .drip{fill:none;stroke:#017F7E;stroke-width:1.2;stroke-dasharray:3 3}
.villa .fan{fill:none;stroke:#0B2A66;stroke-width:.8}
.villa .pin{fill:#017F7E}
.villa .lead{stroke:#017F7E;stroke-width:1.1}
.villa .tagend{fill:#017F7E}
.bar i[data-w="74"]{width:74%}.bar i[data-w="78"]{width:78%}.bar i[data-w="79"]{width:79%}.bar i[data-w="80"]{width:80%}.bar i[data-w="83"]{width:83%}.bar i[data-w="85"]{width:85%}.bar i[data-w="88"]{width:88%}.bar i[data-w="90"]{width:90%}
/* villa explorer marker positions (generated from drawings.ANCHORS) */
.vx-pin[data-sys="A"]{left:39.39%;top:29.13%}.vx-pin[data-sys="B"]{left:59.48%;top:8.17%}.vx-pin[data-sys="C"]{left:37.41%;top:6.88%}.vx-pin[data-sys="D"]{left:76.58%;top:53.32%}.vx-pin[data-sys="E"]{left:18.79%;top:61.35%}.vx-pin[data-sys="F"]{left:9.56%;top:79.52%}.vx-pin[data-sys="G"]{left:85.74%;top:34.33%}.vx-pin[data-sys="H"]{left:67.02%;top:91.15%}
/* system colours (generated from drawings.SYS_COLOR) */
[data-sys="A"],[data-z="A"],.sys-a{--zc:#C98200}[data-sys="B"],[data-z="B"],.sys-b{--zc:#0E9FC4}[data-sys="C"],[data-z="C"],.sys-c{--zc:#2F5BEA}[data-sys="D"],[data-z="D"],.sys-d{--zc:#B83280}[data-sys="E"],[data-z="E"],.sys-e{--zc:#9A5B2E}[data-sys="F"],[data-z="F"],.sys-f{--zc:#6D4CD1}[data-sys="G"],[data-z="G"],.sys-g{--zc:#D0342C}[data-sys="H"],[data-z="H"],.sys-h{--zc:#2E8B47}
