:root {
  --ink: #0F1411;
  --ink-soft: #1C221E;
  --parchment: #F3ECDD;
  --parchment-light: #F8F3E7;
  --parchment-deep: #E8DFC8;
  --majlis: #0B3D2E;
  --majlis-deep: #072419;
  --gold: #BE9F5A;
  --gold-deep: #9E8344;
  --rust: #8B3A2F;
  --stone: #52504A;
  --line: rgba(15, 20, 17, 0.12);
  --line-strong: rgba(15, 20, 17, 0.28);
  --hair: 0.5px;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body: 'Lora', 'Georgia', serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --f-arabic-display: 'Amiri', serif;
  --f-arabic-body: 'Tajawal', sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body[dir="rtl"] {
  font-family: var(--f-arabic-body);
  letter-spacing: 0;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] .display {
  font-family: var(--f-arabic-display);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.display {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-variation-settings: 'SOFT' 30, 'opsz' 144;
}

.chapter-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.chapter-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
img { max-width: 100%; display: block; }

/* --- Nav --- */
nav.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 236, 221, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: var(--hair) solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
nav.topbar.hidden { transform: translateY(-100%); }

.monogram {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-display);
  font-variation-settings: 'SOFT' 40, 'opsz' 144;
}

.monogram-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--majlis);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--majlis);
  background: transparent;
  position: relative;
}
.monogram-mark::before,
.monogram-mark::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; border: 1px solid var(--gold);
}
.monogram-mark::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.monogram-mark::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.monogram-text {
  font-size: 15px; font-weight: 400; letter-spacing: 0.02em;
  display: none;
}
@media (min-width: 720px) { .monogram-text { display: block; } }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: flex; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent; border: none; cursor: pointer;
  padding: 0.5rem 0.75rem; color: var(--stone);
}
.lang-toggle span { padding: 0 0.5rem; transition: color 0.2s; }
.lang-toggle span.active { color: var(--ink); font-weight: 500; }
.lang-toggle .divider { width: 1px; height: 12px; background: var(--line-strong); }

.cta-compact {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: var(--majlis); color: var(--parchment-light);
  border: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-compact:hover { background: var(--majlis-deep); }

/* --- Hero --- */
section.masthead {
  padding: 9rem 0 5rem;
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) { section.masthead { padding: 12rem 0 7rem; } }

.masthead-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.masthead-label { margin-bottom: 2rem; }

.masthead h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: 'SOFT' 30, 'opsz' 144;
  color: var(--ink);
  margin-bottom: 2rem;
}
.masthead h1 .salutation {
  font-style: italic; font-weight: 300;
  color: var(--majlis);
  font-size: 0.5em;
  display: block; margin-bottom: 0.5rem;
  letter-spacing: 0;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
.masthead h1 .surname {
  color: var(--gold-deep);
  font-style: italic; font-weight: 300;
}

.masthead-role {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
  max-width: 640px; line-height: 1.9;
}

.masthead-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 3rem 0 2rem;
}

.masthead-statement {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 620px;
  font-variation-settings: 'SOFT' 80, 'opsz' 144;
}
body[dir="rtl"] .masthead-statement {
  font-style: normal; font-weight: 400; max-width: 720px;
}

.masthead-meta {
  margin-top: 3rem;
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
}
.masthead-meta .datum { display: flex; flex-direction: column; gap: 0.25rem; }
.masthead-meta .datum .num {
  font-family: var(--f-display); font-weight: 300;
  font-size: 2rem; line-height: 1;
  color: var(--majlis);
  font-variation-settings: 'SOFT' 40;
}
.masthead-meta .datum .lbl {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
}

.masthead-cta-row {
  margin-top: 3.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-outline {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.1rem 2rem;
  border: 1px solid var(--majlis);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: transparent;
}
.btn-primary { background: var(--majlis); color: var(--parchment-light); }
.btn-primary:hover { background: var(--majlis-deep); letter-spacing: 0.25em; }
.btn-outline { color: var(--majlis); }
.btn-outline:hover { background: var(--majlis); color: var(--parchment-light); }
.btn-primary::after, .btn-outline::after {
  content: '→'; font-family: var(--f-body); transition: transform 0.3s;
}
.btn-primary:hover::after, .btn-outline:hover::after { transform: translateX(4px); }
body[dir="rtl"] .btn-primary::after, body[dir="rtl"] .btn-outline::after { content: '←'; }
body[dir="rtl"] .btn-primary:hover::after, body[dir="rtl"] .btn-outline:hover::after { transform: translateX(-4px); }

/* Section base */
section.chapter {
  padding: 7rem 0;
  position: relative;
  border-top: var(--hair) solid var(--line);
}
@media (min-width: 900px) { section.chapter { padding: 9rem 0; } }

.chapter-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .chapter-head { grid-template-columns: 1fr 2fr; gap: 3rem; }
}

