:root {
  --paper: #fbf7ed;
  --paper-deep: #f3ecdd;
  --ink: #585858;
  --ink-soft: #666666;
  --line: rgba(88, 88, 88, 0.24);
  --gold: #d09858;
  --gold-soft: #f0d8bc;
  --on-gold: #333333;
  --mint: #e5ddd4;
  --blush: #e3dfdc;
  --cream: #fffdf8;
  --white: #fff;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-arabic: "Noto Kufi Arabic", sans-serif;
  --radius-sm: 7px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container: 1200px;
  --z-base: 0;
  --z-header: 40;
  --z-menu: 50;
  --z-cta: 100;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(208, 152, 88, 0.12), transparent 19rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding-block: 112px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { color: var(--cream); background: var(--gold); }
* { scrollbar-color: var(--gold) var(--paper-deep); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--paper-deep); }
*::-webkit-scrollbar-thumb { border: 2px solid var(--paper-deep); border-radius: 999px; background: var(--gold); }
.scroll-progress { position: fixed; z-index: 200; inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.site-header { position: sticky; top: 0; z-index: var(--z-header); padding: 14px 0 0; pointer-events: none; }
.nav-shell {
  min-height: 68px;
  padding: 8px 9px 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 247, 237, 0.94);
  box-shadow: 0 12px 34px rgba(88, 88, 88, 0.1), 0 20px 0 -16px rgba(208, 152, 88, 0.62);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { position: relative; width: 46px; height: 46px; overflow: hidden; border-radius: 12px; background: var(--white); outline: 1px solid rgba(0, 0, 0, 0.08); }
.brand-mark img { position: absolute; width: 82px; max-width: none; height: auto; left: -16px; top: -4px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em; }
.brand-copy small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; }
.nav-menu { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 3vw, 42px); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { position: relative; padding: 12px 0; font-size: 13px; font-weight: 600; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 7px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease-out; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out;
}
.button:hover { background: #c28a4c; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12); transform: translateY(-2px); }
.button:active { transform: scale(0.96); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.button-small { min-height: 48px; padding: 10px 18px; font-size: 13px; }
.button-large { min-height: 60px; padding-inline: 32px; font-size: 16px; }
.button-cream { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-cream:hover { background: var(--white); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 700; }

.hero { position: relative; isolation: isolate; min-height: calc(100dvh - 82px); padding: clamp(70px, 10vh, 120px) 0 90px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr); align-items: center; gap: clamp(48px, 8vw, 105px); }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 700px);
  aspect-ratio: 1;
  right: -14%;
  top: 50%;
  border-radius: 50%;
  background: url("assets/rihlya-study-hero.jpg") center / cover no-repeat;
  opacity: .16;
  mix-blend-mode: multiply;
  transform: translateY(-50%) rotate(2deg) scale(1.04);
  -webkit-mask-image: linear-gradient(105deg, transparent 2%, #000 36%, #000 82%, transparent 100%);
  mask-image: linear-gradient(105deg, transparent 2%, #000 36%, #000 82%, transparent 100%);
  pointer-events: none;
}
.eyebrow { width: fit-content; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.35); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(208, 152, 88, 0.2); }
.hero h1 { max-width: 780px; margin-bottom: 28px; font-family: var(--font-display); font-size: clamp(42px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.045em; }
.marker { position: relative; z-index: 0; white-space: nowrap; }
.marker::before { content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.06em; height: 0.36em; background: var(--gold); transform: rotate(-1.4deg); border-radius: 2px; }
.marker-soft::before { background: var(--gold-soft); }
.hero-lead { max-width: 630px; margin-bottom: 30px; color: var(--ink-soft); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.reassurance { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }

.hero-board { position: relative; min-height: 560px; }
.note { position: absolute; padding: 26px; border-radius: var(--radius-md); outline: 1px solid rgba(0,0,0,.1); box-shadow: 0 16px 35px rgba(88, 88, 88, .1); }
.note-index, .mini-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.note-arabic { z-index: 2; inset: 8% 3% auto 14%; min-height: 218px; background: var(--gold-soft); transform: rotate(2.5deg); }
.note-arabic p { margin: 22px 0 13px; font-family: var(--font-arabic); font-size: clamp(24px, 3vw, 36px); line-height: 1.7; }
.note-arabic small { color: var(--ink-soft); font-size: 12px; }
.note-book { z-index: 3; left: 1%; bottom: 10%; width: 56%; min-height: 230px; background: var(--mint); transform: rotate(-4deg); }
.note-book strong { display: block; margin-top: 24px; font-family: var(--font-display); font-size: 16px; line-height: 1.55; }
.book-lines { margin-top: 25px; display: grid; gap: 10px; }
.book-lines i { display: block; width: 80%; height: 2px; background: var(--ink); opacity: .6; }
.book-lines i:nth-child(2) { width: 55%; }.book-lines i:nth-child(3) { width: 70%; }
.note-route { z-index: 4; right: 0; bottom: 2%; width: 51%; min-height: 170px; background: var(--blush); transform: rotate(3deg); }
.route-line { margin-top: 26px; display: flex; align-items: center; }
.route-line b { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; }
.route-line i { flex: 1; height: 1px; background: var(--ink); }
.note-route p { margin: 13px 0 0; font-size: 12px; }
.seal { position: absolute; z-index: 5; right: 4%; top: 43%; width: 112px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); transform: rotate(-8deg); }
.seal::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--ink); border-radius: 50%; opacity: .5; }
.seal span { font-family: var(--font-arabic); font-size: 20px; }.seal small { font-size: 8px; letter-spacing: .2em; }
.scribble { position: absolute; fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .55; }
.scribble-top { width: 155px; right: 1%; top: -2%; }.scribble-bottom { width: 120px; left: 17%; bottom: -4%; }

