/* ==========================================================================
   Baraa — homepage styles (RTL first). Tokens live in tokens.css.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400; /* Zain Rounded is heavy by design; never synthesize bold */
  line-height: 1.3;
}

p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.marker__shape, .circled__shape, .step__seal { max-width: none; } /* drawn past their box on purpose */
a { color: var(--petrol); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; } /* wins over component display rules like .btn */

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

::selection { background: var(--mint-soft); color: var(--ink); }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Lenis smooth scrolling (main.js turns it on) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; z-index: 100; top: -6rem; inset-inline-start: 1rem;
  padding: .6rem 1.1rem; border-radius: var(--r-sm);
  background: var(--petrol); color: #fff; font-family: var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Shared pieces ---------- */
.section { --section-bg: var(--bg); position: relative; padding-block: var(--section-y); }
.section--white { --section-bg: var(--surface); background: var(--surface); }

.section-head {
  max-width: 44rem; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.75rem);
  text-align: center;
}
.section-title { margin-top: 1rem; font-size: var(--fs-h2); color: var(--petrol); }
.section-lead { margin-top: .9rem; font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.9; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .95rem; border-radius: var(--r-pill);
  background: var(--mint-soft); color: var(--petrol);
  font-family: var(--font-display); font-size: var(--fs-sm); line-height: 1.6;
}
.eyebrow .icon { width: 1em; height: 1em; }
.eyebrow--lilac { background: var(--lilac-soft); }
.eyebrow--peach { background: var(--peach-soft); }
.eyebrow--white { background: var(--surface); }

/* Brush highlight behind a word (marker shape from the platform's scribble font) */
.marker { position: relative; display: inline-block; isolation: isolate; }
.marker__shape {
  position: absolute; z-index: -1; inset-inline: -.12em; bottom: .02em;
  width: calc(100% + .24em); height: .5em; color: var(--sun);
}
.marker--mint .marker__shape { color: var(--mint); opacity: .55; }

/* Hand-drawn oval around a word */
.circled { position: relative; display: inline-block; isolation: isolate; padding-inline: .1em; }
.circled__shape {
  position: absolute; z-index: -1; top: -.3em; left: -.45em;
  width: calc(100% + .9em); height: calc(100% + .6em);
  color: var(--mint); opacity: .85; pointer-events: none;
}

.hand-note { font-family: var(--font-note); font-size: var(--fs-note); line-height: 1.25; color: var(--petrol); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--petrol);
  --btn-bd: var(--petrol);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.875rem; padding: .5rem 1.4rem;
  border: 2px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  translate: var(--tx, 0px) var(--ty, 0px); /* magnetic pull, set from main.js */
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              translate .35s var(--ease-out);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(-4px); } /* forward is left in RTL */
.btn:active { transform: translateY(1px) scale(.98); }

.btn--primary {
  --btn-bg: var(--petrol); --btn-fg: #fff; --btn-bd: var(--petrol);
  box-shadow: 0 6px 16px rgb(20 99 86 / .22);
}
.btn--primary:hover { --btn-bg: var(--petrol-hover); --btn-bd: var(--petrol-hover); box-shadow: 0 10px 24px rgb(20 99 86 / .28); }
.btn--primary:active { --btn-bg: var(--petrol-press); --btn-bd: var(--petrol-press); }

.btn--secondary { --btn-bg: transparent; }
.btn--secondary:hover { --btn-bg: var(--petrol-tint); }

.btn--lg { min-height: 3.375rem; padding-inline: 1.8rem; font-size: 1.15rem; }
.btn--sm { min-height: 2.65rem; padding: .35rem 1.15rem; font-size: 1rem; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgb(23 59 53 / .07); }

