/* ==========================================================================
   Heba — main stylesheet
   Logical properties throughout so the same CSS serves RTL (ar) and LTR (en).
   Colour tokens are injected from the control panel (see functions.php).
   ========================================================================== */

:root {
	--bg: #EEF2F1;
	--surface: #FFFFFF;
	--ink: #172530;
	--muted: #53636C;
	--sand: #D9C8AE;
	--accent: #2F7276;
	--deep: #24445A;
	--mint: #9DC7BD;
	--radius: 14px;
	--line: color-mix(in srgb, var(--ink) 12%, transparent);
	--line-strong: color-mix(in srgb, var(--ink) 22%, transparent);
	--f-ar-display: "Cairo";
	--f-ar-body: "Tajawal";
	--f-en-display: "Newsreader";
	--f-en-body: "Manrope";
	--w-display: 600;
	--f-display: var(--f-ar-display), var(--f-en-display), sans-serif;
	--f-body: var(--f-ar-body), var(--f-en-body), system-ui, sans-serif;
	--lh: 1.85;
	--lh-tight: 1.25;
	--track: 0;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(76px, 11vw, 150px);
	--header-h: 76px;
	--ease: cubic-bezier(.22, .8, .2, 1);
	--ease-io: cubic-bezier(.7, 0, .2, 1);
}
html[lang="en"] .hero-title, html[lang="en"] .page-title, html[lang="en"] .sec-title { letter-spacing: -0.025em; }
html[lang="en"] {
	--f-display: var(--f-en-display), system-ui, sans-serif;
	--w-display: 500;
	--f-body: var(--f-en-body), system-ui, sans-serif;
	--lh: 1.65;
	--lh-tight: 1.05;
	--track: -0.01em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.no-motion { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: var(--lh);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: var(--w-display); line-height: var(--lh-tight); letter-spacing: var(--track); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.ltr-num { unicode-bidi: isolate; white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-arrow, [dir="rtl"] .btn-icon.icon-arrow { transform: scaleX(-1); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }
.site-main > section { padding-block: var(--sec); position: relative; }

/* Film grain — very light, adds tactility to flat colour fields */
body.has-grain::after {
	content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
	--b-bg: var(--deep); --b-fg: #fff; --b-bd: var(--deep);
	position: relative; display: inline-flex; align-items: center; gap: .6em;
	min-height: 50px; padding: .7em 1.5em; border-radius: 999px;
	background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
	font-weight: 500; text-decoration: none; line-height: 1.2; white-space: nowrap;
	overflow: hidden; isolation: isolate; cursor: pointer;
	transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); }
.btn .btn-icon { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-icon.icon-arrow { transform: scaleX(-1) translateX(3px); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn-ghost:hover { color: #fff; }
.btn-light { --b-bg: #fff; --b-fg: var(--deep); --b-bd: #fff; }
.btn-light::before { background: var(--mint); }
.btn-outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: color-mix(in srgb, #fff 40%, transparent); }
.btn-outline-light::before { background: #fff; }
.btn-outline-light:hover { color: var(--deep); border-color: #fff; }
.btn-link { --b-bg: transparent; --b-fg: var(--accent); --b-bd: transparent; padding-inline: 0; min-height: 0; overflow: visible; }
.btn-link::before { display: none; }
.btn-link span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; transition: background-size .35s var(--ease); }
[dir="rtl"] .btn-link span { background-position: 100% 100%; }
.btn-link:hover span { background-size: 0 1px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
	transition: transform .5s var(--ease), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.brand-job { font-size: 14px; color: var(--muted); }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { position: relative; display: block; padding: 8px 12px; text-decoration: none; font-size: .95rem; border-radius: 999px; transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease); }
[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 42px; padding-inline: 1.2em; font-size: .92rem; }
.lang-switch { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .25s, color .25s; }
.lang-switch[lang="ar"] { font-family: var(--f-ar-body), sans-serif; }
.lang-switch[lang="en"] { font-family: var(--f-en-body), sans-serif; }
.lang-switch:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; place-items: center; }
.burger { display: grid; gap: 6px; width: 18px; }
.burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), width .3s; }
.burger i:last-child { width: 60%; }
.menu-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger i:last-child { width: 100%; transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--deep); color: #fff; padding-top: calc(var(--header-h) + 20px); display: flex; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); }
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header .brand-job { color: color-mix(in srgb, #fff 70%, transparent); }
.menu-open .site-header .lang-switch, .menu-open .menu-toggle { border-color: color-mix(in srgb, #fff 35%, transparent); }
.menu-open .header-actions .btn { visibility: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 32px; }
.mobile-menu li { overflow: hidden; }
.mobile-menu li a { display: block; padding: 10px 0; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); text-decoration: none; transform: translateY(110%); transition: transform .7s var(--ease); transition-delay: calc(.15s + var(--i) * .05s); }
.menu-open .mobile-menu li a { transform: none; }
.mobile-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-menu-foot .btn { --b-bg: #fff; --b-fg: var(--deep); --b-bd: #fff; }
.mobile-menu .socials a { color: #fff; border-color: color-mix(in srgb, #fff 30%, transparent); }

.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 101; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--sp, 0)); transform-origin: left; }
[dir="rtl"] .scroll-progress i { transform-origin: right; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem); }
.sec-text { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.sec-extra { margin-top: 18px; }
.sec-more { margin-top: 36px; }

/* ==========================================================================
   HERO — the signature moment: her portrait starts inside a phone screen
   and the device dissolves as you scroll (--p goes 0 → 1).
   ========================================================================== */
.hero { --p: 0; min-height: 100svh; padding-top: calc(var(--header-h) + 24px) !important; padding-bottom: 72px !important; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--deep); }
[dir="rtl"] .hero-badge { padding: 7px 12px 7px 16px; }
.hero-badge .icon { color: var(--accent); }
.hero-title { font-size: clamp(2.3rem, 1rem + 3.7vw, 4.25rem); font-weight: var(--w-display); margin-bottom: 28px; }
html[lang="ar"] .hero-title { line-height: 1.3; }
.hero-title .line { display: block; overflow: hidden; padding-block: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) > span { color: var(--deep); }
.hero-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.screen {
	position: relative; aspect-ratio: 9 / 16; border-radius: calc(48px - var(--p) * 18px);
	background: #fff; overflow: hidden; isolation: isolate;
	transform: scale(calc(1 + var(--p) * .05)) rotate(calc((1 - var(--p)) * -2deg));
	box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--deep) 60%, transparent);
	will-change: transform;
}
[dir="rtl"] .screen { transform: scale(calc(1 + var(--p) * .05)) rotate(calc((1 - var(--p)) * 2deg)); }
.has-screen .screen::after {
	content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
	border: 11px solid var(--ink); opacity: calc(1 - var(--p) * 1.25);
	transform: scale(calc(1 + var(--p) * .12));
}
.screen-photo, .screen-photo img { width: 100%; height: 100%; }
.screen-photo img { object-fit: cover; object-position: 50% 8%; transform: scale(calc(1.06 - var(--p) * .06)); }
.screen-bar { position: absolute; z-index: 3; inset-inline: 0; top: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 0; font: 600 14px/1 var(--f-en-body), sans-serif; direction: ltr; opacity: calc(1 - var(--p) * 2.2); }
.screen-notch { position: absolute; left: 50%; top: 18px; width: 96px; height: 26px; border-radius: 99px; background: var(--ink); transform: translateX(-50%); }
.screen-status { display: flex; align-items: flex-end; gap: 2px; }
.screen-status i { width: 3px; background: var(--ink); border-radius: 1px; }
.screen-status i:nth-child(1) { height: 5px; } .screen-status i:nth-child(2) { height: 8px; } .screen-status i:nth-child(3) { height: 11px; }
.screen-status b { width: 22px; height: 11px; margin-inline-start: 6px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.screen-status b::after { content: ""; position: absolute; inset: 1.5px; inset-inline-end: 6px; background: var(--ink); border-radius: 1px; }
.screen-notify {
	position: absolute; z-index: 3; inset-inline: 16px; bottom: 18px; display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, #fff 82%, transparent);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.25);
	font-size: 14px; line-height: 1.35;
	opacity: calc(1 - var(--p) * 1.8); transform: translateY(calc(var(--p) * 40px));
}
.screen-notify .icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--deep); color: #fff; }
.screen-notify span { display: flex; flex-direction: column; }
.screen-notify em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }

.hero-note {
	position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--deep) 50%, transparent);
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.hero-note .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.note-0 { top: 26%; inset-inline-end: 84%; }
.note-1 { top: 56%; inset-inline-start: 86%; }
.note-2 { bottom: 22%; inset-inline-end: 80%; }
.motion .hero-note { animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -2.3s); }
@keyframes float { 50% { translate: 0 -8px; } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 99px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.motion .scroll-hint span { animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero entrance — runs once, after the preloader */
.motion .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(.1s + var(--i) * .12s); }
.motion [data-hero] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-hero="1"] { transition-delay: 0s; } .motion [data-hero="2"] { transition-delay: .45s; } .motion [data-hero="3"] { transition-delay: .6s; }
.motion .hero-visual { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
.motion .hero-note { opacity: 0; scale: .85; transition: opacity .6s var(--ease), scale .6s var(--ease); transition-delay: calc(1s + var(--i) * .15s); }
.motion.is-loaded .hero-title .line > span, .motion.is-loaded [data-hero] { transform: none; opacity: 1; }
.motion.is-loaded .hero-visual { opacity: 1; transform: none; }
.motion.is-loaded .hero-note { opacity: 1; scale: 1; }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(40px, 6vw, 72px) !important; border-block: 1px solid var(--line); }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stat { padding: 8px clamp(16px, 3vw, 36px); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-num { font-family: var(--f-en-display), sans-serif; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; color: var(--deep); font-variant-numeric: tabular-nums; text-align: start; }
html[dir="rtl"] .stat-num { text-align: right; }
.stat-label { margin: 12px 0 0; color: var(--muted); font-size: .95rem; max-width: 22ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.about-photo { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.about-photo-inner { height: 112%; margin-top: -6%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-body .sec-title { margin-bottom: 24px; }
.about-lead { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.5; color: var(--deep); }
html[lang="en"] .about-lead { line-height: 1.3; }
.about-text { color: var(--muted); max-width: 60ch; }
.about-points { display: grid; gap: 2px; margin: 28px 0; border-top: 1px solid var(--line); }
.about-points li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.about-points .icon { color: var(--accent); }

.initiatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.initiative { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.initiative-logo { flex: none; width: 76px; height: 76px; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.initiative-logo img { width: 100%; height: 100%; object-fit: cover; }
.initiative-body { display: flex; flex-direction: column; line-height: 1.5; }
.initiative-body b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.initiative-body span { color: var(--muted); font-size: .88rem; }

/* ---------- Specialties: an index you can read, not a card wall ---------- */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.spec { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); outline: none; }
.spec-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--deep); transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.spec-body { display: flex; flex-direction: column; min-width: 0; padding-top: 8px; }
.spec-title { font-family: var(--f-display); font-size: 1.18rem; line-height: 1.45; }
.spec-desc { display: grid; grid-template-rows: 1fr; color: var(--muted); font-size: .95rem; transition: grid-template-rows .45s var(--ease), opacity .35s; }
.spec-desc > span { overflow: hidden; padding-top: 6px; }
@media (hover: hover) and (pointer: fine) {
	.spec-desc { grid-template-rows: 0fr; opacity: 0; }
	.spec:hover .spec-desc, .spec:focus-visible .spec-desc, .spec:focus-within .spec-desc { grid-template-rows: 1fr; opacity: 1; }
	.spec:hover .spec-icon, .spec:focus-visible .spec-icon { background: var(--deep); color: #fff; border-color: var(--deep); }
}
.spec:focus-visible .spec-title { text-decoration: underline; text-underline-offset: .3em; }

/* ==========================================================================
   TARP — the only dark section on the page
   ========================================================================== */
.tarp { background: var(--deep); color: #fff; overflow: clip; }
.tarp .sec-title { color: #fff; }
.tarp-abbr { font-family: var(--f-en-display), sans-serif; color: var(--mint); }
.tarp-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.tarp-mark {
	margin: 0; font-family: var(--f-en-display), sans-serif; font-weight: 600; line-height: .8; letter-spacing: -.04em;
	font-size: clamp(5rem, 2rem + 13vw, 13rem); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--mint) 70%, transparent);
	text-align: start;
}
html[dir="rtl"] .tarp-mark { text-align: right; }
.tarp-tagline { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: var(--mint); font-size: .95rem; }
.tarp-tagline .icon { margin-top: .25em; }
.tarp-text { color: color-mix(in srgb, #fff 78%, transparent); max-width: 62ch; }

.tarp-axes { margin-top: clamp(56px, 8vw, 110px); }
.tarp-axes-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 32px; }
.tarp-axes-head h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.tarp-axes-head p { margin: 0; color: color-mix(in srgb, #fff 62%, transparent); }
.tarp-progress { flex-basis: 100%; height: 1px; background: color-mix(in srgb, #fff 18%, transparent); margin-top: 18px; }
.tarp-progress i { display: block; height: 100%; background: var(--mint); transform: scaleX(var(--hp, 0)); transform-origin: left; }
[dir="rtl"] .tarp-progress i { transform-origin: right; }
.tarp-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 20px; padding-inline: var(--gutter); padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tarp-track::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .tarp-track { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.axis { position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 30px 28px; scroll-snap-align: start; border-radius: var(--radius); background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.axis-num { font-family: var(--f-en-display), sans-serif; font-size: 3.6rem; line-height: 1; color: var(--mint); margin-bottom: auto; }
.axis-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 32px 0 18px; border-radius: 50%; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.axis-title { font-size: 1.32rem; line-height: 1.45; margin-bottom: 12px; }
html[lang="en"] .axis-title { line-height: 1.2; }
.axis-text { margin: 0; font-size: .93rem; color: color-mix(in srgb, #fff 72%, transparent); }
.axis-flag { position: absolute; top: 30px; inset-inline-end: 24px; padding: 4px 12px; border-radius: 99px; background: var(--sand); color: var(--ink); font-size: 14px; font-weight: 600; }
.axis.is-diploma { background: color-mix(in srgb, var(--sand) 12%, transparent); border-color: color-mix(in srgb, var(--sand) 35%, transparent); }

/* Horizontal-scroll mode (desktop + motion): the track is pinned and slides as you scroll down */
.hscroll-on .tarp-axes { height: var(--hs-h, auto); }
.hscroll-on .tarp-axes-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll-on .tarp-track { overflow: visible; scroll-snap-type: none; width: max-content; transform: translate3d(var(--hx, 0px), 0, 0); will-change: transform; }

.tarp-sub { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 28px; }
.tarp-formats { margin-top: clamp(64px, 9vw, 120px); }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, #fff 20%, transparent); }
.format { padding: 28px clamp(16px, 2.5vw, 32px) 8px; border-inline-start: 1px solid color-mix(in srgb, #fff 14%, transparent); }
.format:first-child { border-inline-start: 0; padding-inline-start: 0; }
.format-depth { display: flex; gap: 5px; margin-bottom: 20px; }
.format-depth i { width: 26px; height: 4px; border-radius: 2px; background: color-mix(in srgb, #fff 18%, transparent); }
.format-depth i.on { background: var(--mint); }
.format h4 { font-size: 1.35rem; margin-bottom: 8px; }
.format-level { color: var(--mint); font-size: .92rem; margin-bottom: 14px; }
.format-aud { color: color-mix(in srgb, #fff 72%, transparent); font-size: .93rem; }

.tarp-proof { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 100px); }
.tarp-proof.is-compact { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.tarp-full .tarp-proof { align-items: start; }
.doc-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 6px; overflow: hidden; cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); transform: rotate(-2deg); transition: transform .5s var(--ease); }
[dir="rtl"] .doc-thumb { transform: rotate(2deg); }
.doc-thumb:hover, .doc-thumb:focus-visible { transform: rotate(0) scale(1.02); }
.doc-thumb img { width: 100%; }
.doc-label { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; }
.recos { display: grid; gap: 12px; margin-bottom: 40px; }
.recos li { display: flex; gap: 12px; color: color-mix(in srgb, #fff 82%, transparent); }
.recos .icon { color: var(--mint); margin-top: .3em; }
.tarp-ip { padding: 24px; border-radius: var(--radius); background: color-mix(in srgb, #000 16%, transparent); margin-bottom: 32px; }
.tarp-ip .tarp-sub { font-size: 1.1rem; margin-bottom: 10px; }
.tarp-ip p { margin: 0; color: color-mix(in srgb, #fff 70%, transparent); font-size: .92rem; }
.tarp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Programmes ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.program-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.program.is-hidden { display: none; }
.program.is-featured { grid-column: span 2; }
.program-link { display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 2.5vw, 32px); background: var(--surface); border-radius: var(--radius); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.program-link:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--deep) 45%, transparent); }
.is-featured .program-link { background: var(--sand); }
.program-thumb { display: block; margin: calc(clamp(22px, 2.5vw, 32px) * -1); margin-bottom: 24px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.program-thumb img { width: 100%; height: 100%; object-fit: cover; }
.program-track { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }
.is-featured .program-track { color: var(--deep); }
.program-title { font-size: 1.4rem; line-height: 1.45; margin-bottom: 12px; }
html[lang="en"] .program-title { line-height: 1.2; }
.is-featured .program-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.program-sum { color: var(--muted); font-size: .95rem; }
.is-featured .program-sum { color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 1.05rem; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 24px; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--muted); }
.is-featured .tags li { background: color-mix(in srgb, #fff 55%, transparent); color: var(--ink); }
.program-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: .9rem; font-weight: 500; color: var(--deep); }
.program-more .icon { transition: translate .35s var(--ease); }
.program-link:hover .program-more .icon { translate: 4px 0; }
[dir="rtl"] .program-link:hover .program-more .icon { translate: -4px 0; }

/* ---------- Experience timeline ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); }
.exp-side .sec-head { position: sticky; top: calc(var(--header-h) + 40px); }
.timeline { --tl: 0; position: relative; padding-inline-start: 36px; }
.timeline::before, .timeline::after { content: ""; position: absolute; inset-inline-start: 7px; top: 10px; bottom: 10px; width: 1px; }
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--accent); transform: scaleY(var(--tl)); transform-origin: top; }
.no-motion .timeline::after { transform: none; }
.tl-item { position: relative; padding-bottom: clamp(32px, 4vw, 52px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; inset-inline-start: -36px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.tl-item.is-current .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.tl-kind { color: var(--accent); font-weight: 600; }
.tl-period { color: var(--muted); }
.tl-period::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.tl-role { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.45; margin-bottom: 6px; }
html[lang="en"] .tl-role { line-height: 1.2; }
.tl-org { color: var(--deep); font-weight: 500; margin-bottom: 14px; }
.tl-points { display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.tl-points li { position: relative; padding-inline-start: 18px; }
.tl-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 6px; height: 1px; background: var(--accent); }

/* ---------- Partners marquee ---------- */
.partners { padding-block: clamp(48px, 7vw, 90px) !important; border-block: 1px solid var(--line); }
.partners-title { font-family: var(--f-body); font-size: .95rem; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-row { display: flex; align-items: center; flex: none; }
.partner { display: flex; align-items: center; flex: none; padding-inline: clamp(24px, 3vw, 44px); font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); color: var(--deep); white-space: nowrap; }
.partner::after { content: ""; width: 7px; height: 7px; margin-inline-start: clamp(48px, 6vw, 88px); border-radius: 50%; background: var(--mint); }
.partner a, .partner span { text-decoration: none; }
.partner img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partner:hover img { filter: none; opacity: 1; }
.motion .marquee-track { animation: marquee var(--mq-dur, 38s) linear infinite; }
.motion [dir="rtl"] .marquee-track, html.motion[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Media ---------- */
.gallery { display: grid; gap: 16px; margin-bottom: clamp(48px, 6vw, 72px); }
.gallery-3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.gallery-3 .gallery-item:first-child { grid-row: span 2; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-item { position: relative; display: block; padding: 0; border: 0; background: var(--sand); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery-3 .gallery-item:first-child { aspect-ratio: auto; }
.gallery-img { position: absolute; inset: -6% 0; display: block; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.gallery-item:hover .gallery-img img { scale: 1.04; }
.gallery-cap { position: absolute; inset-inline: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 75%, transparent); color: #fff; font-size: 14px; text-align: start; }
.events { border-top: 1px solid var(--line-strong); }
.event-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 200px) 28px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), background-color .4s; }
a.event-row:hover { padding-inline: 16px; background: var(--surface); }
.event-year { font-family: var(--f-en-display), sans-serif; font-size: 1.6rem; color: var(--deep); text-align: start; }
html[dir="rtl"] .event-year { text-align: right; }
.event-main { display: flex; flex-direction: column; gap: 2px; }
.event-kind { color: var(--accent); font-size: 14px; font-weight: 600; }
.event-title { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; }
.event-desc { color: var(--muted); font-size: .92rem; }
.event-place { color: var(--muted); font-size: .9rem; }
.event-go { color: var(--accent); }

/* ---------- Certificates ---------- */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-bottom: clamp(40px, 6vw, 64px); }
.doc .doc-thumb { aspect-ratio: 4 / 3; background: #fff; transform: none; box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--deep) 55%, transparent); border-radius: calc(var(--radius) - 4px); }
.doc .doc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.doc .doc-thumb:hover { transform: translateY(-4px); }
.doc figcaption { display: flex; flex-direction: column; margin-top: 14px; line-height: 1.5; }
.doc figcaption b { font-weight: 600; font-size: .98rem; }
.doc figcaption span { color: var(--muted); font-size: 14px; }
.doc figcaption em { font-style: normal; color: var(--accent); font-size: 14px; }
.cert-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.cert-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cert-list .icon { color: var(--accent); }
.cert-list span { display: flex; flex-direction: column; flex: 1; line-height: 1.5; }
.cert-list small { color: var(--muted); font-size: 14px; }
.cert-file { color: var(--accent); }
.education { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); }
.education h3 { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--muted); }
.education p { display: flex; align-items: center; gap: 12px; margin: 0; }
.education .icon { color: var(--accent); }
.education b { font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.quote { scroll-snap-align: start; display: flex; flex-direction: column; padding: 32px; background: var(--surface); border-radius: var(--radius); }
.quote-mark { width: 36px; height: 36px; color: var(--accent); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 24px; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.4; }
.quote small { color: var(--muted); }

/* ---------- Articles ---------- */
.articles .sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; max-width: none; gap: 16px; }
.articles .sec-extra { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.post-card-link { display: flex; flex-direction: column; text-decoration: none; }
.post-card-thumb { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.post-card-link:hover .post-card-thumb img { scale: 1.04; }
.post-card-ph { display: grid; place-items: center; height: 100%; color: var(--mint); }
.post-card-ph .icon { width: 48px; height: 48px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post-card-meta > * + *::before { content: "/"; margin-inline-end: 12px; color: var(--line-strong); }
.post-card-title { font-size: 1.32rem; line-height: 1.5; margin-bottom: 8px; transition: color .3s; }
html[lang="en"] .post-card-title { line-height: 1.25; }
.post-card-link:hover .post-card-title { color: var(--accent); }
.post-card-excerpt { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- CTA ---------- */
.cta { padding-block: 0 var(--sec) !important; }
.cta-box { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px); border-radius: calc(var(--radius) * 2); background: var(--sand); }
.cta-box::before { content: ""; position: absolute; inset-inline-end: -12%; top: -40%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--deep) 18%, transparent); box-shadow: 0 0 0 60px color-mix(in srgb, #fff 14%, transparent), 0 0 0 120px color-mix(in srgb, #fff 8%, transparent); }
.cta-title { position: relative; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); max-width: 18ch; margin-bottom: 20px; }
html[lang="ar"] .cta-title { line-height: 1.4; }
.cta-title .line { display: block; }
.cta-text { position: relative; max-width: 54ch; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 1.08rem; margin-bottom: 32px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-ways { border-top: 1px solid var(--line-strong); margin-bottom: 28px; }
.way { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.way-label { color: var(--muted); font-size: .88rem; }
.way-value { font-size: 1.05rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.way-value:hover { color: var(--accent); }
.way-actions { display: flex; gap: 6px; color: var(--muted); }
.way-actions a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s; }
.way-actions a:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.contact-photo { margin-top: 36px; max-width: 280px; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--surface); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

.contact-form-wrap { padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) * 1.5); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.fld-wide { grid-column: 1 / -1; }
.fld > span, .fld legend { font-size: .88rem; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 0; }
.fld input, .fld select, .fld textarea {
	width: 100%; padding: 13px 16px; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line-strong);
	background: var(--bg); color: var(--ink); font: inherit; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.fld input[dir="ltr"] { text-align: left; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld.is-invalid input { border-color: #B3412F; }
.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; min-width: 0; min-inline-size: 0; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chip { position: relative; }
.fld .chip input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip input:checked + span { background: var(--deep); color: #fff; border-color: var(--deep); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { margin: 0; font-size: .92rem; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #B3412F; }
.hc-form-contact { position: relative; }
.hp-field { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, #fff 80%, transparent); padding: clamp(64px, 9vw, 120px) 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.footer-name { font-family: var(--f-display); font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.1; color: #fff; margin-bottom: 16px; }
.footer-text { max-width: 44ch; color: color-mix(in srgb, #fff 62%, transparent); margin-bottom: 24px; }
.socials-light a { border-color: color-mix(in srgb, #fff 25%, transparent); color: #fff; }
.socials-light a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--mint); }
.muted-label { display: block; font-size: 14px; color: color-mix(in srgb, #fff 50%, transparent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 14px; color: color-mix(in srgb, #fff 50%, transparent); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.to-top:hover { color: #fff; }

.wa-float { position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #1F8F5F; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); transition: transform .3s var(--ease), opacity .3s; }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-off { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px) !important; }
.page-kicker { color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.page-title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); max-width: 18ch; }
html[lang="ar"] .page-title { line-height: 1.3; }
.page-title .line { display: block; overflow: hidden; padding-block: .04em; }
.page-title .line > span { display: inline-block; }
.motion .page-title .line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(.15s + var(--i) * .1s); }
.motion.is-loaded .page-title .line > span { transform: none; }
.page-intro { margin-top: 24px; max-width: 60ch; color: var(--muted); font-size: 1.12rem; }
.page-content { padding-bottom: var(--sec); }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.8rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.4em 0 .5em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding-inline-start: 24px; border-inline-start: 2px solid var(--accent); font-family: var(--f-display); font-size: 1.3rem; }
.prose img { border-radius: var(--radius); }
.article-cover { margin-bottom: clamp(40px, 6vw, 72px); }
.article-cover img { width: 100%; border-radius: calc(var(--radius) * 1.5); }
.article .prose { padding-bottom: 48px; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: var(--sec); border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-family: var(--f-display); }
.post-nav a:hover { color: var(--accent); }
.list-section { padding-top: 40px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--muted); }

.about-page { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 100px)) !important; }
.about-page-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-page-copy .page-kicker { margin-top: 18px; }
.about-page-copy .about-lead { margin: 28px 0; }
.about-page-copy .hero-actions { margin-top: 32px; }
.about-page-photo { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: var(--sand); }
.about-page-photo > span { display: block; height: 110%; margin-top: -5%; }
.about-page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.program-single { padding-top: 0 !important; }
.program-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.program-cover { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; }
.sub-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 24px; }
.topic-list { border-top: 1px solid var(--line-strong); margin-bottom: 40px; counter-reset: t; }
.topic-list li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.15rem; }
.topic-list li span { font-family: var(--f-en-display), sans-serif; color: var(--accent); font-size: 1rem; min-width: 28px; }
.program-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 20px; }
.program-aside dl { margin: 0; display: grid; gap: 16px; }
.program-aside dt { font-size: 14px; color: var(--muted); }
.program-aside dd { margin: 2px 0 0; font-weight: 500; }
.program-aside .btn { justify-content: center; }
.related { padding-top: 0 !important; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-item { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .4s var(--ease); }
.related-item:hover { transform: translateY(-3px); }
.related-item b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.related-item .icon { color: var(--accent); margin-top: 8px; }

.not-found { min-height: 80vh; display: flex; align-items: center; }
.nf-code { font-family: var(--f-en-display), sans-serif; font-size: clamp(6rem, 20vw, 14rem); line-height: .9; margin: 0 0 24px; color: transparent; -webkit-text-stroke: 1.5px var(--deep); }
.not-found .hero-actions { margin-top: 32px; }

.plugin-missing { display: grid; place-items: center; min-height: 100vh; text-align: center; font-family: system-ui, sans-serif; }
.missing-box { max-width: 520px; padding: 24px; }

/* ---------- Overlays: preloader, page curtain, lightbox, cursor ---------- */
.preloader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--deep); color: #fff; transition: clip-path .9s var(--ease-io); clip-path: inset(0 0 0 0); }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.no-motion .preloader, .preloader.is-skipped { display: none; }
.preloader-inner { display: grid; justify-items: center; gap: 18px; }
.preloader-name { font-family: var(--f-display); font-size: clamp(2rem, 6vw, 3.6rem); }
.preloader-bar { width: 140px; height: 1px; background: color-mix(in srgb, #fff 20%, transparent); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; animation: load 1.1s var(--ease-io) forwards; }
[dir="rtl"] .preloader-bar i { transform-origin: right; }
@keyframes load { to { transform: scaleX(1); } }

.page-curtain { position: fixed; inset: 0; z-index: 350; background: var(--deep); pointer-events: none; transform: translateY(100%); visibility: hidden; }
.page-curtain.is-in, .page-curtain.is-out { visibility: visible; }
.page-curtain.is-in { transition: transform .55s var(--ease-io); transform: none; }
.page-curtain.is-out { transform: none; animation: curtain-out .7s var(--ease-io) forwards; }
@keyframes curtain-out { to { transform: translateY(-100%); } }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 64px 20px 24px; background: color-mix(in srgb, var(--ink) 92%, transparent); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: #fff; font-size: .92rem; text-align: center; }
.lightbox-close { position: absolute; top: 16px; inset-inline-end: 16px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, #fff 30%, transparent); background: none; color: #fff; cursor: pointer; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	.motion .has-cursor .cursor { display: block; }
	.cursor { position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; }
	.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%); }
	.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
	.cursor-ring { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) translate(-50%, -50%) scale(var(--rs, 1)); transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, border-color .35s; }
	.cursor-ring em { font-style: normal; font-size: 14px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
	.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }
	.cursor.is-label .cursor-ring { width: 84px; height: 84px; background: var(--deep); border-color: var(--deep); }
	.cursor.is-label .cursor-ring em { opacity: 1; }
	.cursor.is-label .cursor-dot { opacity: 0; }
	.cursor.on-dark .cursor-ring { border-color: color-mix(in srgb, #fff 50%, transparent); }
	.cursor.on-dark .cursor-dot { background: var(--mint); }
}

/* ---------- Scroll reveals (kept to headings and groups) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
.motion [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); transition-delay: calc(var(--i, 0) * .1s); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav { display: none; }
	.menu-toggle { display: grid; }
	.program-list { grid-template-columns: repeat(2, 1fr); }
	.docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.note-0 { inset-inline-end: 76%; } .note-1 { inset-inline-start: 78%; } .note-2 { inset-inline-end: 72%; }
}
@media (max-width: 860px) {
	:root { --header-h: 68px; }
	.hero { min-height: auto; padding-top: calc(var(--header-h) + 32px) !important; }
	.hero-grid, .about-grid, .tarp-intro, .exp-grid, .contact-grid, .about-page-grid, .program-single-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-visual { width: min(330px, 78vw); margin-top: 12px; }
	.note-0 { top: 8%; inset-inline-end: auto; inset-inline-start: -8%; }
	.note-1 { top: 46%; inset-inline-start: auto; inset-inline-end: -8%; }
	.note-2 { bottom: 8%; inset-inline-end: auto; inset-inline-start: -6%; }
	.hero-note { font-size: 14px; padding: 7px 11px; }
	.scroll-hint { display: none; }
	.stats-list { grid-template-columns: 1fr 1fr; row-gap: 28px; }
	.stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.about-photo { max-width: 420px; }
	.initiatives { grid-template-columns: 1fr; }
	.spec-list, .cert-list { grid-template-columns: 1fr; }
	.tarp-mark { font-size: clamp(4.5rem, 24vw, 8rem); }
	.formats { grid-template-columns: 1fr; }
	.format { border-inline-start: 0; padding-inline-start: 0; border-bottom: 1px solid color-mix(in srgb, #fff 14%, transparent); padding-bottom: 24px; }
	.tarp-proof, .tarp-proof.is-compact { grid-template-columns: 1fr; }
	.doc-thumb { max-width: 260px; }
	.exp-side .sec-head { position: static; }
	.program-list { grid-template-columns: 1fr; }
	.program.is-featured { grid-column: auto; grid-row: auto; }
	.gallery-3 { grid-template-columns: 1fr 1fr; }
	.gallery-3 .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
	.event-row { grid-template-columns: 64px minmax(0, 1fr) 24px; }
	.event-place { display: none; }
	.docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid, .related-list { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.about-page-photo, .program-aside { position: static; }
	.about-page-photo { max-width: 420px; order: -1; }
	.header-actions .btn { display: none; }
}
@media (max-width: 560px) {
	.form-grid { grid-template-columns: 1fr; }
	.way { grid-template-columns: 1fr auto; }
	.way-label { grid-column: 1 / -1; margin-bottom: -10px; }
	.footer-top { grid-template-columns: 1fr; }
	.brand-job { display: none; }
	.cta-box { border-radius: calc(var(--radius) * 1.5); }
	.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
	.site-header, .site-footer, .wa-float, .cursor, .preloader, .page-curtain, .scroll-progress { display: none !important; }
	body { background: #fff; }
}
.program-list.is-filtered .program.is-featured { grid-column: auto; grid-row: auto; }
