:root {
  --emerald-950: #05130e;
  --emerald-900: #0a2219;
  --emerald-800: #113427;
  --emerald-700: #1e4f3f;
  --emerald-500: #2c6b5a;
  --gold: #b88a2c;
  --gold-bright: #ddb457;
  --gold-pale: #f0dfb2;
  --paper: #f5f1e7;
  --paper-deep: #ebe3cf;
  --ink: #1b1a22;

  --bg: var(--paper);
  --surface: #fbf8f1;
  --surface-2: var(--paper-deep);
  --text: var(--ink);
  --muted: #5d5a55;
  --rule: #dcd1b8;
  --gild: var(--gold);
  --link: #16493c;
  --shadow: 0 1px 2px rgba(10, 34, 25, .06), 0 14px 40px rgba(10, 34, 25, .1);

  --font-display: "Gulzar", "Noto Nastaliq Urdu", serif;
  --font-body: "Noto Nastaliq Urdu", serif;
  --font-ui: "Noto Naskh Arabic", "Noto Nastaliq Urdu", sans-serif;
  --font-ar: "Amiri", "Noto Naskh Arabic", serif;
  --gutter: clamp(16px, 4vw, 44px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1c16; --surface: #11271f; --surface-2: #173328; --text: #ece5d3; --muted: #a6b8ad;
    --rule: #2a4a3d; --gild: var(--gold-bright); --link: #bfe3d4; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1c16; --surface: #11271f; --surface-2: #173328; --text: #ece5d3; --muted: #a6b8ad;
  --rule: #2a4a3d; --gild: var(--gold-bright); --link: #bfe3d4; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); line-height: 1.9; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 6px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(221, 180, 87, .32); }
.seal-core h1::selection { color: #f8e7b4; -webkit-text-fill-color: #f8e7b4; background: rgba(221, 180, 87, .28); }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Top bar ── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 66px; display: flex; align-items: center; gap: 20px;
  padding-inline: var(--gutter); color: #efe7d2; transition: background .4s ease, box-shadow .4s ease, color .4s;
}
.topbar.solid { background: color-mix(in srgb, var(--emerald-900) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(221, 180, 87, .18); }
.mark { display: flex; align-items: center; gap: 10px; color: inherit; }
.mark:hover { text-decoration: none; }
.mark svg { width: 32px; height: 32px; color: var(--gold-bright); }
.mark b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; padding-top: 8px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { color: rgba(239, 231, 210, .78); padding: 4px 14px; border-radius: 999px; font-size: .95rem; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.theme { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(221, 180, 87, .35); background: transparent; color: inherit; }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .links { display: none; } .theme { margin-inline-start: auto; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 26px; border-radius: 999px; font-size: 1.02rem; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ecc874, var(--gold)); color: #1f1604; box-shadow: 0 10px 30px rgba(184, 138, 44, .35); }
.btn-line { border-color: rgba(239, 231, 210, .4); color: #efe7d2; }

/* ── Hero: the seal ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #efe7d2;
  min-height: 100svh; display: grid; justify-items: center; align-content: center; gap: 12px;
  padding: 92px var(--gutter) 40px;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(221, 180, 87, .14), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, #1d4d3d 0%, var(--emerald-900) 50%, var(--emerald-950) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background: url("../img/girih.svg"); background-size: 150px;
  mask-image: radial-gradient(65% 60% at 50% 45%, transparent 30%, #000 75%);
  -webkit-mask-image: radial-gradient(65% 60% at 50% 45%, transparent 30%, #000 75%);
}
.seal-stage { position: relative; width: min(82vw, clamp(280px, calc(100svh - 470px), 600px)); aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; }
.seal { position: absolute; inset: 0; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .ring-text { font-family: var(--font-ar); font-size: 21px; fill: var(--gold-bright); letter-spacing: 0; }
.seal-core { position: relative; text-align: center; display: grid; justify-items: center; gap: 2px; }
.seal-eyebrow { font-size: 2.5cqi; color: var(--gold-pale); opacity: .85; }
.seal-core h1 {
  margin: -.08em 0 -.25em; padding: .5em .3em .25em; font-family: var(--font-display); font-weight: 400; line-height: 1.5;
  font-size: 10.5cqi;
  background: linear-gradient(180deg, #f8e7b4 8%, #dcae4e 55%, #9a6d1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(221, 180, 87, .35));
}
.seal-years { font-family: var(--font-display); color: var(--gold-bright); font-size: 3.4cqi; letter-spacing: 0; }
.hero-copy { max-width: 46rem; text-align: center; display: grid; gap: 14px; justify-items: center; }
.hero-lede { margin: 0; font-family: var(--font-body); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 2.15; color: #cdd8d0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Hero as an illuminated frontispiece ── */
.hero-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.page-frame { position: absolute; inset: 78px 24px 22px; z-index: -1; pointer-events: none; border: 1px solid rgba(221, 180, 87, .32); }
.page-frame::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(221, 180, 87, .16); }
.page-frame::after { content: ""; position: absolute; inset: -6px; border: 1px dotted rgba(221, 180, 87, .2); }
.corner { position: absolute; width: clamp(64px, 9vw, 120px); height: clamp(64px, 9vw, 120px); color: var(--gold-bright); opacity: .75; }
.corner.tl { top: -2px; left: -2px; }
.corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.corner.br { bottom: -2px; right: -2px; transform: scale(-1, -1); }
.basmala {
  position: relative; margin: 0; padding: 4px 34px 6px; font-family: var(--font-ar); font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.9;
  color: var(--gold-pale); border-block: 1px solid rgba(221, 180, 87, .45);
  background: linear-gradient(90deg, transparent, rgba(221, 180, 87, .08) 20%, rgba(221, 180, 87, .08) 80%, transparent);
}
.basmala::before, .basmala::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border: 1px solid rgba(221, 180, 87, .7); rotate: 45deg; translate: 0 -50%; }
.basmala::before { left: 6px; }
.basmala::after { right: 6px; }
.seal-light {
  position: absolute; inset: -42%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(240, 210, 130, .11) 0deg 2.2deg, transparent 2.2deg 9deg);
  mask-image: radial-gradient(circle, transparent 22%, #000 34%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 34%, transparent 70%);
  animation: rays-turn 200s linear infinite;
}
.seal-light::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 205, 120, .16), transparent 62%); }
@keyframes rays-turn { to { rotate: 360deg; } }

