:root { --y: #f6e016; --k: #000; --w: #fff; --g: #8a8a8a; --line: rgba(255,255,255,.12); --line-d: rgba(0,0,0,.08);
  --disp: "Lalezar", "Tajawal", sans-serif; --num: "Anton", "Lalezar", sans-serif; --body: "Tajawal", system-ui, sans-serif; --pad: clamp(14px, 2.4vw, 36px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; }
body { font-family: var(--body); color: var(--w); background: #000; overflow-x: hidden; }
a { color: inherit; text-decoration: none; } button { font: inherit; cursor: pointer; border: 0; }
img, video, canvas { display: block; max-width: 100%; }
.cols { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); mix-blend-mode: difference; }
.cols i { border-inline-start: 1px solid rgba(255,255,255,.08); } .cols i:first-child { border: 0; }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); mix-blend-mode: difference; }
.mark { font-family: var(--num); font-size: 26px; letter-spacing: -.02em; font-style: italic; color: #fff; }
.menu-btn { width: 30px; height: 30px; background: var(--y); display: grid; place-content: center; gap: 3px; mix-blend-mode: normal; }
.menu-btn span { display: block; width: 12px; height: 1.5px; background: #000; transition: transform .3s; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--y); color: #000; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.8,0,.2,1); }
.menu.open { clip-path: inset(0 0 0 0); }
.menu > a { font-family: var(--disp); font-size: clamp(48px, 9vw, 130px); line-height: 1.05; }
.menu > a:hover { -webkit-text-stroke: 2px #000; color: transparent; }
.menu-foot { display: flex; gap: 24px; margin-top: 4vh; font-size: 16px; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero-stars { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-stars i { position: absolute; width: var(--star-size); height: var(--star-size); border-radius: 50%; background: var(--star-color); box-shadow: 0 0 var(--star-glow) rgba(255,250,236,.35); opacity: 0; }
.hero-photo-wrap { position: absolute; z-index: 1; left: 50%; top: 16%; height: 84%; aspect-ratio: 1016 / 1400; transform: translateX(-47%); }
.hero-photo { width: 100%; height: 100%; max-width: none; filter: contrast(1.05) saturate(1.05); }
.hero::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), transparent 30%, transparent 70%, rgba(0,0,0,.85)), linear-gradient(to top, rgba(0,0,0,.9), transparent 35%); pointer-events: none; }
.hero-stats, .hero-side { position: absolute; z-index: 3; list-style: none; top: 30%; display: grid; gap: 26px; }
.hero-stats { inset-inline-start: var(--pad); } .hero-side { inset-inline-end: var(--pad); max-width: 230px; text-align: end; }
.hero-stats b, .hero-side b { display: block; font-family: var(--num); font-size: 30px; line-height: 1; font-weight: 400; }
.hero-side li:not(.quote) b { font-family: var(--disp); font-size: 22px; }
.hero-stats span, .hero-side span { font-size: 13px; color: #cfcfcf; }
.quote { font-size: 15px; color: #ddd; line-height: 1.5; }
.hero-name { position: absolute; z-index: 3; inset-inline-start: var(--pad); bottom: 40px; max-width: 360px; }
.hero-name h1 { font-family: var(--disp); font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: 1; }
.hero-name p { font-size: 13px; color: #cfcfcf; margin-top: 10px; line-height: 1.6; }

/* Manifesto */
.manifesto { position: relative; background: #fff; color: #000; padding: 18vh var(--pad) 2vh; text-align: center; }
.manifesto-text { font-family: var(--disp); font-size: clamp(36px, 5.2vw, 88px); line-height: 1.12; max-width: 18ch; margin-inline: auto; }
.manifesto-text .w { color: #888; transition: color .25s; }
.manifesto-text .w.on { color: #000; }
.manifesto-text .w.hot.on { color: #111; background: linear-gradient(transparent 58%, rgba(246,224,22,.85) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.manifesto-signature { display: block; width: min(70vw, 440px); height: auto; margin: 24px auto 16px; }
.btn-yellow { display: inline-flex; gap: 10px; align-items: center; background: var(--y); color: #000; font-family: var(--disp); font-size: 18px; padding: 10px 18px; margin-top: 6vh; transition: transform .3s; }
.btn-yellow:hover { transform: translateY(-3px); }
.btn-yellow span { font-family: var(--num); }

/* 3D centrepiece + logos grid */
.helmet { position: relative; z-index: 10; height: 240vh; background: #fff; color: #000; }
.helmet-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: visible; }
.helmet-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
.logos { position: absolute; inset: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); }
.logos li { display: grid; place-items: center; font-family: var(--disp); font-size: clamp(16px, 1.8vw, 26px); color: #111; border: 1px solid var(--line-d); opacity: 0; }
.logos li:nth-child(1) { grid-area: 1 / 1; } .logos li:nth-child(2) { grid-area: 2 / 2; } .logos li:nth-child(3) { grid-area: 1 / 5; } .logos li:nth-child(4) { grid-area: 2 / 6; }
.logos li:nth-child(5) { grid-area: 3 / 1; } .logos li:nth-child(6) { grid-area: 4 / 2; } .logos li:nth-child(7) { grid-area: 3 / 6; } .logos li:nth-child(8) { grid-area: 4 / 5; }
.logos li:nth-child(9) { grid-area: 1 / 3; } .logos li:nth-child(10) { grid-area: 4 / 4; } .logos li:nth-child(11) { grid-area: 2 / 1; } .logos li:nth-child(12) { grid-area: 3 / 5; }

/* Method chapters */
.method { position: relative; height: 500vh; background: #000; }
.method-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 var(--pad); }
.method-title { font-family: var(--disp); font-size: clamp(40px, 5.4vw, 90px); font-weight: 400; line-height: 1; }
.method-stack { position: relative; height: 62vh; }
.method-stack figure { position: absolute; inset: 0; overflow: hidden; background: #111; }
.method-stack figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.method-text { font-size: 15px; line-height: 1.8; color: #ddd; max-width: 34ch; justify-self: end; }
.skip { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; min-height: 52px; transform: translateX(-50%); margin: 0; }
.method-sticky .skip:hover { transform: translateX(-50%) translateY(-2px) scale(1.02); }
.method-sticky .skip:active { transform: translateX(-50%) scale(.97); }

/* Work drag track */
.work { background: #000; padding: 14vh 0; }
.work-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--pad) 4vh; }
.work-head h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(36px, 4.6vw, 72px); }
.drag-hint { width: 70px; height: 70px; border-radius: 50%; background: var(--y); color: #000; display: grid; place-items: center; font-weight: 700; }
.work-track { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--pad); cursor: grab; scrollbar-width: none; scroll-snap-type: x proximity; }
.work-track::-webkit-scrollbar { display: none; }
.work-track.drag { cursor: grabbing; scroll-snap-type: none; }
.wcard { flex: 0 0 min(78vw, 460px); scroll-snap-align: start; user-select: none; }
.wcard .m { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111; }
.wcard video { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1); transition: filter .5s; }
.wcard:hover video { filter: none; }
.wcard h3 { font-family: var(--disp); font-weight: 400; font-size: 24px; margin-top: 14px; }
.wcard p { font-size: 13px; color: var(--g); }

/* Calendar */
.calendar { position: relative; background: #000; padding: 6vh var(--pad) 16vh; }
.cal-title { font-family: var(--disp); font-weight: 400; font-size: clamp(32px, 4vw, 60px); margin-bottom: 4vh; }
.cal-list { list-style: none; }
.cal-list li { display: flex; justify-content: space-between; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color .25s; }
.cal-list b { font-family: var(--disp); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); display: block; }
.cal-list small { color: var(--g); }
.cal-list li:hover { color: var(--y); }
.cal-list .d { font-family: var(--num); font-size: 15px; color: var(--g); }
.cal-float { position: fixed; z-index: 20; top: 0; left: 0; width: 240px; aspect-ratio: 3/2; object-fit: cover; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(.8); transition: opacity .25s, transform .25s; }
.cal-float.on { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }

/* Gallery arc */
.gallery { position: relative; background: #fff; color: #000; padding: 16vh 0 10vh; overflow: hidden; }
.gallery-word { font-family: var(--num); font-size: clamp(120px, 26vw, 420px); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1px #e6e6e6; font-weight: 400; }
.gallery-word { font-family: var(--disp); }
.arc { position: relative; height: 80vh; margin-top: -30vh; }
.arc figure { position: absolute; left: 50%; top: 4%; width: clamp(140px, 16vw, 230px); aspect-ratio: 4/5; margin-left: calc(clamp(140px, 16vw, 230px) / -2); transform-origin: 50% 200%; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.arc img { width: 100%; height: 100%; object-fit: cover; }
.files { position: relative; z-index: 2; background: #fff; padding: 10vh var(--pad) 0; display: grid; gap: 18px; }
.files h3 { font-family: var(--disp); font-weight: 400; font-size: 30px; }
.files ul { list-style: none; }
.files li a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #e5e5e5; font-size: 18px; }
.files li a:hover { background: var(--y); }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.courses video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eee; }

/* Contact */
.contact { position: relative; background: #000; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 10vh var(--pad); }
.contact-word { position: absolute; font-family: var(--disp); font-weight: 400; font-size: clamp(160px, 30vw, 520px); color: #161616; line-height: .8; white-space: nowrap; }
.contact-card { position: relative; z-index: 2; width: min(620px, 100%); background: #fff; color: #000; padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; }
.contact-card h3 { font-family: var(--disp); font-weight: 400; font-size: 30px; }
.contact-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-card input, .contact-card textarea { font: inherit; font-weight: 400; background: #f0f0f0; border: 0; padding: 12px; }
.contact-card .btn-yellow { margin-top: 6px; justify-self: start; }

.foot { position: relative; z-index: 6; background: #000; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; padding: 10vh var(--pad) 30px; border-top: 1px solid var(--line); font-size: 14px; }
.foot h4 { font-size: 13px; margin-bottom: 10px; }
.foot div a { display: block; color: #bbb; padding: 3px 0; } .foot div a:hover { color: var(--y); }
.foot-copy { grid-column: 1 / -1; margin-top: 8vh; color: #777; font-size: 12px; }

@media (max-width: 800px) {
  .cols { grid-template-columns: repeat(3, 1fr); } .cols i:nth-child(n+4) { display: none; }
  .hero-photo-wrap { height: 84%; top: 16%; }
  .hero-stats { top: 16%; gap: 14px; } .hero-side { display: none; }
  .hero-stats b { font-size: 24px; }
  .hero-name { bottom: 30px; max-width: 64%; } .hero-name p { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
  .logos li:nth-child(n) { grid-area: auto; } .logos li:nth-child(n+9) { display: none; }
  .method-sticky { grid-template-columns: 1fr; align-content: center; gap: 18px; padding-top: 60px; }
  .method-stack { height: 34vh; } .method-text { justify-self: start; }
  .courses { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Guard: no sideways scrolling on phones while elements animate in */
html, body { overflow-x: clip; }
main, section, footer { overflow-x: clip; }
.bar { mix-blend-mode: normal; } .bar .mark { mix-blend-mode: difference; }
.method-title { position: relative; z-index: 20; }
@media (max-width: 800px) {
  .hero-stats { top: auto; bottom: 120px; inset-inline-start: var(--pad); display: flex; gap: 18px; }
  .hero-stats li { max-width: 92px; } .hero-stats span { font-size: 11px; display: block; line-height: 1.3; }
  .method-sticky { align-content: start; padding-top: 90px; }
  .method-stack { margin-top: 8px; }
}

/* Final: Arabic shaping. Letter-spacing on Arabic breaks contextual forms (e.g. final ي loses its dots), so keep it normal. */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: normal !important; }
/* Final: masked reveal wrappers must not clip Arabic descender dots (ي، ج، ق...). */
.word, .hero-title .line { padding-bottom: .24em; margin-bottom: -.24em; }
/* The cutout keeps Ahmed's original face and fades cleanly into the black hero. */
.hero-photo { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
@media (max-width: 800px) {
  .hero-photo-wrap { top: 16%; height: 84%; }
}

/* Coins fall over a centred column of platform names; each name appears once the objects pass it */
.helmet { height: 300vh; }
.logos { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 9vh 0 6vh; }
.logos li, .logos li:nth-child(n) { grid-area: auto; display: block; border: 0; opacity: 0; transform: translateY(-16px) scale(.94); filter: blur(6px); font-size: clamp(22px, 3.2vw, 44px); line-height: 1.1; color: #111; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1), filter .55s ease; }
.logos li.on { opacity: 1; transform: none; filter: none; }
.logos li:nth-child(even) { color: #8a8a8a; }
@media (max-width: 800px) { .logos { padding: 10vh 0 6vh; } .logos li, .logos li:nth-child(n) { display: block; font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .logos li, .logos li:nth-child(n) { transition: none; } }

/* Ahmed: no sudden jump to black after the coins section. "Method" now continues on white, then fades smoothly into the dark work section. */
.method { background: #fff; color: #000; }
.method-text { color: #333; }
.method-stack figure { background: #eee; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.work { padding-top: 0; }
.work::before { content: ""; display: block; height: 55vh; margin-bottom: 10vh; background: linear-gradient(#fff 0%, #f3f3f3 18%, #9a9a9a 52%, #2a2a2a 82%, #000 100%); }
/* Names sit in the upper two-thirds so the coins can come to rest below the last one */
.logos { padding: 8vh 0 30vh; }
@media (max-width: 800px) { .logos { padding: 9vh 0 30vh; } .logos li, .logos li:nth-child(n) { font-size: 21px; } }
@media (min-width: 801px) { .logos { padding: 6vh 0 42vh; } .logos li, .logos li:nth-child(n) { font-size: clamp(20px, 2.4vw, 34px); } }
.logos { padding: 22vh 0 33vh; }

/* Ahmed: no grid lines anywhere on the page (vertical or horizontal) */
.cols { display: none; }
.cal-list li, .files li a, .foot { border: 0; }
.cal-float { display: none; }

/* Method steps play the real tool clips; cross-fade between them, dots to jump */
.method { height: 380vh; }
.method-stack figure { opacity: 0; visibility: hidden; border-radius: 10px; }
.method-stack figure:first-child { opacity: 1; visibility: visible; }
.method-stack figure video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: #111; }
.method-stack figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.method-dots { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.method-dots button { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; padding: 0; transition: width .35s ease, background .35s ease; }
.method-dots button[aria-current="step"] { width: 30px; border-radius: 99px; background: #000; }
.method-dots button:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
@media (max-width: 800px) { .method-stack { height: 30vh; } .method-dots { bottom: 92px; } }

/* Work section removed (its clips now live in the method steps): the white-to-black fade moves to the calendar */
.calendar { padding-top: 96px; }
.calendar::before { content: none; }

/* Vertical clips: the video is a tall screen (9:16) between the title and the text */
.method-sticky { grid-template-columns: 1fr auto 1fr; gap: 4vw; padding-bottom: 130px; }
.method-stack { height: min(70vh, 660px); aspect-ratio: 9 / 16; max-width: 100%; justify-self: center; }
.method-stack figure { border-radius: 18px; border: 6px solid #111; background: #111; }
.method-stack figure video { object-fit: cover; object-position: center; }
.method-stack figcaption { inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; bottom: 14px; }
.method-text { font-size: 17px; }
@media (max-width: 800px) {
  .method-sticky { grid-template-columns: 1fr; gap: 12px; padding-top: 78px; justify-items: center; text-align: center; }
  .method-title { font-size: clamp(34px, 10vw, 52px); }
  .method-stack { height: 54svh; }
  .method-stack figure { border-width: 4px; border-radius: 14px; }
  .method-text { justify-self: center; font-size: 14px; line-height: 1.7; max-width: 38ch; }
  .method-dots { bottom: 84px; }
}
@media (max-width: 800px) and (max-height: 700px) { .method-stack { height: 46svh; } .method-text { font-size: 13px; } .method-sticky { padding-top: 70px; } }

/* Vertical progress rail for «طريقتي»: a continuous black line, a moving yellow knob, numbered stops */
@media (min-width: 801px) { .method-sticky { padding-inline-start: calc(var(--pad) + 64px); } }
.method-rail { --p: 0; position: absolute; inset-inline-start: calc(var(--pad) + 8px); top: 0; bottom: 0; width: 2px; background: #000; border-radius: 2px; z-index: 6; }
.rail-knob { position: absolute; left: 50%; top: clamp(7px, calc(var(--p) * 100%), calc(100% - 7px)); width: 14px; height: 14px; border-radius: 50%; background: var(--y); border: 2px solid #000; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(246,224,22,.28); }
.rail-mark { position: absolute; left: 50%; top: calc(var(--at) * 100%); width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #fff; border: 2px solid #cfcfcf; transform: translate(-50%, -50%); transition: background .3s, border-color .3s; cursor: pointer; }
.rail-mark::before { content: ""; position: absolute; inset: -12px; }
.rail-mark.on { background: #000; border-color: #000; }
.rail-mark span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--num); font-size: 13px; line-height: 1; color: #b5b5b5; transition: color .3s, font-size .3s; direction: ltr; }
.rail-mark.on span { color: #555; }
.rail-mark.now span { color: #000; font-size: 18px; }
.rail-mark:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
@media (max-width: 800px) {
  .method-rail { inset-inline-start: 12px; }
  .rail-mark span { right: 12px; font-size: 11px; }
  .rail-mark.now span { font-size: 15px; }
}
/* Gallery arc removed (Ahmed): the section now holds the downloads and course intros only */
.gallery { padding-top: 0; }

/* Coins section now reveals the monthly-close tasks: faint and blurred until the coins pass, then sharp */
.logos li, .logos li:nth-child(n) { opacity: 0; filter: blur(6px); transform: translateY(-8px); text-align: center; color: #111; }
.logos li:nth-child(even) { color: #111; }
.logos li.on { opacity: 1; filter: none; transform: none; }
.logos li b { display: block; font-weight: 400; }
.logos li small { display: block; font-family: var(--body); font-size: 13px; color: #8a8a8a; margin-top: 2px; }
@media (max-width: 800px) { .logos li, .logos li:nth-child(n) { font-size: 20px; } .logos li small { font-size: 12px; } }

/* Keep the progress line continuous from the top to the bottom of the sticky section. */
.rail-knob { width: 14px; height: 14px; border: 0; border-radius: 0; box-shadow: none; background: var(--y); }

/* ==========================================================================
   Liquid Glass (Ahmed: Apple's glass effect on every element)
   One material, three tints. Each piece = frosted backdrop (blur + saturation)
   + a light rim that is brighter on the top-left edge (::before)
   + a soft light that follows the pointer (::after, on hover)
   + a deep soft shadow. Sections get slow ambient colour so the glass has something to bend.
   ========================================================================== */
:root { --lg-blur: 18px; --lg-sat: 190%; }
.mark, .menu-btn, .btn-yellow,
.method-stack, .logos li, .files li a, .courses figure, .contact-card, .foot, .menu-close {
  --gt: rgba(255,255,255,.34); --hi: .7; --sh: .16;
  background: var(--gt);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.04);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.04);
  border-radius: var(--gr, 20px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,var(--hi)),
    inset 0 -1px 0 rgba(255,255,255,.10),
    inset 0 0 20px rgba(255,255,255,.07),
    0 1px 2px rgba(0,0,0,calc(var(--sh) * .6)),
    0 14px 36px -10px rgba(0,0,0,var(--sh));
  isolation: isolate;
}
/* the bright rim: a 1px gradient ring, strongest at the top-left like light hitting a glass edge */
:is(.mark, .menu-btn, .btn-yellow, .method-stack, .logos li, .files li a, .courses figure, .contact-card, .foot)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.22) 26%, rgba(255,255,255,0) 50%, rgba(255,255,255,.12) 74%, rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* the moving light under the pointer */
:is(.btn-yellow, .logos li, .files li a, .courses figure, .contact-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(160px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.38), rgba(255,255,255,0) 70%);
}
:is(.btn-yellow, .logos li, .files li a, .courses figure, .contact-card):hover::after { opacity: 1; }
.btn-yellow, .logos li, .files li a, .courses figure, .menu-btn, .mark { position: relative; }
.skip { position: absolute; }
.hero-stats, .hero-side { position: absolute; }

/* Tints */
.mark, .contact-card, .foot { --gt: rgba(22,22,24,.34); --hi: .38; --sh: .45; color: #fff; }
.menu-btn, .btn-yellow { --gt: rgba(246,224,22,.74); --hi: .9; --sh: .22; color: #000; }

/* Header: two floating glass buttons */
.bar .mark { mix-blend-mode: normal; width: 46px; height: 46px; display: grid; place-items: center; font-size: 19px; --gr: 50%; }
.mark span { position: relative; z-index: 3; display: block; line-height: 1; color: var(--y); transform: translate(-1.5px, 1px); }
.menu-btn { width: 46px; height: 46px; --gr: 50%; gap: 4px; }
.menu-btn span { width: 16px; height: 2px; border-radius: 2px; position: relative; z-index: 3; }
/* Full-screen menu = a big pane of yellow glass */
.menu { background: rgba(246,224,22,.72); -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%); }

/* Buttons: glass pills */
.btn-yellow { --gr: 999px; padding: 12px 24px; font-size: 18px; }
.btn-yellow:hover { transform: translateY(-2px) scale(1.02); }
.btn-yellow:active { transform: scale(.97); }
.btn-yellow > * { position: relative; z-index: 3; }

/* Hero: stats and side notes become glass chips floating over the photo */
.hero-stats li, .hero-side li { padding: 14px 18px; --gr: 18px; }
.hero-stats { gap: 12px; } .hero-side { gap: 12px; }
.hero-side .quote { line-height: 1.55; }
@media (max-width: 800px) {
  .hero-stats { gap: 8px; inset-inline-end: var(--pad); }
  .hero-stats li { flex: 1; max-width: none; padding: 10px 12px; --gr: 14px; }
  .hero-stats b { font-size: 22px; }
}

/* Ambient colour behind the light sections, drifting slowly, so the glass has light to bend */
.manifesto, .method-sticky, .gallery { background-color: #fff; background-image:
  radial-gradient(44vmax 44vmax at var(--a1x, 88%) var(--a1y, 18%), rgba(246,224,22,.30), rgba(246,224,22,0) 70%),
  radial-gradient(38vmax 38vmax at var(--a2x, 8%) var(--a2y, 86%), rgba(120,120,130,.16), rgba(120,120,130,0) 70%),
  radial-gradient(30vmax 30vmax at 50% 50%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
@property --a1x { syntax: '<percentage>'; inherits: false; initial-value: 88%; }
@property --a1y { syntax: '<percentage>'; inherits: false; initial-value: 18%; }
@property --a2x { syntax: '<percentage>'; inherits: false; initial-value: 8%; }
@property --a2y { syntax: '<percentage>'; inherits: false; initial-value: 86%; }
@keyframes lg-drift { 0% { --a1x: 88%; --a1y: 18%; --a2x: 8%; --a2y: 86%; } 50% { --a1x: 62%; --a1y: 40%; --a2x: 30%; --a2y: 64%; } 100% { --a1x: 88%; --a1y: 18%; --a2x: 8%; --a2y: 86%; } }
.manifesto, .method-sticky, .gallery { animation: lg-drift 22s ease-in-out infinite; }
.method { background: #fff; }

/* Method: the vertical video sits inside a thick pane of glass */
.method-stack { padding: 10px; --gr: 30px; --gt: rgba(255,255,255,.42); --sh: .22; }
.method-stack figure { inset: 10px; border: 0; border-radius: 21px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 800px) { .method-stack { padding: 7px; --gr: 22px; } .method-stack figure { inset: 7px; border-radius: 16px; } }

/* Coins section: each task is a glass pill that sits above the falling coins, so they blur as they pass behind it */
.helmet-sticky { background: radial-gradient(60vmax 60vmax at 50% 40%, rgba(246,224,22,.10), rgba(246,224,22,0) 70%) #fff; }
.logos { z-index: 3; pointer-events: none; }
.logos li, .logos li:nth-child(n) { padding: .42em 1.05em; --gr: 999px; --gt: rgba(255,255,255,.32); --sh: .12; pointer-events: auto; }
.logos li, .logos li:nth-child(n) { padding: .22em .72em; }
@media (min-width: 801px) { .logos li, .logos li:nth-child(n) { font-size: clamp(18px, 1.8vw, 24px); } }
.logos li b { position: relative; z-index: 3; }
@media (max-width: 800px) { .logos li, .logos li:nth-child(n) { font-size: 17px; } }

/* Downloads and course intros: glass rows and frames */
.files { background: transparent; }
.files ul { display: grid; gap: 10px; }
.files li a { padding: 16px 20px; --gr: 18px; align-items: center; transition: transform .3s, background .3s; }
.files li a:hover { background: rgba(246,224,22,.55); transform: translateY(-2px); }
.files li a > span { position: relative; z-index: 3; }
.courses figure { padding: 8px; --gr: 22px; }
.courses figure video { border-radius: 15px; }
.courses figcaption { position: relative; z-index: 3; padding: 8px 6px 2px; font-size: 13px; }

/* Contact: a dark glass card over the big word, lit by a yellow glow */
.contact::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(246,224,22,.32), rgba(246,224,22,0)); pointer-events: none; }
.contact-word { color: #2c2c2c; z-index: 1; }
.contact-card { --gr: 28px; --gt: rgba(30,30,32,.38); background: var(--gt); color: #fff; }
.contact-card > * { position: relative; z-index: 3; }
.contact-card input, .contact-card textarea { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: border-color .25s, background .25s; }
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: rgba(246,224,22,.8); background: rgba(255,255,255,.12); }
.contact-card textarea::placeholder { color: rgba(255,255,255,.45); }

/* Footer: one wide sheet of dark glass */
.foot { margin: 0 var(--pad) var(--pad); --gr: 30px; --gt: rgba(255,255,255,.05); --hi: .22; }
.foot > * { position: relative; z-index: 3; }

/* The rail square stays flat yellow; the step labels stay crisp. */

/* No glass support, or the visitor asked for less transparency: solid versions of the same tints */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mark, .contact-card, .foot { --gt: rgba(22,22,24,.86); }
  .method-stack, .logos li, .files li a, .courses figure { --gt: rgba(255,255,255,.92); }
  .menu-btn, .btn-yellow { --gt: var(--y); } .menu { background: var(--y); }
}
@media (prefers-reduced-transparency: reduce) {
  .mark, .contact-card, .foot { --gt: rgba(22,22,24,.92); }
  .method-stack, .logos li, .files li a, .courses figure { --gt: #fff; }
  .menu-btn, .btn-yellow { --gt: var(--y); } .menu { background: var(--y); }
}
@media (prefers-reduced-motion: reduce) { .manifesto, .method-sticky, .gallery { animation: none; } }
.foot .mark { width: 46px; height: 46px; align-self: start; justify-self: start; }

/* The hero stats begin hidden and appear one at a time as the pinned hero scrolls. */
.hero-stats { top: auto; bottom: 64px; inset-inline-start: var(--pad); inset-inline-end: auto; display: flex; width: min(640px, calc(100% - 2 * var(--pad))); gap: clamp(12px, 2vw, 28px); align-items: flex-start; }
.hero-stats li, .hero-side li { min-width: 0; padding: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; box-shadow: none; isolation: auto; }
.hero-stats li { flex: 1; text-align: start; }
.hero .hero-stats li::before, .hero .hero-stats li::after, .hero .hero-side li::before, .hero .hero-side li::after { content: none; display: none; }
html.has-js .hero-stats li { opacity: 0; visibility: hidden; }
.hero-stats b { font-size: clamp(30px, 4vw, 54px); }
.hero-name h1, .hero-stats b { color: var(--y); }
.hero-name .hero-summary { visibility: hidden; }
.hero-name .hero-role { position: absolute; top: calc(clamp(42px, 5vw, 76px) + 8px); inset-inline-start: 0; display: block; margin: 0; color: #fff; font-family: var(--body); font-size: clamp(14px, 1.6vw, 18px); font-weight: 700; line-height: 1.3; white-space: nowrap; }
html.has-js .hero-role { opacity: 0; visibility: hidden; }
.hero-stats span { display: block; max-width: 16ch; line-height: 1.35; }
@media (max-width: 800px) {
  .hero-stats { bottom: 52px; inset-inline-start: var(--pad); inset-inline-end: auto; width: calc(100% - 2 * var(--pad)); gap: 10px; }
  .hero-stats li { flex: 1; max-width: none; padding: 0; }
  .hero-stats b { font-size: 30px; }
  .hero-stats span { font-size: 13px; line-height: 1.4; }
  .hero-name .hero-role { font-size: clamp(14px, 4vw, 16px); }
}
@media (max-width: 360px) { .hero-stats span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html.has-js .hero-stats li, html.has-js .hero-role { opacity: 1; visibility: visible; } }

/* Success partners: a logo ticker that moves right to left (Ahmed's clients' logos in glass tiles) */
.partners { position: relative; background-color: #fff; background-image: radial-gradient(34vmax 18vmax at 14% 72%, rgba(246,224,22,.28), rgba(246,224,22,0) 70%), radial-gradient(30vmax 16vmax at 92% 78%, rgba(120,120,130,.12), rgba(120,120,130,0) 70%); color: #000; padding: 9vh 0 12vh; overflow: hidden; }
.partners-title { font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.15; padding: .1em var(--pad) .2em; margin-bottom: 5vh; }
.marquee { display: flex; direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); padding: 22px 0 34px; }
.marquee-track { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); padding-inline-end: clamp(14px, 2vw, 26px); list-style: none; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.partner { --hi: .95; position: relative; display: grid; place-items: center; height: clamp(84px, 9vw, 120px); padding: 0 clamp(22px, 3vw, 40px); border-radius: 22px; background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,var(--hi)), inset 0 -1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.06), 0 16px 34px -12px rgba(0,0,0,.2); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.partner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,1), rgba(0,0,0,.06) 30%, rgba(0,0,0,0) 55%, rgba(255,255,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.partner:hover { transform: translateY(-4px) scale(1.03); }
.partner img { height: clamp(40px, 4.6vw, 62px); width: auto; max-width: 200px; object-fit: contain; mix-blend-mode: multiply; position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } .marquee-track[aria-hidden="true"] { display: none; } }

/* Ahmed: bigger task text in the coins section */
@media (min-width: 801px) { .logos li, .logos li:nth-child(n) { font-size: clamp(22px, 2.2vw, 32px); } }
@media (max-width: 800px) { .logos li, .logos li:nth-child(n) { font-size: 23px; } }
@media (max-width: 360px) { .logos li, .logos li:nth-child(n) { font-size: 20px; } }

/* Ahmed: no glass box behind the footer */
.foot { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; border-radius: 0; margin: 0; }
footer.foot.foot::before { content: none; }

/* Ahmed: the big word «تواصل» sits above the contact card (in the black space), not behind it */
.contact { grid-template-rows: auto auto; align-content: center; gap: 0; }
.contact-word { position: relative; z-index: 1; font-size: clamp(96px, 20vw, 260px); line-height: 1; padding: .12em 0 .1em; margin-bottom: -.12em; color: #3a3a3a; text-align: center; }

/* «تواصل» rises from behind the card: it lives above the card in the layout, the card stays on top while the word is behind it */
.contact { align-content: center; padding-top: 6vh; }
.contact-word { will-change: transform; transform-origin: 50% 60%; font-size: clamp(110px, 24vw, 320px); }
.contact-card { z-index: 2; }
.contact { padding-top: 12vh; }
@media (min-width: 801px) { .contact-word { font-size: clamp(110px, 20vw, 280px); } }

/* Footer (Ahmed): columns mirrored (logo + accounts on the left, menu + contact on the right), phone number reads left-to-right, signature in white instead of AE */
.foot { direction: ltr; }
.foot > * { direction: rtl; }
.foot-copy { text-align: right; }
.foot [data-wa] { direction: ltr; unicode-bidi: isolate; text-align: right; }
.foot .mark.foot-sign { width: 126px; height: 74px; padding: 0; display: grid; place-items: center; align-self: start; border-radius: 0; overflow: visible; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; isolation: auto; }
.foot .foot-sign::before { content: none; }
.foot-sign img { width: 126px; height: auto; filter: brightness(0) invert(1) drop-shadow(0 0 .5px #fff) drop-shadow(0 0 .5px #fff); position: relative; z-index: 3; }

/* Manifesto (Ahmed): no consultation button; bigger text; the signature takes the button's place */
.manifesto-text { font-size: clamp(42px, 6vw, 100px); }
.manifesto-signature { margin: 6vh auto 10vh; width: min(74vw, 460px); }

/* Header circles drop to the bottom corners after the hero; they turn into WhatsApp (right) and back-to-top (left) */
.bar .menu-btn, .bar .mark { transition: transform .75s cubic-bezier(.7,0,.2,1), opacity .3s ease .45s; }
html.docked .bar .menu-btn, html.docked .bar .mark { transform: translateY(calc(100svh - 46px - 40px - env(safe-area-inset-bottom, 0px))); opacity: 0; pointer-events: none; }
.fab { position: fixed; z-index: 61; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.12), 0 12px 28px -8px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .3s ease .55s, transform .45s cubic-bezier(.2,.9,.3,1.3) .55s; }
.fab-wa { right: calc(var(--pad) - 3px); color: #25d366; }
.fab-top { left: calc(var(--pad) - 3px); color: #111; padding: 0; }
html.docked .fab { opacity: 1; transform: none; pointer-events: auto; transition-delay: .5s, .5s; }
html:not(.docked) .fab { transition-delay: 0s, 0s; }
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab-wa svg { width: 26px; height: 26px; fill: currentColor; }
.fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab-ring circle { fill: none; stroke-width: 2.5; }
.fab-ring .track { stroke: rgba(0,0,0,.08); }
.fab-ring .prog { stroke: #333; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.fab-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; position: relative; }
@media (prefers-reduced-motion: reduce) { .bar .menu-btn, .bar .mark, .fab { transition: opacity .2s; } }
/* the method rail stops just above the WhatsApp button so its square is never hidden behind it */
.method-rail { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* Ahmed: the hero black carries into the manifesto and fades out gradually (no hard black/white edge) */
.manifesto { padding-top: 34vh; }
.manifesto::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34vh; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.94) 12%, rgba(0,0,0,.8) 24%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.4) 52%, rgba(0,0,0,.22) 66%, rgba(0,0,0,.09) 80%, rgba(0,0,0,.02) 92%, rgba(0,0,0,0) 100%); }
.manifesto > * { position: relative; z-index: 1; }

/* ===== Language switch + English (LTR) mirror ===== */
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 15px; color: #fff; position: relative;
  background: rgba(22,22,24,.34); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(255,255,255,.1), 0 14px 36px -10px rgba(0,0,0,.45); transition: transform .75s cubic-bezier(.7,0,.2,1), opacity .3s ease .45s; }
.lang-btn[lang="ar"] { font-family: "Lalezar", sans-serif; font-size: 20px; padding-top: 4px; }
.lang-btn:hover { transform: translateY(-2px); }
html.docked .lang-btn { transform: translateY(calc(100svh - 46px - 40px - env(safe-area-inset-bottom, 0px))); opacity: 0; pointer-events: none; }
.lang-link { display: block; background: none; border: 0; padding: 3px 0; color: #bbb; font: inherit; cursor: pointer; text-align: start; }
.lang-link:hover { color: var(--y); }
.menu-foot .lang-link { color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.lang-link[lang="ar"] { font-family: "Tajawal", sans-serif; }

/* English: Latin display face, and every left/right detail mirrored (the personal photo stays as it is) */
html[lang="en"] { --disp: "Anton", "Lalezar", sans-serif; }
html[lang="en"] .manifesto-text { line-height: 1.08; }
html[lang="en"] .logos li b, html[lang="en"] .method-title, html[lang="en"] .partners-title, html[lang="en"] .contact-card h3, html[lang="en"] .files h3 { letter-spacing: .01em; }
html[dir="ltr"] .rail-mark span { right: auto; left: 16px; }
@media (max-width: 800px) { html[dir="ltr"] .rail-mark span { left: 12px; } }
html[dir="ltr"] .foot { direction: rtl; }
html[dir="ltr"] .foot > * { direction: ltr; }
html[dir="ltr"] .foot-copy, html[dir="ltr"] .foot [data-wa] { text-align: left; }
html[dir="ltr"] .fab-wa { right: auto; left: calc(var(--pad) - 3px); }
html[dir="ltr"] .fab-top { left: auto; right: calc(var(--pad) - 3px); }
html[dir="ltr"] .marquee-track { animation-direction: reverse; }
html[lang="en"] .contact-word { font-size: clamp(64px, 15vw, 220px); }
/* keep the copyright line clear of the two bottom buttons */
.foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Contact (Ahmed): the card always sits in the centre and never moves sideways.
   The section is taller than the screen and its content is CSS-sticky (no JS pin), while «تواصل» rises behind/above it. */
.contact { display: block; min-height: 0; height: calc(100svh + 90vh); padding: 0; overflow: clip; }
.contact::before { content: none; }
.contact-inner { position: sticky; top: 0; min-height: 100svh; display: grid; grid-template-rows: auto auto; justify-items: center; align-content: center;
  padding: 12vh var(--pad) 10vh; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.contact-inner::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(246,224,22,.32), rgba(246,224,22,0)); pointer-events: none; }
.contact-card { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .contact { height: auto; } .contact-inner { position: relative; } }
.contact-inner { grid-template-columns: minmax(0, 620px); justify-content: center; }
.contact-card { width: 100%; }
@media (min-width: 801px) { .contact-inner { padding-top: 7vh; padding-bottom: 6vh; } .contact-word { font-size: clamp(100px, 15vw, 220px); } html[lang="en"] .contact-word { font-size: clamp(80px, 12vw, 190px); } }

/* Hero (Ahmed): photo and text always centred, never moving sideways. No JS pin: the section is 5 screens tall and its content is CSS-sticky. */
.hero { height: auto; min-height: 0; overflow: clip; }
.hero:not(.no-story) { height: calc(100svh + 400vh); }
.hero::after { content: none; }
.hero-inner { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero-inner::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.85), transparent 30%, transparent 70%, rgba(0,0,0,.85)), linear-gradient(to top, rgba(0,0,0,.9), transparent 35%); }
@media (prefers-reduced-motion: reduce) { .hero:not(.no-story) { height: auto; } .hero-inner { position: relative; } }
.hero-photo-wrap { transform: translateX(-50%); } /* exactly centred */
/* name on one line on wide screens, and the role line sits under it in the normal flow (no overlap when the name wraps) */
@media (min-width: 801px) { .hero-name { max-width: min(760px, 60vw); } }
.hero-name .hero-role { position: static; margin-top: 12px; }
.hero-name .hero-summary { display: none; }

/* Platform links use the recognizable marks while retaining accessible names. */
.menu-foot { align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.social-links { display: flex; align-items: center; gap: 10px; }
.social-link, .foot .social-link { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; transition: color .2s, border-color .2s, background-color .2s; }
.social-link svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.social-link:hover, .foot .social-link:hover { color: #000; background: var(--y); border-color: var(--y); }
.social-link:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.menu-foot .social-link { color: #000; border-color: rgba(0,0,0,.55); }
.menu-foot .social-link:hover { background: #000; color: var(--y); border-color: #000; }

/* Keep each light section pure white at its edges so the ambient tints flow without visible seams. */
.manifesto { background-color: #fff; background-image:
  linear-gradient(to bottom, transparent 66%, #fff 100%),
  radial-gradient(44vmax 44vmax at var(--a1x, 88%) var(--a1y, 18%), rgba(246,224,22,.18), transparent 70%),
  radial-gradient(38vmax 38vmax at var(--a2x, 8%) var(--a2y, 86%), rgba(120,120,130,.09), transparent 70%); }
.method-sticky, .gallery { background-color: #fff; background-image:
  linear-gradient(to bottom, #fff 0%, transparent 18%, transparent 82%, #fff 100%),
  radial-gradient(44vmax 44vmax at var(--a1x, 88%) var(--a1y, 18%), rgba(246,224,22,.18), transparent 70%),
  radial-gradient(38vmax 38vmax at var(--a2x, 8%) var(--a2y, 86%), rgba(120,120,130,.09), transparent 70%); }
.helmet-sticky { background:
  linear-gradient(to bottom, #fff 0%, transparent 18%, transparent 82%, #fff 100%),
  radial-gradient(60vmax 60vmax at 50% 40%, rgba(246,224,22,.10), transparent 70%) #fff; }
.partners { background-color: #fff; background-image:
  linear-gradient(to bottom, #fff 0%, transparent 20%, transparent 80%, #fff 100%),
  radial-gradient(34vmax 18vmax at 14% 72%, rgba(246,224,22,.14), transparent 70%),
  radial-gradient(30vmax 16vmax at 92% 78%, rgba(120,120,130,.07), transparent 70%); }
.contact::before { content: ""; position: absolute; inset: 0 0 auto; width: auto; height: clamp(110px, 18vh, 180px); transform: none; border-radius: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, #fff 0%, #f4f3ef 16%, #aaa9a2 43%, #3d3c39 74%, #000 100%); }

/* Ahmed: no big empty black area before the contact card — only the room the word «تواصل/Contact» needs. The extra scroll for its rise is below (padding-bottom), off screen */
.contact { height: auto; padding-bottom: 90vh; }
.contact-inner { min-height: 0; align-content: start; top: var(--stick, 0px); padding-top: 4vh; padding-bottom: 4vh; }
@media (min-width: 801px) { .contact-inner { padding-top: 4vh; padding-bottom: 4vh; } }
@media (prefers-reduced-motion: reduce) { .contact { padding-bottom: 8vh; } }
/* sticky stops at the content box, so the rise distance must be real content, not padding */
.contact { padding-bottom: 0; }
.contact::after { content: ""; display: block; height: 90vh; }
@media (prefers-reduced-motion: reduce) { .contact::after { height: 8vh; } }

/* Course previews: short introductions with a clear play action and readable topic details. */
.course-intro { margin-top: clamp(46px, 7vh, 86px); display: grid; gap: 8px; }
.course-kicker { color: #675b00; font-size: 13px; font-weight: 700; }
.files .course-intro h3 { font-size: clamp(36px, 4vw, 58px); line-height: 1.05; }
.course-intro p { color: #555; font-size: 16px; line-height: 1.55; }
.courses { gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.course-card { min-width: 0; overflow: hidden; border-radius: 24px; background: #111; color: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.course-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #070707; }
.course-preview video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; background: #070707; }
.course-play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; background: linear-gradient(transparent 35%, rgba(0,0,0,.52)); }
.course-play[hidden] { display: none; }
.course-play-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--y); color: #000; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.course-play-icon svg { width: 24px; height: 24px; fill: currentColor; }
.course-play:focus-visible { outline: 3px solid var(--y); outline-offset: -6px; }
.course-body { display: grid; align-content: start; gap: 8px; padding: 20px 22px 24px; }
.course-meta { color: var(--y); font-size: 12px; font-weight: 700; }
.course-body h4 { font-family: var(--disp); font-size: clamp(27px, 2.6vw, 40px); font-weight: 400; line-height: 1.1; }
.course-body p { color: #c9c9c9; font-size: 15px; line-height: 1.55; }
@media (max-width: 800px) {
  .course-intro { margin-top: 48px; }
  .files .course-intro h3 { font-size: 38px; }
  .course-intro p { font-size: 15px; }
  .course-card { border-radius: 20px; }
  .course-body { padding: 18px 18px 22px; }
}

/* Bottom buttons over dark backgrounds (both languages): solid WhatsApp green with a white icon, and a solid light back-to-top button */
.fab { transition: opacity .3s ease .55s, transform .45s cubic-bezier(.2,.9,.3,1.3) .55s, background-color .35s, color .35s, box-shadow .35s; }
html.fab-on-dark .fab-wa { background: #25d366; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px -8px rgba(37,211,102,.55); }
html.fab-on-dark .fab-top { background: #f2f2f2; color: #000; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px -8px rgba(0,0,0,.6); }
html.fab-on-dark .fab-ring .track { stroke: rgba(0,0,0,.12); }
html.fab-on-dark .fab-ring .prog { stroke: #000; }

/* Hero stats (Ahmed): number + unit word (same size/colour as «مدير مالي»), and a short label under them */
.hero-stats b { display: flex; align-items: baseline; gap: .35em; white-space: nowrap; }
.hero-stats b .n { font-style: normal; }
.hero-stats b .unit { font-style: normal; font-family: var(--body); font-weight: 700; color: #fff; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.3; }
@media (max-width: 800px) { .hero-stats b .unit { font-size: clamp(14px, 4vw, 16px); } }
.hero-stats span { margin-top: 6px; }

/* Ahmed: no shaking in «طريقتي» when scrolling fast on phones.
   The pinned layer gets its own GPU layer, and the expensive things are switched off on touch/small screens:
   the slowly drifting background (it repainted the whole screen every frame) and the live blur behind the video frame and the button. */
.method-sticky { transform: translateZ(0); backface-visibility: hidden; contain: layout paint; }
.method-stack, .method-stack figure, [data-method-title], [data-method-text], .method .skip { backface-visibility: hidden; }
.method-stack figure { will-change: opacity, transform; }
@media (max-width: 800px), (hover: none) {
  .manifesto, .method-sticky, .gallery { animation: none; }
  .method-stack { -webkit-backdrop-filter: none; backdrop-filter: none; --gt: rgba(255,255,255,.92); }
  .method .skip { -webkit-backdrop-filter: none; backdrop-filter: none; --gt: var(--y); }
}

/* «طريقتي» pin without CSS sticky (iPhone shook it by 2–3px during fast flicks): the layer sits at the top of the section,
   becomes position:fixed while the section fills the screen, then rests at the bottom. Full-width (left/right 0), so RTL/LTR are identical. */
.method-sticky { position: absolute; top: 0; left: 0; right: 0; }
.method.is-pinned .method-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 4; }
.method.is-after .method-sticky { top: auto; bottom: 0; }

/* iPhone-proof pin for the hero and the coins section (same as «طريقتي»): absolute → fixed while the section fills the screen → rests at the bottom */
.pinfix { position: relative; }
.pinfix > .pin-layer { position: absolute; top: 0; left: 0; right: 0; }
.pinfix.is-pinned > .pin-layer { position: fixed; top: 0; left: 0; right: 0; }
.pinfix.is-after > .pin-layer { top: auto; bottom: 0; }
.helmet.is-pinned > .helmet-sticky { z-index: 10; }
.pin-layer { backface-visibility: hidden; }
