/* © 2026 Exacmov Group. All rights reserved.
   Exacmov Group — Shared Aim identity (Brand Identity Guidelines v1.1)
   Palette: Warm Sand leads (~45%), Paper White (~20%), Executive Graphite (~25%),
   Signal Cobalt for structure and key figures (~7%), Partnership Coral for one cue per view (~3%).
   Type: Outfit for display and labels, Inter for slogans and body; IBM Plex Sans Arabic for the Arabic page. */
:root {
  --sand: #e9ddc7;
  --white: #ffffff;
  --graphite: #25282d;
  --cobalt: #2546db;
  --coral: #e56a4f;
  --text-muted: rgba(37, 40, 45, .76);
  --line: rgba(37, 40, 45, .16);
  --line-strong: rgba(37, 40, 45, .28);
  --on-dark-muted: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .16);
  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 96px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--sand); color: var(--graphite); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 6px; }
.section-shell { width: calc(100% - 120px); max-width: 1280px; margin: 0 auto; }
.section-space { padding-top: 120px; padding-bottom: 120px; }
.accent { color: var(--cobalt); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px; background: var(--graphite); color: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.tiny-square { height: 7px; width: 7px; background: var(--cobalt); flex-shrink: 0; }
.section-label { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .2em; display: flex; align-items: center; gap: 12px; }
.list-label { font-family: var(--display); font-size: 12px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.1; }
[data-parallax-x], [data-parallax-y] { will-change: transform; }

/* ---------- Header, progress, chapter rail ---------- */
.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 20; background: rgba(233, 221, 199, .95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { width: calc(100% - 120px); max-width: 1280px; margin: auto; height: 100%; display: flex; align-items: center; justify-content: flex-start; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 160px; height: auto; }
#navigation { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; margin-inline-start: auto; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: 24px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 50px; font-size: 14px; font-weight: 500; line-height: 1; transition: border-color .2s, color .2s; }
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--graphite); color: var(--cobalt); }
.lang-switch[lang="ar"], .footer-lang[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--body); font-size: 15px; }
.lang-switch[lang="en"], .footer-lang[lang="en"] { font-family: 'Inter', Arial, sans-serif; }
#navigation > a { position: relative; transition: color .2s; }
#navigation > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
#navigation > a.is-active:not(.nav-cta)::after { transform: scaleX(1); }
#navigation > a:not(.nav-cta):hover, #navigation > a.is-active:not(.nav-cta) { color: var(--cobalt); }
.nav-cta { border: 1px solid var(--graphite); border-radius: 50px; padding: 12px 20px; display: flex; gap: 24px; align-items: center; margin-left: 10px; font-weight: 600; transition: background .2s, color .2s; }
.nav-cta span { font-size: 19px; line-height: 1; }
#navigation > .nav-cta:hover, #navigation > .nav-cta.is-active { background: var(--graphite); color: var(--white); }
.menu-toggle { display: none; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; display: none; }
.scroll-progress span { display: block; height: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: 0 50%; }
html.scrolly .scroll-progress { display: block; }
.chapter-rail { display: none; }

/* ---------- Buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding: 16px 26px; border: 1px solid transparent; border-radius: 50px; font-size: 15px; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .2s; min-height: 54px; }
.button span { font-size: 20px; line-height: 1; }
.button-dark { background: var(--graphite); color: var(--white); }
.button-dark:hover { background: var(--cobalt); transform: translateY(-2px); }
.button-outline { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.button-outline:hover { background: var(--graphite); color: var(--white); transform: translateY(-2px); }
.button-light { background: var(--sand); color: var(--graphite); }
.button-light:hover { background: var(--white); transform: translateY(-2px); }
.text-link { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 20px; line-height: 1.8; }
.text-link:hover { color: var(--cobalt); }

/* ---------- Manim frame sequences (transparent: each section supplies its ground) ---------- */
.sequence { position: relative; overflow: hidden; background: transparent; }
.sequence img, .sequence canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.sequence canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
html.scrolly .sequence.is-live canvas { opacity: 1; }
html.scrolly .sequence img { opacity: 0; transition: opacity .35s ease; }
html.scrolly .sequence.is-fallback img { opacity: 1; }
.sequence-portrait { aspect-ratio: 4 / 5; }
.sequence-landscape { aspect-ratio: 4 / 3; }

