/* =====================================================================
   MSIS — main stylesheet (RTL, Arabic first)
   Palette from the logo: burgundy, gold, charcoal, sand.
   ===================================================================== */

:root {
  --burgundy: #79111D;
  --burgundy-dark: #5C0D16;
  --burgundy-soft: #F4E7E8;
  --gold: #D98E1D;
  --gold-dark: #B87411;
  --charcoal: #1F1B1C;
  --charcoal-2: #2B2627;
  --sand: #F7F1E8;
  --sand-2: #EFE5D5;
  --text: #111010;
  --muted: #6B6466;
  --line: #E6DFD6;
  --white: #FFFFFF;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 27, 28, .06), 0 8px 24px rgba(31, 27, 28, .08);
  --shadow-lg: 0 20px 50px rgba(31, 27, 28, .16);
  --container: 1200px;
  --header-h: 84px;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--burgundy-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--charcoal); padding: 8px 16px; border-radius: 6px; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: #E59B2B; color: var(--charcoal); box-shadow: 0 8px 20px rgba(217, 142, 29, .35); }
.btn-burgundy { background: var(--burgundy); color: var(--white); }
.btn-burgundy:hover { background: var(--burgundy-dark); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--white); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: #CFC8C9; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #E9E4E4; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: var(--gold); }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--gold); }
.topbar-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 27, 28, .08); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--charcoal); flex: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; direction: ltr; text-align: right; }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; justify-content: center; gap: 2px; }
.main-nav a, .main-nav .nav-trigger {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  color: var(--charcoal); font-weight: 600; font-size: .98rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-trigger:hover, .main-nav .has-sub:focus-within > .nav-trigger { color: var(--burgundy); background: var(--burgundy-soft); }
.main-nav a.is-active, .main-nav .nav-trigger.is-active { color: var(--burgundy); }
.main-nav a.is-active::after { content: ""; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s; }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); z-index: 20;
}
.submenu::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav-caret, .has-sub.is-open .nav-caret { transform: rotate(180deg); }
.submenu a { padding: 9px 12px; font-weight: 600; font-size: .95rem; }
.submenu a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.submenu-mega { width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; inset-inline-start: 50%; transform: translate(50%, 6px); }
.has-sub:hover > .submenu-mega, .has-sub:focus-within > .submenu-mega, .has-sub.is-open > .submenu-mega { transform: translate(50%, 0); }
.submenu-mega a { align-items: flex-start; gap: 12px; }
.submenu-mega .icon { width: 36px; height: 36px; padding: 7px; border-radius: 8px; background: var(--sand); color: var(--burgundy); }
.submenu-mega .all-wrap { grid-column: 1 / -1; }
.submenu-mega .all { justify-content: center; background: var(--sand); margin-top: 4px; color: var(--burgundy); }

.header-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--charcoal); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.mobile-only { display: none; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--charcoal); color: #E9E4E4; }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.bg-dark .section-head p { color: #BDB5B6; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--burgundy); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.bg-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section-foot { margin-top: 40px; text-align: center; }

/* Stripes motif from the logo */
.stripes { display: inline-flex; flex-direction: column; gap: 6px; }
.stripes span { display: block; height: 5px; border-radius: 3px; background: var(--gold); }
.stripes span:nth-child(1) { width: 120px; }
.stripes span:nth-child(2) { width: 104px; }
.stripes span:nth-child(3) { width: 88px; }
.stripes span:nth-child(4) { width: 72px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--white); isolation: isolate; }
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::after { /* burgundy wedge */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; inset-inline-end: -8%; width: 52%;
  background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: 560px; padding-block: 80px 120px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-lead { font-size: 1.2rem; color: #D9D2D3; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.hero-art .ring.r2 { inset: 12%; border-color: rgba(217, 142, 29, .45); border-style: dashed; animation: spin 60s linear infinite; }
.hero-art .ring.r3 { inset: 26%; border-color: rgba(255, 255, 255, .12); }
.hero-art .logo-disc { position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); padding: 6%; }
.hero-art .badge { position: absolute; background: var(--white); color: var(--charcoal); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.hero-art .badge .icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--burgundy-soft); color: var(--burgundy); }
.hero-art .badge small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.hero-art .b1 { top: 6%; inset-inline-start: -6%; }
.hero-art .b2 { bottom: 14%; inset-inline-end: -10%; }
.hero-art .b3 { bottom: -2%; inset-inline-start: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -64px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 30px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat-value { display: block; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; color: var(--burgundy); line-height: 1.2; direction: ltr; }
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal); box-shadow: var(--shadow-lg); }
.video-embed img, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-embed button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: linear-gradient(0deg, rgba(31, 27, 28, .55), rgba(31, 27, 28, .1)); cursor: pointer; display: grid; place-items: center; }
.video-embed .play { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--charcoal); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(217, 142, 29, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.video-embed .play .icon { width: 34px; height: 34px; margin-left: 5px; }
.video-embed .video-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--burgundy) 0%, var(--charcoal) 70%); }
.video-embed .video-fallback img { position: static; width: 34%; height: auto; opacity: .9; }
.video-embed button:hover .play { transform: scale(1.07); box-shadow: 0 0 0 18px rgba(217, 142, 29, .22); }

