/* =========================================================
   UNEPP — Site Theme (design-system layer)
   Loaded LAST on every page. One source of truth for:
   colours, typography, header, buttons, side menus, cards,
   forms, footer. Older rules in style.css are overridden here.
   ========================================================= */
:root{
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ink:#0b1324;          /* headings, strong text            */
  --ink-2:#1f2937;        /* nav links, secondary headings    */
  --body:#334155;         /* paragraph text                   */
  --muted:#64748b;        /* captions, labels                 */
  --line:#e6e8ec;         /* borders / dividers               */
  --surface:#f5f6f8;      /* soft panels, hover               */

  --btn-bg:#949697;       /* logo grey                        */
  --btn-bg-hover:#86888a; /* logo grey, slightly darker       */
  --btn-text:#111827;
  --accent:#d63333;       /* logo red — small accents only    */

  --radius-lg:18px;
  --radius:14px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -14px rgba(16,24,40,.12);
  --shadow-md:0 1px 2px rgba(16,24,40,.05), 0 18px 40px -20px rgba(16,24,40,.22);
}

/* ---------- Base ---------- */
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  color:var(--body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body > main{ flex:1 0 auto; width:100%; }
h1, h2, h3, h4, h5{ font-family:var(--font); color:var(--ink); letter-spacing:-0.015em; }
input, select, textarea, button{ font-family:inherit; }
::selection{ background:rgba(148,150,151,.35); }
html.nav-locked{ overflow:hidden; }

/* ---------- Header ---------- */
.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
.nav.is-scrolled{ box-shadow:0 8px 24px -16px rgba(11,19,36,.35); }
.nav .nav-inner{ height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.nav .brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); min-width:0; }
.nav .brand .logo{ height:44px; width:auto; display:block; }
.nav .brand .brand-name,
.nav .brand h1{ display:block; margin:0; font-size:17px; font-weight:800; letter-spacing:.04em; line-height:1.1; color:var(--ink); }
.nav .brand small{ display:block; margin-top:3px; font-size:12.5px; font-weight:500; color:var(--muted); white-space:nowrap; }

.nav .menu{ display:flex; align-items:center; gap:2px; }
.nav .menu a:not(.cta){
  position:relative;
  padding:10px 13px; border-radius:8px;
  font-size:15px; font-weight:500; color:var(--ink-2);
  text-decoration:none; background:transparent;
  transition:color .2s ease, background-color .2s ease;
}
.nav .menu a:not(.cta):hover{ color:var(--ink); background:var(--surface); }
.nav .menu a[aria-current="page"]:not(.cta){ color:var(--ink); font-weight:600; }
.nav .menu a[aria-current="page"]:not(.cta)::after{
  content:""; position:absolute; left:13px; right:13px; bottom:3px;
  height:2px; border-radius:2px; background:var(--accent);
}
.nav .menu .cta{ margin-left:12px; padding:10px 18px; font-size:14.5px; }

.nav-toggle{ display:none; }

@media (max-width: 1180px){
  .nav .brand small{ display:none; }
}
@media (max-width: 980px){
  .nav .nav-inner{ height:68px; }
  .nav .brand .logo{ height:38px; }
  .nav-toggle{
    display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
    width:44px; height:44px; padding:0 11px; flex:0 0 44px;
    border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer;
  }
  .nav-toggle span{ display:block; height:2px; border-radius:2px; background:var(--ink); transition:transform .25s ease, opacity .2s ease; }
  .nav.is-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2){ opacity:0; }
  .nav.is-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }

  .nav .menu{
    display:none;
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:2px;
    padding:10px 16px 20px;
    background:#fff; border-bottom:1px solid var(--line);
    box-shadow:0 24px 30px -24px rgba(11,19,36,.35);
    max-height:calc(100vh - 68px); overflow-y:auto;
  }
  .nav.is-open .menu{ display:flex; }
  .nav .menu a:not(.cta){ padding:14px 14px; font-size:16px; }
  .nav .menu a[aria-current="page"]:not(.cta){ background:var(--surface); }
  .nav .menu a[aria-current="page"]:not(.cta)::after{ left:0; right:auto; top:12px; bottom:12px; width:3px; height:auto; }
  .nav .menu .cta{ margin:10px 0 0; padding:14px 18px; font-size:16px; }
}

