/* ==========================================================================
   AWC — brand layer (loaded last). AWC brown on warm cream, taken from the
   logo PDF (#332016) and the brown letterhead (#3A2208 type, #9A7130 bronze rule).
   Editorial rhythm after J.P. Morgan Private Bank: generous whitespace,
   large serif headings, image-led sections, thin rules, text-link CTAs.
   Logical properties only, so /ar mirrors without extra rules.
   ========================================================================== */

:root {
  --brand: #3a2208;
  --brand-deep: #24160b;
  --ink: #2a1d13;
  --ink-2: #3a2a1c;
  --ink-soft: #57463a;
  --muted: #76655a;
  --paper: #f8f3ec;
  --white: #fffcf7;
  --stone: #f0e8dd;
  --stone-2: #e5d9c9;
  --line: rgba(58, 34, 8, 0.13);
  --line-strong: rgba(58, 34, 8, 0.32);
  --line-light: rgba(248, 243, 236, 0.22);
  --brass: #9a7130;
  --brass-ink: #7a5726;
  --brass-light: #cfb07c;
  --on-dark: rgba(248, 243, 236, 0.8);
  --container: 1280px;
  --section: clamp(88px, 11vw, 168px);
  --header-h: 92px;
}

body {
  background: var(--paper);
  color: var(--ink);
}
::selection {
  background: var(--stone-2);
  color: var(--brand-deep);
}

/* ---------- Type: larger, calmer serif ---------- */
.display {
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--brand-deep);
}
.display--page {
  font-size: clamp(40px, 4.8vw, 68px);
}
.h2 {
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.1;
  color: var(--brand-deep);
}
.h3,
.h4 {
  color: var(--brand-deep);
}
.eyebrow {
  color: var(--brass-ink);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.eyebrow::before {
  inline-size: 36px;
  opacity: 0.6;
}
.eyebrow--light,
.section--ink .eyebrow {
  color: var(--brass-light);
}
.lead,
.body-lg {
  color: var(--ink-soft);
}
:focus-visible {
  outline-color: var(--brass);
}

/* ---------- Header: real logo, serif nav, outlined Login ---------- */
/* Solid, no backdrop-filter: a filter would trap the fixed mobile menu inside the header. */
.site-header {
  background: var(--paper);
}
.logo {
  color: var(--brand);
}
.logo__svg {
  block-size: 38px;
  inline-size: auto;
}
.logo--light {
  color: var(--paper);
}
.logo--light .logo__svg {
  block-size: 44px;
}
.logo--light .awc-logo__rule,
.logo--light [fill='#9A7130'] {
  fill: var(--brass-light);
}
.main-nav a,
.site-header__actions .lang-switch {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--brand);
}
html[lang='ar'] .main-nav a {
  font-size: 17px;
}
.site-header__actions .lang-switch:lang(ar) {
  font-family: var(--font-ar-sans), sans-serif;
  font-size: 15px;
}
.site-header__actions .lang-switch:lang(en) {
  font-family: var(--font-serif), serif;
}
.main-nav a::after {
  background: var(--brass);
}
.main-nav ul {
  gap: clamp(20px, 2.6vw, 40px);
}
.btn--login {
  min-height: 38px;
  padding: 0 18px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brand);
  border-color: rgba(58, 34, 8, 0.55);
  border-radius: 4px;
}
html[lang='ar'] .btn--login {
  font-family: var(--sans);
  font-size: 15px;
}
.btn--login:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  background: var(--brand);
}
.mobile-menu li a {
  color: var(--brand-deep);
}
.mobile-menu__actions .btn {
  min-height: 50px;
}
@media (max-width: 1080px) {
  :root {
    --header-h: 72px;
  }
  .logo__svg {
    block-size: 30px;
  }
}

/* ---------- Buttons become text links in page content (forms keep real buttons) ---------- */
main .wp-block-buttons {
  gap: 18px 36px;
  align-items: center;
}
main .wp-block-button .wp-block-button__link,
main .wp-block-button.is-style-awc-outline .wp-block-button__link,
main .wp-block-button.is-style-awc-light .wp-block-button__link,
main .wp-block-button.is-style-awc-ghost-light .wp-block-button__link {
  min-height: 0;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  gap: 12px;
}
main .wp-block-button .wp-block-button__link::after {
  content: '';
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url(../icons/arrow.svg) center / contain no-repeat;
  mask: url(../icons/arrow.svg) center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
[dir='rtl'] main .wp-block-button .wp-block-button__link::after {
  transform: scaleX(-1);
}
main .wp-block-button .wp-block-button__link:hover {
  background: none;
  color: var(--brass-ink);
}
main .wp-block-button .wp-block-button__link:hover::after {
  transform: translateX(4px);
}
[dir='rtl'] main .wp-block-button .wp-block-button__link:hover::after {
  transform: scaleX(-1) translateX(4px);
}
/* Secondary links read lighter than the first. */
main .wp-block-button + .wp-block-button .wp-block-button__link {
  border-bottom-color: var(--line-strong);
  color: var(--ink-soft);
}
main :is(.cta, .section--ink) .wp-block-button .wp-block-button__link,
main :is(.cta, .section--ink) .wp-block-button[class*='is-style-'] .wp-block-button__link,
main :is(.cta, .section--ink) .wp-block-button + .wp-block-button .wp-block-button__link {
  color: var(--paper);
  border-bottom-color: rgba(248, 243, 236, 0.5);
}
main :is(.cta, .section--ink) .wp-block-button .wp-block-button__link:hover {
  color: var(--brass-light);
}
p.link-arrow > a {
  color: var(--brand);
  border-bottom-color: currentColor;
}
p.link-arrow > a:hover {
  color: var(--brass-ink);
}
.section--ink p.link-arrow > a,
.cta p.link-arrow > a {
  color: var(--paper);
}
p.link-arrow + p.link-arrow--quiet {
  margin-top: 14px;
}
p.link-arrow--quiet > a {
  color: var(--ink-soft);
  border-bottom-color: var(--line-strong);
  font-weight: 400;
}
p.link-arrow--lg > a {
  font-size: 18px;
  gap: 14px;
  padding-bottom: 8px;
}
p.link-arrow--lg > a::after {
  inline-size: 20px;
  block-size: 20px;
}

/* ---------- Home hero: full screen, video behind the headline ---------- */
/* The header floats over it (see "Header over the hero" below), so the hero is a full 100vh/100svh. */
.hero-home {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--awc-bar-h, 0px));
  min-height: calc(100svh - var(--awc-bar-h, 0px)); /* still exactly one screen when the announcement bar is on */
  background: var(--brand);
  color: var(--paper);
  overflow: hidden;
  padding: 0;
}
/* The old hero's scroll cue (awc.css ::after) goes; ::before becomes a light gradient on the text side only. */
.hero-home::after {
  content: none;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to var(--hero-shade-dir, right), rgba(26, 15, 4, 0.66) 0%, rgba(26, 15, 4, 0.4) 40%, rgba(26, 15, 4, 0) 70%),
    linear-gradient(to bottom, rgba(26, 15, 4, 0.32) 0%, rgba(26, 15, 4, 0) 22%);
}
[dir='rtl'] .hero-home::before {
  --hero-shade-dir: left;
}
.hero-home .hero-home__media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  aspect-ratio: auto;
  animation: none;
}
.hero-home .hero-home__media img {
  animation: hero-zoom 14s var(--ease) both;
}
.hero-home__media .awc-video {
  z-index: 1;
}
.hero-home__inner {
  position: relative;
  z-index: 2;
  inline-size: 100%;
  padding-block: calc(var(--header-h) + clamp(24px, 4vw, 56px)) clamp(48px, 7vw, 96px);
}
.hero-home__content {
  padding: 0;
  max-width: 40rem;
}
.hero-home .display {
  max-width: none;
  color: var(--paper);
  font-size: clamp(42px, 5.4vw, 84px);
  text-shadow: 0 1px 24px rgba(26, 15, 4, 0.25);
}
.hero-home__intro {
  max-width: 34em;
  margin-top: clamp(24px, 2.4vw, 36px);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(248, 243, 236, 0.9);
}
.hero-home .link-arrow--lg {
  margin-top: clamp(28px, 3vw, 44px);
}
.hero-home .link-arrow > a {
  color: var(--paper);
  border-color: rgba(248, 243, 236, 0.7);
}
.hero-home .link-arrow > a:hover {
  border-color: var(--paper);
}
.hero-home__more {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
}
.hero-home__more a {
  color: rgba(248, 243, 236, 0.78);
  text-decoration: none;
}
.hero-home__more a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.hero-home .hero-anim:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-home .hero-anim:nth-child(3) {
  animation-delay: 0.2s;
}
.hero-home .hero-anim:nth-child(4) {
  animation-delay: 0.3s;
}
@media (max-width: 700px) {
  .hero-home {
    align-items: flex-end;
  }
  /* On a phone the text runs full width at the bottom, so shade from the bottom up instead of from the side. */
  .hero-home::before,
  [dir='rtl'] .hero-home::before {
    background:
      linear-gradient(to top, rgba(26, 15, 4, 0.7) 0%, rgba(26, 15, 4, 0.36) 45%, rgba(26, 15, 4, 0) 75%),
      linear-gradient(to bottom, rgba(26, 15, 4, 0.36) 0%, rgba(26, 15, 4, 0) 22%);
  }
}

/* ---------- Header over the hero ---------- */
/* On a page that opens with the home hero the header is fixed and transparent with a light logo and nav,
   and turns solid cream (dark logo) once the page scrolls or the phone menu opens. */
body:has(.hero-home) .site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
body.admin-bar:has(.hero-home) .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar:has(.hero-home) .site-header {
    top: 46px;
  }
}
/* The fixed home header starts under the announcement bar and slides up as the bar scrolls away
   (site.js keeps --awc-bar at the bar's still-visible height; 0 when there is no bar). */
body:has(.hero-home) .site-header {
  top: var(--awc-bar, 0px);
}
body.admin-bar:has(.hero-home) .site-header {
  top: calc(32px + var(--awc-bar, 0px));
}
@media (max-width: 782px) {
  body.admin-bar:has(.hero-home) .site-header {
    top: calc(46px + var(--awc-bar, 0px));
  }
}