.chapter-head h2 {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1; letter-spacing: -0.025em;
  font-variation-settings: 'SOFT' 40, 'opsz' 144;
}
.chapter-head h2 em {
  font-style: italic; color: var(--majlis);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
.chapter-head .subhead {
  font-family: var(--f-body);
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--stone); max-width: 520px;
}

/* Record */
.record-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; margin-bottom: 5rem;
}
@media (min-width: 900px) {
  .record-grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; }
}

.record-narrative {
  font-family: var(--f-body);
  font-size: 1.125rem; line-height: 1.85;
  color: var(--ink-soft);
}
.record-narrative p + p { margin-top: 1.25rem; }
.record-narrative .dropcap::first-letter {
  font-family: var(--f-display); font-weight: 300;
  font-size: 4rem; line-height: 0.85; float: left;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--majlis);
  font-variation-settings: 'SOFT' 40;
}
body[dir="rtl"] .record-narrative .dropcap::first-letter {
  float: right; padding: 0.4rem 0 0 0.6rem;
}

.scorecard {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 2rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 600px) { .scorecard { grid-template-columns: repeat(4, 1fr); } }

.score { display: flex; flex-direction: column; gap: 0.35rem; }
.score .num {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1; color: var(--majlis);
  font-variation-settings: 'SOFT' 40;
  letter-spacing: -0.02em;
}
.score .num sup { font-size: 0.4em; vertical-align: super; color: var(--gold-deep); }
.score .lbl {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); line-height: 1.5;
}

.pullquote {
  margin: 5rem auto 0;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  max-width: 900px;
}
.pullquote .mark {
  font-family: var(--f-display); font-size: 4rem; line-height: 0.7;
  color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.pullquote blockquote {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 90, 'opsz' 144;
}
.pullquote cite {
  display: block; margin-top: 1.75rem;
  font-family: var(--f-mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone);
}
body[dir="rtl"] .pullquote blockquote { font-style: normal; }

/* Ledger */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--line-strong);
}
.ledger-item {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.ledger-item .year {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--gold-deep);
}
.ledger-item .name {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1rem; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.3;
  font-variation-settings: 'SOFT' 40;
}
.ledger-item .sector {
  font-family: var(--f-body);
  font-size: 0.8125rem; color: var(--stone); font-style: italic;
}

/* Majlis */
section#majlis {
  background: var(--majlis);
  color: var(--parchment-light);
  position: relative;
  overflow: hidden;
}
section#majlis .chapter-label { color: var(--gold); }
section#majlis .chapter-label::before { background: var(--gold); }
section#majlis h2 { color: var(--parchment-light); }
section#majlis h2 em { color: var(--gold); }
section#majlis .subhead { color: rgba(243, 236, 221, 0.75); }

.majlis-pattern {
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 800px; height: 800px;
  opacity: 0.06; pointer-events: none;
}
body[dir="rtl"] .majlis-pattern { right: auto; left: -200px; }

.majlis-definition {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35; letter-spacing: -0.01em;
  color: var(--gold);
  max-width: 780px; margin-bottom: 3.5rem;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
body[dir="rtl"] .majlis-definition { font-style: normal; }

.majlis-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem; align-items: start;
}
@media (min-width: 900px) { .majlis-grid { grid-template-columns: 1.2fr 1fr; gap: 6rem; } }

.majlis-prose {
  font-size: 1.0625rem; line-height: 1.85;
  color: rgba(243, 236, 221, 0.92);
}
.majlis-prose p + p { margin-top: 1.25rem; }

.majlis-what {
  margin-top: 3rem;
  border-top: 1px solid rgba(190, 159, 90, 0.25);
  padding-top: 2rem;
}
.majlis-what h4 {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.majlis-what ol { list-style: none; counter-reset: included; }
.majlis-what ol li {
  counter-increment: included;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid rgba(190, 159, 90, 0.15);
  position: relative;
  font-family: var(--f-body);
  font-size: 1rem; line-height: 1.6;
  color: rgba(243, 236, 221, 0.92);
}
body[dir="rtl"] .majlis-what ol li { padding: 1rem 3rem 1rem 0; }
.majlis-what ol li::before {
  content: counter(included, decimal-leading-zero);
  position: absolute; left: 0; top: 1rem;
  font-family: var(--f-mono);
  font-size: 12px; color: var(--gold); letter-spacing: 0.1em;
}
body[dir="rtl"] .majlis-what ol li::before { left: auto; right: 0; }

.next-session {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(190, 159, 90, 0.35);
  padding: 2.25rem;
  position: relative;
}
.next-session::before {
  content: 'NEXT SESSION';
  position: absolute; top: -10px; left: 1.5rem;
  background: var(--majlis); padding: 0 0.75rem;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold);
}
body[dir="rtl"] .next-session::before {
  content: 'الجلسة القادمة';
  left: auto; right: 1.5rem;
  letter-spacing: 0.1em;
}
.next-session .date {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 1rem;
}
.next-session .topic {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2; letter-spacing: -0.015em;
  color: var(--parchment-light); margin-bottom: 1rem;
  font-variation-settings: 'SOFT' 40, 'opsz' 144;
}
.next-session .topic em {
  font-style: italic; color: var(--gold);
  font-variation-settings: 'SOFT' 100;
}
.next-session .topic-desc {
  font-size: 0.9375rem; line-height: 1.7;
  color: rgba(243, 236, 221, 0.8);
  margin-bottom: 2rem;
}