/* ---------- Buttons (one style everywhere) ---------- */
.btn, .cta{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 20px; border-radius:10px; border:1px solid transparent;
  font-family:var(--font); font-size:15px; font-weight:600; line-height:1.2; letter-spacing:.005em;
  background:var(--btn-bg); color:var(--btn-text) !important;
  text-decoration:none; cursor:pointer;
  box-shadow:0 1px 2px rgba(11,19,36,.08);
  transition:background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover{
  background:var(--btn-bg-hover);
  transform:translateY(-1px);
  box-shadow:0 8px 18px -10px rgba(11,19,36,.45);
}
.btn:active, .cta:active{ transform:none; }
.btn:focus-visible, .cta:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }

/* arrow icon (replaces the old "➤" text character) */
.btn-arrow::after{
  content:""; width:16px; height:16px; flex:0 0 16px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .2s ease;
}
.btn-arrow:hover::after{ transform:translateX(3px); }

/* secondary button (outline) */
.btn.btn-ghost{ background:#fff; border-color:#cfd3d8; box-shadow:none; }
.btn.btn-ghost:hover{ background:var(--surface); border-color:var(--btn-bg); }

/* ---------- Section headings ---------- */
main .section-intro > h2,
main .section-intro > h3,
.about-content > .section > h2{
  font-size:clamp(28px, 2.5vw, 38px);
  font-weight:800; line-height:1.15; letter-spacing:-0.02em;
  color:var(--ink); margin:0 0 14px;
}
main .section-intro > h2::after,
main .section-intro > h3::after,
.about-content > .section > h2::after{
  content:""; display:block; width:44px; height:3px; margin-top:14px;
  border-radius:3px; background:var(--accent);
}
main .section-intro .lead,
main .lead{ color:var(--body); font-size:17px; line-height:1.75; }
.card h3{ color:var(--ink); }

/* ---------- Side menus (About / Capabilities / Projects) ---------- */
.about-index{
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:var(--radius-lg) !important;
  box-shadow:var(--shadow-sm) !important;
  padding:18px 12px !important;
}
.about-index > b{
  display:block; padding:0 10px; margin-bottom:10px;
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted) !important;
}
html body .about-index nav{ display:flex; flex-direction:column; gap:4px; }
html body .about-index nav a{
  display:block !important;
  border:0 !important; border-left:0 !important;
  padding:9px 12px !important; border-radius:9px !important;
  font-size:14px !important; font-weight:500 !important; line-height:1.35;
  color:var(--ink-2) !important; background:transparent !important;
  text-decoration:none; box-shadow:none !important; transform:none !important;
  transition:background-color .2s ease, color .2s ease;
}
html body .about-index nav a:hover{ background:var(--surface) !important; color:var(--ink) !important; }
html body .about-index.about-index nav a:is(.is-active, .active, [aria-current="true"]){
  background:var(--btn-bg) !important;
  color:var(--btn-text) !important;
  font-weight:600 !important;
}
html body .about-index.about-index nav a:is(.is-active, .active, [aria-current="true"]):hover{
  background:var(--btn-bg-hover) !important;
}

/* ---------- Cards & panels ---------- */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
/* legacy dark-theme tiles inside cards → soft light panels */
.card .grid > .item,
.card .split > .item,
main .section > .grid > .item{
  background:var(--surface) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--radius) !important;
  box-shadow:none !important;
  color:var(--body);
}
.card .grid > .item b,
.card .split > .item b,
main .section > .grid > .item b{ color:var(--ink); }