/* ---------- Announcement bar (Settings → AWC Site; off by default) ---------- */
.announce {
  position: relative;
  z-index: 51;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
html[dir='rtl'] .announce {
  font-size: 17px; /* Arabic letterforms read small at the Latin size */
}
.announce--ink {
  background: var(--brand-deep);
  color: var(--paper);
}
.announce--brass {
  background: var(--brass-light);
  color: var(--brand-deep);
}
.announce .announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding-block: 7px;
  position: relative;
  padding-inline: calc(var(--gutter, 20px) + 32px);
}
.announce__text {
  margin: 0;
  text-align: center;
}
.announce__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  margin-inline-start: 6px;
}
.announce--ink .announce__link {
  color: var(--brass-light);
}
.announce__link:hover {
  text-decoration-thickness: 2px;
}
.announce__close {
  position: absolute;
  inset-inline-end: max(12px, calc(var(--gutter, 20px) - 10px));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
}
.announce__close:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.announce__close:focus-visible,
.announce__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .announce {
    font-size: 12.5px;
  }
  html[dir='rtl'] .announce {
    font-size: 13.5px;
  }
  .announce .announce__inner {
    justify-content: flex-start;
    padding-inline: 22px 52px; /* the phone gutter (.container), plus room for the close button */
  }
  .announce__text {
    text-align: start;
  }
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) :is(.logo, .main-nav a, .main-nav__link, .lang-switch, .lang-toggle-mobile, .lang-toggle-mobile a, .menu-toggle) {
  color: var(--paper);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) :is(.awc-logo__rule, [fill='#9A7130']) {
  fill: var(--brass-light);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .btn--login {
  color: var(--paper);
  border-color: rgba(248, 243, 236, 0.7);
  background: transparent;
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .btn--login:hover {
  background: var(--paper);
  color: var(--brand);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .site-header__divider {
  background: rgba(248, 243, 236, 0.4);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) :is(.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after) {
  background: var(--paper);
}
body:has(.hero-home) .site-header:is(.is-scrolled, .is-open, .mega-open) {
  background: var(--paper);
  border-bottom-color: var(--line);
}

/* ---------- Page hero: text then a wide, quiet image ---------- */
.hero-page {
  padding-block: clamp(56px, 8vw, 120px) 0;
}
.hero-page__text {
  max-width: 940px;
}
.hero-page__media {
  aspect-ratio: 12 / 5;
}
/* A text-only hero already ends in its own bottom padding; a full section top on a plain band
   after it doubled the gap (Chairman's Message, Leadership). Phones have their own rule below. */
@media (min-width: 701px) {
  .hero-page:not(:has(.hero-page__media, figure)) + .section:not(.section--stone, .section--ink, .section--tight) {
    padding-block-start: clamp(24px, 3vw, 40px);
  }
}
/* Chairman's portrait leads its column: no extra drop, so it lines up with the message text. */
.split__aside > .portrait:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .hero-page__media {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Sections: thin rules, cream and stone, deep-brown bands ---------- */
/* Thin full-width rules between plain sections come from site.css. */
.section + .section:not(.section--stone, .section--ink) {
  border-top-color: var(--line);
}
.section--stone {
  background: var(--stone);
}
.section--ink,
.site-footer {
  background: var(--brand-deep);
}
.section--ink .lead {
  color: var(--on-dark);
}
.img-frame {
  background: var(--stone-2);
}
/* Home "Celebrating 30 Years": the exchange-tower photo is 3:2 and the slot is 4:5 on desktop,
   16:10 on tablets and wide on phones; keep the whole tower, top included, in view at every size. */
.anniversary__media img {
  object-position: 46% 20%;
}
/* Client-supplied photos (23 Nov): focal points keep the figure in frame when a slot crops the sides or the top and bottom.
   Individual investors (24 Nov): the rising candles sit left of centre in the 16:10 file.
   Institutional (24 Nov): the lit towers stand at the centre of the night skyline; 60% down keeps them and their reflection.
   UAE market: the flag and its pole hug the left edge, so 0% keeps them whole when phones crop the sides. Chairman: his head and shoulders sit low and slightly right. */
img[src*="individual-investor-candles"] {
  object-position: 40% 50%;
}
img[src*="institutional-abudhabi-night"] {
  object-position: 50% 60%;
}
img[src*="uae-share-market-flag"] {
  object-position: 0% 35%;
}
img[src*="chairman-dubai-dusk"] {
  object-position: 55% 60%;
}
/* 25 Nov photos: the fort's round watchtower stands just left of centre (Chairman's portrait slot crops the sides);
   the waterfront towers sit above the water line, so 40% keeps their tops; the Market Making screens' charts sit left. */
img[src*="chairman-fort-sunset"] {
  object-position: 49% 50%;
}
img[src*="institutional-abudhabi-waterfront"] {
  object-position: 50% 40%;
}
/* 25 Nov afternoon photos (service page heroes: 12:5 from tablets up, about 5:4 on phones; never wider than the
   1280px original). Brokerage: the laptop with the candlestick chart sits bottom right, so the wide frame keeps its
   whole screen and the phone frame keeps the right side. Market Making: the order book ladder and the 15:53:29 clock
   sit left of centre at the bottom, so the wide frame keeps the bottom (clock whole) and the phone frame the left. */
img[src*="brokerage-laptop-chart"] {
  object-position: 100% 90%;
}
img[src*="market-making-order-book"] {
  object-position: 10% 100%;
}
/* Corporate photo (Home card 4:3, Who We Serve slot): the report folder with the gold bars sits
   right of centre and is wide; 80% keeps the whole folder in view in every slot. */
img[src*="corporate-executive-desk"] {
  object-position: 80% 50%;
}

/* Cards: no boxes, just rules and type. */
.service-card,
.audience-card {
  background: none;
  box-shadow: none;
}
.service-grid {
  border-top: 1px solid var(--line-strong);
}
/* Five current activities: one row of five on wide screens, three plus two below that. */
@media (min-width: 1001px) {
  .service-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card {
    padding-inline: 22px;
  }
  /* The edge cards line their text up with the section edge, but keep the same 16px padding as the rest: the card
     is pulled 16px outward instead (the grid track is unchanged), so the white hover box has even padding all round
     and the text neither moves nor re-wraps. */
  .service-grid:has(> :nth-child(5):last-child) > .service-card:first-child {
    margin-inline-start: -16px;
    padding-inline-start: 16px;
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card:last-child {
    margin-inline-end: -16px;
    padding-inline-end: 16px;
  }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .service-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card {
    border-bottom: 1px solid var(--line);
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card:nth-child(3n + 1) {
    margin-inline-start: -16px;
    padding-inline-start: 16px;
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card:last-child {
    margin-inline-end: 0;
    padding-inline-end: 16px; /* card 5 sits mid-row here, not at the edge */
  }
  .service-grid:has(> :nth-child(5):last-child) > .service-card:nth-child(3n) {
    border-inline-end: 0;
  }
}
.service-card::before {
  color: var(--brass);
}

/* Quote: a single large serif statement between thin rules. */
.quote blockquote p {
  color: var(--brand-deep);
}
.quote__mark {
  color: var(--brass);
}

/* ---------- Closing band (CTA): deep brown, image or ambient video ---------- */
.cta {
  background: var(--brand-deep);
}
.cta--image::after {
  background: linear-gradient(to top, rgba(36, 22, 11, 0.78), rgba(36, 22, 11, 0.35));
}
.cta__media {
  opacity: 0.55;
}
.cta .h2 {
  color: var(--paper);
}
.cta .lead {
  color: var(--on-dark);
}
/* Speak to Our Team (Sujal, 24 Nov): the plain cream band again, no photo (the block has no image any more): dark heading, a solid
   near-black Contact Us button, Client Centre as an underlined text link. The sand and white palettes keep their own band rules. */
body:not(.palette-sand, .palette-white) .cta {
  background: var(--stone);
  border-top: 1px solid var(--line);
}
body:not(.palette-sand, .palette-white) .cta .h2 {
  color: var(--brand-deep);
}
body:not(.palette-sand, .palette-white) .cta .lead {
  color: var(--ink-soft);
}
body:not(.palette-sand, .palette-white) main .cta .wp-block-button .wp-block-button__link,
body:not(.palette-sand, .palette-white) main .cta .wp-block-button[class*='is-style-'] .wp-block-button__link,
body:not(.palette-sand, .palette-white) main .cta .wp-block-button + .wp-block-button .wp-block-button__link {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}
body:not(.palette-sand, .palette-white) main .cta .wp-block-button .wp-block-button__link:hover {
  color: var(--brass-ink);
}
body:not(.palette-sand, .palette-white) main .cta .btn-row .wp-block-button:first-child .wp-block-button__link {
  min-block-size: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}
body:not(.palette-sand, .palette-white) main .cta .btn-row .wp-block-button:first-child .wp-block-button__link:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}
@media (max-width: 760px) {
  body:not(.palette-sand, .palette-white) main .cta .btn-row .wp-block-button .wp-block-button__link {
    border: 1px solid var(--ink);
    border-radius: 0;
    background-color: transparent;
    color: var(--ink);
  }
  body:not(.palette-sand, .palette-white) main .cta .btn-row .wp-block-button:first-child .wp-block-button__link {
    border-color: var(--ink);
    background-color: var(--ink);
    color: #fff;
  }
}
/* Ambient video (site.js): fades in over the still only once it is actually playing. */
.awc-video {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
/* Home hero slideshow (site.js): one clip visible at a time, crossfading over 1.2 s. The active clip shows its
   poster while it loads, so the first paint already matches the video; the still image is only the no-JS fallback. */
.hero-slides .hero-slide {
  z-index: 1;
  transition: opacity 1.2s var(--ease);
}
.hero-slides .hero-slide.is-active {
  opacity: 1;
}
/* The light facets clip gets a little more shade so the cream copy keeps its contrast. */
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(26, 15, 4, 0.22);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.hero-home[data-slide='facets'] .hero-slides::after {
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  color: var(--on-dark);
}
.site-footer__title {
  color: var(--brass-light);
}
.site-footer__tagline {
  color: rgba(248, 243, 236, 0.88);
}
.site-footer__bottom {
  color: rgba(248, 243, 236, 0.6);
}
.site-footer a:hover {
  color: var(--white);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-home__media img {
    animation: none;
  }
  /* No motion: the first slide's poster only. */
  .hero-slides .hero-slide.is-active {
    opacity: 1;
    transition: none;
  }
}

/* Footer: legal entity and licence numbers (from AWC's letterhead), above the regulatory line. */
.site-footer__entity { margin: 0 0 8px; color: rgba(251, 250, 247, 0.78); letter-spacing: .01em; }
/* The letterhead address is English-only; on Arabic pages keep it flush with the RTL column. */
html[dir='rtl'] .site-footer address p[dir='auto'] { text-align: right; }

/* ---------- Social icons (footer, Contact Us) ---------- */
.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}
.social__link svg {
  display: block;
}
.social__link:hover,
.social__link:focus-visible {
  color: var(--brass-ink);
  border-color: var(--brass);
  background-color: rgba(154, 113, 48, 0.06);
}
.site-footer .social__link {
  color: rgba(248, 243, 236, 0.78);
  border-color: var(--line-light);
}
.site-footer .social__link:hover,
.site-footer .social__link:focus-visible {
  color: var(--brass-light);
  border-color: var(--brass-light);
  background-color: rgba(207, 176, 124, 0.08);
}
.social--contact {
  margin-top: 36px;
}

/* ---------- Floating WhatsApp button (every width) ---------- */
/* Bottom-right, bottom-left in Arabic (logical inset), on phones and desktop alike.
   52 px on phones and tablets, 56 px from the desktop breakpoint up with a little more inset.
   Hidden while the mobile menu is open so it never sits over the drawer; on desktop it sits under
   the mega-menu scrim (z-index 40) so an open panel dims it with the rest of the page. */
.wa-float {
  --wa-size: 52px;
  --wa-gap: 16px;
  position: fixed;
  z-index: 45;
  inset-block-end: max(var(--wa-gap), calc(env(safe-area-inset-bottom) + 12px));
  inset-inline-end: max(var(--wa-gap), calc(env(safe-area-inset-right) + 12px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--wa-size);
  block-size: var(--wa-size);
  border: 1px solid rgba(207, 176, 124, 0.55);
  border-radius: 50%;
  background: var(--brand);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(36, 22, 11, 0.22), 0 1px 3px rgba(36, 22, 11, 0.18);
  text-decoration: none;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
html[dir='rtl'] .wa-float {
  inset-inline-end: max(var(--wa-gap), calc(env(safe-area-inset-left) + 12px));
}
.wa-float svg {
  display: block;
}
.wa-float:hover,
.wa-float:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brass-light);
  color: var(--brass-light);
  transform: translateY(-2px);
}
.wa-float:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
html.menu-open .wa-float {
  display: none;
}
/* Room under the footer's last line so the button never sits on it at the end of the page. */
@media (max-width: 1080px) {
  body:has(.wa-float) .site-footer {
    padding-block-end: calc(40px + 52px + max(16px, calc(env(safe-area-inset-bottom) + 12px)));
  }
}
@media (min-width: 1081px) {
  .wa-float {
    --wa-size: 56px;
    --wa-gap: 28px;
    z-index: 39;
  }
  .wa-float svg {
    inline-size: 28px;
    block-size: 28px;
  }
  /* The footer's legal links run to the inline end, right under the button: 24 px clear above it. */
  body:has(.wa-float) .site-footer {
    padding-block-end: calc(24px + 56px + 28px);
  }
}
/* Home page: hidden while the video hero is on screen; site.js adds .is-shown once it has scrolled past. Hiding
   waits for the fade before visibility drops, so it can't be focused or clicked while hidden. */
.awc-js body:has(.hero-home) .wa-float {
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.3s var(--ease),
    opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.awc-js body:has(.hero-home) .wa-float:not(.is-shown) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
}
.awc-js body:has(.hero-home) .wa-float.is-shown {
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .awc-js body:has(.hero-home) .wa-float {
    transition: none;
  }
  .awc-js body:has(.hero-home) .wa-float:not(.is-shown) {
    transform: none;
  }
  .wa-float:hover,
  .wa-float:focus-visible {
    transform: none;
  }
}
@media print {
  .wa-float {
    display: none !important;
  }
}

/* ---------- Cards: hover / keyboard focus ---------- */
/* The whole card is the link: the "Learn more" link's ::before covers the card. */
.service-card,
.audience-card {
  position: relative;
}
.service-card p.link-arrow > a::before,
.audience-card p.link-arrow > a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* A thin brass rule that grows along the top edge, from the reading start (mirrors in RTL). */
.service-card::after,
.audience-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -1px;
  block-size: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
}
[dir='rtl'] .service-card::after,
[dir='rtl'] .audience-card::after {
  transform-origin: right center;
}
.service-card,
.audience-card {
  transition: translate 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}
.audience-card__media img {
  transition: transform var(--zoom-time) var(--zoom-ease);
}
.service-card p.link-arrow > a::after,
.audience-card p.link-arrow > a::after {
  transition: transform 0.28s ease;
}
/* Keyboard focus anywhere (touch included) gets the same treatment as a mouse hover. */
.service-card:has(:focus-visible),
.audience-card:has(:focus-visible) {
  translate: 0 -4px;
  box-shadow: 0 18px 36px -24px rgba(58, 34, 8, 0.45);
}
.service-card:has(:focus-visible)::after,
.audience-card:has(:focus-visible)::after {
  transform: scaleX(1);
}
.service-card:has(:focus-visible) p.link-arrow > a::after,
.audience-card:has(:focus-visible) p.link-arrow > a::after {
  transform: translateX(4px);
}
[dir='rtl'] .service-card:has(:focus-visible) p.link-arrow > a::after,
[dir='rtl'] .audience-card:has(:focus-visible) p.link-arrow > a::after {
  transform: scaleX(-1) translateX(4px);
}
.audience-card:has(:focus-visible) img {
  transform: scale(var(--zoom-scale));
}
.service-card :focus-visible,
.audience-card :focus-visible {
  outline: none;
}
/* The link covers the whole card, so the keyboard focus ring goes round the card instead of the link text. */
.service-card:has(:focus-visible),
.audience-card:has(:focus-visible) {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}
/* Mouse only: no hover effects on touch screens. */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .audience-card:hover {
    translate: 0 -4px;
    box-shadow: 0 18px 36px -24px rgba(58, 34, 8, 0.45);
  }
  .service-card:hover::after,
  .audience-card:hover::after {
    transform: scaleX(1);
  }
  .service-card:hover p.link-arrow > a::after,
  .audience-card:hover p.link-arrow > a::after {
    transform: translateX(4px);
  }
  [dir='rtl'] .service-card:hover p.link-arrow > a::after,
  [dir='rtl'] .audience-card:hover p.link-arrow > a::after {
    transform: scaleX(-1) translateX(4px);
  }
  .service-card:hover p.link-arrow > a,
  .audience-card:hover p.link-arrow > a {
    color: var(--brass-ink);
  }
  .planned__list li {
    position: relative;
    transition: color 0.28s ease;
  }
  .planned__list li::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -3px;
    block-size: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
  }
  [dir='rtl'] .planned__list li::after {
    transform-origin: right center;
  }
  .planned__list li:hover {
    color: var(--brass-ink);
  }
  .planned__list li:hover::after {
    transform: scaleX(1);
  }
}
/* One shared photo hover zoom: 4s gentle ease-out in and out (was 0.3s ease), scale 1.05 (was 1.04). */
:root {
  --zoom-time: 4s;
  --zoom-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --zoom-scale: 1.05;
}
/* Hover-off on touch: keep the image zoom from site.css for mouse only. */
@media not ((hover: hover) and (pointer: fine)) {
  .audience-card:hover img {
    transform: none;
  }
}
/* Photo clips (blocks.php, site.js): the video sits over its still with the same cover crop and the same hover zoom. */
.wp-block-image:has(> .awc-clip) {
  position: relative;
  overflow: hidden;
}
.awc-clip {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease), transform var(--zoom-time) var(--zoom-ease);
}
.awc-clip.is-playing {
  opacity: 1;
}
.img-frame:hover .awc-clip {
  transform: scale(1.03);
}
.audience-card:hover .awc-clip,
.audience-card:has(:focus-visible) .awc-clip {
  transform: scale(var(--zoom-scale));
}
@media not ((hover: hover) and (pointer: fine)) {
  .audience-card:hover .awc-clip {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .audience-card,
  .service-card::after,
  .audience-card::after,
  .audience-card__media img {
    transition: none;
  }
}

/* ---------- Scroll reveal ---------- */
/* Only with JS (site.js adds html.awc-motion, never under reduced motion), so content shows if scripts fail. */
html.awc-motion [data-awc-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.awc-motion [data-awc-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media print {
  html.awc-motion [data-awc-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mega-menu (desktop) ----------
   Nav items run the full height of the bar, so hover/open draws a 3px bar on the header's bottom edge.
   A section with sub-pages is a button; its panel drops full width under the header (positioned against
   .site-header), cream, with a hairline under the header. The header turns solid while one is open. */
.main-nav {
  align-self: stretch;
  display: flex;
}
.main-nav ul {
  align-items: stretch;
}
.main-nav__item {
  display: flex;
}
.main-nav .main-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 0;
  padding-inline: 2px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--brand);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s;
}
.main-nav .main-nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform 0.25s var(--ease);
}
.main-nav .main-nav__link:is([aria-expanded='true'], :focus-visible)::after {
  transform: scaleX(1);
}
.main-nav .main-nav__link:is([aria-current='page'], .is-current)::after {
  transform: scaleX(1);
  background: var(--brass);
  height: 2px;
}
.main-nav .main-nav__link[aria-expanded='true']::after {
  background: var(--brand);
  height: 3px;
}
.main-nav .main-nav__link:focus-visible {
  outline-offset: -6px;
}
@media (hover: hover) and (pointer: fine) {
  .main-nav .main-nav__link:hover::after {
    transform: scaleX(1);
  }
}
.site-header.mega-open {
  border-bottom-color: var(--line);
}
.mega {
  --unfold: cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 49;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -34px rgba(36, 22, 11, 0.4);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.32s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.32s;
}
.mega.is-open {
  visibility: visible;
  clip-path: inset(0 0 -90px 0);
  transition: clip-path 0.55s var(--unfold), visibility 0s;
}
/* Content arrives after the panel starts to unfold: title, the divider drawing down, the line, then each link. */
.main-nav .mega :is(.mega__title, .mega__desc, .mega__links li, .mega__contact-row, .mega__cta) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.15s, transform 0.15s;
}
.main-nav .mega.is-open :is(.mega__title, .mega__desc, .mega__links li, .mega__contact-row, .mega__cta) {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease) var(--d, 0s), transform 0.7s var(--unfold) var(--d, 0s);
}
.main-nav .mega.is-open .mega__title {
  --d: 0.1s;
}
.main-nav .mega.is-open .mega__desc {
  --d: 0.17s;
}
.main-nav .mega.is-open :is(.mega__links li, .mega__contact-row, .mega__cta) {
  --d: calc(0.2s + var(--i, 0) * 0.05s);
}
.main-nav .mega__intro {
  position: relative;
}
.main-nav .mega__intro::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 1px;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.15s;
}
.main-nav .mega.is-open .mega__intro::after {
  transform: scaleY(1);
  transition: transform 0.8s var(--unfold) 0.12s;
}
/* The page behind dims softly while a panel is open; clicks and the pointer pass through it. */
.mega-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(36, 22, 11, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.site-header.mega-open + .mega-scrim {
  opacity: 1;
}
.mega-swapping .mega {
  transition: none;
}
.main-nav .mega__inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  padding-block: 56px 64px;
}
.main-nav .mega__intro {
  padding-inline-end: 56px;
}
.main-nav .mega__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  color: var(--brand-deep);
  text-decoration: none;
}
html[lang='ar'] .main-nav .mega__title {
  font-size: 30px;
}
.main-nav .mega__arrow {
  flex: none;
  transition: transform 0.25s var(--ease);
}
[dir='rtl'] .main-nav .mega__arrow {
  transform: scaleX(-1);
}
.main-nav .mega__title:is(:hover, :focus-visible) {
  color: var(--brass-ink);
}
.main-nav .mega__title:is(:hover, :focus-visible) .mega__arrow {
  transform: translate(2px, -2px);
}
[dir='rtl'] .main-nav .mega__title:is(:hover, :focus-visible) .mega__arrow {
  transform: scaleX(-1) translate(2px, -2px);
}
.main-nav .mega__desc {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.main-nav .mega__links {
  list-style: none;
  margin: 0;
  padding-inline-start: 64px;
  padding-top: 6px;
  columns: var(--cols, 1) 240px;
  column-gap: 64px;
  max-inline-size: calc(var(--cols, 1) * 300px + 64px);
}
.main-nav .mega__links li {
  break-inside: avoid;
  padding-block: 7px;
}
.main-nav .mega__links a {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat var(--origin, 0) 100% / 0 1px;
  padding-bottom: 3px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
[dir='rtl'] .main-nav .mega__links a {
  --origin: 100%;
}
.main-nav .mega__links a:is(:hover, :focus-visible) {
  color: var(--brand);
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  .mega,
  .mega.is-open,
  .mega-scrim,
  .main-nav .mega__arrow,
  .main-nav .main-nav__link::after,
  .main-nav .mega :is(.mega__title, .mega__desc, .mega__links li, .mega__contact-row, .mega__cta),
  .main-nav .mega .mega__intro::after {
    transition: none !important;
  }
  .mega.is-open {
    clip-path: none;
  }
  .main-nav .mega :is(.mega__title, .mega__desc, .mega__links li, .mega__contact-row, .mega__cta) {
    opacity: 1;
    transform: none;
  }
  .main-nav .mega .mega__intro::after {
    transform: none;
  }
}
.main-nav .mega__links {
  display: block;
}
.main-nav .mega a::after {
  content: none;
}
.main-nav .mega__links a {
  display: inline;
  padding-block: 0 3px;
}
@media (max-width: 1080px) {
  .main-nav,
  .mega,
  .mega-scrim {
    display: none;
  }
}

/* Contact Us panel: telephone, email and address side by side, then its links (Client Centre, the enquiry form)
   one under the other. */
.main-nav .mega__contact {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-inline-start: 64px;
  padding-top: 8px;
}
.main-nav .mega__contact-list {
  display: flex;
  gap: 64px;
  margin: 0;
}
.main-nav .mega__contact-address {
  max-inline-size: 320px;
}
.main-nav .mega__contact-row dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
html[lang='ar'] .main-nav .mega__contact-row dt {
  font-size: 14px;
  letter-spacing: 0;
}
.main-nav .mega__contact-row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--brand-deep);
}
.main-nav .mega__contact-row a {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  padding: 0 0 3px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat var(--origin, 0) 100% / 0 1px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
[dir='rtl'] .main-nav .mega__contact-row a {
  --origin: 100%;
}
.main-nav .mega__contact-row a:is(:hover, :focus-visible) {
  color: var(--brass-ink);
  background-size: 100% 1px;
}
.main-nav .mega .mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.main-nav .mega__contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.main-nav .mega__contact-links .mega__cta {
  margin-top: 0;
}
.main-nav .mega .mega__cta svg {
  transition: transform 0.25s var(--ease);
}
.main-nav .mega .mega__cta:is(:hover, :focus-visible) {
  color: var(--brass-ink);
}
.main-nav .mega .mega__cta:is(:hover, :focus-visible) svg {
  transform: translateX(4px);
}
[dir='rtl'] .main-nav .mega .mega__cta:is(:hover, :focus-visible) svg {
  transform: scaleX(-1) translateX(4px);
}

/* ---------- Phone menu: sections as accordions ---------- */
.mobile-menu__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  inline-size: 100%;
  padding-block: 18px;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brand-deep);
  text-align: start;
  cursor: pointer;
}
.mobile-menu__toggle.is-current {
  color: var(--brass-ink);
}
.mobile-menu__chev {
  flex: none;
  transition: transform 0.25s var(--ease);
}
.mobile-menu__toggle[aria-expanded='true'] .mobile-menu__chev {
  transform: rotate(180deg);
}
.mobile-menu .mobile-menu__sub {
  padding-block: 6px 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-menu__sub li a {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding-block: 11px;
  border-bottom: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-soft);
}
.mobile-menu .mobile-menu__sub li a.mobile-menu__overview {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--brand);
}
.mobile-menu__overview .mega__arrow {
  inline-size: 18px;
  block-size: 18px;
}

