/* =========================================================
   ACKU — premium redesign
   Palette: paper, lapis lazuli ink, saffron gold, terracotta
   ========================================================= */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #002b4e;
  --ink-2: #0b3a63;
  --lapis: #1d4f8c;
  --gold: #c8962e;
  --gold-2: #e0b65a;
  --terracotta: #b4532a;
  --text: #24304a;
  --muted: #5d6679;
  --line: rgba(15, 27, 51, .12);
  --line-light: rgba(246, 241, 231, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rtl: "Vazirmatn", "Inter", sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,27,51,.06), 0 12px 40px -12px rgba(15,27,51,.18);
  --shadow-lg: 0 30px 80px -24px rgba(15,27,51,.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--lapis); }
[dir="rtl"], .rtl, [lang="fa"], [lang="ps"] { font-family: var(--rtl); letter-spacing: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.i { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.i.flip { transform: rotate(180deg); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 22px;
}
.eyebrow .rule { width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 820px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__title { font-size: clamp(34px, 4.6vw, 58px); font-weight: 350; font-variation-settings: "opsz" 144; }
.section__lead { margin: 24px 0 0; font-size: 18px; color: var(--muted); max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .02em;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(200,150,46,.7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--lapis); }
.btn--ink:hover .i { transform: translateX(4px); }
.btn--ghost-light { border: 1px solid var(--line-light); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s, color .3s; }
.link:hover { border-color: currentColor; color: var(--lapis); }
.link:hover .i { transform: translateX(4px); }

/* Motion (GSAP drives reveals; nothing is hidden by CSS alone) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .arch__star, .card { animation: none !important; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Preloader */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; }
html:not(.js) .loader { display: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__star { width: 96px; height: 96px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.loader__star * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__word { display: flex; gap: .18em; margin: 0; font: 300 54px/1 var(--serif); color: var(--paper); letter-spacing: .1em; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__count { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: .3em; color: rgba(246,241,231,.5); font-variant-numeric: tabular-nums; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--gold), var(--terracotta)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none; }
.cursor span { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s; }
.cursor.is-hover span { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(200,150,46,.18); border: 1px solid var(--gold); }
@media (pointer: fine) { .js .cursor { display: block; } }

/* Concept label */
.concept { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(15,27,51,.92); color: var(--paper); font-size: 12px; font-weight: 500; letter-spacing: .02em; box-shadow: var(--shadow); backdrop-filter: blur(10px); max-width: calc(100vw - 32px); }
.concept__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 560px) { .concept__more { display: none; } }

/* Footer wordmark */
.footer__word { margin: 40px 0 0; font: 300 clamp(90px, 24vw, 360px)/.8 var(--serif); letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(224,182,90,.35); user-select: none; overflow: hidden; padding-bottom: .06em; }
.footer__word .char { display: inline-block; }

/* Pinned horizontal Covid scroller (desktop) */
.covid.is-pinned { overflow: hidden; }
.covid.is-pinned .scroller { overflow: visible; scroll-snap-type: none; }
.covid.is-pinned .scroller__ctrl { display: none; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: rgba(246,241,231,.75); font-size: 13px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.utility__note { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5bc58a; box-shadow: 0 0 0 4px rgba(91,197,138,.18); flex: none; }
.utility__right { display: flex; align-items: center; gap: 20px; }
.utility__social { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 16px 0 0; border-right: 1px solid rgba(246,241,231,.15); }
.utility__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background .2s, color .2s; }
.utility__social a:hover { background: rgba(246,241,231,.1); color: var(--gold-2); }
.utility__social .i { width: 15px; height: 15px; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 4px 10px; border-radius: 999px; transition: background .2s, color .2s; }
.lang a:hover { color: var(--paper); }
.lang a.is-active { background: rgba(246,241,231,.1); color: var(--paper); }
.utility__link:hover { color: var(--gold-2); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(15,27,51,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { width: 44px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 6px 18px -8px rgba(0,43,78,.6); transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font: 500 19px/1.05 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.brand__text small { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.brand--light .brand__logo { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.brand--light strong { color: var(--paper); }
.brand--light small { color: rgba(246,241,231,.6); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); transition: background .2s; }
.nav__link .i { width: 14px; height: 14px; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(15,27,51,.06); }
.nav__item.is-open > .nav__link .i { transform: rotate(180deg); }

.dropdown, .mega {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav__item.is-open > .dropdown, .nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.dropdown { min-width: 250px; padding: 10px; display: flex; flex-direction: column; }
.dropdown a { padding: 9px 14px; border-radius: 10px; font-size: 14.5px; transition: background .2s, color .2s; }
.dropdown a:hover { background: var(--paper); color: var(--lapis); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }

.mega { left: -40px; width: min(920px, 90vw); padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 24px; }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__col a { padding: 7px 0; font-size: 14.5px; transition: color .2s, transform .2s; }
.mega__col a:hover { color: var(--lapis); transform: translateX(3px); }
.mega__eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.mega__eyebrow.light { color: var(--gold-2); }
.mega__feature { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 230px; isolation: isolate; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.mega__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,43,78,.15), rgba(0,43,78,.92) 65%); }
.mega__feature:hover img { transform: scale(1.08); }
a.mega__eyebrow:hover { color: var(--ink); }
.mega__feature strong { font: 400 22px/1.2 var(--serif); }
.mega__feature span:last-child { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold-2); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 0; overflow: hidden; }
.hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 60%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(42px, 6vw, 82px); font-weight: 300; line-height: 1.02; letter-spacing: -.035em; font-variation-settings: "opsz" 144; margin-bottom: 28px; }
.hero__title em { font-weight: 400; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 40px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }

.portals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 600px; }
.portal { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--card); font-weight: 600; color: var(--ink); transition: background .3s, color .3s; }
.portal span:nth-child(2) { flex: 1; }
.portal__n { font: italic 400 16px/1 var(--serif); color: var(--gold); width: 26px; }
.portal:hover { background: var(--ink); color: var(--paper); }
.portal:hover .i { transform: translateX(4px); color: var(--gold-2); }

.hero__visual { position: relative; transform-style: preserve-3d; aspect-ratio: 4/5; max-height: 620px; justify-self: center; width: 100%; max-width: 460px; }
.arch {
  position: absolute; inset: 0 8% 0 8%;
  border-radius: 999px 999px 24px 24px;
  background: linear-gradient(160deg, var(--lapis), var(--ink) 70%);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.arch__inner {
  position: relative; height: 100%; border-radius: 999px 999px 14px 14px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--gold-2); text-align: center;
}
.arch__photo { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2; }
.arch__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,43,78,0) 35%, rgba(0,43,78,.75) 68%, rgba(0,43,78,.97)); }
.arch__inner::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 8px 8px; border: 1px solid rgba(224,182,90,.45); pointer-events: none; }
.arch__count { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 28px 34px; }
.arch__star { width: 44px; height: 44px; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.arch__num { font: 300 clamp(38px, 4.4vw, 56px)/1 var(--serif); color: var(--paper); letter-spacing: -.03em; }
.arch__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,241,231,.75); max-width: 240px; line-height: 1.5; }

