/* Kullaha v2, "illuminated". Night ink, gold leaf, lapis light.
   Type: Cormorant Garamond (display), EB Garamond (reading), Manrope (interface),
   Amiri (Quran), Aref Ruqaa (the names), Reem Kufi + Noto Naskh (Arabic interface/body). */
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Cormorant; src: url(/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-ext-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin-ext-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-ext-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Garamond; src: url(/fonts/eb-garamond-latin-ext-400-italic.woff2) format('woff2'); font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Amiri; src: url(/fonts/amiri-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Amiri; src: url(/fonts/amiri-arabic-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Ruqaa; src: url(/fonts/aref-ruqaa-arabic-700-normal.woff2) format('woff2'); font-display: swap; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Kufi; src: url(/fonts/reem-kufi-arabic-500-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Kufi; src: url(/fonts/reem-kufi-arabic-700-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Naskh; src: url(/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Naskh; src: url(/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

@font-face { font-family: BnSerif; src: url(/fonts/noto-serif-bengali-bengali-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: BnSerif; src: url(/fonts/noto-serif-bengali-bengali-500-normal.woff2) format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: BnSans; src: url(/fonts/hind-siliguri-bengali-500-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: BnSans; src: url(/fonts/hind-siliguri-bengali-600-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }

@font-face { font-family: Nastaliq; src: url(/fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Nastaliq; src: url(/fonts/noto-nastaliq-urdu-arabic-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazir; src: url(/fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazir; src: url(/fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --ink0: #05060d; --ink1: #090b17; --ink2: #0f1222; --ink3: #161a30;
  --tx: #efe8d8; --tx2: #c4bcab; --tx3: #8e8a9c;
  --gold: #e3bf6a; --gold-hi: #fbe8b4; --gold-lo: #9c7a36;
  --leaf: linear-gradient(100deg, #b38a3e 0%, #f6e3a8 28%, #d9b05c 46%, #fff3cf 62%, #c49a48 82%, #e8c97c 100%);
  --hair: rgba(227, 191, 106, .2); --hair2: rgba(227, 191, 106, .38); --glass: rgba(16, 19, 38, .55);
  --acc: var(--gold);
  --display: Cormorant, Garamond, BnSerif, 'Iowan Old Style', Georgia, serif; --serif: Garamond, BnSerif, 'Iowan Old Style', Georgia, serif;
  --ui: Manrope, BnSans, ui-sans-serif, system-ui, sans-serif; --ar: Amiri, 'Noto Naskh Arabic', serif; --name: Ruqaa, Amiri, serif; --kufi: Kufi, Naskh, Amiri, serif; --naskh: Naskh, Amiri, Georgia, serif;
  --wrap: 1200px; --ease: cubic-bezier(.2, .7, .1, 1); --r: 18px;
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V78C0 40 30 13 50 0c20 13 50 40 50 78v122z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { background: var(--ink0); color: var(--tx); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font: 400 20px/1.68 var(--serif); min-height: 100vh; overflow-x: hidden; background: radial-gradient(1200px 700px at 50% -10%, #141a3a 0%, transparent 60%), var(--ink0); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* film grain over everything: keeps the gradients from banding and gives the dark some texture */
body::after { content: ''; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
img, canvas, svg { display: block; }
[lang="ar"] { font-family: var(--ar); direction: rtl; unicode-bidi: isolate; }
::selection { background: var(--gold); color: var(--ink0); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--gold); color: var(--ink0); padding: 10px 14px; font: 600 14px var(--ui); z-index: 99; border-radius: 8px; }
.skip:focus { top: 8px; }
.center { text-align: center; }
.fine { color: var(--tx3); font-size: 15px; line-height: 1.6; }

.orn { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.1; flex: none; }
.orn circle { fill: var(--gold); stroke: none; opacity: .9; }
.orn-lg { width: 34px; height: 34px; margin: 0 auto 18px; stroke-width: .9; }
.rule { display: flex; align-items: center; gap: 16px; margin: 0 auto 26px; max-width: 420px; }
.rule i { flex: 1; height: 3px; background: repeating-linear-gradient(90deg, rgba(205, 185, 143, .4) 0 10px, rgba(20, 17, 14, .9) 10px 20px); -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); }
.rule i:last-child { -webkit-mask: linear-gradient(270deg, transparent, #000); mask: linear-gradient(270deg, transparent, #000); }
.rose-s { width: 22px; height: 22px; margin: 0; }
.leaf { background: var(--leaf); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 34px; padding: 18px clamp(18px, 4vw, 48px); transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(7, 8, 17, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); padding-block: 11px; border-color: rgba(227, 191, 106, .1); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand-orn { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.2; transition: transform 1.2s var(--ease); }
.brand-orn circle { fill: var(--gold); stroke: none; }
.brand:hover .brand-orn { transform: rotate(45deg); }
.brand-ar { font-family: var(--name); font-size: 29px; line-height: 1; color: var(--gold-hi); }
.brand-en { font: 600 13px/1 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--tx2); padding-top: 2px; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; font: 600 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--tx2); padding: 10px 14px; border-radius: 99px; transition: color .3s, background .3s; }
.nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.tools { display: flex; align-items: center; gap: 8px; }
.ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.snd, .langs summary { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .02); color: var(--tx2); font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.snd:hover, .langs summary:hover { border-color: var(--hair2); color: var(--tx); }
.snd.on { color: var(--gold-hi); border-color: var(--hair2); background: rgba(227, 191, 106, .08); }
.eq { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 4px; border-radius: 2px; background: currentColor; transition: height .3s; }
.on .eq i, [aria-pressed="true"] .eq i { animation: eq 1.1s var(--ease) infinite; }
.on .eq i:nth-child(2), [aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.on .eq i:nth-child(3), [aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.on .eq i:nth-child(4), [aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.85s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------------------------------------------------------------- buttons, kickers, links */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #1a1408; padding: 17px 26px; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f7e2a6, #d9ae58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px -10px rgba(227, 191, 106, .55), 0 0 0 1px rgba(255, 230, 170, .3); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 40px -12px rgba(227, 191, 106, .75), 0 0 0 1px rgba(255, 230, 170, .45); }
.btn:hover::after { transform: translateX(120%); }
.btn-2 { color: var(--gold-hi); background: rgba(227, 191, 106, .04); box-shadow: inset 0 0 0 1px var(--hair2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-2::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 230, 170, .16) 50%, transparent 70%); }
.btn-2:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(227, 191, 106, .09); }
.btn-sm { padding: 13px 18px; font-size: 11.5px; }
.btn[aria-pressed="true"] { color: var(--gold-hi); background: rgba(227, 191, 106, .1); box-shadow: inset 0 0 0 1px var(--gold); }
.kicker { display: flex; align-items: center; justify-content: center; gap: 12px; font: 600 12px/1.4 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--acc); margin: 0 0 18px; }
.kicker a { text-decoration: none; transition: color .3s; }
.kicker a:hover { color: var(--gold-hi); }
.kicker .orn { width: 13px; height: 13px; stroke: currentColor; }
.kicker .orn circle { fill: currentColor; }
.iref { color: var(--gold); text-decoration: none; font: 600 .66em/1 var(--ui); letter-spacing: .04em; white-space: nowrap; padding: 3px 7px; margin: 0 1px; border-radius: 99px; background: rgba(227, 191, 106, .09); vertical-align: .14em; transition: background .3s, color .3s; }
.iref:hover { color: var(--ink0); background: var(--gold); }
.qt { font-family: var(--ar); color: var(--gold-hi); font-size: 1.12em; font-style: normal; }
.hq { color: #dcd3ff; font-style: normal; }

/* ---------------------------------------------------------------- entrances */
.rise { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise 1.4s var(--ease) var(--d, 0ms) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- scene windows */
.win { position: relative; overflow: hidden; background: var(--ink2); }
.win canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.win canvas.ready { opacity: 1; }
.win-arch { -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.arch-line { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); pointer-events: none; overflow: visible; }
.arch-line path { fill: none; transition: stroke .5s, opacity .5s; }
/* ablaq: the frame is laid in alternating pale and dark stones, as on the arches of Damascus */
.arch-line .al-base { stroke: rgba(20, 17, 14, .9); stroke-width: 4; }
.arch-line .al-ablaq { stroke: #cdb98f; stroke-width: 4; stroke-dasharray: 7 7; opacity: .34; }
.arch-line .al-in { stroke: var(--hair2); stroke-width: 1; transform: scale(.985); transform-origin: 50% 100%; }
.tile:hover .arch-line .al-ablaq, .phero-arch .arch-line .al-ablaq { opacity: .55; }
.phero-arch .arch-line .al-base, .phero-arch .arch-line .al-ablaq { stroke-width: 6; stroke-dasharray: 10 10; }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-sc { position: absolute; inset: 0; }
.hero-sc canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s var(--ease); }
.hero-sc canvas.ready { opacity: 1; }
.hero-sc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(5, 6, 13, .55), transparent 70%), linear-gradient(rgba(5, 6, 13, .5), transparent 18%, transparent 75%, var(--ink0)); }
.hero-in { position: relative; z-index: 2; text-align: center; padding: 120px 24px 30vh; max-width: 980px; }
.hero-ar { font: 700 clamp(48px, 8.4vw, 116px)/1.55 var(--ar); margin: 0; background: var(--leaf); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 32px rgba(227, 191, 106, .32)); animation: rise 1.6s var(--ease) var(--d) forwards, shimmer 9s ease-in-out 2s infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero-tr { font: italic 500 clamp(22px, 2.6vw, 32px)/1.35 var(--display); color: var(--tx); margin: 4px 0 26px; }
.hero-ref .iref { font-style: normal; }
.hero-lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.7; color: var(--tx2); max-width: 600px; margin: 0 auto 42px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.scroll { position: absolute; bottom: 30px; left: 50%; z-index: 2; width: 1px; height: 64px; margin-left: -.5px; background: linear-gradient(transparent, var(--hair2)); overflow: hidden; }
.scroll i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: linear-gradient(transparent, var(--gold-hi)); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 130px clamp(18px, 4vw, 40px) 40px; }
.sec-top { padding-top: 170px; }
.sec-h { text-align: center; max-width: 740px; margin: 0 auto 64px; }
.sec-h > .orn { width: 26px; height: 26px; margin: 0 auto 22px; }
.sec h1, .sec h2, .w-h { font: 500 clamp(40px, 5.6vw, 72px)/1.04 var(--display); letter-spacing: -.01em; margin: 0 0 22px; color: var(--tx); }
.sec-lead { color: var(--tx2); font-size: 21px; line-height: 1.65; margin: 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: 30px 0 0; font: 600 11.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--tx3); }
.legend li { display: flex; align-items: center; gap: 10px; }
.lg { width: 34px; height: 2px; display: inline-block; border-radius: 2px; }
.lg-line { background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.lg-side { background: repeating-linear-gradient(90deg, #a9a3d0 0 4px, transparent 4px 9px); }
.lg-promise { background: repeating-linear-gradient(90deg, #cfc0ff 0 2px, transparent 2px 6px); }

/* faint girih behind the tree */
.tree::before { content: ''; position: absolute; inset: -60px -10%; z-index: -1; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e3bf6a' stroke-width='1'%3E%3Cpath d='M60 10l14 36 36 14-36 14-14 36-14-36-36-14 36-14z'/%3E%3Cpath d='M25 25h70v70H25z' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E") center / 120px;
  -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent); mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent); }
.sec-tree::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(60, 50, 120, .25), transparent 70%); }

/* ---------------------------------------------------------------- the tree */
.tree { --node: 104px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 54px; column-gap: 10px; max-width: 940px; margin: 0 auto 50px; }
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.tree-lines path { fill: none; stroke-linecap: round; }
.tl-line { stroke: url(#tl-gold); stroke-width: 1.6; }
.tl-side { stroke: rgba(169, 163, 208, .5); stroke-width: 1.2; stroke-dasharray: 3 6; }
.tl-promise { stroke: rgba(207, 192, 255, .65); stroke-width: 1.2; stroke-dasharray: 1 5; }
.tl-run { stroke: #fff4cf; stroke-width: 2.4; filter: url(#tl-glow); opacity: .95; }
.cell { position: relative; z-index: 1; display: flex; justify-content: center; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; width: calc(var(--node) + 40px); text-align: center; }
.orb { position: relative; width: var(--node); height: var(--node); display: block; border-radius: 50%; isolation: isolate; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity 1.2s var(--ease), transform .8s var(--ease); }
.orb canvas.ready { opacity: 1; }
.orb::before { content: ''; position: absolute; inset: -22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 40%, transparent), transparent); opacity: .35; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.orb canvas { box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); }
.orb::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: inset 0 0 0 4px var(--ink0), inset 0 0 0 5px rgba(255, 255, 255, .06); transition: inset .6s var(--ease), border-color .6s; }
.node:hover .orb::before, .node:focus-visible .orb::before { opacity: .85; transform: scale(1.08); }
.node:hover .orb::after { inset: -9px; border-color: var(--acc); }
.node:hover .orb canvas { transform: scale(1.04); }
.nm { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 6px; padding: 2px 14px 6px; border-radius: 40px; background: radial-gradient(closest-side, rgba(5, 6, 13, .92) 55%, rgba(5, 6, 13, 0)); }
.orb-n { position: absolute; top: 2%; inset-inline-end: 2%; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink0); border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); font: 700 9.5px/1 var(--ui); color: var(--acc); letter-spacing: 0; transition: transform .5s var(--ease); }
.node:hover .orb-n { transform: scale(1.12); }
.node-seal .orb-n { width: 26px; height: 26px; font-size: 11px; }
.nm-ar { font-family: var(--name); font-size: 31px; line-height: 1.35; color: var(--gold-hi); transition: color .3s; }
.nm-en { font: 600 11px/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--tx3); transition: color .3s; }
.node:hover .nm-en { color: var(--tx); }
.node-side .nm-ar { font-size: 26px; color: #d8d2f2; }
.node-seal { --node: 156px; width: 210px; }
.node-seal .nm-ar { font-size: 48px; background: var(--leaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.node-seal .nm-en { color: var(--gold); font-size: 12px; }
.node-seal .orb::before { inset: -55%; opacity: .55; animation: halo 6s ease-in-out infinite; }
.node-seal .orb::after { border-color: var(--gold); }
@keyframes halo { 50% { opacity: .8; transform: scale(1.06); } }
.tree-note { flex-direction: column; justify-content: center; font: italic 500 18px/1.5 var(--display); color: var(--tx3); width: 240px; justify-self: start; }
.tree-note p { margin: 0 0 12px; }
.tree-note .ar { font-style: normal; font-size: 24px; color: var(--gold); }
.note-isa { color: #b8b0e0; justify-content: flex-end; width: auto; max-width: 300px; margin-inline-start: auto; }
.note-isa p { margin: 0; }

/* ---------------------------------------------------------------- arch tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 46px 30px; margin-bottom: 56px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.tile-win { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 22px; }
.tile-win .win { position: absolute; inset: 0; }
.tile:hover .win canvas { transform: scale(1.06); }
.tile:hover .arch-line .al-in { stroke: var(--acc); }
.tile-t { font: 500 24px/1.18 var(--display); color: var(--tx); max-width: 240px; transition: color .3s; }
.tile:hover .tile-t { color: var(--gold-hi); }
.tile-n { font: 600 11px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; margin-top: 12px; color: var(--tx3); }

/* ---------------------------------------------------------------- names */
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.name { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; text-decoration: none; padding: 22px 24px; border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; transition: border-color .4s, transform .5s var(--ease), background .4s; }
.name::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 120px at var(--mx, 80%) 0%, color-mix(in srgb, var(--acc) 18%, transparent), transparent); opacity: 0; transition: opacity .5s; }
.name:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); transform: translateY(-3px); }
.name:hover::before { opacity: 1; }
.name-n { position: relative; font: 600 26px/1.15 var(--display); color: var(--tx); }
.name-v { position: relative; grid-column: 1; font: italic 400 16px/1.4 var(--serif); color: var(--tx3); margin-top: 3px; }
.name-ar { position: relative; grid-row: 1 / span 2; grid-column: 2; font-family: var(--name); font-size: 38px; line-height: 1.3; color: var(--gold); opacity: .9; }

/* ---------------------------------------------------------------- prophet + situation hero */
.phero { position: relative; overflow: hidden; padding: 128px clamp(18px, 4vw, 48px) 40px; }
.phero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 520px at 74% 46%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), radial-gradient(600px 400px at 10% 20%, rgba(60, 60, 140, .18), transparent 70%); }
.phero-num { position: absolute; left: clamp(10px, 3vw, 40px); bottom: -.24em; font: 500 clamp(160px, 24vw, 360px)/1 var(--display); font-variant-numeric: lining-nums; color: transparent; -webkit-text-stroke: 1px rgba(227, 191, 106, .09); pointer-events: none; user-select: none; }
.phero-grid { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 6vw, 90px); align-items: center; min-height: min(78svh, 760px); }
.phero .kicker { justify-content: flex-start; margin-bottom: 6px; }
.phero .kicker .sep { display: inline-flex; }
.phero h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 22px; }
.p-ar { font-family: var(--name); font-size: clamp(92px, 13vw, 184px); line-height: 1.5; background: var(--leaf); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--acc) 35%, transparent)); padding-inline: .06em; animation: shimmer 10s ease-in-out infinite; }
.p-honor { font-size: clamp(20px, 2.2vw, 28px); color: var(--gold); opacity: .85; }
.p-en { flex-basis: 100%; font: 500 clamp(44px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.01em; color: var(--tx); margin-top: -.12em; }
.p-title { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 22px 0 0; font: italic 500 clamp(21px, 2vw, 26px)/1.35 var(--display); color: var(--acc); }
.p-title-ar { font: 400 24px/1.4 var(--ar); font-style: normal; color: var(--gold); opacity: .9; }
.p-known { margin: 10px 0 0; color: var(--tx3); font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.phero-arch { position: relative; margin: 0; width: 100%; max-width: 440px; aspect-ratio: 5 / 8; justify-self: center; }
.phero-arch .win { position: absolute; inset: 0; box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--acc) 45%, transparent); }
.phero-arch .arch-line { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
.phero-arch .arch-line .al-in { stroke: color-mix(in srgb, var(--acc) 50%, transparent); }
.phero-arch .arch-line .al-base { stroke-dasharray: none; }
.phero-when .phero-grid { min-height: min(70svh, 680px); }
.phero-when .w-h { margin: 6px 0 22px; }
.phero-when .sec-lead { max-width: 560px; }

/* ---------------------------------------------------------------- prophet body */
.pbody { max-width: var(--wrap); margin: 0 auto; padding: 50px clamp(18px, 4vw, 48px) 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; }
.pmain { max-width: 700px; }
.pmain > p { margin: 0 0 1.15em; }
.lead { font: 500 clamp(26px, 2.6vw, 33px)/1.38 var(--display); color: var(--tx); margin: 0 0 54px !important; }
.dropcap::first-letter { float: left; font: 600 4.6em/.82 var(--display); padding: .06em .1em 0 0; color: var(--acc); }
.h2 { display: flex; align-items: center; gap: 18px; font: 500 clamp(32px, 3.4vw, 42px)/1.1 var(--display); margin: 84px 0 28px; color: var(--tx); }
.h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair2), transparent); }
.ayah, .dua { position: relative; margin: 0 0 24px; padding: 48px clamp(22px, 4vw, 48px) 34px; text-align: center; border-radius: 28px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); border: 1px solid rgba(227, 191, 106, .14); }
.ayah::before, .dua::before { content: ''; position: absolute; inset: 8px; border-radius: 21px; border: 1px solid rgba(227, 191, 106, .08); pointer-events: none; }
.ayah::after { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 1px; margin-left: -60px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.ayah .ar, .dua .ar { font-size: clamp(30px, 3.4vw, 42px); line-height: 2; color: var(--gold-hi); margin: 0 0 14px; }
.ayah figcaption, .dua figcaption { font: italic 500 22px/1.5 var(--display); color: var(--tx2); }
.dua { margin-top: 70px; }
.dua-k, .carry-k, .side-k { font: 600 11.5px/1.3 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--acc); margin: 0 0 16px; font-style: normal; }
.moments { list-style: none; padding: 0; margin: 0; position: relative; }
.moments::before { content: ''; position: absolute; inset-inline-start: 22px; top: 12px; bottom: 30px; width: 1px; background: linear-gradient(var(--hair2), transparent); }
.moments li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; padding-bottom: 34px; }
.mo-n { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink0); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); font: 600 13px/1 var(--ui); letter-spacing: .06em; color: var(--acc); }
.moments h3 { font: 600 26px/1.2 var(--display); margin: 8px 0 8px; color: var(--tx); }
.moments p { margin: 0 0 8px; color: var(--tx2); }
.refs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ref { font: 600 11.5px/1 var(--ui); letter-spacing: .04em; text-decoration: none; padding: 8px 12px; border-radius: 99px; color: var(--gold); background: rgba(227, 191, 106, .06); border: 1px solid rgba(227, 191, 106, .18); transition: all .3s; }
.ref:hover { background: var(--gold); color: var(--ink0); border-color: var(--gold); }
.ref-h { color: #cbc2f2; background: rgba(169, 163, 208, .06); border-color: rgba(169, 163, 208, .22); }
.ref-h:hover { background: #cbc2f2; border-color: #cbc2f2; }
.whens { display: grid; gap: 14px; }
.when { padding: 26px 28px; border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); border: 1px solid rgba(255, 255, 255, .06); transition: border-color .4s; }
.when:hover { border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
.when-s { display: inline-flex; align-items: center; gap: 10px; font: 600 24px/1.2 var(--display); color: var(--acc); text-decoration: none; }
.when-s span { font-family: var(--ui); font-size: 16px; transition: transform .4s var(--ease); }
.when-s:hover span { transform: translateX(5px); }
.rtl .when-s:hover span { transform: translateX(-5px); }
.when p { margin: 10px 0 0; }
.carry { position: relative; margin: 80px 0 24px; padding: 54px clamp(22px, 4vw, 54px) 46px; text-align: center; border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%), var(--ink2); border: 1px solid rgba(227, 191, 106, .28); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--acc) 60%, transparent); }
.carry::before { content: ''; position: absolute; inset: 10px; border-radius: 20px; border: 1px solid rgba(227, 191, 106, .1); pointer-events: none; }
.carry-n { font: 500 36px/1.3 var(--display); margin: 0 0 18px; color: var(--tx); }
.carry-n span[lang="ar"] { font-family: var(--name); font-size: 48px; color: var(--gold-hi); margin-inline-end: 10px; }
.carry-t { font: italic 500 25px/1.5 var(--display); margin: 0; color: var(--tx); }
.pside { position: relative; }
.side-box { position: sticky; top: 100px; padding: 26px; margin-bottom: 20px; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .07); }
.side-box + .side-box { top: 430px; }
.side-l { font: 600 10.5px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--tx3); margin: 20px 0 10px; }
.mini { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 6px 0; color: var(--tx2); transition: color .3s; }
.mini-t { display: flex; flex-direction: column; font: 600 12px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.mini-ar { font-family: var(--name); font-size: 24px; color: var(--gold-hi); letter-spacing: 0; text-transform: none; line-height: 1.4; }
.mini:hover { color: var(--tx); }
.orb-s { --node: 50px; width: 50px; height: 50px; }
.orb-s::after { inset: -3px; box-shadow: none; }
.side-snd { font-size: 17px; color: var(--tx2); margin: 0 0 18px; line-height: 1.55; }
.pn { max-width: var(--wrap); margin: 0 auto; padding: 30px clamp(18px, 4vw, 48px) 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pn-a { display: flex; align-items: center; gap: 22px; padding: 22px 26px; text-decoration: none; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); border: 1px solid rgba(255, 255, 255, .06); transition: border-color .4s, transform .5s var(--ease); }
.pn-a:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); transform: translateY(-3px); }
.pn-a.next { flex-direction: row-reverse; text-align: end; }
.pn-t { display: flex; flex-direction: column; gap: 2px; }
.pn-k { font: 600 10.5px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--tx3); }
.pn-ar { font-family: var(--name); font-size: 36px; line-height: 1.4; color: var(--gold-hi); }
.pn-n { font: 500 22px/1.1 var(--display); color: var(--tx); }
.orb-m { --node: 84px; width: 84px; height: 84px; flex: none; }

