@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --ink: #0d0d0b;
  --ink-soft: #151513;
  --panel: #191917;
  --panel-2: #211f1a;
  --paper: #f2eadb;
  --muted: #a99d8b;
  --muted-2: #706859;
  --amber: #e2b766;
  --amber-bright: #f1cf83;
  --olive: #7d8a67;
  --line: rgba(226, 183, 102, .22);
  --line-soft: rgba(242, 234, 219, .10);
  --serif: 'Amiri', 'Noto Serif Arabic', Georgia, serif;
  --sans: 'Noto Sans Arabic', Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .78, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); line-height: 1.8; overflow-x: hidden; }
body::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-noise { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .055; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.topbar { height: 76px; padding: 0 clamp(20px, 5vw, 84px); display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; z-index: 20; background: linear-gradient(180deg, rgba(13,13,11,.96), rgba(13,13,11,.2)); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 31px; height: 31px; border: 1px solid var(--amber); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 25px rgba(226,183,102,.2); }
.brand-mark::before { content: ''; width: 9px; height: 9px; background: var(--amber-bright); transform: rotate(45deg); box-shadow: 0 0 12px var(--amber); }
.brand-mark span { position: absolute; width: 17px; height: 17px; border: 1px solid rgba(226,183,102,.6); transform: rotate(45deg); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font: 700 1.25rem var(--serif); color: var(--paper); }
.brand-copy small { color: var(--muted); font-size: .61rem; letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.source-badge { color: var(--muted); font-size: .72rem; border-inline-end: 1px solid var(--line); padding-inline-end: 20px; }
.toc-toggle { cursor: pointer; color: var(--paper); border: 0; background: transparent; display: flex; gap: 8px; align-items: center; font-size: .75rem; }
.toc-toggle span { color: var(--amber); font-size: 1.05rem; transition: transform .35s var(--ease); }
.toc-toggle:hover span { transform: translate(-3px, -3px); }
.progress-track { position: fixed; top: 0; right: 0; left: 0; z-index: 30; height: 2px; background: rgba(226,183,102,.12); }
.progress-track span { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 14px var(--amber); transition: width .12s linear; }
.hero { min-height: 790px; height: 100vh; max-height: 1000px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 52% 45%, #373023 0%, #171610 24%, var(--ink) 65%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 33%; background: linear-gradient(transparent, var(--ink)); }
.hero-content { position: relative; z-index: 2; width: min(760px, 90vw); text-align: center; padding-top: 60px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: var(--amber); font-size: .66rem; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 28px; }
.eyebrow-line { width: 30px; height: 1px; display: inline-block; background: var(--amber); opacity: .7; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 400 clamp(4.6rem, 11vw, 9.8rem)/.86 var(--serif); letter-spacing: -.06em; margin: 0; color: var(--paper); text-shadow: 0 10px 45px rgba(0,0,0,.35); }
h1 em, h2 em { color: var(--amber-bright); font-style: normal; }
h1 em { display: block; font-size: .35em; letter-spacing: .08em; margin-top: 24px; }
.hero-subtitle { max-width: 450px; margin: 36px auto 10px; font: 400 clamp(1.2rem, 2vw, 1.6rem)/1.55 var(--serif); color: var(--paper); }
.hero-intro { max-width: 490px; margin: 0 auto; color: var(--muted); font-size: .86rem; }
.begin-link { display: inline-flex; align-items: center; gap: 17px; margin-top: 42px; border-bottom: 1px solid var(--amber); padding: 0 0 8px; color: var(--amber-bright); font-size: .79rem; }
.begin-link b { font-size: 1.25rem; font-weight: 400; animation: float 2.1s ease-in-out infinite; }
.hero-light { position: absolute; z-index: 1; width: min(40vw, 430px); aspect-ratio: 1; border-radius: 50%; top: 22%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,228,157,.16) 0, rgba(226,183,102,.06) 30%, transparent 68%); filter: blur(2px); }
.light-core { position: absolute; inset: 40%; border-radius: 50%; background: #f9e5ad; box-shadow: 0 0 38px 15px rgba(226,183,102,.5), 0 0 120px 45px rgba(226,183,102,.22); animation: pulse 4.5s ease-in-out infinite; }
.light-ring { position: absolute; inset: 22%; border: 1px solid rgba(226,183,102,.25); border-radius: 50%; animation: breathe 7s ease-in-out infinite; }
.ring-b { inset: 8%; border-color: rgba(226,183,102,.10); animation-delay: -2s; }
.hero-orbit { position: absolute; border: 1px solid rgba(226,183,102,.12); border-radius: 50%; width: 90vw; max-width: 1100px; aspect-ratio: 1.9; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-12deg); }
.hero-orbit-two { width: 110vw; transform: translate(-50%, -50%) rotate(22deg); border-color: rgba(242,234,219,.055); }
.hero-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 7px var(--amber); opacity: .8; }
.hero-stars i:nth-child(1) { top: 22%; right: 23%; } .hero-stars i:nth-child(2) { top: 31%; left: 17%; width: 3px; height: 3px; } .hero-stars i:nth-child(3) { top: 16%; left: 43%; } .hero-stars i:nth-child(4) { top: 51%; right: 12%; } .hero-stars i:nth-child(5) { top: 67%; left: 14%; } .hero-stars i:nth-child(6) { top: 15%; right: 39%; }
.hero-caption { position: absolute; z-index: 3; right: clamp(20px, 5vw, 84px); bottom: 39px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .66rem; letter-spacing: .04em; }
.hero-caption > span:first-child { color: var(--amber); font-size: .8rem; } .caption-rule { display: inline-block; width: 70px; height: 1px; background: var(--line); }
.story-shell { display: grid; grid-template-columns: minmax(190px, 235px) minmax(0, 720px); gap: clamp(42px, 9vw, 150px); width: min(1220px, 90vw); margin: 0 auto; padding: 130px 0 180px; align-items: start; }
.story-nav { position: sticky; top: 116px; align-self: start; transition: opacity .3s ease; }
.nav-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-head strong { font-size: .76rem; font-weight: 500; color: var(--amber); }
.nav-line { height: 1px; background: var(--line); margin: 15px 0 17px; position: relative; } .nav-line span { position: absolute; right: 0; top: 0; width: 5%; height: 1px; background: var(--amber); transition: width .45s var(--ease); }
#chapter-list { display: grid; gap: 2px; max-height: 440px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-left: 4px; }
.chapter-link { display: flex; gap: 12px; align-items: center; color: var(--muted-2); border: 0; background: transparent; text-align: right; cursor: pointer; padding: 8px 0; font-size: .72rem; transition: color .25s ease, transform .25s ease; }
.chapter-link span { color: var(--muted-2); font-size: .61rem; min-width: 19px; } .chapter-link:hover { color: var(--paper); transform: translateX(-3px); } .chapter-link.is-active { color: var(--amber-bright); } .chapter-link.is-active span { color: var(--amber); }
.nav-note { margin: 33px 0 0; padding-top: 17px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font: 400 1.03rem/1.65 var(--serif); }
.story-column { min-width: 0; }
.scene { padding: 0 0 126px; position: relative; scroll-margin-top: 105px; }
.scene + .scene { padding-top: 98px; border-top: 1px solid var(--line-soft); }
.scene::before { content: ''; position: absolute; right: -44px; top: 100px; width: 8px; height: 8px; border: 1px solid var(--amber); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--ink), 0 0 20px rgba(226,183,102,.4); }
.scene-kicker { display: flex; align-items: center; gap: 13px; color: var(--amber); font-size: .69rem; letter-spacing: .14em; margin-bottom: 21px; }
.scene-kicker::after { content: ''; display: block; height: 1px; width: 60px; background: var(--line); }
.scene h2 { font: 400 clamp(2.3rem, 5vw, 4.3rem)/1.1 var(--serif); letter-spacing: -.03em; color: var(--paper); margin-bottom: 29px; }
.scene h2 em { font-style: normal; color: var(--amber-bright); }
.scene-lead { font: 400 1.26rem/1.95 var(--serif); color: var(--paper); margin-bottom: 25px; }
.scene-body { color: #c3b8a7; font-size: .94rem; line-height: 2.1; }
.scene-body p { margin-bottom: 18px; }
.scene-quote { border: 0; border-right: 2px solid var(--amber); padding: 11px 22px 11px 0; margin: 35px 0; color: var(--amber-bright); font: 400 1.45rem/1.8 var(--serif); }
.scene-quote cite { display: block; color: var(--muted-2); font: 400 .65rem/1.5 var(--sans); margin-top: 7px; }
.scene-info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); margin-top: 42px; padding-top: 19px; gap: 17px; }
.info-label { display: block; color: var(--amber); font-size: .61rem; letter-spacing: .08em; margin-bottom: 5px; } .info-value { display: block; color: var(--muted); font-size: .7rem; line-height: 1.7; }
.scene-light { position: absolute; right: -100px; top: 12px; width: 160px; height: 160px; opacity: 0; pointer-events: none; transition: opacity 1s ease; background: radial-gradient(circle, rgba(226,183,102,.18), transparent 67%); filter: blur(6px); }
.scene.is-visible .scene-light { opacity: 1; }
.epilogue { position: relative; overflow: hidden; background: var(--panel); padding: 150px 20px 170px; text-align: center; }
.epilogue::before, .epilogue::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 110px, rgba(226,183,102,.035) 111px 112px); opacity: .5; }
.epilogue::after { background: radial-gradient(circle at 50% 34%, rgba(226,183,102,.11), transparent 34%); }
.epilogue-inner { position: relative; z-index: 1; max-width: 950px; margin: auto; }
.epilogue h2, .sources h2 { font: 400 clamp(3rem, 7vw, 5.8rem)/1.05 var(--serif); margin: 0 0 25px; }
.epilogue-lead { max-width: 520px; margin: auto; color: var(--muted); font: 400 1.25rem/1.9 var(--serif); }
.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: right; margin-top: 75px; }
.lesson-grid article { border-top: 1px solid var(--line); padding-top: 15px; } .lesson-grid span { color: var(--amber); font-size: .66rem; } .lesson-grid h3 { color: var(--paper); font: 400 1.5rem var(--serif); margin: 10px 0 7px; } .lesson-grid p { color: var(--muted); font-size: .78rem; line-height: 1.9; }
.final-quote { max-width: 680px; margin: 85px auto 0; font: 400 1.7rem/1.8 var(--serif); color: var(--amber-bright); } .final-quote cite { display: block; color: var(--muted-2); font: 400 .68rem var(--sans); margin-top: 8px; }
.sources { width: min(1060px, 90vw); margin: 0 auto; padding: 150px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.sources h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); } .sources .eyebrow { justify-content: flex-start; } .source-copy { color: var(--muted); font-size: .92rem; line-height: 2.1; } .source-copy p { margin-bottom: 20px; }
.source-meta { border-top: 1px solid var(--line-soft); margin-top: 37px; padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .69rem; } .source-meta span { color: var(--muted-2); } .source-meta strong { color: var(--paper); font-weight: 500; }
.footer { border-top: 1px solid var(--line-soft); min-height: 120px; padding: 30px clamp(20px, 5vw, 84px); display: flex; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: .72rem; } .footer-brand .brand-copy strong { color: var(--muted); } .back-top { color: var(--amber); }
@keyframes pulse { 0%,100% { transform: scale(.75); opacity: .75; } 50% { transform: scale(1.25); opacity: 1; } } @keyframes breathe { 0%,100% { transform: scale(.9); opacity: .4; } 50% { transform: scale(1.1); opacity: .9; } } @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 900px) { .story-shell { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; } .story-nav { position: sticky; z-index: 12; top: 70px; background: rgba(13,13,11,.92); backdrop-filter: blur(10px); padding: 13px 0 9px; } #chapter-list { display: flex; overflow-x: auto; max-height: none; gap: 18px; padding: 4px 0 9px; } .chapter-link { white-space: nowrap; } .nav-note { display: none; } .scene::before { display: none; } .scene-light { right: -40px; } }
@media (max-width: 620px) { .topbar { height: 64px; padding-inline: 18px; } .source-badge { display: none; } .brand-copy strong { font-size: 1.1rem; } .hero { min-height: 700px; } .hero-content { padding-top: 20px; } .hero-caption { right: 18px; bottom: 24px; } .caption-rule { width: 35px; } .story-shell { width: min(100% - 36px, 720px); padding-bottom: 100px; } .story-nav { margin-inline: -18px; padding-inline: 18px; } .scene { padding-bottom: 84px; } .scene + .scene { padding-top: 68px; } .scene h2 { font-size: 2.6rem; } .scene-lead { font-size: 1.1rem; } .scene-body { font-size: .88rem; } .scene-info { grid-template-columns: 1fr; gap: 12px; } .lesson-grid { grid-template-columns: repeat(2, 1fr); margin-top: 54px; } .final-quote { font-size: 1.35rem; margin-top: 60px; } .epilogue { padding: 100px 18px; } .sources { width: min(100% - 36px, 720px); grid-template-columns: 1fr; gap: 38px; padding: 100px 0; } .footer { flex-wrap: wrap; gap: 16px; } .footer > p { width: 100%; order: 3; margin: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.toc-collapsed .story-nav { pointer-events: none; transform: translateX(10px); }