.card {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 200px;
  animation: float 7s ease-in-out infinite;
}
.card strong { font: 500 16px/1.25 var(--serif); color: var(--ink); }
.card__tag { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.card__meta { font-size: 12px; color: var(--muted); }
.card--a { top: 10%; left: -8%; }
.card--b { top: 30%; right: -9%; animation-delay: -2.4s; }
.card--c { top: 50%; left: -10%; animation-delay: -4.8s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats__title { margin: clamp(56px, 8vw, 100px) 0 0; padding-bottom: 14px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 40px 0; border-right: 1px solid var(--line); margin: 0; }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat dt { font: 300 clamp(36px, 4vw, 54px)/1 var(--serif); color: var(--ink); letter-spacing: -.03em; margin-bottom: 12px; }
.stat dd { margin: 0; font-size: 14px; color: var(--muted); max-width: 250px; line-height: 1.5; }

/* ---------- Programs ---------- */
.programs { background: var(--card); border-top: 1px solid var(--line); }
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program {
  position: relative; padding: 40px 34px 36px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s, background .5s, color .5s;
}
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program__num { position: absolute; top: 28px; right: 32px; font: italic 300 48px/1 var(--serif); color: rgba(15,27,51,.12); }
.program__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--card); color: var(--lapis); border: 1px solid var(--line); margin-bottom: 32px; }
.program__icon svg { width: 34px; height: 34px; }
.program h3 { font-size: 34px; margin-bottom: 14px; }
.program p { color: var(--muted); }
.program__links { list-style: none; padding: 20px 0; margin: auto 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.program__links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.program__links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.program--feature { background: var(--ink); color: rgba(246,241,231,.75); border-color: var(--ink); }
.program--feature h3, .program--feature .link { color: var(--paper); }
.program--feature p { color: rgba(246,241,231,.7); }
.program--feature .program__num { color: rgba(224,182,90,.3); }
.program--feature .program__icon { background: rgba(246,241,231,.06); border-color: var(--line-light); color: var(--gold-2); }
.program--feature .program__links { border-color: var(--line-light); }
.program--feature .program__links a { border-color: var(--line-light); }
.program--feature .program__links a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.program--feature .link:hover { color: var(--gold-2); }

/* ---------- Impact mosaic ---------- */
.impact { background: var(--ink); padding: 12px; }
.impact__grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 12px; }
.tile { margin: 0; overflow: hidden; border-radius: 18px; position: relative; background: var(--ink-2); }
.tile img { width: 100%; height: 115%; object-fit: cover; }
.tile--a { grid-column: 1 / 3; }
.tile--b { grid-row: 1 / 3; grid-column: 4; }
.tile--c { grid-column: 5; }
.tile--d { grid-column: 5; grid-row: 2; }
.tile--e { grid-column: 1; grid-row: 2; }
.tile--f { grid-column: 2; grid-row: 2; }
.impact__copy { grid-column: 3; grid-row: 1 / 3; padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; color: rgba(246,241,231,.75); background: radial-gradient(circle at 30% 20%, rgba(224,182,90,.14), transparent 60%), var(--ink-2); border-radius: 18px; }
.impact__copy .section__title { color: var(--paper); font-size: clamp(28px, 3vw, 42px); margin-bottom: 20px; }
.impact__copy .section__title em { color: var(--gold-2); }
.impact__copy p { margin: 0; }

