/* الصراب — موقع تعريفي. ألوان الهوية المعتمدة (2.75). */
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyah-serif-display-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Display"; src: url("assets/fonts/thmanyah-serif-display-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Text"; src: url("assets/fonts/thmanyah-serif-text-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Text"; src: url("assets/fonts/thmanyah-serif-text-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyah-sans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyah-sans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/fonts/thmanyah-sans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #4D2A05;        /* بني العلامة */
  --paper: #FCE9D0;      /* ورق */
  --gold: #B38B51;       /* ذهبي */
  --gold-soft: #c9a46a;
  --navy: #09192B;       /* كحلي العلم */
  --crimson: #632A20;    /* قرمزي الرواية */
  --night: #160d06;
  --display: "Thmanyah Display", "Amiri", serif;
  --text: "Thmanyah Text", "Amiri", serif;
  --sans: "Thmanyah Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font-family: var(--text); font-size: clamp(17px, 1.05rem + .2vw, 19px); line-height: 1.95;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; font-family: var(--sans); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.eyebrow { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--gold-soft); margin: 0 0 .6em; display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }

/* ---------- الرأس ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, color .35s; color: var(--ink); }
.top.is-solid { background: rgba(22, 13, 6, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(179, 139, 81, .25); color: var(--paper); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.45rem; }
.brand img { width: 26px; height: auto; }
.top.is-solid .brand img { filter: brightness(0) invert(.9) sepia(.4); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-family: var(--sans); font-size: .95rem; }
.nav a { text-decoration: none; opacity: .85; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav a:hover, .nav a.is-on { opacity: 1; }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.menu { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; position: relative; }
.menu i { position: absolute; inset-inline: 10px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu i:first-child { top: 16px; } .menu i:last-child { top: 25px; }
.menu[aria-expanded="true"] i:first-child { top: 20px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- الافتتاح ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--ink);
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(255, 248, 236, .95), transparent 70%),
    radial-gradient(ellipse at 10% 100%, rgba(99, 42, 32, .14), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(9, 25, 43, .12), transparent 55%),
    var(--paper);
  overflow: hidden; padding: 96px 0 72px;
}
.hero__lines { position: absolute; inset: 0; opacity: .32; pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, transparent 0 180px, rgba(77, 42, 5, .18) 181px 182px, transparent 183px 300px, rgba(77, 42, 5, .12) 301px 302px, transparent 303px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(77, 42, 5, .06) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(77, 42, 5, .06) 119px 120px); }
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__text { text-align: center; }
.hero__mark { width: clamp(78px, 9vw, 116px); height: auto; margin: 0 auto 8px; animation: float 7s ease-in-out infinite; }
.hero__title { font-size: clamp(4.2rem, 11vw, 8.4rem); line-height: 1.05; font-weight: 700; letter-spacing: 0; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); margin: 18px auto 22px; max-width: 30ch; color: rgba(77, 42, 5, .88); }
.hero__by { font-family: var(--sans); font-weight: 500; display: inline-flex; align-items: center; gap: 14px; font-size: 1rem; }
.hero__by i { width: 38px; height: 1px; background: var(--gold); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); perspective: 1400px; }
.door { position: relative; display: block; text-decoration: none; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(40, 20, 4, .55), 0 0 0 1px rgba(77, 42, 5, .12);
  transform: rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
.door--riwaya { --ry: 6deg; } .door--ilm { --ry: -6deg; --ty: 34px; }
.door:hover { --ry: 0deg; box-shadow: 0 40px 80px -28px rgba(40, 20, 4, .7), 0 0 0 1px rgba(179, 139, 81, .6); }
.door img { width: 100%; height: auto; aspect-ratio: 728 / 1016; object-fit: cover; }
.door__cap { position: absolute; inset: auto 50% 14px auto; translate: 50% 0; white-space: nowrap; padding: 6px 16px; border-radius: 20px; font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--paper); background: rgba(22, 13, 6, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(201, 164, 106, .5); opacity: 0; transition: opacity .4s; }
.door:hover .door__cap, .door:focus-visible .door__cap { opacity: 1; }
@media (hover: none) { .door__cap { opacity: 1; } }
.hero__down { position: absolute; bottom: 22px; inset-inline-start: 50%; translate: 50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(77, 42, 5, .45); border-radius: 14px; }
.hero__down span { position: absolute; top: 8px; inset-inline-start: 50%; translate: 50% 0; width: 3px; height: 8px; border-radius: 2px; background: var(--ink); animation: drip 2s infinite; }

@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- عناوين الأقسام ---------- */
section { position: relative; }
.riwaya, .ilm, .isma, .muallif { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.sec-head h2 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; }
.tagline { font-family: var(--sans); color: var(--gold-soft); margin-top: 10px; font-size: 1.02rem; }
.sub { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: clamp(56px, 7vw, 96px) 0 26px; display: flex; align-items: center; gap: 16px; }
.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, rgba(179, 139, 81, .5), transparent); }