.proof-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.25); }
.proof-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.proof-grid p { margin: 0; padding: 20px 30px; display: flex; align-items: center; justify-content: center; gap: 14px; border-left: 1px solid var(--line); }
.proof-grid p:last-child { border-right: 1px solid var(--line); }
.proof-grid strong { font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; }.proof-grid span { max-width: 96px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }

.section-heading { margin-bottom: 56px; }
.section-heading-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading.centered { max-width: 790px; margin-inline: auto; text-align: center; }
.section-heading.centered > p:last-child { max-width: 600px; margin: 25px auto 0; color: var(--ink-soft); font-size: 18px; }
.kicker { margin-bottom: 18px; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.kicker-light { color: var(--on-gold); opacity: .72; }
h2 { margin-bottom: 0; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 58px); line-height: 1.13; letter-spacing: -.04em; }
.heading-copy { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.heading-copy p:last-child { margin-bottom: 0; }

.telegram-callout { padding: 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border: 1px solid var(--ink); border-radius: var(--radius-lg); background: var(--cream); }
.telegram-callout .kicker { margin-bottom: 7px; }.telegram-callout h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.03em; }.telegram-callout p:last-child { max-width: 730px; margin-bottom: 0; color: var(--ink-soft); }
.telegram-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--gold); }
.telegram-icon svg { width: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }

.about, .process, .groups, .reviews, .faq { position: relative; isolation: isolate; }
.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 390px;
  right: max(-150px, calc((100vw - var(--container)) / -2 - 40px));
  top: 52px;
  border: 1px solid rgba(208,152,88,.2);
  border-bottom: 0;
  border-radius: 170px 170px 0 0;
  box-shadow: 0 0 0 34px rgba(208,152,88,.035), 0 0 0 35px rgba(88,88,88,.08);
  transform: rotate(5deg);
  pointer-events: none;
}
.about::after {
  content: "رِحْلَة";
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 4px;
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: clamp(72px, 10vw, 148px);
  line-height: 1;
  opacity: .055;
  transform: rotate(-7deg);
  pointer-events: none;
}