/* ---------- Books ---------- */
.books { background: var(--ink); color: rgba(246,241,231,.75); overflow: hidden; }
.books__pattern, .donate__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .08; }
.books__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.books .section__title { color: var(--paper); margin-bottom: 26px; }
.books .section__title em { color: var(--gold-2); }
.books__copy p { font-size: 17px; max-width: 480px; }
.books__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; perspective: 1200px; }
.book { display: block; color: var(--paper); }
.book:nth-child(2) { transform: translateY(-40px); }
.book__cover {
  aspect-ratio: 1; border-radius: 4px 12px 12px 4px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s var(--ease), box-shadow .6s; transform-origin: left center;
}
.book__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.3) 0, rgba(255,255,255,.18) 3px, transparent 10px, transparent 85%, rgba(255,255,255,.06)); pointer-events: none; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book__cover { transform: rotateY(-16deg) translateY(-8px); box-shadow: 30px 40px 60px -20px rgba(0,0,0,.7); }
.book__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.book__meta h3 { color: var(--paper); font: 600 clamp(14px, 1.4vw, 17px)/1.5 var(--rtl); }
.price { font: 500 20px/1 var(--serif); color: var(--gold-2); flex: none; }

/* ---------- History ---------- */
.history .section__head { margin-bottom: 48px; }
.history__photo { position: relative; margin: 0 clamp(16px, 4vw, 40px); height: clamp(300px, 42vw, 560px); border-radius: 28px; overflow: hidden; }
.history__photo img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.history__photo figcaption { position: absolute; left: 24px; bottom: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(0,43,78,.75); backdrop-filter: blur(8px); color: var(--paper); font-size: 13px; }
.history__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); margin-top: clamp(56px, 7vw, 90px); align-items: start; }
.quote { position: sticky; top: 120px; margin: 0; padding-top: 8px; }
.quote__star { width: 64px; height: 64px; color: var(--gold); margin-bottom: 24px; }
.quote p { font: 300 italic clamp(32px, 3.6vw, 50px)/1.15 var(--serif); color: var(--ink); letter-spacing: -.02em; margin-bottom: 20px; }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.years { list-style: none; margin: 0; padding: 0; position: relative; }
.years::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.years__line { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--gold); transform-origin: 0 0; transform: scaleY(0); }
.years li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 44px 32px; position: relative; }
.years li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.years__y { font: 300 44px/1 var(--serif); color: var(--lapis); letter-spacing: -.03em; }
.years h3 { font-size: 22px; margin-bottom: 8px; }
.years p { color: var(--muted); margin: 0; }

