/* =========================================================
   DAIS — design tokens + page system
   White editorial surface, serif headings, one orange accent.
   Layout uses logical properties so Arabic (dir="rtl") mirrors
   without a second set of rules.
========================================================= */

:root {
  --white: #FFFFFF;
  --paper: #FAF9F7;
  --ink: #1C1A19;
  --body: #55514B;
  --muted: #8A857B;
  --black: #141312;
  --orange: #DC4405;
  /* a step darker, for small orange text on white */
  --orange-text: #C53C03;
  --orange-dark: #B93604;
  --rule: rgba(28, 26, 25, .13);
  --rule-light: rgba(255, 255, 255, .16);

  --serif: 'Source Serif 4', 'Noto Naskh Arabic', Georgia, serif;
  --sans: 'Manrope', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --brand: 'Oswald', 'Arial Narrow', sans-serif;

  --container: 1320px;
  --gutter: 48px;
  /* utility strip (33px) + main bar (70px) */
  --header-h: 103px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-quick: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The page scrollbar stays visible. */
  overflow-y: scroll;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

::selection { background: var(--orange); color: var(--white); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Tracking breaks Arabic letter joins. */
body.rtl * { letter-spacing: 0 !important; }

/* =========================================================
   PRIMITIVES
========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 124px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: rgba(255, 255, 255, .74); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--rule { border-top: 1px solid var(--rule); }

/* The section marker: a short orange rule above the heading. */
.rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.eyebrow--light::before { background: var(--orange); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2, .h2 {
  font-size: clamp(30px, 4.1vw, 44px);
  line-height: 1.12;
  letter-spacing: -.016em;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.66;
  color: var(--body);
  font-weight: 400;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .28s var(--ease-quick), color .28s var(--ease-quick), border-color .28s var(--ease-quick);
}
.btn svg, .link-arrow svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg, [dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--orange); }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--accent:hover { background: var(--orange-dark); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--orange); color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 11.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-text);
  white-space: nowrap;
  transition: color .28s var(--ease-quick);
}
.link-arrow:hover { color: var(--ink); }

/* Scroll reveal — only armed when site.js is running. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   HEADER
========================================================= */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .4s var(--ease-quick);
}
header.scrolled { box-shadow: 0 10px 30px rgba(28, 26, 25, .06); }

.hdr-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  height: 33px;
  padding-inline: 36px;
  border-bottom: 1px solid rgba(28, 26, 25, .07);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hdr-mail { text-transform: none; letter-spacing: .06em; font-size: 11.5px; transition: color .25s; }
.hdr-mail:hover { color: var(--orange-text); }

.language-list { display: inline-flex; align-items: center; gap: 10px; }
.language-list .sep { color: rgba(28, 26, 25, .22); }
.language-list .lang-link { transition: color .25s; }
.language-list .lang-link:hover, .language-list .lang-link.active { color: var(--orange-text); }

.hdr-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 70px;
  padding-inline: 36px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
/* The mark ships with a wide transparent margin; the frame crops to the artwork. */
.brand-mark { --h: 38px; position: relative; display: block; width: calc(var(--h) * .888); height: var(--h); overflow: hidden; flex: none; }
.brand-mark img { position: absolute; max-width: none; width: calc(var(--h) * 1.91); height: calc(var(--h) * 1.91); inset-block-start: calc(var(--h) * -.382); left: calc(var(--h) * -.393); }
.brand-word { font-family: var(--brand); font-weight: 600; font-size: 27px; line-height: 1; letter-spacing: .02em !important; color: var(--ink); }

.navlinks { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.navlinks a {
  position: relative;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color .3s;
}
.navlinks a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .42s var(--ease);
}
[dir="rtl"] .navlinks a::after { transform-origin: 100% 50%; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--orange-text); }
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks .nav-contact { display: none; }

.hdr-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }

