/* Shared shell: reset, header island, app tab bar, buttons, eyebrow, duotone photo in the lozenge window and the
   pinned story stage (Home). system.css holds the design system; each page file (home.css, about.css, …) owns its page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink-on-dark); background: var(--deep); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:root { --deep: #041E3D; --abyss: #03152C; --glass: rgba(9, 44, 86, .5); --glass-line: rgba(255, 255, 255, .14); --tan: .4452; /* tan(24deg) */ }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lime-glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ic.back { transform: scaleX(-1); }
[dir="rtl"] .ic.back { transform: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons (magnetic on mouse: kit.js moves --mx/--my) ---------- */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap; transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease-out), background-color .2s, box-shadow .25s, border-color .2s; }
.btn > span, .btn > .ic { transform: translate(calc(var(--mx) * .35), calc(var(--my) * .35)); transition: transform .35s var(--ease-out); }
.btn--lime { background: var(--lime); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(128, 188, 0, .7); }
.btn--lime:hover { background: var(--lime-glow); box-shadow: 0 14px 38px -8px rgba(128, 188, 0, .8); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn .ic { transition: translate .25s var(--ease-out), transform .35s var(--ease-out); }
.btn:hover .ic { translate: 4px 0; }
[dir="rtl"] .btn:hover .ic { translate: -4px 0; }

/* ---------- Eyebrow: the lozenge + a tracked label ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--lime-glow); }
.eyebrow i { width: 26px; height: 10px; border-radius: 3px; background: var(--lime); transform: skewX(-24deg); flex: none; }

@media (max-width: 760px) { .eyebrow { font-size: .6875rem; letter-spacing: .1em; gap: 8px; } .eyebrow i { width: 20px; height: 8px; } }

/* ---------- Header island ---------- */
.hd { position: fixed; inset: 14px 0 auto; z-index: var(--z-header); display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.hd__in { pointer-events: auto; display: flex; align-items: center; gap: 6px; width: min(1180px, 100%); min-height: 62px; padding: 8px 10px; padding-inline-start: 22px; border-radius: 999px; background: rgba(5, 32, 66, .93); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 18px 50px -22px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hd__logo img { height: 34px; width: auto; }
.hd__nav { display: flex; gap: 2px; margin-inline: auto; }
.hd__nav a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--ink-on-dark-soft); transition: color .2s, background-color .2s; }
.hd__nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hd__nav a[aria-current] { color: #fff; }
.hd__lang { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--ink-on-dark-soft); }
.hd__lang:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 1023px) { .hd__nav { display: none; } .hd__lang { margin-inline-start: auto; } }
@media (max-width: 760px) {
  .hd { inset-block-start: 10px; padding-inline: 12px; }
  .hd__in { min-height: 54px; padding: 6px 8px; padding-inline-start: 16px; }
  .hd__logo img { height: 28px; }
  .hd__cta { display: none; }
}

/* ---------- App tab bar (phones) ---------- */
.tb { display: none; }
@media (max-width: 760px) {
  .tb { position: fixed; inset: auto 12px calc(12px + var(--safe-bottom)); z-index: var(--z-tabbar); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 66px; padding: 0 6px; border-radius: 26px; background: rgba(5, 30, 62, .93); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .1); }
  .tb__i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 66px; min-width: 0; font-size: .6875rem; font-weight: 600; color: var(--ink-on-dark-mute); }
  .tb__i span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
  .tb__i .ic { width: 22px; height: 22px; }
  .tb__i[aria-current] { color: #fff; }
  .tb__i[aria-current]::before { content: ""; position: absolute; top: 7px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime); transform: skewX(-24deg); }
  .tb__i--hero { color: #fff; justify-content: flex-end; padding-bottom: 9px; }
  .tb__loz { position: absolute; top: -16px; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 10px; background: var(--lime); color: var(--navy); transform: skewX(-24deg); box-shadow: 0 10px 22px -6px rgba(128, 188, 0, .75), 0 0 0 5px rgba(4, 30, 61, .9); }
  .tb__loz .ic { transform: skewX(24deg); width: 22px; height: 22px; stroke-width: 2; }
}

/* ---------- Photography: navy duotone with a lime light, inside the slanted lozenge ---------- */
.duo { position: relative; display: block; isolation: isolate; overflow: hidden; background: #062B55; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.08); mix-blend-mode: screen; opacity: .92; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(205deg, rgba(128, 188, 0, .6), rgba(128, 188, 0, 0) 52%); mix-blend-mode: soft-light; pointer-events: none; }
.loz { transform: skewX(-24deg); border-radius: 14px; }
.loz img { transform: skewX(24deg) scale(1.5); }

/* ---------- The pinned story: one sticky stage; hero, then beats driven by scroll ---------- */
.story { position: relative; height: 420vh; background: var(--deep); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --out: 0; }
.map { position: absolute; inset: 0; }
.map canvas { display: block; width: 100%; height: 100%; }
.hero { position: absolute; inset: 0; opacity: calc(1 - var(--out)); }
.stage.is-past .hero { visibility: hidden; }
.beats { position: absolute; inset: 0; pointer-events: none; }
.beat { position: absolute; opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), visibility 0s .5s; }
.beat.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: .08s, .08s, 0s; }
.tip { position: absolute; top: 0; left: 0; z-index: 3; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: .8125rem; font-weight: 800; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.tip.is-on { opacity: 1; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
/* story progress: three lozenges at the edge */
.prog { position: absolute; inset-inline-end: 28px; top: 50%; z-index: 3; display: grid; gap: 10px; translate: 0 -50%; opacity: var(--out); }
.prog i { width: 8px; height: 30px; border-radius: 3px; background: rgba(255, 255, 255, .2); transform: skewY(-24deg); transition: background-color .3s, height .3s var(--ease-out); }
.prog i.is-on { background: var(--lime); height: 46px; }

/* Reduced motion: no pin; the hero and the beats stack as ordinary blocks, the map shows its end state. */
.calm .story { height: auto; }
.calm .stage { position: relative; height: auto; min-height: 100vh; }
.calm .hero { position: relative; opacity: 1; min-height: 100vh; }
.calm .beats { position: relative; display: grid; gap: 16px; padding: 24px 16px 64px; }
.calm .beat { position: relative; inset: auto !important; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.calm .prog { display: none; }
.calm .map { height: 100vh; bottom: auto; }

/* ---------- Kinetic headline base: each word rises out of its own mask, once ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em .14em; margin-block: -.08em -.14em; }
.w > span { display: inline-block; }
[lang="ar"] .w { padding-block: .3em .34em; margin-block: -.3em -.34em; }