.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: .95rem; background: var(--petrol); color: var(--gold);
  transform: rotate(-6deg);
}
.brand__mark .icon { width: 1.45rem; height: 1.45rem; stroke-width: 1.8; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.65rem; color: var(--petrol); }
.brand__tag { font-size: .75rem; font-weight: 500; color: var(--ink-2); }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: .15rem; }
.site-nav__list a:not(.btn) {
  display: inline-flex; padding: .45rem .9rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-nav__list a:not(.btn):hover { color: var(--petrol); background: var(--petrol-tint); }
.site-nav__cta { display: none; }

.menu-toggle {
  display: none; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-toggle .icon { width: 1.35rem; height: 1.35rem; }

@media (max-width: 959.98px) {
  .site-header__cta { display: none; }
  .menu-toggle { display: inline-grid; margin-inline-start: auto; }

  /* The closed panel still takes room under the header, so it must not catch taps */
  .site-nav { position: absolute; inset-inline: 0; top: 100%; margin: 0; pointer-events: none; }
  .site-nav__list.is-open { pointer-events: auto; }
  .site-nav__list {
    flex-direction: column; align-items: stretch; gap: .15rem;
    margin: .5rem var(--gutter) 0; padding: .75rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .site-nav__list.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .site-nav__list a:not(.btn) { padding: .8rem 1rem; font-size: 1.15rem; border-radius: var(--r-md); }
  .site-nav__cta { display: block; margin-top: .4rem; }
  .site-nav__cta .btn { width: 100%; }
}

@media (min-width: 560px) and (max-width: 959.98px) {
  .site-header__cta { display: inline-flex; margin-inline-start: auto; }
  .menu-toggle { margin-inline-start: 0; }
}

@media (max-width: 380px) {
  .brand__tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 7rem);
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--lilac {
  width: 38rem; height: 38rem; top: -18rem; inset-inline-end: -10rem;
  background: radial-gradient(closest-side, var(--lilac-soft), transparent);
}
.hero__glow--mint {
  width: 44rem; height: 44rem; bottom: -22rem; inset-inline-start: -14rem;
  background: radial-gradient(closest-side, var(--mint-soft), transparent);
}

.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.hero__title { margin-top: 1.25rem; font-size: var(--fs-h1); line-height: 1.28; color: var(--petrol); }
.hero__lead { max-width: 33rem; margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.95; color: var(--ink-2); }

.hero__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2.25rem; }
/* "رحلتك تبدأ من هنا" hangs off the primary button itself. The a-up arrow is a
   250×224 shape with its tip at (248, 4): drawn 4rem wide, the tip sits 3.97rem from
   its left edge, so it always lands just under the button, 30% in from its left side. */
.cta-anchor { position: relative; display: inline-flex; }
.hero__note { position: absolute; inset: 0; pointer-events: none; }
.hero__note-arrow {
  position: absolute; left: calc(30% - 3.97rem); top: calc(100% + .3rem);
  width: 4rem; height: 3.58rem; color: var(--petrol);
}
.hero__note-text {
  position: absolute; top: calc(100% + 2.15rem); right: calc(70% + 4.3rem);
  white-space: nowrap; transform: rotate(-3deg); transform-origin: right center;
}

.hero__community { display: flex; align-items: center; gap: .9rem; margin-top: 5.25rem; font-size: var(--fs-sm); color: var(--ink-2); }
.hero__community strong { font-weight: 600; color: var(--ink); }

.avatars { display: flex; }
.avatar {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  margin-inline-start: -.7rem; border: 3px solid var(--bg); border-radius: 50%;
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
}
.avatar:first-child { margin-inline-start: 0; }
.avatar .icon { width: 1rem; height: 1rem; stroke-width: 2.6; }
.avatar--mint { background: var(--mint); }
.avatar--lilac { background: var(--lilac); }
.avatar--peach { background: var(--peach); }
.avatar--sun { background: var(--sun); }

/* "Talent orbit": talents circling the daily note */
.hero__visual { justify-self: center; width: min(100%, 34rem); }
.orbit { position: relative; aspect-ratio: 1; container-type: inline-size; --orbit-r: 44cqi; }

.orbit__ring {
  position: absolute; inset: 7%;
  border: 2px dashed color-mix(in srgb, var(--petrol) 24%, transparent); border-radius: 50%;
}
.orbit__ring::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--surface), transparent);
}

.orbit__deco { position: absolute; pointer-events: none; }
.orbit__deco--hatch { width: 21%; height: 21%; top: 3%; inset-inline-start: 8%; color: var(--mint); opacity: .35; }
.orbit__deco--burst { width: 15%; height: 13%; top: 17%; inset-inline-end: 7%; color: var(--sun); }
.orbit__deco--squiggle { width: 16%; height: 12%; bottom: 3%; inset-inline-start: 30%; color: var(--lilac); }

.orbit__chips { position: absolute; inset: 0; }
/* --spin turns the whole orbit slowly; scrolling the hero away adds a little more turn */
.chip {
  --angle: calc(var(--a) + var(--spin) + var(--hero-p, 0) * 50deg);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-r)) rotate(calc(var(--angle) * -1));
}
.chip__inner {
  display: inline-flex; align-items: center; gap: .5rem;
  padding-block: .4rem; padding-inline: .45rem 1rem;
  border-radius: var(--r-pill); background: var(--c-soft);
  border: 1px solid color-mix(in srgb, var(--c-strong) 40%, transparent);
  box-shadow: var(--shadow-1);
  font-family: var(--font-display); font-size: 1rem; color: var(--ink); white-space: nowrap;
  animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.chip__icon {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--c-strong); color: var(--ink);
}
.chip__icon .icon { width: 1.05rem; height: 1.05rem; }