/* ---------- Chapter numerals (parallax layer) ---------- */
.chapter { position: relative; }
.numeral-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.chapter-numeral { position: absolute; top: 56px; right: 3vw; font-family: var(--display); font-weight: 800; font-size: clamp(170px, 24vw, 400px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(37, 40, 45, .1); user-select: none; }
.chapter > .section-shell { position: relative; z-index: 1; }

/* ---------- 00 Hero (Warm Sand) ---------- */
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 50px; padding-top: 56px; align-items: start; }
.slogan-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.master-slogan { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: .06em; line-height: 1.35; }
.coral-rule { display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--coral); }
.supporting-line { font-family: var(--body); font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); }
h1 { font-size: clamp(54px, 5.6vw, 80px); line-height: 1.04; margin-top: 30px; }
.hero-description { max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 24px; }
.hero-copy > .button { margin-top: 30px; }
.hero-explore { margin: 20px 0 0; display: flex; width: fit-content; }
.hero-explore span { font-size: 17px; }
.hero-visual { width: 100%; max-width: 500px; justify-self: end; }
.hero-beats { margin-top: 16px; }
.hero-beats ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-beats li { position: relative; padding-top: 13px; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--graphite); transition: color .35s ease; }
.hero-beats li::before, .hero-beats li::after { content: ''; position: absolute; top: 0; left: 0; height: 1px; }
.hero-beats li::before { right: 0; background: var(--line-strong); }
.hero-beats li::after { width: 100%; height: 2px; top: -.5px; background: var(--cobalt); transform: scaleX(var(--fill, 1)); transform-origin: 0 50%; }
.hero-beats li span { display: block; margin-bottom: 3px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--cobalt); }
html.scrolly .hero-beats li { color: var(--text-muted); }
html.scrolly .hero-beats li::after { transform: scaleX(var(--fill, 0)); }
html.scrolly .hero-beats li.is-active { color: var(--graphite); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px 0 24px; margin-top: 40px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.scroll-cue { display: flex; align-items: center; gap: 16px; font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.scroll-cue:hover { color: var(--cobalt); }
.cue-line { position: relative; width: 1px; height: 26px; background: var(--line-strong); overflow: hidden; }
.cue-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cobalt); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- 01 The group (Warm Sand) ---------- */
.about { border-top: 1px solid var(--line); overflow: hidden; }
.about-head { position: relative; }
.statement { font-size: clamp(44px, 6vw, 84px); line-height: 1.05; margin-top: 34px; }
.statement-line { display: block; width: fit-content; }
.statement-line:nth-child(2) { margin-left: 12%; }
.statement-line:nth-child(3) { margin-left: 24%; }
.stacked-slogan { position: absolute; right: 0; top: 2px; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--body); font-size: 13px; font-weight: 400; letter-spacing: .3em; line-height: 2; text-align: right; }
.stacked-slogan span { display: block; margin-right: -.3em; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; margin-top: 84px; align-items: center; }
.about-text > p { max-width: 480px; line-height: 1.6; font-size: 17px; color: var(--text-muted); }
.about-text > p + p { margin-top: 18px; }
.about-note { margin-top: 30px; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.45; max-width: 300px; }
.note-rule { display: block; height: 2px; background: var(--cobalt); width: 28px; margin-bottom: 12px; }
.values { margin-top: 110px; }
.values-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.value { padding: 34px 28px 6px; border-left: 1px solid var(--line); }
.value:first-child { border-left: 0; padding-left: 0; }
.value img { width: 52px; height: 52px; }
.value h3 { font-size: 22px; line-height: 1.2; margin-top: 26px; }
.value p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-top: 10px; max-width: 260px; }