/* ---------- Resources ---------- */
.resources { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.res__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.res { position: relative; padding: 30px 28px 34px; background: var(--card); display: flex; flex-direction: column; gap: 10px; min-height: 170px; transition: background .35s, color .35s; }
.res__url { font-size: 12.5px; color: var(--terracotta); font-weight: 500; }
.res strong { font: 400 23px/1.2 var(--serif); color: var(--ink); margin-top: auto; transition: color .35s; }
.res .i { position: absolute; top: 28px; right: 26px; color: var(--muted); transition: transform .35s var(--ease), color .35s; }
.res:hover { background: var(--ink); }
.res:hover strong { color: var(--paper); }
.res:hover .res__url, .res:hover .i { color: var(--gold-2); }
.res:hover .i { transform: translate(3px, -3px); }

/* ---------- Journal ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip:hover { background: var(--ink); color: var(--paper); }

.journal__grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .4s, transform .4s var(--ease); }
.post:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post time { font-size: 13px; color: var(--muted); }
.post__kicker { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.post h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; flex: 1; }
.post h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.post h3 a:hover { background-size: 100% 1px; }
.post--lead { grid-row: span 2; padding: 0; overflow: hidden; }
.post__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.post__media img, .post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__media img, .post:hover .post__thumb img { transform: scale(1.05); }
.post--img { flex-direction: row; gap: 22px; padding: 22px; align-items: flex-start; }
.post__thumb { flex: 0 0 38%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; display: block; }
.post--img > div { display: flex; flex-direction: column; gap: 8px; }
.post--img h3 { font-size: clamp(18px, 1.6vw, 21px); }
.post--img p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.journal__more { margin-top: 36px; }
.chip--dark { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip--dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.post__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.post--lead h3 { font-size: clamp(26px, 2.8vw, 36px); }
.post__body p { color: var(--muted); margin: 0; }

/* ---------- Covid scroller ---------- */
.covid { background: var(--paper-2); }
.covid .section__head { margin-bottom: 40px; }
.scroller__ctrl { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(15,27,51,.25); display: grid; place-items: center; transition: background .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--paper); }
.scroller {
  --gutter: max(clamp(16px, 4vw, 40px), calc((100vw - var(--container)) / 2 + 40px));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
}
.scroller::-webkit-scrollbar { display: none; }
.story { flex: 0 0 clamp(210px, 21vw, 270px); scroll-snap-align: start; display: block; }
.story__cover { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; background: var(--ink); }
.story__cover img { width: 100%; height: 100%; object-fit: cover; }
.story:hover .story__cover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.story h3 { margin-top: 16px; font: 600 18px/1.5 var(--rtl); color: var(--ink); text-align: right; }
.story--more { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; aspect-ratio: 3/4; border: 1px dashed rgba(0,43,78,.3); border-radius: 16px; text-align: center; font: 400 22px/1.3 var(--serif); color: var(--ink); transition: background .3s, color .3s; align-self: flex-start; }
.story--more:hover { background: var(--ink); color: var(--paper); }