/* ---------- Leadership (one consistent card style) ---------- */
#leadership .leader.leader{
  background:linear-gradient(160deg, #101b31 0%, #1c2a45 100%) !important;
  border:0 !important;
  border-radius:var(--radius-lg) !important;
  box-shadow:var(--shadow-md) !important;
}
#leadership .leader.leader img{ border:3px solid rgba(255,255,255,.18); }
#leadership .leader.leader b{ color:#fff !important; font-size:18px; letter-spacing:-0.01em; }
#leadership .leader.leader > span{
  color:#cbd5e1 !important;
  font-size:12.5px !important; font-weight:600 !important;
  letter-spacing:.08em !important; text-transform:uppercase;
  margin-top:6px !important;
}
#leadership .leader.leader .leader-desc{ color:#cbd5e1 !important; line-height:1.65; }

/* ---------- Forms ---------- */
main input[type="text"], main input[type="email"], main input[type="search"],
main input[type="tel"], main input[type="number"], main input:not([type]),
main select, main textarea{
  font-family:var(--font) !important;
  font-size:15px;
  color:var(--ink) !important;
  background-color:#fff !important;
  border:1px solid #d6dae0 !important;
  border-radius:10px !important;
  box-shadow:none !important;
  transition:border-color .2s ease, box-shadow .2s ease;
}
main input:focus, main select:focus, main textarea:focus{
  outline:none !important;
  border-color:var(--btn-bg-hover) !important;
  box-shadow:0 0 0 3px rgba(148,150,151,.28) !important;
}
main label, main .kicker{ color:var(--muted); }

/* ---------- Home ---------- */
body.home .home-hero > .home-row:first-child > .card{
  position:relative; overflow:hidden; border:0;
  min-height:360px;
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(28px, 5vw, 64px);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(148,150,151,.28), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(214,51,51,.16), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #0b1324 0%, #15213a 100%);
  box-shadow:var(--shadow-md);
}
body.home .home-hero > .home-row:first-child > .card h2{
  color:#fff; font-size:clamp(32px, 4.2vw, 56px); font-weight:800; letter-spacing:-0.025em; line-height:1.05; margin:0 0 14px;
}
body.home .home-hero > .home-row:first-child > .card :is(p, strong, b, span){ color:rgba(255,255,255,.9) !important; max-width:66ch; }
body.home .home-hero > .home-row:first-child > .card .btn{ align-self:flex-start; margin-top:22px !important; }
body.home .home-row-3 > .card{ display:flex; flex-direction:column; }
body.home .home-row-3 > .card .btn{ margin-top:auto !important; align-self:flex-start; }
body.home .home-row-3 > .card > p{ margin-bottom:18px; }

/* ---------- News (empty state) ---------- */
.news-empty{ text-align:center; padding:56px 28px !important; }
.news-empty-icon{
  width:64px; height:64px; margin:0 auto 18px; border-radius:16px;
  display:grid; place-items:center; background:var(--surface); color:var(--ink-2);
}
.news-empty-icon svg{ width:30px; height:30px; }
.news-empty h3{ font-size:22px; margin:0 0 8px; }
.news-empty p{ max-width:56ch; margin:0 auto !important; color:var(--body); text-align:center !important; line-height:1.7; }
.news-empty-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:26px; }

/* ---------- Footer ---------- */
.site-footer{
  margin-top:72px;
  background:#f4f5f7;
  border-top:1px solid var(--line);
  color:var(--body);
  font-size:14.5px;
}
.site-footer .sf-grid{
  display:grid; grid-template-columns:1.5fr 1fr 1.25fr 1.25fr; gap:40px;
  padding-top:52px; padding-bottom:36px;
}
.site-footer .sf-logo{ height:48px; width:auto; display:block; margin-bottom:16px; }
.site-footer h4{
  margin:4px 0 14px; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink);
}
.site-footer p{ margin:0 0 10px; line-height:1.7; color:var(--body); text-align:left; }
.site-footer nav a{ display:block; padding:4px 0; }
.site-footer a{ color:var(--body); text-decoration:none; transition:color .2s ease; }
.site-footer a:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.site-footer .sf-bottom{
  border-top:1px solid var(--line);
  padding-top:20px; padding-bottom:28px;
}
.site-footer .sf-bottom p{ font-size:13px; color:var(--muted); margin:0 0 6px; }
.site-footer .sf-bottom .sf-legal{ font-size:12.5px; }
@media (max-width: 960px){ .site-footer .sf-grid{ grid-template-columns:1fr 1fr; gap:30px; } }
@media (max-width: 560px){ .site-footer .sf-grid{ grid-template-columns:1fr; } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn, .cta, .nav, .nav-toggle span{ transition:none !important; }
}
/* ---------- Fixes ---------- */
main *, .site-footer *{ hyphens:manual !important; -webkit-hyphens:manual !important; }
.site-footer span{ color:inherit !important; }