/* ---------- 02 Expertise (Paper White) ---------- */
.expertise { background: var(--white); }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; }
.section-top h2 { margin-top: 24px; }
.section-intro { font-size: 16px; color: var(--text-muted); line-height: 1.6; padding-bottom: 5px; max-width: 380px; }
.service-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: var(--header-h); }
.service-panel:last-child { border-bottom: 1px solid var(--line-strong); }
.service-panel:nth-child(even) .service-visual-col { order: 2; }
.service-visual-col { align-self: stretch; }
.service-visual .sequence { border: 1px solid var(--line); }
.service-meter { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.meter-count { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--cobalt); white-space: nowrap; }
.meter-bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.meter-bar span { position: absolute; left: 0; top: -.5px; width: 100%; height: 2px; background: var(--cobalt); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
html.scrolly .meter-bar span { transform: scaleX(var(--p, 0)); }
.service-step + .service-step { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.service-category { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--text-muted); }
.service-number { font-size: 14px; letter-spacing: .1em; color: var(--cobalt); }
.service-panel h3 { font-size: clamp(32px, 3vw, 44px); line-height: 1.1; margin-top: 20px; }
.service-description { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 20px; max-width: 540px; }
.offer-list { margin: 0; display: grid; gap: 20px; max-width: 540px; }
.offer-list dt { font-family: var(--display); font-size: 19px; font-weight: 600; }
.offer-list dd { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.outcome-list li { display: flex; gap: 14px; font-size: 17px; line-height: 1.45; }
.outcome-list li::before { content: ''; width: 14px; height: 2px; margin-top: 12px; background: var(--cobalt); flex-shrink: 0; }
.service-enquire { margin-top: 34px; }

/* ---------- 03 Why Exacmov (Warm Sand) ---------- */
.why { overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 60px; }
.why-card { background: var(--white); border: 1px solid var(--line); padding: 30px 28px 34px; min-height: 290px; display: flex; flex-direction: column; }
.why-no { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.4px var(--cobalt); }
.why-card h3 { font-size: 22px; line-height: 1.25; margin-top: auto; padding-top: 48px; }
.why-card p { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-top: 12px; }

/* ---------- 04 Approach (Executive Graphite) ---------- */
.approach { background: var(--graphite); color: var(--white); }
.approach-stage { position: relative; padding: 120px 0; }
.approach .chapter-numeral { -webkit-text-stroke-color: rgba(255, 255, 255, .07); top: 40px; }
.approach-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "head visual" "track visual"; column-gap: 64px; align-items: start; }
.approach-head { grid-area: head; }
.approach-head h2 { margin-top: 24px; }
.approach-head .section-intro { margin-top: 20px; color: var(--on-dark-muted); }
.approach-visual { grid-area: visual; align-self: center; }
.approach-visual .sequence { border: 1px solid var(--on-dark-line); }
.approach-track { grid-area: track; margin-top: 40px; }
.approach-steps { list-style: none; margin: 0; padding: 0; }
.approach-step { border-top: 1px solid var(--on-dark-line); padding: 20px 0; transition: opacity .4s ease; }
.approach-step:last-child { border-bottom: 1px solid var(--on-dark-line); }
.step-no { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--sand); }
.approach-step h3 { font-size: 22px; margin-top: 8px; line-height: 1.25; }
.step-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s ease; }
.step-body > div { overflow: hidden; }
.step-body p { font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); padding-top: 10px; max-width: 460px; }
.step-dots { display: none; }
.approach-footer { position: relative; z-index: 1; border-top: 1px solid var(--on-dark-line); margin-top: 64px; padding-top: 24px; display: flex; gap: 45px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--on-dark-muted); }
.approach-footer > span:last-child { margin-left: auto; display: flex; gap: 30px; color: var(--white); }
.approach-footer > span:last-child > span { font-size: 19px; line-height: 1; letter-spacing: 0; color: var(--coral); }

