/* IMF-Hub — "Aperture" design system. Light + dark themes, dark cinematic stages. */
:root {
  --bg: #f5f3ee; --bg-2: #ebe7de; --surface: #fffdf9; --ink: #0a1830; --muted: #36445a; --line: rgba(10, 24, 48, .14);
  --accent: #084c57; --accent-2: #0d6f7d; --tag-bg: rgba(8, 76, 87, .08);
  --btn-bg: #0a1830; --btn-ink: #ffffff; --shadow: 0 30px 60px -40px rgba(10, 24, 48, .35);
  --stage: #061224; --stage-2: #0a1d36; --s-ink: #f1f6fb; --s-muted: #c3d0de; --s-accent: #8fdde7; --s-line: rgba(180, 220, 235, .18);
  --glow: 143, 221, 231;
  --f-body: 'Readex Pro', system-ui, sans-serif; --f-display: 'Fraunces', Georgia, serif;
  --wrap: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:root[lang="ar"] { --f-display: 'Noto Kufi Arabic', 'Readex Pro', sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071426; --bg-2: #0b1c33; --surface: #0f2440; --ink: #eef3f8; --muted: #bccad9; --line: rgba(190, 215, 235, .16);
    --accent: #8fdde7; --accent-2: #6fcbd8; --tag-bg: rgba(143, 221, 231, .1); --btn-bg: #bfeef3; --btn-ink: #04121f; --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071426; --bg-2: #0b1c33; --surface: #0f2440; --ink: #eef3f8; --muted: #bccad9; --line: rgba(190, 215, 235, .16);
  --accent: #8fdde7; --accent-2: #6fcbd8; --tag-bg: rgba(143, 221, 231, .1); --btn-bg: #bfeef3; --btn-ink: #04121f; --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #5c7c93 transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 17px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
:root[lang="ar"] body { font-size: 17.5px; line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--s-accent); color: #04121f; padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.stage :focus-visible, .bar :focus-visible, .foot :focus-visible { outline-color: var(--s-accent); }

/* Type */
.display { font-family: var(--f-display); font-weight: 350; letter-spacing: -.02em; line-height: 1.08; font-optical-sizing: auto; }
:root[lang="ar"] .display { letter-spacing: 0; line-height: 1.45; font-weight: 500; }
.display.xl { font-size: clamp(46px, 7.2vw, 108px); }
.display.lg { font-size: clamp(38px, 5.2vw, 72px); }
.display.md { font-size: clamp(30px, 3.6vw, 50px); }
.display.sm { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; }
:root[lang="ar"] .display.xl { font-size: clamp(40px, 6vw, 88px); line-height: 1.35; }
.display em { font-style: italic; font-weight: 300; color: var(--s-accent); display: block; }
:root[lang="ar"] .display em { font-style: normal; font-weight: 300; }
.display span { display: block; }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--accent); margin: 0 0 18px; }
:root[lang="ar"] .kicker, :root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.lead { font-size: clamp(17px, 1.45vw, 20px); max-width: 60ch; color: var(--muted); }
.body-lg { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }
.muted, .note { color: var(--muted); }
.note { font-size: 14px; max-width: 80ch; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.star { width: 14px; height: 14px; fill: currentColor; flex: none; }
.star.sm { width: 11px; height: 11px; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 500 15px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s; white-space: nowrap; }
.btn.sm { padding: 11px 18px; font-size: 14px; }
.btn.solid { background: var(--btn-bg); color: var(--btn-ink); }
.stage .btn.solid, .bar .btn.solid { background: linear-gradient(135deg, #d9f6f9, #9fe2ea 55%, #7fd3df); color: #04121f; box-shadow: 0 10px 40px -12px rgba(var(--glow), .55); }
.btn.ghost { border-color: var(--s-line); color: var(--s-ink); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn:hover { transform: translateY(-2px); }
.btn .arr, .link .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arr, .link:hover .arr, a:hover > .link .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .link:hover .arr, [dir="rtl"] a:hover > .link .arr { transform: translateX(-4px); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Header: floating capsule */
.bar { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.bar-in { pointer-events: auto; width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; border-radius: 999px; color: var(--s-ink); position: relative; transition: transform .4s var(--ease); }
[dir="rtl"] .bar-in { padding: 10px 18px 10px 12px; }
.bar-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(6, 18, 36, .55); border: 1px solid var(--s-line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); z-index: -1; transition: background .4s; }
.bar.solid .bar-in::before { background: rgba(6, 18, 36, .9); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 40px; height: auto; }
.brand strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.2; }
.brand small { display: block; font-size: 11.5px; letter-spacing: .08em; color: var(--s-muted); }
.nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; }
.nav ul a { padding: 9px 13px; border-radius: 999px; font-size: 14.5px; color: var(--s-muted); transition: color .25s, background .25s; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--s-ink); background: rgba(255, 255, 255, .08); }
.nav-home, .nav-contact { display: none; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 14px; padding: 9px 12px; color: var(--s-ink); border-radius: 999px; }
.lang:hover { background: rgba(255, 255, 255, .08); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--s-line); background: transparent; color: var(--s-ink); display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.theme-btn:hover { background: rgba(255, 255, 255, .08); }
.theme-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme-btn .moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { opacity: 0; transform: rotate(60deg) scale(.6); } :root:not([data-theme="light"]) .theme-btn .moon { opacity: 1; transform: none; } }
.burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--s-line); background: transparent; position: relative; cursor: pointer; color: var(--s-ink); }
.burger span:not(.sr) { position: absolute; inset-inline: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); transform-origin: center; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Stages (always dark) */
.stage { position: relative; isolation: isolate; background: radial-gradient(1200px 700px at 78% 30%, rgba(13, 111, 125, .35), transparent 60%), radial-gradient(900px 600px at 10% 90%, rgba(30, 60, 120, .35), transparent 60%), var(--stage); color: var(--s-ink); overflow: hidden; }
[dir="rtl"] .stage { background: radial-gradient(1200px 700px at 22% 30%, rgba(13, 111, 125, .35), transparent 60%), radial-gradient(900px 600px at 90% 90%, rgba(30, 60, 120, .35), transparent 60%), var(--stage); }
.stage .kicker, .stage .eyebrow { color: var(--s-accent); }
.stage .lead { color: var(--s-muted); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 4px 4px; mask-image: linear-gradient(#000, transparent 85%); }
.synapse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero { padding: clamp(130px, 16vh, 180px) 0 clamp(60px, 8vh, 100px); }
.hero-home { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-page .hero-grid { grid-template-columns: 1.3fr .7fr; }

/* Aperture: circular lens echoing the logo emblem */
.aperture { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.aperture.sm { max-width: 380px; }
.orbits { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.orbits circle { fill: none; stroke: var(--s-line); stroke-width: 1; }
.orbits .o1 { stroke-dasharray: 2 7; }
.orbits .o2 { stroke: rgba(var(--glow), .35); }
.orbits .spin { fill: var(--s-accent); transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.lens { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: var(--stage-2); box-shadow: 0 0 0 1px rgba(var(--glow), .3), 0 40px 120px -30px rgba(var(--glow), .45), inset 0 0 80px rgba(0, 0, 0, .5); }
.lens .slide { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: 0; transform: scale(1.18); transition: opacity 1.8s ease, transform 9s ease-out; }
.lens .slide.on { opacity: 1; transform: scale(1.02); }
.lens-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .18), transparent 45%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(6, 18, 36, .55)); mix-blend-mode: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse strip */
.pulse { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 7vh, 80px); border-top: 1px solid var(--s-line); }
.pulse div { padding: 22px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.pulse div + div { padding-inline-start: 22px; border-inline-start: 1px solid var(--s-line); }
.pulse strong { font: 300 clamp(30px, 3vw, 44px)/1 var(--f-display); font-family: 'Fraunces', Georgia, serif; color: var(--s-ink); }
.pulse span { color: var(--s-muted); font-size: 14.5px; }

/* Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section.tight { padding-top: 0; }
.section.alt { background: var(--bg-2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 { max-width: 22ch; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.sticky { position: sticky; top: 120px; }
.prose p { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.prose p:first-child { color: var(--ink); font-size: clamp(19px, 1.6vw, 23px); }

/* Manifesto */
.mani-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mani-quote { margin: 0; }
.mani-quote p { font: 300 clamp(28px, 3.8vw, 54px)/1.25 var(--f-display); letter-spacing: -.015em; color: var(--ink); max-width: 26ch; }
:root[lang="ar"] .mani-quote p { line-height: 1.6; letter-spacing: 0; font-weight: 400; }
.mani-quote.sm p { font-size: clamp(22px, 2.4vw, 32px); }
.mani-quote p::before { content: ""; display: block; width: 56px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.mani-side { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.mani-side p { margin: 0; max-width: 62ch; }

/* Pillars index */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.pillars.three { grid-template-columns: repeat(3, 1fr); }
.pillars li { padding: 28px 24px 10px 0; position: relative; }
[dir="rtl"] .pillars li { padding: 28px 0 10px 24px; }
.pillars li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.pillars li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--accent); transition: width .6s var(--ease); }
.pillars li:hover::before { width: 100%; }
.p-i { display: block; font: 400 13px/1 'Fraunces', serif; color: var(--accent); letter-spacing: .1em; margin-bottom: 26px; }
.pillars h3, .process h3 { font: 400 22px/1.3 var(--f-display); margin-bottom: 10px; }
.pillars p, .process p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Band image */
.band { height: clamp(260px, 42vw, 520px); overflow: hidden; position: relative; }
.band-img { position: absolute; inset: -12% 0; background: var(--img) center / cover no-repeat; transform: translate3d(0, var(--py, 0), 0); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.alt + .band::after, .band:has(+ .alt)::after { background: linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg-2)); }

/* Programmes list */
.progs { border-top: 1px solid var(--line); counter-reset: p; }
.prog { display: grid; grid-template-columns: 60px 64px 1fr 300px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .4s, padding .4s var(--ease); }
.prog:hover { background: var(--surface); padding-inline: 18px; border-radius: 18px; box-shadow: var(--shadow); }
.prog-num { font: 300 28px/1 'Fraunces', serif; color: var(--accent); }
.prog-ico { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.ico { width: 26px; height: 26px; }
.prog h3 { font: 400 clamp(21px, 1.9vw, 26px)/1.3 var(--f-display); margin-bottom: 6px; }
.prog p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--tag-bg); color: var(--accent); white-space: nowrap; }

/* Research wall */
.wall { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.wall li { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.wall a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px 20px 24px; transition: background .35s; min-height: 190px; }
.wall a:hover { background: var(--surface); }
.inst { font: 400 19px/1.25 'Fraunces', Georgia, serif; color: var(--ink); text-align: start; }
.unit { font-size: 12.5px; color: var(--accent); letter-spacing: .02em; line-height: 1.5; }
.theme { margin-top: auto; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.mono { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 400 17px/1 'Fraunces', serif; letter-spacing: .04em; color: #eaf9fb; background: radial-gradient(circle at 30% 30%, #1a8a99, #0a2a4a 70%); margin-bottom: 8px; }
.p-name { font: 400 20px/1.35 var(--f-display); }
.p-desc { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.p-host { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); padding-top: 12px; }
.p-host .arr { width: 15px; height: 15px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-posts { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; }
.home-posts .feature { grid-row: span 2; }
.posts .feature { grid-column: span 2; }
.home-posts .feature { grid-column: auto; }
.post-link { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.post-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16 / 10; background: var(--img) center / cover no-repeat; transition: transform 1.2s var(--ease); }
.feature .post-img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.post-link:hover .post-img { transform: scale(1.04); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; position: relative; background: var(--surface); }
.post-body h3 { font: 400 21px/1.35 var(--f-display); }
.feature .post-body h3 { font-size: clamp(24px, 2.2vw, 32px); }
.post-body p { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.post-meta { display: flex; gap: 14px; font-size: 13px !important; color: var(--accent) !important; margin: 0 !important; }
.post-meta span + span::before { content: "·"; margin-inline-end: 14px; }
.post-body .link { align-self: flex-start; margin-top: auto; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process li { padding: 28px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.process .p-i { font-size: 44px; font-weight: 300; letter-spacing: 0; margin-bottom: 30px; }
.modes { display: grid; gap: 14px; }
.modes li { display: flex; align-items: center; gap: 14px; font-size: 19px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modes .star { color: var(--accent); }

/* Studies */
.studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.studies a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.studies a:hover { border-color: var(--accent); transform: translateY(-3px); }
.s-t { font: 400 18px/1.3 'Fraunces', serif; color: var(--accent); }
.s-d { color: var(--muted); font-size: 15px; }
.s-l { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; letter-spacing: .1em; color: var(--ink); }
.s-l .arr { width: 15px; height: 15px; }

/* Vision / facts */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { padding: clamp(30px, 4vw, 54px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.vm-card .display { margin: 0; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 400; }
:root[dir="rtl"] .facts dd[dir="ltr"] { text-align: end; }

/* CTA */
.cta { padding: clamp(80px, 10vw, 130px) 0; }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.cta .lead { margin-top: 10px; }

/* Article */
.hero-article { min-height: 78svh; display: flex; align-items: flex-end; }
.art-bg { position: absolute; inset: 0; z-index: -1; background: var(--img) center / cover no-repeat; animation: drift 24s ease-in-out infinite alternate; }
.art-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6, 18, 36, .55), rgba(6, 18, 36, .82) 55%, rgba(6, 18, 36, .97)); }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-2%); } }
.art-head { max-width: 900px; }
.art-head .eyebrow a { border-bottom: 1px solid currentColor; }
.art-meta { display: flex; gap: 18px; color: var(--s-muted); font-size: 14.5px; }
.read { max-width: 760px; }
.article-body p { font-size: clamp(18px, 1.35vw, 20px); color: var(--ink); line-height: 1.9; }
:root[lang="ar"] .article-body p { line-height: 2.05; }
.article-body > p:first-child::first-letter { font-family: 'Fraunces', serif; float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent); }
:root[lang="ar"] .article-body > p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; }
.article-body h2 { font: 400 clamp(24px, 2.2vw, 30px)/1.35 var(--f-display); margin: 1.6em 0 .6em; }
.article-body blockquote { margin: 1.6em 0; padding: 8px 0 8px 0; padding-inline-start: 28px; border-inline-start: 2px solid var(--accent); }
.article-body blockquote p { font: 300 clamp(22px, 2.2vw, 30px)/1.45 var(--f-display); color: var(--accent); margin: 0; }
.refs { margin: 50px 0 40px; padding: 26px 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.refs ol { list-style: decimal; padding-inline-start: 22px; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.refs a { color: var(--accent); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.refs span { display: inline-block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
a.c-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.c-card .kicker { margin: 0; }
.c-card strong { font: 400 clamp(20px, 2vw, 26px)/1.4 var(--f-display); overflow-wrap: anywhere; }
.c-card .link { align-self: flex-start; margin-top: 8px; }
.contact-side { display: grid; gap: 16px; }
.brief { padding: 28px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.brief .modes li { font-size: 16px; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.foot { background: var(--stage); color: var(--s-ink); padding: clamp(70px, 9vw, 110px) 0 30px; }
.foot-top { padding-bottom: 50px; border-bottom: 1px solid var(--s-line); }
.foot-quote { font: 300 clamp(24px, 3vw, 40px)/1.35 var(--f-display); max-width: 30ch; margin: 0; color: var(--s-ink); }
:root[lang="ar"] .foot-quote { line-height: 1.7; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: 40px; padding: 50px 0; }
.foot-brand img { width: 84px; height: auto; margin-bottom: 18px; }
.foot-name { font-weight: 500; margin-bottom: 6px; }
.foot-brand p:last-child, .foot-contact span { color: var(--s-muted); font-size: 15px; }
.foot-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-accent); margin-bottom: 14px; }
:root[lang="ar"] .foot-h { letter-spacing: 0; font-size: 14px; }
.foot-links { display: grid; gap: 10px; font-size: 15px; }
.foot-links a, .foot-contact a { color: var(--s-muted); transition: color .25s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--s-ink); }
.foot-contact { font-style: normal; display: grid; gap: 10px; align-content: start; font-size: 15px; }
[dir="rtl"] .foot-contact a[dir="ltr"] { text-align: right; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--s-line); color: var(--s-muted); font-size: 13.5px; }
.to-top { color: var(--s-ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars li:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .prog { grid-template-columns: 50px 56px 1fr; }
  .prog .tags { grid-column: 3; justify-content: flex-start; }
  .nav ul a { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: stretch; gap: 30px; padding: 100px clamp(20px, 6vw, 60px) 40px; background: rgba(6, 18, 36, .97); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav ul a { font: 400 26px/1.4 var(--f-display); display: block; padding: 10px 0; color: var(--s-ink); background: none !important; }
  .nav ul a[aria-current] { color: var(--s-accent); }
  .nav-home, .nav-contact { display: block; }
  .nav-tools { flex-wrap: wrap; }
  .bar-in { gap: 10px; }
  .hero-grid, .hero-page .hero-grid, .cta-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .aperture { max-width: 420px; order: -1; }
  .aperture.sm { max-width: 300px; }
  .hero-home .aperture { max-width: 380px; }
  .sticky { position: static; }
  .posts, .home-posts { grid-template-columns: 1fr 1fr; }
  .home-posts .feature, .posts .feature { grid-column: span 2; grid-row: auto; }
  .process { grid-template-columns: 1fr 1fr; }
  .studies { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; max-width: 16ch; }
  .pulse { grid-template-columns: 1fr 1fr; }
  .pulse div:nth-child(3) { border-inline-start: 0; padding-inline-start: 4px; }
  .pillars, .pillars.three { grid-template-columns: 1fr; }
  .pillars li, [dir="rtl"] .pillars li { border-inline-start: 0 !important; padding: 24px 0 10px !important; border-bottom: 1px solid var(--line); }
  .wall { grid-template-columns: 1fr 1fr; }
  .wall a { min-height: 170px; padding: 20px 16px; }
  .inst { font-size: 17px; }
  .partners, .posts, .home-posts, .process, .studies, .vm { grid-template-columns: 1fr; }
  .home-posts .feature, .posts .feature { grid-column: auto; }
  .prog { grid-template-columns: 1fr; gap: 14px; }
  .prog .tags { grid-column: auto; }
  .prog-num { display: none; }
  .mani-side { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-home .aperture { max-width: 300px; }
  .aperture.sm { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lens .slide { transform: none; }
}
@media print {
  .bar, .synapse, .aperture, .band, .cta, .foot-top { display: none; }
  .stage, .foot { background: #fff; color: #000; }
  body { background: #fff; color: #000; }
}