/* =========================================================
   INTERACTIVE WHEEL (shared: About › Our Values, Capabilities › Procurement)
   ========================================================= */
.uv-card{ padding:28px !important; }
.uv{
  --uv-color:#0b1324;
  display:grid;
  grid-template-columns:minmax(260px, 440px) minmax(0, 1fr);
  gap:48px; align-items:center;
}
.uv-wheel{ position:relative; width:100%; max-width:440px; aspect-ratio:1/1; margin:0 auto; }
.uv-pointer{
  position:absolute; top:-12px; left:50%; z-index:3; transform:translateX(-50%);
  width:0; height:0;
  border-left:11px solid transparent; border-right:11px solid transparent;
  border-top:15px solid var(--uv-color);
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));
  transition:border-top-color .5s ease;
}
.uv-rotor{ position:absolute; inset:0; transition:transform .9s cubic-bezier(.65,0,.35,1); will-change:transform; }
.uv-rotor img{ width:100%; height:100%; display:block; user-select:none; -webkit-user-drag:none; pointer-events:none; }
.uv-wheel.is-hot .uv-rotor{ cursor:pointer; }
.uv-center{
  position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; text-align:center;
  font-weight:900; line-height:1.05; letter-spacing:.02em; font-size:clamp(20px, 2.6vw, 32px); color:var(--ink);
}
.uv-center.uv-center-sm{ font-size:clamp(14px, 1.6vw, 20px); line-height:1.15; letter-spacing:.04em; }
.uv-tip{
  position:absolute; z-index:4; pointer-events:none; padding:6px 10px; border-radius:8px;
  background:var(--ink); color:#fff; font-size:13px; font-weight:600; white-space:nowrap;
  transform:translate(-50%, calc(-100% - 12px)); opacity:0; transition:opacity .15s ease;
}
.uv-tip.is-on{ opacity:1; }
.uv-panel{
  position:relative; overflow:hidden; background:var(--uv-color); color:#fff;
  border-radius:20px; padding:30px 32px 24px;
  box-shadow:0 18px 40px -14px rgba(11,19,36,.45);
  transition:background-color .5s ease; display:flex; flex-direction:column; gap:6px;
}
.uv-panel .uv-count{ font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.85) !important; }
.uv-stack{ display:grid; }
.uv-stack > .uv-item{ grid-area:1 / 1; }
.uv-item{ opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.uv-item.is-active{ opacity:1; visibility:visible; transform:none; transition:opacity .35s ease .12s, transform .35s ease .12s, visibility 0s; }
.uv-panel .uv-title{ margin:4px 0 12px !important; font-size:clamp(22px, 2.2vw, 32px); font-weight:800; line-height:1.15; color:#fff !important; }
.uv-panel .uv-desc{ margin:0; font-size:17px; line-height:1.7; color:#fff !important; text-align:left !important; }
.uv-controls{ display:flex; align-items:center; gap:10px; margin-top:22px; }
.uv-btn{
  width:38px; height:38px; flex:0 0 38px; border-radius:50%; display:grid; place-items:center; cursor:pointer;
  background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.65); transition:background-color .2s ease;
}
.uv-btn:hover{ background:rgba(255,255,255,.18); }
.uv-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.uv-btn svg{ width:18px; height:18px; }
.uv-progress{ flex:1; height:3px; border-radius:3px; background:rgba(255,255,255,.3); overflow:hidden; }
.uv-progress i{ display:block; height:100%; width:0; background:#fff; }
.uv-foot{ grid-column:1 / -1; text-align:center; }
.uv-hint{ margin:0 0 12px !important; font-size:14px; color:var(--muted) !important; text-align:center !important; }
.uv-tabs{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.uv-tab{
  --c:#0b1324; display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; cursor:pointer;
  font:inherit; font-size:14px; font-weight:600; color:var(--c); background:#fff; border:1.5px solid var(--c);
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.uv-tab::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--c); }
.uv-tab:hover{ transform:translateY(-1px); }
.uv-tab:focus-visible{ outline:2px solid var(--c); outline-offset:2px; }
.uv-tab[aria-selected="true"]{ background:var(--c); color:#fff; }
.uv-tab[aria-selected="true"]::before{ background:#fff; }
@media (max-width: 1100px){ .uv{ gap:32px; } }
@media (max-width: 900px){
  .uv{ grid-template-columns:1fr; gap:28px; }
  .uv-wheel{ max-width:340px; }
  .uv-card{ padding:20px !important; }
}
@media (prefers-reduced-motion: reduce){ .uv-rotor, .uv-item, .uv-panel{ transition:none !important; } }
/* ---------- Consistency locks (beat older page-specific rules) ---------- */
html body .btn, html body .cta{ border-radius:10px !important; }
html body main .section-intro > h2,
html body main .section-intro > h3,
html body .about-content > .section > h2{ font-size:clamp(28px, 2.5vw, 38px) !important; font-weight:800 !important; color:var(--ink) !important; }html body > main{ flex:1 0 auto !important; } /* main never collapses (older home rule used flex:1 1 0%) */
/* ---------- Careers › CV form (responsive) ---------- */
.cv-form .form-row:not(.consent-row){ display:grid !important; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.cv-form input:not([type="checkbox"]):not([type="radio"]){ width:100% !important; min-width:0 !important; box-sizing:border-box; padding:12px 14px; }
.cv-form .consent-row label{ display:flex; gap:10px; align-items:flex-start; color:var(--body); font-size:14px; line-height:1.5; }
/* ---------- Contact › office tiles ---------- */
body.contact .card .split > .item{ background:#fff !important; }
body.contact .office-logo img{ max-height:64px; width:auto; }
/* =========================================================
   ROUND 2 — structure, mobile, leadership
   ========================================================= */

/* ---------- Current page: Contact Us button also gets the red line ---------- */
.nav .menu .cta[aria-current="page"]{ position:relative; background:var(--btn-bg-hover); }
.nav .menu .cta[aria-current="page"]::after{
  content:""; position:absolute; left:18px; right:18px; bottom:-9px;
  height:2px; border-radius:2px; background:var(--accent);
}
@media (max-width: 980px){ .nav .menu .cta[aria-current="page"]::after{ display:none; } }

/* ---------- Home: tighter top spacing ---------- */
body.home .hero{ padding:28px 0 8px !important; }

/* ---------- Section switcher pages (Careers, Contact, News) ---------- */
html.js body[data-switcher="auto"] .about-content > .section{ display:none; }
html.js body[data-switcher="auto"] .about-content > .section.is-active{ display:block; }
.about-index nav{ position:relative; }

/* tiles used on Careers / Contact / News */
.tile-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.tile{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; display:flex; flex-direction:column; gap:8px;
}
.tile-icon{
  width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  background:#fff; border:1px solid var(--line); color:var(--accent);
}
.tile-icon svg{ width:22px; height:22px; }
.tile h3{ margin:4px 0 0 !important; font-size:17px; color:var(--ink); }
.tile p{ margin:0 !important; font-size:15px; line-height:1.65; color:var(--body); }
.tile a:not(.btn){ color:var(--ink-2); font-weight:600; text-decoration:none; }
.tile a:not(.btn):hover{ text-decoration:underline; text-underline-offset:3px; }
.tile .btn{ margin-top:auto; align-self:flex-start; }
.tile .tile-logo{ height:46px; width:auto; align-self:flex-start; margin-bottom:4px; }
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }

/* Contact › office sections */
.office-grid{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.35fr); gap:22px; align-items:stretch; }
.office-panel{ display:flex; flex-direction:column; gap:14px; }
.office-panel .office-logo-img{ height:54px; width:auto; align-self:flex-start; }
.office-panel h3{ margin:0 !important; font-size:20px; }
.office-panel dl{ margin:0; display:grid; grid-template-columns:auto 1fr; gap:8px 14px; font-size:15px; }
.office-panel dt{ color:var(--muted); font-weight:600; }
.office-panel dd{ margin:0; color:var(--ink-2); }
.office-panel dd a{ color:var(--ink-2); text-decoration:none; font-weight:600; }
.office-panel dd a:hover{ text-decoration:underline; text-underline-offset:3px; }
.office-panel .btn{ margin-top:auto; align-self:flex-start; }
.office-map{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); min-height:320px; background:var(--surface); }
.office-map iframe{ width:100%; height:100%; min-height:320px; border:0; display:block; }

/* Careers */
.careers-filters-card{ margin-top:4px; }
.careers-filters-card .filters-hint h2{ display:none; }

/* ---------- Leadership ---------- */
#leadership .leader.leader b,
#leadership .leader.leader > span{ display:block; text-align:center !important; }
#leadership .leader.leader img[src*="sameh-kassem"]{ object-position:18% 50% !important; }

/* ---------- Mobile & tablet (<= 900px) ---------- */
@media (max-width: 900px){
  html body .about-layout{ grid-template-columns:minmax(0, 1fr) !important; gap:16px !important; }
  html body .about-index{
    display:block !important;
    position:sticky !important; top:68px !important; z-index:20;
    min-width:0; margin:0 !important;
    padding:8px !important; border-radius:14px !important;
    background:rgba(255,255,255,.96) !important;
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  }
  html body .about-index > b{ display:none !important; }
  html body .about-index nav{
    flex-direction:row !important; flex-wrap:nowrap !important; gap:6px !important;
    overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  html body .about-index nav::-webkit-scrollbar{ display:none; }
  html body .about-index nav a{ flex:0 0 auto; white-space:nowrap; background:var(--surface) !important; }
  html body .about-content > .section{ padding-top:6px !important; margin-top:0 !important; }
  .office-grid{ grid-template-columns:1fr; }
}

/* ---------- Phones (<= 600px) ---------- */
@media (max-width: 600px){
  html body .container{ padding-left:16px !important; padding-right:16px !important; }
  html body main .card{ padding:18px !important; border-radius:16px !important; }
  html body main .section-intro > h2,
  html body main .section-intro > h3,
  html body .about-content > .section > h2{ font-size:26px !important; }
  main .section-intro .lead, main .lead,
  body.about .company-card .lead{ font-size:16px !important; line-height:1.7 !important; }
  .tile{ padding:16px; }
  .btn{ padding:12px 18px; }

  /* Home */
  body.home .hero{ padding:16px 0 4px !important; }
  body.home .home-hero{ gap:14px !important; }
  body.home .home-hero > .home-row:first-child > .card{ min-height:0 !important; padding:28px 22px !important; }
  body.home .home-hero > .home-row:first-child > .card h2{ font-size:30px !important; }
  body.home .home-hero > .home-row:first-child > .card :is(p, strong, b, span){ font-size:15.5px !important; line-height:1.65 !important; }
  body.home .home-hero > .home-row:first-child > .card .btn{ width:100%; }
  body.home .marquee{ border:0 !important; padding:0 !important; background:none !important; border-radius:12px !important; }
  body.home .marquee-track{ gap:12px !important; }
  body.home .marquee-track img{ width:240px !important; height:150px !important; border:0 !important; }
  body.home .home-row-3{ gap:14px !important; }
  body.home .home-row-3 > .card .btn{ width:100%; }

  /* About */
  body.about .company-line{ flex-direction:column; align-items:flex-start; gap:10px; }
  body.about .company-logo{ max-width:140px; height:auto; }
  #leadership .leader.leader{ padding:22px 16px !important; }
  .uv-panel{ padding:24px 20px 20px !important; }
  .uv-panel .uv-desc{ font-size:16px !important; }
  .hq-steps{ grid-template-columns:1fr !important; }
  .office-map, .office-map iframe{ min-height:260px; }
}

/* ---------- Filters (Careers + Projects): one clean panel, responsive grid ---------- */
.careers-filters-card .projects-filters{ background:none !important; border:0 !important; padding:0 !important; margin:0 !important; box-shadow:none !important; }
main .filters-row-4col,
main .filters-row-selects{ display:grid !important; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)) !important; gap:12px !important; }
main .filters-row-4col > *, main .filters-row-selects > *{ min-width:0; }
main .filters-row-4col select, main .filters-row-selects select{ width:100% !important; }
main .filters-row label, main .filter-field label{ display:block; margin-bottom:6px; font-size:12px; letter-spacing:.1em; }
main .projects-meta{ margin:16px 0 10px; }
/* =========================================================
   ROUND 3 — Leadership Team (premium cards)
   ========================================================= */
#leadership .leadership-card{ background:transparent !important; border:0 !important; box-shadow:none !important; padding:0 !important; }
#leadership .leadership{ gap:22px !important; }
#leadership .leadership:first-of-type{ display:flex !important; justify-content:center; }
#leadership .leadership.two-col{
  display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  max-width:920px; margin:22px auto 0 !important;
}
#leadership .leader-ceo{ width:100%; max-width:449px !important; }

#leadership .leader.leader{
  position:relative; overflow:hidden;
  display:flex !important; flex-direction:column; align-items:center; text-align:center;
  padding:36px 30px 32px !important;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
#leadership .leader.leader::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg, var(--accent), var(--btn-bg));
}
#leadership .leader.leader:hover{
  transform:translateY(-6px) scale(1.03);
  box-shadow:0 34px 60px -26px rgba(11,19,36,.7) !important;
  z-index:2;
}