/* ---------- Video ---------- */
.video { background: var(--ink); color: rgba(246,241,231,.75); overflow: hidden; }
.video__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.video .section__title { color: var(--paper); margin-bottom: 24px; }
.video .section__title em { color: var(--gold-2); }
.video__copy > p { font-size: 17px; }
.video__copy [lang="fa"] { font-family: var(--rtl); }
.video__list { list-style: none; padding: 0; margin: 28px 0 36px; border-top: 1px solid var(--line-light); }
.video__list a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-light); color: var(--paper); font-size: 15px; transition: color .2s, padding .3s var(--ease); }
.video__list a:hover { color: var(--gold-2); padding-inline-start: 8px; }
.video__list .i { color: var(--gold); width: 16px; }
.video__list span { flex: 1; text-align: right; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); background: #000; cursor: pointer; isolation: isolate; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.player::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,43,78,.05) 40%, rgba(0,43,78,.9)); }
.player:hover img { transform: scale(1.04); }
.player__btn { position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(200,150,46,.25); transition: transform .4s var(--ease), box-shadow .4s; }
.player__btn svg { width: 30px; height: 30px; margin-left: 4px; }
.player:hover .player__btn { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(200,150,46,.18); }
.player__title { position: absolute; right: 28px; left: 28px; bottom: 22px; margin: 0; font: 600 16px/1.5 var(--rtl); color: var(--paper); text-align: right; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- News ---------- */
.news__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 100px); }
.news .section__title { margin-bottom: 32px; }
.newslist { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.newslist li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.newslist__img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: block; }
.newslist__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.newslist li:hover .newslist__img img { transform: scale(1.07); }
.newslist time { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-inline-start: 10px; }
.newslist h3 { font-size: 22px; line-height: 1.3; margin: 10px 0 8px; }
.newslist [dir="rtl"] h3 { font: 700 20px/1.6 var(--rtl); }
.newslist p { margin: 0; font-size: 14.5px; color: var(--muted); }
.newslist h3 a:hover { color: var(--lapis); }
.tag { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lapis); background: rgba(29,79,140,.08); padding: 6px 10px; border-radius: 999px; display: inline-block; }