.program-section { position: relative; isolation: isolate; overflow: hidden; background: var(--paper-deep); border-block: 1px solid var(--line); }
.program-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 590px);
  aspect-ratio: 1;
  left: -13%;
  top: -14%;
  background: url("assets/rihlya-study-hero.jpg") center / cover no-repeat;
  opacity: .055;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(115deg, #000 22%, #000 58%, transparent 90%);
  mask-image: linear-gradient(115deg, #000 22%, #000 58%, transparent 90%);
  transform: rotate(-6deg);
  pointer-events: none;
}
.program-section::after {
  content: "ا  ب  ت";
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: -42px;
  color: var(--gold);
  font-family: var(--font-arabic);
  font-size: clamp(82px, 11vw, 170px);
  letter-spacing: .08em;
  opacity: .065;
  transform: rotate(-4deg);
  pointer-events: none;
}
.program-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: stretch; }
.program-card { grid-column: span 2; min-height: 340px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--cream); }
.program-card:nth-child(4) { grid-column: 2 / span 2; }.program-card:nth-child(5) { grid-column: 4 / span 2; }
.card-mint { background: var(--mint); }.card-blush { background: var(--blush); }.card-yellow { background: var(--gold-soft); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }.card-top span[lang="ar"] { font-family: var(--font-arabic); font-size: 13px; letter-spacing: 0; }
.card-icon { width: 50px; height: 50px; margin: 48px 0 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.program-card h3 { margin-bottom: 9px; font-family: var(--font-display); font-size: 19px; letter-spacing: -.03em; }.program-card p { margin: auto 0 0; color: var(--ink-soft); font-size: 14px; }

.steps-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps-list li { min-height: 130px; display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); transition: background-color 180ms ease-out; }
.steps-list li > * { transition: transform 180ms ease-out; }
.steps-list li:hover { background: rgba(255,255,255,.25); }
.steps-list li:hover > * { transform: translateX(16px); }
.steps-list li > span { font-family: var(--font-display); font-size: 13px; font-variant-numeric: tabular-nums; }.steps-list h3 { margin-bottom: 5px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }.steps-list p { margin: 0; color: var(--ink-soft); }
.process::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 330px;
  right: -88px;
  top: 42%;
  border: 1px solid rgba(88,88,88,.1);
  border-bottom: 0;
  border-radius: 145px 145px 0 0;
  box-shadow: inset 0 0 0 28px var(--paper), inset 0 0 0 29px rgba(208,152,88,.16);
  transform: translateY(-50%) rotate(-7deg);
  pointer-events: none;
}
.process::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 11px;
  aspect-ratio: 1;
  left: -22px;
  top: 34%;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 30px 48px 0 rgba(208,152,88,.35), -4px 92px 0 rgba(88,88,88,.16);
  pointer-events: none;
}

