/* Site styles. */
:root {
  --midnight: #0D1330;
  --midnight-2: #151C40;
  --porcelain: #F2F4F8;
  --white: #FFFFFF;
  --cobalt: #2A40C9;
  --lagoon: #08594F;
  --sky: #93C9F5;
  --amethyst: #4B2A8C;
  --saffron: #FFB13D;
  --saffron-hi: #FFC266;
  --slate: #434B66;
  --mist: #AEB6D0;
  --rule-light: rgba(13, 19, 48, .14);
  --rule-dark: rgba(242, 244, 248, .2);

  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --ar: "Noto Kufi Arabic", "Geeza Pro", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--porcelain); color: var(--midnight);
  font: 400 1.1875rem/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--saffron); color: var(--midnight); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
[lang="ar"] { font-family: var(--ar); font-stretch: normal; letter-spacing: 0; }

/* ---------- type */
.sec-h, .chapter-h, .svc-h, .closing-h, .page-h, .hero-h, .ebill-h {
  font-weight: 500; font-stretch: 112%; letter-spacing: -.028em; line-height: 1.02; text-wrap: balance;
}
.sec-h { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.sec-p { font-size: 1.1875rem; color: var(--slate); max-width: 34em; }
h3 { font-weight: 600; font-stretch: 106%; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 600 1.0625rem/1 var(--font); font-stretch: 104%; letter-spacing: -.005em;
  text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9688rem; }
.btn-warm { background: var(--saffron); color: var(--midnight); }
.btn-warm:hover { background: var(--saffron-hi); }
.btn-solid { background: var(--midnight); color: var(--white); }
.btn-solid:hover { background: var(--cobalt); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: .28em; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .35s var(--ease), box-shadow .35s; }
.top.is-solid { background: rgba(13, 19, 48, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
@supports (backdrop-filter: blur(1px)) { .top.is-solid { background: rgba(13, 19, 48, .82); backdrop-filter: blur(14px) saturate(1.2); } }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.mark { display: inline-flex; align-items: center; font-weight: 600; font-stretch: 118%; font-size: 1.3125rem; letter-spacing: -.02em; text-decoration: none; }

/* ---------- the wordmark: EITW is the name folded. Static it reads EverydayITWorks; site.js lays the five spans out at
   positions measured from the real glyphs and folds the name by moving them (transforms and opacity only). */
.wm { position: relative; display: inline-block; white-space: nowrap; line-height: 1.2; }
.wm-it { color: var(--sky); }
.wm-live > span { position: absolute; top: 0; left: 0; }
.wm-live > .wm-x { top: -.3em; padding-block: .3em; overflow: hidden; }
.wm-live > .wm-x > span { display: block; }
.wm-x i { font-style: normal; }

/* ---------- home intro: the stage EITW unfolds on (shown only when the head script chose to play it) */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.intro-field { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--midnight); }
.intro-mark { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; }
.wm-big { font-weight: 600; font-stretch: 118%; letter-spacing: -.02em; font-size: 160px; color: var(--white); }
.intro-on .top .wm { opacity: 0; }
.nav-list { display: flex; align-items: center; gap: 34px; font-size: 1rem; font-weight: 500; }
.nav-list a:not(.btn) { text-decoration: none; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.nav-list a:not(.btn):hover, .nav-list a[aria-current="page"]:not(.btn) { background-size: 100% 1.5px; }
.nav-ar { position: relative; color: var(--mist); font-size: 1rem; cursor: default; }
.nav-soon { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 .8125rem/1 var(--font); color: var(--midnight); background: var(--porcelain); padding: 7px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-ar:hover .nav-soon { opacity: 1; }
.menu { display: none; }

/* ---------- home hero */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: flex-end; color: var(--white); background: var(--midnight); overflow: clip; }
.hero-media, .page-hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img, .page-hero-media img, .page-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-img { position: absolute; inset: 0; object-position: 62% 40%; transform-origin: 70% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 48, .55) 0, rgba(13, 19, 48, 0) 150px),
              linear-gradient(90deg, rgba(13, 19, 48, .82) 0%, rgba(13, 19, 48, .55) 38%, rgba(13, 19, 48, 0) 70%),
              linear-gradient(0deg, rgba(13, 19, 48, .7) 0%, rgba(13, 19, 48, 0) 45%);
}
.hero-in { position: relative; padding-block: 160px clamp(64px, 10vh, 120px); }
.hero-h { font-size: clamp(2.5rem, 6.1vw, 5.75rem); max-width: 12.5em; max-width: min(12.5em, 100%); line-height: .98; letter-spacing: -.034em; }
.hero-sub { margin-top: 28px; max-width: 30em; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); color: #DCE1EF; }
.hero .actions { margin-top: 36px; }

/* ---------- statement (scroll-lit words) */
.statement { padding-block: clamp(84px, 11vw, 150px) clamp(110px, 14vw, 190px); background: var(--porcelain); }
.statement-p { font-size: clamp(1.75rem, 3.5vw, 3.25rem); line-height: 1.16; font-weight: 450; font-stretch: 108%; letter-spacing: -.022em; max-width: 21em; color: var(--midnight); text-wrap: pretty; }

/* ---------- practices: chapters */
.practices { background: var(--porcelain); }
.practices-head { padding-top: clamp(96px, 11vw, 150px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.t-cobalt { --bg: var(--cobalt); --fg: var(--white); --fg2: #FFFFFF; --link: var(--white); }
.t-lagoon { --bg: var(--lagoon); --fg: var(--white); --fg2: #EEF8F5; --link: var(--white); }
.t-sky { --bg: var(--sky); --fg: var(--midnight); --fg2: #1C2A55; --link: var(--midnight); }
.t-amethyst { --bg: var(--amethyst); --fg: var(--white); --fg2: #E2D9F7; --link: var(--white); }
.chapter { background: var(--bg); color: var(--fg); }
.chapter-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(72px, 9vw, 120px); }
.ar { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.6; font-weight: 500; color: var(--fg2); margin-bottom: 14px; text-align: left; }
.chapter-h { font-size: clamp(2.5rem, 5.4vw, 5rem); max-width: 9em; }
.chapter-p { margin-top: 24px; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--fg2); max-width: 26em; }
.chapter .text-link { color: var(--link); }
.chapter .text-link { display: inline-block; margin-top: 28px; }
.chapter-fig { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 72vh; justify-self: end; width: 100%; max-width: 520px; }
.chapter-img { width: 100%; height: 100%; object-fit: cover; }
.chapter-progress { display: none; }

/* pinned mode (desktop + motion): chapters stack inside one sticky stage */
.chapters.is-pinned { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.is-pinned .chapter { position: absolute; inset: 0; display: flex; align-items: center; will-change: clip-path; }
.is-pinned .chapter-in { padding-block: 96px 64px; }
.is-pinned .chapter-fig { max-height: calc(100svh - 200px); }
.is-pinned .chapter-p { max-width: 20em; }
.is-pinned .chapter-progress { display: flex; gap: 8px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; }
.chapter-progress .bar { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.chapter-progress .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.chapter-progress .bar:hover::before { background: rgba(255, 255, 255, .55); }
.chapter-progress .bar i { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }
.chapters.on-sky .chapter-progress .bar::before { background: rgba(13, 19, 48, .22); }
.chapters.on-sky .chapter-progress .bar i { background: var(--midnight); }

/* ---------- e-bill band: a typographic teaser; the product's photograph and clip belong to its own page */
.ebill-band { background: var(--midnight); color: var(--white); overflow: clip; }
.ebill-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); align-items: end; padding-block: clamp(110px, 12vw, 170px); }
.ebill-text .btn { margin-top: 32px; }
.ebill-of { font-size: 1.0625rem; color: var(--mist); margin-bottom: 10px; }
.ebill-h { font-size: clamp(4.5rem, 14vw, 13rem); line-height: .9; letter-spacing: -.05em; font-weight: 520; }
.ebill-p { max-width: 22em; color: #DCE1EF; font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.4; }
.ebill-status { display: flex; gap: 12px; align-items: baseline; margin: 18px 0 32px; max-width: 34em; color: #DCE1EF; font-size: 1.0625rem; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 177, 61, .22); transform: translateY(-1px); }

/* ---------- sectors */
.sectors { background: var(--porcelain); padding-block: clamp(110px, 14vw, 190px); overflow: clip; }
.sectors-h { font-size: 1.1875rem; font-weight: 600; color: var(--slate); margin-bottom: clamp(24px, 3vw, 40px); }
.sector-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(6px, 1vw, 14px); }
.sector { display: block; padding-block: clamp(14px, 2vw, 26px); border-top: 1px solid var(--rule-light); }
.sector-n { display: block; width: max-content; max-width: 100%; font-size: clamp(2.25rem, 5.8vw, 5.75rem); font-weight: 480; line-height: 1.04; letter-spacing: -.035em; font-variation-settings: "wdth" var(--wd, 100); white-space: nowrap; }
.sector-l { display: block; width: fit-content; max-width: min(34em, 100%); margin-top: 10px; font-size: 1.125rem; color: var(--slate); max-width: 34em; }
.sector:nth-child(2) { padding-left: clamp(0px, 8vw, 140px); }
.sector:nth-child(2) .sector-n { color: var(--cobalt); }
.sector:nth-child(3) { padding-left: clamp(0px, 3vw, 56px); }

/* ---------- closing: the one warm field on every page */
.closing { background: var(--saffron); color: var(--midnight); text-align: center; }
.closing-in { display: flex; flex-direction: column; align-items: center; padding-block: clamp(96px, 11vw, 150px); }
.closing-h { font-size: clamp(2.5rem, 5.6vw, 5.25rem); max-width: 13em; margin-bottom: 40px; }
.closing-alt { margin-top: 22px; font-size: 1.0625rem; }
.closing-alt a { font-weight: 600; }

/* ---------- inner page heroes */
.page-hero { position: relative; min-height: max(540px, 68vh); display: flex; align-items: flex-end; color: var(--white); background: var(--midnight); overflow: clip; }
.page-hero-tall { min-height: max(680px, 100svh); }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 48, .55) 0, rgba(13, 19, 48, 0) 150px), linear-gradient(90deg, rgba(13, 19, 48, .86) 0%, rgba(13, 19, 48, .5) 42%, rgba(13, 19, 48, .05) 75%), linear-gradient(0deg, rgba(13, 19, 48, .7) 0%, rgba(13, 19, 48, 0) 55%); }
.page-hero-media img, .page-hero-media video { position: absolute; inset: 0; object-position: 65% 45%; }
.page-hero-in { position: relative; padding-block: 150px clamp(56px, 8vw, 96px); }
.page-h { font-size: clamp(3rem, 7.4vw, 7rem); line-height: .95; letter-spacing: -.04em; }
.page-h-xl { font-size: clamp(4.5rem, 13vw, 12rem); letter-spacing: -.05em; line-height: .88; }
.page-p { margin-top: 24px; max-width: 30em; font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); line-height: 1.45; color: #DCE1EF; }
.page-hero .actions { margin-top: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); text-decoration: none; font-weight: 500; font-size: 1rem; transition: border-color .2s, background-color .2s; }
.jump a:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* services header: no photograph; the four practice colours as the page's own graphic */
.page-hero-field { min-height: max(560px, 72vh); }
.field-bands { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; display: grid; grid-template-rows: repeat(4, 1fr); }
.fb { background: var(--bg); transform-origin: 100% 50%; }
.motion .fb { animation: fb-in 1.1s cubic-bezier(.22, .8, .2, 1) both; }
.motion .fb:nth-child(2) { animation-delay: .08s; } .motion .fb:nth-child(3) { animation-delay: .16s; } .motion .fb:nth-child(4) { animation-delay: .24s; }
@keyframes fb-in { from { transform: scaleX(0); } }
@media (max-width: 899px) { .field-bands { top: 76px; bottom: auto; height: 10px; width: 100%; grid-template-rows: none; grid-template-columns: repeat(4, 1fr); } }

/* ---------- services page */
.svc { background: var(--bg); color: var(--fg); scroll-margin-top: 76px; }
.svc-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); padding-block: clamp(96px, 11vw, 160px); }
.svc-head { align-self: start; position: sticky; top: 120px; }
.svc-h { font-size: clamp(2.5rem, 5vw, 4.75rem); max-width: 8.5em; }
.svc-p { margin-top: 24px; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--fg2); max-width: 24em; }
.svc-note { margin-top: 20px; color: var(--fg2); max-width: 26em; }
.svc-note a { color: var(--link); font-weight: 600; }
.svc-list { counter-reset: none; }
.svc-list li { font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: 500; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.25; padding-block: 20px; border-top: 1px solid color-mix(in srgb, var(--fg) 24%, transparent); }
.svc-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 24%, transparent); }
.svc-fig { margin-top: 48px; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-img { width: 100%; height: 100%; object-fit: cover; }

.steps { background: var(--porcelain); padding-block: clamp(110px, 13vw, 180px); }
.step-list { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.step-list li { counter-increment: step; }
.step-list li::before { content: counter(step); display: block; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 300; font-stretch: 112%; line-height: 1; letter-spacing: -.04em; color: var(--cobalt); margin-bottom: 22px; }
.step-list p { margin-top: 10px; color: var(--slate); max-width: 22em; }

/* ---------- e-bill page */
.does { background: var(--porcelain); padding-block: clamp(110px, 13vw, 180px); }
.does-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(44px, 5vw, 72px); }
.p-e-bill .does-grid { grid-template-columns: 1fr; gap: 40px; }
.does-grid h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 14px; }
.does-grid p { color: var(--slate); max-width: 22em; }
.zatca { background: var(--midnight); color: var(--white); padding-block: clamp(110px, 13vw, 180px); }
.zatca-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); }
.zatca-p { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.45; max-width: 28em; }
.zatca-list { margin-top: 36px; display: grid; gap: 14px; color: #DCE1EF; }
.zatca-list li { display: flex; gap: 14px; align-items: baseline; }
.zatca-more { margin-top: 40px; font-size: 1.0625rem; color: #DCE1EF; }
.zatca-more a { color: var(--white); margin-left: 6px; }
.zatca-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--saffron); transform: translateY(-3px) rotate(45deg); }