.price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(190, 159, 90, 0.2);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.price {
  font-family: var(--f-display); font-weight: 300;
  font-size: 2.5rem; line-height: 1;
  color: var(--gold);
  font-variation-settings: 'SOFT' 40;
}
.price .unit {
  font-size: 0.9rem; color: rgba(243, 236, 221, 0.6);
  font-family: var(--f-mono); letter-spacing: 0.1em;
  margin-left: 0.25rem;
}
.price-note {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(243, 236, 221, 0.6);
}

.btn-gold {
  width: 100%;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.1rem 1.5rem;
  background: var(--gold); color: var(--majlis-deep);
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.btn-gold:hover { background: var(--parchment-light); letter-spacing: 0.26em; }

.upcoming { margin-top: 1.5rem; }
.upcoming-label {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(190, 159, 90, 0.7);
  margin-bottom: 0.75rem;
}
.upcoming-list {
  list-style: none;
  font-family: var(--f-body);
  font-size: 0.875rem; line-height: 1.9;
  color: rgba(243, 236, 221, 0.6);
}
.upcoming-list li {
  display: flex; gap: 1rem;
  border-bottom: 1px dashed rgba(190, 159, 90, 0.15);
  padding: 0.4rem 0;
}
.upcoming-list li .d {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--gold); flex-shrink: 0; width: 80px;
}

/* Council */
.council-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 900px) { .council-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.council-prose {
  font-size: 1.0625rem; line-height: 1.85;
  color: var(--ink-soft);
}
.council-prose p + p { margin-top: 1.25rem; }

.council-process {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem; margin-top: 2rem;
}
body[dir="rtl"] .council-process {
  border-left: none; border-right: 2px solid var(--gold);
  padding-left: 0; padding-right: 1.5rem;
}
.council-process h4 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1rem;
}
.council-process ol { list-style: none; counter-reset: pstep; }
.council-process ol li {
  counter-increment: pstep;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  font-family: var(--f-body);
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--ink-soft);
}
body[dir="rtl"] .council-process ol li { padding-left: 0; padding-right: 3rem; }
.council-process ol li::before {
  content: counter(pstep, decimal-leading-zero);
  position: absolute; left: 0; top: 0.75rem;
  font-family: var(--f-mono);
  font-size: 11px; color: var(--gold-deep); letter-spacing: 0.1em;
}
body[dir="rtl"] .council-process ol li::before { left: auto; right: 0; }

.council-card {
  background: var(--parchment-light);
  border: 1px solid var(--line-strong);
  padding: 2.25rem;
  position: sticky; top: 100px;
}
.council-card h4 {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.5rem; line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 60;
}
.council-card .fine {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.75rem;
}
.council-card .included {
  list-style: none; margin: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
}
.council-card .included li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9375rem; line-height: 1.5;
  color: var(--ink-soft);
}
.council-card .included li::before {
  content: '◆'; color: var(--gold);
  font-size: 0.6em; margin-top: 0.4em; flex-shrink: 0;
}
.council-card .price { color: var(--majlis); font-size: 3rem; }
.council-card .btn-primary { width: 100%; justify-content: center; }

/* Brief */
section#brief { background: var(--parchment-light); }

.brief-grid {
  display: grid; grid-template-columns: 1fr; gap: 4rem;
}
@media (min-width: 900px) { .brief-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }

.reflection { position: sticky; top: 100px; }
.reflection-stamp {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--stone);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  display: inline-block; margin-bottom: 2rem;
}
.reflection blockquote {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.35; letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  margin-bottom: 1.5rem;
}
body[dir="rtl"] .reflection blockquote {
  font-family: var(--f-arabic-display);
  font-style: normal;
}
.reflection .arabic-version {
  font-family: var(--f-arabic-display);
  font-size: 1.5rem; line-height: 1.8;
  color: var(--majlis);
  direction: rtl; text-align: right;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}
body[dir="rtl"] .reflection .arabic-version {
  font-family: var(--f-display);
  font-style: italic;
  direction: ltr; text-align: left;
  color: var(--gold-deep);
}
.reflection .signature {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-top: 2rem;
}