/* ---------- العالم ---------- */
.alam { padding: clamp(80px, 11vw, 150px) 0; background: radial-gradient(ellipse 70% 50% at 50% 40%, #2a1a0e, var(--night) 75%); overflow: hidden; }
.alam::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.orbit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.orbit__map { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.ring { fill: none; stroke: rgba(201, 164, 106, .55); stroke-width: 1.5; }
.ring--ilm { stroke: rgba(143, 194, 255, .6); }
.ring--open { stroke-dasharray: 3 9; stroke-linecap: round; stroke: rgba(252, 233, 208, .4); }
.dot { fill: var(--gold-soft); filter: drop-shadow(0 0 6px rgba(201, 164, 106, .9)); }
.dot--ilm { fill: #8fc2ff; filter: drop-shadow(0 0 6px rgba(143, 194, 255, .9)); }
.dot--open { fill: var(--paper); opacity: .8; }
.spin { transform-origin: 300px 300px; animation: orbit 40s linear infinite; }
.spin--1 { animation-duration: 26s; } .spin--3 { animation-duration: 70s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.lbl rect { fill: #1d120a; stroke: rgba(201, 164, 106, .6); stroke-width: 1; }
.lbl text { font-family: var(--sans); font-size: 16px; font-weight: 500; fill: var(--gold-soft); }
.lbl--ilm rect { stroke: rgba(143, 194, 255, .65); } .lbl--ilm text { fill: #8fc2ff; }
.lbl--open rect { stroke-dasharray: 3 4; stroke: rgba(252, 233, 208, .5); } .lbl--open text { fill: rgba(252, 233, 208, .8); }
.ct { font-family: var(--display); font-weight: 700; font-size: 34px; fill: var(--paper); }
.cs { font-family: var(--sans); font-size: 14px; fill: var(--gold-soft); }
.core-mark { filter: brightness(0) invert(.92) sepia(.4); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: l; }
.layers li > a, .layers li.layers--open { display: block; text-decoration: none; padding: 18px 22px 16px; border: 1px solid rgba(179, 139, 81, .3); border-radius: 4px; background: rgba(42, 26, 14, .55); transition: border-color .3s, transform .3s; }
.layers li > a:hover { border-color: var(--gold); transform: translateX(-4px); }
.layers li.layers--open { border-style: dashed; }
.layers b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--paper); display: flex; align-items: center; gap: 10px; }
.layers b::before { counter-increment: l; content: counter(l); font-family: var(--sans); font-size: .75rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-soft); }
.layers p { margin: 4px 0 0; font-size: .95rem; line-height: 1.85; color: rgba(252, 233, 208, .78); }
.mithaq { margin-top: clamp(56px, 7vw, 90px); text-align: center; }
.mithaq__t { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; }
.mithaq__t small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--gold-soft); margin-top: 2px; }
.mithaq ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mithaq li { font-family: var(--sans); font-weight: 500; font-size: .95rem; padding: 8px 18px; border-radius: 22px; border: 1px solid rgba(201, 164, 106, .5); background: rgba(99, 42, 32, .35); }
.nums { margin: clamp(56px, 7vw, 90px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(179, 139, 81, .3); border-bottom: 1px solid rgba(179, 139, 81, .3); }
.nums div { padding: 26px 12px; text-align: center; border-inline-start: 1px solid rgba(179, 139, 81, .2); }
.nums div:first-child { border-inline-start: 0; }
.nums dt { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.1; color: var(--gold-soft); }
.nums dd { margin: 4px 0 0; font-family: var(--sans); font-size: .85rem; color: rgba(252, 233, 208, .75); }

/* شارة «من عالم الصراب» */
.story__tag { align-self: flex-start; font-family: var(--sans); font-size: .72rem; font-weight: 500; color: var(--crimson); border: 1px solid rgba(99, 42, 32, .35); border-radius: 12px; padding: 1px 10px; margin-bottom: 10px; position: relative; }

/* ---------- الرواية ---------- */
.riwaya { background:
  radial-gradient(ellipse 80% 40% at 50% 0, rgba(99, 42, 32, .55), transparent 70%),
  linear-gradient(180deg, #2a0c07 0%, #3a100a 45%, #2a0c07 100%); }
.riwaya::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.premise { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.premise__text p { color: rgba(252, 233, 208, .86); }
.premise__text .big { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.7; color: var(--paper); }
.excerpt { margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--paper); color: var(--ink); border-radius: 4px; position: relative;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transform: rotate(-1deg); }
.excerpt::before { content: "«"; position: absolute; top: -34px; inset-inline-start: 18px; font-family: var(--display); font-size: 5rem; color: var(--gold); line-height: 1; }
.excerpt__label { font-family: var(--sans); font-size: .8rem; color: var(--crimson); font-weight: 700; margin-bottom: .8em; }
.excerpt blockquote { margin: 0; font-size: 1.02rem; line-height: 2; }
.excerpt blockquote b { font-family: var(--display); font-weight: 500; font-size: 1.22rem; }
.excerpt figcaption { font-family: var(--sans); font-size: .8rem; margin-top: 10px; color: rgba(77, 42, 5, .7); }

.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(179, 139, 81, .22); border: 1px solid rgba(179, 139, 81, .22); }
.people li { background: #300e08; padding: 22px 24px; }
.people b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--gold-soft); display: block; margin-bottom: 4px; }
.people p { margin: 0; font-size: .95rem; line-height: 1.85; color: rgba(252, 233, 208, .8); }

.parts-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.parts-head .sub { flex: 1 1 100%; margin-bottom: 0; }
.parts-head p { font-family: var(--sans); font-size: .9rem; color: rgba(252, 233, 208, .65); margin: 10px 0 28px; }
.parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.part { display: flex; flex-direction: column; }
.part__btn { all: unset; cursor: pointer; display: block; border-radius: 4px; overflow: hidden; background: var(--band); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(179, 139, 81, .18);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.part__btn:hover, .part__btn:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--gold); }
.part__btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.part__cover img { width: 100%; height: auto; aspect-ratio: 420 / 595; object-fit: cover; }
.part__band { display: grid; gap: 0; padding: 10px 14px 12px; border-top: 1px solid var(--gold-soft); background: var(--band); color: var(--paper); }
.part__band small { font-family: var(--sans); font-size: .74rem; opacity: .75; }
.part__band strong { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.4; }
.part__quote { margin: 12px 4px 0; font-size: .88rem; line-height: 1.85; color: rgba(252, 233, 208, .72); }
.part__note { margin: 12px 4px 0; font-family: var(--sans); font-size: .85rem; color: var(--gold-soft); }
.part--final .part__btn { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), 0 0 0 1px var(--gold-soft); }
.part__quote::before { content: "«"; } .part__quote::after { content: "»"; }

.maxims { margin-top: clamp(70px, 9vw, 120px); text-align: center; }
.maxims .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.maxims__stage { position: relative; min-height: 9.5em; display: grid; place-items: center; }
.maxims__list { list-style: none; margin: 0; padding: 0; display: grid; }
.maxims__list li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s; pointer-events: none; max-width: 32ch; margin-inline: auto; }
.maxims__list li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.maxims__list p { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.6; margin: 0 0 .4em; }
.maxims__list small { font-family: var(--sans); color: var(--gold-soft); font-size: .85rem; }
.maxims__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.maxims__dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(252, 233, 208, .25); cursor: pointer; transition: background .3s, transform .3s; }
.maxims__dots button.is-on { background: var(--gold-soft); transform: scale(1.3); }