/* ---------- company */
.principles { background: var(--midnight); color: var(--white); padding-block: clamp(110px, 13vw, 180px); }
.principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 120px); margin-top: clamp(48px, 6vw, 80px); max-width: 1100px; }
.principle-grid h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 12px; }
.principle-grid p { color: var(--mist); max-width: 26em; }

/* ---------- contact */
.contact { background: var(--midnight); color: var(--white); }
.contact-in { padding-block: 170px clamp(96px, 11vw, 150px); }
.channels { margin-top: clamp(48px, 6vw, 84px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px clamp(32px, 5vw, 80px); padding-top: 40px; border-top: 1px solid var(--rule-dark); }
.ch-h { font-size: 1.0625rem; font-weight: 600; color: var(--mist); }
.ch-note { font-size: 1rem; color: var(--mist); }
.ch-value { display: inline-block; margin-top: 10px; font-size: clamp(1.875rem, 3.4vw, 3rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1; color: var(--white); text-decoration: none; }
a.ch-value:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- footer */
.foot { background: var(--midnight); color: var(--mist); font-size: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 80px 64px; }
.foot .mark { color: var(--white); }
.foot-brand p { margin-top: 18px; max-width: 20em; }
.foot-h { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 10px; }
.foot a:not(.mark) { text-decoration: none; }
.foot a:not(.mark):hover { color: var(--white); text-decoration: underline; }
.foot-legal { display: grid; gap: 10px; align-content: end; }

/* ---------- clips: laid over their stills, shown only once actually playing */
.chapter-fig { position: relative; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.clip.is-on { opacity: 1; }

/* ---------- intro states (only while motion is about to run) */
.motion:not(.motion-ready) [data-intro], .motion:not(.motion-ready) [data-intro-after] { visibility: hidden; }
.split-line { display: block; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .nav-list { gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  body { font-size: 1.125rem; }
  .menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font: 600 1rem/1 var(--font); cursor: pointer; }
  .menu-l, .menu-l::before { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-l { position: relative; transform: translateY(-3px); }
  .menu-l::before { content: ""; position: absolute; top: 6px; }
  .menu[aria-expanded="true"] .menu-l { transform: translateY(0) rotate(45deg); }
  .menu[aria-expanded="true"] .menu-l::before { transform: translateY(-6px) rotate(-90deg); }
  .nav-list { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--midnight); padding: 12px var(--gutter) 28px; font-size: 1.375rem; border-top: 1px solid rgba(255, 255, 255, .08); display: none; }
  .nav-list.is-open { display: flex; }
  .nav-list li > a:not(.btn), .nav-ar { display: block; padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-ar .nav-soon { position: static; transform: none; opacity: 1; display: inline; background: none; color: var(--mist); padding: 0 0 0 12px; font-size: .9375rem; }
  .nav-cta { margin-top: 22px; }
  .nav-cta .btn { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  .top.menu-open { background: var(--midnight); }

  .hero-h { font-stretch: 104%; letter-spacing: -.03em; }
  .hero-img { object-position: 72% 40%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(13, 19, 48, .92) 0%, rgba(13, 19, 48, .7) 45%, rgba(13, 19, 48, .2) 80%); }
  .hero .actions .btn, .ebill-in .btn, .page-hero .actions .btn { width: 100%; }
  .chapter-in, .svc-in, .zatca-in { grid-template-columns: 1fr; }
  .chapter-fig { order: -1; justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; max-height: none; }
  .svc-head { position: static; }
  .step-list, .does-grid, .principle-grid { grid-template-columns: 1fr; }
  .sector-n { white-space: normal; font-variation-settings: "wdth" 100; }
  .sector:nth-child(n) { padding-left: 0; }
  .ebill-in { grid-template-columns: 1fr; align-items: start; }
  .hero { min-height: max(600px, 88svh); }
  .page-hero-media::after { background: linear-gradient(0deg, rgba(13, 19, 48, .94) 0%, rgba(13, 19, 48, .72) 50%, rgba(13, 19, 48, .25) 85%); }
  .foot-in { grid-template-columns: 1fr; gap: 32px; padding-block: 64px 48px; }
}
@media (max-width: 420px) {
  .hero-h { font-size: 2.375rem; }
  .ebill-h { font-size: 4.25rem; }
  .mark { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* SplitText line masks: room for descenders (y, g, p) without changing the layout */
[data-intro] > *, [data-lines] > *, .chapter-h > * { padding-bottom: .14em; margin-bottom: -.14em; }

/* Practice photographs are toned into their practice colour: luminosity of the photo, hue of the practice. */
.chapter-fig, .svc-fig { background: var(--tone, var(--bg)); isolation: isolate; }
.chapter-img, .svc-img { mix-blend-mode: luminosity; filter: contrast(1.12) brightness(1.04); }
.t-cobalt { --tone: #3550E6; }
.t-lagoon { --tone: #0E7D6F; }
.t-sky { --tone: #5FA9E8; }
.t-amethyst { --tone: #6A45C2; }

/* ---------- e-bill scroll hero: a receipt printer prints the sample invoice, which lifts off and floats over the page */
.eb-hero { align-items: stretch; background: var(--midnight); }
.eb-hero::before { content: ""; position: absolute; inset: auto 0 0; height: 20%; background: linear-gradient(180deg, #161D44 0, var(--midnight) 100%); border-top: 1px solid rgba(255, 255, 255, .06); }
.eb-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-block: 150px 0; min-height: inherit; }
.eb-copy { padding-bottom: clamp(56px, 8vw, 96px); }
.printer { --pw: min(460px, 36vw, calc((100svh - 132px) / 1.72)); width: var(--pw); justify-self: center; margin-bottom: max(20px, 4svh); }
.printer-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* the invoice: real text and a real QR, at receipt proportions; every size in em of the paper width */
.inv-fig { --iw: clamp(270px, 22vw, 330px); }
.inv-slot { position: relative; width: var(--iw); }
.inv-layer { position: relative; }
.inv { position: relative; width: var(--iw); transform-origin: 50% 50%; }
.inv-shadow { position: absolute; left: 0; top: 0; width: var(--iw); height: 100%; border-radius: 4px; background: rgba(13, 19, 48, .5); filter: blur(18px); transform: translate(10px, 18px) scale(.97); opacity: .55; }
.inv-paper {
  --ink: #17181C; position: relative; font: 400 calc(var(--iw) / 24)/1.5 "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; color: var(--ink);
  background: #F7F6F1; padding: 2.4em 1.5em 2.2em; overflow: clip; font-variant-numeric: tabular-nums; letter-spacing: 0;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x;
}
.inv-paper [lang="ar"] { font-family: inherit; }
.inv-head { text-align: center; }
.inv-merch { font-size: 1.75em; font-weight: 500; line-height: 1.3; }
.inv-c { text-align: center; }
.inv-s { font-size: .86em; }
.inv-rule { height: 0; border-top: .11em solid var(--ink); margin: .75em 0; }
.inv-title { text-align: center; font-size: 1.25em; font-weight: 500; line-height: 1.4; }
.inv-sample { width: fit-content; margin: .6em auto .8em; padding: .1em .7em; border: .09em solid #8A8D99; border-radius: .3em; font-size: .78em; color: #4A4D58; }
.inv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; line-height: 1.75; }
.inv-row > span:last-child { direction: rtl; text-align: right; }
.inv-row .inv-l { font-size: 1.16em; }
.inv-item { font-size: 1.12em; line-height: 1.6; margin-top: .3em; }
.inv-en { text-align: right; font-size: .86em; }
.inv-s2 { font-size: .95em; }
.inv-total { margin: .4em 0 .2em; }
.inv-sum { text-align: center; font-size: 2.15em; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.inv-qrbox { width: 48%; margin: .7em auto .8em; }
.inv-qr { display: block; width: 100%; height: auto; }
.inv-foot { display: flex; align-items: center; justify-content: center; gap: .5em; margin-top: 1.1em; padding-top: .8em; border-top: .09em dashed #8A8D99; font-size: .8em; color: #3B3E48; }
.inv-foot svg { width: auto; height: .74em; color: var(--ink); }
.inv-hi { position: absolute; left: .7em; right: .7em; top: 0; height: 0; border-radius: .45em; border: .14em solid var(--saffron); background: rgba(255, 177, 61, .1); opacity: 0; pointer-events: none; }
.inv-hi i { position: absolute; right: -.14em; top: 50%; width: 1px; height: 1px; }
.inv-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, 0) 60%, rgba(13, 19, 48, .07) 85%); }

.inv-notes-wrap { margin-top: 28px; max-width: 26em; }
.inv-cap { font-size: 1rem; color: var(--slate); }
.inv-notes { margin-top: 12px; display: grid; gap: 10px; font-size: 1.0625rem; line-height: 1.4; }
.inv-notes li { display: flex; gap: 12px; align-items: baseline; }
.inv-notes li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--saffron); transform: translateY(-2px) rotate(45deg); }

/* live (JS + motion): the invoice leaves the flow and is drawn in a fixed layer above the page until it lands */
.eb-live .inv-slot { height: var(--ih, auto); }
.eb-live .inv-layer { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.eb-live .inv-layer.is-rest { position: absolute; z-index: auto; }
.eb-live .inv-clip { position: absolute; left: 0; top: 0; width: 100%; }
.eb-live .inv-clip.is-printing { top: -6000px; height: 6000px; overflow: hidden; }
.eb-live .inv, .eb-live .inv-shadow { position: absolute; left: 0; top: 0; }
.eb-live .inv-shadow { opacity: 0; }
.eb-live .inv-notes-wrap { opacity: 0; }
.eb-live .is-moving { will-change: transform; }
.inv-heat { position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; opacity: 0; background: linear-gradient(90deg, rgba(255, 194, 102, 0), rgba(255, 214, 150, .9) 20%, #FFF4DE 50%, rgba(255, 214, 150, .9) 80%, rgba(255, 194, 102, 0)); box-shadow: 0 0 10px 1px rgba(255, 177, 61, .45); }
.motion .printer-tail { opacity: 0; }
.inv-tag { position: fixed; left: 0; top: 0; z-index: 31; pointer-events: none; max-width: 15em; padding: 10px 14px; border-radius: 8px; background: var(--midnight); color: var(--white); font: 500 1rem/1.35 var(--font); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(13, 19, 48, .28); opacity: 0; }
.inv-lead { position: fixed; left: 0; top: 0; z-index: 31; width: 100px; height: 1.5px; background: var(--saffron); transform-origin: 0 50%; pointer-events: none; opacity: 0; }
.inv-dot { position: fixed; left: -5px; top: -5px; z-index: 31; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 177, 61, .25); pointer-events: none; opacity: 0; }

@media (min-width: 900px) {
  .p-e-bill .does-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "h fig" "grid fig"; column-gap: clamp(36px, 5vw, 96px); align-items: start; }
  .does-h { grid-area: h; }
  .p-e-bill .does-grid { grid-area: grid; margin-top: clamp(44px, 5vw, 72px); }
  .inv-fig { grid-area: fig; justify-self: end; }
  .eb-live .inv-fig { margin-top: 56svh; }
}
@media (min-width: 1100px) {
  .inv-fig { display: grid; grid-template-columns: var(--iw) minmax(200px, 15em); column-gap: 48px; align-items: center; }
  .inv-notes-wrap { margin-top: 0; }
}
@media (max-width: 899px) {
  .eb-hero-in { grid-template-columns: 1fr; align-content: start; padding-top: 110px; }
  .eb-copy { padding-bottom: 0; }
  .printer { --pw: min(88vw, calc((100svh - 132px) / 1.72)); position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
  .inv-fig { --iw: min(76vw, 330px); margin-top: 40px; }
  .inv-slot { margin-inline: auto; }
  .eb-live .inv-fig { margin-top: 30svh; }
  .inv-tag { max-width: min(80vw, 300px); font-size: .9375rem; text-align: center; }
}

/* ---------- e-bill, Designed for: three acts on one navy field. Every act's resting state is its final frame. */
.fit { background: var(--midnight); color: var(--white); }
.fit-head { padding-top: clamp(110px, 13vw, 180px); }
.act-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: center; padding-block: clamp(72px, 9vw, 130px); }
.act + .act .act-in, .fit + .zatca .zatca-in { background: linear-gradient(var(--rule-dark), var(--rule-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.act:last-child .act-in { padding-bottom: clamp(110px, 13vw, 180px); }
.fit + .zatca { padding-top: 0; }
.fit + .zatca .zatca-in { padding-top: clamp(110px, 13vw, 180px); }
.act-k { font-size: 1.0625rem; font-weight: 600; color: var(--mist); }
.act-h { margin-top: 14px; font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.028em; line-height: 1.02; text-wrap: balance; }
.act-p { margin-top: 20px; max-width: 24em; color: #DCE1EF; }
.act-note { margin-top: 12px; font-size: .9375rem; color: var(--mist); }
.act-fig { justify-self: stretch; }
/* tabular figures in Mona Sans's own (proportional) digits: site.js sets each figure in a cell one zero wide */
.fig { display: inline-block; width: var(--fig, .6em); text-align: center; }

/* Act 1, manpower: a timesheet fills in, its rows become the lines of an A4 tax invoice, and the month's invoices fan out */
.act-mp .act-in { min-height: 100svh; padding-block: 104px 56px; }
.mp-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-dark); max-width: 26em; }
.mp-n { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; }
.mp-sum { margin-left: auto; font-size: 1.25rem; font-weight: 500; }
.mp-stage { --sw: min(360px, 30vw, calc((100svh - 240px) / 1.4142)); --fan: 1; position: relative; width: var(--sw); aspect-ratio: 1 / 1.4142; perspective: 1500px; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--fan) * 6deg)) rotateY(calc(var(--fan) * -16deg)); }
.sheet { --k: 0; position: absolute; inset: 0; border-radius: 2px; background: #F7F6F1; transform-origin: 0 100%; box-shadow: 0 1px 1px rgba(5, 8, 25, .2), 0 22px 48px -12px rgba(5, 8, 25, .55);
  transform: translate3d(calc(var(--fan) * var(--k) * 4px), 0, calc(var(--fan) * var(--k) * -14px)) rotate(calc(var(--fan) * var(--k) * 2.6deg)); }
.sheet-g:nth-child(1) { --k: 4; background: #E4E2DA; }
.sheet-g:nth-child(2) { --k: 3; background: #EAE8E1; }
.sheet-g:nth-child(3) { --k: 2; background: #EFEDE7; }
.sheet-g:nth-child(4) { --k: 1; background: #F3F2EC; }

/* the A4 sheet: e-bill's bilingual tax-invoice layout, every size in em of the sheet width */
.a4 { --ink: #17181C; --mute: #62656F; padding: 7% 7.5%; font: 400 calc(var(--sw) / 47)/1.45 "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; overflow: clip; }
.a4 [lang="ar"] { font-family: inherit; }
.a4 em { display: block; font-style: normal; font-size: .82em; color: var(--mute); }
.a4-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: .9em; border-bottom: .14em solid var(--ink); }
.a4-top > div { display: grid; }
.a4-top b { font-size: 1.85em; font-weight: 500; line-height: 1.2; }
.a4-top span { margin-top: .2em; font-size: .92em; }
.a4-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; margin-top: 1.3em; }
.a4-parties > div { display: grid; align-content: start; gap: .1em; padding-top: .55em; border-top: .07em solid rgba(23, 24, 28, .22); }
.a4-parties [dir="rtl"] { text-align: left; }
.a4-meta { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1em; margin: 1.4em 0 1.2em; padding: .75em .9em; background: #ECEAE2; border-radius: .3em; }
.a4-meta span { font-weight: 500; }
.a4-tr { display: grid; grid-template-columns: 1.2em minmax(0, 1fr) 2.6em 4em 5em; gap: .7em; padding: .5em .4em; border-bottom: .07em solid rgba(23, 24, 28, .14); }
.a4-tr > span:nth-child(n+3) { text-align: right; }
.a4-th { background: #E2E0D8; border-bottom: 0; font-size: .86em; font-weight: 600; }
.a4-sums { display: grid; gap: .3em; width: 58%; margin: 1.2em 0 0 auto; }
.a4-sums > div { display: flex; justify-content: space-between; gap: 1em; padding-inline: .4em; }
.a4-sums .a4-total { margin-top: .3em; padding-top: .5em; border-top: .14em solid var(--ink); font-size: 1.12em; font-weight: 600; }
.a4-foot { position: absolute; left: 7.5%; right: 7.5%; bottom: 5%; display: flex; justify-content: space-between; padding-top: .6em; border-top: .07em dashed rgba(23, 24, 28, .4); font-size: .82em; color: var(--mute); }

/* the timesheet: shown only while the act runs */
.ts { display: none; position: absolute; left: 0; width: min(540px, 40vw); top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--mist); }
.mp-live .ts { display: block; }
.ts-cap { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--rule-dark); font-weight: 500; }
.ts-row { display: grid; grid-template-columns: 4.6rem repeat(30, minmax(0, 1fr)) 2rem; column-gap: 2px; align-items: center; transform-origin: 0 0; }
.ts-row + .ts-row { margin-top: 8px; }
.ts-row > span { white-space: nowrap; }
.ts-row i { aspect-ratio: 1; border-radius: 1.5px; box-shadow: inset 0 0 0 1px rgba(242, 244, 248, .16); }
.ts-row i.on.w { background: var(--sky); box-shadow: none; }
.ts-row i.on.o { background: rgba(242, 244, 248, .06); }
.ts-row b { text-align: right; font-weight: 500; color: var(--white); }
.ts-days i { aspect-ratio: auto; box-shadow: none; display: flex; justify-content: center; font-style: normal; white-space: nowrap; font-size: .625rem; }
.ts-days i:last-of-type { justify-content: flex-end; }
.ts-days b { font-size: .625rem; font-weight: 500; color: var(--mist); }

/* Act 2, grocery: one line of type, the scale and its price */
.scale { display: flex; align-items: baseline; gap: .5em; font-size: clamp(2.5rem, 5.6vw, 5.25rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.scale-kg { padding-right: .5em; border-right: 1px solid var(--rule-dark); }
.scale .u { font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--mist); }

/* Act 3, car wash: a sample plate glides along a hairline through three stops */
.queue { --pw: 9.5rem; position: relative; padding-top: calc(var(--pw) * .46 + 28px); }
.plate { position: absolute; top: 0; left: calc(100% - var(--pw)); width: var(--pw); height: calc(var(--pw) * .46); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; align-items: center; justify-items: center;
  background: #F7F6F1; color: var(--midnight); border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--midnight), 0 0 0 1px rgba(242, 244, 248, .5), 0 14px 30px -10px rgba(5, 8, 25, .6);
  background-image: linear-gradient(var(--midnight), var(--midnight)), linear-gradient(var(--midnight), var(--midnight)); background-size: 1px 70%, 88% 1px; background-position: 50% 50%; background-repeat: no-repeat;
  font: 600 1.0625rem/1 var(--font); font-stretch: 100%; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.plate [lang="ar"] { font-size: 1.0625rem; letter-spacing: .02em; line-height: 1; }
.track { position: relative; display: flex; justify-content: space-between; padding-inline: calc(var(--pw) / 2); }
.track::before { content: ""; position: absolute; left: calc(var(--pw) / 2); right: calc(var(--pw) / 2); top: 4px; height: 1px; background: var(--rule-dark); }
.track li { position: relative; width: 0; padding-top: 24px; font-size: .9375rem; color: var(--white); }
.track li::before { content: ""; position: absolute; left: -4.5px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); }
.track li { display: flex; justify-content: center; white-space: nowrap; }
.cw-live .plate { left: 0; will-change: transform; }
.cw-live .track li { color: var(--mist); transition: color .3s var(--ease); }
.cw-live .track li::before { background: var(--midnight); box-shadow: inset 0 0 0 1px var(--mist); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.cw-live .track li.on { color: var(--white); }
.cw-live .track li.on::before { background: var(--saffron); box-shadow: none; }

/* ---------- home: blue hour to night. One fixed sky behind the page; the night layer's opacity follows the scroll. */
.p-index { --dusk: #1B2A60; }
.p-index .hero-media::after {
  background: linear-gradient(180deg, rgba(27, 42, 96, .55) 0, rgba(27, 42, 96, 0) 150px),
              linear-gradient(90deg, rgba(20, 31, 74, .84) 0%, rgba(24, 38, 90, .55) 38%, rgba(27, 42, 96, 0) 70%),
              linear-gradient(0deg, rgba(20, 31, 74, .7) 0%, rgba(27, 42, 96, 0) 45%);
}
.sky { display: none; position: fixed; inset: 0; z-index: -1; background: var(--dusk); pointer-events: none; }
.sky i { position: absolute; inset: 0; background: var(--midnight); opacity: 0; will-change: opacity; }
.sky-live .sky { display: block; }
.sky-live .ebill-band, .sky-live .foot { background: transparent; }

/* ---------- About us: a triangular opening in the Diriyah wall opens onto the Riyadh towers */
.tri { position: absolute; inset: 0; }
.tri-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.tri-live .tri { will-change: clip-path; }

@media (max-width: 899px) {
  .act-in { grid-template-columns: 1fr; gap: 36px; }
  .act-mp .act-in { align-content: center; gap: 28px; padding-block: 92px 32px; }
  .act-mp .act-h { font-size: 2rem; }
  .act-mp .act-p { margin-top: 12px; font-size: 1.0625rem; }
  .mp-count { margin-top: 18px; padding-top: 12px; }
  .mp-n { font-size: 2.25rem; }
  .mp-sum { flex-basis: 100%; margin-left: 0; font-size: 1.125rem; }
  .mp-stage { --sw: min(64vw, calc((100svh - 500px) / 1.4142)); justify-self: start; margin-left: 4px; }
  .ts { width: calc(100vw - 2 * var(--gutter)); font-size: .6875rem; }
  .ts-row { grid-template-columns: 3.9rem repeat(30, minmax(0, 1fr)) 1.4rem; column-gap: 1.5px; }
  .ts-row + .ts-row { margin-top: 6px; }
  .scale { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .queue { --pw: 8.25rem; }
  .plate, .plate [lang="ar"] { font-size: .9375rem; }
}