/* Header CTA — ink block with an arrow; the accent sweeps across on hover. */
.hdr-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 10px;
  padding: 12px 18px 12px 22px;
  padding-inline: 22px 18px;
  letter-spacing: .13em;
}
.hdr-cta:hover { background: var(--ink); }
.hdr-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.hdr-cta:hover::before, .hdr-cta:focus-visible::before { transform: scaleX(1); }
.hdr-cta::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  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='%23000' stroke-width='2'%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='%23000' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.hdr-cta:hover::after { transform: translateX(4px); }
[dir="rtl"] .hdr-cta::before { transform-origin: 100% 50%; }
[dir="rtl"] .hdr-cta::after { transform: scaleX(-1); }
[dir="rtl"] .hdr-cta:hover::after { transform: scaleX(-1) translateX(4px); }

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(28, 26, 25, .2);
  cursor: pointer;
}
.hamburger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1240px) {
  :root { --header-h: 95px; }
  .hdr-top { padding-inline: 20px; justify-content: space-between; }
  .hdr-row { grid-template-columns: 1fr auto; height: 62px; padding-inline: 20px; }
  .brand-mark { --h: 32px; }
  .brand-word { font-size: 23px; }
  .hamburger { display: flex; }

  .navlinks {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 6px 20px 26px;
    background: var(--white);
    border-top: 1px solid rgba(28, 26, 25, .07);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px rgba(28, 26, 25, .1);
  }
  .navlinks.active { display: flex; animation: menu-in .26s ease both; }
  .navlinks a, .navlinks .nav-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(28, 26, 25, .08);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -.01em;
    text-transform: none;
  }
  .navlinks a::after {
    content: '→';
    position: static;
    height: auto;
    background: none;
    transform: none;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--orange);
  }
  [dir="rtl"] .navlinks a::after { content: '←'; }
}

@media (max-width: 560px) {
  .hdr-cta, .hdr-mail { display: none; }
  .hdr-top { justify-content: flex-end; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .7);
  padding-block: clamp(52px, 7vw, 76px) 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr);
  gap: clamp(36px, 6vw, 88px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--rule-light);
}

.footer .brand-word { color: var(--white); }
.footer-brand .brand { margin-bottom: 16px; }

.newsletter p { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--white); margin-bottom: 16px; }

.newsletter-form { display: flex; gap: 0; max-width: 380px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-inline-end: 0;
  border-radius: 0;
  color: var(--white);
  font-size: 14.5px;
  outline: none;
  transition: border-color .25s;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-form button {
  padding: 0 20px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.newsletter-form button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.newsletter-socials { display: flex; gap: 10px; margin-top: 26px; }
.newsletter-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .75);
  transition: background .25s, border-color .25s, color .25s;
}
.newsletter-socials svg { width: 17px; height: 17px; }
.newsletter-socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.footer-locations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 2.6vw, 40px);
}
/* Each office borrows two rows of the parent grid: its name, then its address. */
.location { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
/* The second row starts under the first office, so every office name sits on one line. */
.footer-locations > .location:nth-child(5) { grid-column: 2; }
.footer-locations h3 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 10px;
}
/* Latin addresses keep their own reading order inside the Arabic layout. */
.footer-locations p { unicode-bidi: plaintext; text-align: start; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); padding-bottom: 28px; }
.footer-locations a { transition: color .25s; }
.footer-locations a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p { max-width: 640px; line-height: 1.6; }
.secondary-nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.secondary-nav a { transition: color .25s; }
.secondary-nav a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .footer-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-locations > .location:nth-child(5) { grid-column: auto; }
}
@media (max-width: 420px) {
  .footer-locations { grid-template-columns: minmax(0, 1fr); }
}

/* Newsletter result notice */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 19, 18, .55);
}
.popup-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 38px 40px 34px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 24px 60px rgba(20, 19, 18, .3);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}
.popup-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 12px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.popup-close:hover { color: var(--ink); }

#scrollTopBtn {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background .25s;
}
#scrollTopBtn.show { opacity: 1; visibility: visible; }
#scrollTopBtn:hover { background: var(--orange); }