/* ---------- القصص ---------- */
.qisas { padding: clamp(80px, 11vw, 150px) 0; color: var(--ink); background: radial-gradient(ellipse at 50% 0, #fff6e8, var(--paper) 60%, #f1d9b8); }
.qisas .eyebrow { color: var(--crimson); }
.qisas .tagline { color: rgba(77, 42, 5, .7); }
.qisas__lead { max-width: 52ch; margin: -20px auto clamp(36px, 5vw, 56px); text-align: center; color: rgba(77, 42, 5, .85); }
.stories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.story a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 26px 24px; text-decoration: none; border-radius: 4px; overflow: hidden;
  background: rgba(255, 250, 240, .7); border: 1px solid rgba(77, 42, 5, .18); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s; }
.story a:hover, .story a:focus-visible { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px -28px rgba(60, 30, 5, .55); }
.story__n { position: absolute; top: -14px; inset-inline-end: 14px; font-family: var(--display); font-size: 5.2rem; line-height: 1; color: rgba(179, 139, 81, .25); }
.story h4 { font-family: var(--display); font-weight: 500; font-size: 1.7rem; margin: 0; line-height: 1.35; position: relative; }
.story small { font-family: var(--sans); font-size: .78rem; opacity: .55; text-align: end; }
.story p { font-size: .95rem; line-height: 1.9; margin: 12px 0 18px; color: rgba(77, 42, 5, .85); flex: 1; }
.story__go { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--crimson); }
.story__go::after { content: " ←"; }