/* ---------- Page-to-page crossfade ----------
   Browsers with cross-document view transitions fade between pages instead of flashing blank; the header holds
   still. Others load pages as before. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  .site-header {
    view-transition-name: site-header;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.35s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  ::view-transition-group(site-header) {
    animation-duration: 0.35s;
  }
}

/* ==========================================================================
   Phone layer (≤700px). Built from the approved mobile mockup; desktop and tablet are untouched.
   Logical properties throughout so Arabic (RTL) mirrors itself.
   ========================================================================== */
@media (max-width: 700px) {
  :root {
    --header-h: 64px;
  }
  .container,
  .site-header__bar {
    padding-inline: 22px;
  }
  .section {
    padding-block: 72px;
  }

  /* Header: burger in an outlined circle */
  .menu-toggle {
    inline-size: 42px;
    block-size: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
  body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open) .menu-toggle {
    border-color: rgba(248, 243, 236, 0.5);
  }
  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    inline-size: 16px;
  }

  /* Hero */
  .hero-home__content h1 {
    font-size: 44px;
    line-height: 1.02;
  }
  .hero-home__intro {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-home p.link-arrow--lg {
    margin-top: 28px;
  }
  .hero-home p.link-arrow--lg a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    inline-size: 100%;
    min-block-size: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--brand-deep);
    font-size: 16px;
    text-decoration: none;
    border-bottom: 0;
    background-image: none;
  }
  .hero-home p.link-arrow--lg a::after {
    background: currentColor;
  }
  .hero-home__more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin-top: 20px;
  }
  .hero-home__more a {
    display: block;
    border-bottom: 0;
    padding-block: 14px 0;
    border-top: 1px solid rgba(248, 243, 236, 0.3);
    font-size: 14px;
  }

  /* 30 years */
  .anniversary__grid {
    display: block;
  }
  p.anniversary__num {
    font-size: 132px;
    line-height: 0.74;
    -webkit-text-stroke-width: 1.2px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }
  .anniversary__text h2 {
    font-size: 34px;
    line-height: 1.12;
  }
  .anniversary__text .body-lg {
    font-size: 15px;
  }
  .anniversary .mini-stats:empty {
    display: none;
  }
  .anniversary__media {
    margin-inline: -22px;
    margin-top: 40px;
    border-radius: 0;
    block-size: 280px;
    aspect-ratio: auto;
    inline-size: auto;
  }
  .anniversary__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  /* What We Do: numbered list instead of icon cards */
  .section-head .lead {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.35;
  }
  ul.service-grid {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 32px;
  }
  .service-grid li.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 20px;
    column-gap: 0;
    align-items: baseline;
    padding: 20px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    min-block-size: 0;
  }
  .service-grid li.service-card::after {
    display: none;
  }
  .service-grid li.service-card::before {
    display: none;
  }
  .service-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }
  .service-card > p:not(.link-arrow) {
    grid-column: 1 / 3;
    grid-row: 2;
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
  }
  .service-card p.link-arrow {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-self: end;
  }
  .service-card p.link-arrow a {
    font-size: 0;
    gap: 0;
    padding: 0;
    border-bottom: 0;
    background-image: none;
  }
  .service-card p.link-arrow a::after {
    inline-size: 18px;
    block-size: 18px;
    margin: 0;
  }

  /* Looking Ahead: a rounded box */
  .planned__inner {
    padding: 28px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
  }

  /* Homepage "Three decades": image full-bleed with the words over it */
  body:has(.hero-home) .media-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  body:has(.hero-home) .section:has(> .media-split) {
    padding-block: 0;
  }
  body:has(.hero-home) .media-split > * {
    grid-area: 1 / 1;
  }
  body:has(.hero-home) .media-split__media {
    order: 0;
    aspect-ratio: auto;
    block-size: 560px;
    border-radius: 0;
    position: relative;
  }
  body:has(.hero-home) .media-split__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }
  body:has(.hero-home) .media-split__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 17, 8, 0.92) 0%, rgba(28, 17, 8, 0.55) 45%, rgba(28, 17, 8, 0) 75%);
  }
  body:has(.hero-home) .media-split__text {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 0 22px 44px;
    color: var(--paper);
  }
  body:has(.hero-home) .media-split__text :is(h2, p, a) {
    color: var(--paper);
  }
  body:has(.hero-home) .media-split__text h2 {
    font-size: 32px;
    line-height: 1.12;
  }
  body:has(.hero-home) .media-split__text .body-lg {
    font-size: 15px;
    color: rgba(248, 243, 236, 0.82);
  }
  body:has(.hero-home) .media-split__text .link-arrow a::after {
    background: currentColor;
  }

  /* Quote */
  .quote {
    text-align: start;
  }
  .quote::before {
    margin-inline: 0;
    margin-bottom: 24px;
    inline-size: 34px;
    block-size: 26px;
  }
  .quote .eyebrow {
    justify-content: flex-start;
  }
  .quote blockquote p {
    font-size: 27px;
    line-height: 1.25;
  }
  .quote figcaption {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  /* Contact CTA: stacked full-width pills */
  main .cta .btn-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
    margin-top: 32px;
  }
  main .cta .btn-row .wp-block-button {
    inline-size: auto;
    margin: 0;
  }
  main .cta .btn-row .wp-block-button .wp-block-button__link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    inline-size: 100%;
    min-block-size: 54px;
    padding: 0 22px;
    border: 1px solid rgba(248, 243, 236, 0.45);
    border-radius: 999px;
    background-image: none;
    text-decoration: none;
    font-size: 16px;
  }
  main .cta .btn-row .is-style-awc-light .wp-block-button__link {
    border-color: var(--paper);
    background-color: var(--paper);
    color: var(--brand-deep);
  }
  main .cta .btn-row .is-style-awc-ghost-light .wp-block-button__link {
    background-color: transparent;
    color: var(--paper);
  }

  /* Phone menu: larger serif, pill actions */
  .mobile-menu > nav > ul > li > :is(.mobile-menu__toggle, a) {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--serif);
    font-size: 30px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu > nav > ul > li > :is(.mobile-menu__toggle, a) {
    justify-content: flex-start;
  }
  .mobile-menu > nav > ul > li > .mobile-menu__toggle .mobile-menu__chev,
  .mobile-menu > nav > ul > li > a > svg {
    margin-inline-start: auto;
  }
  .mobile-menu__actions {
    display: grid;
    gap: 14px;
    margin-top: 32px;
  }
  .mobile-menu__actions .btn {
    inline-size: 100%;
    min-block-size: 54px;
    border-radius: 999px;
    justify-content: center;
  }
  .mobile-menu__actions .lang-switch {
    justify-self: center;
    padding: 10px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
  }

  /* Footer: columns fold into accordions (site.js adds the toggles) */
  .site-footer {
    padding-block: 56px 32px;
  }
  .site-footer__top {
    gap: 32px;
    padding-bottom: 8px;
    border-bottom: 0;
  }
  .site-footer__cols {
    display: block;
    border-top: 1px solid var(--line-light);
  }
  .site-footer__col {
    border-bottom: 1px solid var(--line-light);
  }
  .site-footer__title {
    margin: 0;
  }
  .site-footer__title button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    inline-size: 100%;
    padding: 18px 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    font-size: 11.5px;
    text-align: start;
    cursor: pointer;
  }
  html[lang='ar'] .site-footer__title button {
    font-size: 14px;
  }
  .site-footer__title button::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
    font-weight: 300;
  }
  .site-footer__title button[aria-expanded='true']::after {
    content: '–';
  }
  .site-footer__col.is-folded > :not(.site-footer__title) {
    display: none;
  }
  .site-footer__col > :not(.site-footer__title) {
    padding-bottom: 20px;
  }
  .site-footer__legal {
    flex-direction: column;
  }
  .site-footer__legal ul {
    gap: 10px 20px;
  }
}

/* Touch: no hover lift on cards */
@media (hover: none) {
  .service-card:hover,
  .service-card:focus-within {
    transform: none;
  }
}