.constellation { position: relative; width: min(760px, 100%); margin-top: 4px; }
.constellation ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.constellation ol::before {
  content: ""; position: absolute; top: 25px; inset-inline: 8%; height: 1px;
  background: linear-gradient(to left, rgba(221, 180, 87, .85), rgba(221, 180, 87, .35) 40%, rgba(221, 180, 87, .12));
}
.constellation li { position: relative; flex: 1; display: grid; justify-items: center; }
.constellation a, .constellation .stop { display: grid; justify-items: center; gap: 6px; color: #cdd8d0; text-align: center; }
.constellation a:hover { text-decoration: none; color: #fff; }
.constellation .medal {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-bright);
  background: radial-gradient(circle at 35% 30%, #22594a, #0a2219 75%); box-shadow: 0 0 0 1px rgba(221, 180, 87, .55);
  transition: transform .35s ease, box-shadow .35s ease;
}
.constellation .medal svg { width: 34px; height: 34px; }
.constellation b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.6; }
.constellation small { font-size: .74rem; color: #8ca596; }
.constellation .live .medal { box-shadow: 0 0 0 1.5px var(--gold-bright), 0 0 0 6px rgba(221, 180, 87, .12); animation: beacon 3.2s ease-in-out infinite; }
.constellation .live small { color: var(--gold-bright); }
.constellation .live a:hover .medal { transform: scale(1.08); }
.constellation .soon { opacity: .6; }
.constellation .next .medal { box-shadow: 0 0 0 1.2px rgba(221, 180, 87, .85); }
.constellation .next small { color: var(--gold-pale); }
.constellation .more .medal { background: transparent; box-shadow: 0 0 0 1px rgba(221, 180, 87, .3); color: rgba(221, 180, 87, .7); font-size: 1.2rem; }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 1.5px var(--gold-bright), 0 0 0 6px rgba(221, 180, 87, .12), 0 0 0 0 rgba(221, 180, 87, .35); } 50% { box-shadow: 0 0 0 1.5px var(--gold-bright), 0 0 0 6px rgba(221, 180, 87, .12), 0 0 26px 8px rgba(221, 180, 87, .25); } }

