/* ==========================================================================
   Montasser — main stylesheet (Cloud.lab-style editorial layout)
   White canvas, light-grey hero bands, hairline borders, square black
   buttons, heavy tight headlines. Logical properties → LTR (EN/FR) + RTL (AR).
   Arabic: KOOkies (bundled). Latin: Inter Tight.
   ========================================================================== */

/* ---------- 0. Fonts ---------- */
@font-face { font-family: "KOOkies"; src: url("../fonts/kookies-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }
@font-face { font-family: "KOOkies"; src: url("../fonts/kookies-regular.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }
@font-face { font-family: "KOOkies"; src: url("../fonts/kookies-bold.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }

/* ---------- 1. Tokens ---------- */
:root {
	--bg: #ffffff;
	--soft: #f4f4f4;
	--soft-2: #ececec;
	--ink: #0e0e0e;
	--ink-2: #333333;
	--muted: #6b6b6b;
	--line: #e7e7e7;
	--line-strong: #d4d4d4;
	--font: "Inter Tight", "KOOkies", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--track-tight: -0.045em;
	--container: 1180px;
	--gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
	--header-h: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:lang(ar) {
	--font: "KOOkies", "Inter Tight", system-ui, sans-serif;
	--track-tight: 0;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body:lang(ar) { line-height: 1.8; }
[lang] { font-family: var(--font); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.icon { width: 18px; height: 18px; flex: none; }
:dir(rtl) .icon-arrow-r, :dir(rtl) .icon-arrow-l, :dir(rtl) .icon-arrow { transform: scaleX(-1); }

/* ---------- 3. Buttons, pills, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.15rem; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn .icon { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
:dir(rtl) .btn:hover .icon { transform: scaleX(-1) translateX(3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2a; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--soft); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.pill { display: inline-flex; align-items: center; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill--white { border-color: transparent; color: var(--ink); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--ink); transition: background-color 0.2s; }
.icon-btn:hover { background: var(--soft); }

/* ---------- 4. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.brand:lang(ar), :lang(ar) .brand { letter-spacing: 0; font-size: 1.6rem; }
.brand-logo { max-height: 36px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav-list a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); padding-block: 0.4rem; transition: color 0.2s; }
.nav-list a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
:dir(rtl) .nav-list a::after { transform-origin: right; }
.nav-list a:hover, .nav-list a.is-current { color: var(--ink); }
.nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.lang-switch { display: flex; gap: 2px; margin-inline-end: 0.35rem; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding-inline: 0.4rem; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.lang-switch a:hover { color: var(--ink); border-color: var(--line); }
.lang-switch .is-current { color: var(--ink); border-color: var(--ink); }
.header-cta { margin-inline-start: 0.5rem; }
.menu-toggle { display: none; }
.menu-toggle .when-open, .menu-open .menu-toggle .when-closed { display: none; }
.menu-open .menu-toggle .when-open { display: block; }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: #fff; padding: 1.5rem var(--gutter) 2rem; overflow-y: auto; }
.mobile-list { border-top: 1px solid var(--line); }
.mobile-list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.6rem; font-weight: 700; letter-spacing: var(--track-tight); }
.mobile-list a.is-current { color: var(--muted); }
.lang-switch--mobile { margin-top: 1.5rem; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(255, 255, 255, 0.98); visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; overflow-y: auto; }
.search-open .search-overlay { visibility: visible; opacity: 1; }
.search-inner { padding-block: 10vh 4rem; max-width: 860px; }
.search-big { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; }
.search-big > .icon { width: 26px; height: 26px; }
.search-big input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: clamp(1.5rem, 1rem + 2.5vw, 2.6rem); font-weight: 600; letter-spacing: var(--track-tight); padding-block: 0.5rem; }
.search-results { margin-top: 1.5rem; display: grid; }
.search-result { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.search-result:hover strong { text-decoration: underline; }
.search-result img, .search-result .ph { width: 64px; height: 48px; object-fit: cover; background: var(--soft); }
.search-result strong { display: block; font-weight: 600; }
.search-result small { color: var(--muted); }
.search-empty { color: var(--muted); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; background: var(--soft); padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: hidden; text-align: center; }
.hero-pill { display: inline-block; margin: 0 auto; padding: 0.55rem 1.2rem; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.fan { --w: clamp(190px, 15vw + 40px, 240px); --k: 1.25; --spread: calc(var(--w) * var(--k)); position: relative; height: calc(var(--w) * 1.75); margin-top: 1rem; }
.fan-slot { position: absolute; top: 0; left: 50%; width: var(--w); margin-left: calc(var(--w) / -2); transform-origin: 50% 120%; transform: translate(calc(var(--x) * var(--spread)), var(--y)) rotate(var(--r)); transition: transform 0.8s var(--ease-out); }
.fan-slot:nth-child(1) { --x: -2; --r: -30deg; --y: 120px; }
.fan-slot:nth-child(2) { --x: -1; --r: -15deg; --y: 28px; }
.fan-slot:nth-child(3) { --x: 0; --r: 0deg; --y: 0px; z-index: 2; }
.fan-slot:nth-child(4) { --x: 1; --r: 15deg; --y: 28px; }
.fan-slot:nth-child(5) { --x: 2; --r: 30deg; --y: 120px; }
.fan-slot { transition: transform 0.8s var(--ease-out); }
.fan-card { display: block; background: #fff; padding: 8px 8px 14px; text-align: start; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.25); transition: transform 0.45s var(--ease-out), box-shadow 0.45s; }
.fan-card:hover { transform: translateY(-14px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.35); }
.fan-card .card-media { aspect-ratio: 4 / 3.3; }
.fan-card .card-meta { margin: 0.85rem 0.25rem 0.35rem; }
.fan-card .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-inline: 0.25rem; font-size: 1.02rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.hero-text { position: relative; z-index: 3; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.hero-welcome { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 0.6rem; }
.hero-title { max-width: 15ch; margin-inline: auto; font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem); line-height: 1; letter-spacing: -0.055em; }
.hero-title:lang(ar), :lang(ar) .hero-title { line-height: 1.3; max-width: 20ch; letter-spacing: 0; font-size: clamp(2.3rem, 1rem + 4.2vw, 4.4rem); }

/* ---------- 6. Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-title { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.75rem); line-height: 1; letter-spacing: -0.05em; }
:lang(ar) .section-title { line-height: 1.3; letter-spacing: 0; }
.section-intro { color: var(--muted); margin-top: 0.75rem; max-width: 52ch; }
.section-kicker { text-align: center; font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 1.25rem; }

/* ---------- 7. Explore ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.explore-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; border: 1px solid var(--line); background: #fff; transition: border-color 0.25s; }
.explore-name { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem); font-weight: 500; color: #555; letter-spacing: -0.02em; transition: color 0.25s, transform 0.35s var(--ease); }
.explore-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.explore-item:hover { border-color: var(--ink); }
.explore-item:hover .explore-name { color: var(--ink); transform: translateX(4px); }
:dir(rtl) .explore-item:hover .explore-name { transform: translateX(-4px); }

/* ---------- 8. Cards ---------- */
.card-grid, .featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transition: opacity 0.3s; }
.card-grid.is-loading { opacity: 0.4; pointer-events: none; }
.card { position: relative; display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--line); background: #fff; transition: border-color 0.3s; }
.card:hover { border-color: var(--line-strong); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.1; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.card:hover .card-media img, .fan-card:hover .card-media img { transform: scale(1.05); }
.card-tag { position: absolute; top: 0; inset-inline-start: 0; z-index: 2; max-width: 85%; padding: 0.3rem 0.6rem; background: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-arrow { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; background: #fff; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.card-arrow .icon { width: 14px; height: 14px; }
.card:hover .card-arrow { opacity: 1; transform: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 0.9rem 0.35rem 0.55rem; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 13px; color: var(--muted); margin-bottom: 0.5rem; }
.card-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; }
.card-title { font-size: 1.1rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
:lang(ar) .card-title { font-weight: 600; line-height: 1.55; letter-spacing: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-excerpt { margin-top: 0.75rem; font-size: 14px; color: var(--muted); }
.card--wide { grid-column: span 2; flex-direction: row; gap: 1.5rem; align-items: stretch; }
.card--wide .card-media { flex: 0 0 48%; aspect-ratio: 0.93; }
.card--wide .card-body { justify-content: center; padding: 1rem 0.5rem; }
.card--wide .card-title { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }

/* Typographic tile when an entry has no image */
.tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; background: var(--soft-2); overflow: hidden; }
.tile-mark { position: absolute; top: -0.12em; inset-inline-end: 0.06em; font-size: clamp(7rem, 12vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: rgba(0, 0, 0, 0.07); }
.tile-word { position: relative; font-size: 0.95rem; font-weight: 600; color: rgba(0, 0, 0, 0.55); }
.tile--research { background: #e9e7e2; }
.tile--interviews { background: #e3e7e8; }
.tile--literature { background: #ebe5e1; }

/* ---------- 9. Filters / load more ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 2.25rem; }
.js .js-pagination { display: none; }
.pagination ul { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); padding-inline: 0.6rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { padding-block: 3rem; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 1.25rem; }
.search-form { display: flex; width: min(100%, 460px); border: 1px solid var(--line-strong); background: #fff; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 0.75rem 1rem; outline: none; }
.search-form .icon-btn { width: 46px; height: auto; }

/* ---------- 10. Numbers ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.number-item { padding: clamp(1.25rem, 2.5vw, 2rem); border-inline-end: 1px solid var(--line); }
.number-item:last-child { border-inline-end: 0; }
.number-big { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.75rem; white-space: nowrap; text-align: start; }
:dir(rtl) .number-big { text-align: right; letter-spacing: 0; }
.number-text { font-size: 14px; color: var(--muted); }

/* ---------- 11. Quote ---------- */
.quote-band { background: var(--soft); padding-block: clamp(4rem, 8vw, 7rem); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 980px; }
.quote-band blockquote p { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }
:lang(ar) .quote-band blockquote p { line-height: 1.7; letter-spacing: 0; }
.quote-band figcaption { margin-top: 1.5rem; font-size: 14px; color: var(--muted); }

/* ---------- 12. About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-bio { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 2rem; }
.about-bio p { margin-bottom: 1em; }

/* ---------- 13. Contact band + WhatsApp ---------- */
.contact-band { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.contact-band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.contact-band-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 1rem; }
:lang(ar) .contact-band-title { line-height: 1.35; letter-spacing: 0; }
.contact-band p { color: rgba(255, 255, 255, 0.72); }
.contact-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.wa-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.wa { position: relative; display: inline-flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.25); color: inherit; transition: background-color 0.25s, border-color 0.25s, color 0.25s; text-align: start; }
.wa:hover, .wa.copied { background: #25d366; border-color: #25d366; color: #06150b; }
.wa .icon { width: 22px; height: 22px; }
.wa__txt { display: flex; flex-direction: column; line-height: 1.3; }
.wa__txt strong { font-weight: 600; }
.wa__key { font-size: 12px; opacity: 0.8; }
.wa__copy { width: 15px !important; height: 15px !important; opacity: 0.6; }
.wa__status { position: absolute; inset-inline-start: 0; top: calc(100% + 0.3rem); font-size: 12px; }
.wa__note { font-size: 13px; opacity: 0.7; max-width: 42ch; margin: 0; }

/* ---------- 14. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-about p { color: var(--muted); margin: 0.6rem 0 1.25rem; max-width: 34ch; }
.footer-title { font-size: 14px; font-weight: 600; margin-bottom: 1rem; }
.footer-list { display: grid; gap: 0.55rem; }
.footer-list a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.footer-list a:hover, .footer-list a.is-current { color: var(--ink); }
.footer-list + .footer-list { margin-top: 0.55rem; }
.social-icons { display: flex; gap: 0.4rem; }
.social-icons a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.social-icons a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.social-icons .icon { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.to-top { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); }
.to-top:hover { border-color: var(--ink); }

/* ---------- 15. Page heads ---------- */
.page-head { background: var(--soft); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page-head--center { text-align: center; }
.page-head--center .page-desc { margin-inline: auto; }
.page-head--center .search-form { margin: 1.5rem auto; }
.page-pre { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 0.5rem; }
.page-title { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.055em; }
:lang(ar) .page-title { line-height: 1.3; letter-spacing: 0; }
.page-desc { margin-top: 1rem; max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.page-count { margin-top: 1rem; font-size: 14px; color: var(--muted); }
.breadcrumbs { margin-bottom: 1.25rem; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 0.45rem; opacity: 0.5; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- 16. Single ---------- */
.entry-head { background: var(--soft); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); text-align: center; }
.entry-head.has-cover { padding-bottom: clamp(7rem, 14vw, 11rem); }
.entry-head-inner { display: flex; flex-direction: column; align-items: center; }
.entry-head .breadcrumbs ol { justify-content: center; }
.entry-title { max-width: 18ch; margin-top: 1.25rem; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.3rem); line-height: 1.02; letter-spacing: -0.055em; }
:lang(ar) .entry-title { line-height: 1.35; max-width: 22ch; letter-spacing: 0; }
.entry-dek { max-width: 62ch; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.05rem; }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin-top: 1.5rem; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.entry-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.entry-meta .icon { width: 16px; height: 16px; }
.entry-ext { margin-top: 1.5rem; }
.entry-cover { margin-top: calc(clamp(7rem, 14vw, 11rem) * -1 + 1rem); }
.entry-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.entry-layout { display: grid; grid-template-columns: 110px minmax(0, 830px); justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.entry-share { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.entry-share p { font-size: 15px; font-weight: 600; margin-bottom: 0.75rem; }
.entry-share ul { display: grid; gap: 0.2rem; }
.entry-share a, .entry-share button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.entry-share a:hover, .entry-share button:hover { background: var(--ink); color: #fff; }

.prose { font-size: 1.06rem; line-height: 1.8; color: #444; }
:lang(ar) .prose { font-size: 1.12rem; line-height: 2; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); letter-spacing: -0.03em; margin-top: 2em; line-height: 1.2; }
:lang(ar) .prose h2, :lang(ar) .prose h3 { line-height: 1.5; letter-spacing: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.1rem); }
.prose h3 { font-size: 1.35rem; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--ink); color: var(--ink); font-size: 1.2em; font-weight: 500; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { width: 100%; }
.prose figcaption, .prose .wp-element-caption { margin-top: 0.5rem; font-size: 13px; color: var(--muted); text-align: center; }
.prose .wp-block-button__link { display: inline-flex; padding: 0.75rem 1.25rem; background: var(--ink); color: #fff; text-decoration: none; border-radius: 0; font-size: 14px; font-weight: 600; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--soft); font-size: 0.9rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.65rem; border-bottom: 1px solid var(--line); text-align: start; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem !important; }
.entry-tags a { text-decoration: none; }
.author-box { display: flex; align-items: center; gap: 1rem; margin-top: 3rem !important; padding: 1.25rem; border: 1px solid var(--line); }
.author-box .author-avatar, .prose .author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0; }
.author-name { font-weight: 700; color: var(--ink); margin: 0; }
.author-role { font-size: 14px; color: var(--muted); margin: 0; }
.related { border-top: 1px solid var(--line); }

/* Comments */
.comments-wrap { max-width: 860px; padding-bottom: 4rem; }
.comments-title, .comment-reply-title { font-size: 1.8rem; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.comment-list { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.comment-list .children { margin-top: 1rem; padding-inline-start: 1.5rem; display: grid; gap: 1rem; }
.comment-body { padding: 1.25rem; border: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 14px; margin-bottom: 0.5rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 0.3rem; }

/* ---------- 17. Forms / contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-box { padding: 1.25rem; border: 1px solid var(--line); }
.contact-label { font-size: 13px; color: var(--muted); margin-bottom: 0.6rem; }
.contact-value { font-size: 1.15rem; font-weight: 600; }
.contact-box .wa { border-color: var(--line); }
.contact-box .wa__note { color: var(--muted); opacity: 1; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line-strong); background: #fff; border-radius: 0; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus, .comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c4422b; }
.consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 0.3rem; accent-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-msg { font-size: 14px; min-height: 1.2em; margin: 0; }
.form-msg.is-ok, .form-status.is-ok { color: #1c7c45; }
.form-msg.is-error, .form-status.is-error { color: #c4422b; }
.form-status { font-size: 14px; }

/* ---------- 18. Reveal animations (progressive) ---------- */
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.08em 0.18em; margin-block: -0.08em -0.18em; }
.word { display: inline-block; will-change: transform; }
.js .js-words .word { transform: translateY(110%); }
.js .js-fade, .js .js-reveal { opacity: 0; transform: translateY(24px); }
.js .fan-slot { opacity: 0; }
.no-motion .js-words .word, .no-motion .js-fade, .no-motion .js-reveal { transform: none !important; opacity: 1 !important; }
.no-motion .fan-slot { opacity: 1 !important; }

/* ---------- 19. WordPress core ---------- */
.alignleft { float: inline-start; margin-inline-end: 1.5rem; }
.alignright { float: inline-end; margin-inline-start: 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 13px; color: var(--muted); }
.page-links { display: flex; gap: 0.5rem; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
	.main-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-inline-start: auto; }
	.card-grid, .featured-grid { grid-template-columns: repeat(2, 1fr); }
	.numbers-grid { grid-template-columns: repeat(2, 1fr); }
	.number-item:nth-child(2) { border-inline-end: 0; }
	.number-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
	:root { --header-h: 58px; }
	.header-actions .lang-switch { display: none; }
	.fan { --w: 168px; --k: 0.85; height: 300px; }
	.fan-slot:nth-child(1), .fan-slot:nth-child(5) { display: none; }
	.fan-card .card-title { font-size: 0.9rem; }
	.explore-grid { grid-template-columns: 1fr; }
	.card-grid, .featured-grid { grid-template-columns: 1fr; }
	.card--wide { grid-column: auto; flex-direction: column; gap: 0; }
	.card--wide .card-media { flex: none; aspect-ratio: 4 / 3.1; }
	.about-grid, .contact-band-inner, .contact-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
	.entry-layout { grid-template-columns: 1fr; }
	.entry-share { position: static; display: flex; align-items: center; gap: 0.75rem; order: 2; }
	.entry-share p { margin: 0; }
	.entry-share ul { display: flex; flex-wrap: wrap; }
	.footer-bottom { flex-wrap: wrap; }
}

/* ---------- 21. Reduced motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.js .js-words .word, .js .js-fade, .js .js-reveal { transform: none !important; opacity: 1 !important; }
	.js .fan-slot { opacity: 1; }
}
@media print {
	.site-header, .site-footer, .search-overlay, .mobile-menu, .entry-share, .related, .comments-wrap, .contact-band { display: none !important; }
	.js .js-words .word, .js .js-fade, .js .js-reveal { transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   22. Interactive colour layer (Looma-style)
   ========================================================================== */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
	--peach: #f9d9c6;
	--rose: #f6d3e6;
	--lilac: #e3dcf7;
	--sky: #d6e8fb;
	--grad-ink: linear-gradient(180deg, #1f1f1f 0%, #4a4a4a 100%);
	--grad-ring: conic-gradient(from var(--spin), #5ec8ff, #9a7bff, #ff7ac0, #ffa95c, #5ec8ff);
}

/* Glass header pill */
.site-header { background: transparent; padding-top: 10px; }
.site-header.is-scrolled { box-shadow: none; }
.site-header .header-inner { height: calc(var(--header-h) - 4px); max-width: calc(var(--container) + var(--gutter) * 2 - 2rem); padding-inline: 1.1rem; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 18px; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(60, 40, 80, 0.25); transition: background-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled .header-inner { background: rgba(255, 255, 255, 0.82); box-shadow: 0 14px 40px -20px rgba(60, 40, 80, 0.35); }
body:not(.home) .site-main { margin-top: calc((var(--header-h) + 10px) * -1); }
body:not(.home) .page-head, body:not(.home) .entry-head { padding-top: calc(var(--header-h) + 3rem); }
.home .site-main { margin-top: calc((var(--header-h) + 10px) * -1); }

/* Animated gradient-ring button */
.btn--glow { position: relative; border: 2px solid transparent; border-radius: 12px; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; color: var(--ink); animation: spin-ring 4s linear infinite; box-shadow: 0 8px 22px -12px rgba(154, 123, 255, 0.6); }
.btn--glow:hover { animation-duration: 1.6s; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; }
.btn--glow .icon { width: 17px; height: 17px; }
.btn--glow:hover .icon { transform: rotate(20deg) scale(1.1); }
@keyframes spin-ring { to { --spin: 360deg; } }

/* Aurora background (hero + page heads) */
.aurora { position: relative; isolation: isolate; background: #fbf6f3; }
.aurora-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: 0.85; will-change: transform; }
.blob--1 { background: var(--peach); top: -30vmax; inset-inline-start: -15vmax; animation: drift-1 18s ease-in-out infinite alternate; }
.blob--2 { background: var(--rose); top: -10vmax; inset-inline-end: -20vmax; animation: drift-2 22s ease-in-out infinite alternate; }
.blob--3 { background: var(--lilac); bottom: -35vmax; inset-inline-start: 20%; animation: drift-3 26s ease-in-out infinite alternate; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: var(--gx, 50%); top: var(--gy, 40%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(214, 232, 251, 0.35) 40%, transparent 70%); transition: left 0.6s var(--ease-out), top 0.6s var(--ease-out); }
@keyframes drift-1 { to { transform: translate(12vmax, 8vmax) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(-10vmax, 12vmax) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-14vmax, -10vmax) scale(1.15); } }
.page-head, .entry-head { background: linear-gradient(120deg, #fbf3ee 0%, #f8eef6 45%, #eef0fb 100%); background-size: 200% 200%; animation: soft-shift 16s ease-in-out infinite alternate; }
@keyframes soft-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Hero adjustments */
.hero { background: transparent; padding-top: calc(var(--header-h) + 2.25rem); }
.hero-pill { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.05); backdrop-filter: blur(8px); }
.hero-pill .icon { width: 15px; height: 15px; color: #9a7bff; }
.hero-title .word { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-title .word, .entry-title .word, .section-title .word { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { padding-block: 1rem 0.5rem; }

/* Floating section tiles around the headline */
.float-tile { position: absolute; z-index: 4; display: block; width: clamp(64px, 6vw + 20px, 112px); transform: translate(calc(var(--mx, 0) * var(--d, 1) * 18px), calc(var(--my, 0) * var(--d, 1) * 18px)); transition: transform 0.6s var(--ease-out); }
.float-inner { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 28%; box-shadow: 0 20px 40px -18px rgba(60, 40, 80, 0.45); animation: bob 6s ease-in-out infinite; transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.float-inner img { width: 100%; height: 100%; object-fit: cover; }
.float-letter { font-size: clamp(1.8rem, 2vw + 0.8rem, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.float-tile--1 .float-inner { background: linear-gradient(140deg, #ffb36b, #f0582a); }
.float-tile--2 .float-inner { background: linear-gradient(140deg, #6fd0ff, #1764d8); animation-delay: -1.5s; }
.float-tile--3 .float-inner { background: linear-gradient(140deg, #b89bff, #6a3fd8); animation-delay: -3s; }
.float-tile--4 .float-inner { background: linear-gradient(140deg, #ff8fc0, #e0337a); animation-delay: -4.5s; }
.float-tile.has-img .float-inner { background: #fff; padding: 0; }
.float-tile--1 { top: -6%; inset-inline-start: 4%; --d: 0.6; rotate: -10deg; }
.float-tile--2 { top: -2%; inset-inline-end: 6%; --d: 1; rotate: 12deg; }
.float-tile--3 { bottom: -10%; inset-inline-start: 8%; --d: 0.8; rotate: 8deg; }
.float-tile--4 { bottom: 4%; inset-inline-end: 3%; --d: 1.2; rotate: -14deg; }
.float-tile:hover .float-inner { transform: scale(1.08); box-shadow: 0 26px 50px -18px rgba(60, 40, 80, 0.55); }
.float-label { position: absolute; top: 100%; left: 50%; translate: -50% 6px; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.25s, translate 0.25s; pointer-events: none; }
.float-tile:hover .float-label, .float-tile:focus-visible .float-label { opacity: 1; translate: -50% 10px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Moving gallery (carousel fan) */
.fan-slot { transform: translate(calc(var(--x) * var(--spread)), var(--y)) rotate(var(--r)) scale(var(--s, 1)); opacity: var(--o, 1); transition: transform 1.1s var(--ease-out), opacity 0.6s; }
.fan-slot.no-trans { transition: none; }
.js .fan-slot { opacity: var(--o, 0); }
.fan-slot:nth-child(n+6) { --x: 3; --r: 40deg; --y: 220px; --o: 0; pointer-events: none; }
.js-fan.is-ready .fan-slot { pointer-events: auto; }
.js-fan.is-ready .fan-slot[aria-hidden="true"] { pointer-events: none; }

/* Explore & cards: colourful hover */
.explore-item { position: relative; overflow: hidden; }
.explore-item::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, var(--peach), var(--rose), var(--lilac)); opacity: 0; transition: opacity 0.4s; }
.explore-item > * { position: relative; z-index: 1; }
.explore-item:hover::before { opacity: 0.55; }
.card { transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(90, 60, 140, 0.35); border-color: #e2d8f0; }
.pill.is-active { background: linear-gradient(120deg, #1f1f1f, #3b2d52); }
.quote-band { background: linear-gradient(120deg, #fbf3ee, #f6eaf4 50%, #eceffb); }
.contact-band { background: radial-gradient(120% 140% at 0% 0%, #2a1f3d 0%, #0e0e0e 55%), #0e0e0e; }

/* ==========================================================================
   23. About page: image header + scroll-revealed paragraph
   ========================================================================== */
.about-hero { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; color: #fff; background: #111; }
.about-hero-media { position: absolute; inset: 0; will-change: transform; }
.about-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.about-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 50%); }
:dir(rtl) .about-hero-shade { background: linear-gradient(270deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 50%); }
.about-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 1rem); }
.about-hero .breadcrumbs, .about-hero .breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.about-hero-title { max-width: 13ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; }
:lang(ar) .about-hero-title { font-weight: 700; line-height: 1.35; letter-spacing: 0; max-width: 16ch; }
.about-intro-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
:lang(ar) .kicker { letter-spacing: 0; }
.scroll-reveal { font-size: clamp(1.55rem, 1rem + 1.7vw, 2.5rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.025em; color: var(--ink); margin: 0; }
:lang(ar) .scroll-reveal { line-height: 1.75; letter-spacing: 0; }
.rw-mask { display: inline; }
.rw { transition: color 0.2s; }
.js .js-scroll-reveal .rw { color: #cfcfcf; }
.no-motion .js-scroll-reveal .rw { color: inherit !important; }
.about-intro-side { color: var(--muted); font-size: 15px; display: grid; gap: 1.25rem; }
.about-intro-side p { margin: 0; }
.about-intro-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; }
.about-intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

@media (max-width: 1080px) {
	.float-tile--1 { top: -14%; } .float-tile--2 { top: -12%; }
}
@media (max-width: 760px) {
	.site-header { padding-top: 6px; }
	.site-header .header-inner { border-radius: 14px; }
	.float-tile { width: 52px; }
	.float-tile--1 { top: -18%; inset-inline-start: 2%; } .float-tile--2 { top: -16%; inset-inline-end: 2%; }
	.float-tile--3 { bottom: -22%; inset-inline-start: 6%; } .float-tile--4 { bottom: -18%; inset-inline-end: 4%; }
	.about-intro-grid { grid-template-columns: 1fr; }
	.about-hero { height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
	.blob, .float-inner, .btn--glow, .page-head, .entry-head { animation: none !important; }
	.js .js-scroll-reveal .rw { color: inherit; }
}
.no-motion .fan-slot:nth-child(n+6) { display: none; }

/* ==========================================================================
   24. بالأدب — Instagram video previews
   ========================================================================== */
.lit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.lit-head .btn .icon { width: 18px; height: 18px; }
.section-kicker--start { text-align: start; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.reels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reel { display: flex; flex-direction: column; gap: 0.6rem; }
.reel-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: linear-gradient(150deg, #f9d9c6, #f6d3e6 50%, #e3dcf7); box-shadow: 0 18px 40px -26px rgba(60, 40, 80, 0.45); cursor: pointer; transition: transform 0.45s var(--ease-out), box-shadow 0.45s; }
.reel-media:hover, .reel-media:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(60, 40, 80, 0.55); }
.reel-media img, .reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-media video { opacity: 0; transition: opacity 0.35s; }
.reel-media.is-previewing video { opacity: 1; }
.reel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 45%); pointer-events: none; }
.reel-tile { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.95); }
.reel-tile .icon { width: 44px; height: 44px; }
.reel-play { position: absolute; z-index: 2; inset-inline-start: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); transition: transform 0.35s var(--ease-out); }
.reel-play .icon { width: 18px; height: 18px; }
.reel-media:hover .reel-play { transform: scale(1.1); }
.reel-media .card-tag { z-index: 2; border-radius: 0 0 8px 0; }
:dir(rtl) .reel-media .card-tag { border-radius: 0 0 0 8px; }
.reel-caption { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 13px; font-weight: 600; color: var(--muted); }
.reel-link .icon { width: 13px; height: 13px; }
.reel-link:hover { color: var(--ink); }
.reel-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; background: rgba(10, 8, 16, 0.78); backdrop-filter: blur(6px); }
.reel-modal[hidden] { display: none; }
.reel-modal-box { position: relative; width: min(420px, 100%); max-height: 92vh; }
.reel-frame { overflow: hidden; border-radius: 14px; background: #fff; height: min(760px, 86vh); }
.reel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-close { position: absolute; top: -48px; inset-inline-end: 0; color: #fff; }
.reel-close:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 1080px) { .reels-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .reels-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .reel-caption { -webkit-line-clamp: 2; } }