/* ---------- 05 Questions (Paper White) ---------- */
.faq { background: var(--white); overflow: hidden; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; align-items: start; }
.faq-intro h2 { margin-top: 24px; }
.faq-intro .section-intro { margin-top: 22px; }
.faq-item { border-top: 1px solid var(--line-strong); background: var(--white); }
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 21px; line-height: 1.35; }
.faq-item p { font-size: 16px; line-height: 1.6; color: var(--text-muted); padding: 0 70px 28px 0; max-width: 700px; }
.expand-icon { display: block; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; flex-shrink: 0; transition: background .2s, border-color .2s; }
.expand-icon::before, .expand-icon::after { content: ''; position: absolute; top: 19px; left: 13px; width: 13px; height: 1px; background: var(--graphite); }
.expand-icon::after { transform: rotate(90deg); transition: transform .2s; }
details[open] .expand-icon::after { transform: rotate(0); }
summary:hover .expand-icon { background: var(--cobalt); border-color: var(--cobalt); }
summary:hover .expand-icon::before, summary:hover .expand-icon::after { background: var(--white); }

/* ---------- 06 Contact (Executive Graphite + Shared Aim supergraphic) ---------- */
.contact { background: var(--graphite); color: var(--white); overflow: hidden; }
.supergraphic-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.supergraphic { position: absolute; width: min(40vw, 520px); height: auto; right: calc(min(40vw, 520px) * -.4); top: 50%; margin-top: calc(min(40vw, 520px) * -.5); }
.contact .section-shell > * { max-width: 760px; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 32px; }
.contact h2 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.06; }
.contact .accent { color: var(--coral); }
.forward-word { display: inline-block; }
.contact-copy > p:not(.contact-note) { font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); max-width: 460px; }
.contact-copy > p + p { margin-top: 10px; }
.contact-copy > .button { margin-top: 28px; }
.contact-note { color: var(--on-dark-muted); font-size: 13px; line-height: 1.6; margin-top: 14px; }

/* ---------- Footer (Executive Graphite) ---------- */
.footer { background: var(--graphite); color: var(--white); border-top: 1px solid var(--on-dark-line); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 56px 0 46px; align-items: start; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 260px; height: auto; }
.footer-nav { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.footer-nav .list-label { color: var(--on-dark-muted); }
.footer-nav a { display: block; width: fit-content; font-size: 15px; line-height: 2.1; }
.footer-nav a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid var(--on-dark-line); display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 0 28px; color: var(--on-dark-muted); font-size: 13px; }
.footer-domains { font-size: 12px; letter-spacing: .3em; }
.back-top { font-size: 14px; color: var(--white); display: flex; gap: 22px; align-items: center; }
.back-top:hover { color: var(--sand); }
.footer-lang { color: var(--white); font-size: 14px; border-bottom: 1px solid var(--on-dark-line); padding-bottom: 2px; }
.footer-lang:hover { color: var(--sand); border-color: var(--sand); }

/* ---------- Reveal ---------- */
html.scrolly .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.scrolly .reveal.visible { opacity: 1; transform: none; }