.gulf-brief { border-top: 2px solid var(--ink); padding-top: 1rem; }
.gb-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1rem; margin-bottom: 2rem;
  gap: 1rem; flex-wrap: wrap;
}
.gb-head .title {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1.5rem; letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 40;
}
.gb-head .date {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--stone);
}

.gb-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
}
@media (min-width: 700px) {
  .gb-item { grid-template-columns: 90px 1fr; gap: 1.5rem; }
}
.gb-item .tag {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); padding-top: 0.25rem;
}
.gb-item h3 {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.25rem; line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 0.5rem;
  font-variation-settings: 'SOFT' 40;
}
.gb-item p {
  font-size: 0.9375rem; line-height: 1.7;
  color: var(--ink-soft); margin-bottom: 0.75rem;
}
.gb-item .take {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  font-style: italic;
  color: var(--stone);
  font-size: 0.875rem; line-height: 1.6;
}
body[dir="rtl"] .gb-item .take {
  border-left: none; border-right: 2px solid var(--gold);
  padding-left: 0; padding-right: 1rem;
  font-style: normal;
}
.gb-item .take-label {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); font-style: normal;
  display: block; margin-bottom: 0.25rem;
}

.brief-subscribe {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--majlis);
  color: var(--parchment-light);
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; align-items: end;
}
@media (min-width: 700px) {
  .brief-subscribe { grid-template-columns: 1.3fr 1fr; gap: 2rem; }
}
.brief-subscribe h3 {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.625rem; line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-variation-settings: 'SOFT' 60;
}
.brief-subscribe p {
  font-size: 0.875rem; line-height: 1.6;
  color: rgba(243, 236, 221, 0.75);
}

.sub-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sub-form input {
  padding: 0.9rem 1rem;
  background: transparent;
  border: 1px solid rgba(190, 159, 90, 0.5);
  color: var(--parchment-light);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  outline: none; transition: border-color 0.2s;
}
.sub-form input:focus { border-color: var(--gold); }
.sub-form input::placeholder { color: rgba(243, 236, 221, 0.45); }

/* Book */
section#book { background: var(--parchment); }
.book-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 900px) { .book-inner { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }

.book-cover {
  aspect-ratio: 2/3; max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(180deg, #12261E 0%, #0B3D2E 50%, #072419 100%);
  position: relative; overflow: hidden;
  box-shadow: 2px 0 0 rgba(11, 61, 46, 0.4),
              4px 0 0 rgba(11, 61, 46, 0.3),
              8px 12px 40px rgba(15, 20, 17, 0.35);
  padding: 2.25rem 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--parchment-light);
  border: 1px solid rgba(190, 159, 90, 0.5);
}
.book-cover::before {
  content: ''; position: absolute; inset: 0.75rem;
  border: 1px solid rgba(190, 159, 90, 0.3);
  pointer-events: none;
}
.book-cover .bc-label {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.book-cover .bc-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--parchment-light);
  font-variation-settings: 'SOFT' 40, 'opsz' 144;
}
.book-cover .bc-title em {
  font-style: italic; color: var(--gold);
  font-variation-settings: 'SOFT' 100;
}
.book-cover .bc-sub {
  font-family: var(--f-body); font-style: italic;
  font-size: 0.875rem; color: rgba(243, 236, 221, 0.7);
  margin-top: 0.75rem; line-height: 1.4;
}
.book-cover .bc-author {
  font-family: var(--f-display);
  font-size: 1rem; letter-spacing: 0.02em;
  color: var(--gold);
  font-variation-settings: 'SOFT' 40;
}
.book-cover .bc-ornament {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  opacity: 0.12; color: var(--gold);
}

.book-prose h4 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.25rem;
}
.book-prose .book-tagline {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 2rem;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
body[dir="rtl"] .book-prose .book-tagline { font-style: normal; }
.book-prose p {
  font-size: 1rem; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 1.25rem;
}

.book-register {
  display: flex; gap: 0.75rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.book-register input {
  flex: 1; min-width: 200px;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--parchment-light);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 0.9375rem; outline: none;
}
.book-register input:focus { border-color: var(--majlis); }

/* Network */
.network-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 900px) { .network-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

.endorsement {
  border-top: 1px solid var(--line-strong);
  padding: 2rem 0;
}
.endorsement blockquote {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink); margin-bottom: 1.5rem;
  font-variation-settings: 'SOFT' 90, 'opsz' 144;
}
body[dir="rtl"] .endorsement blockquote { font-style: normal; }

.endorsement .endorser { display: flex; flex-direction: column; gap: 0.25rem; }
.endorsement .endorser .name {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1rem; letter-spacing: -0.005em;
}
.endorsement .endorser .role {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
}

