/* ==========================================================================
   Silal Al-Hayat — Scientific Bureau for Pharmaceutical Promotion
   Design system. Colours, type and the helix motif come from the 2026
   brand identity (Frequency Lab).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand — exact values from the identity guide */
  --ink:            #02475d;
  --ink-deep:       #012b3a;
  --ink-darker:     #011d28;
  --vital:          #4fb392;
  --vital-deep:     #34886c;
  --neutral:        #999999;

  /* derived surfaces */
  --paper:          #f6f9f9;
  --paper-2:        #ecf2f3;
  --mist:           #dfeaec;
  --white:          #ffffff;

  /* text */
  --text:           #10333f;
  --text-muted:     #5a7079;
  --text-on-dark:   #eaf3f4;
  --text-on-dark-m: #a8c4cb;

  --line:           #dde7e9;
  --line-dark:      rgba(255, 255, 255, .16);

  /* the brand gradient: green leads, petrol closes */
  --grad: linear-gradient(90deg, var(--vital) 0%, var(--ink) 100%);
  --grad-soft: linear-gradient(90deg, #6ec4a7 0%, #0a5e78 100%);

  /* type */
  --font-en: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;

  --step-display: clamp(2.4rem, 1.3rem + 3.6vw, 4.1rem);
  --step-h1:      clamp(2.05rem, 1.2rem + 3.4vw, 3.5rem);
  --step-h2:      clamp(1.7rem, 1.15rem + 2.2vw, 2.6rem);
  --step-h3:      clamp(1.18rem, 1.02rem + .6vw, 1.45rem);
  --step-body:    clamp(1rem, .96rem + .16vw, 1.08rem);
  --step-sm:      .875rem;
  --step-xs:      .78rem;

  /* rhythm */
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --max: 1240px;
  --max-narrow: 820px;
  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;   --sp-7: 6rem;   --sp-8: 8rem;
  --section-y: clamp(4rem, 8vw, 8rem);

  --radius:   14px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(2, 71, 93, .06), 0 4px 14px rgba(2, 71, 93, .05);
  --shadow-m: 0 2px 4px rgba(2, 71, 93, .05), 0 14px 40px rgba(2, 71, 93, .09);
  --shadow-l: 0 30px 70px rgba(1, 43, 58, .18);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rail-w: 58px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
}

body {
  font-family: var(--font-ar);
  font-size: var(--step-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--vital);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--vital); color: #04202b; }

/* --------------------------------------------------------------- language */
/* Each URL carries a single language: Arabic at the root, English under /en/.
   Nothing is hidden and nothing depends on JavaScript — the toggle in the
   header is a plain link to the other language of the same page. */
:lang(ar) { font-family: var(--font-ar); letter-spacing: 0; }
:lang(en) { font-family: var(--font-en); }
html[data-lang="ar"] body { line-height: 1.95; }

/* Arabic script must never be letter-spaced — it breaks joining. */
html[data-lang="ar"] .eyebrow,
html[data-lang="ar"] .pill,
html[data-lang="ar"] .btn,
html[data-lang="ar"] .stage__num,
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 {
  letter-spacing: 0;
  text-transform: none;
}

/* -------------------------------------------------------------- typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3 { line-height: 1.35; font-weight: 800; }

.display { font-size: var(--step-display); font-weight: 800; letter-spacing: -.025em; }
h1, .h1 { font-size: var(--step-h1); letter-spacing: -.02em; }
h2, .h2 { font-size: var(--step-h2); letter-spacing: -.015em; }
h3, .h3 { font-size: var(--step-h3); letter-spacing: -.005em; }

p { text-wrap: pretty; }
p + p { margin-block-start: 1em; }

.lead {
  font-size: clamp(1.06rem, 1rem + .5vw, 1.3rem);
  line-height: 1.72;
  color: var(--text-muted);
}
html[data-lang="ar"] .lead { line-height: 1.95; }

.muted { color: var(--text-muted); }
.on-dark { color: var(--text-on-dark); }
.on-dark .muted, .on-dark p { color: var(--text-on-dark-m); }

.eyebrow {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--vital-deep);
}

/* ------------------------------------------------------------------ layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper); }
.section--mist  { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.section--ink   { background: var(--ink-deep); color: var(--text-on-dark); }
.section--ink h2, .section--ink h3, .section--ink .h2, .section--ink .h3 { color: #fff; }
.section--ink .eyebrow { color: var(--vital); }

.section__head { max-width: 62ch; margin-block-end: clamp(2.25rem, 4vw, 3.5rem); }
.section__head .h2 { margin-block: .7rem .9rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip > :first-child { order: 2; }
.split--media { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
.split--aside { grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr); }

/* --------------------------------------------------------- brand elements */
/* The gradient capsule is the identity's own labelling device. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #fff;
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.pill svg { width: 17px; height: 17px; flex: none; }
.pill--lg { padding: .7rem 1.6rem; font-size: var(--step-sm); }
/* the profile sets its section titles inside this same capsule */
.pill--title {
  padding: .7rem 1.7rem;
  font-size: clamp(1rem, .94rem + .5vw, 1.32rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  max-width: 100%;
}

.rule-grad {
  height: 3px;
  width: 68px;
  border-radius: 3px;
  background: var(--grad);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--step-sm);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }

.btn--primary { background: var(--vital); color: #04262f; }
.btn--primary:hover { background: #5cc4a1; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 179, 146, .32); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #05586f; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(2, 71, 93, .28); }

.btn--ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-s); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: var(--step-sm);
  color: var(--ink);
  padding-block: .35rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
.on-dark .link-arrow, .section--ink .link-arrow { color: var(--vital); }

/* helix pattern surfaces ---------------------------------------------------*/
/* The identity runs this band down the outer edge of every profile page. It
   sits opposite the scroll rail so the two brand devices never overlap. */
.pattern-band {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: clamp(120px, 14vw, 230px);
  background: url("../img/pattern-helix.svg") repeat;
  background-size: 150px auto;
  opacity: .07;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.section--ink .pattern-band { opacity: .1; filter: invert(1) brightness(2); }

.watermark {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  width: min(46vw, 520px);
  opacity: .035;
  pointer-events: none;
}
html[dir="rtl"] .watermark { translate: 50% -50%; }
.section--ink .watermark { opacity: .05; }

/* ------------------------------------------------------------------ header */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 74px;
  padding-block: .7rem;
}
.header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(2, 71, 93, .07);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 30px; height: auto; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name b {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}
html[data-lang="en"] .brand__name b { letter-spacing: .06em; }
.brand__name span {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
html[data-lang="ar"] .brand__name span { letter-spacing: 0; text-transform: none; font-size: .68rem; }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); margin-inline-start: auto; }
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  padding: .5rem .2rem;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: .1rem;
  inset-inline: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { scale: 1 1; }

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle svg { width: 15px; height: 15px; }

/* header sitting on the dark hero */
.header:not(.is-stuck) .nav__link,
.header:not(.is-stuck) .brand__name b { color: #fff; }
.header:not(.is-stuck) .brand__name span { color: rgba(255, 255, 255, .68); }
.header:not(.is-stuck) .lang-toggle {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.header:not(.is-stuck) .burger span { background: #fff; }
.header:not(.is-stuck) .btn--ink { background: var(--vital); color: #04262f; }
/* interior pages start light, so the header is opaque from the first frame */
.header--solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header--solid .nav__link, .header--solid .brand__name b { color: var(--ink); }
.header--solid .brand__name span { color: var(--text-muted); }
.header--solid .lang-toggle { background: #fff; border-color: var(--line); color: var(--ink); }
.header--solid .burger span { background: var(--ink); }
.header--solid .btn--ink { background: var(--ink); color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: .8rem 1.3rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink-deep);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 32%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 29, 40, .5) 0%, rgba(1, 34, 46, .34) 40%, rgba(1, 43, 58, .9) 100%),
    linear-gradient(var(--hero-dir, 90deg), rgba(1, 29, 40, .9) 0%, rgba(1, 29, 40, .55) 45%, rgba(2, 71, 93, .1) 100%);
}
html[dir="rtl"] .hero__scrim { --hero-dir: 270deg; }

.hero__inner {
  position: relative;
  padding-block: clamp(8rem, 16vh, 11rem) clamp(2rem, 5vh, 3.5rem);
  width: 100%;
}
.hero__content { max-width: min(660px, 100%); }
html[data-lang="ar"] .hero__content { max-width: min(610px, 100%); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .5rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
}
.hero__eyebrow i {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vital);
  font-style: normal;
}
.hero__eyebrow i svg { width: 12px; height: 12px; }
html[data-lang="ar"] .hero__eyebrow { letter-spacing: 0; }

.hero__title {
  margin-block: 1.4rem 1.2rem;
  color: #fff;
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
}
html[data-lang="ar"] .hero__title {
  line-height: 1.28;
  letter-spacing: 0;
  font-size: clamp(2.15rem, 1.2rem + 3vw, 3.5rem);
}
.hero__title em { font-style: normal; color: var(--vital); }

.hero__sub { color: #c9dee2; font-size: clamp(1.02rem, .98rem + .45vw, 1.22rem); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 2.2rem; }

/* the identity's own bilingual signature line, set as a footer rule */
.hero__sign {
  margin-block-start: clamp(2.5rem, 7vh, 5rem);
  padding-block-start: 1.4rem;
  border-block-start: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.2rem;
  color: rgba(255, 255, 255, .6);
  font-size: var(--step-sm);
}
.hero__sign b { color: var(--vital); font-weight: 600; }

.hero__mark {
  position: absolute;
  inset-block-end: -6%;
  inset-inline-end: -3%;
  width: min(26vw, 300px);
  opacity: .07;
  z-index: -1;
}

.scroll-hint {
  position: absolute;
  inset-block-end: 1.6rem;
  inset-inline-end: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .55);
  font-size: var(--step-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
}
html[data-lang="ar"] .scroll-hint { letter-spacing: 0; text-transform: none; }
.scroll-hint span {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--vital), transparent);
  animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 0%, 100% { opacity: .25; scale: 1 .4; } 50% { opacity: 1; scale: 1 1; } }