.journey-section { position: relative; isolation: isolate; padding-block: 108px; overflow: hidden; color: var(--on-gold); background: var(--gold); }
.journey-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24% -8% -28% 44%;
  background: url("assets/rihlya-study-journey.jpg") center / cover no-repeat;
  opacity: .18;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%);
  pointer-events: none;
}
.journey-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.journey-grid > div:first-child > p:not(.kicker) { max-width: 520px; margin: 26px 0 30px; color: rgba(63,63,63,.82); font-size: 18px; }
.volume-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 15px; }
.volume { min-height: 250px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(63,63,63,.38); border-radius: var(--radius-md); }
.volume small { font-size: 8px; letter-spacing: .16em; }.volume strong { font-family: var(--font-display); font-size: 86px; line-height: 1; font-variant-numeric: tabular-nums; }.volume span { font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.volume-one { background: rgba(255,255,255,.18); }.volume-two { color: var(--on-gold); background: var(--paper); border-color: var(--paper); transform: translateY(-16px); }.volume-three { background: rgba(88,88,88,.08); }.path-arrow { color: var(--on-gold); font-size: 22px; }

.filter-panel { margin-bottom: 22px; padding: 22px; display: flex; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.3); }
.filter-group { display: flex; align-items: center; gap: 16px; }.filter-label { font-size: 12px; font-weight: 800; }.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out; }
.filter-button:hover { background: var(--paper-deep); }.filter-button:active { transform: scale(.96); }.filter-button.active { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.groups-count { margin-bottom: 18px; color: var(--ink-soft); font-size: 12px; }.groups-count span { font-variant-numeric: tabular-nums; }
.groups::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  right: -16%;
  top: 2%;
  background: url("assets/rihlya-study-journey.jpg") center / cover no-repeat;
  opacity: .06;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 42%, #000 84%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 5%, #000 42%, #000 84%, transparent 100%);
  transform: rotate(7deg);
  pointer-events: none;
}
.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card {
  --card-tint: rgba(208,152,88,.13);
  position: relative;
  isolation: isolate;
  min-height: 390px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card-tint), transparent 42%), var(--cream);
  box-shadow: 0 0 0 1px rgba(88,88,88,.18), 0 14px 34px rgba(88,88,88,.07);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, opacity 180ms ease-out;
}
.group-card[data-level="2"] { --card-tint: rgba(229,221,212,.68); }
.group-card[data-level="3"] { --card-tint: rgba(240,216,188,.5); }
.group-card::before { content: attr(data-level); position: absolute; z-index: -1; right: 14px; top: 42px; color: var(--ink); font-family: var(--font-display); font-size: 116px; font-weight: 800; line-height: 1; opacity: .045; pointer-events: none; }
.group-card:hover, .group-card:focus-within { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(88,88,88,.24), 0 22px 44px rgba(88,88,88,.13); }
.group-card[hidden] { display: none; }
.group-card-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.group-volume { min-height: 32px; padding: 7px 10px; display: inline-flex; align-items: center; border-radius: 7px; background: rgba(255,255,255,.62); box-shadow: 0 0 0 1px rgba(88,88,88,.11); }
.status { min-height: 32px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; color: var(--ink); background: rgba(240,216,188,.72); letter-spacing: 0; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(208,152,88,.18); transition: box-shadow 150ms ease-out; }
.group-card > div:nth-child(2) { position: relative; z-index: 1; margin-top: 38px; }
.group-stage { margin: 0 0 5px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.group-card h3 { margin-bottom: 25px; font-family: var(--font-display); font-size: clamp(24px, 2vw, 29px); line-height: 1.2; letter-spacing: -.03em; }
.group-card dl { position: relative; z-index: 1; margin: auto 0 16px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.48); box-shadow: 0 0 0 1px rgba(88,88,88,.11); }
.group-card dl div { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(88,88,88,.14); font-size: 12px; }
.group-card dl div:last-child { border-bottom: 0; }
.group-card dt { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.group-card dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.group-link { position: relative; z-index: 1; min-height: 52px; padding: 6px 6px 6px 17px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: var(--paper); background: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.14); font-size: 13px; font-weight: 800; transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out; }
.group-link span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; color: var(--ink); background: var(--gold); font-size: 17px; transition: transform 160ms ease-out, background-color 160ms ease-out; }
.group-link:hover { color: var(--ink); background: var(--gold); box-shadow: 0 5px 0 rgba(0,0,0,.12); transform: translateY(-2px); }
.group-link:hover span { background: var(--paper); transform: translate(2px,-2px); }
.group-link:active { transform: scale(.96); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--ink); border-radius: var(--radius-md); }.empty-state h3 { font-family: var(--font-display); }.empty-state p { color: var(--ink-soft); }

.level-help { margin-bottom: 112px; padding: 48px; display: grid; grid-template-columns: 1fr .8fr auto; align-items: center; gap: 50px; color: var(--on-gold); background: var(--gold); border-radius: var(--radius-lg); }
.level-help h2 { font-size: clamp(30px, 3.2vw, 44px); }.level-help p { margin: 0; color: rgba(63,63,63,.82); }