/* ---------- Inquiry dialog ---------- */
dialog { width: min(600px, calc(100% - 32px)); border: 0; padding: 0; background: var(--white); color: var(--graphite); max-height: calc(100dvh - 40px); border-radius: 4px; }
dialog::backdrop { background: rgba(37, 40, 45, .72); backdrop-filter: blur(5px); }
.dialog-inner { padding: 40px; position: relative; }
.dialog-close { position: absolute; right: 20px; top: 14px; background: none; border: 0; color: var(--graphite); font-size: 29px; line-height: 1; padding: 5px 10px; }
.dialog-inner h2 { font-size: 32px; margin-top: 20px; }
.dialog-description { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 16px; }
form { margin-top: 25px; display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, textarea, select { width: 100%; background: transparent; border: 1px solid var(--line-strong); padding: 12px; font-size: 15px; font-weight: 400; color: var(--graphite); border-radius: 3px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: rgba(37, 40, 45, .55); }
.form-submit { width: 100%; margin-top: 3px; }
.form-status { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.form-status:empty { display: none; }

/* =========================================================
   Scrollytelling stages (only with JS + motion allowed)
   ========================================================= */

/* Desktop / large tablet: pinned hero, sticky service visuals, pinned approach */
@media (min-width: 900px) and (min-height: 600px) {
  html.scrolly .hero { height: 260vh; height: 260svh; }
  html.scrolly .hero-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; }
  html.scrolly .hero-inner { flex: 1; min-height: 0; align-items: center; padding-top: 0; }
  html.scrolly h1 { font-size: clamp(44px, min(5.6vw, 7.8svh), 80px); margin-top: 26px; }
  html.scrolly .hero-visual { width: min(100%, calc((100svh - var(--header-h) - 210px) * .8)); min-width: 300px; }
  html.scrolly .hero-bottom { margin-top: 0; }

  html.scrolly .service-panel { padding: 30px 0; }
  html.scrolly .service-visual { position: sticky; top: calc(var(--header-h) + max(32px, (100svh - var(--header-h) - 520px) / 2)); }
  html.scrolly .service-step { min-height: 56vh; min-height: 56svh; display: flex; flex-direction: column; justify-content: center; opacity: .24; transition: opacity .45s ease; }
  html.scrolly .service-step.is-active { opacity: 1; }
  html.scrolly .service-step + .service-step { margin-top: 0; padding-top: 0; border-top: 0; }

  html.scrolly .approach { height: 360vh; height: 360svh; }
  html.scrolly .approach-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  html.scrolly .approach-track { margin-top: 30px; }
  html.scrolly .approach-step { opacity: .36; padding: 16px 0; }
  html.scrolly .approach-step.is-active { opacity: 1; }
  html.scrolly .approach-step:not(.is-active) .step-body { grid-template-rows: 0fr; }
  html.scrolly .approach-footer { margin-top: 36px; }
}

@media (min-width: 900px) and (min-height: 600px) and (max-height: 820px) {
  html.scrolly .hero-description { font-size: 16px; margin-top: 18px; }
  html.scrolly .hero-copy > .button { margin-top: 22px; }
  html.scrolly .hero-explore { display: none; }
  html.scrolly .approach-head .section-intro { display: none; }
  html.scrolly .approach-head h2 { font-size: 40px; }
  html.scrolly .approach-footer { display: none; }
}

/* Phones / small tablets with enough height: pinned approach with one step at a time */
@media (max-width: 899px) and (min-height: 640px) {
  html.scrolly .approach { height: 330vh; height: 330svh; }
  html.scrolly .approach-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding: 22px 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  html.scrolly .approach-head .section-intro, html.scrolly .approach-footer { display: none; }
  html.scrolly .approach-head h2 { font-size: 32px; margin-top: 16px; }
  html.scrolly .approach-inner { row-gap: 20px; }
  html.scrolly .approach-track { margin-top: 0; }
  html.scrolly .approach-steps { display: grid; }
  html.scrolly .approach-step { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
  html.scrolly .approach-step:last-child { border: 0; }
  html.scrolly .approach-step.is-active { opacity: 1; transform: none; }
  html.scrolly .step-dots { display: flex; gap: 8px; margin-top: 20px; }
  html.scrolly .step-dots span { width: 22px; height: 2px; background: var(--on-dark-line); transition: background .3s, width .3s; }
  html.scrolly .step-dots span.is-active { background: var(--sand); width: 36px; }
}

/* Chapter rail: only where the side margin can hold it (shell max 1280px + 2 x 80px) */
@media (min-width: 1440px) {
  html.scrolly .chapter-rail { display: flex; position: fixed; z-index: 15; right: 16px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: 13px; mix-blend-mode: difference; }
  .chapter-rail a { position: relative; display: flex; align-items: center; gap: 7px; height: 12px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .1em; color: #8f8f8f; }
  .chapter-rail a::after { content: ''; width: 10px; height: 1px; background: currentColor; transition: width .35s ease; }
  .chapter-rail a > span { opacity: 0; transition: opacity .25s; }
  .chapter-rail a em { position: absolute; right: calc(100% + 10px); font-style: normal; letter-spacing: .1em; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
  .chapter-rail a:hover em, .chapter-rail a:focus-visible em { opacity: 1; transform: none; }
  .chapter-rail a.is-active { color: #f2f2f2; }
  .chapter-rail a.is-active > span, .chapter-rail a:hover > span, .chapter-rail a:focus-visible > span { opacity: 1; }
  .chapter-rail a.is-active::after { width: 22px; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .hero-inner { gap: 90px; }
}

@media (max-width: 1100px) {
  .section-shell, .header-inner { width: calc(100% - 72px); }
  #navigation { gap: 24px; }
  .hero-inner { gap: 30px; grid-template-columns: 1fr 1fr; }
  h1 { font-size: 60px; }
  .hero-description { font-size: 16px; }
  .about-grid { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; padding-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .service-panel { gap: 44px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-inner { column-gap: 40px; }
}

@media (max-width: 899px) {
  :root { --header-h: 80px; }
  .section-shell, .header-inner { width: calc(100% - 48px); }
  .brand img { width: 148px; }
  #navigation { gap: 18px; font-size: 13px; }
  .nav-cta { padding: 10px 16px; margin-left: 0; gap: 14px; }
  .section-space { padding-top: 88px; padding-bottom: 88px; }
  .hero-inner { padding-top: 40px; }
  .stacked-slogan { position: static; align-items: flex-start; text-align: left; margin-top: 30px; font-size: 12px; line-height: 1.9; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .about-visual { max-width: 640px; }
  .values { margin-top: 80px; }
  .section-top { gap: 30px; margin-bottom: 40px; }
  .service-panel { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; }
  .service-panel:nth-child(even) .service-visual-col { order: 0; }
  .service-visual { max-width: 640px; }
  .approach-stage { padding: 88px 0; }
  .approach-inner { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "track"; row-gap: 32px; }
  .approach-visual { max-width: 640px; }
  .approach-track { margin-top: 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact.section-space { padding-bottom: calc(60vw + 120px); }
  .supergraphic { width: 60vw; right: -26vw; top: auto; bottom: 56px; margin-top: 0; }
  .contact .section-shell > * { max-width: none; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  /* Collapsed navigation: header holds brand, language switch and menu toggle. */
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); width: 42px; height: 42px; padding: 11px; background: none; border-radius: 50%; z-index: 22; }
  .menu-toggle span { width: 18px; height: 1.5px; background: var(--graphite); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  #navigation { display: none; position: absolute; top: calc(var(--header-h) - 1px); left: 0; width: 100%; background: var(--sand); padding: 22px 20px 28px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 25px rgba(37, 40, 45, .08); flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  #navigation.open { display: flex; }
  #navigation > a:not(.nav-cta) { padding: 15px 0; }
  #navigation > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 15px; justify-content: space-between; padding: 14px 20px; }
  .header-tools { margin-inline-start: auto; gap: 10px; }
  .lang-switch { min-height: 42px; padding: 8px 14px; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  body { font-size: 15px; }
  .section-shell, .header-inner { width: calc(100% - 40px); }
  .brand img { width: 140px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 34px; gap: 34px; }
  .master-slogan { font-size: 15px; }
  .supporting-line { font-size: 11px; letter-spacing: .24em; }
  h1 { font-size: clamp(48px, 12.6vw, 76px); line-height: 1.04; margin-top: 26px; }
  .hero-description { font-size: 16px; max-width: 400px; margin-top: 22px; }
  .hero-copy > .button { margin-top: 26px; }
  .hero-explore { font-size: 14px; margin-top: 18px; }
  .hero-visual { max-width: none; justify-self: stretch; }
  .hero-beats ol { gap: 10px; }
  .hero-beats li { font-size: 12px; }
  .hero-bottom { margin-top: 26px; font-size: 10px; letter-spacing: .14em; padding: 20px 0; }
  .scroll-cue { font-size: 13px; }
  .section-space { padding-top: 72px; padding-bottom: 72px; }
  .section-label { font-size: 11px; letter-spacing: .18em; }
  h2 { font-size: 34px; }
  .chapter-numeral { top: 30px; font-size: 44vw; }
  .statement { font-size: clamp(38px, 11vw, 54px); margin-top: 26px; }
  .statement-line:nth-child(2) { margin-left: 6%; }
  .statement-line:nth-child(3) { margin-left: 12%; }
  .about-grid { margin-top: 42px; gap: 30px; }
  .about-text > p { font-size: 16px; }
  .about-note { display: flex; align-items: center; gap: 15px; max-width: none; margin-top: 26px; font-size: 15px; }
  .note-rule { width: 24px; margin-bottom: 0; flex-shrink: 0; }
  .values { margin-top: 64px; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(3) { border-left: 0; padding: 26px 0 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; align-items: start; }
  .value + .value { border-top: 1px solid var(--line); margin-top: 0; }
  .value img { grid-row: span 2; width: 44px; height: 44px; }
  .value h3 { margin-top: 0; font-size: 20px; }
  .value p { margin-top: 6px; max-width: none; }
  .section-top { display: block; margin-bottom: 30px; }
  .section-top h2 { margin-top: 22px; }
  .section-intro { font-size: 15px; margin-top: 20px; }
  .service-panel { padding: 36px 0 40px; gap: 26px; }
  .service-category { font-size: 10.5px; letter-spacing: .14em; gap: 11px; }
  .service-number { font-size: 13px; }
  .service-panel h3 { font-size: 30px; margin-top: 16px; }
  .service-panel h3 br { display: none; }
  .service-description { font-size: 16px; margin-top: 16px; }
  .offer-list dt { font-size: 18px; }
  .offer-list dd { font-size: 15px; }
  .outcome-list li { font-size: 16px; }
  .service-enquire { margin-top: 28px; }
  .why-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 20px; }
  .why-card { min-height: 0; padding: 24px 22px 26px; }
  .why-no { font-size: 44px; }
  .why-card h3 { padding-top: 26px; font-size: 20px; }
  .approach-stage { padding: 72px 0; }
  .approach-step h3 { font-size: 20px; }
  .approach-footer { flex-wrap: wrap; margin-top: 42px; gap: 16px; font-size: 10px; letter-spacing: .16em; }
  .approach-footer > span:last-child { margin-left: 0; width: 100%; justify-content: space-between; margin-top: 4px; }
  .faq-item summary { padding: 22px 0; gap: 16px; }
  .faq-item h3 { font-size: 18px; }
  .faq-item p { padding-right: 0; font-size: 15px; }
  .expand-icon { width: 36px; height: 36px; }
  .expand-icon::before, .expand-icon::after { top: 17px; left: 11px; }
  .contact-layout { margin-top: 26px; gap: 26px; }
  .contact h2 { font-size: clamp(40px, 11.4vw, 52px); }
  .contact-copy > p:not(.contact-note) { font-size: 16px; max-width: none; }
  .footer-main { padding: 40px 0 34px; }
  .footer-logo img { width: 220px; }
  .footer-nav { gap: 20px; }
  .footer-nav a { font-size: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
  .footer-domains { font-size: 11px; letter-spacing: .22em; }
  .dialog-inner { padding: 30px 22px; }
  .dialog-inner h2 { font-size: 28px; }
  .form-pair { grid-template-columns: 1fr; }
  dialog { max-height: calc(100dvh - 24px); }
}

@media (max-width: 360px) {
  h1 { font-size: 44px; }
  .service-category { font-size: 9.5px; }
  .service-panel h3 { font-size: 26px; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- Arabic page (right-to-left) ----------
   Grid and flex layouts mirror automatically under dir="rtl"; these rules mirror the remaining
   physical offsets, switch to IBM Plex Sans Arabic and remove tracking, which breaks Arabic joining. */
html[lang="ar"] { --display: 'IBM Plex Sans Arabic', 'Outfit', Tahoma, Arial, sans-serif; --body: 'IBM Plex Sans Arabic', 'Inter', Tahoma, Arial, sans-serif; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] body *, html[lang="ar"] body *::before, html[lang="ar"] body *::after { letter-spacing: 0 !important; }
html[lang="ar"] h1 { line-height: 1.22; }
html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.38; }
html[lang="ar"] .statement { line-height: 1.3; }
html[lang="ar"] .contact h2, html[lang="ar"] .service-panel h3 { line-height: 1.32; }
html[lang="ar"] .section-label, html[lang="ar"] .list-label, html[lang="ar"] .service-category, html[lang="ar"] .step-no, html[lang="ar"] .hero-bottom, html[lang="ar"] .approach-footer { font-size: 14px; font-weight: 600; }
html[lang="ar"] .master-slogan { font-size: 21px; }
html[lang="ar"] .supporting-line { font-size: 15px; font-weight: 500; }
html[lang="ar"] .stacked-slogan { font-size: 16px; font-weight: 500; line-height: 1.9; }
html[lang="ar"] .footer-domains { font-size: 14px; }
html[lang="ar"] .hero-beats li { font-size: 13px; }
html[lang="ar"] .chapter-numeral, html[lang="ar"] .why-no, html[lang="ar"] .service-number, html[lang="ar"] .meter-count, html[lang="ar"] .hero-beats li span, html[lang="ar"] .chapter-rail a > span { font-family: 'Outfit', var(--display); }
[dir="rtl"] .skip-link { left: auto; right: 10px; }
[dir="rtl"] #navigation > a:not(.nav-cta)::after, [dir="rtl"] .scroll-progress span, [dir="rtl"] .hero-beats li::after, [dir="rtl"] .meter-bar span { transform-origin: 100% 50%; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .chapter-numeral { right: auto; left: 3vw; }
[dir="rtl"] .statement-line:nth-child(2) { margin-left: 0; margin-right: 12%; }
[dir="rtl"] .statement-line:nth-child(3) { margin-left: 0; margin-right: 24%; }
[dir="rtl"] .stacked-slogan { right: auto; left: 0; align-items: flex-end; text-align: left; }
[dir="rtl"] .stacked-slogan span { margin-right: 0; }
[dir="rtl"] .value { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .value:first-child { border-right: 0; padding-right: 0; padding-left: 28px; }
[dir="rtl"] .approach-footer > span:last-child { margin-left: 0; margin-right: auto; }
[dir="rtl"] .faq-item p { padding-right: 0; padding-left: 70px; }
[dir="rtl"] .supergraphic { right: auto; left: calc(min(40vw, 520px) * -.4); }
[dir="rtl"] .dialog-close { right: auto; left: 20px; }
[dir="rtl"] input[type="email"] { text-align: right; }
@media (min-width: 1440px) {
  html.scrolly[dir="rtl"] .chapter-rail { right: auto; left: 16px; align-items: flex-start; }
  html.scrolly[dir="rtl"] .chapter-rail a em { right: auto; left: calc(100% + 10px); transform: translateX(-6px); }
}
@media (max-width: 1100px) {
  [dir="rtl"] .value:nth-child(3) { border-right: 0; padding-right: 0; padding-left: 28px; }
}
@media (max-width: 899px) {
  [dir="rtl"] .nav-cta { margin-right: 0; }
  [dir="rtl"] .stacked-slogan { align-items: flex-start; text-align: right; }
  [dir="rtl"] .supergraphic { right: auto; left: -26vw; }
}
@media (max-width: 640px) {
  [dir="rtl"] .statement-line:nth-child(2) { margin-right: 6%; }
  [dir="rtl"] .statement-line:nth-child(3) { margin-right: 12%; }
  [dir="rtl"] .value, [dir="rtl"] .value:first-child, [dir="rtl"] .value:nth-child(3) { border-right: 0; padding: 26px 0 22px; }
  [dir="rtl"] .approach-footer > span:last-child { margin-right: 0; }
  [dir="rtl"] .faq-item p { padding-left: 0; }
  [dir="rtl"] .footer-bottom { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