/* ---------- Phone layer, inner pages: same language as the homepage ---------- */
@media (max-width: 700px) {
  .hero-page {
    padding-block: 44px 0;
  }
  .hero-page__text {
    padding-bottom: 44px;
  }
  .hero-page__text .lead {
    margin-top: 20px;
    font-size: 17px;
  }
  /* Hero links: full-width rows with hairlines, arrow at the end */
  .hero-page__text .btn-row,
  body:not(:has(.hero-home)) .media-split__text .btn-row {
    display: grid;
    gap: 0;
    margin-top: 32px;
    border-bottom: 1px solid var(--line);
  }
  body:not(:has(.hero-home)) :is(.hero-page__text, .media-split__text) .btn-row .wp-block-button,
  body:not(:has(.hero-home)) :is(.hero-page__text, .media-split__text) .btn-row .wp-block-button__link {
    inline-size: 100%;
  }
  body:not(:has(.hero-home)) main :is(.hero-page__text, .media-split__text) .btn-row .wp-block-button .wp-block-button__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 17px;
    padding-inline: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    color: var(--ink);
  }
  body:not(:has(.hero-home)) main .media-split__text p.link-arrow {
    margin: 0;
  }
  body:not(:has(.hero-home)) main .media-split__text :not(.link-arrow) + p.link-arrow {
    margin-top: 28px;
  }
  body:not(:has(.hero-home)) main .media-split__text p.link-arrow a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    inline-size: 100%;
    padding-block: 16px;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }
  body:not(:has(.hero-home)) main .media-split__text p.link-arrow:last-child a {
    border-bottom: 1px solid var(--line);
  }
  /* Page images run edge to edge */
  .hero-page__media,
  body:not(:has(.hero-home)) .media-split__media {
    margin-inline: -22px;
    border-radius: 0;
    aspect-ratio: auto;
    inline-size: auto;
    block-size: 300px;
  }
  .hero-page__media img,
  body:not(:has(.hero-home)) .media-split__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }
  /* Who We Serve: picture first, then the text */
  body:not(:has(.hero-home)) .media-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  body:not(:has(.hero-home)) .media-split__media {
    order: -1;
    align-self: stretch;
  }
  body:not(:has(.hero-home)) .section:has(> .media-split) {
    padding-block-start: 0;
  }
  body:not(:has(.hero-home)) .section:has(> .media-split) + .section:has(> .media-split) {
    border-top: 0;
  }

  .split > .wp-block-group:empty {
    display: none;
  }
  .hero-page + .section {
    padding-block-start: 48px;
  }

  /* Leadership: one row per person, initials on the left */
  .people {
    display: block;
    border-top: 1px solid var(--line-strong);
  }
  .person {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
  }
  p.person__photo {
    grid-row: 1 / span 2;
    inline-size: 58px;
    margin: 0;
    font-size: 19px;
  }
  .person h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
  }
  .person__role {
    margin: 4px 0 0;
    font-size: 13px;
  }

  /* Contact: the form sits on the page, not in a box */
  .contact__form {
    padding: 0;
    border: 0;
    background: none;
  }
  .contact__form textarea {
    block-size: 160px;
    min-block-size: 0;
  }
  .contact__form .wpcf7-submit {
    inline-size: 100%;
    min-block-size: 54px;
    border-radius: 999px;
  }
}

/* ==========================================================================
   Client review, round 1 (our side): header logo + services menu
   ========================================================================== */

/* D1: a larger logo; the header grows a little to keep its breathing room. */
:root {
  --header-h: 100px;
}
.logo__svg {
  block-size: 50px;
}
.logo--light .logo__svg {
  block-size: 56px;
}
@media (max-width: 1080px) {
  :root {
    --header-h: 80px;
  }
  .logo__svg {
    block-size: 40px;
  }
}
@media (max-width: 700px) {
  :root {
    --header-h: 72px;
  }
  .logo__svg {
    block-size: 36px;
  }
}

/* H4: Who We Serve categories read larger and stand out more. */
:is(#individuals, #institutions, #corporates) .eyebrow {
  font-size: 14px;
}
:is(#individuals, #institutions, #corporates) .media-split__text .body-lg {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.65;
  color: var(--ink);
}
:is(#individuals, #institutions, #corporates) .media-split__text .h2 {
  font-size: clamp(34px, 3.9vw, 58px);
}
:is(#individuals, #institutions, #corporates) {
  scroll-margin-top: var(--header-h);
}