/* ---------- العلم ---------- */
.ilm { background: radial-gradient(ellipse 90% 60% at 50% 110%, #12345a 0, transparent 65%), linear-gradient(180deg, #050d17, var(--navy) 40%, #07131f); overflow: hidden; }
.ilm::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); z-index: 1; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8, transparent), radial-gradient(1px 1px at 30% 70%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fffa, transparent), radial-gradient(1px 1px at 70% 50%, #fff7, transparent),
    radial-gradient(1px 1px at 85% 80%, #fff6, transparent), radial-gradient(1.5px 1.5px at 92% 25%, #fff9, transparent),
    radial-gradient(1px 1px at 20% 90%, #fff5, transparent), radial-gradient(1px 1px at 45% 40%, #fff5, transparent);
  background-size: 420px 420px; animation: drift 120s linear infinite; }
.stars::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 30%, transparent 0 220px, rgba(179, 139, 81, .12) 221px 222px, transparent 223px),
              radial-gradient(circle at 90% 70%, transparent 0 320px, rgba(179, 139, 81, .1) 321px 322px, transparent 323px); }
@keyframes drift { to { background-position: -420px 210px; } }
.ilm .wrap { position: relative; z-index: 1; }
.core { position: relative; margin: 0 auto clamp(64px, 8vw, 110px); max-width: 1020px; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 72px); text-align: center;
  border: 1px solid rgba(201, 164, 106, .55); border-radius: 4px; background: radial-gradient(ellipse at 50% 0, rgba(18, 52, 90, .7), rgba(5, 13, 23, .65) 70%); }