.trusted {
  margin-top: 5rem; padding: 3rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.trusted-label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone);
  text-align: center; margin-bottom: 2rem;
}
.trusted-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 3rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-variation-settings: 'SOFT' 40;
}
.trusted-grid span {
  opacity: 0.8; transition: opacity 0.2s;
  padding: 0.25rem 0; white-space: nowrap;
}
.trusted-grid span:hover { opacity: 1; }
.trusted-grid .dot { color: var(--gold); opacity: 0.5; font-size: 0.8em; }

/* Footer */
footer {
  background: var(--ink);
  color: var(--parchment-light);
  padding: 5rem var(--gutter) 2.5rem;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(243, 236, 221, 0.12);
}
@media (min-width: 700px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col .statement {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: 1.125rem; line-height: 1.4;
  color: var(--parchment-light);
  font-variation-settings: 'SOFT' 80, 'opsz' 144;
  max-width: 280px; margin-bottom: 1.5rem;
}
body[dir="rtl"] .footer-col .statement { font-style: normal; }
.footer-col ul {
  list-style: none;
  font-size: 0.875rem; line-height: 2;
  color: rgba(243, 236, 221, 0.72);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(243, 236, 221, 0.5);
}

/* Floating Ask */
.ask-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
}
body[dir="rtl"] .ask-float { right: auto; left: 1.5rem; }

.ask-bubble {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.3rem;
  background: var(--ink);
  color: var(--parchment-light);
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(15, 20, 17, 0.3);
  transition: all 0.3s ease;
}
.ask-bubble:hover {
  background: var(--majlis);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(15, 20, 17, 0.42);
}

.ask-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(190, 159, 90, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(190, 159, 90, 0); }
}

.ask-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: 100%; max-width: 480px;
  height: 100%; max-height: 720px;
  background: var(--parchment-light);
  border-left: 1px solid var(--line-strong);
  box-shadow: -10px 0 40px rgba(15, 20, 17, 0.2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 110;
}
body[dir="rtl"] .ask-panel {
  right: auto; left: 0;
  border-left: none; border-right: 1px solid var(--line-strong);
  transform: translateX(-100%);
  box-shadow: 10px 0 40px rgba(15, 20, 17, 0.2);
}
.ask-panel.open { transform: translateX(0); }

@media (min-width: 600px) {
  .ask-panel {
    bottom: 1.5rem; right: 1.5rem;
    height: calc(100vh - 3rem);
    max-height: 680px;
    border: 1px solid var(--line-strong);
    width: 420px; max-width: 92vw;
  }
  body[dir="rtl"] .ask-panel {
    right: auto; left: 1.5rem;
    border: 1px solid var(--line-strong);
  }
}

.ask-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--majlis);
  color: var(--parchment-light);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ask-head-text h4 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.2;
  font-variation-settings: 'SOFT' 40;
}
.ask-head-text p {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.25rem;
}
.ask-close {
  background: transparent; border: none;
  color: var(--parchment-light);
  font-size: 1.5rem; cursor: pointer;
  padding: 0.25rem 0.5rem; line-height: 1;
}

.ask-body {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--parchment-light);
}
.ask-intro {
  padding: 1.25rem;
  background: var(--parchment);
  border: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.ask-intro strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.5rem;
}
.ask-msg {
  font-size: 0.9375rem; line-height: 1.65;
  max-width: 88%;
  padding: 0.85rem 1.1rem;
}
.ask-msg.user {
  align-self: flex-end;
  background: var(--ink); color: var(--parchment-light);
  font-family: var(--f-body);
}
.ask-msg.rashid {
  align-self: flex-start;
  background: transparent;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  font-family: var(--f-body);
  font-size: 0.9375rem; line-height: 1.7;
}
body[dir="rtl"] .ask-msg.rashid {
  border-left: none; border-right: 2px solid var(--gold);
  padding-left: 0; padding-right: 1rem;
}
.ask-msg.rashid .sender {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.4rem;
  display: block;
}
.ask-msg.rashid .typing {
  display: inline-flex; gap: 4px; padding: 0.25rem 0;
}
.ask-msg.rashid .typing span {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
.ask-msg.rashid .typing span:nth-child(2) { animation-delay: 0.2s; }
.ask-msg.rashid .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.ask-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--parchment);
  display: flex; gap: 0.5rem; align-items: end;
}
.ask-foot textarea {
  flex: 1;
  padding: 0.75rem 0.9rem;
  background: var(--parchment-light);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 0.9375rem; line-height: 1.4;
  resize: none; outline: none;
  min-height: 44px; max-height: 120px;
  transition: border-color 0.2s;
}
.ask-foot textarea:focus { border-color: var(--majlis); }
.ask-send {
  background: var(--majlis); color: var(--parchment-light);
  border: none; padding: 0 1rem; min-height: 44px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.2s;
}
.ask-send:hover { background: var(--majlis-deep); }
.ask-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modal */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(15, 20, 17, 0.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
}
.modal-scrim.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--parchment-light);
  max-width: 520px; width: 100%;
  padding: 2.5rem;
  border: 1px solid var(--gold);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
