/* =====================================================================
   LegacyHQ v4: editorial motion
   White and blue. Hairline structure, large type, scroll-driven scenes.
   ===================================================================== */

:root {
  --navy: #0D2C5E;
  --royal: #1E4C9A;
  --blue: #2457B3;
  --ice: #A7C7E7;
  --mist: #E6EFFA;
  --off: #F4F7FB;
  --white: #fff;
  --text: #182235;
  --muted: #5A6880;
  --line: rgba(13, 44, 94, .12);
  --line-strong: rgba(13, 44, 94, .22);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 7vw + 48px, 176px);
  --header: 84px;
  --header-s: 64px;
  --arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* older Safari, which ignores clip */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--royal); color: #fff; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ----------------------------------------------------------- type */
h1, h2, h3 { color: var(--navy); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.display { font-size: clamp(2.9rem, 1.2rem + 6.6vw, 7.6rem); letter-spacing: -.055em; line-height: .96; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 1.3rem + 5vw, 6.2rem); letter-spacing: -.05em; line-height: .98; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 4.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--royal); }
.lead { font-size: clamp(1.06rem, .98rem + .35vw, 1.3rem); line-height: 1.6; color: var(--muted); font-weight: 400; max-width: 40em; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--ice); }
.label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ----------------------------------------------------------- buttons, links */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--royal); color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid var(--royal); cursor: pointer; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--mist); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light::before { background: var(--mist); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light::before { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.arrow { width: 16px; height: 16px; flex: none; }
.i { width: 24px; height: 24px; flex: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--royal); font-weight: 500; font-size: .95rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .arrow { transition: transform .5s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); }

/* ----------------------------------------------------------- header
   Split layout: About, Services, Work | centred logo | Insights, Contact, EN | عربي, Book a call.
   Scrolling condenses the bar; over blue sections it turns navy glass with the white logo. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  color: var(--navy);
  transition: transform .6s var(--ease), height .7s var(--ease), background-color .4s, color .4s, box-shadow .4s, opacity .8s var(--ease);
}
.site-header.is-scrolled { height: var(--header-s); background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-dark { color: #fff; }
.site-header.is-dark.is-scrolled { background: rgba(13,44,94,.74); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.site-header__bar { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.nav-start { justify-self: start; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 28px; }
.brand { display: block; position: relative; width: 132px; transition: width .7s var(--ease); }
.site-header.is-scrolled .brand { width: 112px; }
.brand img { width: 100%; height: auto; transition: opacity .4s; }
.brand__white { position: absolute; inset: 0; opacity: 0; }
.is-dark .brand__navy { opacity: 0; }
.is-dark .brand__white { opacity: 1; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { position: relative; font-size: .92rem; font-weight: 500; padding: 6px 0; opacity: .82; transition: opacity .3s; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .nav-links a::after { transform-origin: left; }
[dir="rtl"] .nav-links a:hover::after, [dir="rtl"] .nav-links a[aria-current]::after { transform-origin: right; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; white-space: nowrap; }
.lang [aria-current] { font-weight: 600; }
.lang a { opacity: .66; transition: opacity .3s; padding: 10px 2px; }
.lang a:hover { opacity: 1; }
.lang i { width: 1px; height: 14px; background: currentColor; opacity: .3; }
.lang :lang(ar) { font-family: var(--arabic); font-size: .95rem; }
.lang :lang(en) { font-family: var(--sans); }
.is-dark .nav-end .btn { background: #fff; color: var(--navy); border-color: #fff; }
.site-header__progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: var(--royal); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .site-header__progress { transform-origin: right; }
.is-dark .site-header__progress { background: var(--ice); }
.sheet .lang { color: #fff; font-size: 1rem; }

/* ----------------------------------------------------------- back to top */
.totop {
  position: fixed; z-index: 45; inset-block-end: max(24px, env(safe-area-inset-bottom)); inset-inline-end: 24px;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--royal); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -12px rgba(13,44,94,.35);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.92);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s, background-color .4s, color .4s, border-color .4s;
}
.totop svg { width: 20px; height: 20px; transform: rotate(-90deg); transition: transform .5s var(--ease); }
.totop:hover svg { transform: rotate(-90deg) translateX(3px); }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.totop.is-dark { background: var(--blue); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.totop:focus-visible { outline: 2px solid var(--royal); outline-offset: 4px; }
.totop.is-dark:focus-visible { outline-color: #fff; }
.no-js .totop { opacity: 1; visibility: visible; transform: none; }
.menu-open .totop { opacity: 0; visibility: hidden; }
#top { position: absolute; top: 0; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; place-items: center; color: inherit; opacity: .9; }
.menu-btn__bars { display: grid; gap: 5px; width: 16px; }
.menu-btn__bars i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn.is-open .menu-btn__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn.is-open .menu-btn__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet__panel { position: absolute; inset: 0; background: var(--navy); color: #fff; display: flex; flex-direction: column; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.sheet.is-open .sheet__panel { clip-path: inset(0 0 0 0); }
.sheet__top { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.sheet__top img { width: 104px; }
.sheet__list { margin-top: 4vh; }
.sheet__list li { border-top: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.sheet__list a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.04em; font-weight: 500; transform: translateY(100%); transition: transform .8s var(--ease); }
.sheet.is-open .sheet__list a { transform: none; }
.sheet__list li:nth-child(2) a { transition-delay: .04s; } .sheet__list li:nth-child(3) a { transition-delay: .08s; }
.sheet__list li:nth-child(4) a { transition-delay: .12s; } .sheet__list li:nth-child(5) a { transition-delay: .16s; } .sheet__list li:nth-child(6) a { transition-delay: .2s; }
.sheet__list small { font-size: .78rem; letter-spacing: .1em; color: var(--ice); font-weight: 500; }
.sheet__list a[aria-current] { color: var(--ice); }
.sheet__foot { margin-top: auto; padding-block: 32px; display: grid; gap: 16px; }
.sheet__foot p { color: var(--ice); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }

/* ----------------------------------------------------------- reveal primitives */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; transform: translateY(105%); transition: transform 1.25s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero .ln > span, .ln.is-in > span { transform: none; }
.load-in { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .load-in { opacity: 1; transform: none; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* data-lines headings are split into masked lines by JS */
[data-lines] .ln > span { transition-duration: 1.1s; }
[data-lines] .ln:nth-child(2) > span { transition-delay: .09s; }
[data-lines] .ln:nth-child(3) > span { transition-delay: .18s; }
[data-lines] .ln:nth-child(4) > span { transition-delay: .27s; }

/* words that fill as you scroll */
[data-words] .w { opacity: .16; transition: opacity .25s linear; }
[data-words] .w.on { opacity: 1; }

.no-js [data-reveal], .no-js .load-in { opacity: 1; transform: none; }
.no-js .ln > span { transform: none; }

/* ----------------------------------------------------------- sections */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--mist { background: var(--off); }
.split-head { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 40px; align-items: start; margin-bottom: clamp(48px, 6vw, 96px); }
.split-head > div { display: grid; gap: 28px; }
.split-head .eyebrow { margin-top: .9em; }
.split-head__row { display: flex !important; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wrap.split-head { margin-bottom: clamp(48px, 6vw, 96px); }

.band { background: linear-gradient(160deg, var(--royal) 0%, var(--navy) 70%); color: rgba(255,255,255,.82); overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band em { color: var(--ice); }
.band .lead { color: rgba(230,239,250,.78); }

/* ----------------------------------------------------------- HERO (pinned scene) */
.hero { position: relative; height: 290vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.linefield { position: absolute; inset: 0; width: 100%; height: 100%; }
.linefield path { fill: none; stroke: var(--ice); stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.linefield path.is-key { stroke: var(--royal); stroke-width: 1.6; }
.linefield path { stroke-dasharray: 4000; stroke-dashoffset: 4000; transition: stroke-dashoffset 2.6s var(--ease-io); }
.is-ready .linefield path { stroke-dashoffset: 0; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.35) 100%); pointer-events: none; }
.hero__stage { position: relative; height: 100%; display: grid; align-items: end; padding-bottom: clamp(120px, 15vh, 170px); padding-top: calc(var(--header) + 24px); }
.hero__stage > * { grid-area: 1 / 1; }
.hero__a { display: grid; gap: clamp(22px, 3vh, 36px); align-self: end; will-change: transform, opacity; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: center; justify-content: flex-start; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__foot .lead { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.hero__b, .hero__c {
  align-self: start; justify-self: center; text-align: center; max-width: 14em; margin-top: max(20vh, calc(var(--header) + 48px));
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5.6rem); letter-spacing: -.05em; line-height: 1; font-weight: 500; color: var(--navy);
  opacity: 0; will-change: transform, opacity; pointer-events: none;
}
/* Alignment intro: a turning sphere of paths aligns into one rule, the headline rises from it */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero--align .hero__stage { align-items: center; padding-bottom: clamp(88px, 11vh, 132px); }
.hero--align .hero__a { align-self: center; justify-items: center; text-align: center; gap: 0; }
.hero--align .eyebrow { margin-bottom: clamp(18px, 2.4vh, 30px); }
.hero--align h1 { overflow: hidden; padding-top: .1em; padding-bottom: .24em; margin-bottom: -.12em; }
.hero--align h1 .ln { overflow: visible; padding: 0; margin: 0; will-change: transform; }
.hero--align h1 .ln > span { transform: none; transition: none; }
/* the rule is drawn by a positioned pseudo-element so its full-bleed width never widens the grid (Safari counts it) */
.hero__rule { display: block; position: relative; justify-self: stretch; height: 2px; }
.hero__rule::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--royal); }
.hero--align .hero__stage, .hero--align .hero__a { grid-template-columns: minmax(0, 1fr); }
.hero--align .hero__foot { border-top: 0; justify-content: center; padding-top: clamp(26px, 3.6vh, 44px); }
.hero--align .hero__ui { opacity: var(--ui, 1); transform: translateY(calc((1 - var(--ui, 1)) * 10px)); }
.hero--align .hero__meta { justify-content: center; }
.hero--align .btn-row { justify-content: center; }
.hero--align .eyebrow { justify-content: center; text-align: center; }
.hero--align .scroll-cue { flex-direction: column; gap: 10px; padding-inline-start: .18em; }
@media (max-width: 860px) {
  .hero--align .eyebrow::before { display: none; }
  .hero--align .eyebrow { max-width: 22em; padding-inline-start: .18em; }
  .hero--align .btn-row { flex-direction: column; align-items: center; }
  .hero--align .hero__meta { height: 84px; }
  /* the big scroll statements sit centred on phones */
  .expand__inner, .a-close .closing__inner { justify-items: center; text-align: center; }
  .expand__inner .eyebrow::before, .a-close .closing__inner .eyebrow::before { display: none; }
  .a-close .closing__inner .btn-row { justify-content: center; }
}
.js-boot .page-home .site-header, .js-boot .hero--align h1, .js-boot .hero--align .hero__ui, .js-boot .hero__rule { opacity: 0; }
.hero--align .hero__b, .hero--align .hero__c { align-self: center; margin-top: 0; }
.hero__meta { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; height: 72px; }
.phases { display: flex; gap: clamp(16px, 3vw, 40px); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.phases li { display: flex; gap: 10px; align-items: center; opacity: .45; transition: opacity .5s, color .5s; }
.phases b { font-weight: 600; color: var(--royal); }
.phases li.is-on { opacity: 1; color: var(--navy); }
.scroll-cue { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--royal), transparent); animation: cue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----------------------------------------------------------- EXPAND (blue panel grows) */
.expand { position: relative; height: 240vh; }
.expand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.expand__panel {
  position: absolute; inset: 0; display: grid; align-items: center;
  background: radial-gradient(120% 90% at 85% 10%, var(--blue) 0%, var(--royal) 40%, var(--navy) 100%);
  clip-path: inset(var(--iy, 22%) var(--ix, 26%) var(--iy, 22%) var(--ix, 26%) round var(--r, 28px));
  will-change: clip-path;
}
.expand__inner { display: grid; gap: 32px; transform: scale(var(--s, .9)); opacity: var(--o, 0); }
/* without JS the belief panel is a plain full-width blue section */
.no-js .expand { height: auto; }
.no-js .expand__sticky { position: relative; height: auto; }
.no-js .expand__panel { position: relative; clip-path: none; padding-block: var(--section); }
.no-js .expand__inner { transform: none; opacity: 1; }
.no-js [data-words] .w { opacity: 1; }
.expand__text { color: #fff; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 6.4rem); letter-spacing: -.05em; line-height: 1.02; font-weight: 500; max-width: 13em; }
.expand__text em { color: var(--ice); }
.expand [data-words] .w { opacity: .22; }
.expand [data-words] .w.on { opacity: 1; }

/* ----------------------------------------------------------- audience drift */
.drift { display: grid; gap: 14px; overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.drift__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.drift__row li { flex: none; padding: 16px 28px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.drift__row--alt li { border-color: transparent; background: var(--mist); color: var(--royal); font-family: var(--serif); font-style: italic; }

/* ----------------------------------------------------------- HSCROLL (services track) */
.hscroll { position: relative; height: 400vh; background: var(--white); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: clamp(32px, 5vh, 64px); padding-top: var(--header); overflow: hidden; }
.hscroll__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hscroll__head > div:first-child { display: grid; gap: 22px; }
.hscroll__count { font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); display: grid; gap: 10px; justify-items: end; white-space: nowrap; }
.hscroll__count b { color: var(--navy); font-weight: 600; }
.hscroll__bar { display: block; width: 160px; height: 1px; background: var(--line-strong); }
.hscroll__bar i { display: block; height: 100%; background: var(--royal); transform-origin: left; transform: scaleX(0); }
.hscroll__viewport { overflow: visible; min-width: 0; }
.hscroll__track { display: flex; gap: 24px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
@media (min-width: 1360px) { .hscroll__track { padding-left: calc((100vw - 1360px) / 2 + var(--gutter)); } }
.svc {
  position: relative; flex: none; width: clamp(300px, 30vw, 440px); min-height: clamp(380px, 52vh, 500px);
  display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 2.6vw, 40px);
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--royal), var(--navy)); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.svc__n { font-size: clamp(3.4rem, 2.2rem + 3vw, 5.4rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; color: var(--ice); margin-bottom: auto; transition: color .6s; }
.svc h3 { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem); transition: color .6s; }
.svc p { color: var(--muted); transition: color .6s; }
.svc .tags li { transition: color .6s, border-color .6s; }
.svc.is-active { border-color: transparent; }
.svc.is-active::before { transform: scaleY(1); }
.svc.is-active .svc__n { color: rgba(167,199,231,.6); }
.svc.is-active h3 { color: #fff; }
.svc.is-active p { color: rgba(230,239,250,.8); }
.svc.is-active .tags li { color: #fff; border-color: rgba(255,255,255,.3); }
.svc.is-active .link-arrow { color: #fff; }

/* ----------------------------------------------------------- PROCESS */
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(40px, 7vw, 120px); }
.process__aside { position: sticky; top: calc(var(--header) + 48px); align-self: start; display: grid; gap: 28px; }
.process__num { height: clamp(7rem, 4rem + 9vw, 13rem); overflow: hidden; font-size: clamp(7rem, 4rem + 9vw, 13rem); line-height: 1; font-weight: 300; letter-spacing: -.07em; color: var(--royal); margin-top: 12px; }
.process__num [data-numstack] { display: grid; transition: transform 1s var(--ease); }
.process__steps { position: relative; padding-inline-start: clamp(28px, 4vw, 56px); }
.process__meter { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.process__meter i { position: absolute; inset: 0; background: var(--royal); transform-origin: top; transform: scaleY(0); }
.step { position: relative; min-height: 46vh; display: grid; align-content: center; gap: 14px; padding-block: 40px; opacity: .28; transition: opacity .7s var(--ease); }
.step::before { content: ""; position: absolute; inset-inline-start: calc(-1 * clamp(28px, 4vw, 56px) - 5px); top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); transition: background .5s, border-color .5s; }
.step.is-on { opacity: 1; }
.step.is-on::before { background: var(--royal); border-color: var(--royal); }
.step__n { font-size: .8rem; letter-spacing: .16em; font-weight: 600; color: var(--royal); }
.step h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.step p { color: var(--muted); max-width: 30em; font-size: 1.08rem; }

/* ----------------------------------------------------------- MOMENTS */
.moments__list { display: grid; }
.moments__list { overflow-x: hidden; overflow-x: clip; }
.moments__list li {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(14px, 1.6vw, 26px); border-top: 1px solid var(--line);
  font-size: clamp(2rem, 1rem + 4.6vw, 6rem); letter-spacing: -.055em; line-height: 1.05; font-weight: 500; color: var(--navy);
  opacity: var(--p, .18); transform: translateX(calc((1 - var(--p, .18)) * 40px * var(--flow, 1)));
}
.moments__list li:last-child { border-bottom: 1px solid var(--line); }
.moments__list span { font-size: .8rem; letter-spacing: .14em; font-weight: 600; color: var(--royal); transform: translateY(-1.6em); }

/* ----------------------------------------------------------- pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.pillars li { display: grid; align-content: start; gap: 16px; padding: 36px 28px 8px 0; }
.pillars li + li { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.16); }
.pillars .i { color: var(--ice); width: 28px; height: 28px; margin-bottom: 18px; }
.pillars p { color: rgba(230,239,250,.72); font-size: .98rem; }

/* ----------------------------------------------------------- work rows */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 24px; gap: 24px; align-items: center;
  padding: clamp(24px, 2.6vw, 38px) 0; isolation: isolate; transition: padding .6s var(--ease), color .5s;
}
.row a::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--mist); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.row a:hover::before { transform: scaleY(1); }
.row a:hover { padding-inline-start: 16px; }
.row__n { font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--royal); }
.row__t { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.2rem); letter-spacing: -.035em; font-weight: 500; color: var(--navy); line-height: 1.1; }
.row__d { color: var(--muted); }
.row__tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.row .arrow { color: var(--royal); transition: transform .5s var(--ease); }
.row a:hover .arrow { transform: translateX(6px); }

/* ----------------------------------------------------------- insight cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card[hidden] { display: none; }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--royal); margin-top: 8px; }
.card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.card__meta .time { color: var(--muted); font-weight: 500; }
.card__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); letter-spacing: -.025em; line-height: 1.22; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card:hover .card__link { background-size: 100% 1px; }
.card__excerpt { color: var(--muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__byline { font-size: .85rem; color: var(--muted); }

.cover {
  position: relative; aspect-ratio: 5 / 3; border-radius: 6px; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--royal), var(--navy)); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px;
}
.cover--2 { background: linear-gradient(150deg, #2a5fb8, var(--royal)); }
.cover--3 { background: linear-gradient(150deg, var(--navy), #143a78); }
.cover--4 { background: var(--mist); color: var(--navy); }
.cover--4 .cover__lines polyline { stroke: var(--royal); }
.cover--4 .cover__tag { color: var(--royal); }
.cover__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform 1.2s var(--ease); transform-origin: right center; }
.cover__lines polyline { fill: none; stroke: var(--ice); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.card:hover .cover__lines { transform: scaleX(1.08); }
.cover__tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ice); }
.cover__word { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; max-width: 10em; letter-spacing: -.01em; }
.cover--wide { aspect-ratio: 21 / 8; padding: clamp(24px, 3vw, 44px); }
.cover--wide .cover__word { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem); }

/* ----------------------------------------------------------- closing */
.closing { padding-block: calc(var(--section) * 1.1); }
.closing__inner { display: grid; gap: 32px; justify-items: start; }
.closing__title { font-size: clamp(2.4rem, 1.2rem + 5vw, 6.6rem); letter-spacing: -.055em; line-height: .98; max-width: 12em; }
.closing [data-words] .w { opacity: .14; }

/* ----------------------------------------------------------- page hero (inner pages) */
.page-hero { position: relative; padding-top: calc(var(--header) + clamp(64px, 9vw, 140px)); padding-bottom: clamp(56px, 7vw, 110px); overflow: hidden; }
.page-hero__inner { position: relative; display: grid; gap: 28px; }
.page-hero h1 { max-width: 12em; }
.page-hero .lead { max-width: 36em; }
.page-hero__rules { position: absolute; inset: auto 0 0 0; height: 100%; pointer-events: none; }
.rules { position: absolute; inset-inline-end: 0; bottom: clamp(28px, 4vw, 64px); width: 34%; display: grid; gap: 12px; pointer-events: none; }
.rules i { display: block; height: 1px; background: var(--ice); transform-origin: right; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.rules i:nth-child(odd) { width: 86%; justify-self: end; }
.rules i.is-key { background: var(--royal); height: 2px; }
.is-ready .rules i { transform: scaleX(1); }
.crumbs { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .5; }
.crumbs a:hover { color: var(--royal); }

/* ----------------------------------------------------------- generic split + panels */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.sticky { position: sticky; top: calc(var(--header) + 40px); display: grid; gap: 24px; }
.chapter + .chapter { margin-top: clamp(80px, 9vw, 140px); }
.chapter__body { display: grid; gap: 24px; font-size: 1.12rem; }
.chapter__body .lead { color: var(--text); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.45; letter-spacing: -.015em; }
.panel { padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; display: grid; gap: 18px; }
.panel--mist { background: var(--off); border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.placeholder-note { opacity: .9; }
.pending { color: var(--muted); font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; padding: 7px 14px; border-radius: 999px; background: var(--mist); color: var(--royal); font-weight: 500; }
.chip .i { width: 16px; height: 16px; }

/* ----------------------------------------------------------- services page: stacked cards */
.stack { display: grid; gap: 0; }
.stack__item { position: sticky; top: calc(var(--header) + 24px + var(--i) * 14px); padding-bottom: 28px; }
.stack__card {
  display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4vw, 64px); border-radius: 8px; min-height: min(64vh, 560px);
  background: #fff; border: 1px solid var(--line-strong);
  transform-origin: center top; transform: scale(var(--sc, 1)); will-change: transform;
  box-shadow: 0 -20px 60px -40px rgba(13,44,94,.25);
}
.stack__item:nth-child(even) .stack__card { background: linear-gradient(160deg, var(--royal), var(--navy)); color: rgba(230,239,250,.82); border-color: transparent; }
.stack__item:nth-child(even) h2, .stack__item:nth-child(even) .stack__lead { color: #fff; }
.stack__item:nth-child(even) .stack__n { color: rgba(167,199,231,.55); }
.stack__item:nth-child(even) .tags li { color: #fff; border-color: rgba(255,255,255,.3); }
.stack__item:nth-child(even) .link-arrow { color: #fff; }
.stack__item:nth-child(even) .label { color: var(--ice); }
.stack__item:nth-child(even) .muted { color: rgba(230,239,250,.72); }
.stack__head { display: flex; flex-direction: column; gap: 20px; }
.stack__n { font-size: clamp(4rem, 2.6rem + 4vw, 7.5rem); font-weight: 300; letter-spacing: -.07em; line-height: .9; color: var(--ice); }
.stack__head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3.2rem); letter-spacing: -.045em; }
.stack__body { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.stack__lead { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem); line-height: 1.4; letter-spacing: -.015em; color: var(--navy); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font-size: .85rem; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .4s, color .4s, border-color .4s; }
.jump a:hover { background: var(--royal); color: #fff; border-color: var(--royal); }

/* ----------------------------------------------------------- work page: cases */
.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr 44px; gap: 24px; align-items: center; padding: clamp(26px, 3vw, 40px) 0; }
.case summary::-webkit-details-marker { display: none; }
.case__title { display: grid; gap: 10px; justify-items: start; }
.case__title .h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem); letter-spacing: -.045em; font-weight: 500; color: var(--navy); line-height: 1.05; }
.case__toggle { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--royal); transition: transform .6s var(--ease), background .4s, color .4s; }
.case__toggle .i { width: 18px; height: 18px; }
.case[open] .case__toggle { transform: rotate(45deg); background: var(--royal); color: #fff; border-color: var(--royal); }
.case-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; padding: 0 0 48px 88px; }
.case-fields dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--royal); margin-bottom: 8px; }
.case-fields dd { color: var(--text); }
.case-fields .wide { grid-column: 1 / -1; }
.case[open] .case-fields { animation: caseIn .8s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(-10px); } }
.framework { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.framework li { padding: 32px 28px 40px 0; display: grid; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.16); }
.framework li:not(:nth-child(3n+1)) { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.16); }
.framework b { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); font-weight: 300; letter-spacing: -.06em; color: var(--ice); line-height: 1; margin-bottom: 18px; }
.framework p { color: rgba(230,239,250,.72); }