.core::before, .core::after { content: ""; position: absolute; inset-inline: 18%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.core::before { top: -1px; } .core::after { bottom: -1px; }
.core blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.85; color: var(--paper); text-wrap: pretty; }
.core figcaption { margin-top: 22px; font-family: var(--sans); font-size: .9rem; color: var(--gold-soft); display: inline-flex; align-items: center; gap: 12px; }
.core figcaption::before, .core figcaption::after { content: ""; width: 30px; height: 1px; background: currentColor; }
.ilm__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.motto { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.45; color: var(--paper); text-wrap: balance; }
.ilm__prose p { color: rgba(252, 233, 208, .82); }
.ilm__note { color: rgba(252, 233, 208, .75); max-width: 62ch; margin-top: -8px; margin-bottom: 26px; }
.laws { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.laws li { position: relative; padding: 30px 26px 26px; border: 1px solid rgba(179, 139, 81, .35); border-radius: 4px; background: linear-gradient(160deg, rgba(18, 52, 90, .45), rgba(9, 25, 43, .3)); overflow: hidden; }
.laws__n { position: absolute; top: -18px; inset-inline-end: 14px; font-family: var(--display); font-size: 6.5rem; line-height: 1; color: rgba(179, 139, 81, .18); }
.laws small { font-family: var(--sans); color: var(--gold-soft); font-size: .85rem; display: block; margin-bottom: 10px; }
.laws p { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.6; margin: 0; position: relative; }
.beings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(179, 139, 81, .25); border: 1px solid rgba(179, 139, 81, .25); }
.beings li { background: rgba(7, 19, 31, .92); padding: 26px; transition: background .3s; }
.beings li:hover { background: rgba(18, 52, 90, .6); }
.beings b { font-family: var(--display); font-weight: 500; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; color: var(--paper); margin-bottom: 6px; }
.beings b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 12px var(--gold-soft); }
.beings p { margin: 0; font-size: .97rem; line-height: 1.85; color: rgba(252, 233, 208, .76); }
.gym { margin: clamp(56px, 7vw, 96px) auto 0; max-width: 760px; text-align: center; }
.gym h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; color: var(--gold-soft); }
.gym p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 2; color: rgba(252, 233, 208, .88); }
.book { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(179, 139, 81, .3); border-radius: 6px; background: rgba(5, 13, 23, .55); }
.book img { border-radius: 3px; box-shadow: 0 24px 50px -20px #000; }
.book h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.book p { color: rgba(252, 233, 208, .8); }
.book p:last-child { margin-bottom: 0; }

/* ---------- استمع وشاهد ---------- */
.isma { background: linear-gradient(180deg, #120a05, var(--night)); }
.isma::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pod { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 40px); border-radius: 8px;
  background: linear-gradient(120deg, rgba(99, 42, 32, .55), rgba(9, 25, 43, .65)); border: 1px solid rgba(179, 139, 81, .3); }
.pod__art { position: relative; width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.pod__art img { width: 42%; height: auto; position: relative; z-index: 1; }
.pod__art span { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(179, 139, 81, .45); }
.pod__art span + span { inset: -22px; opacity: .5; }
.pod.is-playing .pod__art span { animation: ring 2.4s ease-out infinite; }
.pod.is-playing .pod__art span + span { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.18); opacity: 0; } }
.pod h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pod__desc { color: rgba(252, 233, 208, .78); margin: 6px 0 18px; }
.player { display: flex; align-items: center; gap: 14px; }
.player__play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--gold); cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.player__play:hover { background: var(--gold-soft); transform: scale(1.05); }
.player__play svg { width: 24px; height: 24px; fill: var(--night); }
.player__play .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: inline; }
.player__track { flex: 1; min-width: 0; }
.player__time { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .8rem; color: rgba(252, 233, 208, .65); direction: ltr; margin-top: 4px; }
.player input[type=range] { width: 100%; direction: ltr; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold-soft) var(--p, 0%), rgba(252, 233, 208, .2) var(--p, 0%)); }
.player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.player input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--paper); }
.player__rate { flex: none; border: 1px solid rgba(179, 139, 81, .5); background: none; border-radius: 20px; padding: 2px 12px; font-family: var(--sans); font-size: .85rem; cursor: pointer; direction: ltr; }