.modal-scrim.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--stone); line-height: 1;
  padding: 0.25rem 0.5rem;
}
body[dir="rtl"] .modal-close { right: auto; left: 1rem; }

.modal h3 {
  font-family: var(--f-display); font-weight: 300;
  font-size: 2rem; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-variation-settings: 'SOFT' 40;
}
.modal h3 em {
  font-style: italic; color: var(--majlis);
  font-variation-settings: 'SOFT' 100;
}
.modal .modal-sub {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem; margin-top: 1rem;
}
.modal input, .modal textarea, .modal select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--parchment);
  font-family: var(--f-body);
  font-size: 0.9375rem; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--majlis); }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.modal .summary {
  margin-top: 1.5rem; padding: 1rem;
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  font-size: 0.875rem; line-height: 1.6;
  color: var(--ink-soft);
}
body[dir="rtl"] .modal .summary { border-left: none; border-right: 3px solid var(--gold); }
.modal .summary strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.35rem;
}

.payment-methods {
  margin-top: 1.5rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.payment-methods .pm {
  flex: 1; min-width: 130px;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  background: var(--parchment); color: var(--stone);
}
.payment-methods .pm.selected {
  background: var(--majlis);
  color: var(--parchment-light);
  border-color: var(--majlis);
}

.modal-cta {
  width: 100%; margin-top: 1.5rem;
  padding: 1.15rem 1.5rem;
  background: var(--majlis);
  color: var(--parchment-light);
  border: none;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.modal-cta:hover { background: var(--majlis-deep); letter-spacing: 0.26em; }

.modal-success { text-align: center; padding: 2rem 0; }
.modal-success .check {
  width: 60px; height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold); font-size: 1.5rem;
}
.modal-success h4 {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.75rem; line-height: 1.2;
  margin-bottom: 1rem;
  font-variation-settings: 'SOFT' 60;
}
.modal-success p {
  color: var(--ink-soft);
  font-size: 0.9375rem; line-height: 1.7;
  max-width: 360px; margin: 0 auto;
}

/* Reveals */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Language visibility */
[data-ar] { display: none; }
body[dir="rtl"] [data-en] { display: none; }
body[dir="rtl"] [data-ar] { display: inline; }
body[dir="rtl"] div[data-ar],
body[dir="rtl"] p[data-ar],
body[dir="rtl"] h1[data-ar],
body[dir="rtl"] h2[data-ar],
body[dir="rtl"] h3[data-ar],
body[dir="rtl"] h4[data-ar],
body[dir="rtl"] blockquote[data-ar] { display: block; }
body[dir="rtl"] li[data-ar] { display: list-item; }

body[dir="rtl"] .scorecard .score .num,
body[dir="rtl"] .masthead-meta .num,
body[dir="rtl"] .price {
  font-family: var(--f-display);
}

@media (max-width: 500px) {
  .masthead h1 { font-size: 3rem; }
  .chapter-head h2 { font-size: 2rem; }
  .pullquote blockquote { font-size: 1.125rem; }
  .next-session { padding: 1.75rem 1.25rem; }
  .modal { padding: 1.75rem 1.25rem; }
}

@supports (padding: max(0px)) {
  nav.topbar {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  footer { padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
}

/* ============================================================
   UPGRADE: Language Picker, Manifesto, Principles, Signature
   ============================================================ */

/* Language dropdown */
.lang-wrap {
  position: relative;
  display: inline-block;
}
.lang-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all 0.2s ease;
}
.lang-picker:hover { border-color: var(--majlis); background: rgba(11, 61, 46, 0.03); }
.lang-globe { font-size: 14px; color: var(--gold); line-height: 1; }
.lang-caret { font-size: 9px; color: var(--stone); line-height: 1; }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--parchment-light);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(15, 20, 17, 0.15);
  min-width: 180px;
  list-style: none;
  margin: 0; padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 120;
  max-height: 420px;
  overflow-y: auto;
}
body[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.lang-menu li:last-child { border-bottom: none; }
.lang-menu li:hover { background: var(--parchment); }
.lang-menu .lm-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  flex-shrink: 0;
  min-width: 28px;
}
.lang-menu .lm-native {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  font-variation-settings: 'SOFT' 50;
}