.reviews { overflow: hidden; border-top: 1px solid var(--line); }
.reviews::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 310px;
  left: -120px;
  bottom: 36px;
  border: 1px solid rgba(208,152,88,.22);
  border-bottom: 0;
  border-radius: 132px 132px 0 0;
  box-shadow: 0 0 0 26px rgba(208,152,88,.04), 0 0 0 27px rgba(88,88,88,.08);
  transform: rotate(-8deg);
  pointer-events: none;
}
.review-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }.review-layout > div > p:not(.kicker) { max-width: 540px; margin: 25px 0 30px; color: var(--ink-soft); font-size: 18px; }
.reviews-board { position: relative; min-height: 420px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); border-radius: var(--radius-lg); background: var(--blush); box-shadow: 18px 18px 0 var(--gold-soft); transform: rotate(1.2deg); transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
.reviews-board:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 22px 22px 0 var(--gold-soft); }.reviews-stamp { width: 130px; aspect-ratio: 1; display: grid; place-content: center; justify-self: end; border: 1px dashed var(--ink); border-radius: 50%; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .12em; transform: rotate(7deg); }.reviews-board blockquote { max-width: 600px; margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.35; letter-spacing: -.04em; }.reviews-meta { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--ink); font-size: 12px; font-weight: 800; }

.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }.faq-list summary { min-height: 82px; padding: 20px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-family: var(--font-display); font-size: clamp(16px, 2vw, 21px); letter-spacing: -.025em; cursor: pointer; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary span { position: relative; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; }.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 1px; background: var(--ink); transition: transform 180ms ease-out; }.faq-list summary span::after { transform: rotate(90deg); }.faq-list details[open] summary span::after { transform: rotate(0); }.faq-list details p { max-width: 720px; margin: -4px 0 25px; color: var(--ink-soft); }