/* portrait frame (crops every photo to a centred circle) */
#leadership .leader-photo{
  position:relative; display:block; flex:0 0 auto;
  width:136px; height:136px; margin:0 auto 20px;
  border-radius:50%; overflow:hidden; background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.14), 0 14px 28px rgba(0,0,0,.35);
  transition:box-shadow .35s ease;
}
#leadership .leader:hover .leader-photo{ box-shadow:0 0 0 4px rgba(214,51,51,.6), 0 18px 34px rgba(0,0,0,.42); }
#leadership .leader-photo img{
  display:block; width:100% !important; height:100% !important;
  margin:0 !important; border:0 !important; border-radius:0 !important;
  object-fit:cover; transition:transform .5s ease;
}
#leadership .leader:hover .leader-photo img{ transform:scale(1.05); }
/* Sameh Kassem: wide photo → re-centre and tighten on the face */
#leadership .leader-photo img[src*="sameh-kassem"]{
  position:absolute; max-width:fit-content  !important;
  width:150% !important; height:119.64% !important;
  left:-10.4%; top:-13.4%; object-fit:fill;
}

/* text */
#leadership .leader.leader b{ display:block; width:100%; text-align:center !important; font-size:20px !important; margin:0 0 6px !important; }
#leadership .leader.leader > span{
  display:block; width:100% !important; text-align:center !important;
  margin:0 !important; font-size:12px !important; letter-spacing:.12em !important; color:#cbd5e1 !important;
}
#leadership .leader.leader > span::after{
  content:""; display:block; width:36px; height:2px; margin:14px auto 0;
  border-radius:2px; background:var(--accent);
}
#leadership .leader.leader .leader-desc{
  width:100%; max-width:46ch; margin:14px auto 0 !important;
  font-size:15px; line-height:1.7; text-align:center !important; color:#b8c3d6 !important;
}

@media (max-width: 768px){
  #leadership .leadership.two-col{ grid-template-columns:1fr !important; max-width:none; margin-top:16px !important; }
  #leadership .leadership{ gap:16px !important; }
  #leadership .leader-ceo{ max-width:none !important; }
  #leadership .leader.leader{ padding:30px 20px 26px !important; }
}
@media (hover: none){ #leadership .leader.leader:hover{ transform:none; } }
@media (prefers-reduced-motion: reduce){
  #leadership .leader.leader, #leadership .leader-photo img{ transition:none !important; }
  #leadership .leader.leader:hover{ transform:none; }
}