.chip--mint, .program--mint, .stat--mint, .step--mint, .member--mint { --c-soft: var(--mint-soft); --c-strong: var(--mint); }
.chip--sun, .program--sun, .stat--sun, .member--sun { --c-soft: var(--sun-soft); --c-strong: var(--sun); }
.chip--peach, .program--peach, .stat--peach, .step--peach, .member--peach { --c-soft: var(--peach-soft); --c-strong: var(--peach); }
.chip--lilac, .program--lilac, .stat--lilac, .step--lilac, .member--lilac { --c-soft: var(--lilac-soft); --c-strong: var(--lilac); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* The daily note and the progress card sit together inside the orbit, clear of the chips' path */
.orbit__center {
  position: absolute; top: 50%; left: 50%; width: 48%;
  display: flex; flex-direction: column;
  transform: translate(-50%, -50%);
}
.note-card {
  position: relative;
  padding: 2.4rem 1.25rem 1.2rem;
  border-radius: var(--r-lg); background: var(--mint-soft);
  box-shadow: var(--shadow-2); text-align: center;
  transform: rotate(-3deg);
}
.note-card__label {
  display: inline-block; padding: .15rem .8rem; border-radius: var(--r-pill);
  background: var(--surface); color: var(--petrol);
  font-family: var(--font-display); font-size: .85rem;
}
.note-card__text { margin-top: .7rem; font-family: var(--font-note); font-size: clamp(1.3rem, .5rem + 3.4cqi, 2rem); line-height: 1.4; color: var(--ink); }
.note-card__wave { width: 55%; height: .65rem; margin: .55rem auto 0; color: var(--mint); }

/* A wax-seal on the note's top edge: inside the chips' path, so the orbit never hits it */
.seal {
  position: absolute; top: -2.1rem; left: 50%;
  display: grid; place-items: center; width: 4rem; height: 4rem;
  transform: translateX(-50%) rotate(14deg);
}
.seal::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: var(--gold); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.seal__icon { position: relative; width: 1.4rem; height: 1.4rem; color: var(--ink); fill: var(--ink); }

.progress-card {
  position: relative; width: 84%; margin-top: -.7rem; margin-inline-start: auto;
  padding: .85rem 1rem .8rem; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-2);
  transform: rotate(2.5deg);
}
.progress-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-family: var(--font-display); font-size: .9rem; }
.progress-card__head strong { font-weight: 400; color: var(--petrol); }
.progress { height: .55rem; margin-top: .45rem; border-radius: var(--r-pill); background: var(--mint-soft); overflow: hidden; }
.progress__bar { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--mint); }
.progress-card__meta { margin-top: .35rem; font-size: .8rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 1023.98px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__community { justify-content: center; }
  .hero__note { display: none; }
  .hero__community { margin-top: 2rem; }
  .hero__visual { width: min(100%, 30rem); }
}

/* Phones: the orbit is too tight, so the same pieces settle into a simple stack */
@media (max-width: 559.98px) {
  .hero__visual { width: 100%; }
  .orbit {
    aspect-ratio: auto; container-type: normal;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    padding-block: 1.75rem .5rem;
  }
  .orbit__ring, .orbit__deco--hatch, .orbit__deco--squiggle { display: none; }
  .orbit__deco--burst { width: 4.5rem; height: 3.75rem; top: 0; inset-inline-end: 4%; }

  .orbit__center { order: 1; position: static; width: min(19rem, 86%); transform: none; }
  .orbit__chips { order: 2; }
  .note-card { transform: rotate(-2deg); }
  .note-card__text { font-size: 1.75rem; }
  .seal { width: 3.6rem; height: 3.6rem; top: -1.9rem; }
  .progress-card { width: 82%; margin-top: -1.1rem; }

  .orbit__chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .5rem; }
  .chip { position: static; transform: none; }
  .chip__inner { animation: none; font-size: .92rem; }

  .btn--lg { min-height: 3.1rem; padding-inline: 1.4rem; font-size: 1.05rem; }
}

/* ---------- About ---------- */
.about { overflow: hidden; }

/* Outlined title; the ink layer is revealed from the right as --p goes 0 → 1 (main.js) */
.fill-title {
  --p: 1;
  position: relative; display: inline-block; white-space: nowrap;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  font-size: clamp(4.25rem, 2.25rem + 9.5vw, 11rem); line-height: 1.2;
}
/* Joined Arabic letters overlap, so a plain stroke also traces the seams inside the word.
   Instead: a fat stroke underneath, then the same word in the background color on top,
   which hides the stroke's inner half and every seam, leaving one clean outer outline. */
.fill-title__base { color: var(--petrol); -webkit-text-stroke: 3px var(--petrol); }
.fill-title__knock { position: absolute; inset: 0; color: var(--section-bg, var(--surface)); }
.fill-title__ink {
  position: absolute; inset: 0; color: var(--petrol);
  clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%));
}

.about__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 1px solid var(--line);
}
.about__lead { max-width: 22rem; margin-top: 1rem; font-size: var(--fs-sm); line-height: 1.95; color: var(--ink-2); }
.about__statement { font-family: var(--font-display); font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.65rem); line-height: 1.6; color: var(--ink); }

/* Keywords keep their content color; the highlight appears when lit */
/* The highlight's breathing room is a shadow, not padding, so punctuation stays snug */
.kw { padding: 0; border-radius: .3em; background: none; color: inherit; transition: box-shadow .35s var(--ease-out); }
[data-words]:not(.is-split) .kw, .kw.is-lit { box-shadow: 0 0 0 .12em var(--kw); }
.kw--petrol { --kw: var(--petrol-tint); }
.kw--mint { --kw: var(--mint-soft); }
.kw--sun { --kw: var(--sun); }
.kw--peach { --kw: var(--peach-soft); }
.kw--lilac { --kw: var(--lilac-soft); }
[data-words]:not(.is-split) .kw, .kw.is-lit { background: var(--kw); }
.kw--petrol.is-lit { color: var(--petrol); }