/* --------------------------------------------------------------- fact grid */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.fact {
  background: #fff;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: background-color .3s var(--ease);
}
.fact:hover { background: var(--paper); }
.fact__label {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: flex-start;
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
html[data-lang="ar"] .fact__label { letter-spacing: 0; text-transform: none; font-size: var(--step-sm); }
.fact__label i {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
}
.fact__label i svg { width: 17px; height: 17px; }
.fact p { font-size: .98rem; color: var(--text-muted); line-height: 1.7; }
.fact--wide { grid-column: span 2; }

/* ------------------------------------------------------------- stat figure */
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__num {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  direction: ltr;                 /* keeps "25+" reading as 25+ in both scripts */
  unicode-bidi: isolate;
  align-self: flex-start;
}
.section--ink .stat__num { background: linear-gradient(90deg, #7fd3b6, #cfeae2); -webkit-background-clip: text; background-clip: text; }
.stat__label { font-size: var(--step-sm); color: var(--text-muted); font-weight: 600; }
.section--ink .stat__label { color: var(--text-on-dark-m); }

/* --------------------------------------------------------- journey (pinned) */
.journey { background: var(--ink-deep); color: var(--text-on-dark); overflow: hidden; }
.journey__head { padding-block: var(--section-y) 0; }
.journey__viewport { position: relative; padding-block: clamp(2.25rem, 4vw, 3.25rem) 1rem; }
.journey__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-inline: var(--gutter);
  will-change: transform;
}
/* below the pin breakpoint — and with no JS at all — the stages stay usable
   as a plain horizontal scroller */
html:not(.js) .journey__viewport,
.journey__viewport.is-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--vital) transparent;
}
.journey__viewport.is-carousel .journey__track { padding-inline-end: var(--gutter); }

.stage {
  flex: none;
  width: min(74vw, 300px);
  min-height: 170px;
  justify-content: space-between;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  /* the petrol half of the brand gradient disappears on a petrol ground, so
     the dark surfaces run green-to-pale instead */
  background: linear-gradient(90deg, var(--vital), #a9e2cf);
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale .6s var(--ease-out);
}
.stage.is-live::before { scale: 1 1; }
.stage__num {
  font-family: var(--font-en);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--vital);
  font-variant-numeric: tabular-nums;
}
.stage h3 { color: #fff; font-size: 1.28rem; }
.stage p { color: var(--text-on-dark-m); font-size: .96rem; line-height: 1.7; }

.journey__progress {
  height: 2px;
  background: var(--line-dark);
  border-radius: 2px;
  overflow: hidden;
}
.journey__progress i { display: block; height: 100%; width: 0; background: var(--vital); }

/* ---------------------------------------------------------------- services */
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.svc:hover .svc__media img { scale: 1.06; }
.svc__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1, 43, 58, 0) 45%, rgba(1, 43, 58, .55) 100%);
}
.svc__body { padding: clamp(1.3rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.svc__body h3 { font-size: 1.24rem; }
.svc__body p { font-size: .97rem; color: var(--text-muted); }
.svc__body .link-arrow { margin-block-start: auto; padding-block-start: .5rem; }

/* generic card ------------------------------------------------------------*/
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: transparent; }
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--grad);
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale .5s var(--ease-out);
}
.card:hover::before { scale: 1 1; }
.card__k {
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--vital-deep);
  font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 1.16rem; }