/* ---------------------------------------------------------------- situation list */
.wlist { max-width: 980px; margin: 0 auto; padding: 50px clamp(18px, 4vw, 40px) 20px; display: grid; gap: 22px; }
.witem { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 34px; align-items: start; padding: 30px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .006)); border: 1px solid rgba(255, 255, 255, .06); }
.witem-who { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; text-align: center; }
.witem-who .orb-m { --node: 110px; width: 110px; height: 110px; margin-bottom: 4px; }
.witem-b p { margin: 0 0 10px; }
.more { display: inline-flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-decoration: none; margin-top: 16px; }
.more span { transition: transform .4s var(--ease); }
.more:hover span { transform: translateX(5px); }
.rtl .more:hover span { transform: translateX(-5px); }
.wmore { max-width: 980px; margin: 50px auto 40px; padding: 0 clamp(18px, 4vw, 40px); text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips a { font: 500 18px/1 var(--display); color: var(--tx2); text-decoration: none; padding: 11px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .08); transition: all .3s; }
.chips a:hover { color: var(--gold-hi); border-color: var(--hair2); background: rgba(227, 191, 106, .05); }

/* ---------------------------------------------------------------- about / 404 */
.prose { max-width: 780px; }
.prose p { margin: 0 0 1.15em; }
.nf-arch { position: relative; width: 190px; aspect-ratio: 5 / 8; margin: 0 auto 40px; }
.nf-arch .win { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; margin-top: 190px; padding: 0 clamp(18px, 4vw, 48px) 46px; background: linear-gradient(rgba(13, 14, 23, 0) 0, #0c0d17 40px, #090a12); }
.foot::before { content: ''; position: absolute; inset: 60px 0 0; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e3bf6a' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M0 0l14 14M56 0L42 14M0 56l14-14M56 56L42 42'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px; }
.dam { display: block; width: calc(100% + 2 * clamp(18px, 4vw, 48px)); height: 190px; margin: -150px calc(-1 * clamp(18px, 4vw, 48px)) 0; opacity: .92; }
.foot-ayah { position: relative; padding-top: 70px; }
.rose { width: 34px; height: 34px; margin: 0 auto 22px; fill: none; stroke: var(--gold); stroke-width: .9; opacity: .9; }
.rose .rose-c { fill: #c4486a; stroke: none; }
.foot-ayah { text-align: center; max-width: 820px; margin: 0 auto 80px; }
.foot-ayah .ar { font-size: clamp(30px, 4vw, 46px); line-height: 1.8; margin: 0 0 10px; color: var(--gold-hi); }
.foot-ayah .tr { color: var(--tx2); font: italic 500 22px/1.5 var(--display); margin: 0; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr; gap: 60px; align-items: start; padding: 40px; border-radius: 28px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06); }
.foot-note { margin: 0; color: var(--tx); font: 500 25px/1.4 var(--display); }
.foot-share { margin: 14px 0 0; color: var(--tx2); font-size: 18px; }
.share { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.foot-nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-nav a { font: 500 22px/1.5 var(--display); color: var(--tx2); text-decoration: none; transition: color .3s; }
.foot-nav a:hover { color: var(--gold-hi); }
.foot-base { max-width: var(--wrap); margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-langs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-langs a { color: var(--tx3); text-decoration: none; font-size: 16px; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--gold); }
.foot-small { margin: 0; color: var(--tx3); font: 600 10.5px/1.6 var(--ui); letter-spacing: .14em; text-transform: uppercase; }

/* first-visit welcome: sound or silence */
.welcome { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 11, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .6s var(--ease); }
.welcome[hidden] { display: none; }
.welcome.on { opacity: 1; }
.wel-card { position: relative; width: min(460px, 100%); padding: 40px 36px 34px; text-align: center; border-radius: 30px; background: radial-gradient(ellipse at 50% 0%, rgba(227, 191, 106, .14), transparent 60%), rgba(12, 14, 28, .94); border: 1px solid rgba(227, 191, 106, .25); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05); transform: translateY(16px) scale(.98); transition: transform .8s var(--ease); }
.welcome.on .wel-card { transform: none; }
.wel-card::before { content: ''; position: absolute; inset: 9px; border-radius: 22px; border: 1px solid rgba(227, 191, 106, .08); pointer-events: none; }
.wel-orb { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(227, 191, 106, .35), 0 0 50px rgba(227, 191, 106, .25); }
.wel-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wel-ar { font-family: var(--name); font-size: 30px; color: var(--gold-hi); margin: 0; line-height: 1.4; }
.welcome h2 { font: 500 34px/1.15 var(--display); margin: 6px 0 12px; color: var(--tx); }
.wel-t { margin: 0 0 26px; color: var(--tx2); font-size: 18px; line-height: 1.6; }
.wel-b { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.wel-b .btn { justify-content: center; }
[dir="rtl"] .welcome h2 { font-family: var(--uiF); font-weight: 700; font-size: 28px; line-height: 1.6; }

/* page change veil */
.veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, #0d1028, var(--ink0) 70%); transition: opacity .38s var(--ease); }
.veil.on { opacity: 1; }

/* ---------------------------------------------------------------- language menu */
.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); list-style: none; margin: 0; padding: 8px; min-width: 200px; z-index: 30; border-radius: 16px; background: rgba(14, 16, 32, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.langs li a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--tx2); font: 500 19px/1.2 var(--display); }
.langs li a[lang="ar"], .langs li a[lang="ur"], .langs li a[lang="fa"] { font-family: var(--naskh); font-size: 17px; text-align: right; }
.langs li a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.langs li a[aria-current] { color: var(--gold-hi); }

/* ---------------------------------------------------------------- Arabic script (rtl) */
[dir="rtl"] { --uiF: var(--kufi); --bodyF: var(--naskh); }
:root[lang="ur"] { --uiF: Nastaliq, var(--naskh); --bodyF: Nastaliq, var(--naskh); }
:root[lang="ur"] body { line-height: 2.5; font-size: 19px; }
:root[lang="ur"] :is(.lead, .sec-lead, .hero-lead, .carry-t) { line-height: 2.3; }
:root[lang="ur"] :is(.sec h1, .sec h2, .w-h) { line-height: 1.9; }
:root[lang="fa"] { --uiF: Vazir, var(--naskh); --bodyF: Vazir, var(--naskh); }
:root[lang="fa"] body { font-size: 19px; line-height: 2.05; }
[dir="rtl"] body { font-family: var(--bodyF); font-size: 20px; line-height: 2; }
[dir="rtl"] :is(.kicker, .nav a, .foot-nav a, .snd, .langs summary, .btn, .sec h1, .sec h2, .w-h, .h2, .tile-t, .tile-n, .legend, .when-s, .moments h3, .side-k, .side-l, .pn-k, .pn-n, .more, .mini-t, .dua-k, .carry-k, .foot-small, .hero-tr, .p-title, .p-known, .lead, .carry-t, .carry-n, .foot-note, .foot-ayah .tr, .name-n, .chips a, .tree-note, .ayah figcaption, .dua figcaption, .mo-n, .p-en) { font-family: var(--uiF); letter-spacing: 0; text-transform: none; font-style: normal; }
[dir="rtl"] :is(.nm-en, .p-en, .brand-en, .name-n, .name-v, .carry-en, .pn-n, .mini-t span)[lang="en"] { font-family: var(--ui); }
[dir="rtl"] :is(.sec h1, .sec h2, .w-h) { font-weight: 700; line-height: 1.4; font-size: clamp(34px, 4.6vw, 58px); }
[dir="rtl"] .h2 { font-weight: 700; font-size: 32px; }
[dir="rtl"] .h2::after { background: linear-gradient(270deg, var(--hair2), transparent); }
[dir="rtl"] .lead { font-size: 27px; line-height: 1.8; font-family: var(--naskh); }
[dir="rtl"] .hero-tr { font-size: clamp(20px, 2.2vw, 26px); }
[dir="rtl"] .p-title { font-size: 22px; }
[dir="rtl"] .p-en { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; margin-top: 0; }
[dir="rtl"] .dropcap::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
[dir="rtl"] .phero-glow { transform: scaleX(-1); }
[dir="rtl"] .phero-num { left: auto; right: clamp(10px, 3vw, 40px); }
[dir="rtl"] .pn-a.next { flex-direction: row-reverse; }
[dir="rtl"] .iref { font-size: .74em; }
[dir="rtl"] .kicker, [dir="rtl"] .nav a { font-size: 15px; }
[dir="rtl"] .btn { font-size: 15px; }

/* Bengali: no letter-spacing (it breaks conjuncts), no capitals; Turkish: keep its own i/İ */
:root[lang="bn"] :is(.kicker, .nav a, .snd, .langs summary, .btn, .legend, .tile-n, .side-k, .side-l, .pn-k, .more, .dua-k, .carry-k, .foot-small, .p-known, .ref, .iref, .nm-en, .mo-n, .mini-t) { letter-spacing: 0; text-transform: none; }
:root[lang="bn"] body { line-height: 1.85; }
:root[lang="bn"] :is(.hero-tr, .p-title, .carry-t, .ayah figcaption, .dua figcaption, .tree-note, .foot-ayah .tr, .name-v) { font-style: normal; }
:root[lang="tr"] :is(.kicker, .nav a, .btn, .p-known, .side-k, .legend, .tile-n) { text-transform: none; letter-spacing: .06em; }

/* share: one button, a quiet confirmation beside it */
.share { align-items: center; }
.share .btn .ico { width: 16px; height: 16px; stroke-width: 1.8; }
.btn-tg .ico { stroke-linejoin: round; }
.share-done { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); word-break: break-all; }
.share.copied .share-done { opacity: 1; transform: none; }
.share-done.url { text-transform: none; letter-spacing: 0; font: 500 14px/1.4 var(--ui); color: var(--tx); user-select: all; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .share-done { font-family: var(--uiF); letter-spacing: 0; text-transform: none; font-size: 15px; }

/* mashrabiya: a faint lattice in every card */
.name, .when, .witem, .pn-a, .foot-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23e3bf6a' stroke-opacity='.045' stroke-width='1'%3E%3Cpath d='M14 0l5 9 9 5-9 5-5 9-5-9-9-5 9-5z'/%3E%3Ccircle cx='14' cy='14' r='3'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); background-size: 28px 28px, auto; }

/* ---------------------------------------------------------------- share banners (1200x630, og.py) */
.og { margin: 0; width: 1200px; height: 630px; overflow: hidden; background: var(--ink0); }
.og::after { display: none; }
.og-card { position: relative; width: 1200px; height: 630px; overflow: hidden; display: grid; grid-template-columns: 1fr 330px; gap: 60px; align-items: center; padding: 0 80px 0 86px;
  background: radial-gradient(700px 500px at 82% 50%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 70%), radial-gradient(500px 400px at 10% 10%, rgba(60, 60, 140, .22), transparent 70%), var(--ink0); }
.og-card::before { content: ''; position: absolute; inset: 0; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e3bf6a' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px; }
.og-card::after { content: ''; position: absolute; inset: 16px; border-radius: 26px; border: 1px solid rgba(227, 191, 106, .18); pointer-events: none; }
.og-in { position: relative; z-index: 2; }
.og-big { margin: 0; font-family: var(--name); font-size: 132px; line-height: 1.35; background: var(--leaf); background-size: 160% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(227, 191, 106, .35)); }
.og-sub { margin: 4px 0 0; font: 500 44px/1.15 var(--display); color: var(--tx); }
.og-line { margin: 18px 0 0; font: italic 500 27px/1.4 var(--display); color: var(--tx2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[dir="rtl"] .og-sub { font-family: var(--uiF); font-weight: 700; font-size: 40px; line-height: 1.5; }
[dir="rtl"] .og-line { font-family: var(--bodyF); font-style: normal; font-size: 25px; line-height: 1.8; }
.og-big.og-long { font-size: 92px; line-height: 1.6; }
.og-brand { position: absolute; z-index: 2; bottom: 46px; inset-inline-start: 86px; margin: 0; display: flex; align-items: center; gap: 14px; }
.og-orn { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.og-orn circle { fill: var(--gold); stroke: none; }
.og-brand [lang="ar"] { font-family: var(--name); font-size: 34px; color: var(--gold-hi); }
.og-brand [lang="en"] { font: 600 16px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--tx2); }
.og-arch { position: relative; z-index: 2; margin: 0; width: 330px; height: 520px; }
.og-arch .win { position: absolute; inset: 0; }
.og-arch .arch-line { inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
.og-arch .arch-line .al-base, .og-arch .arch-line .al-ablaq { stroke-width: 4; stroke-dasharray: 8 8; }
.og-arch .arch-line .al-base { stroke-dasharray: none; }
.og-arch .arch-line .al-ablaq { opacity: .55; }
.og .rise, .og .reveal { opacity: 1; transform: none; filter: none; animation: none; }

/* ---------------------------------------------------------------- mobile menu */
.menu-btn { display: none; position: relative; width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .02); cursor: pointer; padding: 0; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--gold-hi); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn i:nth-child(1) { top: 15px; } .menu-btn i:nth-child(2) { top: 20px; } .menu-btn i:nth-child(3) { top: 25px; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; background: rgba(6, 7, 15, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity .4s var(--ease); }
.mnav[hidden] { display: none; }
.mnav.on { opacity: 1; }
.mnav-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transform: translateY(12px); transition: transform .6s var(--ease); }
.mnav.on .mnav-in { transform: none; }
.mnav-orn { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1; margin-bottom: 14px; }
.mnav-orn circle { fill: var(--gold); stroke: none; }
.mnav a { font: 500 34px/1.2 var(--display); color: var(--tx); text-decoration: none; padding: 10px 24px; min-height: 48px; }
.mnav a:active, .mnav a:hover { color: var(--gold-hi); }
.mnav-ar { margin: 18px 0 0; font-family: var(--name); font-size: 30px; color: var(--gold); opacity: .8; }
[dir="rtl"] .mnav a { font-family: var(--uiF); font-weight: 700; font-size: 28px; }
.menu-open { overflow: hidden; }
.menu-open .top { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 40; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .pbody { grid-template-columns: 1fr; gap: 30px; }
  .side-box, .side-box + .side-box { position: static; }
  .pside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .tree-note { display: none; }
  .ref { min-height: 36px; display: inline-flex; align-items: center; padding: 8px 13px; }
  .when-s { padding: 8px 0; }
  .more { padding: 12px 0; }
  .phero .kicker a { display: inline-block; padding: 10px 0; }
  .foot-langs a { display: inline-block; padding: 8px 2px; }
  .foot-nav a { padding: 6px 0; }
  .side-l, .pn-k, .foot-small { font-size: 11.5px; }
  .brand { padding: 6px 0; }
}
@media (max-width: 760px) {
  body { font-size: 18.5px; }
  .top { padding: 12px 14px; gap: 10px; }
  .brand-en, .snd-t { display: none; }
  .snd, .langs summary { padding: 0 12px; }
  .hero-in { padding-top: 100px; padding-bottom: 32vh; }
  .sec { padding-top: 100px; }
  .sec-h { margin-bottom: 44px; }
  .tree { --node: 56px; row-gap: 34px; column-gap: 0; }
  .nm { margin-top: 3px; padding: 1px 6px 3px; }
  .orb-n { width: 18px; height: 18px; font-size: 9px; top: -6%; }
  .node-seal .orb-n { width: 22px; height: 22px; font-size: 10px; }
  .dam { height: 190px; margin-top: -150px; }
  .foot { margin-top: 110px; }
  .node { width: 72px; gap: 1px; }
  .nm-ar { font-size: 19px; margin-top: 6px; }
  .node-side .nm-ar { font-size: 17px; }
  .nm-en { font-size: 10px; letter-spacing: .04em; }
  .node-seal { --node: 92px; width: 120px; }
  .node-seal .nm-ar { font-size: 30px; }
  .orb::after { inset: -3px; box-shadow: inset 0 0 0 2px var(--ink0); }
  .tree-note { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .tile-t { font-size: 19px; }
  .tile-win { margin-bottom: 14px; }
  .arch-line { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
  .phero { padding-top: 84px; }
  .phero-grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .phero-arch { order: -1; max-width: 270px; margin-bottom: 10px; }
  .phero-arch .arch-line { inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); }
  .phero .kicker { justify-content: center; }
  .phero-text { text-align: center; }
  .phero h1 { justify-content: center; }
  .p-title { justify-content: center; }
  .phero-num { display: none; }
  .phero-when .sec-lead { margin: 0 auto; }
  .lead { font-size: 25px; }
  .pside { grid-template-columns: 1fr; }
  .moments li { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
  .mo-n { width: 38px; height: 38px; font-size: 11px; }
  .moments::before { inset-inline-start: 18.5px; }
  .moments h3 { font-size: 23px; margin-top: 4px; }
  .when, .witem { padding: 22px 20px; }
  .witem { grid-template-columns: 1fr; gap: 14px; }
  .pn { grid-template-columns: 1fr; }
  .pn-a { padding: 16px 18px; }
  .ayah, .dua, .carry { padding-inline: 20px; }
  .foot-grid { padding: 26px 22px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rise, .reveal { opacity: 1; transform: none; filter: none; } html { scroll-behavior: auto; } }