/* Words wait faded until the reader scrolls to them (main.js splits the text) */
/* The faded color is mixed with the background rather than made transparent: with a
   see-through color the overlapping parts of joined letters would show as darker spots. */
.js [data-words].is-split .w { color: color-mix(in srgb, var(--ink) 18%, var(--section-bg, var(--surface))); transition: color .35s var(--ease-out), background-color .35s var(--ease-out); }
.js [data-words].is-split .w.is-lit { color: var(--ink); }
.js [data-words].is-split .kw--petrol.is-lit { color: var(--petrol); }

@media (max-width: 859.98px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- Programs ---------- */
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

/* --rx/--ry/--gx/--gy follow the pointer (main.js): the card tilts and a soft light follows */
.program {
  --lift: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--r-lg);
  background: var(--c-soft);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
  transition: transform .5s var(--ease-out), box-shadow .3s var(--ease-out);
}
.program:hover {
  --lift: -6px;
  box-shadow: var(--shadow-2);
  transition: transform .15s ease-out, box-shadow .3s var(--ease-out);
}
.program::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(20rem circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .6), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.program:hover::before { opacity: 1; }

.program__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.3rem; }
.program__icon {
  display: grid; place-items: center; width: 3.3rem; height: 3.3rem;
  border-radius: 1rem; background: var(--c-strong); color: var(--ink);
  transform: rotate(-6deg); transition: transform .45s var(--ease-bounce);
}
.program__icon .icon { width: 1.5rem; height: 1.5rem; }
.program:hover .program__icon { transform: rotate(4deg) scale(1.06); }

.badge-gold {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .8rem; border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-size: .85rem; line-height: 1.5;
  box-shadow: 0 4px 12px rgb(186 155 90 / .35);
}
.badge-gold .icon { width: 1rem; height: 1rem; stroke-width: 2.2; }

.program__kicker { margin-top: 1.4rem; font-family: var(--font-display); font-size: .9rem; color: var(--ink-2); }
.program__title { margin-top: .2rem; font-size: var(--fs-h3); color: var(--ink); }
.program__desc { margin-top: .6rem; font-size: var(--fs-sm); line-height: 1.85; color: var(--ink-2); }

.program__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; padding-top: .25rem; }
.program__meta li {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .7rem; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .72); color: var(--ink);
  font-size: .82rem; line-height: 1.7;
}
.program__meta .icon { width: .95rem; height: .95rem; color: var(--ink-2); }

.program__link {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  margin-top: auto; padding-top: 1.25rem;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--petrol);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em;
  text-decoration-color: color-mix(in srgb, var(--petrol) 30%, transparent);
  transition: text-decoration-color var(--dur) var(--ease-out);
}
.program__link::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.program__link .icon { width: 1.05rem; height: 1.05rem; transition: transform var(--dur) var(--ease-out); }
.program:hover .program__link { text-decoration-color: currentColor; }
.program:hover .program__link .icon { transform: translateX(-4px); }

.program__deco {
  position: absolute; z-index: -1; bottom: 1.9rem; inset-inline-end: -1.4rem;
  width: 7rem; height: 2.2rem; color: var(--c-strong);
  transform: rotate(-8deg);
}

@media (max-width: 1099.98px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px)  { .program-grid { grid-template-columns: 1fr; } }

/* ---------- Journey ---------- */
.journey { position: relative; }

