/* Royal layer: a high-contrast serif for the big headings and figures, gold foil on the emphasised
   words, and fine gold rules and diamonds as the only ornament. Loaded last. */

:root {
  --font-royal: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --foil-dark: linear-gradient(100deg, #F3E7B8 0%, #D6C385 34%, #B09E5D 62%, #E6D69C 100%);
  --foil-light: linear-gradient(100deg, #7A6B34 0%, #A08B48 45%, #6F612E 100%);
  --gold-rule: rgb(201 184 122 / .32);
}

/* ---------- headings: serif display, sized to the old x-height ---------- */
h1, h2, .page-head h1, .statement, .closing__cta h2 {
  font-family: var(--font-royal); font-weight: 600; letter-spacing: -0.012em; line-height: 1.02;
  font-size-adjust: 0.5; font-variant-numeric: lining-nums proportional-nums;
}
h1 em, h2 em, .statement em {
  font-style: italic; font-weight: 600; padding-right: .06em;
  background: var(--foil-light); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-head);
}
h1 em *, h2 em * { background: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:is(.ground-inverse, .glow-ground, .footer--night, .shield-band, .nav--tone) :is(h1, h2) em,
:is(.ground-inverse, .glow-ground, .footer--night, .shield-band) .statement em { background-image: var(--foil-dark); }

/* big figures read as engraved numerals */
.desk-facts dd, .case__facts dd { font-family: var(--font-royal); font-weight: 600; letter-spacing: -0.01em; font-size-adjust: 0.5; font-variant-numeric: lining-nums; }

/* ---------- eyebrows: a gold diamond leads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; transform: rotate(45deg); }

/* ---------- gold hairlines frame the night ---------- */
.nav--tone { box-shadow: inset 0 -1px 0 var(--gold-rule); }
html main > section:is(.ground-inverse, .shield-band):not(.hero):not(.page-head) { box-shadow: inset 0 1px 0 var(--gold-rule), inset 0 -1px 0 var(--gold-rule); }
footer.footer--night { box-shadow: inset 0 1px 0 var(--gold-rule); }

/* ornament under a section heading on night bands: rule, diamond, rule */
.ground-inverse .section-head h2::after, .shield-band .section-head h2::after {
  content: ""; display: block; width: 92px; height: 10px; margin-top: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 10'%3E%3Cg fill='%23B09E5D'%3E%3Crect x='0' y='4.5' width='36' height='1'/%3E%3Crect x='56' y='4.5' width='36' height='1'/%3E%3Cpath d='M46 0l5 5-5 5-5-5z'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}
.section-head--center h2::after { margin-inline: auto; }

/* ---------- secondary buttons: a gold outline ---------- */
:is(.ground-inverse, .glow-ground, .footer--night) .btn--secondary { box-shadow: inset 0 0 0 1px rgb(201 184 122 / .55); border-color: transparent; }
:is(.ground-inverse, .glow-ground, .footer--night) .btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--gold-light); }

/* the line-by-line reveal masks each heading line (overflow: clip); give the serif's tall
   ascenders and descenders room inside the mask without changing the line spacing */
:is(h1, h2) > div { padding-block: .12em; margin-block: -.12em; }
h1, .page-head h1 { line-height: 1.06; }

/* footer: grid items may shrink below their content width (phones overflowed by a few pixels) */
footer.closing .wrap > *, footer.closing .grid > *, .closing__cta > * { min-width: 0; }

/* job listings are data, not headlines: keep their titles in the sans */
h2.awsm-job-post-title { font-family: var(--font-display); font-weight: 600; font-size-adjust: none; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- client logos: plain one-colour (white) versions, never re-coloured ---------- */
.logo-mono { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; opacity: .72; transition: opacity .3s ease, filter .3s ease; }
.logo-mono--emirates-nbd, .logo-mono--dli-it-group, .logo-mono--micoope, .logo-mono--arab-energy-fund, .logo-mono--bbk { height: 40px; }
.logo-mono--du, .logo-mono--g42 { height: 36px; }
.logo-mono--honeywell, .logo-mono--banco-chn, .logo-mono--codativity, .logo-mono--forza, .logo-mono--taka-solutions, .logo-mono--next-street { height: 24px; }
li:hover > .logo-mono { opacity: 1; }
html .hero.glow-ground .client-logos img.logo-mono { filter: none; mix-blend-mode: normal; opacity: .72; }
.hero__dock .client-logos { align-items: center; }
.hero__dock .client-logos .logo-mono { height: 24px; max-width: 120px; }
.hero__dock .client-logos .logo-mono--emirates-nbd { height: 32px; }
.hero__dock .client-logos .logo-mono--honeywell { height: 18px; }

/* ---------- clients band: an endless strip ---------- */
html main > section.clients-band.clients-band { padding: clamp(36px, 4vw, 56px) 0; height: auto; min-height: 0; overflow: hidden; }
.clients-band__title { margin: 0 0 clamp(22px, 2.4vw, 32px); text-align: center; font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-on-navy); font-size-adjust: none; line-height: 1.6; }
.clients-band__title::after { content: none; }
.clients-band__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-band__track { display: flex; width: max-content; animation: clients-marquee 70s linear infinite; }
.clients-band__viewport:hover .clients-band__track { animation-play-state: paused; }
.clients-band__list { display: flex; align-items: center; gap: clamp(40px, 4.5vw, 72px); margin: 0; padding: 0 clamp(20px, 2.25vw, 36px); list-style: none; }
.clients-band__list li { flex: none; display: grid; place-items: center; height: 48px; }
@keyframes clients-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients-band__track { animation: none; width: auto; }
  .clients-band__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .clients-band__list[aria-hidden="true"] { display: none; }
  .clients-band__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- client strip: label beside the moving logos ---------- */
.clients-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-6); }
.clients-strip__label { margin: 0; font: 600 11px/1.6 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-on-navy); }
.hero__clients { position: relative; z-index: 1; margin-top: clamp(28px, 3.5vh, 44px); padding-top: clamp(18px, 2.4vh, 26px); border-top: 1px solid var(--gold-rule); }
.hero__clients .clients-band__list li { height: 44px; }
@media (max-width: 767px) {
  .clients-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .clients-strip__label { text-align: center; }
}