.events { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; align-self: start; }
.evlist { list-style: none; padding: 0; margin: 0 0 24px; }
.evlist a { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.evlist li:last-child a { border-bottom: 0; }
.evlist img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; transition: transform .5s var(--ease); }
.evlist a:hover img { transform: scale(1.06) rotate(-1.5deg); }
.evlist span { font: 400 16px/1.35 var(--serif); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.evlist time { font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }

/* ---------- Partners ---------- */
.partners { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.partners__title { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 20px; animation: marquee 50s linear infinite; padding: 6px 0; }
.logo { flex: none; display: grid; place-items: center; width: 200px; height: 112px; padding: 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s; }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo:hover img { filter: none; opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Donate ---------- */
.donate { position: relative; background: linear-gradient(150deg, var(--lapis) 0%, var(--ink) 65%); color: var(--paper); padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; text-align: center; }
.donate__pattern { opacity: .1; }
.donate__bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; opacity: .16; filter: grayscale(.3); mix-blend-mode: luminosity; }
.donate__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.donate__star { position: absolute; width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(224,182,90,.12); pointer-events: none; }
.donate__title { color: var(--paper); font-size: clamp(30px, 4.2vw, 54px); font-weight: 300; max-width: 960px; margin-bottom: 40px; line-height: 1.15; }
.donate__title em { color: var(--gold-2); }
.donate__amounts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }

/* ---------- Visit / contact ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.visit .section__title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 24px; }
.visit__about > p { color: var(--muted); font-size: 17px; }
.infocards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.info { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--card); }
.info__label { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 12px; }
.info p { margin: 0; font: 400 18px/1.45 var(--serif); color: var(--ink); }
a.info { transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
a.info:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.info__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--lapis); }
.info__cta .i { width: 14px; height: 14px; }
.follow { margin-top: 28px; }
.follow__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.follow__list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.follow__list a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.follow__list .i { width: 16px; height: 16px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.form h3 { font-size: 32px; margin-bottom: 8px; }
.form__sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 10px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); font: 400 16px/1.4 var(--sans); color: var(--ink); resize: vertical;
  transition: border-color .2s, background .2s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 17px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lapis); background: var(--card); }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static { top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lapis); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--terracotta); }
.form__status { margin: 14px 0 0; font-size: 14px; text-align: center; min-height: 1.4em; color: var(--lapis); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(246,241,231,.65); padding: 90px 0 84px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); }
.footer__brand p { margin: 24px 0; max-width: 300px; }
.footer h4 { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--paper); }
.social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--paper); transition: background .2s, color .2s, border-color .2s; }
.social .i { width: 17px; height: 17px; }
.footer__news p { margin: 0 0 20px; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.subscribe { display: flex; background: rgba(246,241,231,.06); border: 1px solid var(--line-light); border-radius: 999px; padding: 5px; }
.subscribe input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 14px; color: var(--paper); font: inherit; }
.subscribe input:focus { outline: none; }
.subscribe button { background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; }
.footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .impact__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 220px 220px; }
  .impact__copy { grid-column: 1 / -1; grid-row: 1; }
  .tile--a { grid-column: 1 / 3; grid-row: 2; } .tile--b { grid-column: 3; grid-row: 2 / 4; } .tile--c { grid-column: 4; grid-row: 2; }
  .tile--d { grid-column: 4; grid-row: 3; } .tile--e { grid-column: 1; grid-row: 3; } .tile--f { grid-column: 2; grid-row: 3; }
  .history__grid, .video__grid { grid-template-columns: 1fr; }
  .quote { position: static; }
  .res__grid { grid-template-columns: repeat(2, 1fr); }
  .utility__social { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 124px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 20px clamp(16px, 4vw, 40px) 40px; gap: 20px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .header.is-scrolled .nav { inset: 68px 0 0 0; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; }
  .nav__link { width: 100%; justify-content: space-between; font: 400 26px/1.2 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .dropdown, .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; display: none; width: auto; padding: 12px 0; }
  .nav__item.is-open > .dropdown { display: flex; }
  .nav__item.is-open > .mega { display: grid; grid-template-columns: 1fr 1fr; }
  .mega__feature { grid-column: 1 / -1; }
  .nav__cta { padding: 18px; }
  .hero__grid, .books__grid, .news__grid, .visit__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 400px; }
  .programs__grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: span 3; }
}
@media (max-width: 760px) {
  .impact__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 200px 260px 200px; }
  .tile--a { grid-column: 1 / 3; grid-row: 2; } .tile--b { grid-column: 1; grid-row: 3; } .tile--d { grid-column: 2; grid-row: 3; }
  .tile--c { grid-column: 1; grid-row: 4; } .tile--e { display: none; } .tile--f { grid-column: 2; grid-row: 4; }
  .years li { grid-template-columns: 1fr; gap: 6px; }
  .years__y { font-size: 34px; }
  .post--img { flex-direction: column; }
  .post__thumb { flex: none; width: 100%; aspect-ratio: 16/9; }
  .newslist li { grid-template-columns: 96px 1fr; gap: 16px; }
  .newslist h3 { font-size: 18px !important; }
  .logo { width: 150px; height: 88px; padding: 14px 18px; }
  .history__photo { border-radius: 18px; }
  .brand__text strong { font-size: 16px; }
  .utility__note { font-size: 12px; }
  .utility__link { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
  .journal__grid { grid-template-columns: 1fr; }
  .post--lead { grid-row: auto; }
  .infocards { grid-template-columns: 1fr; }
  .card { min-width: 0; padding: 10px 14px; }
  .card strong { font-size: 14px; }
  .card--a { left: -2%; top: 6%; } .card--b { right: -2%; top: 28%; } .card--c { left: -2%; top: 48%; }
  .player__btn { width: 64px; height: 64px; margin: -40px 0 0 -32px; }
  .player__title { font-size: 13px; right: 16px; left: 16px; bottom: 12px; }
  .player::before { background: linear-gradient(180deg, transparent 45%, rgba(0,43,78,.95)); }
  .shelf { gap: 12px; }
  .book:nth-child(2) { transform: translateY(-18px); }
  .book__meta { flex-direction: column; align-items: flex-end; gap: 4px; }
  .book__meta h3 { font-size: 13px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: span 2; }
}
@media (max-width: 460px) {
  .res__grid { grid-template-columns: 1fr; }
  .res { min-height: 130px; }
  .lang a { padding: 4px 7px; }
  .utility__note span:not(.dot) { display: none; }
  .portals { grid-template-columns: 1fr; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; mask-image: radial-gradient(ellipse at 85% 20%, #000, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000, transparent 60%); }
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.page-hero__grid--solo { grid-template-columns: minmax(0, 900px); }
.page-hero__title { font-size: clamp(38px, 5.6vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.page-hero__title[dir="rtl"] { font-family: var(--rtl); font-weight: 700; letter-spacing: 0; line-height: 1.45; font-size: clamp(30px, 4.2vw, 54px); }
.page-hero__lead { margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 680px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 14px; }
.page-hero__img { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); background: var(--ink); }
.page-hero__img img { width: 100%; height: 115%; object-fit: cover; }
.page-hero--dark { background: var(--ink); color: rgba(246,241,231,.75); border: 0; }
.page-hero--dark .page-hero__title { color: var(--paper); }
.page-hero--dark .page-hero__title em { color: var(--gold-2); }
.page-hero--dark .page-hero__lead, .page-hero--dark .page-hero__meta { color: rgba(246,241,231,.7); }
.page-hero--dark .crumbs, .page-hero--dark .crumbs a { color: rgba(246,241,231,.6); }
.page-hero--dark .page-hero__pattern { opacity: .1; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--terracotta); }

.page-body { padding: clamp(56px, 8vw, 110px) 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }
.aside-card { position: sticky; top: 110px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aside-card h4 { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.aside-card a:not(.btn) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); transition: color .2s; }
.aside-card a:not(.btn):hover { color: var(--lapis); }
.aside-card a:not(.btn) .i { width: 15px; height: 15px; color: var(--muted); }
.aside-card .btn { margin-top: 8px; }

/* Prose */
.prose { max-width: 760px; font-size: 18px; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.9em; color: var(--ink); }
.prose h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 350; }
.prose h3 { font-size: clamp(23px, 2.2vw, 28px); font-weight: 400; }
.prose h4 { font-size: 20px; font-weight: 500; }
.prose a { color: var(--lapis); text-decoration: underline; text-decoration-color: rgba(29,79,140,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-left: 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--gold); font: italic 300 24px/1.5 var(--serif); color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 18px; background: var(--paper-2); }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.prose .lead-para::first-letter { float: left; font: 400 4.4em/.82 var(--serif); color: var(--lapis); margin: .06em .12em 0 0; }
.prose [dir="rtl"], .prose[dir="rtl"] { font-family: var(--rtl); text-align: right; line-height: 2; }
.prose[dir="rtl"] { margin-left: auto; }
.prose[dir="rtl"] .lead-para::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.prose[dir="rtl"] blockquote { border-left: 0; border-right: 2px solid var(--gold); padding: 6px 28px 6px 0; font-family: var(--rtl); }
.prose .video-embed { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:first-child td { font-weight: 600; color: var(--ink); background: var(--paper-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 2em 0; max-width: none; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

.share { display: flex; align-items: center; gap: 8px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.share a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s; }
.share a:hover { background: var(--ink); color: var(--paper); }
.share .i { width: 16px; height: 16px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .3s, box-shadow .3s; }
.pager a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.pager span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.pager strong { font: 400 18px/1.35 var(--serif); color: var(--ink); }
.pager [dir="rtl"] { font-family: var(--rtl); font-weight: 600; }
.pager a:last-child { text-align: right; align-items: flex-end; }

/* Card grid (listings) */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.search { position: relative; flex: 0 1 380px; }
.search input { width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 400 15px/1.2 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 4px rgba(29,79,140,.1); }
.search svg { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.toolbar__count { font-size: 14px; color: var(--muted); }
.grid-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-x--4 { grid-template-columns: repeat(4, 1fr); }
.card-x { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-x__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--lapis), var(--ink)); position: relative; }
.card-x__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-x:hover .card-x__img img { transform: scale(1.06); }
.card-x__img--empty::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2 61 28 89 18 79 46 98 60 70 66 72 96 50 78 28 96 30 66 2 60 21 46 11 18 39 28Z' fill='none' stroke='%23e0b65a' stroke-width='1.5'/%3E%3Ccircle cx='50' cy='50' r='14' fill='none' stroke='%23e0b65a' stroke-width='1.5'/%3E%3C/svg%3E") center / 64px no-repeat; opacity: .7; }
.card-x__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.card-x__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--muted); }
.card-x__meta .tag { font-size: 10px; }
.card-x h3 { font-size: 21px; line-height: 1.3; }
.card-x h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card-x:hover h3 a { background-size: 100% 1px; }
.card-x[dir="rtl"] h3, .card-x h3[dir="rtl"] { font: 700 19px/1.6 var(--rtl); text-align: right; }
.card-x p { margin: 0; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-x p[dir="rtl"] { font-family: var(--rtl); text-align: right; }
.card-x .link { margin-top: auto; padding-top: 8px; }
.card-x--book .card-x__img { aspect-ratio: 3/4; background: var(--paper-2); }
.card-x--book .card-x__img img { object-fit: contain; padding: 14px; }
.card-x--book .card-x__img img[data-fill] { object-fit: cover; padding: 0; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 22px; }

/* Section index (link lists, sub-navigation) */
.tiles-x { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.tiles-x a { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 30px; background: var(--card); min-height: 140px; transition: background .3s, color .3s; position: relative; }
.tiles-x a strong { font: 400 22px/1.2 var(--serif); color: var(--ink); margin-top: auto; transition: color .3s; }
.tiles-x a span { font-size: 12.5px; color: var(--terracotta); font-weight: 500; }
.tiles-x a .i { position: absolute; top: 24px; right: 22px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.tiles-x a:hover { background: var(--ink); }
.tiles-x a:hover strong { color: var(--paper); }
.tiles-x a:hover span, .tiles-x a:hover .i { color: var(--gold-2); }
.tiles-x a:hover .i { transform: translateX(4px); }

.subnav { position: sticky; top: 68px; z-index: 20; background: rgba(246,241,231,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: var(--paper); }

/* Feature band for program pages */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(56px, 7vw, 100px) 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink); box-shadow: var(--shadow); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 350; margin-bottom: 22px; }
.feature p { color: var(--muted); font-size: 17px; }
.feature .btn { margin-top: 12px; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.statrow div { padding: 20px 20px 0 0; }
.statrow b { display: block; font: 300 40px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; margin-bottom: 8px; }
.statrow span { font-size: 13.5px; color: var(--muted); }

/* Resource portal */
.portal-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.portal-search { display: flex; gap: 8px; margin-top: 34px; max-width: 640px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.portal-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 18px; font: 400 16px/1 var(--sans); color: var(--ink); }
.portal-search input:focus { outline: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--ink); }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,150,46,.18); }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 16px; background: rgba(29,79,140,.07); color: var(--ink-2); font-size: 14.5px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,20,40,.92); display: grid; place-items: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; color: var(--paper); background: rgba(255,255,255,.1); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound b { display: block; font: 300 clamp(120px, 20vw, 240px)/1 var(--serif); color: var(--ink); letter-spacing: -.05em; }