.journey__steps {
  --fill: 1; /* main.js drives this from the scroll position */
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.journey__steps::before,
.journey__steps::after {
  content: ""; position: absolute; top: 2.25rem; inset-inline: 12.5%;
  height: .45rem; border-radius: var(--r-pill);
}
.journey__steps::before { background: var(--mint-soft); }
.journey__steps::after {
  background: var(--mint);
  transform: scaleX(var(--fill)); transform-origin: right center;
  transition: transform .2s linear;
}

.step { position: relative; z-index: 1; text-align: center; }
.step__circle {
  position: relative; display: grid; place-items: center;
  width: 5rem; height: 5rem; margin-inline: auto;
  border-radius: 50%; background: var(--c-soft); color: var(--ink);
  box-shadow: 0 0 0 .5rem var(--section-bg, var(--bg));
}
.step__circle > .icon { position: relative; width: 1.75rem; height: 1.75rem; }
.step__num {
  position: absolute; z-index: 2; top: -.2rem; inset-inline-start: -.2rem;
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border-radius: 50%; background: var(--petrol); color: #fff;
  font-family: var(--font-display); font-size: .95rem; line-height: 1;
}
.step__title { margin-top: 1.3rem; font-size: var(--fs-h3); color: var(--ink); }
.step__desc { max-width: 15rem; margin: .45rem auto 0; font-size: var(--fs-sm); line-height: 1.85; color: var(--ink-2); }

.step--final .step__circle { background: var(--gold); }
.step__seal { position: absolute; inset: -.55rem; width: calc(100% + 1.1rem); height: calc(100% + 1.1rem); color: var(--gold); }

/* "وهنا نحتفل فيك!" hangs off the final step's 5rem circle. The a-down arrow is a
   190×223 shape with its tip at (6, 222): drawn 3rem wide, the tip lands on the
   seal's top-right edge, just outside the circle at 45°. */
.journey__note { position: absolute; inset: 0; pointer-events: none; }
.journey__note-arrow { position: absolute; left: 4.7rem; top: -3.3rem; width: 3rem; height: 3.52rem; color: var(--petrol); }
.journey__note-text {
  position: absolute; left: 7.9rem; top: -4.35rem;
  white-space: nowrap; transform: rotate(-4deg); transform-origin: left center;
}

@media (max-width: 859.98px) {
  .journey__steps { grid-template-columns: 1fr; gap: 1.75rem; max-width: 30rem; margin-inline: auto; }
  .journey__steps::before,
  .journey__steps::after {
    top: 2.5rem; bottom: 2.5rem; inset-inline: auto; inset-inline-start: calc(2.5rem - .225rem);
    width: .45rem; height: auto;
  }
  .journey__steps::after { transform: scaleY(var(--fill)); transform-origin: center top; }
  .step { display: grid; grid-template-columns: 5rem 1fr; column-gap: 1.25rem; align-items: center; text-align: start; }
  .step__circle { grid-row: span 2; margin: 0; }
  .step__title { margin-top: 0; align-self: end; }
  .step__desc { max-width: none; margin: .2rem 0 0; align-self: start; }
  .journey__note { display: none; }
}

/* ---------- Impact ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.stat {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--r-lg);
  background: var(--c-soft);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .3s var(--ease-out);
}
.stat:hover { box-shadow: var(--shadow-2); transition: transform .15s ease-out, box-shadow .3s var(--ease-out); }
.stat__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--c-strong); color: var(--ink);
}
.stat__icon .icon { width: 1.35rem; height: 1.35rem; }
.stat__value {
  margin-top: 1.4rem;
  font-family: var(--font-display); font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__plus { margin-inline-end: .1rem; color: var(--petrol); }
.stat__label { margin-top: .75rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-2); }
.stat__deco {
  position: absolute; z-index: -1; bottom: -1.75rem; inset-inline-end: -1.75rem;
  width: 7rem; height: 7rem; color: var(--c-strong); opacity: .55;
}

@media (max-width: 959.98px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .stats { gap: .75rem; }
  .stat { padding: 1.2rem 1rem; }
  .stat__label { font-size: .92rem; }
}

/* ---------- Join ---------- */
.join-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 2rem;
  padding: clamp(2rem, 1.25rem + 3.5vw, 4.25rem);
  border-radius: var(--r-xl); background: var(--sun-soft);
}
.join-card__content .section-title { margin-top: .9rem; }
.join-card__burst { position: absolute; z-index: -1; top: -2.5rem; inset-inline-end: 6%; width: 10rem; height: 8rem; color: var(--sun); }
.join-card__star { position: absolute; z-index: -1; bottom: 1.75rem; inset-inline-end: 34%; width: 3.2rem; height: 2.6rem; color: var(--gold); transform: rotate(-12deg); }