/* =========================================================
   HOME — HERO
========================================================= */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 19, 18, .82) 0%, rgba(20, 19, 18, .56) 42%, rgba(20, 19, 18, .16) 84%);
}
[dir="rtl"] .hero-media::after { transform: scaleX(-1); }

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: calc(var(--header-h) + 56px) 110px;
}
.hero h1 {
  max-width: 940px;
  margin: 24px 0 0;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.018em;
  color: #FBFAF6;
}
.hero-sub {
  max-width: 580px;
  margin-top: 26px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.62;
  color: rgba(255, 255, 255, .8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-scroll {
  position: absolute;
  inset-block-end: 34px;
  inset-inline-start: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  transition: color .28s;
}
[dir="rtl"] .hero-scroll { letter-spacing: 0; font-size: 14px; }
.hero-scroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  transition: border-color .28s;
}
.hero-scroll:hover { color: var(--white); }
.hero-scroll:hover .hero-scroll-icon { border-color: var(--white); }
.hero-scroll svg { width: 15px; height: 15px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---- client logo band ---- */
.logo-band { padding-block: 38px; border-bottom: 1px solid var(--rule); }
.logo-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scrollTrack 110s linear infinite;
}
.logo-item img {
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s, opacity .3s;
}
.logo-item img:hover { filter: none; opacity: 1; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }
@keyframes scrollTrack { to { transform: translateX(-50%); } }
[dir="rtl"] .logo-track { animation-name: scrollTrack-rtl; }
@keyframes scrollTrack-rtl { to { transform: translateX(50%); } }

/* ---- services cards ---- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.service-card { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 20px; }
.service-main { display: flex; flex-direction: column; }
.service-num, .value-num { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--orange-text); }
.service-img { margin-top: 18px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-main:hover .service-img img { transform: scale(1.05); }
.service-card h3 { margin-top: 22px; font-family: var(--sans); font-size: 14.5px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; transition: color .28s; }
.service-main:hover h3 { color: var(--orange-text); }

/* ---- about split + sector panel ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-copy .lead { margin-top: 22px; }
.split-copy .btn { margin-top: 34px; }

.sector-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.sector-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 196px;
  padding: 20px 20px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule);
  transition: background .3s;
}
.sector-tile-num { font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--muted); }
.sector-tile img { width: 46px; height: 46px; object-fit: contain; transition: transform .5s var(--ease); }
.sector-tile h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 1.45; letter-spacing: .1em; text-transform: uppercase; transition: color .28s; }
.sector-tile:hover { background: #FFFDFB; }
.sector-tile:hover img { transform: translateY(-4px); }
.sector-tile:hover h3 { color: var(--orange-text); }
.sector-tile--cta { background: var(--ink); }
.sector-tile--cta:hover { background: var(--orange-dark); }
.sector-tile-count { font-family: var(--serif); font-size: 68px; line-height: .9; color: var(--orange); transition: color .3s; }
.sector-tile--cta:hover .sector-tile-count { color: var(--white); }
.sector-tile-label { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.sector-tile-label svg, .group-card-foot svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
[dir="rtl"] .sector-tile-label svg, [dir="rtl"] .group-card-foot svg { transform: scaleX(-1); }

/* ---- talk band ---- */
.talk { position: relative; background: var(--black); overflow: hidden; }
.talk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.talk::after { content: ''; position: absolute; inset: 0; background: rgba(20, 19, 18, .74); }
.talk-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px 72px;
  flex-wrap: wrap;
  padding-block: clamp(64px, 8vw, 104px);
}
.talk-copy { max-width: 720px; }
.talk h2 { font-size: clamp(32px, 4.3vw, 48px); line-height: 1.1; letter-spacing: -.02em; color: var(--white); }
.talk p { margin-top: 20px; font-size: 17px; line-height: 1.66; color: rgba(255, 255, 255, .74); }

/* ---- news ---- */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule); }
.news-feature .news-image { position: relative; display: block; aspect-ratio: auto; min-height: 400px; }
.news-feature .news-image img { position: absolute; inset: 0; }
.news-badge { position: absolute; inset-block-start: 20px; inset-inline-start: 20px; padding: 7px 12px; background: var(--orange); color: var(--white); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.news-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4.2vw, 60px); }
.news-feature .news-heading { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.28; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.news-tags li { padding: 5px 10px; border: 1px solid var(--rule); background: var(--white); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--body); }
.news-feature .btn { margin-top: 30px; }
.news-feature + .news-grid { margin-top: 56px; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.news-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.news-image a, .news-image img { display: block; width: 100%; height: 100%; }
.news-image img { object-fit: cover; object-position: 50% 28%; transition: transform .8s var(--ease); }
.news-card:hover .news-image img, .news-feature:hover .news-image img { transform: scale(1.04); }
.news-date { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text); }
.news-card .news-date { margin-top: 22px; }
.news-heading { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: -.008em; color: var(--ink); }
.news-heading a { transition: color .28s; }
.news-heading a:hover { color: var(--orange-text); }

/* =========================================================
   INNER PAGES — INTRO
========================================================= */