.final-cta { position: relative; padding-block: 115px; overflow: hidden; color: var(--on-gold); background: var(--gold); }
.final-cta::before, .final-cta::after { content: "رِحْلَة"; position: absolute; font-family: var(--font-arabic); font-size: 180px; opacity: .09; transform: rotate(-10deg); }.final-cta::before { left: -60px; top: -70px; }.final-cta::after { right: -50px; bottom: -100px; }
.final-cta-inner { position: relative; z-index: 1; text-align: center; }.arabic-kicker { margin-bottom: 20px; font-family: var(--font-arabic); font-size: 22px; }.final-cta h2 { color: var(--ink); font-size: clamp(42px, 6vw, 76px); }.final-cta-inner > p:not(.arabic-kicker) { max-width: 660px; margin: 25px auto 30px; color: rgba(88,88,88,.88); font-size: 18px; }.final-cta small { display: block; margin-top: 14px; color: rgba(88,88,88,.78); }
.final-cta .button { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.final-cta .button:hover { background: #484848; }

.site-footer { padding: 70px 0 24px; color: var(--paper); background: #444444; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 60px; padding-bottom: 60px; }.site-footer .brand-mark { background: var(--paper); }.footer-brand p { margin: 20px 0 0; color: rgba(251,247,237,.62); font-size: 13px; }.footer-links { display: grid; align-content: start; gap: 12px; font-size: 13px; }.footer-links strong { margin-bottom: 8px; color: var(--gold); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }.footer-links a { color: rgba(251,247,237,.72); }.footer-links a:hover { color: var(--paper); }.footer-arabic { margin: 0; align-self: center; font-family: var(--font-arabic); font-size: clamp(50px, 8vw, 96px); text-align: right; opacity: .16; }.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(251,247,237,.16); color: rgba(251,247,237,.48); font-size: 11px; }
.mobile-cta { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 90px; }
  .hero-copy { max-width: 760px; }.hero-board { width: min(100%, 600px); margin-inline: auto; }
  .hero::before { width: min(92vw, 690px); right: -25%; top: 66%; opacity: .14; }
  .section-heading-split { grid-template-columns: 1fr; gap: 30px; align-items: start; }.heading-copy { max-width: 700px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }.program-card, .program-card:nth-child(4), .program-card:nth-child(5) { grid-column: auto; }.program-card:last-child { grid-column: 1 / -1; min-height: 290px; }
  .journey-grid { grid-template-columns: 1fr; }.groups-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { flex-direction: column; }
  .level-help { grid-template-columns: 1fr 1fr; }.level-help .button { grid-column: 1 / -1; width: fit-content; }
  .review-layout { grid-template-columns: 1fr; gap: 50px; }.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }.footer-arabic { display: none; }
  .program-section::before { width: 72vw; left: -35%; opacity: .045; }
  .groups::before { width: 70vw; right: -38%; opacity: .05; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding-block: 78px; }
  .site-header { padding-top: 8px; }.nav-shell { min-height: 60px; padding: 6px 8px 6px 10px; border-radius: 15px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 10px; }.brand-mark img { width: 75px; left: -15px; top: -4px; }.brand-copy strong { font-size: 13px; }.brand-copy small { font-size: 9px; }
  .menu-toggle { position: relative; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle span { width: 22px; height: 1.5px; background: currentColor; transition: transform 180ms ease-out; }.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-menu { position: absolute; z-index: var(--z-menu); left: 12px; right: 12px; top: calc(100% + 8px); padding: 14px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 20px 45px rgba(88,88,88,.18); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms; }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }.nav-links { display: grid; gap: 0; }.nav-links a { min-height: 48px; display: flex; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }.nav-links a::after { display: none; }.nav-menu .button { width: 100%; }
  .hero { padding: 70px 0 60px; gap: 55px; }.hero h1 { font-size: clamp(37px, 11vw, 54px); }.hero-lead { font-size: 17px; }.hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }.hero-actions .button { width: 100%; }.hero-actions .text-link { width: fit-content; }.hero-board { min-height: 440px; }
  .hero::before { width: 118vw; right: -56%; top: 70%; opacity: .12; }
  .note { padding: 20px; }.note-arabic { left: 8%; min-height: 180px; }.note-arabic p { font-size: 22px; }.note-book { width: 60%; min-height: 195px; }.note-book strong { font-size: 13px; }.note-route { width: 54%; min-height: 145px; }.seal { width: 88px; }.scribble { display: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }.proof-grid p { min-height: 90px; padding: 14px; border-bottom: 1px solid var(--line); }.proof-grid p:nth-child(odd) { border-left: 0; }.proof-grid p:last-child { border-right: 0; }.proof-grid strong { font-size: 24px; }
  .section-heading { margin-bottom: 38px; }.section-heading.centered { text-align: left; }.section-heading.centered > p:last-child { margin-inline: 0; }.kicker { font-size: 10px; }.heading-copy, .section-heading.centered > p:last-child { font-size: 16px; }
  .telegram-callout { padding: 24px; grid-template-columns: auto 1fr; gap: 18px; }.telegram-callout .text-link { grid-column: 1 / -1; }.telegram-icon { width: 50px; height: 50px; border-radius: 13px; }
  .about::before { width: 190px; height: 250px; right: -118px; top: 35%; border-radius: 105px 105px 0 0; box-shadow: 0 0 0 22px rgba(208,152,88,.03), 0 0 0 23px rgba(88,88,88,.07); }
  .about::after { right: -12%; bottom: 12px; opacity: .04; }
  .program-section::before { width: 118vw; left: -68%; top: 2%; opacity: .04; }
  .program-section::after { right: -42px; bottom: -22px; opacity: .045; }
  .program-grid { grid-template-columns: 1fr; }.program-card, .program-card:last-child { grid-column: auto; min-height: 310px; }.program-card:last-child { min-height: 310px; }
  .steps-list li { grid-template-columns: 50px 1fr; min-height: 120px; }.steps-list li:hover > * { transform: none; }
  .process::before { width: 170px; height: 225px; right: -118px; top: 48%; border-radius: 94px 94px 0 0; box-shadow: inset 0 0 0 18px var(--paper), inset 0 0 0 19px rgba(208,152,88,.13); }
  .process::after { left: -6px; opacity: .7; }
  .journey-section { padding-block: 78px; }.journey-section::before { inset: 30% -55% -12% 8%; opacity: .13; }.journey-grid { gap: 52px; }.volume-path { grid-template-columns: 1fr; gap: 10px; }.volume { min-height: 145px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: end; }.volume small { grid-column: 1 / -1; align-self: start; }.volume strong { font-size: 58px; }.volume-two { transform: none; }.path-arrow { transform: rotate(90deg); justify-self: center; }
  .filter-panel { padding: 18px; }.filter-group { display: grid; }.filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }.filter-buttons::-webkit-scrollbar { display: none; }.filter-button { flex: 0 0 auto; }
  .groups-grid { grid-template-columns: 1fr; gap: 16px; }.group-card { min-height: 350px; padding: 18px; }.group-card > div:nth-child(2) { margin-top: 30px; }.group-card::before { right: 8px; top: 40px; font-size: 104px; }.group-card h3 { font-size: 25px; }.group-link { min-height: 54px; }
  .groups::before { width: 118vw; right: -72%; top: 0; opacity: .045; }
  .level-help { margin-bottom: 78px; padding: 32px 24px; grid-template-columns: 1fr; gap: 24px; border-radius: 18px; }.level-help .button { grid-column: auto; width: 100%; }
  .reviews-board { min-height: 350px; padding: 28px; box-shadow: 10px 10px 0 var(--gold-soft); }.reviews-stamp { width: 105px; }.review-layout > div > p:not(.kicker) { font-size: 16px; }
  .reviews::before { width: 150px; height: 205px; left: -100px; bottom: 22%; border-radius: 84px 84px 0 0; }
  .faq-list summary { min-height: 74px; font-family: var(--font-body); font-weight: 700; }
  .final-cta { padding-block: 85px; }.final-cta h2 { font-size: clamp(37px, 10vw, 56px); }.final-cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px 24px; }.footer-brand { grid-column: 1 / -1; }.footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mobile-cta { position: fixed; z-index: var(--z-cta); left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; color: var(--on-gold); background: var(--gold); box-shadow: 0 12px 30px rgba(88,88,88,.3); font-size: 14px; font-weight: 800; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }.marker { white-space: normal; }.hero-board { min-height: 400px; }.note-arabic { right: 0; left: 4%; }.note-book { left: 0; }.note-route { right: 0; }.footer-grid { grid-template-columns: 1fr; }.footer-brand { grid-column: auto; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .site-header { position: relative; }.hero { min-height: auto; padding-top: 50px; }.mobile-cta { left: auto; width: 220px; }
}