@media (max-width: 1080px) {
  .page-hero__grid, .layout, .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .aside-card { position: static; }
  .grid-x, .grid-x--4 { grid-template-columns: repeat(2, 1fr); }
  .subnav { top: 68px; }
}
@media (max-width: 640px) {
  .grid-x, .grid-x--4 { grid-template-columns: 1fr; }
  .grid-x--4.grid-x--books { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prose { font-size: 17px; }
  .pager { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; }
}
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.prose .caption { font-size: 13.5px; color: var(--muted); margin-top: -.4em; }
.book-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.book-detail__cover { margin: 0; position: sticky; top: 110px; border-radius: 6px 18px 18px 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,43,78,.45), inset 0 0 0 1px rgba(0,0,0,.05); background: var(--paper-2); }
.book-detail__cover img { width: 100%; height: auto; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; margin: 36px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.credits div { background: var(--card); padding: 16px 18px; }
.credits dt { font: 600 11px/1.3 var(--rtl); letter-spacing: .06em; color: var(--terracotta); margin-bottom: 6px; }
.credits dd { margin: 0; font: 500 15px/1.5 var(--rtl); color: var(--ink); }
.book-detail__variants { margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .book-detail { grid-template-columns: 1fr; } .book-detail__cover { position: static; max-width: 420px; } }