@media (max-width: 760px) {
  .page-frame { inset: 72px 10px 10px; }
  .page-frame::after { display: none; }
  .hero { padding: 96px 22px 40px; gap: 14px; }
  .constellation b { font-size: .85rem; }
  .constellation small { display: none; }
  .constellation .medal { width: 42px; height: 42px; }
  .constellation .medal svg { width: 28px; height: 28px; }
  .constellation ol::before { top: 21px; }
}

/* ── Bands & heads ── */
.band { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.paper { background: var(--bg); }
.night { background: radial-gradient(120% 90% at 80% 0%, #164234, var(--emerald-900) 55%, var(--emerald-950)); color: #ece5d3; }
.deep { background: var(--surface-2); }
.head { display: grid; gap: 8px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 44rem; }
.head h2, .bio-text h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.6; }
.head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gild); font-size: .92rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.night .eyebrow { color: var(--gold-bright); }

/* ── Library: bound volumes ── */
.featured { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.upcoming { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 48px); }
.book { display: grid; gap: 20px; align-content: start; }
.upcoming .book { grid-template-columns: 150px 1fr; align-items: start; }
.tome-wrap { perspective: 1100px; }
.tome {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px 5px 5px 16px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, #1f5443, var(--emerald-900) 70%);
  box-shadow: inset -14px 0 18px -8px rgba(0, 0, 0, .55), inset 3px 0 0 rgba(221, 180, 87, .25), 0 30px 60px -20px rgba(5, 19, 14, .55), 0 8px 18px rgba(5, 19, 14, .25);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
  color: var(--gold-bright); text-decoration: none;
}
a.tome:hover { text-decoration: none; }
.tome::before, .tome::after { content: ""; position: absolute; pointer-events: none; border-radius: 10px 4px 4px 10px; }
.tome::before { inset: 14px; border: 1.5px solid rgba(221, 180, 87, .75); }
.tome::after { inset: 21px; border: 1px solid rgba(221, 180, 87, .35); }
.tome .grain { position: absolute; inset: 0; background: url("../img/girih.svg"); background-size: 70px; opacity: .06; }
.tome .face { position: relative; display: grid; justify-items: center; gap: 10%; width: 74%; text-align: center; }
.tome svg { width: 62%; height: auto; color: var(--gold-bright); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.tome .ar-title { font-family: var(--font-ar); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1.7; text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 18px rgba(221, 180, 87, .25); }
.upcoming .tome .ar-title { font-size: .95rem; }
.tome.soon { filter: saturate(.55) brightness(.85); }
.tome.soon.next { filter: saturate(.9) brightness(.97); box-shadow: inset -14px 0 18px -8px rgba(0, 0, 0, .55), inset 3px 0 0 rgba(221, 180, 87, .25), 0 0 0 1px rgba(221, 180, 87, .55), 0 18px 40px -16px rgba(221, 180, 87, .45); }
.book.next h3 { color: var(--text); }
.upcoming .book.next { grid-column: 1 / -1; grid-template-columns: 190px minmax(0, 1fr); max-width: 820px; padding-bottom: clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--rule); }
.upcoming .book.next .book-info h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
@media (max-width: 760px) { .upcoming .book.next { grid-template-columns: 130px minmax(0, 1fr); } }
.ribbon {
  position: absolute; top: 18px; inset-inline-start: -34px; transform: rotate(-38deg); z-index: 2;
  background: var(--gold); color: #1f1604; font-size: .72rem; padding: 2px 40px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.featured .ribbon { background: #2e8a6f; color: #f3fff9; }
.book-info { display: grid; gap: 14px; align-content: start; }
.book-info h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.6; }
.upcoming .book-info h3 { font-size: 1.7rem; }
.book-info .ar { font-family: var(--font-ar); color: var(--gild); font-size: 1.15rem; }
.book-info p { margin: 0; font-family: var(--font-body); font-size: 1.05rem; line-height: 2.3; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); padding-block: 6px; }
.stats div { display: grid; }
.stats b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.5; color: var(--gild); }
.stats span { font-size: .88rem; color: var(--muted); }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 3px 14px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.address { font-family: ui-monospace, "SF Mono", monospace; direction: ltr; unicode-bidi: isolate; font-size: .85rem; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .featured .tome-wrap { width: min(300px, 78vw); justify-self: center; }
  .upcoming .book { grid-template-columns: 120px 1fr; }
}