/* ----------------------------------------------------------- insights hub */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; }
.feature .cover { aspect-ratio: 16 / 10; }
.feature__body { display: grid; gap: 18px; }
.feature__body h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); letter-spacing: -.04em; line-height: 1.08; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: .86rem; transition: background .4s, color .4s, border-color .4s; }
.filter-chip .count { font-size: .74rem; opacity: .6; }
.filter-chip:hover { border-color: var(--royal); }
.filter-chip[aria-pressed="true"] { background: var(--royal); color: #fff; border-color: var(--royal); }
.filter-status { font-size: .85rem; color: var(--muted); margin-bottom: 36px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------- article */
.article-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.8rem); max-width: 16em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.article-cover-wrap { margin-top: clamp(40px, 5vw, 72px); overflow: hidden; border-radius: 8px; }
.article-cover-wrap .cover { border-radius: 0; transform: scale(var(--zoom, 1.06)); transform-origin: center; }
.article-layout { display: grid; grid-template-columns: 3fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 14px; padding-top: 20px; border-top: 2px solid var(--royal); }
.toc ol { display: grid; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .92rem; }
.toc a { display: flex; gap: 10px; color: var(--muted); transition: color .3s; }
.toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--royal); font-weight: 600; font-size: .78rem; padding-top: 3px; }
.toc a:hover, .toc a.is-on { color: var(--navy); }
.prose { max-width: 720px; font-size: 1.12rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); margin-top: 2.2em; letter-spacing: -.035em; line-height: 1.1; }
.prose ul { list-style: none; display: grid; gap: .8em; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 14px; height: 1px; background: var(--royal); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose blockquote { margin-block: 2em; padding-block: 8px; padding-inline: 28px 0; border-inline-start: 2px solid var(--royal); font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.35; color: var(--navy); }
.prose .dropcap::first-letter { float: left; font-size: 4.4em; line-height: .82; padding: 6px 12px 0 0; color: var(--royal); font-weight: 500; }
.prose a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { display: grid; gap: 18px; padding: 40px; background: var(--off); border-radius: 8px; justify-items: start; }
.empty-state h2 { margin: 0 !important; font-size: 2rem; }

/* ----------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.methods { display: grid; border-top: 1px solid var(--line); }
.method { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.method .i { color: var(--royal); margin-top: 4px; }
.method h3, .method__t { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -.02em; line-height: 1.2; }
.method p { color: var(--muted); }
.method a:not(.link-arrow) { color: var(--royal); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 12px 0; font-size: 1.05rem; border-radius: 0;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231E4C9A' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--royal); box-shadow: 0 1px 0 var(--royal); }
.field__error { display: none; font-size: .8rem; color: #b42318; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #b42318; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--royal); }
.form-error { color: #b42318; font-size: .9rem; }
.form-success { display: none; gap: 14px; padding: 40px 0; }
.form-success.is-shown { display: grid; }
.form-success .i { width: 40px; height: 40px; color: var(--royal); }
[aria-busy="true"] { opacity: .6; pointer-events: none; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .85rem; color: #fff; }

/* ----------------------------------------------------------- legal / 404 */
.legal-doc { display: grid; gap: 20px; }
.notfound { position: relative; min-height: 100vh; display: grid; align-items: center; padding-top: var(--header); }
.notfound__code { font-size: clamp(8rem, 5rem + 14vw, 18rem); font-weight: 300; letter-spacing: -.08em; line-height: .9; color: var(--ice); }

/* ----------------------------------------------------------- portrait placeholder */
.portrait { aspect-ratio: 4 / 5; border-radius: 8px; background: var(--off); display: grid; place-items: center; color: var(--muted); font-size: .9rem; position: relative; overflow: hidden; }
.portrait::before { content: ""; position: absolute; inset: 18%; border: 1px dashed var(--line-strong); border-radius: 50% 50% 8px 8px; }

/* ----------------------------------------------------------- footer */
.site-footer { position: relative; background: var(--navy); color: rgba(230,239,250,.72); padding-top: clamp(72px, 8vw, 120px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand img { width: 150px; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #fff; max-width: 18em; line-height: 1.4; }
.footer-col h2 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .95rem; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }
.footer-word { overflow: hidden; line-height: .78; margin-top: 8px; }
.footer-word span { display: block; text-align: center; font-size: 23vw; font-weight: 600; letter-spacing: -.07em; color: transparent; background: linear-gradient(180deg, rgba(167,199,231,.32), rgba(167,199,231,0) 85%); -webkit-background-clip: text; background-clip: text; transform: translateY(var(--fy, 40%)); will-change: transform; }

/* ===================================================================== homepage: the Boardroom Briefing
   Each section is presented like a briefing: one point at a time, in the order a CEO would read it.
   Default styles are the stacked (mobile / reduced-motion / no-JS) layout; .is-live adds the pinned scene. */

/* A1 positioning: a briefing note with the key phrase marked */
.a-mark { position: relative; display: inline; }
.a-mark > span { position: relative; z-index: 1; }
.a-mark > i { position: absolute; inset-inline: -.06em; bottom: .06em; height: .34em; background: rgba(167,199,231,.5); transform-origin: left; transform: scaleX(var(--m, 1)); z-index: 0; }
[dir="rtl"] .a-mark > i { transform-origin: right; }
.a-pos .a-mark { white-space: nowrap; }
.a-aud { display: grid; grid-template-columns: minmax(180px, 3fr) 4.5fr 4.5fr; gap: 24px 40px; }
.a-aud__col h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); font-weight: 600; margin-bottom: 18px; }
.a-aud__col ul { border-top: 1px solid var(--line); }
.a-aud__col li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; color: var(--navy); }
.a-aud__col li b { font-size: .74rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; width: 2ch; }
@media (max-width: 860px) { .a-aud { grid-template-columns: 1fr; } .a-aud > :first-child { display: none; } .a-pos .a-mark { white-space: normal; } }