.subscribe {
  display: flex; align-items: center; gap: .5rem;
  max-width: 33rem; margin-top: 1.9rem; padding: .4rem;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.subscribe:focus-within {
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--petrol) 14%, transparent), var(--shadow-1);
}
.subscribe.is-invalid { border-color: #c2412d; }
.subscribe__field { display: flex; flex: 1; align-items: center; gap: .55rem; min-width: 0; padding-inline: .9rem .2rem; color: var(--ink-2); }
.subscribe__field .icon { width: 1.2rem; height: 1.2rem; }
.subscribe input { flex: 1; min-width: 0; padding-block: .55rem; border: 0; outline: 0; background: transparent; color: var(--ink); }
.subscribe input::placeholder { color: color-mix(in srgb, var(--ink-2) 85%, var(--surface)); opacity: 1; }
.subscribe input:focus-visible { outline: none; }

.subscribe__status { min-height: 1.6em; margin-top: .65rem; font-size: var(--fs-sm); color: var(--petrol); }
.subscribe__status.is-error { color: #a3341f; }
.join-card__hint { font-size: var(--fs-sm); color: var(--ink-2); }

.join-card__note {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  text-align: center; transform: rotate(-5deg);
}
.join-card__note .hand-note { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); }
/* points back at the form, which sits on the right in RTL */
.join-card__arrow { width: 4rem; height: 4rem; color: var(--petrol); transform: rotate(38deg); }

@media (max-width: 859.98px) {
  .join-card { grid-template-columns: 1fr; text-align: center; }
  .join-card__content .section-head, .subscribe { margin-inline: auto; }
  .join-card__note { flex-direction: row; justify-content: center; }
  .join-card__arrow { display: none; }
  .join-card__star { bottom: auto; top: 1.25rem; inset-inline-end: auto; inset-inline-start: 1.25rem; }
}
@media (max-width: 460px) {
  .subscribe { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: .5rem; }
  .subscribe__field { padding-inline: .6rem; }
  .subscribe .btn { width: 100%; }
}

/* ---------- Team ---------- */
/* A petrol stage: the title is written while the stage scrolls in, then stays pinned
   while the member cards travel up over it. */
/* The bottom padding keeps the title pinned until the last card has passed it */
.team__stage { position: relative; padding-bottom: 55vh; background: var(--petrol); color: #fff; }
.team__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.team__intro { position: absolute; top: calc(var(--header-h) + 1.75rem); inset-inline: 0; padding-inline: var(--gutter); text-align: center; }
.eyebrow--glass { background: rgb(255 255 255 / .12); color: #fff; }
.team__lead { margin-top: .75rem; font-size: var(--fs-lead); color: color-mix(in srgb, #fff 82%, var(--petrol)); }

.team__title { --draw: 1; --fillp: 1; width: min(94vw, 70rem); margin: 0; }
.team__title-svg { display: block; width: 100%; height: auto; overflow: visible; }
.team__title-svg text { font-family: var(--font-display); font-size: 300px; }
/* Same clean-outline trick as .fill-title: the knock-out layer (stage color) sits on the
   double-width stroke, so only its outer half shows and the letter seams disappear. */
.team__title-stroke {
  fill: none; stroke: var(--mint); stroke-width: 6; stroke-linejoin: round;
  stroke-dasharray: 2400; stroke-dashoffset: calc(2400 * (1 - var(--draw)));
}
.team__title-knock { fill: var(--petrol); }
.team__title-ink { fill: var(--bg); clip-path: inset(0 0 0 calc((1 - var(--fillp)) * 100%)); }

.team__cards {
  position: relative; z-index: 2;
  display: grid; gap: 15vh;
  width: min(60rem, 100% - 2 * var(--gutter)); margin: -46vh auto 0;
}
.member {
  position: relative; width: min(22rem, 100%);
  padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--r-lg);
  background: var(--c-soft); color: var(--ink);
  box-shadow: 0 30px 70px rgb(0 0 0 / .22), 0 8px 18px rgb(0 0 0 / .12);
  rotate: var(--card-rot, 0deg); /* straightens as it scrolls past (main.js) */
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
}
.member:hover { transition: transform .15s ease-out; }
.member:nth-child(odd) { justify-self: start; }
.member:nth-child(even) { justify-self: end; }

.member__top { display: flex; align-items: center; justify-content: space-between; }
.member__avatar {
  position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
  border-radius: 50%; background: var(--c-strong);
  font-family: var(--font-display); font-size: 1.35rem; color: var(--ink);
}
.member__ring {
  position: absolute; inset: -.55rem; width: calc(100% + 1.1rem); height: calc(100% + 1.1rem); max-width: none;
  color: var(--ink); opacity: .2;
}
/* Outlined numeral, echoing the outlined titles */
.member__num {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: var(--c-soft); -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 40%, var(--c-soft));
}
.member__role { margin-top: 1.3rem; font-family: var(--font-display); font-size: .95rem; color: var(--ink-2); }
.member__name { margin-top: .1rem; font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); color: var(--ink); }
.member__quote { margin-top: .6rem; padding-inline-end: 3rem; font-family: var(--font-note); font-size: 1.45rem; line-height: 1.45; color: var(--ink); }
.member__link {
  position: absolute; bottom: 1.25rem; inset-inline-end: 1.25rem;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgb(255 255 255 / .75); color: var(--petrol);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), translate .3s var(--ease-bounce);
}
.member__link:hover { background: var(--petrol); color: #fff; translate: 0 -3px; }
.member__link .icon { width: 1.1rem; height: 1.1rem; }

/* Mosaic hand-over between the light page and the petrol stage. main.js builds the
   cells and flips them (with a brief pastel flash) as the band scrolls through. */
.mosaic { display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); background: var(--from); }
.mosaic--in { --from: var(--bg); --to: var(--petrol); }
.mosaic--out { --from: var(--petrol); --to: var(--bg); }
.mosaic__cell { aspect-ratio: 1; transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
/* The 1px spread hides the hairline seams between sub-pixel cells */
.mosaic__cell.is-flash { background: var(--flash); box-shadow: 0 0 0 1px var(--flash); }
.mosaic__cell.is-on { background: var(--to); box-shadow: 0 0 0 1px var(--to); }

@media (max-width: 599.98px) {
  .team__cards { gap: 10vh; margin-top: -40vh; }
  .member { width: min(20rem, 92%); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq__list { display: grid; gap: .8rem; }

.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.faq-item:hover { border-color: color-mix(in srgb, var(--petrol) 35%, var(--line)); }
.faq-item[open] { border-color: var(--petrol); box-shadow: var(--shadow-1); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.35rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink);
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--petrol-tint); color: var(--petrol);
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.faq-item__icon .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.4; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--petrol); color: #fff; }
.faq-item__body { padding: 0 1.35rem 1.2rem; color: var(--ink-2); }

@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height .35s var(--ease-out), content-visibility .35s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(3.25rem, 2.5rem + 3vw, 4.75rem); background: var(--bg); }
.site-footer::before { /* the four supporting colors as one "energy strip" */
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: linear-gradient(to left,
    var(--mint) 0 25%, var(--sun) 25% 50%, var(--peach) 50% 75%, var(--lilac) 75% 100%);
}

.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer__about p { max-width: 26rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink-2); }
.site-footer__title { font-size: 1.15rem; color: var(--ink); }
.site-footer__col ul { display: grid; gap: .55rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--ink-2); }
.site-footer__col li { display: flex; align-items: center; gap: .5rem; }
.site-footer__col .icon { width: 1.05rem; height: 1.05rem; color: var(--petrol); }
.site-footer__col a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--petrol); text-decoration: underline; text-underline-offset: .3em; }