.deck { margin-top: clamp(48px, 6vw, 80px); }
.deck__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.deck__head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.deck__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.deck__pdf { font-family: var(--sans); font-size: .85rem; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(179, 139, 81, .55); border-radius: 20px; transition: background .3s; }
.deck__pdf:hover { background: rgba(179, 139, 81, .2); }
.deck__count { font-family: var(--sans); color: rgba(252, 233, 208, .65); margin: 0; direction: ltr; }
.deck__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(179, 139, 81, .3); touch-action: pan-y; }
.deck__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; }
.deck__slide.is-on { opacity: 1; }
.deck__slide img { width: 100%; height: 100%; object-fit: contain; }
.deck__nav, .deck__full { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(22, 13, 6, .65); backdrop-filter: blur(4px); opacity: .0; transition: opacity .3s, background .3s; }
.deck__stage:hover .deck__nav, .deck__stage:hover .deck__full, .deck__stage:focus-within .deck__nav, .deck__stage:focus-within .deck__full { opacity: 1; }
.deck__nav:hover, .deck__full:hover { background: rgba(179, 139, 81, .85); }
.deck__nav svg, .deck__full svg { width: 22px; height: 22px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck__nav--prev { inset-inline-start: 14px; } .deck__nav--next { inset-inline-end: 14px; }
.deck__full { top: auto; bottom: 14px; translate: none; inset-inline-end: 14px; width: 40px; height: 40px; }
.deck__stage:fullscreen { aspect-ratio: auto; border-radius: 0; }
.deck__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.deck__thumb { flex: none; width: 120px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 3px; overflow: hidden; opacity: .5; outline: 1px solid transparent; transition: opacity .3s, outline-color .3s; }
.deck__thumb.is-on, .deck__thumb:hover { opacity: 1; outline-color: var(--gold-soft); }
.deck__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- المؤلف ---------- */
.muallif { background: var(--paper); color: var(--ink); }
.muallif .eyebrow { color: var(--crimson); }
.muallif__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.muallif h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.muallif__prose p { color: rgba(77, 42, 5, .9); }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.links a { text-decoration: none; display: grid; gap: 2px; padding: 16px 18px; border: 1px solid rgba(77, 42, 5, .25); border-radius: 4px; transition: background .3s, border-color .3s; }
.links a:hover { background: rgba(77, 42, 5, .06); border-color: var(--gold); }
.links small { font-family: var(--sans); font-size: .75rem; color: var(--crimson); }
.links span { font-family: var(--display); font-size: 1.25rem; }
.links em { font-style: normal; font-family: var(--sans); font-size: .78rem; opacity: .65; text-align: end; }

/* ---------- التذييل ---------- */
.foot { background: var(--night); border-top: 1px solid rgba(179, 139, 81, .25); padding: 34px 0 40px; }
.foot__in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: .85rem; color: rgba(252, 233, 208, .65); }
.foot__in img { width: 28px; height: auto; filter: brightness(0) invert(.85) sepia(.5); }
.foot__in p { margin: 0; }
.foot__ver { margin-inline-start: auto !important; direction: rtl; opacity: .7; }