.page-hero { padding-block: calc(var(--header-h) + clamp(56px, 7vw, 92px)) clamp(40px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; }
.page-hero .lead { margin-top: 22px; }

.page-hero--media { position: relative; background: var(--black); overflow: hidden; padding-block: calc(var(--header-h) + clamp(88px, 12vw, 168px)) clamp(64px, 8vw, 104px); }
.page-hero--media video, .page-hero--media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.page-hero--media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 18, .84) 0%, rgba(20, 19, 18, .58) 46%, rgba(20, 19, 18, .22) 100%); }
[dir="rtl"] .page-hero--media::after { transform: scaleX(-1); }
.page-hero--media .container { position: relative; z-index: 1; }
.page-hero--media h1 { color: #FBFAF6; }
.page-hero--media .lead { color: rgba(255, 255, 255, .8); }

/* =========================================================
   ABOUT
========================================================= */

.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.about-statement { font-family: var(--serif); font-size: clamp(23px, 2.6vw, 32px); line-height: 1.32; letter-spacing: -.012em; color: var(--ink); }
.about-body p { color: var(--body); font-size: 17px; line-height: 1.72; }
.about-body p + p { margin-top: 20px; }

.sectors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.sector-row { padding: 34px 30px 38px; background: var(--white); border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); transition: background .3s; }
.sector-row:hover { background: #FFFDFB; }
.sector-icon-big { width: 48px; height: 48px; object-fit: contain; }
.sector-content h3 { margin: 22px 0 14px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.sector-content li { position: relative; padding-inline-start: 18px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.sector-content li + li { margin-top: 8px; }
.sector-content li::before { content: ''; position: absolute; inset-inline-start: 0; top: .68em; width: 8px; height: 1.5px; background: var(--orange); }

.philosophy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.philosophy-quote { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.36; color: var(--white); }
.philosophy-body p { font-size: 16.5px; line-height: 1.74; }
.philosophy-body p + p { margin-top: 18px; }

.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-card { position: relative; display: flex; flex-direction: column; padding: 28px 28px 20px; background: var(--white); border: 1px solid var(--rule); transition: border-color .3s, box-shadow .3s; }
.group-card::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
[dir="rtl"] .group-card::before { transform-origin: 100% 50%; }
.group-card:hover { border-color: rgba(28, 26, 25, .4); box-shadow: 0 18px 40px rgba(28, 26, 25, .07); }
.group-card:hover::before { transform: scaleX(1); }
.group-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; margin-bottom: 28px; }
.group-card .brand-mark { --h: 46px; }
.group-wordmark { font-family: var(--brand); font-weight: 600; font-size: 27px; line-height: 1; letter-spacing: .02em !important; text-transform: uppercase; color: var(--ink); }
.group-flag { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 4px 12px rgba(28, 26, 25, .1); }
.group-flag svg { display: block; width: 100%; height: 100%; }
.group-line { font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.group-card h3 { margin-top: 10px; font-size: 23px; line-height: 1.22; letter-spacing: -.008em; }
.group-place { margin-top: 8px; margin-bottom: 28px; font-size: 14px; color: var(--body); }
.group-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.group-card-foot svg { color: var(--orange); }
.group-card:hover .group-card-foot svg { transform: translateX(4px); }
[dir="rtl"] .group-card:hover .group-card-foot svg { transform: scaleX(-1) translateX(4px); }

.innov-media { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5 / 4; }
.innov-media .box { overflow: hidden; background: var(--paper); }
.innov-media .box:first-child { grid-row: 1 / 3; }
.innov-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.innov-media .box:hover img { transform: scale(1.05); }
.innov-copy p { margin-top: 18px; color: var(--body); font-size: 16.5px; line-height: 1.72; }
.innov-copy h2 + p { margin-top: 26px; font-size: 19px; color: var(--ink); }

/* =========================================================
   SERVICES
========================================================= */

.services-section { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.services-left { position: sticky; top: calc(var(--header-h) + 28px); }
.main-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }

.thumbs { margin-top: 22px; border-top: 1px solid var(--rule); counter-reset: svc; }
.thumb {
  counter-increment: svc;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .25s, padding .3s var(--ease);
}
.thumb::before { content: '0' counter(svc); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted); transition: color .25s; }
.thumb img { display: none; }
.thumb p { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); transition: color .25s; }
.thumb::after { content: '→'; font-size: 16px; color: var(--orange); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
[dir="rtl"] .thumb::after { content: '←'; }
.thumb:hover { background: var(--paper); }
.thumb.active { padding-inline-start: 12px; }
.thumb.active p, .thumb.active::before { color: var(--orange-text); }
.thumb.active::after, .thumb:hover::after { opacity: 1; transform: none; }

.services-right, #service-details h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.service-description { transition: opacity .3s ease; }
.service-description.fade-out { opacity: 0; }
.services-right h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; letter-spacing: -.016em; text-transform: capitalize; }
/* Without scripts all four service lines are listed, each under its own title. */
.service-static + .service-static { margin-top: 64px; }
#service-details .service-static-title { margin-top: 0; padding-top: 0; border-top: 0; font-size: clamp(26px, 3vw, 34px); }
.service-static:first-child .service-static-title { display: none; }
#service-details h3 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 24px; line-height: 1.25; }
#service-details p { margin-top: 14px; max-width: 720px; font-size: 16.5px; line-height: 1.72; color: var(--body); }
#service-details ul { margin-top: 20px; max-width: 720px; }
#service-details li { position: relative; padding-inline-start: 24px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
#service-details li + li { margin-top: 11px; }
#service-details li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 1.5px; background: var(--orange); }

/* =========================================================
   PROJECTS
========================================================= */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid rgba(28, 26, 25, .22);
  border-radius: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { padding: 24px; border: 1px solid var(--rule); background: var(--white); transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.project-card:hover { border-color: rgba(28, 26, 25, .4); box-shadow: 0 18px 40px rgba(28, 26, 25, .07); transform: translateY(-3px); }
.project-inner { display: flex; align-items: flex-start; gap: 22px; }
.project-image { flex: none; width: 92px; height: 68px; border: 1px solid var(--rule); background: var(--white); overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-text { min-width: 0; }
.project-text h3 { font-size: 19.5px; line-height: 1.3; letter-spacing: -.006em; margin-bottom: 12px; }
.project-text p { font-size: 13.5px; line-height: 1.6; color: var(--body); }
.project-text strong { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-inline-end: 6px; }

/* =========================================================
   CLIENTS
========================================================= */

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.client-card { display: grid; place-items: center; height: 138px; padding: 26px; background: var(--white); border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }
.client-card img { max-width: min(100%, 140px); max-height: 84px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .5s var(--ease); }
.client-card:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* =========================================================
   TEAM
========================================================= */

.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.team-member { cursor: pointer; }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .8s var(--ease), filter .4s; }
.team-member:hover .team-photo img { transform: scale(1.05); filter: none; }
.team-member h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; transition: color .28s; }
.team-member:hover h3 { color: var(--orange-text); }
.team-title { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--body); }