.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--petrol);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.social a:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.social .icon { width: 1.15rem; height: 1.15rem; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-2);
}

@media (max-width: 859.98px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion & interaction
   Pure decoration: the page reads the same without it, and
   prefers-reduced-motion switches it off at the end of this file.
   Pointer-driven values (--mx, --my, --rx, --ry, --gx, --gy, --tx, --ty)
   and scroll-driven ones (--scroll, --hero-p, --fill) come from main.js.
   ========================================================================== */

@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

@keyframes reveal-in   { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-tilt { from { opacity: 0; translate: 0 40px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes reveal-pop  { from { opacity: 0; translate: 0 16px; scale: .88; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes pop-in      { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes marker-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes oval-draw   { to { --sweep: 360deg; } }
@keyframes orbit-spin  { to { --spin: 360deg; } }
@keyframes spin        { to { rotate: 360deg; } }
@keyframes drift       { to { scale: 1.15; } }
@keyframes twinkle     { 50% { scale: 1.2; rotate: 12deg; } }
@keyframes wiggle      { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 75% { rotate: 10deg; } }
@keyframes swing       { 0%, 100% { translate: 0 0; } 30% { translate: -6px 0; } 65% { translate: 4px 0; } }
@keyframes spin-pop    { 0% { rotate: 0deg; scale: 1; } 50% { scale: 1.18; } 100% { rotate: 360deg; scale: 1; } }
@keyframes step-pop    { 0% { scale: .85; } 60% { scale: 1.12; } 100% { scale: 1; } }
@keyframes burst       { 0% { opacity: 0; scale: .4; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1.3; rotate: 30deg; } }
@keyframes shine       { from { translate: 120% 0; } to { translate: -120% 0; } }
@keyframes nudge-up    { 50% { translate: 0 -4px; } }

/* ---------- Scroll reveals (only when JS is on) ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: reveal-in .7s var(--ease-out) var(--delay, 0s) both; }
.js .reveal--tilt.is-visible { animation-name: reveal-tilt; animation-duration: .8s; }
.js .reveal--pop.is-visible { animation-name: reveal-pop; animation-timing-function: var(--ease-bounce); }

/* Above the fold: plays on first paint, no JS involved */
.rise { animation: reveal-in .6s var(--ease-out) var(--delay, 0s) both; }

/* ---------- Hand-drawn marks draw themselves ---------- */
.hero__title .marker__shape { clip-path: inset(0 0 0 100%); animation: marker-draw .9s var(--ease-out) .5s forwards; }
.js .section-head .marker__shape { clip-path: inset(0 0 0 100%); }
.js .section-head.is-visible .marker__shape { animation: marker-draw .8s var(--ease-out) .35s forwards; }

.circled__shape {
  -webkit-mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
  mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
}
.js .section-head .circled__shape { --sweep: 0deg; }
.js .section-head.is-visible .circled__shape { animation: oval-draw 1.1s var(--ease-out) .4s forwards; }
.js .section-head.is-visible .eyebrow { animation: pop-in .6s var(--ease-bounce) .05s both; }

.note-card__wave { clip-path: inset(0 0 0 100%); animation: marker-draw 1s var(--ease-out) .9s forwards; }
.hero__note { animation: reveal-in .6s var(--ease-out) 1.1s both; }
.hero__note-arrow { clip-path: inset(100% 0 0 0); animation: marker-draw .7s var(--ease-out) 1.2s forwards; }

/* ---------- Header ---------- */
/* Reading progress in the four supporting colors */
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px;
  background: linear-gradient(to left,
    var(--mint) 0 25%, var(--sun) 25% 50%, var(--peach) 50% 75%, var(--lilac) 75% 100%);
  transform: scaleX(var(--scroll, 0)); transform-origin: right center;
  pointer-events: none;
}

.site-nav__list a:not(.btn) { position: relative; }
.site-nav__list a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: .9rem; bottom: .3rem; height: 3px; border-radius: 3px;
  background: var(--mint); transform: scaleX(0); transform-origin: right center;
  transition: transform .3s var(--ease-out);
}
.site-nav__list a:not(.btn):hover::after { transform: scaleX(1); }

.brand__mark { transition: transform .45s var(--ease-bounce); }
.brand:hover .brand__mark { transform: rotate(0deg) scale(1.06); }
.brand:hover .brand__mark .icon { animation: twinkle .7s ease-in-out; }

/* ---------- Buttons: a light sweep on hover ---------- */
.btn--primary::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%);
  translate: 120% 0;
}
.btn--primary:hover::after { animation: shine .9s var(--ease-out); }

/* ---------- Hero: depth, drift and the turning orbit ---------- */
.hero__glow {
  translate: calc(var(--mx, 0) * -24px) calc(var(--my, 0) * -18px + var(--hero-p, 0) * 140px);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__content { translate: 0 calc(var(--hero-p, 0) * -40px); }

.orbit { translate: 0 calc(var(--hero-p, 0) * 50px); animation: orbit-spin 90s linear infinite; }
.orbit:hover { animation-play-state: paused; }
.orbit__ring { translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -6px); }
.orbit__chips { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 14px); }
.orbit__center { translate: calc(var(--mx, 0) * 9px) calc(var(--my, 0) * 8px); }
.orbit__deco--hatch { translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -12px); }
.orbit__deco--burst { translate: calc(var(--mx, 0) * 24px) calc(var(--my, 0) * 18px); animation: spin 26s linear infinite; }
.orbit__deco--squiggle { translate: calc(var(--mx, 0) * -20px) calc(var(--my, 0) * 14px); }
.seal__ring { animation: spin 18s linear infinite; }
.member__ring { animation: spin 30s linear infinite; }

.chip__inner { transition: scale .3s var(--ease-bounce), box-shadow .3s var(--ease-out); }
.chip:hover .chip__inner { scale: 1.12; box-shadow: var(--shadow-2); }
.chip:hover .chip__icon { animation: wiggle .5s ease-in-out; }

.avatar { transition: margin .35s var(--ease-out), transform .35s var(--ease-bounce); }
.hero__community:hover .avatar { margin-inline-start: -.2rem; }
.hero__community:hover .avatar:first-child { margin-inline-start: 0; }
.avatar:hover { transform: translateY(-4px) scale(1.08); }

/* ---------- Programs ---------- */
.program__deco { transition: scale .4s var(--ease-out); }
.program:hover .program__deco { scale: 1.1; animation: swing 1s ease-in-out; }

/* ---------- Journey: steps light up as the track reaches them ---------- */
.step__circle { transition: transform .35s var(--ease-bounce), background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.step__num { transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.js .step:not(.is-active) .step__circle { background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 .5rem var(--section-bg, var(--bg)), inset 0 0 0 2px var(--line); }
.js .step:not(.is-active) .step__num { background: var(--line); color: var(--ink-2); }
.js .step:not(.is-active) .step__seal { opacity: .3; }
.js .step.is-active .step__circle { animation: step-pop .55s var(--ease-bounce); }
.step:hover .step__circle { transform: translateY(-4px); }
.step:hover .step__circle > .icon { animation: wiggle .5s ease-in-out; }
.step__seal { animation: spin 24s linear infinite; transition: opacity .4s var(--ease-out); }

.step__burst {
  position: absolute; z-index: -1; inset: -60%; width: 220%; height: 220%; max-width: none;
  color: var(--sun); opacity: 0; pointer-events: none;
}
.js .step--final.is-active .step__burst { animation: burst 1.2s var(--ease-out) .1s; }

.js .journey__note { opacity: 0; translate: 0 10px; transition: opacity .5s var(--ease-out), translate .5s var(--ease-out); }
.js .journey:has(.step--final.is-active) .journey__note { opacity: 1; translate: 0 0; }

/* ---------- Impact ---------- */
.stat:hover .stat__icon { animation: spin-pop .7s var(--ease-bounce); }
.stat__value { transform-origin: right center; transition: scale .3s var(--ease-bounce); }
.stat:hover .stat__value { scale: 1.05; }
.stat__deco { transition: rotate .6s var(--ease-out), scale .6s var(--ease-out); }
.stat:hover .stat__deco { rotate: 25deg; scale: 1.15; }

/* ---------- Join, FAQ, footer ---------- */
.join-card__burst { animation: spin 40s linear infinite; }
.join-card__star { animation: twinkle 3.2s ease-in-out infinite; }

.faq-item__icon { transition: transform .3s var(--ease-out), rotate .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out); }
.faq-item:not([open]) summary:hover .faq-item__icon { rotate: 90deg; }

.social a { transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), translate .3s var(--ease-bounce); }
.social a:hover { translate: 0 -3px; }

/* ---------- Back to top: the ring is the reading progress ---------- */
.to-top {
  position: fixed; z-index: 40; bottom: max(1.25rem, env(safe-area-inset-bottom)); inset-inline-end: 1.25rem;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--petrol); color: #fff; box-shadow: 0 10px 24px rgb(20 99 86 / .3);
  opacity: 0; translate: 0 1rem; scale: .8; pointer-events: none;
  transition: opacity .3s var(--ease-out), translate .3s var(--ease-out), scale .35s var(--ease-bounce), background-color .25s var(--ease-out);
}
.to-top.is-visible { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.to-top:hover { background: var(--petrol-hover); }
.to-top:hover .icon { animation: nudge-up .6s ease-in-out; }
.to-top .icon { width: 1.25rem; height: 1.25rem; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 3; }
.to-top__track { stroke: rgb(255 255 255 / .2); }
.to-top__bar { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--scroll, 0) * 100); }

/* Phones: the orbit is a static stack there, so nothing needs to turn */
@media (max-width: 559.98px) {
  .orbit { animation: none; translate: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; animation: none !important; }
  .marker__shape, .note-card__wave, .hero__note-arrow { clip-path: none !important; }
  .js .section-head .circled__shape { --sweep: 360deg; }
  .js .journey__note { opacity: 1; translate: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