.card p { font-size: .96rem; color: var(--text-muted); }
.section--ink .card { background: rgba(255, 255, 255, .045); border-color: var(--line-dark); }
.section--ink .card:hover { border-color: rgba(79, 179, 146, .5); }
.section--ink .card h3 { color: #fff; }
.section--ink .card p { color: var(--text-on-dark-m); }
.section--ink .card__k { color: var(--vital); }

/* checklist ---------------------------------------------------------------*/
.checks { display: grid; gap: .7rem; }
.checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  font-size: .98rem;
  line-height: 1.6;
}
.checks li::before {
  content: "";
  width: 20px; height: 12px;
  margin-block-start: .42rem;
  border-radius: var(--radius-pill);
  background: var(--grad);
  flex: none;
}
.section--ink .checks li { color: var(--text-on-dark-m); }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); }

/* value / reason list -----------------------------------------------------*/
.reasons { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.reason {
  background: #fff;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.6rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
  transition: background-color .3s var(--ease);
}
.reason:hover { background: var(--paper); }
/* title and description share the row so long lists read as an index, not as
   a column of text with dead space beside it */
.reason > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(.75rem, 3vw, 2.5rem);
  align-items: baseline;
}
.reason__idx {
  font-family: var(--font-en);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--vital-deep);
  padding-block-start: .35rem;
  font-variant-numeric: tabular-nums;
}
.reason h3 { font-size: 1.12rem; }
.reason p { font-size: .97rem; color: var(--text-muted); }
.section--ink .reasons { background: var(--line-dark); border-color: var(--line-dark); }
.section--ink .reason { background: var(--ink-deep); }
.section--ink .reason:hover { background: rgba(255, 255, 255, .04); }

/* coverage ---------------------------------------------------------------- */
.coverage { display: flex; flex-wrap: wrap; gap: .6rem; }
.coverage li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-size: var(--step-sm);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .05);
}
.coverage li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vital); flex: none; }

/* media figure ------------------------------------------------------------ */
.figure { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure__tag {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  background: rgba(1, 43, 58, .82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--step-xs);
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
}

/* callout / CTA ----------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(2.2rem, 5vw, 4.2rem);
  overflow: hidden;
  isolation: isolate;
}
.cta::after {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 179, 146, .38), transparent 68%);
  z-index: -1;
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: #bcd6dc; max-width: 52ch; margin-block-start: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 2rem; }

/* contact ----------------------------------------------------------------- */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-item i {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}
.contact-item i svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-block-end: .2rem; }
html[data-lang="ar"] .contact-item h3 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.contact-item a, .contact-item p { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.contact-item p + p { margin-block-start: .15rem; }
.contact-item a:hover { color: var(--vital-deep); text-decoration: underline; text-underline-offset: 3px; }
.section--ink .contact-item a, .section--ink .contact-item p { color: #fff; }
.section--ink .contact-item h3 { color: var(--text-on-dark-m); }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--step-sm); font-weight: 700; color: var(--ink); }
.field .hint { font-size: var(--step-xs); color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--vital);
  box-shadow: 0 0 0 4px rgba(79, 179, 146, .18);
}
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form__note { font-size: var(--step-xs); color: var(--text-muted); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink-darker); color: var(--text-on-dark-m); position: relative; overflow: hidden; }
.footer__top { padding-block: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-block-end: 1.1rem; }
html[data-lang="ar"] .footer h4 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.footer a { transition: color .25s var(--ease); }
.footer a:hover { color: var(--vital); }
.footer__links { display: grid; gap: .6rem; font-size: .95rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-block-end: 1.1rem; }
.footer__brand img { width: 34px; }
.footer__brand b { color: #fff; font-size: 1.08rem; font-weight: 800; display: block; }
.footer__brand span { font-size: .72rem; color: var(--text-on-dark-m); }
.footer__desc { font-size: .95rem; max-width: 40ch; line-height: 1.75; }
.footer__bottom {
  border-block-start: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step-xs);
}
.footer__sign { color: var(--vital); font-weight: 600; }
.footer__credit { color: rgba(255, 255, 255, .42); display: flex; gap: .4rem; align-items: baseline; }
.footer__credit a {
  color: var(--text-on-dark-m);
  font-weight: 600;
  border-block-end: 1px solid rgba(255, 255, 255, .22);
}
.footer__credit a:hover { color: var(--vital); border-color: var(--vital); }