/* Language-specific font family overrides */
body[data-lang="zh"] { font-family: 'Noto Sans SC', 'Lora', serif; }
body[data-lang="zh"] h1, body[data-lang="zh"] h2, body[data-lang="zh"] h3 {
  font-family: 'Noto Sans SC', 'Fraunces', serif;
  font-weight: 500;
}
body[data-lang="bn"] { font-family: 'Noto Sans Bengali', 'Lora', serif; }
body[data-lang="bn"] h1, body[data-lang="bn"] h2, body[data-lang="bn"] h3 {
  font-family: 'Noto Sans Bengali', 'Fraunces', serif;
  font-weight: 500;
}
body[data-lang="hi"] { font-family: 'Noto Sans Devanagari', 'Lora', serif; }
body[data-lang="hi"] h1, body[data-lang="hi"] h2, body[data-lang="hi"] h3 {
  font-family: 'Noto Sans Devanagari', 'Fraunces', serif;
  font-weight: 500;
}
body[data-lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; line-height: 2; }
body[data-lang="ur"] h1, body[data-lang="ur"] h2, body[data-lang="ur"] h3 {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 500;
  line-height: 1.8;
}

/* Masthead ornament */
.masthead-ornament {
  position: absolute;
  top: 7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  opacity: 0;
  animation: ornFadeIn 1.6s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes ornFadeIn { to { opacity: 1; } }
.masthead-ornament svg { display: block; width: 100%; height: auto; }
.masthead-ornament .orn-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ornDraw 1.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ornDraw { to { stroke-dashoffset: 0; } }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.7;
}
.scroll-hint .hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* Section dividers */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 0;
  position: relative;
  z-index: 2;
}
.section-divider svg {
  width: 280px;
  height: 20px;
  opacity: 0.7;
}

/* Narrow container for editorial sections */
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Chapter head centered (for manifesto/principles) */
.chapter-head-centered {
  text-align: center;
  margin-bottom: 4rem;
}
.chapter-head-centered .chapter-label {
  display: inline-flex;
  margin-bottom: 2rem;
}
.chapter-head-centered .chapter-label::before {
  display: none;
}
.chapter-head-centered .chapter-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-left: 0.75rem;
}
.chapter-head-centered .chapter-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-right: 0.75rem;
}
.chapter-head-centered h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  color: var(--majlis);
  margin-bottom: 1.5rem;
}
.chapter-head-centered .subhead {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--stone);
  font-variation-settings: 'SOFT' 80, 'opsz' 144;
  max-width: 560px;
  margin: 0 auto;
}

/* Manifesto section */
section.manifesto {
  background: var(--parchment-light);
  padding: 7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { section.manifesto { padding: 9rem 0; } }

.manifesto-body {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.9;
  color: var(--ink);
}
.manifesto-body p + p { margin-top: 1.5rem; }
.manifesto-body .dropcap::first-letter {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 5rem;
  line-height: 0.85;
  float: left;
  padding: 0.4rem 0.8rem 0 0;
  color: var(--gold-deep);
  font-variation-settings: 'SOFT' 100;
}
body[dir="rtl"] .manifesto-body .dropcap::first-letter {
  float: right; padding: 0.4rem 0 0 0.8rem;
}

/* Signature block */
.signature-block {
  margin-top: 4rem;
  text-align: right;
}
body[dir="rtl"] .signature-block { text-align: left; }

.signature-script {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3.25rem, 7vw, 4.5rem);
  line-height: 0.9;
  color: var(--majlis);
  letter-spacing: 0.02em;
  display: inline-block;
  transform: rotate(-3deg);
  padding-right: 1rem;
}
.signature-line {
  width: 180px;
  height: 1px;
  background: var(--line-strong);
  margin: 0.75rem 0 0.75rem auto;
}
body[dir="rtl"] .signature-line { margin-right: 0; margin-left: auto; }
.signature-caption {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Nine Principles */
section.principles {
  padding: 7rem 0;
  background: var(--parchment);
}
@media (min-width: 900px) { section.principles { padding: 9rem 0; } }

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 700px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line-strong);
  }
}
@media (min-width: 1000px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  background: var(--parchment-light);
  transition: background 0.4s ease;
}
.principle:hover { background: var(--parchment-deep); }
.principle:last-child { border-right: none; }
@media (min-width: 700px) {
  .principle:nth-child(2n) { border-right: none; }
}
@media (min-width: 1000px) {
  .principle:nth-child(2n) { border-right: 1px solid var(--line); }
  .principle:nth-child(3n) { border-right: none; }
}

.principle .p-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-variation-settings: 'SOFT' 100;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.principle h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 40;
  margin-bottom: 0.5rem;
}
.principle p {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--stone);
}

/* Ledger title helper class */
.ledger-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 3rem 0 0;
}