#team-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 19, 18, .7);
}
.team-modal-content {
  position: relative;
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 920px;
  max-height: calc(100dvh - 40px);
  padding: 44px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  overflow-y: auto;
  animation: menu-in .3s ease both;
}
.team-modal-close { position: absolute; inset-block-start: 10px; inset-inline-end: 18px; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.team-modal-close:hover { color: var(--ink); }
.team-modal-left { flex: none; }
.team-modal-left img { width: 240px; aspect-ratio: 4 / 5; object-fit: cover; }
.team-modal-right h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.014em; }
.team-modal-right h4 { margin: 10px 0 20px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.team-modal-right p { font-size: 15.5px; line-height: 1.72; color: var(--body); }

/* =========================================================
   LEGAL
========================================================= */

.cookies, .privacy, .terms, .principles {
  max-width: 820px;
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 92px)) var(--gutter) clamp(72px, 9vw, 120px);
}
:is(.cookies, .privacy, .terms, .principles) h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
:is(.cookies, .privacy, .terms, .principles) h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.25; }
:is(.cookies, .privacy, .terms, .principles) p { font-size: 16.5px; line-height: 1.74; color: var(--body); }
:is(.cookies, .privacy, .terms, .principles) p + p { margin-top: 14px; }
:is(.cookies, .privacy, .terms, .principles) ul { margin-top: 14px; }
:is(.cookies, .privacy, .terms, .principles) li { position: relative; padding-inline-start: 24px; font-size: 16px; line-height: 1.65; color: var(--body); }
:is(.cookies, .privacy, .terms, .principles) li + li { margin-top: 8px; }
:is(.cookies, .privacy, .terms, .principles) li::before { content: ''; position: absolute; inset-inline-start: 0; top: .78em; width: 12px; height: 1.5px; background: var(--orange); }
:is(.cookies, .privacy, .terms, .principles) a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   CONTACT
========================================================= */

.contact-page { padding-block: calc(var(--header-h) + clamp(36px, 5vw, 64px)) clamp(64px, 8vw, 104px); }
.contact-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border: 1px solid var(--rule); box-shadow: 0 30px 70px rgba(28, 26, 25, .08); }
.contact-aside { display: flex; flex-direction: column; padding: clamp(30px, 4.4vw, 60px); background: var(--black); color: rgba(255, 255, 255, .74); }
.contact-aside h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.02em; color: #FBFAF6; }
.contact-aside .lead { margin-top: 22px; font-size: 16.5px; color: rgba(255, 255, 255, .72); }
.contact-channels { margin-top: auto; padding-top: 44px; }
.contact-channels li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 18px; border-top: 1px solid var(--rule-light); }
.contact-channels li:last-child { padding-bottom: 0; }
.contact-channels li > span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.contact-channels li > a { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--white); overflow-wrap: anywhere; border-bottom: 1px solid transparent; transition: border-color .28s; }
.contact-channels li > a:hover { border-color: var(--orange); }
.contact-socials { margin-top: 4px; }

.contact-container { padding: clamp(26px, 4vw, 56px); background: var(--white); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full, .contact-form .g-recaptcha, .contact-form > button { grid-column: 1 / -1; }
.contact-form label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid rgba(28, 26, 25, .2);
  border-radius: 0;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(28, 26, 25, .42); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(220, 68, 5, .12); }