/* Motion language: the study board assembles, then the long learning path unfolds. */
.motion-ready .site-header { animation: nav-arrive 700ms cubic-bezier(.16,1,.3,1) both; }
.motion-ready .hero::before { animation: hero-art-breathe 13s 1.2s ease-in-out infinite alternate; }
.motion-ready .journey-section::before { animation: journey-art-drift 18s ease-in-out infinite alternate; }
.motion-ready .hero-copy > * { animation: hero-line-arrive 720ms cubic-bezier(.16,1,.3,1) both; }
.motion-ready .hero-copy > :nth-child(1) { animation-delay: 80ms; }
.motion-ready .hero-copy > :nth-child(2) { animation-delay: 150ms; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: 230ms; }
.motion-ready .hero-copy > :nth-child(4) { animation-delay: 310ms; }
.motion-ready .hero-copy > :nth-child(5) { animation-delay: 390ms; }
.motion-ready .hero .marker::before { transform-origin: left center; animation: marker-draw 760ms 620ms cubic-bezier(.16,1,.3,1) both; }

.motion-ready .note-arabic { animation: note-one-arrive 900ms 260ms cubic-bezier(.16,1,.3,1) both, note-one-drift 5.8s 1.2s ease-in-out infinite alternate; }
.motion-ready .note-book { animation: note-two-arrive 900ms 390ms cubic-bezier(.16,1,.3,1) both, note-two-drift 6.6s 1.35s ease-in-out infinite alternate; }
.motion-ready .note-route { animation: note-three-arrive 900ms 520ms cubic-bezier(.16,1,.3,1) both, note-three-drift 6.2s 1.5s ease-in-out infinite alternate; }
.motion-ready .seal { animation: seal-arrive 720ms 720ms cubic-bezier(.16,1,.3,1) both, seal-drift 7s 1.45s ease-in-out infinite alternate; }
.motion-ready .scribble path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: sketch-draw 1.2s 850ms cubic-bezier(.16,1,.3,1) forwards; }
.motion-ready .hero-board:not(.is-in-view) .note,
.motion-ready .hero-board:not(.is-in-view) .seal,
.motion-ready.page-hidden .hero-board .note,
.motion-ready.page-hidden .hero-board .seal { animation-play-state: paused; }