/* hero: a wider text column keeps the buttons and ISO badges on one row each, so the client
   strip makes the first screen; short screens trim the top padding and scale the headline */
@media (min-width: 1024px) {
  html .hero--collage .hero__grid > .hero__text { grid-column: 1 / span 6; }
  .hero--collage .iso-badges { flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (max-height: 880px) {
  html main > .hero.hero--collage { padding-top: calc(var(--nav) + 24px); }
  html .hero--collage h1 { font-size: min(var(--t-h1), 7vh); margin-top: 12px; }
  .hero--collage .hero__lead { margin-top: 12px; }
  html .hero--collage .btn-row { margin-top: 20px; }
  html .hero--collage .hero__proof { margin-top: 14px; }
  html .hero--collage .iso-badges--hero { margin: 12px 0 0; }
  .hero__clients { margin-top: 18px; padding-top: 14px; }
  html main > .hero.hero--collage { padding-bottom: 24px; }
}

/* ---------- action colour: navy on light grounds, gold on night grounds (was blue) ----------
   Drives small controls: active filter pills, current page number, checked form options,
   focus rings and links in articles. The main buttons are gold (gold.css). */
:root { --p-action: #0B1530; --p-action-ink: #F3E7B8; --p-accent: #8F7F45; --p-accent-ink: #fff; --p-inv-action: #C9B87A; --p-inv-action-ink: #050b1f; }
.footer--night { --action: #C9B87A; --action-ink: #050b1f; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold-head); }

/* every page head clears the fixed navigation, including the article head (header.page-head
   inside article, which the main > section rule does not reach) */
html .page-head, html main > article > header.page-head { padding-top: calc(var(--nav) + var(--s-8)); }