/* ---------- نافذة الغلاف ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--paper); max-width: min(880px, 100% - 32px); width: 100%; max-height: calc(100svh - 32px); }
.modal::backdrop { background: rgba(10, 5, 2, .82); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__in { display: grid; grid-template-columns: minmax(0, 300px) 1fr; background: var(--band, #2a0c07); border-radius: 8px; overflow: hidden; border: 1px solid rgba(179, 139, 81, .45); }
.modal__in img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(22px, 3vw, 38px); overflow: auto; max-height: calc(100svh - 32px); }
.modal__body h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.modal__body blockquote { margin: 0 0 18px; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold-soft); font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.75; }
.modal__body .none { font-family: var(--sans); font-size: .9rem; opacity: .7; }
.modal__x { position: absolute; top: 8px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- الظهور ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- الهاتف واللوح ---------- */
@media (max-width: 960px) {
  .orbit { grid-template-columns: 1fr; }
  .hero__in, .premise, .ilm__intro, .muallif__in { grid-template-columns: 1fr; }
  .hero { padding-top: 92px; }
  .doors { max-width: 520px; margin-inline: auto; width: 100%; }
  .people, .laws, .beings { grid-template-columns: repeat(2, 1fr); }
  .excerpt { transform: none; }
}
@media (max-width: 720px) {
  .nums { grid-template-columns: repeat(2, 1fr); }
  .nums div:nth-child(3) { border-inline-start: 0; }
  .nums div:nth-child(1), .nums div:nth-child(2) { border-bottom: 1px solid rgba(179, 139, 81, .2); }
  .menu { display: block; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: rgba(22, 13, 6, .97); color: var(--paper);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(179, 139, 81, .18); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .top.is-open { background: rgba(22, 13, 6, .97); color: var(--paper); }
  .top.is-open .brand img { filter: brightness(0) invert(.9) sepia(.4); }
  .people, .laws, .beings, .links { grid-template-columns: 1fr; }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .part__quote { font-size: .8rem; }
  .door--ilm { --ty: 22px; }
  .book { grid-template-columns: 1fr; text-align: center; }
  .book img { width: 170px; margin-inline: auto; }
  .pod { grid-template-columns: 1fr; text-align: center; }
  .pod__art { margin: 12px auto 6px; }
  .pod .eyebrow { justify-content: center; }
  .deck__nav, .deck__full { opacity: 1; width: 38px; height: 38px; }
  .deck__nav--prev { inset-inline-start: 6px; } .deck__nav--next { inset-inline-end: 6px; }
  .deck__thumb { width: 92px; }
  .modal__in { grid-template-columns: 1fr; }
  .modal__in img { max-height: 46svh; object-fit: contain; background: rgba(0, 0, 0, .25); }
  .modal__body { max-height: none; }
  .modal { overflow: auto; }
  .foot__ver { margin-inline-start: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- الصفحات ---------- */
.inner .top { background: rgba(22, 13, 6, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(179, 139, 81, .25); color: var(--paper); }
.inner .top .brand img { filter: brightness(0) invert(.9) sepia(.4); }
.inner main > section:first-child { padding-top: calc(64px + clamp(56px, 8vw, 110px)); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.coreband { padding: clamp(70px, 9vw, 120px) 0; background: linear-gradient(180deg, #050d17, var(--navy)); overflow: hidden; }
.coreband .wrap { position: relative; z-index: 1; }
.coreband .core { margin-bottom: 0; }

/* ---------- مداخل الرئيسية ---------- */
.teasers { padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, var(--night), #120a05); }
.teasers .sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.tz { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: 8px; margin-bottom: clamp(20px, 3vw, 32px); border: 1px solid rgba(179, 139, 81, .3); }
.tz h3 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin: 2px 0 12px; }
.tz p { color: rgba(252, 233, 208, .82); }
.tz__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 500; font-size: .95rem; text-decoration: none; padding: 9px 22px; border-radius: 24px; border: 1px solid var(--gold); color: var(--paper); transition: background .3s; margin-top: 6px; }
.tz__go:hover { background: rgba(179, 139, 81, .22); }
.tz__go::after { content: "←"; }
.tz--riwaya { background: linear-gradient(120deg, #3a100a, #2a0c07); }
.tz--qisas { background: var(--tex, none), radial-gradient(ellipse at 30% 0, #fff6e8, var(--paper) 70%); color: var(--ink); }
.tz--qisas p { color: rgba(77, 42, 5, .85); }
.tz--qisas .eyebrow { color: var(--crimson); }
.tz--qisas .tz__go { color: var(--ink); }
.tz--isma { background: linear-gradient(120deg, rgba(99, 42, 32, .55), rgba(9, 25, 43, .75)); }
.fan { display: flex; justify-content: center; padding: 10px 0 10px 40px; }
.fan a { display: block; width: clamp(70px, 9vw, 112px); margin-inline-start: clamp(-40px, -3vw, -24px); border-radius: 3px; overflow: hidden; box-shadow: -8px 12px 26px -10px rgba(0, 0, 0, .8); transform: rotate(calc((var(--i) - 3) * 3deg)) translateY(calc(var(--d) * 1px)); transition: transform .35s; }
.fan a:first-child { margin-inline-start: 0; }
.fan a:hover { transform: translateY(-14px) rotate(0); z-index: 2; }
.fan img { width: 100%; height: auto; aspect-ratio: 420 / 595; object-fit: cover; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-decoration: none; padding: 14px 18px; border-radius: 4px; background: rgba(255, 250, 240, .75); border: 1px solid rgba(77, 42, 5, .16); transition: border-color .3s, transform .3s; }
.mini a:hover { border-color: var(--gold); transform: translateX(-4px); }
.mini b { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.mini small { font-family: var(--sans); font-size: .75rem; color: var(--crimson); white-space: nowrap; }
.tz__media { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid rgba(179, 139, 81, .4); box-shadow: 0 30px 60px -30px #000; }
.tz__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tz__media span { position: absolute; inset: auto 12px 12px auto; font-family: var(--sans); font-size: .8rem; padding: 4px 12px; border-radius: 14px; background: rgba(22, 13, 6, .75); }
@media (max-width: 860px) { .tz { grid-template-columns: 1fr; } .fan { padding-inline-start: 24px; } }