/* ------------------------------------------------------- helix scroll rail */
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: var(--rail-w);
  z-index: 40;
  pointer-events: none;
  display: none;
  mix-blend-mode: normal;
}
.rail svg { width: 100%; height: 100%; }
.rail__base { stroke: var(--ink); opacity: .085; }
.rail__lit  { stroke: url(#railGrad); opacity: .8; }
.rail__rungs-base { stroke: var(--ink); opacity: .07; }
.rail__rungs-lit  { stroke: var(--vital); opacity: .7; }
.rail.on-dark .rail__base, .rail.on-dark .rail__rungs-base { stroke: #fff; opacity: .13; }
.rail.on-dark .rail__lit { stroke: var(--vital); opacity: .9; }

@media (min-width: 1180px) { .rail { display: block; } }

/* ------------------------------------------------------------- page header */
.page-hero {
  position: relative;
  padding-block: clamp(8.5rem, 16vh, 12rem) clamp(3rem, 6vw, 5rem);
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset-block-start: -50%;
  inset-inline-start: -5%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 179, 146, .22), transparent 70%);
  z-index: -1;
}
.page-hero h1 { color: #fff; margin-block: .9rem 1rem; }
.page-hero p { color: #b7d1d8; max-width: 58ch; font-size: clamp(1.02rem, .98rem + .4vw, 1.18rem); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: var(--step-xs); color: rgba(255, 255, 255, .55); }
.crumbs a:hover { color: var(--vital); }
.crumbs span { opacity: .5; }

/* ------------------------------------------------------------- scroll reveal */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal-fade { opacity: 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header__inner { min-height: 64px; }
  .header__actions { margin-inline-start: auto; }
  .burger { display: flex; }
  /* A panel hanging under the bar, not a full-height sheet: the header keeps
     its brand, language link and close button visible and tappable.
     --header-h is measured in main.js; the fallback covers the no-JS case. */
  .nav {
    position: fixed;
    inset-block-start: var(--header-h, 68px);
    inset-inline-end: 0;
    height: auto;
    max-height: calc(100dvh - var(--header-h, 68px));
    width: min(86vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: .4rem 1.4rem 1.2rem;
    background: #fff;
    border-end-start-radius: 22px;
    box-shadow: var(--shadow-l);
    transform: translateX(105%);
    /* hidden while closed so the off-screen links stay out of the tab order */
    visibility: hidden;
    transition: transform .4s var(--ease-out), visibility .4s;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline-start: 0;
  }
  html[dir="rtl"] .nav { transform: translateX(-105%); }
  /* the RTL rule above carries an element selector, so the open state has to
     be written for both directions or it never wins in Arabic */
  .nav.is-open,
  html[dir="rtl"] .nav.is-open { transform: translateX(0); visibility: visible; }
  .header:not(.is-stuck) .nav .nav__link { color: var(--ink); }
  .nav__link { font-size: 1.06rem; padding: .95rem .2rem; border-block-end: 1px solid var(--line); }
  .nav__link:last-child { border-block-end: 0; }
  .nav__link[aria-current="page"] { color: var(--vital-deep); }
  .nav__link::after { display: none; }
  .header__actions .btn { display: none; }
  /* the panel is a positioned box, so the bar's own controls need to be
     positioned too or they get painted underneath it */
  .brand, .header__actions { position: relative; z-index: 1; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(1, 29, 40, .5);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .split, .split--media, .split--aside { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .reason > div { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks--2 { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .watermark { width: 70vw; }
}
@media (max-width: 700px) {
  /* the English descriptor is long enough to push the language link and the
     menu button off a phone-width bar — the name alone carries the brand */
  .brand__name span { display: none; }
  .brand__mark { width: 26px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .fact--wide { grid-column: span 1; }
  .facts { border-radius: var(--radius); }
  .hero__cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .field--row { grid-template-columns: minmax(0, 1fr); }
  .reason { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .reason__idx { padding-block-start: 0; }
  .scroll-hint { display: none; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-fade { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rail { display: none; }
}

/* -------------------------------------------------------------------- print */
@media print {
  .header, .rail, .burger, .nav, .scroll-hint, .cta__actions { display: none !important; }
  body { color: #000; }
  .section--ink, .journey, .footer, .page-hero { background: #fff !important; color: #000 !important; }
}