.contact-form .iti { width: 100%; direction: ltr; }
#phoneError { font-size: 13px; }

.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.office-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 26px 24px; background: var(--white); border: 1px solid var(--rule); }
.office-place { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.office-card h3 { margin-top: 10px; font-size: 21px; line-height: 1.25; }
/* Latin addresses keep their own reading order inside the Arabic layout. */
.office-address { margin-top: 12px; padding-bottom: 18px; font-size: 14.5px; line-height: 1.65; color: var(--body); unicode-bidi: plaintext; text-align: start; }
.office-phone { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); align-self: stretch; font-size: 14.5px; font-weight: 600; color: var(--ink); unicode-bidi: plaintext; text-align: start; transition: color .25s; }
.office-phone:hover { color: var(--orange-text); }

#sendBtn { justify-self: start; }
#sendBtn:disabled { background: #B9B5AD; cursor: not-allowed; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
#sendBtn.loading { pointer-events: none; opacity: .85; }
#sendBtn.loading .btn-text { display: none; }
#sendBtn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   CAREERS + INSIGHTS
========================================================= */

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.value-card { border-top: 1px solid var(--rule); padding-top: 20px; }
.value-card h3 { margin-top: 20px; font-size: 24px; line-height: 1.22; }
.value-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--body); }

.empty-state { max-width: 780px; padding: clamp(26px, 4vw, 48px); background: var(--white); border: 1px solid var(--rule); border-inline-start: 3px solid var(--orange); }
.empty-state h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.empty-state p { margin-top: 14px; font-size: 16.5px; line-height: 1.7; color: var(--body); }
.empty-state .btn { margin-top: 28px; }

.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.insight-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 228px; padding: 30px; background: var(--white); border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }
.insight-card img { width: 46px; height: 46px; object-fit: contain; }
.insight-card h3 { margin: 22px 0 24px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.insight-status { margin-top: auto; padding: 5px 10px; border: 1px solid var(--rule); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.insight-card--cta { justify-content: space-between; background: var(--ink); transition: background .3s; }
.insight-card--cta:hover { background: var(--orange-dark); }
.insight-card--cta h3 { margin: 0 0 24px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; text-transform: none; color: var(--white); }
.insight-card--cta .link-arrow { color: var(--white); }

/* Published insights reuse the news cards; these are the differences. */
.insight-item .news-date span + span::before { content: "\00B7"; margin-inline: .7em; }
.insight-item--text { padding-top: 22px; border-top: 1px solid var(--rule); }
.insight-item--text > :first-child { margin-top: 0; }
.insight-summary { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--body); }

.job-list { display: grid; gap: 20px; max-width: 780px; margin-bottom: 28px; }
.job-card { padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--rule); }
.job-card h3 { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.25; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.job-meta span { padding: 5px 10px; border: 1px solid var(--rule); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--body); }
.job-meta span:empty { display: none; }
.job-desc { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--body); }
.job-card .btn { margin-top: 24px; }