/* A2 what we do: pinned agenda, one service at a time */
.a-wwd { padding-block: var(--section); }
.a-wwd__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(40px, 6vw, 112px); }
.a-wwd__aside h2 { margin-top: 20px; }
.a-wwd__index { display: none; }
.a-wwd__panels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.a-svc { display: grid; gap: 16px; padding: 36px 0; border-bottom: 1px solid var(--line); align-content: start; }
.a-svc__n { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--royal); }
.a-svc h3 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); max-width: 14em; }
.a-svc p { color: var(--muted); font-size: 1.08rem; max-width: 32em; }
.a-svc__rail { display: none; }
.a-wwd.is-live { height: calc(100vh + 6 * 62vh); padding: 0; }
.is-live .a-wwd__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: var(--header-s); }
.is-live .a-wwd__index { display: grid; margin-top: 48px; position: relative; padding-inline-start: 22px; }
.is-live .a-wwd__index li { padding: 9px 0; font-size: .98rem; color: var(--navy); opacity: .5; transition: opacity .5s var(--ease); }
.is-live .a-wwd__index li.is-on { opacity: 1; }
.a-wwd__marker { position: absolute; inset-inline-start: 0; top: 0; width: 2px; height: 44px; background: var(--royal); transition: transform .7s var(--ease); }
.is-live .a-wwd__panels { border: 0; display: grid; }
.is-live .a-svc { grid-area: 1 / 1; border: 0; padding: 0; gap: 22px; opacity: 0; visibility: hidden; transform: translateY(32px); transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s .6s; }
.is-live .a-svc.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.is-live .a-svc.is-past { transform: translateY(-32px); }
.is-live .a-svc__n { font-size: clamp(6rem, 3rem + 6vw, 10rem); line-height: .8; font-weight: 300; letter-spacing: -.06em; color: var(--ice); }
.is-live .a-svc h3 { font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); }
.is-live .a-svc__rail { display: block; height: 1px; background: var(--line); margin-top: 18px; max-width: 32em; }
.is-live .a-svc__rail i { display: block; height: 100%; background: var(--royal); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .is-live .a-svc__rail i { transform-origin: right; }
@media (max-width: 860px) { .a-wwd__grid { grid-template-columns: 1fr; } }

/* A3 process: a timeline that draws through four decisions */
.a-proc { padding-block: var(--section); }
.a-proc .split-head { margin-bottom: clamp(40px, 5vw, 72px); }
.a-proc__rail { position: relative; height: 1px; background: var(--line); margin-bottom: 36px; }
.a-proc__rail i { position: absolute; inset: 0; background: var(--royal); transform-origin: left; transform: scaleX(1); }
[dir="rtl"] .a-proc__rail i { transform-origin: right; }
.a-proc__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.a-step { position: relative; display: grid; gap: 12px; align-content: start; }
.a-step__dot { position: absolute; top: -43px; inset-inline-start: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 5px #fff; transition: transform .6s var(--ease); }
.a-step__n { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--royal); }
.a-step h3 { font-size: clamp(1.6rem, 1rem + 1.4vw, 2.4rem); }
.a-step p { color: var(--muted); max-width: 22em; }
.a-step > :not(.a-step__dot) { transition: opacity .7s var(--ease), transform .9s var(--ease); }
.a-proc.is-live { height: 300vh; padding: 0; }
.is-live .a-proc__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: var(--header-s); }
.is-live .a-step:not(.is-on) > :not(.a-step__dot) { opacity: .14; transform: translateY(18px); }
.is-live .a-step:not(.is-on) .a-step__dot { transform: scale(.5); background: var(--ice); }
@media (max-width: 860px) {
  .a-proc__rail { display: none; }
  .a-proc__steps { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .a-step { padding: 28px 0 28px 0; border-bottom: 1px solid var(--line); }
  .a-step__dot { display: none; }
}

/* A4 moments: a drum that rolls one room into view at a time */
.a-mom { padding-block: var(--section); }
.a-mom__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(40px, 6vw, 112px); align-items: center; }
.a-mom__drum ol { border-top: 1px solid var(--line); }
.a-mom__drum li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.6rem, 1rem + 2vw, 3rem); letter-spacing: -.04em; color: var(--navy); font-weight: 500; line-height: 1.1; }
.a-mom__drum li span { font-size: .8rem; letter-spacing: .12em; color: var(--royal); font-weight: 600; }
.a-mom__ticks { display: none; }
.a-mom.is-live { height: 420vh; padding: 0; }
.is-live .a-mom__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: var(--header-s); }
.is-live .a-mom__drum { position: relative; height: 60vh; perspective: 900px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.is-live .a-mom__drum ol { border: 0; position: absolute; inset: 0; }
.is-live .a-mom__drum li { position: absolute; inset-inline: 0; top: 50%; margin-top: -.6em; border: 0; padding: 0; font-size: clamp(2.4rem, 1rem + 3.1vw, 4.6rem); white-space: nowrap; letter-spacing: -.05em; will-change: transform, opacity; backface-visibility: hidden; }
.is-live .a-mom__drum li span { position: absolute; top: -1.4em; font-size: .9rem; letter-spacing: .12em; }
.is-live .a-mom__ticks { display: flex; gap: 8px; margin-top: 40px; }
.a-mom__ticks li { width: 28px; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.a-mom__ticks li i { position: absolute; inset: 0; background: var(--royal); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.a-mom__ticks li.is-on i { transform: scaleX(1); }
@media (max-width: 860px) { .a-mom__grid { grid-template-columns: 1fr; } }

/* A5 why: four principles dealt from one pile onto the table */
.a-why .split-head { margin-bottom: clamp(48px, 5vw, 80px); }
.a-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.a-cards li { display: grid; gap: 14px; align-content: start; padding: 32px 28px 36px; min-height: 300px; border-radius: 6px; background: linear-gradient(170deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); }
.a-cards .i { color: var(--ice); width: 28px; height: 28px; margin-bottom: 28px; }
.a-cards h3 { font-size: 1.45rem; }
.a-cards p { color: rgba(230,239,250,.74); font-size: .98rem; }
.is-live .a-cards li { transition: none; opacity: 1; will-change: transform; }
@media (max-width: 1080px) { .a-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .a-cards { grid-template-columns: 1fr; } .a-cards li { min-height: 0; } }

/* A6 work: rows come into focus at the reading line, with a running counter */
.a-work__grid { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 40px; }
.a-work__aside { position: sticky; top: calc(var(--header-s) + 40px); align-self: start; display: grid; gap: 24px; }
.a-work__count { display: flex; align-items: baseline; gap: 10px; font-size: .9rem; color: var(--muted); }
.a-work__count .win { height: 1.05em; overflow: hidden; font-size: clamp(3rem, 2rem + 3vw, 5.2rem); line-height: 1.05; font-weight: 300; letter-spacing: -.05em; color: var(--royal); }
.a-work__count .win span { display: block; transition: transform .7s var(--ease); }
.a-rows { border-top: 1px solid var(--line); }
.a-row { border-bottom: 1px solid var(--line); }
.a-row a { display: grid; grid-template-columns: 56px 1fr 24px; gap: 8px 24px; padding: 34px 0; align-items: baseline; }
.a-row__n { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); transition: color .5s; }
.a-row__t { font-size: clamp(1.7rem, 1rem + 2vw, 3rem); letter-spacing: -.045em; color: var(--navy); font-weight: 500; line-height: 1.05; transition: transform .7s var(--ease), opacity .6s var(--ease); }
.a-row__d { grid-column: 2; color: var(--muted); max-width: 36em; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.a-row__d small { display: inline-block; margin-inline-start: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); font-weight: 600; }
.a-row .arrow { grid-column: 3; grid-row: 1; color: var(--royal); transition: opacity .5s, transform .5s var(--ease); }
[dir="rtl"] .a-row .arrow { transform: scaleX(-1); }
.js .a-work .a-row:not(.is-on) .a-row__t { opacity: .32; }
.js .a-work .a-row:not(.is-on) .a-row__d { opacity: 0; transform: translateY(-8px); }
.js .a-work .a-row:not(.is-on) .arrow { opacity: 0; }
.js .a-work .a-row.is-on .a-row__n { color: var(--royal); }
.js .a-work .a-row.is-on .a-row__t { transform: translateX(12px); }
[dir="rtl"] .js .a-work .a-row.is-on .a-row__t { transform: translateX(-12px); }
@media (max-width: 860px) { .a-work__grid { grid-template-columns: 1fr; } .a-work__aside { position: static; } .a-work__count { display: none; } .a-row a { grid-template-columns: 1fr 24px; } .a-row__n { display: none; } .a-row__d { grid-column: 1; } .a-row .arrow { grid-column: 2; } }

/* A7 insights: covers rise out of their frames, one after another */
.a-ins .card .cover { overflow: hidden; }
.a-ins .card .cover > * { transition: transform 1.3s var(--ease); transition-delay: calc(var(--d, 0s) + .1s); }
.js .a-ins .card:not(.is-in) .cover > * { transform: translateY(101%); }
.a-ins .card[data-reveal] { transform: none; }
.a-ins .card[data-reveal] > :not(.cover) { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + .35s); }
.js .a-ins .card:not(.is-in) > :not(.cover) { opacity: 0; transform: translateY(14px); }
.a-ins .card[data-reveal] { opacity: 1; }

/* A8 closing: the final page opens from a card to the full screen */
.a-close { background: var(--navy); }
.a-close__panel { background: linear-gradient(160deg, var(--royal), var(--navy) 72%); color: #fff; padding-block: calc(var(--section) * 1.1); }
.a-close .closing__title { color: #fff; }
.a-close .closing__title em { color: var(--ice); }
.a-close .lead { color: rgba(230,239,250,.78); }
.a-close [data-words] .w { opacity: .2; }
.a-close [data-words] .w.on { opacity: 1; }
.no-js .a-close [data-words] .w, .a-close:not(.is-live) [data-words] .w { opacity: 1; }
.a-close.is-live { height: 230vh; background: #fff; }
.is-live .a-close__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.is-live .a-close__panel { overflow: hidden; width: 100%; height: 100vh; display: grid; align-content: center; padding-block: 0; border-radius: 0; will-change: transform; }
.is-live .a-close__panel .closing__inner > * { transition: opacity .8s var(--ease), transform 1s var(--ease); }
.is-live:not(.is-open) .a-close__panel .closing__inner > :not(.closing__title):not(.eyebrow) { opacity: 0; transform: translateY(18px); }

/* ----------------------------------------------------------- Arabic (dir=rtl)
   IBM Plex Sans Arabic carries the text; Playfair stays for Latin brand words.
   Arabic must never be letter-spaced (it breaks the joins) and needs more line height. */
[dir="rtl"] { --flow: -1; }
[lang="ar"] body { font-family: var(--arabic); font-size: 18px; line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] .display, [lang="ar"] .eyebrow, [lang="ar"] .btn,
[lang="ar"] .nav-links a, [lang="ar"] .sheet__list a, [lang="ar"] .closing__title, [lang="ar"] .tags li, [lang="ar"] small,
[lang="ar"] [class*="__n"], [lang="ar"] [class*="__t"], [lang="ar"] .a-mom__drum li, [lang="ar"] .card__meta, [lang="ar"] .footer-col h2 { letter-spacing: 0; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { line-height: 1.32; font-weight: 500; }
[lang="ar"] .display { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6.4rem); line-height: 1.24; }
[lang="ar"] .closing__title { line-height: 1.25; }
[lang="ar"] .eyebrow, [lang="ar"] .footer-col h2, [lang="ar"] .a-aud__col h3 { text-transform: none; font-size: .92rem; }
[lang="ar"] em { font-family: inherit; font-style: normal; letter-spacing: 0; font-weight: inherit; color: var(--royal); }
[lang="ar"] .band em, [lang="ar"] .expand__text em, [lang="ar"] .a-close .closing__title em, [lang="ar"] .site-footer em { color: var(--ice); }
[lang="ar"] .footer-brand p, [lang="ar"] .cover__word, [lang="ar"] .prose blockquote { font-family: var(--arabic); font-style: normal; }
[lang="ar"] .footer-word span, [lang="ar"] .lang :lang(en) { font-family: var(--sans); }
[lang="ar"] .a-mom__drum li { line-height: 1.3; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .link-arrow:hover .arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .row a:hover .arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .hero__veil { background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.35) 100%); }
[dir="rtl"] .rules i { transform-origin: left; }
[dir="rtl"] .a-mom__ticks li i { transform-origin: right; }
[lang="ar"] .prose .dropcap::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; font-weight: inherit; }
[dir="rtl"] .field select { background-position: left 4px center; padding-right: 0; padding-left: 24px; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  :root { --header: 72px; --header-s: 60px; }
  .nav-start, .nav-end nav, .nav-end .btn { display: none; }
  .menu-btn { display: grid; justify-self: start; grid-column: 1; grid-row: 1; }
  .brand { grid-column: 2; grid-row: 1; width: 112px; }
  .site-header.is-scrolled .brand { width: 100px; }
  .nav-end { grid-column: 3; grid-row: 1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .row a { grid-template-columns: 48px 1fr auto 20px; }
  .row__d { display: none; }
}
@media (max-width: 860px) {

  body { font-size: 16px; }
  .split-head, .process__grid, .split, .contact-grid, .feature, .article-layout, .stack__card { grid-template-columns: 1fr; }
  .split-head .eyebrow { margin-top: 0; }
  .process__aside, .sticky { position: static; }
  .process__num { display: none; }
  .step { min-height: auto; padding-block: 28px; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__veil { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 45%, #fff 70%); }
  .card-grid, .grid-2, .case-fields, .framework { grid-template-columns: 1fr; }
  .framework li:not(:nth-child(3n+1)) { padding-inline-start: 0; border-inline-start: 0; }
  .case-fields { padding-inline-start: 0; }
  .case summary { grid-template-columns: 1fr 44px; }
  .case summary .row__n { display: none; }
  .toc { position: static; }
  .stack__item { position: relative; top: auto; }
  .stack__card { min-height: 0; transform: none !important; }
  .rules { display: none; }
  /* services track becomes a native swipe rail */
  .hscroll { height: auto; padding-block: var(--section); }
  .hscroll__sticky { position: static; height: auto; padding-top: 0; display: grid; }
  .hscroll__count { display: none; }
  .hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hscroll__viewport::-webkit-scrollbar { display: none; }
  .hscroll__track { transform: none !important; padding-inline: var(--gutter); }
  .svc { width: 82vw; min-height: 400px; scroll-snap-align: center; }
  .hero__meta .phases { display: none; }
  .row a { grid-template-columns: 1fr 20px; gap: 6px 16px; }
  .row__n, .row__tag { display: none; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .moments__list span { display: none; }
  .btn { min-height: 50px; padding: 0 22px; }
}

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero, .expand, .hscroll { height: auto; }
  .hero__sticky, .expand__sticky, .hscroll__sticky { position: relative; height: auto; min-height: 100vh; }
  .hero__b, .hero__c { display: none; }
  .expand__panel { position: relative; clip-path: none; padding-block: var(--section); }
  .expand__inner { transform: none; opacity: 1; }
  [data-words] .w { opacity: 1 !important; }
  .hscroll__viewport { overflow-x: auto; }
  .hscroll__track { transform: none !important; }
  .moments__list li { opacity: 1; transform: none; }
  .footer-word span { transform: none; }
}