/* S2: a short "who it's for" line under each service name. S1: each card is an anchor target. */
.service-card__for {
  flex: none !important;
  margin-top: -6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--brass-ink);
}
[lang='ar'] .service-card__for {
  font-style: normal;
}
.service-card[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
/* Phones (numbered list): the "for" line gets its own row under the name instead of sitting on the summary. */
@media (max-width: 700px) {
  .service-grid li.service-card::before {
    aspect-ratio: auto;
  }
  .service-card > p.service-card__for {
    grid-row: 2;
    margin: 6px 0 0;
    font-size: 14px;
  }
  .service-card > p.service-card__for ~ p:not(.link-arrow) {
    grid-row: 3;
  }
}

/* D3: icons keep a square box wherever they sit (never squeezed by a flex or grid row). */
[class*='icon-']::before {
  flex: none;
  inline-size: 44px;
  block-size: auto;
  aspect-ratio: 1;
  margin-bottom: 26px;
}

/* D6: Core Values (and the other numbered lists) sit on one row on wide screens, however many items. */
@media (min-width: 901px) {
  .values {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .values li {
    padding-inline-end: clamp(16px, 2vw, 28px);
  }
  .values li + li {
    padding-inline-start: clamp(16px, 2vw, 28px);
  }
  .values li:nth-child(n) {
    border-top: 0;
  }
  .values li:nth-child(n + 2) {
    border-inline-start: 1px solid var(--line);
  }
  .values h3 {
    font-size: clamp(19px, 1.6vw, 24px);
    text-wrap: balance;
  }
}

/* D4: clearer hover feedback, mouse only (touch keeps the plain rows). */
@media (hover: hover) and (pointer: fine) {
  /* Text links and link-style buttons: a brass underline sweeps in over the thin rule. */
  main .wp-block-button .wp-block-button__link,
  p.link-arrow > a {
    background: linear-gradient(var(--brass), var(--brass)) no-repeat var(--sweep-from, 0) 100% / 0 2px;
    transition: color 0.25s ease, background-size 0.4s var(--ease);
  }
  [dir='rtl'] :is(main .wp-block-button .wp-block-button__link, p.link-arrow > a) {
    --sweep-from: 100%;
  }
  main .wp-block-button .wp-block-button__link:hover,
  p.link-arrow > a:hover {
    background: linear-gradient(var(--brass), var(--brass)) no-repeat var(--sweep-from, 0) 100% / 100% 2px;
    color: var(--brass-ink);
  }
  main :is(.cta, .section--ink) .wp-block-button .wp-block-button__link:hover,
  :is(.hero-home, .cta, .section--ink) p.link-arrow > a:hover {
    /* Full shorthand: the older awc.css hover fills (white, 10% white) must not turn the sweep into a solid block. */
    background: linear-gradient(var(--brass-light), var(--brass-light)) no-repeat var(--sweep-from, 0) 100% / 100% 2px;
    color: var(--brass-light);
  }
  /* Service and client cards: a warm tint, the icon lifts and darkens, the title turns brand brown. */
  .service-card,
  .audience-card {
    transition: translate 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
  }
  .service-card:hover {
    background-color: color-mix(in srgb, var(--paper) 70%, #fff);
  }
  .service-card::before {
    transition: translate 0.3s var(--ease), background-color 0.3s ease;
  }
  .service-card:hover::before {
    translate: 0 -3px;
    background-color: var(--brand);
  }
  :is(.service-card, .audience-card) h3 {
    transition: color 0.25s ease;
  }
  :is(.service-card, .audience-card):hover h3 {
    color: var(--brand);
  }
  /* FAQ questions: the question and its plus sign warm to brass. */
  .wp-block-details.faq > summary {
    transition: color 0.25s ease;
  }
  .wp-block-details.faq > summary:hover {
    color: var(--brass-ink);
  }
  .wp-block-details.faq > summary:hover::after {
    background: var(--brass);
  }
  /* Login: a soft lift on top of the fill. */
  .btn--login {
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  .btn--login:hover {
    box-shadow: 0 8px 20px -12px rgba(58, 34, 8, 0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card::before,
  main .wp-block-button .wp-block-button__link,
  p.link-arrow > a {
    transition: none;
  }
}
/* Client cards: only the summary grows, so every "Learn More" sits on the same line at the card foot. */
.audience-card > p.link-arrow {
  flex: none;
}
/* Each row of service cards shares its rows (subgrid): icon, title, "for" label, summary and "Learn More" start at the
   same height in every card of a grid row, however many lines a label or title wraps to (was a 2-line min-height on
   the label, which a 3-line label broke). Phones (≤ 700 px) keep the numbered list below. */
@media (min-width: 701px) {
  .service-grid {
    row-gap: 0;
  }
  .service-grid > .service-card {
    display: grid;
    grid-row: span 5; /* ::before icon, h3, the "for" label, summary, link */
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .service-grid > .service-card > .link-arrow {
    align-self: end;
  }
}

/* ---------- Contact page (client review C1–C5) ----------
   Office details and map sit straight under the hero; enquiry and careers forms follow as separate sections. */
.contact--map {
  align-items: stretch;
}
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__aside .map {
  position: relative;
  flex: 1;
  min-block-size: 360px;
  border: 1px solid var(--line);
}
.contact__directions {
  margin: 0;
}
.contact--form {
  align-items: start;
}
.contact--form .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.field--file input[type='file'] {
  padding: 14px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  inline-size: 100%;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
:is(#enquiry, #careers) {
  scroll-margin-top: var(--header-h);
}
@media (max-width: 960px) {
  .contact--form .section-head {
    position: static;
  }
  .contact__aside .map {
    min-block-size: 300px;
  }
}

/* ---------- Footer (client review C6/H7): three link columns and a quiet AWC watermark ---------- */
.site-footer--mark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.site-footer--mark::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -4vw;
  bottom: -6vw;
  inline-size: min(62vw, 880px);
  aspect-ratio: 101 / 38.62;
  background: var(--paper);
  opacity: 0.045;
  -webkit-mask: url('../brand/awc-monogram.svg') center / contain no-repeat;
  mask: url('../brand/awc-monogram.svg') center / contain no-repeat;
  pointer-events: none;
}
@media (min-width: 1001px) {
  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .site-footer--mark::before {
    inline-size: 120vw;
    bottom: -10vw;
  }
}

/* Client Centre: sign-in help line (Botim / Teams), shown only when the links are set. */
.signin-help { padding-block: 0 8px; }
/* Sits right under the hero intro (it is about signing in), not alone halfway to the next band: it takes over the
   hero text's bottom space instead of adding to it. */
.hero-page + .signin-help {
  --hero-gap: clamp(48px, 6vw, 88px);
  margin-top: calc(16px - var(--hero-gap));
  padding-block: 0 calc(var(--hero-gap) - 16px);
}
@media (max-width: 700px) {
  .hero-page + .signin-help { --hero-gap: 44px; }
}
.signin-help p { margin: 0; font-size: 15px; color: var(--muted, #6b5646); }
.signin-help a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Header over the home hero: the logo, nav and Sign In change colour together with the header's background (same
   0.35 s), instead of flipping at once while the background fades. The logo's fill is set per state rather than
   inherited through currentColor, so it can't be left in the other state's colour. Every frame is readable, and if
   the browser doesn't run the transition at all, both stay as they were. */
.site-header .logo__svg [fill='currentColor'] {
  fill: var(--brand);
}
body:has(.hero-home) .site-header :is(.logo__svg [fill='currentColor'], .logo__svg .awc-logo__rule) {
  transition: fill 0.35s var(--ease);
}
body:has(.hero-home) .site-header :is(.main-nav__link, .lang-switch, .btn--login, .site-header__divider) {
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .logo__svg [fill='currentColor'] {
  fill: var(--paper);
}

/* Client: "the font is too big" in the phone footer. The footer lockup and the tagline step down on phones. */
@media (max-width: 700px) {
  .logo--light .logo__svg {
    block-size: 40px;
  }
  .site-footer__tagline {
    margin-top: 18px;
    font-size: 17px;
  }
}

/* Client review: the one-line lockup "AWC | AL WATHBAH CAPITAL" (.logo--line, see awc_logo()). It is about 11× as
   wide as it is tall in English (6.5× in Arabic), so it is sized lower than the two-line lockup and steps down
   until it fits beside the menu button on a 360 px phone. The footer's brand column widens a little for it. */
.logo--line .logo__svg {
  block-size: 40px;
}
.logo--line.logo--light .logo__svg {
  block-size: 34px;
}
@media (min-width: 1101px) {
  .site-footer__top:has(.logo--line) {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}
@media (max-width: 1279px) {
  .logo--line .logo__svg {
    block-size: 26px;
  }
}
@media (max-width: 1080px) {
  .logo--line .logo__svg {
    block-size: 30px;
  }
}
@media (max-width: 700px) {
  .logo--line .logo__svg {
    block-size: 24px;
  }
  .logo--line.logo--light .logo__svg {
    block-size: 26px;
  }
}
@media (max-width: 374px) {
  .logo--line .logo__svg {
    block-size: 21px;
  }
}

/* Footer legal line (Sujal, 25 Nov): one line, "Al Wathbah Capital L.L.C.    CMA Licence: 604006    TL: CN-1025932", the
   three items spaced apart (no dots), then the © line. Each item stays on one line, so "CN-1025932" never splits; on a
   narrow screen whole items wrap. In Arabic the row runs right to left, the Latin items keeping left-to-right inside. */
.site-footer__entity {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75em;
  row-gap: 2px;
}
.site-footer__item {
  white-space: nowrap;
}
/* Above phone width the policy links sit on the first legal line, beside the legal name, CMA Licence and TL line
   (25 Nov; they were on the © line, two lines lower): the name, licence, © lines in the first column, the links in the
   second, on row 1. The same font size and line height keep both on one centre line; phones keep the stacked layout. */
@media (min-width: 701px) {
  .site-footer__bottom {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }
  .site-footer__bottom > *,
  .site-footer__legal > p {
    grid-column: 1;
  }
  .site-footer__legal {
    display: contents;
  }
  .site-footer__legal > ul {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    row-gap: 4px;
  }
}

/* ==========================================================================
   Client review, round 3: "the font is too big" (second time), measured against the J.P. Morgan Private Bank
   phone menu and pages. The earlier fix (d6417c7) only shrank the phone footer lockup and tagline; the phone menu
   items (30 px, numbered) and the headings were never touched, so it missed this. wordpress/tools/check-type-scale.js checks it in a browser.
   ========================================================================== */

/* Phone menu: JPM-size serif items (26 px), compact rows, no 01–04 numbers; chevrons and the arrow stay. */
@media (max-width: 700px) {
  .mobile-menu > nav > ul > li > :is(.mobile-menu__toggle, a) {
    font-size: 26px;
    line-height: 1.2;
    padding-block: 15px;
  }
  .mobile-menu > nav > ul > li > :is(.mobile-menu__toggle, a)::before {
    content: none;
  }
  .mobile-menu .mobile-menu__sub li a {
    padding-block: 9px;
    font-size: 16px;
  }
  .mobile-menu .mobile-menu__sub li a.mobile-menu__overview {
    font-size: 18px;
  }
}

/* Desktop navbar: heavier items, same size (Newsreader and Noto Naskh Arabic both ship 500). */
.main-nav .main-nav__link {
  font-weight: 500;
}

/* Type scale, after JPM's proportions: headings come down about a fifth on desktop and a sixth to a quarter on
   phones; body copy stays at 15–18 px. Fonts, colours and letter-spacing are unchanged. */
.display {
  font-size: clamp(34px, 4.4vw, 62px);
}
.hero-home .display {
  font-size: clamp(36px, 4.5vw, 64px);
}
.display--page {
  font-size: clamp(32px, 3.9vw, 56px);
}
.h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}
:is(#individuals, #institutions, #corporates) .media-split__text .h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}
:is(#individuals, #institutions, #corporates) .media-split__text .body-lg {
  font-size: clamp(16px, 1.3vw, 19px);
}
.hero-home__intro {
  font-size: clamp(15px, 1.25vw, 18px);
}
p.anniversary__num {
  font-size: clamp(110px, 14vw, 200px);
}
.quote blockquote p {
  font-size: clamp(23px, 2.4vw, 34px);
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
}
.h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}
@media (max-width: 700px) {
  .hero-home__content h1 {
    font-size: 36px;
    line-height: 1.06;
  }
  p.anniversary__num {
    font-size: 112px;
  }
  .anniversary__text h2,
  body:has(.hero-home) .media-split__text h2 {
    font-size: 28px;
    line-height: 1.14;
  }
  .quote blockquote p {
    font-size: 23px;
    line-height: 1.3;
  }
}

/* Spacing (client: "Lots of spaces!"): section padding about 23 % less on desktop (158 → 122 px at 1440) and a
   third less on phones (72 → 48 px); the big inner gaps (heading to content, text to image, card grids, detail
   rows, the footer top) shrink with it. Still airy, just no empty bands. One set of tokens, used everywhere. */
:root {
  --section: clamp(56px, 8.5vw, 124px);
  --head-gap: clamp(28px, 3.6vw, 52px);
  --split-gap: clamp(28px, 4.6vw, 72px);
}
@media (max-width: 700px) {
  :root {
    --section: 48px;
  }
  .section {
    padding-block: var(--section);
  }
}
.cta {
  padding-block: var(--section);
}
.section-head {
  margin-bottom: var(--head-gap);
}
:is(.split, .media-split, .detail, .contact, .legal) {
  gap: var(--split-gap);
}
.anniversary__grid {
  gap: clamp(28px, 4vw, 56px);
}
.detail-list {
  gap: clamp(48px, 6.5vw, 96px);
}
.chips {
  margin-bottom: clamp(32px, 4.4vw, 64px);
}
.hero-page {
  padding-block: clamp(44px, 6.4vw, 92px) 0;
}
.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 40px;
}
.site-footer__top {
  padding-bottom: 40px;
}
@media (max-width: 700px) {
  .site-footer {
    padding-block: 40px 28px;
  }
}

/* Desktop navbar, after JPM: the items, the language switch and Sign In are the body sans at 16 px, weight 500,
   solid colour (ink on the light header, white over the home photo). Arabic uses IBM Plex Sans Arabic 500.
   The phone menu, the logo and the mega-menu panels keep their own type. */
.main-nav .main-nav__link,
.site-header__actions .lang-switch,
.site-header__actions .lang-switch:lang(en),
.site-header__actions .lang-switch:lang(ar),
.btn--login,
html[lang='ar'] .btn--login {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.005em;
  white-space: nowrap;
  opacity: 1;
}
html[lang='ar'] .main-nav .main-nav__link {
  letter-spacing: 0;
}
.main-nav .main-nav__link {
  color: var(--ink);
}

/* Spacing, third pass (decision #3, Sujal: "decrease a bit more, not too tight but visibly"): sections 64 px on
   desktop / 32 px on phones (second pass 88 / 36), so two sections meet with about 128 px of blank space at 1440
   instead of about 180; heading gap 29, text–image gap 38, and the inner gaps between cards, rows and paragraphs
   about a fifth less again. check-type-scale fails above 72 / 36 px of padding or 160 px of blank between blocks. */
:root {
  --section: clamp(32px, 4.45vw, 64px);
  --head-gap: clamp(22px, 2vw, 29px);
  --split-gap: clamp(22px, 2.65vw, 38px);
}
.section {
  padding-block: var(--section);
}
@media (max-width: 700px) {
  :root {
    --section: 32px;
  }
}
.anniversary__grid {
  gap: clamp(18px, 2.2vw, 32px);
}
.detail-list {
  gap: clamp(29px, 3.7vw, 54px);
}
.chips {
  margin-bottom: clamp(20px, 2.5vw, 35px);
}
.hero-page {
  padding-block: clamp(28px, 3.6vw, 51px) 0;
}
/* The page hero's text block carried its own 88 px bottom padding (site.css) on top of the next section's. */
.hero-page__text {
  padding-bottom: var(--section);
}
.site-footer {
  padding-block: clamp(36px, 4.2vw, 56px) 32px;
}
.site-footer__top {
  padding-bottom: 28px;
  gap: 36px;
}
@media (max-width: 700px) {
  .site-footer {
    padding-block: 32px 24px;
  }
}
.service-card {
  padding-block: 28px 30px;
}
.service-card__icon {
  margin-bottom: 20px;
}
/* Who We Serve has two cards (Individual Investors; Institutional & Corporate Clients): two equal columns across the
   content width from 701 px up, stacked on phones. The phone column is minmax(0, 1fr) rather than 1fr, so a card can
   never be wider than the screen (a 1fr track grows to its widest child's min-content, which made the home page
   422 px wide at 390 px). */
.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.75vw, 24px);
}
@media (max-width: 700px) {
  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.people {
  gap: 32px clamp(16px, 1.75vw, 29px);
}
.values li {
  padding-block: 24px 6px;
}
.doc-groups {
  gap: 32px;
}
.faq-group + .faq-group {
  margin-top: 29px;
}
.news,
.news--archive {
  gap: clamp(18px, 2.2vw, 36px);
}
.news--archive {
  margin-top: 36px;
}
.contact .section-head {
  margin-bottom: 28px;
}
:is(.map, .portrait, .signature, .anniversary__media) {
  margin-top: 22px;
}
.note {
  margin-top: 29px;
}
.btn-row {
  margin-top: 28px;
}
.legal__section {
  padding-bottom: 32px;
  margin-bottom: 32px;
}
/* The last policy has no divider under it, so its padding and margin would only stack on the section's padding. */
.legal__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}
.holding__contact {
  gap: 36px;
  margin-top: 48px;
}
.hero-page + .signin-help {
  --hero-gap: clamp(36px, 4.5vw, 64px);
}

/* Legal: each policy's "Last updated" line under its title, and the policies' own sub-headings. */
.legal__date {
  margin: -4px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.legal__section h3 {
  margin: 28px 0 10px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.legal__section ul {
  margin: 0 0 16px;
  padding-inline-start: 1.2em;
}
.legal__section li + li {
  margin-top: 6px;
}

/* English header below 1440 px: the logo, five sans items, the language switch and Sign In need about 1410 px at
   full size. From 1181 to 1439 px the items step to 15 px (still weight 500), the logo scales from full height at
   about 1320 px down to 75 % at 1181 px, and the gaps tighten; that fits down to about 1175 px. From 1081 to 1180 px
   English uses the menu button. Arabic is narrower and keeps the full-size header down to 1081 px. */
@media (min-width: 1081px) and (max-width: 1439px) {
  html[lang^='en'] .site-header .main-nav .main-nav__link,
  html[lang^='en'] .site-header__actions .lang-switch,
  html[lang^='en'] .site-header__actions .btn--login {
    font-size: 14px;
  }
  html[lang^='en'] .site-header .logo__svg {
    block-size: clamp(30px, calc((100vw - 870px) / 11.2), 40px);
  }
  html[lang^='en'] .site-header__bar {
    column-gap: 20px;
  }
  html[lang^='en'] .main-nav ul {
    gap: 20px;
  }
  html[lang^='en'] .site-header__actions {
    gap: 10px;
  }
  html[lang^='en'] .btn--login {
    padding: 0 14px;
  }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  html[lang^='en'] :is(.main-nav, .mega, .mega-scrim, .site-header__actions .btn, .site-header__actions .lang-switch, .site-header__divider) {
    display: none;
  }
  html[lang^='en'] .menu-toggle {
    display: block;
  }
  html[lang^='en'] .site-header__actions {
    margin-inline-start: auto;
  }
}

/* Spacing, second and third pass: the fixed section paddings that did not use the token. */
.section--tight {
  padding-block: clamp(26px, 3.5vw, 51px) var(--section);
}
.section.planned {
  padding-block: clamp(28px, 3.6vw, 48px);
}
.section--stone:has(+ .section--stone.planned) {
  padding-bottom: clamp(29px, 3.5vw, 51px);
}
@media (max-width: 700px) {
  .hero-page + .section,
  .section--tight {
    padding-block-start: 32px;
  }
  .section--stone:has(+ .section--stone.planned) {
    padding-bottom: 32px;
  }
}

/* ---------- Credentials strip (home, above the contact CTA) ----------
   A dark band (the footer's --brand-deep, so it follows every palette) with short facts that drift slowly sideways.
   site.js copies the list once (aria-hidden, inert) and adds the pause/play button; the rail then moves by half its
   width, so the copy lands exactly where the original started. RTL moves the other way. It pauses on hover, on
   keyboard focus and with the button; with reduced motion (or no JS) it stands still and scrolls or wraps instead. */
.cred-band {
  position: relative;
  padding-block: 56px;
  background: var(--brand-deep);
  color: var(--paper);
  overflow: hidden;
}
.cred-band > .cred-band__viewport {
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* Items fade in and out at both edges instead of being cut. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.cred-band__viewport::-webkit-scrollbar {
  display: none;
}
/* The edge mask would clip an outline, so keyboard focus rings the whole band instead. */
.cred-band__viewport:focus-visible {
  outline: none;
}
.cred-band:has(.cred-band__viewport:focus-visible) {
  box-shadow: inset 0 0 0 2px var(--brass-light);
}
.cred-band .cred-band__rail {
  display: flex;
  inline-size: max-content;
  margin: 0;
}
.cred-band .cred-band__list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cred-band .cred {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* values line up whether a caption takes one line or two */
  min-block-size: 104px;
  margin: 0;
  padding-inline: clamp(28px, 3.4vw, 52px);
  border-inline-end: 1px solid var(--line-light);
  text-align: center;
}
.cred-band .cred > p {
  margin: 0;
}
.cred-band .cred__value {
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  white-space: nowrap;
}
.cred-band .cred > .cred__caption {
  margin-block-start: 10px;
  max-inline-size: 32ch;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}
html[lang='ar'] .cred-band .cred > .cred__caption {
  max-inline-size: 30ch;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.cred-band__toggle {
  position: absolute;
  inset-block-end: 12px;
  /* The start corner: the floating WhatsApp button holds the end corner (right in English, left in Arabic). */
  inset-inline-start: var(--gutter);
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  padding: 0;
  border: 1px solid rgba(248, 243, 236, 0.55);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.cred-band__toggle:hover {
  border-color: var(--brass-light);
  color: var(--brass-light);
}
.cred-band__toggle:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}
/* Pause: two bars. Play: a right-pointing triangle (media icons are not mirrored in RTL). */
.cred-band__toggle::before {
  content: '';
  box-sizing: border-box;
  inline-size: 9px;
  block-size: 11px;
  border-inline: 3px solid currentColor;
}
.cred-band.is-paused .cred-band__toggle::before {
  inline-size: 0;
  block-size: 0;
  margin-left: 3px;
  border: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .cred-band.is-looping > .cred-band__viewport {
    overflow: hidden;
  }
  .cred-band.is-looping .cred-band__rail {
    animation: awc-cred-loop var(--cred-dur, 60s) linear infinite;
  }
  [dir='rtl'] .cred-band.is-looping .cred-band__rail {
    animation-name: awc-cred-loop-rtl;
  }
  .cred-band.is-looping:is(.is-paused, :has(.cred-band__viewport:hover, .cred-band__viewport:focus-visible)) .cred-band__rail {
    animation-play-state: paused;
  }
}
@keyframes awc-cred-loop {
  to {
    transform: translateX(-50%);
  }
}
@keyframes awc-cred-loop-rtl {
  to {
    transform: translateX(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cred-band .cred-band__list[aria-hidden='true'],
  .cred-band__toggle {
    display: none;
  }
  .cred-band > .cred-band__viewport {
    scrollbar-width: thin;
    scrollbar-color: var(--line-light) transparent;
  }
}
@media (prefers-reduced-motion: reduce) and (min-width: 701px) {
  /* Still: every item shows, in centred rows. */
  .cred-band .cred-band__rail {
    inline-size: auto;
  }
  .cred-band .cred-band__list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 32px;
  }
  .cred-band > .cred-band__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-width: 700px) {
  .cred-band {
    /* 4 px extra at the bottom: the 32 px pause button sits 4 px off the edge, so it ends level with the facts. */
    padding-block: 32px 36px;
  }
  .cred-band .cred {
    min-block-size: 92px;
    padding-inline: 24px;
  }
  .cred-band .cred__value {
    font-size: 26px;
  }
  .cred-band .cred > .cred__caption {
    max-inline-size: 22ch;
    font-size: 11px;
  }
  html[lang='ar'] .cred-band .cred > .cred__caption {
    font-size: 13px;
  }
  .cred-band__toggle {
    inset-block-end: 4px;
  }
}

/* With the card (Sujal, 23 Nov, after JP Morgan's): the sea photo (assets/img/sea-foam-grey, unlicensed, see CREDITS; greyscale like JP Morgan's, baked into the WebP files),
   placed so its white foam sits behind the moving facts and the dark water behind the card, under a
   dark blue shade that is stronger at the bottom where the foam is brightest; a white card with the statement and a
   dark button; the moving facts below it. Phones: the card stacks, the button full width.
   Height: the section fills the screen (Sujal, 23 Nov: 100vh, 100svh on phones) while its padding stays within the
   spacing check (72 / 36); the extra room goes between the card and the facts (the viewport is pushed to the bottom). */
.cred-band--photo {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  padding-block: 72px;
  background:
    linear-gradient(180deg, rgba(6, 12, 26, 0.2) 0%, rgba(6, 12, 26, 0.35) 45%, rgba(6, 12, 26, 0.72) 100%),
    url('../img/sea-foam-grey.webp') center / cover no-repeat,
    #141414;
  /* The foam's crest is at about 42% of the photo's height. When the section is wider than the photo's shape (so the
     photo is cropped top and bottom), 60% keeps the crest under the card; otherwise the photo fits the height exactly. */
  background-position: center, center 60%, center;
}
.cred-band--photo > .cred-band__viewport {
  margin-block-start: auto;
}
.cred-band--photo .cred-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  /* JP Morgan's proportions (measured at 1280: 948 px wide = 74%, 188 px tall, ~70 px side and ~42 px top and bottom
     padding, 4 px corners). The card sits about 27% down the full-screen section (72 px of that is the section's
     own padding), so the photo shows above it; the facts stay at the bottom. */
  inline-size: min(74vw, 1100px);
  max-inline-size: 100%;
  margin: calc(27vh - 72px) auto 48px;
  padding: 42px clamp(32px, 5.5vw, 72px);
  background: var(--white);
  border-radius: 4px;
  color: var(--ink);
}
.cred-band--photo .cred-card > .cred-card__text {
  margin: 0;
  max-inline-size: 55%;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  text-align: start;
  hyphens: manual;
}
.cred-band--photo .cred-card__actions {
  flex: none;
  margin: 0;
}
/* The solid near-black button, as in the closing CTA (page buttons are otherwise text links). */
main .cred-band--photo .cred-card__actions .wp-block-button__link {
  min-block-size: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
/* No arrow, as on JP Morgan's button. */
main .cred-band--photo .cred-card__actions .wp-block-button__link::after {
  display: none;
}
main .cred-band--photo .cred-card__actions .wp-block-button__link:hover {
  border-color: var(--ink-2);
  background: var(--ink-2);
  color: #fff;
}
.cred-band--photo .cred-band__toggle {
  inset-block-end: 20px;
}
/* A soft shadow keeps the small captions legible where they cross the brightest foam. */
.cred-band--photo .cred__value,
.cred-band--photo .cred__caption {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1080px) {
  .cred-band--photo .cred-card {
    inline-size: auto;
    margin-inline: var(--gutter);
  }
  .cred-band--photo .cred-card > .cred-card__text {
    max-inline-size: 60%;
  }
}
@media (max-width: 700px) {
  .cred-band--photo {
    min-block-size: 100svh;
    padding-block: 36px;
    background-image:
      linear-gradient(180deg, rgba(6, 12, 26, 0.2) 0%, rgba(6, 12, 26, 0.35) 45%, rgba(6, 12, 26, 0.72) 100%),
      url('../img/sea-foam-grey-sm.webp');
  }
  .cred-band--photo .cred-card {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    inline-size: 90vw;
    margin: 0 auto 48px;
    padding: 28px 24px;
  }
  .cred-band--photo .cred-card > .cred-card__text {
    max-inline-size: none;
    font-size: 22px;
  }
  .cred-band--photo .cred-card__actions .wp-block-button,
  .cred-band--photo .cred-card__actions .wp-block-button__link {
    inline-size: 100%;
  }
  .cred-band--photo .cred-band__toggle {
    inset-block-end: 8px;
  }
}

/* ---------- Home hero: two slides with their own copy, and the slideshow controls (site.js) ---------- */
/* The slides share one grid cell, so the hero keeps the height of the taller one and nothing jumps on a change. The
   outgoing copy fades out quickly; the incoming copy fades in just after and its lines rise in again (hero-anim). */
.hero-home__slides {
  display: grid;
}
.hero-home__slide {
  grid-area: 1 / 1;
  align-self: center;
  transition: opacity 0.6s var(--ease) 0.35s, visibility 0s;
}
.hero-home__slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.hero-home__slide:not(.is-active) .hero-anim {
  animation: none;
}
@media (max-width: 700px) {
  .hero-home__slide {
    align-self: end;
  }
}
/* Phones, slides 1 and 3: the heading starts level with slide 2's quote text, below its quote mark (27px + 20px).
   The negative end margin keeps the hero's height, and so the other slides, where they were. */
@media (max-width: 700px) {
  .hero-home__slides > .hero-home__slide:nth-child(1),
  .hero-home__slides > .hero-home__slide:nth-child(3) {
    align-self: start;
    margin-block: 47px -47px;
  }
  .hero-home__slides > .hero-home__slide:nth-child(3) h2 {
    font-size: 36px;
    line-height: 1.06;
  }
}
/* Slide 2's clip is pale, darker blue on the left and near white on the right: a stronger shade goes under the
   quote, and in Arabic the clip is mirrored so its darker side stays behind the right-aligned quote. */
.hero-home[data-slide='hero-2'].has-slides .hero-slides::after {
  opacity: 1;
  background: rgba(13, 12, 11, 0.34);
}
[dir='rtl'] .hero-slides video[poster*='hero-2'] {
  transform: scaleX(-1);
}
/* Phones see a narrow slice of it: take the dark edge rather than the pale middle (mirrored too in Arabic). */
@media (max-width: 900px) {
  .hero-slides video[poster*='hero-2'] {
    object-position: 0% 50%;
  }
}
.hero-home__figure,
.hero-home__quote {
  margin: 0;
}
.hero-home__figure::before {
  content: '';
  display: block;
  inline-size: 36px;
  block-size: 27px;
  margin-bottom: clamp(20px, 2vw, 28px);
  background: currentColor;
  opacity: 0.85;
  -webkit-mask: url(../icons/quote.svg) center / contain no-repeat;
  mask: url(../icons/quote.svg) center / contain no-repeat;
}
[dir='rtl'] .hero-home__figure::before {
  transform: scaleX(-1);
}
.hero-home__quote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-align: start;
  -webkit-hyphens: manual;
  hyphens: manual;
  text-shadow: 0 1px 24px rgba(26, 15, 4, 0.25);
}
html[lang='ar'] .hero-home__quote p {
  line-height: 1.6;
  letter-spacing: 0;
}
.hero-home__figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: clamp(20px, 2vw, 28px);
}
.hero-home__figure figcaption p {
  margin: 0;
}
.hero-home__name {
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}
.hero-home__role {
  font-size: 15px;
  color: rgba(248, 243, 236, 0.78);
}
.hero-home__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 36px;
  margin-top: clamp(28px, 3vw, 44px);
}
.hero-home__links .link-arrow--lg {
  margin-top: 0;
}
.hero-home__links .link-arrow--lg a {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hero-home__links {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }
  .hero-home__links .link-arrow--lg {
    flex: 1 1 0;
    min-inline-size: 0;
  }
  .hero-home .hero-home__links p.link-arrow--lg a {
    inline-size: 100%;
    min-block-size: 46px;
    padding-inline: 16px;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
  }
  .hero-home .hero-home__links p.link-arrow--lg a::after {
    inline-size: 16px;
    block-size: 16px;
  }
}
@media (max-width: 374px) {
  .hero-home__links {
    gap: 8px;
  }
  .hero-home .hero-home__links p.link-arrow--lg a {
    min-block-size: 44px;
    padding-inline: 12px;
    gap: 6px;
    font-size: 14px;
  }
  .hero-home .hero-home__links p.link-arrow--lg a::after {
    inline-size: 14px;
    block-size: 14px;
  }
}
@media (max-width: 700px) {
  /* Keep the controls clear of the floating WhatsApp button in the bottom corner. */
  .hero-home.has-slides .hero-home__inner {
    padding-block-end: 92px;
  }
  .hero-home__quote p {
    font-size: 26px;
    line-height: 1.26;
  }
  .hero-ctrl {
    gap: 12px;
  }
  .hero-ctrl__tabs {
    gap: 8px;
  }
  .hero-ctrl__track {
    inline-size: 26px;
  }
  .hero-ctrl__tab.is-active .hero-ctrl__track {
    inline-size: clamp(88px, 26vw, 140px);
  }
}

/* Controls: a bare pause/play icon, then one line per slide. The active slide's line is long and fills until the
   next change; the others are short and dim. Under the copy, at its start edge; the row mirrors in Arabic. */
.hero-ctrl {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--paper);
  /* A soft shade keeps the thin lines readable over the bright frames of the clips. */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.hero-ctrl__toggle {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 32px;
  block-size: 32px;
  margin-inline-start: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}
.hero-ctrl__toggle:hover {
  opacity: 1;
}
.hero-ctrl__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-ctrl__tab {
  display: flex;
  align-items: center;
  min-block-size: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.hero-ctrl__track {
  position: relative;
  inline-size: 36px;
  block-size: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
  transition: inline-size 0.6s var(--ease), background-color 0.2s var(--ease);
}
.hero-ctrl__tab:hover .hero-ctrl__track {
  background: rgba(255, 255, 255, 0.6);
}
.hero-ctrl__tab.is-active .hero-ctrl__track {
  inline-size: clamp(140px, 16vw, 240px);
  background: rgba(255, 255, 255, 0.3);
}
.hero-ctrl__fill {
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
[dir='rtl'] .hero-ctrl__fill {
  transform-origin: right center;
}
.hero-ctrl__tab.is-active .hero-ctrl__fill {
  animation: hero-fill var(--hero-hold, 8.5s) linear forwards;
  animation-play-state: paused;
}
.hero-ctrl.is-running .hero-ctrl__tab.is-active .hero-ctrl__fill {
  animation-play-state: running;
}
@keyframes hero-fill {
  to {
    transform: scaleX(1);
  }
}
.hero-ctrl__toggle:focus-visible,
.hero-ctrl__tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.hero-ctrl__icon {
  fill: currentColor;
}
.hero-ctrl.is-paused .hero-ctrl__icon--pause,
.hero-ctrl:not(.is-paused) .hero-ctrl__icon--play {
  display: none;
}
[dir='rtl'] .hero-ctrl__icon--play {
  transform: scaleX(-1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-home__slide,
  .hero-home__slide:not(.is-active),
  .hero-ctrl__track {
    transition: none;
  }
  .hero-home__slide .hero-anim {
    animation: none;
  }
}

/* Display headings (and the hero's quote slide): lines balanced so none leaves a single short word on its last line. A two-sentence
   heading (the home hero's) puts each sentence on its own line (.heading-line, from the content build). */
h1,
h2,
.display,
.hero-home__quote p {
  text-wrap: balance;
}
.heading-line {
  display: block;
}

/* Sujal, 23 Nov: the header logo sits a little further out, towards the page edge (left in English, right in Arabic). */
.site-header .logo {
  margin-inline-start: calc(-1 * clamp(6px, 1.25vw, 18px));
}
/* Sujal, 23 Nov: on desktop the actions (search, divider, language, Sign In) go out to the other corner by the same
   amount, so the header is symmetric (right in English, left in Arabic). */
@media (min-width: 1081px) {
  .site-header__actions {
    margin-inline-end: calc(-1 * clamp(6px, 1.25vw, 18px));
  }
}

/* ==========================================================================
   Site search (Sujal, 23 Nov, after JPM's header): a magnifier at the start of the header's actions opens a band
   under the header (the page dims behind it), with the field, a clear button and Search; matching pages in this
   language appear under the field as you type, and Enter (or Search) opens the full results page.
   ========================================================================== */
.search-toggle {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.35s var(--ease);
}
.search-toggle:hover {
  color: var(--brass-ink);
}
.search-toggle > svg {
  grid-area: 1 / 1;
}
.search-toggle[aria-expanded='true'] .search-toggle__open,
.search-toggle[aria-expanded='false'] .search-toggle__close {
  visibility: hidden;
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .search-toggle {
  color: var(--paper);
}
.site-header__actions {
  gap: 10px;
}
.site-search {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 49;
  background: var(--stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -34px rgba(36, 22, 11, 0.4);
  max-block-size: calc(100dvh - var(--header-h) - var(--awc-bar, 0px));
  overflow-y: auto;
  animation: search-in 0.35s var(--ease);
}
.site-search[hidden] {
  display: none;
}
@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.site-header.search-open + .mega-scrim {
  opacity: 1;
}
.site-search__inner {
  padding-block: clamp(28px, 4vw, 48px);
}
.site-search__form {
  display: flex;
  align-items: stretch;
  gap: 16px;
  max-inline-size: 820px;
}
.site-search__field {
  position: relative;
  flex: 1;
  /* The input's own width (wider with the Arabic placeholder) would otherwise hold the field wider than a phone. */
  min-inline-size: 0;
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}
.site-search__field:focus-within {
  border-bottom-color: var(--ink);
}
.site-search__icon {
  position: absolute;
  inset-inline-start: 16px;
  color: var(--muted);
  pointer-events: none;
}
.site-search__input {
  flex: 1;
  min-inline-size: 0;
  block-size: 52px;
  padding-inline: 48px 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.site-search__input::-webkit-search-cancel-button {
  display: none;
}
.site-search__input::placeholder {
  color: var(--muted);
}
.site-search__input:focus {
  outline: none;
}
.site-search__field:has(.site-search__input:focus-visible) {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.site-search__clear {
  position: absolute;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.site-search__clear:hover {
  color: var(--ink);
}
.site-search__clear[hidden] {
  display: none;
}
.site-search__submit {
  min-height: 52px;
  padding-inline: 32px;
  letter-spacing: 0.04em;
}
html[lang='ar'] .site-search__submit {
  letter-spacing: 0;
}
/* Quick results under the field */
.site-search__live {
  max-inline-size: 820px;
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.site-search__live[hidden] {
  display: none;
}
.site-search__live ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.site-search__live a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--ink);
}
.site-search__live a:hover,
.site-search__live a:focus-visible {
  background: var(--stone);
}
.site-search__live-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
}
.site-search__live-snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.site-search__live-msg {
  margin: 0;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--muted);
}
.site-search__live-all {
  border-top: 1px solid var(--line);
}
.site-search__live .site-search__live-all a {
  font-size: 15px;
  font-weight: 500;
  color: var(--brass-ink);
}
:is(.search-hits__snippet, .site-search__live) mark {
  background: none;
  color: inherit;
  font-weight: 600;
}

/* Results page */
.search-page__band {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 4.45vw, 64px);
}
.search-page__title {
  margin-bottom: clamp(20px, 2vw, 28px);
  overflow-wrap: anywhere;
}
.search-page__count {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.search-hits {
  list-style: none;
  max-inline-size: 820px;
  margin: 0;
  padding-block: clamp(16px, 2.2vw, 32px) clamp(32px, 4.45vw, 64px);
}
.search-hits__item {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.search-hits__type {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.search-hits__title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}
.search-hits__title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.search-hits__title a:hover {
  color: var(--brass-ink);
}
.search-hits__title svg {
  flex-shrink: 0;
  color: var(--brass);
}
.search-hits__snippet {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .site-header__actions .search-toggle {
    display: inline-grid;
  }
}
@media (max-width: 700px) {
  /* Phone header: logo, search and the menu button fit on a 360 px screen (the logo over the hero keeps the solid
     header's size instead of growing a little). */
  .site-header__actions {
    gap: 4px;
  }
  .site-header__actions .search-toggle {
    inline-size: 40px;
    block-size: 40px;
  }
  .logo--line.logo--light .logo__svg {
    block-size: 24px;
  }
  .site-header__bar {
    column-gap: 12px;
  }
  .site-search__form {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-search__field {
    flex-basis: 100%;
  }
  .site-search__submit {
    flex: 1;
    min-height: 48px;
  }
  .site-search__input {
    block-size: 48px;
  }
  .site-search__live a {
    padding-inline: 16px;
  }
}
@media (max-width: 430px) {
  .site-header .logo--line .logo__svg {
    block-size: 22px;
  }
}
@media (max-width: 374px) {
  .site-header .logo--line .logo__svg {
    block-size: 19px;
  }
}
/* 320 px phones (iPhone SE, small Android): at 19 px the one-line logo (212 px wide) plus search and menu button
   came to 342 px and pushed the menu button 6 px off the screen. 17 px and a tighter gap fit with room to spare. */
@media (max-width: 340px) {
  .site-header .logo--line .logo__svg {
    block-size: 17px;
  }
  .site-header__bar {
    column-gap: 8px;
  }
}

/* Sujal, 23 Nov: the hero text reads as before, start-aligned with even word spacing (left in English, right in
   Arabic): the home hero slides (the intro and the Chairman's quote), the "30 Years of Trust" banner and the page
   heroes at the top of inner pages. */
.hero-home p,
.anniversary__text p,
.hero-page p {
  text-align: start;
  text-align-last: auto;
}

/* Sujal, 23 Nov: content text is the sans (Inter; IBM Plex Sans Arabic in Arabic), like the hero intro, at the size,
   colour and line height each element already has: the mega menu's panel texts, the small labels above titles and
   the cards' descriptions, the contact details, the service cards' "For …" labels, the markets' short names and the
   large paragraphs of the Chairman's message and the news articles. Headings and titles (link names, panel titles,
   FAQ questions, news titles, the signature), quotes, the credentials band and the footer slogan stay serif. */
.main-nav .mega :is(.mega__contact-row dd, .mega__contact-row dd :is(a, span)),
.service-card__for,
.market__short,
.prose--lg :is(p, li) {
  font-family: var(--sans);
}

/* Sujal, 23 Nov (after JPM's "Sign in" / "Contact us"): the header's actions read search, a thin divider, the
   language switch as a solid button (small radius, Sign In's height), then Sign In, which keeps its outline; mirrored
   in Arabic. The phone menu matches. On the solid header (after scrolling, and on inner pages) and in the phone menu
   the switch is solid ink with white text, so it reads apart from Sign In's outline; over the home photo it stays
   white with ink text. */
.site-header__actions .lang-switch,
.mobile-menu__actions .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.site-header__actions .lang-switch {
  block-size: 38px;
  line-height: 1;
}
.site-header__actions .lang-switch:hover,
.mobile-menu__actions .lang-switch:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--paper);
  text-decoration: none;
}
.site-header__actions .lang-switch:focus-visible,
.mobile-menu__actions .lang-switch:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
/* Over the home photo the header is transparent with white type; the switch stays white with ink text. */
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .site-header__actions .lang-switch {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .site-header__actions .lang-switch:hover {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}
@media (max-width: 1080px) {
  /* Tablets and phones: the header keeps search and the menu button; the switch and Sign In are in the menu. */
  .site-header__actions .lang-switch {
    display: none;
  }
  .mobile-menu__actions .lang-switch {
    align-self: stretch;
    justify-self: stretch;
    min-block-size: 54px;
    margin-top: 0;
    padding: 0 22px;
  }
}
/* The white palette squares every button (palette-white.css); the switch keeps its small radius there too. */
body[class] :is(.site-header__actions, .mobile-menu__actions) .lang-switch {
  border-radius: 3px;
}

/* Sujal, 23 Nov: the announcement bar at about 2 cm: 76px on desktop, 70px on phones (min-height; flex keeps the
   text centred, ~26px above and below one line on desktop). A message that wraps grows it from the padding. The
   header below it and the home hero follow its measured height through --awc-bar / --awc-bar-h, so nothing else moves. */
.announce .announce__inner {
  min-height: 76px;
  padding-block: 26px;
}
@media (max-width: 600px) {
  .announce .announce__inner {
    min-height: 70px;
    padding-block: 14px;
  }
}

/* What We Do hero, in J.P. Morgan's measurements (Sujal, 23 Nov 2026; measured on privatebank.jpmorgan.com/eur/en/services at
   1440 px): the photo runs full width, 512 px tall, under a dark blue shade (our own photo, shade and fonts). Inside the
   content width: the serif heading, 96/104 px, 400, 56 px below the top, at the start; the intro column 500 px wide at most (Sujal: 3-4 lines for our longer text; JP: 304) with its
   end edge on the content's end edge, a 80x6 brass bar (the client's colour, JP uses green) whose top is 16 px below the
   heading's top, then 16 px, then the sans intro, 21/30 px (JP 26/34; Sujal asked for smaller), weight 300. Arabic mirrors by itself (the grid follows the
   writing direction). Phones (JP: heading 50/60 at the top, bar and 22/30 intro lower down, 512 px tall): the same.
   The header stays solid above it, so the photo starts right under the header (and under the announcement bar when on). */
.hero-page.hero-page--cover {
  min-block-size: 512px;
  padding-block: 56px 40px;
  background:
    linear-gradient(180deg, rgba(6, 14, 30, 0.62) 0%, rgba(6, 14, 30, 0.42) 55%, rgba(6, 14, 30, 0.3) 100%),
    url('../img/what-we-do-sea.webp') center 35% / cover no-repeat,
    #0f2744;
  color: #fff;
}
/* Who We Serve (Sujal, 23 Nov 2026): the same cover with the client's green and cream gradient (1200x675, so cover-scaled
   about 1.2x at 1440, soft and grain-only). A darker, even shade because the cream areas sit under the white text; the bright
   curve on the right stays in view (focal point 30% down, phones show the right half where the curve is). */
.hero-page.hero-page--who-we-serve {
  background:
    linear-gradient(180deg, rgba(4, 22, 18, 0.62) 0%, rgba(4, 22, 18, 0.5) 55%, rgba(4, 22, 18, 0.38) 100%),
    url('../img/who-we-serve-gradient.webp') center 30% / cover no-repeat,
    #0b3b30;
}
/* Client Centre (Sujal, 24 Nov 2026): the same cover with the candlestick chart (1600 wide; the bright chart sits low and to the
   right, so the focal point is 62% down and the shade is a touch heavier for the white text on the lit candles). */
.hero-page.hero-page--client-centre {
  background:
    linear-gradient(180deg, rgba(6, 14, 30, 0.7) 0%, rgba(6, 14, 30, 0.56) 55%, rgba(6, 14, 30, 0.42) 100%),
    url('../img/client-centre-candles.webp') center 62% / cover no-repeat,
    #0f2744;
}
.hero-page--cover .hero-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(500px, 40vw));
  align-items: start;
  gap: 32px;
}
.hero-page--cover .hero-cover__title {
  margin: 0;
  font-size: 96px;
  font-weight: 400;
  line-height: 104px;
  letter-spacing: -0.005em;
  color: #fff;
  text-align: start;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}
.hero-page--cover .hero-cover__intro {
  padding-block-start: 16px;
}
.hero-page--cover .hero-cover__intro .hero-cover__link {
  margin: 24px 0 0;
}
.hero-page--cover .hero-cover__link > a,
.hero-page--cover .hero-cover__link > a:hover {
  color: #fff;
}
.hero-page--cover .hero-cover__intro::before {
  content: '';
  display: block;
  inline-size: 80px;
  block-size: 6px;
  margin-block-end: 16px;
  background: var(--brass-light, #c4a47c);
}
.hero-page--cover .hero-cover__intro .lead,
.hero-page--cover .hero-cover__intro p {
  margin: 0;
  max-inline-size: none;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 0.0025em;
  color: #fff;
  text-align: start;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
/* The photo has no media block, so the rule that tightens a section after a text-only hero must not fire here. */
@media (min-width: 701px) {
  main .hero-page.hero-page--cover + .section:not(.section--stone, .section--ink, .section--tight) {
    padding-block-start: var(--section);
  }
}
@media (max-width: 1280px) {
  .hero-page--cover .hero-cover__title {
    font-size: clamp(50px, 7.4vw, 96px);
    line-height: 1.08;
  }
}
@media (max-width: 900px) {
  .hero-page.hero-page--cover {
    padding-block: 40px;
  }
  .hero-page--cover .hero-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero-page--cover .hero-cover__intro {
    padding-block-start: 0;
    max-inline-size: 460px;
  }
}
@media (max-width: 700px) {
  .hero-page.hero-page--cover {
    background-image:
      linear-gradient(180deg, rgba(6, 14, 30, 0.66) 0%, rgba(6, 14, 30, 0.5) 60%, rgba(6, 14, 30, 0.38) 100%),
      url('../img/what-we-do-sea-sm.webp');
    background-position: center, center 30%;
  }
  .hero-page.hero-page--client-centre {
    background-image:
      linear-gradient(180deg, rgba(6, 14, 30, 0.74) 0%, rgba(6, 14, 30, 0.62) 60%, rgba(6, 14, 30, 0.5) 100%),
      url('../img/client-centre-candles-sm.webp');
    background-position: center, center 62%;
  }
  .hero-page.hero-page--who-we-serve {
    background-image:
      linear-gradient(180deg, rgba(4, 22, 18, 0.66) 0%, rgba(4, 22, 18, 0.6) 60%, rgba(4, 22, 18, 0.52) 100%),
      url('../img/who-we-serve-gradient-sm.webp');
    background-position: center, center 30%;
  }
  .hero-page--cover .hero-cover {
    min-block-size: 432px;
    grid-template-rows: auto 1fr;
    gap: 24px;
  }
  .hero-page--cover .hero-cover__title {
    font-size: 50px;
    line-height: 60px;
  }
  .hero-page--cover .hero-cover__intro {
    align-self: end;
  }
  .hero-page--cover .hero-cover__intro .lead,
  .hero-page--cover .hero-cover__intro p {
    font-size: 18px;
    line-height: 26px;
  }
}

/* Service cards on hover or keyboard focus: the white box, the shadow and the brass rule appear, but the card
   itself stays put (no 4px lift), so no card sits higher than its neighbours and the text never moves. */
.service-card:has(:focus-visible) {
  translate: none;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    translate: none;
  }
}

/* ==========================================================================
   Mega menu after J.P. Morgan Private Bank (Sujal, 24 Nov), in our own fonts and colours: a thick dark bar under the
   open nav item sitting on the header's hairline; on the left a large serif title with a small arrow and a short
   serif description, a thin vertical divider, then a flat list of bold sans links about 56 px apart (names only).
   Hover underlines; focus rings stay. Arabic mirrors through logical properties, headings in IBM Plex Sans Arabic bold.
   ========================================================================== */
.main-nav .main-nav__link[aria-expanded='true']::after {
  height: 4px;
  background: var(--brand-deep);
}
.mega {
  border-top: 0;
}
.main-nav .mega__inner {
  grid-template-columns: minmax(300px, 400px) 1fr;
  padding-block: 64px 72px;
}
.main-nav .mega__intro {
  padding-inline-end: 56px;
}
.main-nav .mega__title {
  font-size: 44px;
  line-height: 1.1;
  gap: 14px;
}
html[lang='ar'] .main-nav .mega__title {
  font-size: 38px;
}
.main-nav .mega__title .mega__arrow {
  inline-size: 26px;
  block-size: 26px;
  align-self: flex-start;
  margin-top: 6px;
}
.main-nav .mega__desc {
  margin-top: 20px;
  max-inline-size: 320px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.main-nav .mega__intro::after {
  background: var(--line-strong);
}
.main-nav .mega__links {
  padding-inline-start: 72px;
  padding-top: 0;
  column-gap: 72px;
  max-inline-size: calc(var(--cols, 1) * 300px + 72px);
}
.main-nav .mega__links li {
  padding-block: 15px;
}
.main-nav .mega__links a {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ink);
  padding-bottom: 2px;
}
html[lang='ar'] .main-nav .mega__links a {
  font-weight: 700;
}
.main-nav .mega__links a:is(:hover, :focus-visible) {
  color: var(--brand-deep);
}
.main-nav .mega__contact {
  padding-inline-start: 72px;
}
.main-nav .mega__contact-row dt {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
html[lang='ar'] .main-nav .mega__contact-row dt {
  font-size: 17px;
}
.main-nav .mega .mega__cta {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.main-nav .mega .mega__cta:is(:hover, :focus-visible) {
  color: var(--brand-deep);
}

/* Mega menu items that have a summary (What We Do, Who We Serve), J.P. Morgan style (Sujal 24 Nov): the bold name,
   its summary under it in muted regular sans, items in columns across the panel. Items without a summary keep the
   bold-names-only list above. */
.main-nav .mega__links--rich {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  column-gap: 40px;
  row-gap: 8px;
  columns: auto;
  max-inline-size: none;
  align-content: start;
}
.main-nav .mega__links--rich li {
  padding-block: 12px;
}
.main-nav .mega__links--rich a.mega__link--rich {
  display: flex;
  flex-direction: column;
}
/* The small gold "for" line above the bold name (Sujal 25 Nov); the name stays first in the markup, so it is read first. */
.main-nav .mega__link--rich .mega__link-kicker {
  order: -1;
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
html[lang='ar'] .main-nav .mega__link--rich .mega__link-kicker {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.main-nav .mega__link--rich .mega__link-name {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}
html[lang='ar'] .main-nav .mega__link--rich .mega__link-name {
  font-weight: 700;
}
.main-nav .mega__link--rich .mega__link-desc {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.main-nav .mega__link--rich:is(:hover, :focus-visible) .mega__link-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.main-nav .mega__link--rich:is(:hover, :focus-visible) .mega__link-desc {
  color: var(--ink);
}

/* ---------- App download icons (E-Trading hero, beside the "Access Trading Platforms" link) ---------- */
.hero-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.hero-page__actions .btn-row {
  margin: 0;
}
.app-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.app-links a {
  display: inline-flex;
  padding: 4px;
  color: var(--ink);
  transition: color 0.28s ease;
}
.app-links a:hover,
.app-links a:focus-visible {
  color: var(--brass-ink);
}
@media (max-width: 700px) {
  .hero-page__actions .btn-row {
    flex: 1 0 100%;
  }
  .hero-page__actions .app-links {
    margin-top: 18px;
  }
}

/* ---------- Cream palette: white navbar (25 Nov) ----------
   Cream has no palette-* body class, so the other palettes are excluded by class. White bar with a soft brown
   shadow, on the solid states only (the transparent over-hero state is untouched). The mega panels and the
   phone drawer are white too, so they read as one piece with the bar. No backdrop-filter. */
body:not([class*='palette-']):not(:has(.hero-home)) .site-header,
body:not([class*='palette-']):has(.hero-home) .site-header:is(.is-scrolled, .is-open, .mega-open) {
  background: #ffffff;
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(36, 22, 11, 0.06), 0 6px 18px rgba(36, 22, 11, 0.06);
}
body:not([class*='palette-']) .mega {
  background: #ffffff;
  border-top-color: rgba(36, 22, 11, 0.06);
}
body:not([class*='palette-']) .mobile-menu {
  background: #ffffff;
}

/* ---------- Content text is sans (decision #6), 24 Nov sweep ----------
   Left in serif on purpose: headings and titles, the display numerals and stat values (the 30, the CMA Licensed row),
   the Chairman's pull quote, FAQ questions, the signature name and the initials badges. */
.site-footer__tagline {
  font-family: var(--sans);
  font-size: 16px;
}
/* The Chairman's letter opens with a larger first paragraph: sans like the rest of the letter, a notch smaller. */
.prose--lg > p:first-child,
.prose--lg > p:first-child::first-letter {
  font-family: var(--sans);
}
.prose--lg > p:first-child {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.55;
}

/* ---------- Client mockups, 25 Nov: page photos and text beside photos ---------- */
/* Leadership: the two names sit centred right under the hero photo, a thin vertical rule between them, no initials. */
.people-names.section--tight {
  padding-block-start: clamp(20px, 2vw, 28px);
}
.people--names,
.people.people--names:has(> .person:nth-child(2):last-child) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  gap: 0;
  border: 0;
  text-align: center;
}
.people--names .person {
  display: block;
  padding: 4px clamp(24px, 4vw, 64px);
  border: 0;
}
.people--names .person + .person {
  border-inline-start: 1px solid var(--brass-ink);
}
.people--names .person__name {
  margin: 0;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
}
.people--names .person__role {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .people--names,
  .people.people--names:has(> .person:nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .people--names .person {
    padding: 18px 0;
  }
  .people--names .person + .person {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}

/* Text beside a photo (Who We Serve pages, Margin Trading's risk statement, Home's "Three Decades" on desktop): the
   text column starts level with the photo's top edge and stays within its height. The photo stretches to the row, so
   it is never shorter than the text (its ratio is the floor), and the first line's leading is trimmed so the heading's
   capitals, not its line box, meet the photo's top. Phones and tablets stack as before (site.css, 900px). */
@media (min-width: 901px) {
  body:not(:has(.hero-home)) .media-split {
    align-items: stretch;
  }
  body:not(:has(.hero-home)) .media-split__text {
    align-self: start;
  }
  body:not(:has(.hero-home)) .media-split__text > :first-child {
    margin-block-start: 0;
    text-box: trim-start cap alphabetic;
  }
  body:not(:has(.hero-home)) .media-split__media {
    align-self: stretch;
    justify-self: stretch;
    margin: 0;
  }
  body:not(:has(.hero-home)) .media-split__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }
}
/* Focal points of the four page photos (wide 12:5 slot on desktop, 4:3 on phones): the phone and its charts sit right of
   centre; the olive tree on the left and the lit windows both stay in; Emirates Towers stand right of centre; the
   desk's screens fill the middle, a little above it. */
/* E-Trading (Sujal, 25 Nov, second photo): a hand holding a phone with the AAPL chart and Sell/Buy beside a coffee cup,
   1523×1032, never shown wider than 1280px. From 701px a 16:9 frame shows 857 of its 1032 rows; 25% starts it just
   above the phone's top so the whole screen, Sell/Buy and the cup stay in. Phones (300px edge-to-edge frame, about 5:4)
   show about 1290 of the 1523 columns; 85% keeps the phone's right edge and the whole cup. */
@media (min-width: 701px) {
  .hero-page__media:has(img[src*="etrading-phone-aapl"]) {
    aspect-ratio: 16 / 9;
  }
}
img[src*="etrading-phone-aapl"] {
  object-position: 85% 25%;
}
img[src*="leadership-olive-courtyard"] {
  object-position: 38% 58%;
}
img[src*="markets-dubai-sunrise"] {
  object-position: 62% 50%;
}
img[src*="liquidity-trading-desk"] {
  object-position: 50% 45%;
}

/* Chairman's sign-off (Sujal, 25 Nov: "make it bigger and bolder, both Arabic and English"). The name is bigger than
   the letter's opening paragraph and in the serif's heaviest shipped weight (Newsreader is self-hosted at 300–500;
   Noto Naskh Arabic goes to 600). The title is the sans in the brass ink used for the Leadership roles, semi-bold. */
.signature {
  gap: 6px;
}
.signature__name {
  margin: 0;
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.signature__role {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--brass-ink);
}
html[lang='ar'] .signature__name {
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
}

/* Home, Celebrating 30 Years (Sujal's mockup, 25 Nov): the white mosque courtyard on the right, "30" and the text on the
   left. Side by side the photo is a 0.93:1 frame (about 374×402 at 1440), centred on the main dome: at the photo's full
   height that keeps the dome and its spire, the central arch, the two minarets beside the dome and the gold floor
   pattern whole. It sits vertically centred on the text (no top margin), and the text's rule runs on to the photo's
   edge. Stacked (960px and below) the photo shows uncropped at its own 1101:768 shape, full width. */
.anniversary__media {
  overflow: hidden;
}
.anniversary__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 961px) {
  .anniversary__media {
    aspect-ratio: 0.93;
    align-self: center;
    margin-top: 0;
  }
  .anniversary .mini-stats {
    margin-inline-end: calc(-1 * clamp(18px, 2.2vw, 32px));
  }
}
@media (max-width: 960px) {
  .anniversary__media,
  .anniversary__media img {
    aspect-ratio: 1101 / 768;
    block-size: auto;
  }
}

/* Phone menu, What We Do and Who We Serve (Sujal, 25 Nov, 390 px Android): an item's name, its small label and its
   summary sat side by side (the sub-link row is a flex row), one or two words per line. They stack, full width: the
   name on top, then the label, then the summary. */
.mobile-menu .mobile-menu__sub li a.mega__link--rich {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding-block: 12px;
}
.mobile-menu .mega__link--rich > span {
  display: block;
  inline-size: 100%;
}
.mobile-menu .mega__link--rich .mega__link-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-deep);
}
html[lang='ar'] .mobile-menu .mega__link--rich .mega__link-name {
  font-weight: 700;
}
.mobile-menu .mega__link--rich .mega__link-kicker {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
html[lang='ar'] .mobile-menu .mega__link--rich .mega__link-kicker {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.mobile-menu .mega__link--rich .mega__link-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
}
/* Scrolling the menu to its end does not scroll the page behind it. */
.mobile-menu {
  overscroll-behavior: contain;
}

/* Phone menu button, J.P. Morgan Private Bank style (Sujal, 25 Nov): a plain hamburger of three equal thin lines, no
   round outline, the search icon's colour (cream over the home hero, ink on the light header, search open included).
   The tap area stays 44 px. Open, the outer lines cross into the X and the middle one fades (site.css). */
@media (max-width: 700px) {
  .menu-toggle,
  body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open) .menu-toggle,
  body.palette-white:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open) .menu-toggle {
    inline-size: 44px;
    block-size: 44px;
    border: 0;
    border-radius: 0;
  }
  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    inline-size: 20px;
    background: var(--ink);
  }
  /* Cream over the hero, all three lines (the rule above that does it lists ::before/::after inside :is(), where
     pseudo-elements do not count, so it only reached the middle line). */
  body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .menu-toggle__lines::before,
  body:has(.hero-home) .site-header:not(.is-scrolled):not(.is-open):not(.mega-open) .menu-toggle__lines::after {
    background: var(--paper);
  }
  .menu-toggle__lines {
    top: calc(50% - 0.75px);
    inset-inline-start: calc(50% - 10px);
  }
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    inset-inline-start: 0;
  }
  .menu-toggle__lines::before {
    top: -6px;
  }
  .menu-toggle__lines::after {
    top: 6px;
  }
  .is-open .menu-toggle__lines {
    background: transparent;
  }
  .is-open .menu-toggle__lines::before {
    transform: translateY(6px) rotate(45deg);
  }
  .is-open .menu-toggle__lines::after {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Phone header logo about 11 % smaller (Sujal, 25 Nov: a little big beside search and the menu button). */
@media (max-width: 700px) {
  .site-header .logo--line .logo__svg,
  .site-header .logo--line.logo--light .logo__svg {
    block-size: 21.5px;
  }
}
@media (max-width: 430px) {
  .site-header .logo--line .logo__svg,
  .site-header .logo--line.logo--light .logo__svg {
    block-size: 19.5px;
  }
}
@media (max-width: 374px) {
  .site-header .logo--line .logo__svg,
  .site-header .logo--line.logo--light .logo__svg {
    block-size: 17px;
  }
}

/* Home hero buttons on one line down to 320 px (Sujal, 25 Nov: "Founder & Chairman's Message" took two lines on a
   390 px Android phone). Less padding, gap and arrow, then a step smaller type, and no wrapping; the text stays. */
@media (max-width: 400px) {
  .hero-home p.link-arrow--lg a {
    padding-inline: 18px;
    gap: 10px;
    font-size: 15px;
    white-space: nowrap;
  }
  .hero-home p.link-arrow--lg a::after {
    inline-size: 16px;
    block-size: 16px;
  }
}
@media (max-width: 359px) {
  .hero-home p.link-arrow--lg a {
    padding-inline: 14px;
    font-size: 14px;
  }
}

/* Block buttons with the arrow on 320 px phones: "Explore Our Brokerage Services" was 6 px too long for its line
   (found by tools/check-mobile.js). Smaller gap and arrow, 15 px type. */
@media (max-width: 359px) {
  main .wp-block-button .wp-block-button__link {
    gap: 8px;
    font-size: 15px;
  }
  main .wp-block-button .wp-block-button__link::after {
    inline-size: 16px;
    block-size: 16px;
  }
}

/* Phone footer legal links in a tidy two-column grid (Sujal, 25 Nov): each column's links start at the same x
   (Terms of Use | Privacy & Cookies, Risk Disclosures | Regulatory Disclosures, Complaints), mirrored in Arabic.
   The first column is as wide as its longest link, the second takes the rest; desktop keeps its single row. */
@media (max-width: 700px) {
  .site-footer__legal ul {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 28px;
  }
}
@media (max-width: 359px) {
  .site-footer__legal ul {
    column-gap: 16px;
  }
}

/* Phone header logo, option A (Sujal, 26 Nov): the client's official one-line lockup
   (AWC_Logo_Horizontal_English_OneLine, assets/brand/awc-logo-line-en-official.svg) replaces the thin re-typed line
   in the English header up to 700 px: bold wordmark, mark 25 px tall at the same width (about 219 px). Its fills are
   currentColor and .awc-logo__rule, so the ink / cream-over-the-hero colours above apply unchanged. Desktop, the
   footer and the Arabic header keep their logo. Steps down so it clears search and the menu button at 360 and 320. */
.logo__svg--phone {
  display: none;
}
@media (max-width: 700px) {
  .site-header .logo--has-phone .logo__svg:not(.logo__svg--phone) {
    display: none;
  }
  .site-header .logo--has-phone .logo__svg--phone {
    display: block;
    block-size: 25px;
  }
}
@media (max-width: 374px) {
  .site-header .logo--has-phone .logo__svg--phone {
    block-size: 23px;
  }
}
@media (max-width: 340px) {
  .site-header .logo--has-phone .logo__svg--phone {
    block-size: 20px;
  }
}

/* Sujal, 26 Nov: the Arabic phone header logo (the official one-line lockup, bold wordmark) at the same height as the
   English one: 25 px, 23 px under 375 px, 20 px under 341 px. Cream over the hero, ink on the light header (currentColor). */
@media (max-width: 700px) {
  html[lang='ar'] .site-header .logo--line .logo__svg {
    block-size: 25px;
  }
}
@media (max-width: 374px) {
  html[lang='ar'] .site-header .logo--line .logo__svg {
    block-size: 23px;
  }
}
@media (max-width: 340px) {
  html[lang='ar'] .site-header .logo--line .logo__svg {
    block-size: 20px;
  }
}

/* Sujal, 26 Nov: Arabic "What We Do" menu. The small "for" line above E-Trading is long and wraps to two lines, which
   pushed that one card's name and summary down. Each card now spans three rows (label, name, summary) of the shared
   grid (subgrid), so in every row the labels start at the same top and the names and summaries sit on the same
   line, even when one label wraps. The 3-column layout, widths and type are unchanged. Arabic only. */
html[lang='ar'] .main-nav .mega__links--rich li {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}
html[lang='ar'] .main-nav .mega__links--rich a.mega__link--rich {
  display: contents;
}

/* Cookie Preferences floating card (opposite side of .wa-float; centered at the bottom on small phones). */
@keyframes awc-prefs-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.awc-prefs {
  position: fixed;
  z-index: 46;
  inset-block-end: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  inset-inline-start: max(16px, calc(env(safe-area-inset-left) + 12px));
  inline-size: min(376px, calc(100vw - 32px));
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(36, 22, 11, 0.16), 0 2px 8px rgba(36, 22, 11, 0.08);
  animation: awc-prefs-in 0.25s var(--ease) both;
}
.awc-prefs[hidden] {
  display: none;
}
html[dir='rtl'] .awc-prefs {
  inset-inline-start: max(16px, calc(env(safe-area-inset-right) + 12px));
}
.awc-prefs__title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.awc-prefs__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.awc-prefs__link {
  color: var(--brass-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.awc-prefs__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.awc-prefs__decline,
.awc-prefs__accept {
  min-block-size: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.awc-prefs__decline {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}
.awc-prefs__decline:hover,
.awc-prefs__decline:focus-visible {
  background: var(--stone);
}
.awc-prefs__accept {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}
.awc-prefs__accept:hover,
.awc-prefs__accept:focus-visible {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
}
@media (min-width: 1081px) {
  .awc-prefs {
    inset-block-end: 28px;
    inset-inline-start: 28px;
  }
}
@media (max-width: 640px) {
  .awc-prefs {
    inset-inline: 16px;
    inline-size: auto;
    max-inline-size: 420px;
    margin-inline: auto;
  }
}
html.menu-open .awc-prefs {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .awc-prefs {
    animation: none;
  }
}
@media print {
  .awc-prefs {
    display: none !important;
  }
}

/* Mobile-only navbar & drawer adjustments (desktop > 1080px keeps the original layout). */
.lang-toggle-mobile {
  display: none;
}
@media (max-width: 1080px) {
  .site-header__actions .search-toggle {
    display: none;
  }
  .site-header__actions {
    gap: 10px;
  }
  .lang-toggle-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .lang-toggle-mobile__item {
    color: inherit;
    text-decoration: none;
    padding: 6px 2px;
    opacity: 0.72;
    transition: opacity 0.2s ease;
  }
  .lang-toggle-mobile__item.is-active,
  .lang-toggle-mobile__item:hover,
  .lang-toggle-mobile__item:focus-visible {
    opacity: 1;
  }
  .lang-toggle-mobile__sep {
    opacity: 0.55;
    font-weight: 400;
    user-select: none;
  }
  .mobile-menu__actions .btn--outline {
    color: var(--ink);
  }
  .mobile-menu__actions .mobile-menu__signin {
    font-weight: 700;
  }
  .mobile-menu__actions .mobile-menu__account,
  .mobile-menu__actions .mobile-menu__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
  }
  .mobile-menu__search-icon {
    inline-size: 18px;
    block-size: 18px;
    flex-shrink: 0;
  }
}
/* Make room for AR | EN beside the menu button on narrow phones (320-374 px). */
@media (max-width: 374px) {
  .site-header .logo--has-phone .logo__svg--phone,
  html[lang='ar'] .site-header .logo--line .logo__svg {
    block-size: 20.5px;
  }
  .site-header__actions {
    gap: 8px;
  }
  .lang-toggle-mobile {
    font-size: 13px;
    gap: 4px;
  }
}
@media (max-width: 340px) {
  .site-header .logo--has-phone .logo__svg--phone,
  html[lang='ar'] .site-header .logo--line .logo__svg {
    block-size: 18px;
  }
}