/* ---------- Service groups ---------- */
.groups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.group-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; position: relative; overflow: hidden; color: inherit; }
.group-card:nth-child(4), .group-card:nth-child(5) { grid-column: span 3; }
.group-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.group-card:hover::after { transform: scaleX(1); }
.group-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--burgundy); color: var(--white); display: grid; place-items: center; margin-bottom: 18px; }
.group-icon .icon { width: 28px; height: 28px; }
.group-card h3 { margin-bottom: 8px; }
.group-card p { color: var(--muted); font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--charcoal); font-size: .83rem; font-weight: 600; }

/* ---------- Divisions ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.division-card { background: var(--charcoal-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: 32px; color: #D9D2D3; transition: .25s var(--ease); display: flex; flex-direction: column; }
.division-card:hover { transform: translateY(-4px); border-color: var(--gold); color: #D9D2D3; }
.division-code { display: inline-block; align-self: flex-start; font-weight: 800; letter-spacing: .06em; padding: 4px 12px; border-radius: 6px; background: var(--gold); color: var(--charcoal); font-size: .85rem; margin-bottom: 18px; direction: ltr; }
.division-card h3 { color: var(--white); margin-bottom: 4px; }
.division-tag { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.division-card .link-arrow { margin-top: auto; color: var(--white); }

/* ---------- Why / values ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.why-item .icon { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--burgundy-soft); color: var(--burgundy); margin-bottom: 12px; }
.why-item h3 { font-size: 1.06rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.7; }

.values-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: v; }
.value-item { position: relative; padding: 28px 22px 24px; border-radius: var(--radius); background: var(--white); border-top: 4px solid var(--burgundy); box-shadow: var(--shadow); }
.value-item::before { counter-increment: v; content: "0" counter(v); display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.value-item h3 { font-size: 1.05rem; }
.value-item p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.7; }

/* ---------- Clients ---------- */
.client-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.client-sector { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.client-sector h3 { font-size: 1rem; color: var(--burgundy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.client-sector h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.client-names { display: flex; flex-wrap: wrap; gap: 8px; }
.client-name { padding: 6px 12px; border-radius: 6px; background: var(--sand); font-size: .88rem; font-weight: 600; }

/* ---------- Projects (cards) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); color: inherit; transition: .25s var(--ease); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.project-thumb { aspect-ratio: 16 / 10; background: var(--charcoal); position: relative; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb.placeholder { display: grid; place-items: center; color: rgba(255, 255, 255, .35); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.project-thumb.placeholder .icon { width: 56px; height: 56px; }
.status-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--white); color: var(--charcoal); }
.status-badge.ongoing { background: var(--gold); }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.project-meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); color: inherit; }
.news-card .body { padding: 20px 22px; }
.news-date { color: var(--gold-dark); font-size: .85rem; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--burgundy); color: var(--white); overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: -5%; width: 40%; background: var(--burgundy-dark); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #F1DADC; font-size: 1.1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--charcoal); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: -6%; width: 34%; background: var(--burgundy); clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero .container { padding-block: 64px 72px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: #D9D2D3; max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #BDB5B6; margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span[aria-hidden] { opacity: .6; }

/* ---------- Content blocks ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.lead { font-size: 1.15rem; color: var(--charcoal); }
.prose p { color: #3A3536; }
.fact-card { background: var(--sand); border-radius: var(--radius-lg); padding: 28px; border-inline-start: 4px solid var(--gold); }
.fact-card dl { margin: 0; display: grid; gap: 16px; }
.fact-card dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.fact-card dd { margin: 0; font-weight: 700; color: var(--charcoal); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm-card { padding: 36px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 6px; height: 100%; background: var(--burgundy); }
.vm-card.alt::before { background: var(--gold); }
.vm-card p { margin: 0; color: #3A3536; font-size: 1.05rem; }
.office-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.office { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); display: flex; gap: 12px; align-items: flex-start; }
.office .icon { color: var(--burgundy); width: 24px; height: 24px; margin-top: 4px; }
.office strong { display: block; }
.office small { color: var(--muted); }
.office.hq { border-color: var(--burgundy); background: var(--burgundy-soft); }

/* Leaders */
.leaders { display: grid; gap: 28px; }
.leader { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); align-items: start; }
.leader-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--charcoal); display: grid; place-items: center; overflow: hidden; color: var(--gold); font-size: 3.2rem; font-weight: 800; position: relative; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--burgundy); }
.leader h2 { font-size: 1.5rem; margin-bottom: 2px; }
.leader .position { color: var(--burgundy); font-weight: 700; margin-bottom: 14px; }
.leader p { color: #3A3536; }
.disciplines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.discipline { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.discipline .icon { color: var(--gold); }

/* Quality */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.q-card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.q-card .icon { width: 52px; height: 52px; padding: 12px; border-radius: 12px; background: var(--burgundy); color: var(--white); margin-bottom: 16px; }
.q-card p { color: var(--muted); margin: 0; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
.check-list .icon { color: var(--gold); margin-top: 5px; }

/* Coming soon / errors */
.state-page { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.state-page .code { font-size: 5rem; font-weight: 800; color: var(--burgundy); line-height: 1; margin-bottom: 12px; }
.state-page p { color: var(--muted); max-width: 520px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #BDB5B6; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 72px 48px; }
.footer-brand img { width: 84px; margin-bottom: 16px; background: var(--white); border-radius: 50%; padding: 4px; }
.footer-brand p { line-height: 1.8; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.footer-links li + li { margin-top: 8px; }
.site-footer a { color: #D9D2D3; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact .icon { color: var(--gold); margin-top: 5px; }
.footer-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.footer-cities span { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .82rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px; font-size: .85rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .ring.r2 { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .brand-text small { display: none; }
  .main-nav a, .main-nav .nav-trigger { padding: 10px 9px; font-size: .94rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .header-cta { display: none; }
  .mobile-only { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--white); z-index: 150;
    padding: 84px 20px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-open .main-nav { transform: none; }
  .nav-open .site-header { z-index: 160; backdrop-filter: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(31, 27, 28, .5); z-index: 140; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-close { position: absolute; top: 18px; inset-inline-end: 16px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .main-nav .nav-trigger { padding: 12px 14px; font-size: 1.02rem; width: 100%; justify-content: space-between; }
  .submenu, .submenu-mega { position: static; width: auto; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 6px; display: none; grid-template-columns: 1fr; }
  .has-sub.is-open > .submenu, .has-sub.is-open > .submenu-mega { display: grid; transform: none; }
  .has-sub:hover > .submenu-mega { transform: none; }
  .submenu-mega .icon { display: none; }
  .mobile-only .btn { width: 100%; margin-top: 16px; }
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-block: 64px 112px; }
  .hero::after { width: 100%; inset-inline-end: 0; opacity: .35; }
  .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .video-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .group-card, .group-card:nth-child(4), .group-card:nth-child(5) { grid-column: span 1; }
  .group-card:nth-child(5) { grid-column: 1 / -1; }
  .divisions, .projects-grid, .news-grid, .q-grid { grid-template-columns: repeat(2, 1fr); }
  .client-sectors { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .office-list, .disciplines { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: 160px 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .topbar-info a:not(:first-child), .topbar-info .topbar-sep { display: none; }
  .topbar-links .hide-sm { display: none; }
  .brand img { width: 48px; height: 48px; }
  .brand-text strong { font-size: .92rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 22px 12px; }
  .groups, .divisions, .projects-grid, .news-grid, .q-grid, .client-sectors, .vm-grid, .why-grid, .values-list, .office-list, .disciplines { grid-template-columns: 1fr; }
  .group-card:nth-child(5) { grid-column: auto; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 32px; }
  .leader { grid-template-columns: 1fr; padding: 24px; }
  .leader-photo { max-width: 200px; }
  .vm-card, .q-card { padding: 26px; }
  .page-hero::after { width: 16%; opacity: .85; }
  .page-hero .container { padding-block: 48px 56px; }
}

/* Utilities */
.muted { color: var(--muted); }
.stripes-gap { margin: 8px 0 24px; }
.bg-dark .lead { color: #D9D2D3; }

/* =====================================================================
   Day 2 components
   ===================================================================== */

/* Services index */
.services-index { display: grid; gap: 28px; }
.service-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: var(--white); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-block-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 24px; }
.service-block-head .group-icon { margin: 0; }
.service-block-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.service-block-head h2 a { color: var(--charcoal); }
.service-block-head p { margin: 0; color: var(--muted); }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.service-item { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--sand); color: inherit; border-inline-start: 3px solid var(--gold); transition: background .2s, transform .2s var(--ease); }
.service-item:hover { background: var(--sand-2); color: inherit; transform: translateY(-2px); }
.service-item h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--burgundy); }
.service-item p { margin: 0; color: #4A4445; font-size: .9rem; line-height: 1.7; }

/* Group page: sticky side nav + service details */
.with-aside { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav-inner { background: var(--sand); border-radius: var(--radius-lg); padding: 24px; }
.side-nav h2 { font-size: 1rem; color: var(--muted); margin-bottom: 12px; }
.side-nav ul { margin-bottom: 18px; }
.side-nav li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--charcoal); font-weight: 600; }
.side-nav li a:hover { background: var(--white); color: var(--burgundy); }
.side-nav .btn { width: 100%; }
.service-details { display: grid; gap: 24px; }
.service-detail { position: relative; padding: 32px 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-detail:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 142, 29, .2); }
.service-num { font-size: 2.2rem; font-weight: 800; color: var(--sand-2); line-height: 1; display: block; margin-bottom: 8px; }
.service-detail h2 { font-size: 1.45rem; }
.service-detail p { color: #3A3536; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }

/* Division page */
.divisions-2 { grid-template-columns: repeat(2, 1fr); }
.plain-list { margin-bottom: 18px; }
.plain-list li + li { margin-top: 8px; }
.plain-list a { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--charcoal); }
.plain-list .icon { color: var(--gold); }
.fact-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.fact-card .btn { width: 100%; margin-top: 20px; }
.fact-number { margin: 0; color: var(--muted); }
.fact-number strong { display: block; color: var(--burgundy); font-size: 1.6rem; }

/* Projects: filters, results, pagination */
.filters { display: grid; gap: 16px; margin-bottom: 32px; padding: 20px; border-radius: var(--radius-lg); background: var(--sand); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; cursor: pointer; }
.fchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fchip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; transition: .2s; }
.fchip small { font-size: .78rem; color: var(--muted); background: var(--sand); padding: 0 7px; border-radius: 999px; }
.fchip input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.fchip input:checked + span small { background: rgba(255, 255, 255, .2); color: var(--white); }
.fchip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-inline { flex: 1 1 220px; }
.field-inline:has(select) { flex: 0 1 200px; }
.filters.is-live .no-js-only { display: none; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid #D6CEC4; border-radius: 8px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(121, 17, 29, .12); }
[aria-invalid="true"] { border-color: #B42318 !important; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.projects-results { transition: opacity .2s; min-height: 200px; }
.projects-results.is-loading { opacity: .45; pointer-events: none; }
.project-kicker { display: block; color: var(--gold-dark); font-size: .8rem; font-weight: 700; margin-bottom: 4px; }
.project-meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-meta .icon { width: 14px; height: 14px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 700; color: var(--charcoal); }
.pagination a:hover { border-color: var(--burgundy); color: var(--burgundy); }
.pagination span[aria-current] { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state .icon { width: 56px; height: 56px; color: var(--sand-2); margin: 0 auto 12px; }

/* Project page */
.project-layout { grid-template-columns: 1.5fr 1fr; }
.project-cover { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; }
.project-cover img { width: 100%; }
.project-cover.placeholder { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 12px; color: rgba(255, 255, 255, .45); background-color: var(--charcoal); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.project-cover.placeholder .icon { width: 72px; height: 72px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.gallery-grid a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid span { position: absolute; inset-inline: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; }
.gallery-page { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.article { max-width: 820px; }

/* Clients page */
.client-logo { display: inline-grid; place-items: center; height: 56px; padding: 6px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.client-logo img { max-height: 40px; width: auto; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); color: inherit; transition: .25s var(--ease); }
a.contact-card:hover { border-color: var(--burgundy); transform: translateY(-3px); color: inherit; }
.contact-card .icon { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--burgundy); color: var(--white); margin-bottom: 8px; }
.contact-card span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact-card strong { font-size: 1.08rem; }
.contact-card small { color: var(--muted); }
.office-list-5 { grid-template-columns: repeat(5, 1fr); }

/* Forms */
.form-layout { grid-template-columns: 1.6fr 1fr; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field label small { color: var(--muted); font-weight: 400; }
.req { color: #B42318; }
.field-error { color: #B42318; font-size: .86rem; font-weight: 600; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dropzone { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 18px; border: 2px dashed #D6CEC4; border-radius: var(--radius); background: var(--sand); cursor: pointer; transition: .2s; font-weight: 400 !important; }
.dropzone:hover, .dropzone.is-over { border-color: var(--burgundy); background: var(--burgundy-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-text strong { color: var(--burgundy); }
.dz-hint { color: var(--muted); font-size: .84rem; }
.dz-list { width: 100%; display: grid; gap: 4px; margin-top: 8px; text-align: start; font-size: .88rem; }
.dz-list li { padding: 6px 10px; background: var(--white); border-radius: 6px; direction: ltr; text-align: left; }
.dz-list li.too-big { color: #B42318; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.privacy-note { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.privacy-note .icon { color: var(--burgundy); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.alert[hidden] { display: none; }
.alert p { margin: 4px 0 8px; font-weight: 400; }
.alert-error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.alert-success { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; padding: 24px; }
.alert-success .icon { width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: #12B76A; color: #fff; }
.contact-aside .footer-contact a { color: var(--charcoal); }
.contact-aside h3 + .footer-contact { margin-bottom: 24px; }
.steps { padding-inline-start: 20px; margin: 0; list-style: decimal; display: grid; gap: 8px; color: #3A3536; }

@media (max-width: 1024px) {
  .with-aside { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-nav li a { background: var(--white); }
  .project-layout, .form-layout { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .office-list-5 { grid-template-columns: repeat(3, 1fr); }
  .service-block-head { grid-template-columns: auto 1fr; }
  .service-block-head .btn { display: none; }
}
@media (max-width: 680px) {
  .service-block, .service-detail, .form-card { padding: 22px; }
  .divisions-2, .contact-cards, .office-list-5, .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .filters { padding: 14px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .fchip span { white-space: nowrap; }
}

/* =====================================================================
   Day 3: auth + account
   ===================================================================== */
.auth-wrap { background: var(--sand); padding: 64px 20px; display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; border-top: 5px solid var(--burgundy); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head img { margin: 0 auto 10px; }
.auth-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.auth-form { display: grid; gap: 16px; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: .95rem; }
.btn-block { width: 100%; }
.type-switch { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-switch label { position: relative; cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; }
.type-switch span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; transition: .2s; }
.type-switch input:checked + span { border-color: var(--burgundy); background: var(--burgundy-soft); color: var(--burgundy); }
.type-switch input:focus-visible + span { outline: 3px solid var(--gold); }

.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.account-main, .account-side { display: grid; gap: 22px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.program-card { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--charcoal); color: var(--white); font-weight: 700; transition: .2s; }
.program-card:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }
.program-card .icon { color: var(--gold); width: 28px; height: 28px; }
.cproject-list { display: grid; gap: 16px; }
.cproject { padding: 18px; border-radius: var(--radius); background: var(--sand); }
.cproject-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cproject-head h3 { font-size: 1.05rem; margin: 0; }
.cproject-stage { margin: 6px 0 10px; }
.progress { height: 10px; border-radius: 999px; background: var(--white); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--burgundy)); border-radius: inherit; }
.progress-label { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { background: var(--sand); font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sand); color: var(--charcoal); white-space: nowrap; }
.badge-new, .badge-pending { background: #FEF0C7; color: #93370D; }
.badge-reviewing { background: #EFF8FF; color: #175CD3; }
.badge-quoted, .badge-active { background: #ECFDF3; color: #067647; }
.badge-closed, .badge-disabled { background: #F2F4F7; color: #475467; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 1024px) { .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .auth-card { padding: 26px 20px; } .panel { padding: 20px; } }

/* E-marketplace button (shown only when a market URL is set) */
.btn-market { background: var(--charcoal); color: var(--white); }
.btn-market:hover { background: var(--burgundy); color: var(--white); }
.header-cta + .header-cta { margin-inline-start: -10px; }
.main-nav a, .main-nav .nav-trigger { white-space: nowrap; }
@media (max-width: 1500px) {
  .btn-market.header-cta { padding-inline: .85em; }
  .btn-market.header-cta .market-label { display: none; }
  .btn-market.header-cta .icon { width: 1.4em; height: 1.4em; }
}
@media (max-width: 1180px) and (min-width: 1025px) {
  .brand-text { display: none; }
  .site-header .container { gap: 16px; }
}
.mobile-only .btn-market { margin-top: 16px; width: 100%; }

/* =====================================================================
   English (LTR) adjustments — most layout uses logical properties and flips automatically
   ===================================================================== */
.lang-switch { font-weight: 700; color: var(--gold) !important; }
[dir="ltr"] body { font-size: 16.5px; }
[dir="ltr"] .brand-text small { text-align: left; }
[dir="ltr"] .link-arrow .icon,
[dir="ltr"] .file-list .icon { transform: scaleX(-1); }
[dir="ltr"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .hero::after,
[dir="ltr"] .page-hero::after,
[dir="ltr"] .cta-band::after { transform: scaleX(-1); }
[dir="ltr"] .submenu-mega { transform: translate(-50%, 6px); }
[dir="ltr"] .has-sub:hover > .submenu-mega,
[dir="ltr"] .has-sub:focus-within > .submenu-mega,
[dir="ltr"] .has-sub.is-open > .submenu-mega { transform: translate(-50%, 0); }
[dir="ltr"] .dz-list li { text-align: left; }
@media (max-width: 1024px) {
  [dir="ltr"] .main-nav { inset: 0 auto 0 0; transform: translateX(-100%); }
  [dir="ltr"] .nav-open .main-nav { transform: none; }
  [dir="ltr"] .has-sub:hover > .submenu-mega, [dir="ltr"] .submenu-mega { transform: none; }
}
.h3, .fact-card h2.h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }

/* =====================================================================
   Gallery slider (carousel for /gallery page)
   ===================================================================== */
.gallery-slider {
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
}
.slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--charcoal);
}
.slider-track {
  display: flex;
  transition: transform .5s var(--ease);
}
.slider-slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: var(--white);
  padding: 30px 20px 20px;
  text-align: center;
}
.slider-caption span { font-size: 1.1rem; font-weight: 600; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(255,255,255,.4); }
.slider-btn .icon { width: 24px; height: 24px; }
.slider-prev { inset-inline-start: 20px; }
.slider-next { inset-inline-end: 20px; }
.slider-counter {
  position: absolute;
  bottom: 20px;
  inset-inline-end: 20px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .9rem;
  z-index: 10;
}
@media (max-width: 640px) {
  .slider-slide { aspect-ratio: 4 / 3; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-btn .icon { width: 20px; height: 20px; }
  .slider-prev { inset-inline-start: 12px; }
  .slider-next { inset-inline-end: 12px; }
  .slider-counter { inset-inline-end: 12px; bottom: 12px; padding: 6px 12px; font-size: .85rem; }
  .slider-caption { padding: 20px 16px 14px; }
  .slider-caption span { font-size: 1rem; }
}

/* Gallery spotlight (home page single image) */
.gallery-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.gallery-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-info p { margin-bottom: 20px; color: var(--muted); }
@media (max-width: 768px) {
  .gallery-spotlight {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .gallery-image { aspect-ratio: 4 / 3; }
}