.motion-ready .reveal {
  transition-property: opacity, transform, filter, clip-path, box-shadow;
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(30px); filter: blur(6px); clip-path: inset(0 0 12% 0); }
.motion-ready .reveal--side:not(.is-visible) { transform: translateX(-34px); clip-path: inset(0 8% 0 0); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); clip-path: inset(0); }
.filter-enter { animation: filter-card-arrive 420ms cubic-bezier(.16,1,.3,1) both; }
.proof-grid strong.counting { animation: number-emphasis 420ms cubic-bezier(.16,1,.3,1); }
.group-card:hover .status i, .group-card:focus-within .status i { box-shadow: 0 0 0 5px rgba(208,152,88,.12); }
.motion-ready .reveal.is-visible .marker::before { transform-origin: left center; animation: marker-draw 680ms 280ms cubic-bezier(.16,1,.3,1) both; }
.reviews-board:hover .reviews-stamp { animation: stamp-settle 360ms cubic-bezier(.16,1,.3,1); }
.faq-list details[open] > p { animation: answer-arrive 260ms cubic-bezier(.16,1,.3,1) both; }

@keyframes nav-arrive { from { opacity: 0; transform: translateY(-18px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes hero-art-breathe { from { transform: translateY(-50%) rotate(2deg) scale(1.04); } to { transform: translate3d(-10px, calc(-50% - 8px), 0) rotate(0deg) scale(1.07); } }
@keyframes journey-art-drift { from { transform: translate3d(0,0,0) scale(1.02); } to { transform: translate3d(-18px,-10px,0) scale(1.055); } }
@keyframes hero-line-arrive { from { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 35% 0); } to { opacity: 1; transform: translateY(0); clip-path: inset(0); } }
@keyframes marker-draw { from { transform: rotate(-1.4deg) scaleX(0); } to { transform: rotate(-1.4deg) scaleX(1); } }
@keyframes note-one-arrive { from { opacity: 0; transform: translate3d(30px,42px,0) rotate(9deg) scale(.9); filter: blur(8px); } to { opacity: 1; transform: translate3d(0,0,0) rotate(2.5deg) scale(1); filter: blur(0); } }
@keyframes note-two-arrive { from { opacity: 0; transform: translate3d(-36px,38px,0) rotate(-11deg) scale(.9); filter: blur(8px); } to { opacity: 1; transform: translate3d(0,0,0) rotate(-4deg) scale(1); filter: blur(0); } }
@keyframes note-three-arrive { from { opacity: 0; transform: translate3d(38px,30px,0) rotate(10deg) scale(.9); filter: blur(8px); } to { opacity: 1; transform: translate3d(0,0,0) rotate(3deg) scale(1); filter: blur(0); } }
@keyframes seal-arrive { from { opacity: 0; transform: rotate(-25deg) scale(.65); filter: blur(5px); } to { opacity: 1; transform: rotate(-8deg) scale(1); filter: blur(0); } }
@keyframes note-one-drift { from { transform: translate3d(0,0,0) rotate(2.5deg); } to { transform: translate3d(0,-8px,0) rotate(1deg); } }
@keyframes note-two-drift { from { transform: translate3d(0,0,0) rotate(-4deg); } to { transform: translate3d(5px,7px,0) rotate(-2.8deg); } }
@keyframes note-three-drift { from { transform: translate3d(0,0,0) rotate(3deg); } to { transform: translate3d(-6px,-5px,0) rotate(4.2deg); } }
@keyframes seal-drift { from { transform: translate3d(0,0,0) rotate(-8deg); } to { transform: translate3d(0,-7px,0) rotate(-3deg); } }
@keyframes sketch-draw { to { stroke-dashoffset: 0; } }
@keyframes filter-card-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(3px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes number-emphasis { 0% { transform: translateY(7px); opacity: .3; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes stamp-settle { 0% { transform: rotate(7deg) scale(1); } 50% { transform: rotate(2deg) scale(.96); } 100% { transform: rotate(7deg) scale(1); } }
@keyframes answer-arrive { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}