/* ---- careers: application form ---- */
#apply { scroll-margin-top: var(--header-h); }
.section-head .lead { margin-top: 16px; max-width: 640px; }
.apply-form { max-width: 780px; }
.apply-form .field[hidden], .apply-status[hidden] { display: none; }
.apply-form select {
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid rgba(28, 26, 25, .2);
  border-radius: 0;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.apply-form select:hover { border-color: rgba(28, 26, 25, .42); }
.apply-form select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(220, 68, 5, .12); }
.apply-form input[type="file"] { padding: 10px; font-size: 14.5px; cursor: pointer; }
.apply-form input[type="file"]::file-selector-button { margin-inline-end: 14px; padding: 8px 14px; background: var(--ink); border: 0; font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); cursor: pointer; }
.apply-form small { font-size: 13px; color: var(--muted); }
.apply-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-privacy, .apply-status { grid-column: 1 / -1; font-size: 14px; line-height: 1.6; color: var(--muted); }
.apply-form > button { justify-self: start; }
.apply-form > button.loading { pointer-events: none; opacity: .85; }
.apply-form > button.loading .btn-text { display: none; }
.apply-form > button.loading .btn-spinner { display: inline-block; }
.apply-status { padding: 14px 16px; border: 1px solid #EBC9BA; background: #FBF1EC; font-size: 15px; color: var(--ink); }
.apply-status.is-ok { border-color: #C4DCCB; background: #F0F7F2; }
.empty-state > p:first-child { margin-top: 0; }

/* =========================================================
   THANK YOU
========================================================= */

.thankyou-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.thankyou-box { width: 100%; max-width: 560px; padding: clamp(36px, 6vw, 60px); background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--orange); }
.thankyou-box h1 { font-size: clamp(36px, 6vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
.thankyou-box p { margin-top: 18px; font-size: 17.5px; line-height: 1.66; color: var(--body); }
.thankyou-box .brand { margin-top: 36px; }
.thankyou-box form { margin-top: 28px; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors-grid, .group-grid, .office-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-section { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .split, .about-intro, .philosophy-grid, .news-feature, .contact-panel, .services-section, .value-grid { grid-template-columns: minmax(0, 1fr); }
  .news-feature .news-image { min-height: 0; aspect-ratio: 16 / 10; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  /* The hero text spans the whole width here, so the shade keeps more of its strength to the far side (4.5:1 on every frame of the video). */
  .hero-media::after { background: linear-gradient(90deg, rgba(20, 19, 18, .82) 0%, rgba(20, 19, 18, .62) 42%, rgba(20, 19, 18, .42) 84%); }
  .services-left { position: static; }
  .main-image { display: none; }
  .thumbs { margin-top: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero-inner { padding-bottom: 96px; }
  .service-grid, .news-grid, .sectors-grid, .group-grid, .office-grid, .insight-grid { grid-template-columns: minmax(0, 1fr); }
  .sector-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-tile { min-height: 168px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-card { height: 110px; padding: 20px; }
  .client-card img { max-height: 66px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .team-modal-content { flex-direction: column; gap: 24px; padding: 40px 24px 28px; }
  .team-modal-left img { width: 160px; }
  .project-card { padding: 18px; }
  .project-inner { gap: 16px; }
  .project-image { width: 68px; height: 52px; }
  .project-text h3 { font-size: 17.5px; }
  .sector-row { padding: 28px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   SKIP LINK
========================================================= */

/* Off screen until a keyboard user tabs to it. */
.skip-link { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 2000; padding: 10px 16px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* =========================================================
   FIGURES (home proof strip, About "in numbers")
========================================================= */

.proof { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); scroll-margin-top: var(--header-h); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 72px); }
.proof-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { border-inline-start: 2px solid var(--orange); padding-inline-start: 20px; }
.proof-value { display: block; font-family: var(--serif); font-size: clamp(44px, 5.2vw, 68px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.proof-label { margin-top: 12px; max-width: 300px; font-size: 15px; line-height: 1.55; color: var(--body); }

/* ---- client band heading ---- */
.logo-band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px clamp(32px, 6vw, 96px); margin-bottom: 34px; }
.logo-band-head h2 { max-width: 17em; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.012em; }
.logo-band-head h2 a { transition: color .28s; }
.logo-band-head h2 a:hover { color: var(--orange-text); }
.logo-band-head p { font-size: 15.5px; line-height: 1.65; color: var(--body); }

/* ---- service positioning lines ---- */
.service-card .service-line { margin-top: 10px; font-size: 14.5px; line-height: 1.62; color: var(--body); }
.services-right .service-line { margin-top: 16px; max-width: 720px; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink); }

/* ---- "how we work differently" ---- */
.contrast-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.contrast-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-block: 24px; border-top: 1px solid var(--rule-light); }
.contrast-no { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contrast-arrow { color: var(--orange); font-size: 18px; line-height: 1; }
[dir="rtl"] .contrast-arrow { transform: scaleX(-1); }
.contrast-yes { flex-basis: 100%; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; color: var(--white); }

/* ---- sector one-liners ---- */
.sector-tile-text p { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--body); }
.sector-line { margin: -4px 0 16px; font-family: var(--serif); font-size: 16.5px; line-height: 1.42; color: var(--ink); }

/* ---- About: mission, what sets DAIS apart, how we work ---- */
.about-statement { font-style: italic; font-weight: 600; }
.about-statement strong { font-weight: inherit; color: var(--orange-text); }
.about-body h2 { margin-bottom: 22px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.about-body p strong { color: var(--ink); }
.how-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.how-step { border-top: 1px solid var(--rule); padding-top: 20px; }
.how-step h3 { margin-top: 20px; font-size: 23px; line-height: 1.22; }
.how-step p { margin-top: 12px; font-size: 15px; line-height: 1.68; color: var(--body); }

/* ---- footer brand line, form notices ---- */
.footer-tagline { max-width: 340px; margin-bottom: 30px; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .66); }
.footer-tagline strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--white); }
.newsletter .newsletter-note { max-width: 380px; margin: 12px 0 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.newsletter-note a, .apply-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter-note a:hover { color: var(--white); }
.apply-privacy a:hover { color: var(--orange-text); }

/* ---- clients by group, project abbreviations ---- */
.clients-group-title { margin: 56px 0 22px; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25; }
.clients-group-title:first-child { margin-top: 0; }
.projects-abbr { max-width: 1040px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.projects-abbr strong { color: var(--body); }

/* ---- team: biography excerpt and LinkedIn link ---- */
.team-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.team-linkedin { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 14px; border: 1px solid var(--rule); color: var(--body); transition: color .25s, border-color .25s; }
.team-linkedin:hover { color: var(--orange-text); border-color: var(--orange-text); }
.team-linkedin svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .logo-band-head, .contrast-list { grid-template-columns: minmax(0, 1fr); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .proof-grid, .proof-grid--4, .how-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-label { max-width: none; }
}

/* =========================================================
   CHOICES MADE IN THE CONSOLE (admin/php/lib/structure.php)
   A section's background colour, arrangement and background
   image; the number of columns of a repeating part; and the
   sections an administrator can add to a page.
========================================================= */

/* ---- background colour ---- */
.tone-white { background-color: var(--white); }
.tone-paper { background-color: var(--paper); }
.tone-dark, .has-bg--dark { background-color: var(--black); color: rgba(255, 255, 255, .78); }
:is(.tone-dark, .has-bg--dark) :is(h1, h2, h3, h4, .lead, .proof-value, .about-statement, .sector-line) { color: var(--white); }
:is(.tone-dark, .has-bg--dark) :is(p, li, .proof-label) { color: rgba(255, 255, 255, .74); }
:is(.tone-dark, .has-bg--dark) :is(.btn--outline, .link-arrow) { color: var(--white); border-color: rgba(255, 255, 255, .4); }
:is(.tone-dark, .has-bg--dark) :is(.value-card, .how-step, .service-card, .proof-item) { border-color: var(--rule-light); }
/* Cards keep their own white ground, and so their own dark text. */
:is(.tone-dark, .has-bg--dark) :is(.sector-row, .sector-tile, .group-card, .office-card, .client-card, .project-card, .contact-form) :is(h3, p, li) { color: revert-layer; }

/* ---- background image ---- */
.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ---- arrangement: two things side by side, stacked or swapped ---- */
.is-stacked :is(.split, .about-intro, .philosophy-grid, .logo-band-head, .news-feature, .contact-panel, .services-section, .section-head) { grid-template-columns: minmax(0, 1fr); }
.is-stacked .section-head { flex-direction: column; align-items: flex-start; }
.is-reversed :is(.split, .about-intro, .philosophy-grid, .logo-band-head, .news-feature, .contact-panel, .services-section) > :first-child { order: 2; }

/* ---- columns of a repeating part ---- */
/* Named twice so the choice outranks the grid's own column rule, wherever that rule sits. */
@media (min-width: 861px) {
  [style*="--cols"][style*="--cols"] { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}

/* ---- a background video replaced by an image ---- */
.hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.talk > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---- sections added in the console ---- */
.block-body p { max-width: 760px; font-size: 17px; line-height: 1.72; color: var(--body); }
.block-body p + p { margin-top: 18px; }
.block-btn { margin-top: 30px; }
.block-media .block-body { margin-top: 22px; }
.block-image { overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; }
.block-image img, .block-card-img img, .block-shot img { width: 100%; height: 100%; object-fit: cover; }
.block-card { border-top: 1px solid var(--rule); padding-top: 20px; }
.block-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.block-card h3 { margin-top: 20px; font-size: 24px; line-height: 1.22; }
.block-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.block-figures .proof-grid { margin-top: 8px; }
.block-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.block-shot { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }

/* ---- a text's alignment, and what was added under a text ---- */
.ta-left { text-align: left; }
.ta-center { text-align: center; margin-inline: auto; }
.ta-right { text-align: right; margin-inline-start: auto; }
.x-text { margin-top: 16px; max-width: 760px; font-size: 17px; line-height: 1.72; }
.x-heading { margin-top: 30px; font-size: 26px; line-height: 1.22; }
.x-btn { margin-top: 26px; }
/* On a dark ground an added button takes the light outline. */
:is(.hero, .talk, .section--dark, .footer, .tone-dark, .has-bg--dark) .x-btn:not(:hover) { color: var(--white); border-color: rgba(255, 255, 255, .5); }
:is(.hero-ctas, .hdr-actions, .navlinks, .secondary-nav) > :is(.x-btn, .x-text, .x-heading) { margin-top: 0; }

/* ---- legal pages: one block per heading ---- */
.legal-item + .legal-item { margin-top: 0; }

@media (max-width: 860px) {
  .block-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- language ---- */
/* A page read in another language is shown once its text is in place, not in English first. */
html.i18n-wait body { visibility: hidden; }