/* ── Biography ── */
.bio { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bio-text { display: grid; gap: 14px; }
.bio-text p { margin: 0; font-family: var(--font-body); font-size: 1.08rem; line-height: 2.45; color: #d3ddd6; }
.bio-figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); border: 1px solid rgba(221, 180, 87, .3); }
.bio-figure img { width: 100%; height: auto; aspect-ratio: 768 / 537; object-fit: cover; }
.bio-figure figcaption { padding: 12px 16px; font-size: .88rem; background: rgba(5, 19, 14, .6); color: #cdd8d0; }
.bio-figure small { display: block; font-size: .74rem; color: #8ca596; direction: ltr; text-align: end; }
.bio-figure a { color: #bfe3d4; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.sayings { position: relative; isolation: isolate; margin: clamp(64px, 10vw, 128px) auto; max-width: 56rem; text-align: center; display: grid; justify-items: center; gap: 18px; outline: none; }
.sayings-ornament { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(78vw, 560px); height: auto; translate: -50% -56%; color: var(--gold-bright); opacity: .05; animation: slow-turn 240s linear infinite; }
@keyframes slow-turn { to { rotate: 360deg; } }
.sayings .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.sayings-stage { display: grid; width: 100%; min-height: 12rem; align-items: center; touch-action: pan-y; cursor: grab; }
.saying { grid-area: 1 / 1; margin: 0; display: grid; gap: 18px; justify-items: center; align-content: center; opacity: 0; visibility: hidden; }
.saying.active { opacity: 1; visibility: visible; }
.saying blockquote { margin: 0; }
.saying blockquote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.85; color: #f3e6bf; text-wrap: balance; }
.saying[data-long] blockquote p { font-size: clamp(1.45rem, 3.2vw, 2.3rem); line-height: 1.95; }
.saying .word { display: inline-block; }
.saying .ar { font-family: var(--font-ar); color: var(--gold-bright); font-size: 1.25rem; margin-top: 10px !important; }
.saying figcaption { display: grid; gap: 4px; justify-items: center; font-size: .92rem; color: #a6b8ad; }
.saying .ctx { color: var(--gold-bright); font-size: .85rem; letter-spacing: 0; }
.saying figcaption a { color: #cdd8d0; }
.saying figcaption a:hover { color: #fff; }
.sayings-controls { display: flex; align-items: center; gap: 14px; }
.say-nav { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--gold-bright); border: 1px solid rgba(221, 180, 87, .4); transition: background .25s, transform .25s; }
.say-nav:hover { background: rgba(221, 180, 87, .12); transform: scale(1.06); }
.say-nav svg { width: 20px; height: 20px; }
.say-dots { display: flex; gap: 8px; align-items: center; }
.say-dots button { width: 9px; height: 9px; padding: 0; border: 0; background: rgba(221, 180, 87, .3); rotate: 45deg; border-radius: 2px; transition: width .35s ease, background .35s ease, rotate .35s ease; }
.say-dots button[aria-current="true"] { width: 26px; rotate: 0deg; border-radius: 6px; background: var(--gold-bright); }
.say-count { font-family: var(--font-display); color: #a6b8ad; font-size: 1.05rem; min-width: 3.5em; padding-top: 6px; }
.say-timer { width: min(260px, 60%); height: 2px; border-radius: 2px; background: rgba(221, 180, 87, .15); overflow: hidden; }
.say-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(to left, var(--gold-bright), var(--gold)); transform-origin: right center; transform: scaleX(0); }
.say-note { margin: 0; font-size: .78rem; color: #7f978a; }
@media (max-width: 620px) {
  .sayings-stage { min-height: 16rem; }
  .say-dots { gap: 6px; }
  .say-dots button { width: 7px; height: 7px; }
  .say-dots button[aria-current="true"] { width: 18px; }
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 62px; inset-inline: 4%; height: 1px; background: linear-gradient(to left, transparent, rgba(221, 180, 87, .6) 10%, rgba(221, 180, 87, .6) 90%, transparent); }
.timeline li { display: grid; justify-items: center; text-align: center; gap: 6px; padding-inline: 8px; position: relative; }
.timeline .y { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); line-height: 1.5; height: 54px; display: flex; align-items: flex-end; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-bright); background: var(--emerald-900); margin-top: 1px; }
.timeline li.key .dot { background: var(--gold-bright); box-shadow: 0 0 14px rgba(221, 180, 87, .6); }
.timeline b { font-size: 1.02rem; color: #ece5d3; }
.timeline span { font-size: .86rem; color: #a6b8ad; line-height: 1.9; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 86px; width: 1px; height: auto; background: rgba(221, 180, 87, .45); }
  .timeline li { grid-template-columns: 74px 26px 1fr; justify-items: start; text-align: start; gap: 0 12px; padding-block: 12px; }
  .timeline .y { height: auto; font-size: 1.4rem; grid-row: span 2; justify-self: end; }
  .timeline .dot { grid-row: span 2; margin-top: 12px; justify-self: center; }
}

/* ── Pillars ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 30px 28px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: grid; gap: 10px; align-content: start; color: var(--text); overflow: hidden; transition: transform .35s ease, border-color .35s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--gild); text-decoration: none; }
.pillar::after {
  content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; opacity: .08;
  background: url("../img/girih.svg"); background-size: 70px;
}
.pillar .n { font-family: var(--font-display); font-size: 1.1rem; color: var(--gild); }
.pillar h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.7; }
.pillar .ar { font-family: var(--font-ar); color: var(--muted); font-size: 1.05rem; margin-top: -6px; }
.pillar p { margin: 0; font-family: var(--font-body); font-size: .98rem; line-height: 2.25; color: var(--muted); }
.pillar .go { font-size: .88rem; color: var(--link); margin-top: 4px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pillars { grid-template-columns: 1fr; } }

/* ── Works list ── */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.works li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.works .ar { font-family: var(--font-ar); font-size: 1.3rem; font-weight: 700; line-height: 1.8; }
.works .lang { font-size: .78rem; color: var(--gild); border: 1px solid currentColor; border-radius: 999px; padding: 0 10px; }
.works p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }

/* ── Closing & footer ── */
.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 14px; }
.closing-star { width: 54px; height: 54px; color: var(--gild); }
.closing h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.6; }
.closing p { margin: 0 0 10px; color: var(--muted); font-family: var(--font-body); font-size: 1.08rem; line-height: 2.3; }
.footer { background: var(--emerald-950); color: #a6b8ad; padding-block: 40px; font-size: .88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.footer b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--gold-bright); margin-inline-end: 12px; }
.footer span { direction: ltr; unicode-bidi: isolate; }
.footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