/* Next session ribbon */
.ns-ribbon {
  position: absolute;
  top: -10px; left: 1.5rem;
  background: var(--majlis);
  padding: 0 0.75rem;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
body[dir="rtl"] .ns-ribbon { left: auto; right: 1.5rem; }

.next-session { position: relative; }
.next-session::before { display: none; } /* remove old ::before label since we now have .ns-ribbon */

/* Subject to availability helper */
.subject-avail {
  margin-top: 0.5rem;
  color: var(--stone);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.council-cta { margin-top: 1.75rem; }

/* Footer location */
.footer-location {
  color: rgba(243, 236, 221, 0.5);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Closing section */
section.closing {
  background: var(--parchment);
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.signature-script.big {
  font-size: clamp(4.5rem, 10vw, 7rem);
  color: var(--majlis);
  transform: rotate(-2deg);
  padding: 0;
  opacity: 0.92;
}
.closing-line {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--stone);
  max-width: 520px;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

/* ============================================================
   Hide old binary-lang leftover nodes (.arabic-version gone)
   ============================================================ */
.arabic-version { display: none !important; }

/* Respect user's reduced-motion preference on animated ornaments */
@media (prefers-reduced-motion: reduce) {
  .masthead-ornament { opacity: 1; animation: none; }
  .masthead-ornament .orn-line { stroke-dashoffset: 0; animation: none; }
  .scroll-hint .hint-line { animation: none; }
}

/* ============================================================
   PATCH: nav upgrade, tighter spacing, performance
   ============================================================ */

/* Horizontal nav links (desktop) */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--majlis); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile burger */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  margin-left: 0.25rem;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
}
@media (min-width: 980px) { .nav-burger { display: none; } }

/* Hide the desktop compact CTA on small screens (overlay has its own) */
@media (max-width: 600px) {
  .cta-compact { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav ul a {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  color: var(--majlis);
  text-decoration: none;
  line-height: 1.1;
}
.mobile-nav ul a:hover { color: var(--gold-deep); }

.mobile-nav-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mobile-nav-close:hover { border-color: var(--majlis); color: var(--majlis); }

.mobile-reserve {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: var(--majlis);
  color: var(--parchment-light);
  border: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

body.nav-open { overflow: hidden; }

/* ============================================================
   TIGHTEN VERTICAL SPACING — remove excess whitespace
   ============================================================ */
section.chapter {
  padding: 4rem 0 !important;
}
@media (min-width: 900px) {
  section.chapter { padding: 5.5rem 0 !important; }
}

section.manifesto {
  padding: 4rem 0 !important;
}
@media (min-width: 900px) {
  section.manifesto { padding: 6rem 0 !important; }
}

section.principles {
  padding: 4rem 0 !important;
}
@media (min-width: 900px) {
  section.principles { padding: 6rem 0 !important; }
}

.chapter-head, .chapter-head-centered {
  margin-bottom: 2.5rem !important;
}
@media (min-width: 900px) {
  .chapter-head, .chapter-head-centered { margin-bottom: 3.25rem !important; }
}

/* Tighter masthead */
.masthead {
  min-height: auto;
  padding: 5rem 0 3rem !important;
}
@media (min-width: 900px) {
  .masthead { padding: 7rem 0 5rem !important; }
}

.masthead-divider { margin: 1.5rem 0 !important; }

.masthead-meta {
  margin: 1.75rem 0 !important;
  gap: 2rem !important;
}

.masthead-cta-row {
  margin-top: 2rem !important;
}

.section-divider {
  padding: 1.5rem 0 0 !important;
}

/* Brief subscribe card — tighten */
.brief-subscribe {
  margin-top: 1.5rem;
}

/* Closing section spacing */
section.closing {
  padding: 4rem 0 !important;
}
@media (min-width: 900px) {
  section.closing { padding: 5rem 0 !important; }
}

/* ============================================================
   PERFORMANCE — lighten animations and heavy effects
   ============================================================ */
/* Make the grain overlay lighter / optional */
.grain {
  opacity: 0.04;
  /* was 0.08 — lighter, less GPU work */
}

/* Stop the continuous scroll-hint pulse — one animation only */
.scroll-hint .hint-line {
  animation: hintPulse 3s ease-in-out 2;  /* only 2 cycles, not infinite */
}

/* Disable masthead ornament continuous animation — draws once then static */
.masthead-ornament {
  animation-fill-mode: forwards !important;
}

/* On smaller screens, kill decorative animations entirely */
@media (max-width: 700px) {
  .masthead-ornament .orn-line { animation: none !important; stroke-dashoffset: 0 !important; }
  .masthead-ornament { opacity: 1 !important; animation: none !important; }
  .scroll-hint { display: none; }
  .majlis-pattern { display: none; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .grain { opacity: 0 !important; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* Ensure nav links hide smoothly on smaller desktop */
@media (max-width: 979px) {
  .nav-links { display: none !important; }
}

/* ============================================================
   PRIVATE DESK — card accent
   ============================================================ */
.desk-card {
  position: relative;
  border: 1px solid var(--gold) !important;
  background: linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment) 100%);
}
.desk-card::before {
  content: 'BY INVITATION';
  position: absolute;
  top: -11px;
  left: 1.5rem;
  background: var(--majlis);
  color: var(--gold);
  padding: 0 0.85rem;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  line-height: 22px;
}

/* Also a subtle background for the whole Private Desk section */
section.private-desk {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-light) 100%);
}
