:root {
  --black: #0a0a0b;
  --black-soft: #131211;
  --charcoal: #1c1a17;
  --gold: #d4af37;
  --gold-light: #f4d77d;
  --gold-deep: #9c7a21;
  --cream: #f5f1e6;
  --white: #fffdf8;
  --line: rgba(212, 175, 55, 0.22);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Jost', 'Poppins', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--gold); color: var(--black); }

h1, h2, h3, h4, .display {
  font-family: 'Marcellus', 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.arabic {
  font-family: 'Amiri', serif;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  overflow: hidden;
  transition: color 0.5s var(--ease), letter-spacing 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  transform: translateY(102%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--black); letter-spacing: 0.24em; }
.btn:hover::before { transform: translateY(0); }

.btn-solid {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #120d00;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-solid::before { background: var(--black); }
.btn-solid:hover { color: var(--gold-light); }

.btn-ghost { border-color: rgba(245, 241, 230, 0.35); color: var(--cream); }
.btn-ghost::before { background: var(--cream); }
.btn-ghost:hover { color: var(--black); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.loader-ring {
  position: relative;
  width: 130px;
  height: 130px;
  transition: opacity 0.5s var(--ease);
}
.loader-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle {
  fill: none;
  stroke-width: 1;
}
.ring-track { stroke: rgba(212,175,55,0.14); }
.ring-progress {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  stroke-dasharray: 345;
  stroke-dashoffset: 345;
  transition: stroke-dashoffset 0.2s linear;
}
.loader-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-mark img { width: 52px; height: 52px; object-fit: contain; animation: spin-slow 12s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.loader-word {
  font-family: 'Marcellus', serif;
  font-size: 13px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  display: flex;
  transition: opacity 0.5s var(--ease);
}
.loader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: letter-in 0.6s var(--ease) forwards;
}
@keyframes letter-in { to { opacity: 1; transform: translateY(0); } }

.loader-count {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  transition: opacity 0.5s var(--ease);
}

#preloader.ayah-active .loader-ring,
#preloader.ayah-active .loader-word,
#preloader.ayah-active .loader-count {
  opacity: 0;
  pointer-events: none;
}

#ayahAudio { display: none; }

.enter-gate {
  margin-top: 4px;
  max-width: 88vw;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(212,175,55,0.4);
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  animation: gate-pulse 1.8s ease-in-out infinite;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.4s var(--ease);
}
@media (max-width: 420px) {
  .enter-gate { font-size: 9.5px; letter-spacing: 0.1em; padding: 12px 16px; }
}
.enter-gate:hover { border-color: var(--gold); color: var(--gold); }
@keyframes gate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.35); }
  50% { box-shadow: 0 0 0 9px rgba(212,175,55,0); }
}
#preloader.started .enter-gate { opacity: 0; pointer-events: none; }

.ayah-phase {
  max-width: 680px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
#preloader.ayah-active .ayah-phase {
  opacity: 1;
  transform: translateY(-16vh);
}

.ayah-text {
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.6;
  text-align: center;
  color: var(--cream);
}
.ayah-chunk {
  display: block;
  text-align: center;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  filter: blur(4px);
  transition: max-height 0.9s var(--ease), margin-bottom 0.9s var(--ease),
              opacity 0.7s var(--ease) 0.2s, filter 0.7s var(--ease) 0.2s;
}
.ayah-chunk.in {
  max-height: 130px;
  margin-bottom: 26px;
  opacity: 1;
  filter: blur(0);
}
.ayah-chunk.in:last-child { margin-bottom: 0; }
.ayah-chunk.gold { color: var(--gold-light); }

.preloader-controls {
  position: absolute;
  bottom: 34px;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.preloader-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold-light);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
  pointer-events: none;
}
#preloader.ayah-active .preloader-btn {
  opacity: 1;
  pointer-events: auto;
}
.preloader-btn:hover { border-color: var(--gold); color: var(--gold); }
#muteBtn {
  width: 42px; height: 42px;
  border-radius: 50%;
}
#muteBtn svg { width: 17px; height: 17px; position: absolute; transition: opacity 0.3s var(--ease); }
#muteBtn .icon-muted { opacity: 0; }
#muteBtn[aria-pressed="true"] .icon-sound { opacity: 0; }
#muteBtn[aria-pressed="true"] .icon-muted { opacity: 1; }
.preloader-skip {
  padding: 0 18px;
  height: 42px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .preloader-controls { bottom: 22px; right: 22px; }
  .ayah-text { line-height: 2.1; }
}

body.loading { overflow: hidden; }
body:not(.loading) #preloader { display: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: 'Marcellus', serif; font-size: 20px; letter-spacing: 0.12em; }
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.82;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 11px 24px; font-size: 11px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 501; padding: 14px 10px; margin: -14px -10px; border: 0; background: none; color: inherit; -webkit-appearance: none; appearance: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.nav-toggle span { width: 24px; height: 1px; background: var(--gold-light); transition: 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: min(72vw, 320px); height: 100vh;
    background: var(--black-soft);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 48px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 500;
  }
  .nav-links.open { transform: translateX(0); display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212,175,55,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(212,175,55,0.08), transparent 55%),
    var(--black);
  z-index: -2;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; transform: translateY(100%); opacity: 0; }
.hero-fade { opacity: 0; transform: translateY(18px); }
.hero-sub {
  max-width: 460px;
  font-size: 17px;
  color: rgba(245, 241, 230, 0.72);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; }
.hero-stats > div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats .num { font-family: 'Marcellus', serif; font-size: 30px; color: var(--gold-light); }
.hero-stats .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }

.hero-orb {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb .ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-orb .ring1 { inset: 0; animation: rotate-cw 40s linear infinite; }
.hero-orb .ring2 { inset: 12%; animation: rotate-ccw 30s linear infinite; border-style: dashed; opacity: 0.5; }
.hero-orb .ring3 { inset: 24%; animation: rotate-cw 22s linear infinite; }
@keyframes rotate-cw { to { transform: rotate(360deg); } }
@keyframes rotate-ccw { to { transform: rotate(-360deg); } }
.hero-orb .core {
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(244,215,125,0.35), rgba(212,175,55,0.05) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(212,175,55,0.18);
}
.hero-orb .core img { width: 58%; }
.hero-orb .dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-light);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.5);
}
.scroll-cue .stick { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue .stick::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold-light);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 50% { top: 100%; } 100% { top: 100%; } }

/* ---------- Section shared ---------- */
section { position: relative; padding: 140px 0; }
.section-head { max-width: 640px; margin-bottom: 70px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(32px, 4vw, 48px); }
.section-sub { margin-top: 18px; color: rgba(245,241,230,0.68); font-size: 16px; }

.reveal.js-armed { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.js-armed.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: 0.1s; }
.reveal-delay-2.in { transition-delay: 0.2s; }
.reveal-delay-3.in { transition-delay: 0.3s; }

.divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 auto 26px;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mission-card {
  background: var(--black-soft);
  padding: 48px 36px;
  transition: background 0.4s var(--ease);
}
.mission-card:hover { background: var(--charcoal); }
.mission-icon {
  width: 52px; height: 52px;
  margin-bottom: 26px;
}
.mission-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--gold-light); }
.mission-card p { font-size: 14.5px; color: rgba(245,241,230,0.68); }

/* ---------- Books ---------- */
.books-section { background: var(--black-soft); }
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.book-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.book-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.book-cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.book-cover img { width: 100%; transition: transform 0.6s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-age { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.book-card h3 { font-size: 24px; margin-bottom: 12px; }
.book-card-logo { height: 40px; width: auto; margin-bottom: 14px; }
.book-card p { font-size: 14px; color: rgba(245,241,230,0.65); margin-bottom: 22px; }
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.book-link:hover { border-color: var(--gold); gap: 16px; }

.book-link-external {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.book-link-external::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  transform: translateY(102%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.book-link-external span { color: var(--gold); font-size: 13px; transition: color 0.4s var(--ease), transform 0.4s var(--ease); }
.book-link-external:hover { border-color: var(--gold); color: var(--black); }
.book-link-external:hover::before { transform: translateY(0); }
.book-link-external:hover span { color: var(--black); transform: translate(2px, -2px); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px; left: 10%; right: 10%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: 0.4;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Marcellus', serif;
  font-size: 20px;
  color: var(--gold-light);
  background: var(--black);
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 19px; margin-bottom: 12px; }
.step p { font-size: 14px; color: rgba(245,241,230,0.65); max-width: 260px; margin: 0 auto; }

/* ---------- Sponsorship ---------- */
.sponsor-section {
  background: linear-gradient(180deg, var(--black-soft), var(--black));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sponsor-visual {
  position: relative;
  border: 1px solid var(--line);
  padding: 46px;
  background: var(--black);
}
.sponsor-progress-label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,241,230,0.6); margin-bottom: 12px; }
.sponsor-bar { height: 6px; background: rgba(212,175,55,0.12); overflow: hidden; margin-bottom: 30px; }
.sponsor-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transition: width 1.4s var(--ease);
}
.sponsor-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sponsor-tier { border: 1px solid var(--line); padding: 20px; text-align: center; }
.sponsor-tier .n { font-family: 'Marcellus', serif; font-size: 26px; color: var(--gold-light); }
.sponsor-tier .l { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-top: 6px; }
.sponsor-copy p { color: rgba(245,241,230,0.7); margin-bottom: 28px; }
.sponsor-copy ul { list-style: none; margin-bottom: 34px; }
.sponsor-copy li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: rgba(245,241,230,0.78);
}
.sponsor-copy li::before { content: "—"; color: var(--gold); }

/* ---------- Contact ---------- */
.contact-section { background: var(--black-soft); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.contact-info p { color: rgba(245,241,230,0.68); margin-bottom: 34px; }
.contact-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line .k { width: 90px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.contact-line .v { font-size: 14.5px; color: rgba(245,241,230,0.85); }
.social-row { display: flex; gap: 16px; margin-top: 34px; }
.social-row a {
  width: 42px; height: 42px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.social-row a:hover { border-color: var(--gold); transform: translateY(-4px); }
.social-row a { color: var(--gold); }
.social-row a:hover { color: var(--gold-light); }
.social-row svg { width: 19px; height: 19px; }
html[lang="ar"] .social-row a[href] { display: flex; }   /* not the inline layout Arabic pages give email links (css/ar.css) */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.35s var(--ease);
}
.field select option { background: var(--black); }
.field textarea { resize: none; height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field label {
  position: absolute; left: 2px; top: 14px;
  font-size: 14px; color: rgba(245,241,230,0.45);
  pointer-events: none;
  transition: 0.3s var(--ease);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
  top: -8px; font-size: 11px; letter-spacing: 0.08em; color: var(--gold);
}
.field.select-field label { top: -8px; font-size: 11px; letter-spacing: 0.08em; color: var(--gold); }
.contact-form .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: 'Marcellus', serif; font-size: 20px; margin-bottom: 16px; }
.footer-brand img { width: 30px; }
.footer-about p { font-size: 13.5px; color: rgba(245,241,230,0.6); max-width: 280px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13.5px; color: rgba(245,241,230,0.65); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: rgba(245,241,230,0.45);
}

/* ---------- Nav dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--black-soft);
  border: 1px solid var(--line);
  min-width: 200px;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.78;
}
.nav-drop-menu a:hover { opacity: 1; color: var(--gold-light); }
.nav-links a.active { opacity: 1; color: var(--gold-light); }
.nav-links a.active::after { width: 100%; }
@media (max-width: 1100px) {
  .nav-links { overflow-y: auto; gap: 24px; }
  /* books submenu sits inline under "The Books" instead of floating over the list */
  .nav-drop-menu,
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 14px;
    padding: 0 0 0 16px;
    background: none;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-drop-menu a { padding: 8px 0; }
}

/* ---------- Marquee ticker ---------- */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: 'Marcellus', serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: rgba(245,241,230,0.5);
  padding: 0 28px;
}
.marquee-item.gold { color: var(--gold-light); }
.marquee-item .sep { color: var(--gold); font-size: 14px; opacity: 0.7; }
.marquee-item.marquee-logo { padding: 0 30px; }
.marquee-item.marquee-logo img { height: 34px; width: auto; display: block; opacity: 0.92; filter: drop-shadow(0 0 10px rgba(212,175,55,0.15)); }

/* ---------- Image treatments ---------- */
.framed-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.framed-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.framed-img:hover img { transform: scale(1.05); }
.framed-img::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(212,175,55,0.5);
  z-index: 2;
  pointer-events: none;
}
.framed-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,0.55));
  z-index: 1;
  pointer-events: none;
}

/* ---------- Stats / counters ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-cell {
  background: var(--black);
  padding: 44px 24px;
  text-align: center;
}
.stat-cell .num {
  font-family: 'Marcellus', serif;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--gold-light);
}
.stat-cell .label {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.6);
}

/* ---------- Story / split with image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img { aspect-ratio: 4/5; }
.split-copy p { color: rgba(245,241,230,0.7); margin-bottom: 18px; }
.split-copy .btn { margin-top: 14px; }

/* ---------- Team ---------- */
.team-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.team-featured .team-card { padding: 34px; }
.team-featured .team-photo { max-width: 260px; margin: 8px auto 30px; border-radius: 50%; isolation: isolate; outline: 1px solid rgba(212, 175, 55, 0.45); outline-offset: 7px; transition: outline-color 0.4s var(--ease); }
.team-featured .team-card:hover .team-photo { outline-color: var(--gold); }
.team-featured h3 { font-size: 23px; }
.team-featured .role { font-size: 12.5px; }
.team-featured .bio { font-size: 14px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-grid .team-card { padding: 18px; }
.team-grid .team-photo { margin-bottom: 16px; }
.team-grid h3 { font-size: 15px; }
.team-grid .role { font-size: 10px; margin-bottom: 10px; }
.team-grid .divider { margin-bottom: 12px; }
.team-grid .bio { font-size: 12px; }
.team-card {
  border: 1px solid var(--line);
  padding: 22px;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
a.team-photo { display: block; }
.team-card h3 a:hover { color: var(--gold-light); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.06); }
.team-card:hover { border-color: var(--gold); }
.team-card h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.3; }
.team-card .role { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.team-card .divider { width: 32px; margin: 0 auto 16px; opacity: 0.7; }
.team-card p.bio { font-size: 13px; color: rgba(245,241,230,0.62); line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 10px;
}
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g2 { grid-column: span 2; grid-row: span 1; }
.gallery-grid .g3 { grid-column: span 1; grid-row: span 1; }
.gallery-grid .g4 { grid-column: span 1; grid-row: span 1; }
.gallery-grid .g5 { grid-column: span 2; grid-row: span 1; }
.gallery-grid .framed-img { height: 100%; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 70px;
  overflow: hidden;
}
.page-hero .hero-bg-img {
  position: absolute; inset: 0;
  z-index: -2;
}
.page-hero .hero-bg-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-bg-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.75) 55%, var(--black) 100%);
}
.page-hero .breadcrumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.page-hero .breadcrumb a { opacity: 0.7; }
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero h1 { font-size: clamp(36px, 5vw, 62px); max-width: 780px; }
.page-hero p { margin-top: 18px; max-width: 560px; color: rgba(245,241,230,0.75); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 4px;
  cursor: pointer;
  font-family: 'Marcellus', serif;
  font-size: 18px;
}
.faq-q .plus { color: var(--gold); font-size: 20px; transition: transform 0.35s var(--ease); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  font-size: 14.5px;
  color: rgba(245,241,230,0.68);
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 26px; }

/* ---------- Process steps (sponsor/order pages) ---------- */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.process-row .pn { font-family: 'Marcellus', serif; font-size: 32px; color: var(--gold); opacity: 0.7; }
.process-row h3 { font-size: 19px; margin-bottom: 8px; }
.process-row p { font-size: 14px; color: rgba(245,241,230,0.65); max-width: 520px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card { border: 1px solid var(--line); padding: 32px 28px; }
.testi-card .quote-mark { font-family: 'Marcellus', serif; font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 12px; display: block; }
.testi-card p.quote { font-size: 14.5px; color: rgba(245,241,230,0.78); margin-bottom: 22px; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-person .name { font-size: 13.5px; color: var(--cream); }
.testi-person .role { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Book detail pages ---------- */
.book-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.book-hero-cover { max-width: 320px; margin: 0 auto; aspect-ratio: 5 / 7; }
.book-hero-cover img { box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7); background: var(--black-soft); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); }
.feature-item .fi-num { font-family: 'Marcellus', serif; color: var(--gold); font-size: 22px; opacity: 0.75; }
.feature-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: rgba(245,241,230,0.62); }
.book-cta-band {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--gold);
  padding: 40px 48px;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--charcoal);
}
.book-cta-band h3 { font-size: 24px; }
.book-cta-band p { color: rgba(245,241,230,0.68); margin-top: 6px; }

/* ---------- Scholars video ticker ---------- */
.scholars-section { background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 60px; }
.scholars-section + section { padding-top: 60px; }
.scholars-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.scholars-head .section-head { margin-bottom: 0; }
.ticker-nav { display: flex; gap: 12px; }
.ticker-nav button {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ticker-nav button:hover { border-color: var(--gold); transform: translateY(-2px); }
.ticker-nav svg { width: 18px; height: 18px; }

.scholar-ticker {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scholar-ticker::-webkit-scrollbar { display: none; }

.scholar-card {
  position: relative;
  flex: 0 0 340px;
  aspect-ratio: 16/11;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}
.scholar-card:hover { border-color: var(--gold); }
.scholar-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.65);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.scholar-card:hover img { transform: scale(1.06); filter: grayscale(0) brightness(0.55); }
.scholar-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.85) 100%);
  z-index: 1;
}
.scholar-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(10,10,11,0.7);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.scholar-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(10,10,11,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.scholar-card:hover .scholar-play { transform: translate(-50%, -50%) scale(1.12); background: var(--gold); }
.scholar-play svg { width: 20px; height: 20px; fill: var(--gold-light); margin-left: 3px; transition: fill 0.3s var(--ease); }
.scholar-card:hover .scholar-play svg { fill: var(--black); }
.scholar-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.scholar-caption h4 { font-size: 17px; color: var(--cream); margin-bottom: 4px; }
.scholar-caption .speaker { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Mobile book ticker (replaces the rotating orb on phones/tablets) ---------- */
.mobile-book-ticker {
  display: none;
  overflow: hidden;
  margin: 0 -22px;
  padding: 16px 0 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.mbt-track { display: flex; width: max-content; animation: mbt-scroll 22s linear infinite; will-change: transform; }
.mobile-book-ticker:hover .mbt-track, .mobile-book-ticker:active .mbt-track { animation-play-state: paused; }
@keyframes mbt-scroll { to { transform: translateX(-50%); } }
.mbt-slide {
  position: relative;
  flex: 0 0 auto;
  width: 118px;
  margin-right: 12px;                 /* margin (not gap) keeps the two halves exactly equal for a seamless loop */
  padding: 6px 6px 9px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #191611, #0c0b09);
  text-align: center;
  color: var(--cream);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.9);
}
.mbt-slide::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mbt-cover { display: block; aspect-ratio: 1 / 1.414; overflow: hidden; background: #fff; border: 1px solid rgba(212, 175, 55, 0.18); }
.mbt-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mbt-label { display: block; margin-top: 8px; }
.mbt-label b { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: 11.5px; letter-spacing: 0.02em; white-space: nowrap; }
.mbt-label small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .mobile-book-ticker { margin: 0; -webkit-mask-image: none; mask-image: none; }
  .mbt-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .mbt-slide { margin-right: 0; transform: none !important; }
  .mbt-slide[aria-hidden="true"] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-orb { display: none; }
  .mobile-book-ticker { display: block; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 28px; }
  .mission-grid, .books-grid, .steps,
  .team-grid, .testi-grid, .stats-band, .feature-list { grid-template-columns: 1fr 1fr; }
  .team-featured { grid-template-columns: 1fr; }
  .mission-grid { border: none; background: none; }
  .mission-card { border: 1px solid var(--line); margin-bottom: -1px; }
  .steps::before { display: none; }
  .sponsor-grid, .contact-grid, .split, .book-hero { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-img { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-grid .g1, .gallery-grid .g2, .gallery-grid .g5 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  section { padding: 90px 0; }
  .form-grid, .footer-top { grid-template-columns: 1fr; }
  .sponsor-tiers, .books-grid, .team-grid, .testi-grid,
  .stats-band, .feature-list, .mission-grid, .team-featured { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .marquee-item { font-size: 16px; padding: 0 18px; }
  .process-row { grid-template-columns: 46px 1fr; gap: 16px; }
  .book-cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .book-cta-band .btn { width: 100%; justify-content: center; }
  .scholar-card { flex-basis: 78vw; }
  .scholars-head { align-items: flex-start; }
  .ticker-nav { display: none; }
}

/* ---------- Book card perks (Read / Evaluate / Certificate / Prizes) ---------- */
.book-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.book-perks .perk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(212,175,55,0.04);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.8);
  white-space: nowrap;
}
.book-perks .perk svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--gold); }
@media (max-width: 420px) {
  .book-perks .perk { font-size: 9.5px; letter-spacing: 0.04em; padding: 8px; gap: 6px; }
}

/* ---------- Approved by scholars ---------- */
.approved-section { background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approved-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.approved-card {
  border: 1px solid var(--line);
  padding: 22px 14px 20px;
  text-align: center;
  background: var(--black);
  transition: border-color 0.4s var(--ease);
}
.approved-card:hover { border-color: var(--gold); }
.approved-photo {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.approved-photo img { width: 100%; height: 100%; object-fit: cover; }
.approved-card h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.3; }
.approved-role { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
@media (max-width: 980px) { .approved-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .approved-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .approved-card { padding: 18px 10px; } }

/* ---------- Team cards: compact on tablet/mobile ---------- */
@media (max-width: 980px) {
  .team-featured .team-card { padding: 26px 22px; }
  .team-featured .team-photo { max-width: 190px; }
  .team-grid .team-photo { max-width: 120px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .team-featured { gap: 12px; margin-bottom: 12px; }
  .team-featured .team-card { padding: 20px 16px; }
  .team-featured .team-photo { max-width: 132px; margin: 6px auto 20px; outline-offset: 5px; }
  .team-featured h3 { font-size: 19px; }
  .team-featured .bio { font-size: 12.5px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-grid .team-card { padding: 16px 10px; }
  .team-grid .team-photo { max-width: 76px; border-radius: 50%; margin-bottom: 12px; }
  .team-grid h3 { font-size: 14px; }
  .team-grid .role { font-size: 9.5px; letter-spacing: 0.08em; margin-bottom: 8px; }
  .team-grid .divider { margin-bottom: 8px; }
  .team-grid .bio { font-size: 11.5px; line-height: 1.5; }
  .team-card .divider { width: 26px; }
}

/* ---------- How It Works: stack the 3 steps on tablet/mobile ---------- */
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
}

/* =====================================================================
   Reservation page (order.html)
   ===================================================================== */
.reserve-section { padding-top: 90px; }
.reserve-wrap { max-width: 920px; }

.reserve-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-bottom: 64px;
}
.reserve-facts .fact { background: var(--black); padding: 26px 14px; text-align: center; }
.reserve-facts .num { font-family: 'Marcellus', serif; font-size: clamp(28px, 5vw, 40px); color: var(--gold-light); line-height: 1.1; }
.reserve-facts .label { margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,241,230,0.6); }

.step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.step-head .step-no { font-family: 'Marcellus', serif; font-size: 20px; color: var(--gold); opacity: 0.85; }
.step-head h2 { font-size: clamp(22px, 3.4vw, 30px); }

/* three books side by side, on phones too */
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick-card { position: relative; display: block; cursor: pointer; }
.pick-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-inner {
  position: relative; display: block; height: 100%;
  border: 1px solid var(--line); padding: 14px 14px 18px; text-align: center;
  background: var(--black-soft);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pick-inner img { width: 100%; aspect-ratio: 5/7; object-fit: cover; margin-bottom: 14px; box-shadow: 0 18px 30px -16px rgba(0,0,0,0.7); }
.pick-name { display: block; font-family: 'Marcellus', serif; font-size: 17px; line-height: 1.25; margin-bottom: 8px; }
.pick-grade { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.pick-card:hover .pick-inner { border-color: rgba(212,175,55,0.6); transform: translateY(-4px); }
.pick-card input:checked + .pick-inner { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -20px rgba(212,175,55,0.45); background: var(--charcoal); }
.pick-card input:focus-visible + .pick-inner { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.pick-check {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10,10,11,0.7); border: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pick-check::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px;
  border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.pick-card input:checked + .pick-inner .pick-check { background: var(--gold); border-color: var(--gold); }
.pick-card input:checked + .pick-inner .pick-check::after { transform: rotate(45deg) scale(1); }

.details-panel { margin-top: 64px; opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.details-panel[hidden] { display: none; }
.details-panel.open { opacity: 1; transform: none; }
.details-lead { color: rgba(245,241,230,0.7); margin: -8px 0 30px; font-size: 15px; }

.reserve-grid { gap: 30px 26px; }
.field[hidden] { display: none; }
.field-error { display: block; margin-top: 6px; font-size: 12px; color: #e8927f; }
.field-error:empty { display: none; }
.field.invalid input, .field.invalid .cselect-btn { border-bottom-color: #e8927f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* our own dropdown */
.cselect { position: relative; }
.cselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 14px 2px; color: rgba(245,241,230,0.5); font-family: 'Jost', sans-serif; font-size: 14px;
  text-align: left; cursor: pointer; transition: border-color 0.35s var(--ease);
}
.cselect.has-value .cselect-btn { color: var(--cream); }
.cselect-btn:hover, .cselect-btn:focus-visible, .cselect.open .cselect-btn { border-color: var(--gold); outline: none; }
.cselect-btn svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; transition: transform 0.3s var(--ease); }
.cselect.open .cselect-btn svg { transform: rotate(180deg); }
.cselect-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 268px; overflow-y: auto; list-style: none;
  background: var(--black-soft); border: 1px solid rgba(212,175,55,0.45);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  animation: dd-in 0.22s var(--ease);
}
.cselect-list[hidden] { display: none; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cselect-list li {
  position: relative; padding: 13px 44px 13px 18px; font-size: 14px; color: rgba(245,241,230,0.82);
  cursor: pointer; outline: none; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cselect-list li.active, .cselect-list li:hover { background: rgba(212,175,55,0.1); color: var(--gold-light); }
.cselect-list li[aria-selected="true"] { color: var(--gold); }
.cselect-list li[aria-selected="true"]::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 5px; height: 10px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg);
}

.reserve-note { margin: 34px 0 18px; color: rgba(245,241,230,0.72); font-size: 14.5px; }
.id-note {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 26px;
  border: 1px solid rgba(212,175,55,0.4); background: rgba(212,175,55,0.06);
}
.id-note svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--gold); margin-top: 2px; }
.id-note p { font-size: 14px; color: var(--cream); line-height: 1.6; }

.confirm { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 14px; color: rgba(245,241,230,0.85); line-height: 1.55; }
.confirm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.confirm-box { position: relative; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--gold); transition: background 0.25s var(--ease); }
.confirm-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px; border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); }
.confirm input:checked + .confirm-box { background: var(--gold); }
.confirm input:checked + .confirm-box::after { transform: rotate(45deg) scale(1); }
.confirm input:focus-visible + .confirm-box { outline: 2px solid var(--gold-light); outline-offset: 3px; }
#confirmError { margin: 8px 0 0 36px; }

.reserve-submit { margin-top: 30px; min-width: 260px; justify-content: center; }
.reserve-submit:disabled { opacity: 0.6; cursor: progress; }
.form-error { margin-top: 16px; font-size: 13.5px; color: #e8927f; }
.form-error:empty { display: none; }
.form-error.ok { color: var(--gold-light); }

.success-panel { text-align: center; padding: 70px 24px; border: 1px solid var(--gold); background: var(--charcoal); }
.success-panel[hidden] { display: none; }
.success-panel svg { width: 72px; height: 72px; margin: 0 auto 24px; color: var(--gold); }
.success-panel h2 { margin-bottom: 16px; }
.success-panel p { max-width: 520px; margin: 0 auto 14px; color: rgba(245,241,230,0.8); }
.success-panel .success-id { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; }

@media (max-width: 560px) {
  .reserve-section { padding-top: 60px; }
  .reserve-facts { margin-bottom: 46px; }
  .reserve-facts .fact { padding: 20px 8px; }
  .reserve-facts .label { font-size: 9.5px; letter-spacing: 0.06em; }
  .pick-grid { gap: 8px; }
  .pick-inner { padding: 8px 8px 12px; }
  .pick-inner img { margin-bottom: 10px; }
  .pick-name { font-size: 12.5px; margin-bottom: 6px; }
  .pick-grade { font-size: 9px; letter-spacing: 0.05em; }
  .pick-check { top: 14px; right: 14px; width: 22px; height: 22px; }
  .pick-check::after { left: 6px; top: 3px; width: 5px; height: 9px; }
  .details-panel { margin-top: 46px; }
  .reserve-submit { width: 100%; }
}

/* =====================================================================
   Home page: "Reserve your book" panel
   ===================================================================== */
.reserve-panel {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center;
  border: 1px solid var(--line); padding: 60px 56px;
  background: radial-gradient(ellipse at 90% 10%, rgba(212,175,55,0.1), transparent 55%), var(--black-soft);
}
.reserve-panel .section-title { margin-bottom: 18px; }
.reserve-panel p.lead { color: rgba(245,241,230,0.72); margin-bottom: 30px; max-width: 520px; }
.reserve-stats { display: flex; gap: 34px; margin-bottom: 36px; flex-wrap: wrap; }
.reserve-stats > div { border-left: 1px solid var(--line); padding-left: 16px; }
.reserve-stats .num { font-family: 'Marcellus', serif; font-size: 32px; color: var(--gold-light); line-height: 1.1; }
.reserve-stats .label { margin-top: 4px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,241,230,0.6); max-width: 130px; }
.reserve-steps { list-style: none; counter-reset: rs; display: grid; gap: 10px; margin-bottom: 34px; }
.reserve-steps li { counter-increment: rs; display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; color: rgba(245,241,230,0.82); }
.reserve-steps li::before { content: "0" counter(rs); font-family: 'Marcellus', serif; color: var(--gold); font-size: 15px; }
.reserve-covers { position: relative; height: 340px; }
.reserve-covers img {
  position: absolute; width: 46%; aspect-ratio: 5/7; object-fit: cover;
  border: 1px solid rgba(212,175,55,0.4); box-shadow: 0 30px 50px -18px rgba(0,0,0,0.85);
  transition: transform 0.6s var(--ease);
}
.reserve-covers img:nth-child(1) { left: 0; top: 34px; transform: rotate(-8deg); z-index: 1; }
.reserve-covers img:nth-child(2) { left: 27%; top: 0; z-index: 3; }
.reserve-covers img:nth-child(3) { right: 0; top: 34px; transform: rotate(8deg); z-index: 2; }
.reserve-panel:hover .reserve-covers img:nth-child(1) { transform: rotate(-11deg) translateX(-8px); }
.reserve-panel:hover .reserve-covers img:nth-child(3) { transform: rotate(11deg) translateX(8px); }
@media (max-width: 980px) {
  .reserve-panel { grid-template-columns: 1fr; padding: 44px 30px; gap: 40px; }
  .reserve-covers { height: 300px; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .reserve-panel { padding: 34px 20px; }
  .reserve-stats { gap: 22px; }
  .reserve-covers { height: 230px; }
}

.cselect-list { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.5) transparent; }
.cselect-list::-webkit-scrollbar { width: 6px; }
.cselect-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.45); }
.cselect-list::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 560px) {
  .reserve-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .reserve-stats > div { padding-left: 10px; }
  .reserve-stats .num { font-size: 26px; }
  .reserve-stats .label { font-size: 9px; letter-spacing: 0.06em; max-width: none; }
}

@media (max-width: 980px) {
  .reserve-covers { height: auto; aspect-ratio: 1 / 0.84; }
}

/* ---------- Volunteer page ---------- */
.volunteer-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 64px; }
.volunteer-ways .way { background: var(--black); padding: 28px 24px; }
.volunteer-ways h3 { font-size: 17px; color: var(--gold-light); margin-bottom: 10px; }
.volunteer-ways p { font-size: 14px; color: rgba(245,241,230,0.72); }
@media (max-width: 760px) { .volunteer-ways { grid-template-columns: 1fr; margin-bottom: 46px; } }

/* narrow phones: keep brand + Reserve + menu button on one row */
.nav-brand, .nav-cta .btn { white-space: nowrap; }
.nav-brand, .nav-cta { min-width: 0; }
@media (max-width: 560px) {
  .nav-brand { font-size: 16px; letter-spacing: 0.08em; gap: 8px; }
  .nav-brand img { width: 28px; height: 28px; }
  .nav-cta { gap: 12px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 10px; letter-spacing: 0.1em; }
}
@media (max-width: 380px) {
  .nav-brand { font-size: 14px; letter-spacing: 0.04em; }
  .nav-cta .btn { padding: 8px 10px; font-size: 9.5px; }
}

/* ---------- Next-stop strip ---------- */
.next-stop { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--black-soft); transition: background 0.3s var(--ease); }
.next-stop:hover { background: var(--charcoal); }
.next-stop-inner { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 15px; padding-bottom: 15px; flex-wrap: wrap; text-align: center; font-size: 13.5px; letter-spacing: 0.06em; }
.ns-tag { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--black); background: linear-gradient(120deg, var(--gold-light), var(--gold)); padding: 5px 12px; }
.ns-city { font-family: 'Marcellus', serif; font-size: 19px; color: var(--gold-light); letter-spacing: 0.08em; }
.ns-dates, .ns-text { color: rgba(245,241,230,0.8); }
.ns-go { color: var(--gold); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 560px) { .next-stop-inner { gap: 8px 14px; font-size: 12.5px; } .ns-go { width: 100%; } }

/* ---------- Campaign city tracker ---------- */
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 50px; }
.city-card { border: 1px solid var(--line); background: var(--black-soft); padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.city-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.city-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.city-card h3 { font-size: 20px; letter-spacing: 0.04em; }
.city-pill { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line); color: rgba(245,241,230,0.7); }
.city-card[data-status="live"] { border-color: var(--gold); }
.city-card[data-status="live"] .city-pill { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: var(--black); border-color: transparent; }
.city-card[data-status="done"] { opacity: 0.6; }
.city-card[data-status="done"] .city-pill { color: var(--gold); border-color: var(--gold-deep); }
.city-dates { font-size: 13px; color: var(--gold-light); }
.city-dates.muted { color: rgba(245,241,230,0.5); }
.city-books[hidden] { display: none; }
.city-books { list-style: none; display: grid; gap: 9px; margin-top: 2px; }
.city-books li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 8px; font-size: 11.5px; }
.city-books .bk { color: rgba(245,241,230,0.7); }
.city-books .bar { grid-column: 1 / -1; grid-row: 2; height: 3px; background: rgba(245,241,230,0.12); overflow: hidden; }
.city-books .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: width 1s var(--ease); }
.city-books .left { color: var(--gold-light); text-align: right; }
.city-books li.full .left { color: #e8927f; }
.cities-cta { text-align: center; margin-top: 44px; }
@media (max-width: 1100px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .city-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 36px; } .city-card { padding: 16px 14px; } }


/* ---------- Quiz + certificate ---------- */
.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 54px; align-items: start; }

.certificate { position: relative; text-align: center; padding: 38px 30px 30px; background: linear-gradient(160deg, #1a1710, #0e0d0b); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px var(--black), inset 0 0 0 7px var(--line), 0 30px 60px -30px rgba(0,0,0,0.8); }
.cert-ribbon { position: absolute; top: 14px; right: -1px; background: var(--gold); color: var(--black); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 14px; }
.cert-logo { width: 46px; height: 46px; margin: 0 auto 12px; }
.cert-kicker { font-family: 'Marcellus', serif; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.cert-line { font-size: 12.5px; letter-spacing: 0.06em; color: rgba(245,241,230,0.7); line-height: 1.7; }
.cert-name { font-family: 'Amiri', serif; font-style: italic; font-size: 34px; color: var(--cream); margin: 8px 0 12px; border-bottom: 1px solid var(--line); display: inline-block; padding: 0 28px 4px; }
.cert-sign { margin-top: 26px; display: flex; justify-content: center; }
.cert-sign span { border-top: 1px solid var(--gold); padding-top: 6px; min-width: 140px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.prize-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px 22px; border: 1px solid var(--line); background: var(--black-soft); }
.prize-note svg { flex: 0 0 34px; width: 34px; height: 34px; color: var(--gold); }
.prize-note h4 { font-size: 17px; margin-bottom: 4px; color: var(--gold-light); }
.prize-note p { font-size: 14px; color: rgba(245,241,230,0.75); }
@media (max-width: 900px) { .rewards-grid { margin-top: 40px; } }

/* ---------- Book page: look inside ---------- */
.peek-section { padding: 90px 0; }
.peek-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
/* real book pages: white paper on the dark site, lifted on hover, tap to zoom */
.peek-page { position: relative; flex: 0 0 min(280px, 70vw); scroll-snap-align: start; padding: 0; border: 0; background: #fff; cursor: zoom-in; border-radius: 3px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.25); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.peek-page:hover, .peek-page:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.6), 0 0 34px rgba(212, 175, 55, 0.18); }
.peek-page img { width: 100%; height: auto; display: block; }
.peek-zoom { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 12, 10, 0.78); color: var(--gold-light); font-size: 16px; opacity: 0; transition: opacity 0.3s; }
.peek-page:hover .peek-zoom, .peek-page:focus-visible .peek-zoom { opacity: 1; }
@media (hover: none) { .peek-zoom { opacity: 0.9; } }
.peek-track { padding: 10px 4px 22px; }
.peek-view { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, 0.94); display: none; place-items: center; }
.peek-view[open] { display: grid; }
.peek-view::backdrop { background: rgba(0, 0, 0, 0.7); }
.pv-img { max-width: min(92vw, 620px); max-height: 86dvh; width: auto; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.pv-close, .pv-nav { position: fixed; border: 1px solid var(--line); background: rgba(13, 12, 10, 0.8); color: var(--gold-light); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.pv-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.pv-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 30px; line-height: 1; }
.pv-prev { left: 16px; } .pv-next { right: 16px; }
.pv-count { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.18em; color: rgba(245, 241, 230, 0.7); }
@media (max-width: 560px) { .pv-nav { top: auto; bottom: 10px; margin-top: 0; } .pv-count { bottom: 26px; } }
/* home ticker: small inside-page cards between the words */
.marquee-item { flex-shrink: 0; }
.marquee-item img { max-width: none; }
.marquee-item.marquee-page { padding: 0 14px; }
.marquee-page img { height: 52px; width: auto; display: block; background: #fff; border-radius: 2px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.35); transform: rotate(-4deg); }
.marquee-page.tilt img { transform: rotate(3deg); }
.peek .ticker-nav { margin-top: 22px; }
@media (max-width: 760px) { .peek-section { padding: 60px 0; } }

/* ---------- Home: campaign moments + press ---------- */
.moments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.moments-grid .framed-img { aspect-ratio: 4 / 3; }
.moments-grid .framed-img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.press { margin-top: 60px; }
.press-list { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.press-list a { display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: color 0.3s, padding 0.3s var(--ease); }
.press-list a:hover { color: var(--gold-light); padding-left: 12px; }
.press-list .po { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.press-list .pa { color: var(--gold); }
@media (max-width: 760px) { .moments-grid { grid-template-columns: repeat(2, 1fr); } .moments-grid .framed-img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } .press-list a { grid-template-columns: 1fr auto; } .press-list .po { grid-column: 1 / -1; } }

/* ---------- Reserve page: closed cities + FAQ ---------- */
.cselect-list li.is-disabled { opacity: 0.45; cursor: not-allowed; }
.cselect-list li.is-disabled:hover { background: none; color: inherit; }
.cselect-list li em { float: right; font-style: normal; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.faq-link { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.reserve-faq { padding-top: 60px; }

/* ---------- Reservation ticket ---------- */
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; text-align: left; max-width: 640px; margin: 26px auto 22px; padding: 28px; border: 1px solid var(--gold); background: var(--black); position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--charcoal); border: 1px solid var(--gold); transform: translateY(-50%); }
.ticket::before { left: -10px; }
.ticket::after { right: -10px; }
.ticket-brand { display: flex; align-items: center; gap: 10px; font-family: 'Marcellus', serif; font-size: 18px; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 16px; flex-wrap: wrap; }
.ticket-brand img { width: 30px; height: 30px; }
.ticket-brand span { width: 100%; font-family: 'Jost', sans-serif; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,241,230,0.55); }
.ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.ticket-fields dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.ticket-fields dd { font-size: 15px; color: var(--cream); word-break: break-word; }
.ticket-note { margin-top: 18px; font-size: 12.5px; color: rgba(245,241,230,0.65); }
.ticket-qr { text-align: center; }
.ticket-qr #ticketQr { width: 150px; height: 150px; padding: 8px; background: #fff; }
.ticket-qr #ticketQr svg { width: 100%; height: 100%; display: block; }
.ticket-qr span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,241,230,0.55); }
.ticket-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.ticket-help { font-size: 13px !important; color: rgba(245,241,230,0.6) !important; margin-bottom: 28px !important; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; padding: 22px 18px; }
  .ticket-qr { order: -1; }
  .ticket::before, .ticket::after { display: none; }
}
@media print {
  body * { visibility: hidden; }
  #ticket, #ticket * { visibility: visible; }
  #ticket { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; background: #fff; border: 2px solid #000; }
  #ticket::before, #ticket::after { display: none; }
  #ticket .ticket-brand, #ticket .ticket-fields dt, #ticket .ticket-qr span { color: #444; }
  #ticket .ticket-fields dd, #ticket .ticket-note { color: #000; }
}

/* ---------- Public gallery + lightbox ---------- */
.gallery-page { padding-top: 70px; }
.gal-filters { display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.gal-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.gal-chip { font: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.gal-chip b { font-weight: 400; opacity: .6; margin-left: 6px; }
.gal-chip:hover { border-color: var(--gold); }
.gal-chip.active { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: var(--black); border-color: transparent; }
.gal-chip.active b { opacity: .7; }
.gal-city { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,241,230,0.65); }
.gal-city select { font: inherit; font-size: 14px; color: var(--cream); background: var(--black-soft); border: 1px solid var(--line); padding: 10px 14px; min-width: 160px; }
.gal-grid-pub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gal-item { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--charcoal); }
.gal-item[hidden] { display: none; }
.gal-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; color: inherit; font: inherit; text-align: left; }
.gal-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.82), transparent); display: grid; gap: 3px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.gal-cap b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 17px; }
.gal-cap small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.gal-open:hover .gal-cap, .gal-open:focus-visible .gal-cap { opacity: 1; transform: none; }
.gal-open:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -3px; }
.gal-home .gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-empty, .empty-note { text-align: center; padding: 70px 20px; color: rgba(245,241,230,0.7); }
.empty-note .btn { margin-top: 24px; }
@media (hover: none) { .gal-cap { opacity: 1; transform: none; padding-top: 30px; } .gal-cap small { display: none; } }
@media (max-width: 700px) {
  .gallery-page { padding-top: 46px; }
  .gal-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 0 24px 6px; width: calc(100% + 48px); scrollbar-width: none; }
  .gal-chips::-webkit-scrollbar { display: none; }
  .gal-chip { flex: 0 0 auto; white-space: nowrap; }
  .gal-city { width: 100%; } .gal-city select { flex: 1; }
  .gal-grid-pub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal-home .gal-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 5, 3, .97); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 20px 10px; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: 74vh; object-fit: contain; display: block; }
.lb-fig figcaption { display: grid; gap: 6px; text-align: center; max-width: 720px; color: var(--cream); }
.lb-fig figcaption b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 20px; }
.lb-fig figcaption span:empty { display: none; }
.lb-fig figcaption span { font-size: 14px; color: rgba(245,241,230,.82); }
.lb-fig figcaption small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.lb-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; font-size: 34px; line-height: 1; color: var(--cream); background: none; border: 1px solid var(--line); cursor: pointer; }
.lb-nav { width: 52px; height: 52px; font-size: 38px; line-height: 1; color: var(--gold-light); background: none; border: 1px solid var(--line); cursor: pointer; justify-self: center; transition: border-color .3s, background .3s; }
.lb-nav:hover, .lb-close:hover { border-color: var(--gold); background: rgba(212,175,55,.1); }
.lb-nav[hidden] { display: none; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 60px 12px 16px; }
  .lb-fig { grid-row: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; width: 46px; height: 46px; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-fig img { max-height: 62vh; }
  .lb-fig figcaption { padding-bottom: 56px; }
}


/* --- bolder button text: thin type was hard to read on phones, especially on the gold buttons --- */
.btn, button.btn, .book-link, .book-link-external, .gal-chip, .cselect-btn { font-weight: 600; }
.btn-solid, .nav-cta .btn-solid, .reserve-submit, .lb-nav { font-weight: 700; color: #120d00; }
.btn-solid:hover { color: var(--gold-light); }
.gal-chip.active { color: #120d00; font-weight: 700; }
.ns-tag, .city-pill, .city-card[data-status="live"] .city-pill { font-weight: 600; }
.city-card[data-status="live"] .city-pill { color: #120d00; }
.ns-tag { color: #120d00; }
@media (max-width: 760px) {
  .btn { font-size: 13.5px; letter-spacing: 0.14em; }
  .btn-solid { font-weight: 700; }
  .nav-cta .btn { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; }
}
@media (max-width: 560px) { .hero .btn { width: 100%; justify-content: center; } }

/* Our Story: the wide three-books photo is shown whole instead of being cropped to a portrait frame */
.split-img.story-img { aspect-ratio: 1500 / 844; align-self: center; background: #eceef0; }
.split-img.story-img img { object-fit: contain; }
.split-img.story-img:hover img { transform: none; }

/* ---------- Header layout: brand | links | buttons can never touch or overlap ---------- */
.nav-inner { gap: 28px; }
.nav-brand { flex: 0 0 auto; white-space: nowrap; }
.nav-links { flex: 1 1 auto; justify-content: center; gap: clamp(14px, 1.9vw, 30px); min-width: 0; }
.nav-links a { white-space: nowrap; letter-spacing: 0.1em; }
.nav-cta { flex: 0 0 auto; white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1379px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links { justify-content: center; gap: 26px; }   /* panel mode: vertical centring */
}

/* Book cards keep their design; this only stops the perk chips from forcing the 3-column grid wider than the screen (981-1100px) */
.books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-card { min-width: 0; }
.book-perks .perk { min-width: 0; white-space: normal; line-height: 1.25; }
@media (max-width: 980px) { .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .books-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 600px) and (max-width: 980px) { .mbt-slide { width: 150px; } .mbt-label b { font-size: 13px; } .mbt-label small { font-size: 9.5px; } }

/* ---------- Sponsorship form ---------- */
.sp-start { padding-top: 90px; }
.sp-wrap { max-width: 1120px; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; margin-top: 50px; }
.sp-form[hidden], .sp-summary[hidden], .sp-success[hidden] { display: none !important; }
.sp-block { margin-bottom: 30px; }
.sp-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: end; }

.sp-titles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-title { cursor: pointer; display: block; min-width: 0; }
.sp-title input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-title-box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 8px 14px; border: 1px solid var(--line); background: var(--black-soft); height: 100%; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.sp-title-box img { width: 74%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--line); margin-bottom: 6px; }
.sp-any-ico { width: 74%; aspect-ratio: 3 / 4; display: grid; place-items: center; border: 1px dashed var(--line); margin-bottom: 6px; color: var(--gold); }
.sp-any-ico svg { width: 38px; height: 38px; }
.sp-title-box b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 14px; line-height: 1.25; }
.sp-title-box small { font-size: 10.5px; color: rgba(245,241,230,.6); line-height: 1.3; }
.sp-title:hover .sp-title-box { border-color: var(--gold); }
.sp-title input:checked + .sp-title-box { border-color: var(--gold); background: rgba(212, 175, 55, .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.sp-title input:focus-visible + .sp-title-box { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.sp-seg { display: inline-flex; border: 1px solid var(--line); margin-bottom: 20px; max-width: 100%; }
.sp-seg button { font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 13px 20px; background: transparent; color: var(--cream); border: 0; cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.sp-seg button.active { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; font-weight: 700; }
.sp-mode[hidden] { display: none; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sp-chip { font: inherit; font-size: 15px; font-weight: 600; min-width: 70px; padding: 12px 16px; border: 1px solid var(--line); background: var(--black-soft); color: var(--cream); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.sp-chip:hover { border-color: var(--gold); }
.sp-chip.active { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; border-color: transparent; font-weight: 700; }
.sp-custom { max-width: 320px; }
.sp-hint { font-size: 13px; color: rgba(245,241,230,.6); margin-top: 10px; }
.sp-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-pill { cursor: pointer; }
.sp-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-pill span { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: border-color .3s, background .3s, color .3s; }
.sp-pill input:checked + span { background: rgba(212, 175, 55, .14); border-color: var(--gold); color: var(--gold-light); }
.sp-pill input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.sp-check { margin-top: 16px; }
.sp-methods { display: grid; gap: 12px; }
.sp-method { display: block; cursor: pointer; }
.sp-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-method > span { display: grid; gap: 3px; padding: 16px 20px 16px 56px; border: 1px solid var(--line); background: var(--black-soft); position: relative; transition: border-color .3s, background .3s; }
.sp-method > span::before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1px solid var(--gold); border-radius: 50%; }
.sp-method > span::after { content: ""; position: absolute; left: 25px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .2s var(--ease); }
.sp-method b { font-weight: 600; font-size: 15px; }
.sp-method small { font-size: 12.5px; color: rgba(245,241,230,.62); }
.sp-method:hover > span { border-color: var(--gold); }
.sp-method input:checked + span { border-color: var(--gold); background: rgba(212, 175, 55, .1); }
.sp-method input:checked + span::after { transform: scale(1); }
.sp-method input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.sp-fine { margin-top: 16px; font-size: 12.5px; color: rgba(245,241,230,.55); }

.sp-summary { position: sticky; top: 104px; border: 1px solid var(--gold); background: linear-gradient(165deg, #191611, #0c0b09); padding: 28px 26px; text-align: center; }
.sp-sum-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.sp-sum-books { font-family: 'Marcellus', serif; font-size: 54px; line-height: 1; color: var(--gold-light); }
.sp-sum-books small { font-family: 'Jost', sans-serif; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,241,230,.7); }
.sp-sum-title { margin-top: 8px; font-size: 14px; color: var(--cream); }
.sp-sum-amount { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-family: 'Marcellus', serif; font-size: 34px; }
.sp-sum-approx { min-height: 20px; font-size: 13px; color: rgba(245,241,230,.65); margin-top: 2px; }
.sp-sum-freq { display: inline-block; margin-top: 12px; padding: 5px 14px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.sp-sum-list { list-style: none; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 10px; font-size: 13px; color: rgba(245,241,230,.75); }
.sp-sum-list li { padding-left: 22px; position: relative; }
.sp-sum-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

.sp-success { max-width: 760px; margin: 50px auto 0; }
.sp-done-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 6px auto 26px; max-width: 560px; text-align: left; }
.sp-done-summary > div { background: var(--black); padding: 14px 18px; display: grid; gap: 3px; }
.sp-done-summary span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sp-done-summary b { font-weight: 500; overflow-wrap: anywhere; }
.sp-done-summary small { color: rgba(245,241,230,.6); font-weight: 300; }
.sp-pay { max-width: 560px; margin: 0 auto 26px; text-align: left; display: grid; gap: 14px; }
.sp-pay-block { border: 1px solid var(--line); background: var(--black); padding: 20px 22px; }
.sp-pay-block.primary { border-color: var(--gold); }
.sp-pay-block h3 { font-size: 17px; color: var(--gold-light); margin-bottom: 12px; }
.sp-pay-block p { max-width: none; margin: 0; font-size: 14px; }
.sp-pay-block a { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.sp-pay dl { display: grid; gap: 10px; margin: 0; }
.sp-pay dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.sp-pay dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,230,.55); }
.sp-pay dd { margin: 0; overflow-wrap: anywhere; font-size: 15px; }
.sp-copy { font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; padding: 3px 9px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; }
.sp-copy:hover { border-color: var(--gold); }
.sp-other summary { cursor: pointer; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; padding: 6px 0; }
.sp-other[open] summary { margin-bottom: 12px; }
.sp-other .sp-pay-block { margin-bottom: 12px; }
.sp-pay-note { font-size: 13.5px; color: rgba(245,241,230,.75); text-align: center; }

@media (max-width: 980px) {
  .sp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 34px; }
  .sp-summary { order: -1; position: sticky; top: 64px; z-index: 20; margin: 0 -22px 28px; padding: 12px 22px; border-left: 0; border-right: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; text-align: left; background: rgba(12, 11, 9, .96); backdrop-filter: blur(10px); }
  .sp-sum-eyebrow, .sp-sum-list, .sp-sum-title, .sp-sum-approx { display: none; }
  .sp-sum-books { font-size: 30px; }
  .sp-sum-books small { font-size: 10px; }
  .sp-sum-amount { margin: 0; padding: 0; border: 0; font-size: 24px; text-align: right; }
  .sp-sum-freq { margin: 0; padding: 3px 10px; font-size: 9.5px; grid-column: 3; justify-self: end; }
}
@media (max-width: 700px) {
  .sp-start { padding-top: 60px; }
  .sp-titles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-title-box img, .sp-any-ico { width: 56%; }
  .sp-row2 { grid-template-columns: 1fr; gap: 22px; }
  .sp-seg { display: flex; width: 100%; } .sp-seg button { flex: 1; padding: 13px 8px; font-size: 11.5px; letter-spacing: .05em; white-space: normal; }
  .sp-chip { flex: 1 0 28%; min-width: 0; }
  .sp-custom { max-width: none; }
  .sp-method > span { padding: 14px 16px 14px 50px; } .sp-method > span::before { left: 16px; } .sp-method > span::after { left: 21px; }
  .sp-pay dl > div { grid-template-columns: 1fr; gap: 2px; }
  .sp-done-summary { grid-template-columns: 1fr; }
  .sp-pay-block { padding: 16px; }
  .sp-success .ticket-actions .btn { width: 100%; justify-content: center; }
}
@media print {
  body:has(#spSuccess:not([hidden])) * { visibility: hidden; }
  #spSuccess, #spSuccess * { visibility: visible; }
  #spSuccess { position: absolute; left: 0; top: 0; width: 100%; background: #fff; color: #000; border: 0; }
  #spSuccess .ticket-actions, #spSuccess .btn { display: none; }
  #spSuccess .sp-pay-block, #spSuccess .sp-done-summary > div { background: #fff; border-color: #999; }
  #spSuccess h2, #spSuccess h3, #spSuccess dt, #spSuccess span { color: #000 !important; }
}

/* Hero on phones: the endless book ticker is wider than the screen by design; without this the grid column
   grew to fit it and pushed the headline, buttons and stats off the right edge. */
.hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-inner > * { min-width: 0; }
@media (min-width: 981px) { .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.mobile-book-ticker { max-width: 100%; }

/* very small phones (320px): keep logo, Reserve button and menu icon on one row */
@media (max-width: 350px) {
  .nav-inner { gap: 8px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-brand { font-size: 13px; letter-spacing: 0.02em; gap: 6px; }
  .nav-brand img { width: 24px; height: 24px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 8px 8px; font-size: 10px; letter-spacing: 0.05em; }
}
@media (max-width: 350px) { .sp-summary { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } .mobile-book-ticker { margin-left: -16px; margin-right: -16px; } }

/* ---------- Hero stats: three glowing tiles on phones/tablets (no divider lines) ---------- */
.hs-ico { display: none; }
@media (max-width: 980px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 34px; flex-wrap: nowrap; }
  .hero-stats .hs {
    position: relative; overflow: hidden; border: 1px solid var(--line); padding: 16px 6px 14px; text-align: center;
    background: linear-gradient(165deg, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0.02) 65%);
    box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.9);
  }
  .hero-stats .hs::before {
    content: ""; position: absolute; left: 50%; top: -34px; width: 90px; height: 70px; transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(244, 215, 125, 0.35), transparent 70%); pointer-events: none;
  }
  .hero-stats .hs > * { position: relative; }
  .hs-ico { display: block; width: 20px; height: 20px; margin: 0 auto 8px; color: var(--gold); opacity: 0.9; }
  .hero-stats .num {
    font-size: 25px; line-height: 1.05; letter-spacing: 0; white-space: nowrap; border: 0; padding: 0;
    background: linear-gradient(120deg, #fbe7a4, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  .hero-stats .label { font-size: 9.5px; letter-spacing: 0.12em; line-height: 1.35; opacity: 0.75; margin-top: 8px; border: 0; padding: 0; }
  .hero-stats .hs { padding-left: 4px; padding-right: 4px; border-left: 1px solid var(--line); }
}
@media (max-width: 350px) { .hero-stats .num { font-size: 22px; } .hero-stats .label { font-size: 8.5px; letter-spacing: 0.08em; } }

/* ---------- Opening: "آيات" (Aayaat) calligraphy, five selectable styles ----------
   The style is chosen by OPENING_STYLE in js/main.js ('fade' | 'ink' | 'glow' | 'lift' | 'none').
   Try them all on the site at /opening-preview. Solid gold text (no gradient clipping), so it shows on every browser. */
.aayaat { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; opacity: 0; pointer-events: none; }
.aayaat-glow { position: absolute; width: min(70vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 62%); opacity: 0; }
.aayaat-text {
  position: relative; font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif; font-size: clamp(88px, 26vw, 210px); line-height: 1.2; padding: 0 0.1em;
  color: #e9c766; text-shadow: 0 0 30px rgba(212, 175, 55, 0.45), 0 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.aayaat-sub { position: relative; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.7em; padding-left: 0.7em; color: var(--gold-light); opacity: 0; transform: translateY(8px); }

#preloader.aayaat-on .loader-ring, #preloader.aayaat-on .loader-word, #preloader.aayaat-on .loader-count { opacity: 0; transition: opacity 0.25s ease; }
#preloader.aayaat-on .aayaat { opacity: 1; }
#preloader.aayaat-on .aayaat-glow { animation: aa-glow-bg 1.2s ease-out 0.1s forwards; }
#preloader.aayaat-on .aayaat-sub { animation: aa-sub 0.5s ease-out 0.6s forwards; }
@keyframes aa-glow-bg { 0% { opacity: 0; transform: scale(0.75); } 100% { opacity: 0.9; transform: scale(1.05); } }
@keyframes aa-sub { to { opacity: 0.9; transform: none; } }

/* 1 · fade: soft rise into place */
#preloader.op-fade.aayaat-on .aayaat-text { animation: aa-fade 0.7s ease-out 0.15s forwards; }
@keyframes aa-fade { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
/* 2 · ink: written right to left */
#preloader.op-ink.aayaat-on .aayaat-text {
  opacity: 1; -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 62%); mask-image: linear-gradient(to right, #000 38%, transparent 62%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: aa-ink 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
@keyframes aa-ink { to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
/* 3 · glow: blooms out of a blur */
#preloader.op-glow.aayaat-on .aayaat-text { animation: aa-bloom 0.9s ease-out 0.1s forwards; }
@keyframes aa-bloom { 0% { opacity: 0; filter: blur(16px); transform: scale(0.9); text-shadow: 0 0 60px rgba(244, 215, 125, 0.9); } 100% { opacity: 1; filter: blur(0); transform: none; } }
/* 4 · lift: same soft entrance, then the black screen lifts away */
#preloader.op-lift.aayaat-on .aayaat-text { animation: aa-fade 0.7s ease-out 0.15s forwards; }

/* exits */
#preloader.exit-fade, #preloader.exit-ink, #preloader.exit-none { opacity: 0; transition: opacity 0.65s ease; }
#preloader.exit-glow { opacity: 0; transition: opacity 0.6s ease 0.1s; }
#preloader.exit-glow .aayaat { transform: scale(1.18); opacity: 0; transition: transform 0.7s ease-in, opacity 0.5s ease; }
#preloader.exit-lift { transform: translateY(-101%); transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
#preloader.exit-lift .aayaat { opacity: 0; transition: opacity 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .aayaat { display: none; } }

/* Logo ring loader switched off (LOGO_LOADER_ENABLED in js/main.js). Nothing is deleted, only hidden. */
#preloader.no-logo .loader-ring, #preloader.no-logo .loader-word, #preloader.no-logo .loader-count { display: none; }

/* ---------- 6 · sketch: the word is drawn letter by letter, then filled with gold (no pen, just the lines appearing) ---------- */
.aayaat-svg { display: none; position: relative; width: min(78vw, 560px); height: auto; overflow: visible; filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.3)); }
#preloader.op-sketch .aayaat-svg { display: block; }
#preloader.op-sketch .aayaat-text { display: none; }
.ag-fill { fill: #e9c766; opacity: 0; }
.ag-line { fill: none; stroke: #f3dc8b; stroke-width: 9; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
#preloader.aayaat-on.op-sketch .ag-line {
  animation: ag-draw 1.1s cubic-bezier(0.45, 0.05, 0.3, 1) calc(0.1s + var(--i) * 0.5s) forwards,
             ag-line-out 0.5s ease calc(0.1s + var(--i) * 0.5s + 1.45s) forwards;
}
#preloader.aayaat-on.op-sketch .ag-fill { animation: ag-fill 0.55s ease-out calc(0.1s + var(--i) * 0.5s + 0.7s) forwards; }
@keyframes ag-draw { to { stroke-dashoffset: 0; } }
@keyframes ag-fill { to { opacity: 1; } }
@keyframes ag-line-out { to { stroke-opacity: 0; } }
#preloader.op-sketch.aayaat-on .aayaat-sub { animation: aa-sub 0.6s ease-out 2.2s forwards; }

/* ---------- Language switch (English <-> Arabic) ---------- */
.lang-switch { font-family: 'Amiri', serif; font-size: 16px; line-height: 1; color: var(--gold-light); padding: 9px 14px; border: 1px solid var(--line); white-space: nowrap; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.lang-switch:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.08); }
.nav-lang { display: none; }
@media (max-width: 1100px) { .nav-cta .lang-switch { display: none; } .nav-lang { display: block; } .nav-lang a { font-family: 'Amiri', serif; font-size: 18px; letter-spacing: 0; text-transform: none; } }


/* =====================================================================
   Home-page experiences: campaign map, book flip-through, lantern sky, reading garden (js/experience.js)
   Geometry that must never mirror (a real map, a 3D book) sits between rtl:ignore markers.
   ===================================================================== */
.kmap-section, .flip-section, .lantern-section, .garden-section { padding: 90px 0; position: relative; overflow: hidden; }
.flip-section, .garden-section { background: linear-gradient(180deg, var(--black), #0d0c0a 60%, var(--black)); }
.kmap-section .section-head, .flip-section .section-head, .lantern-section .section-head, .garden-section .section-head { margin-bottom: 40px; }

/* ---------- campaign map ---------- */
.kmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; max-width: 980px; margin: 0 auto; }
/*rtl:begin:ignore*/
.kmap-art { direction: ltr; width: 100%; max-width: 400px; margin: 0 auto; }
/*rtl:end:ignore*/
.kmap-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.kland { fill: rgba(212, 175, 55, 0.07); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.25)); }
.kland-dots { stroke: none; pointer-events: none; }
.ksea-label { fill: rgba(245, 241, 230, 0.35); font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; font-family: 'Jost', sans-serif; }
.kpin { cursor: pointer; outline: none; }
.kp-dot { fill: var(--black); stroke: var(--gold); stroke-width: 3; transition: fill 0.3s, r 0.3s; }
.kp-pulse { fill: rgba(212, 175, 55, 0.22); transform-box: fill-box; transform-origin: center; animation: kp-pulse 2.6s ease-out infinite; }
.kpin[data-status="live"] .kp-dot { fill: var(--gold-light); }
.kpin[data-status="live"] .kp-pulse { animation-duration: 1.6s; fill: rgba(244, 215, 125, 0.4); }
.kpin[data-status="done"] .kp-dot { fill: var(--gold-deep); stroke: var(--gold-deep); }
.kpin[data-status="done"] .kp-pulse { display: none; }
.kpin:hover .kp-dot, .kpin:focus-visible .kp-dot, .kpin.sel .kp-dot { fill: var(--gold); r: 8.5; }
.kp-name { fill: var(--cream); font-size: 19px; font-family: 'Jost', sans-serif; font-weight: 400; paint-order: stroke; stroke: var(--black); stroke-width: 5px; stroke-linejoin: round; transition: fill 0.3s; }
.kpin.sel .kp-name, .kpin:hover .kp-name { fill: var(--gold-light); }
.kpin:focus-visible .kp-name { text-decoration: underline; }
@keyframes kp-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

.kmap-card { border: 1px solid var(--line); background: var(--black-soft); padding: 34px 30px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.kc-empty { text-align: center; }
.kc-empty h3 { font-size: 24px; margin-bottom: 8px; color: var(--gold-light); }
.kc-empty p { color: rgba(245, 241, 230, 0.7); }
.kc-hint-ico { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--gold); position: relative; }
.kc-hint-ico::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--gold); animation: kp-pulse 2s ease-out infinite; }
.kc-body { display: grid; gap: 14px; justify-items: start; }
.kc-body[hidden] { display: none; }
.kc-body.kc-in { animation: kc-in 0.5s var(--ease); }
.kc-name { font-size: clamp(28px, 4vw, 38px); }
.kc-dates { color: var(--gold-light); font-size: 17px; }
.kc-dates.muted { color: rgba(245, 241, 230, 0.6); }
.kc-books { width: 100%; }
.kc-cta { margin-top: 6px; }
.kc-cta[hidden] { display: none; }
@keyframes kc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.kmap-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(245, 241, 230, 0.75); }
.kmap-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 8px; border: 2px solid var(--gold); vertical-align: -1px; }
.kmap-legend .lg.live { background: var(--gold-light); box-shadow: 0 0 10px var(--gold); }
.kmap-legend .lg.done { background: var(--gold-deep); border-color: var(--gold-deep); }
@media (max-width: 820px) { .kmap { grid-template-columns: minmax(0, 1fr); gap: 26px; } .kmap-art { max-width: 300px; } .kmap-card { min-height: 0; padding: 26px 22px; } }

/* ---------- book flip-through ---------- */
.flip { display: grid; justify-items: center; gap: 26px; }
.flip-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flip-tab { background: transparent; color: var(--cream); border: 1px solid var(--line); padding: 11px 20px; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; transition: all 0.3s var(--ease); }
.flip-tab:hover { border-color: var(--gold); }
.flip-tab.active { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: var(--black); border-color: transparent; font-weight: 600; }
/*rtl:begin:ignore*/
.flip-stage { --pw: min(38vw, 300px); direction: ltr; perspective: 1800px; width: calc(var(--pw) * 2); max-width: 100%; height: calc(var(--pw) * 1.42); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: 10px; }
.flipbook { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.flipbook[data-s="start"] { transform: translateX(-25%); }
.flipbook[data-s="end"] { transform: translateX(25%); }
.fb-base { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; background: linear-gradient(135deg, #1c1a17, #0d0c0a); border: 1px solid var(--gold-deep); border-radius: 0 8px 8px 0; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.6, 0, 0.25, 1); }
.leaf.flipped { transform: rotateY(-180deg); }
.lf, .lb { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lf { border-radius: 0 8px 8px 0; box-shadow: inset 6px 0 14px rgba(0, 0, 0, 0.18); }
.lb { transform: rotateY(180deg); border-radius: 8px 0 0 8px; box-shadow: inset -6px 0 14px rgba(0, 0, 0, 0.18); }
.cover, .cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 700px) {
  .flip-stage { --pw: min(76vw, 320px); width: var(--pw); }
  .flipbook[data-s="start"], .flipbook[data-s="end"] { transform: none; }
  .fb-base, .leaf { left: 0; width: 100%; }
  .lf, .lb { border-radius: 8px; }
  .leaf.flipped { opacity: 0; transition: transform 0.95s cubic-bezier(0.6, 0, 0.25, 1), opacity 0.35s ease 0.55s; }
}
/*rtl:end:ignore*/
.pg { position: relative; height: 100%; font-size: calc(var(--pw, 300px) * 0.055); padding: 1.7em 1.3em 2em; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 0.7em; background: linear-gradient(160deg, #f6eed9, #ecdfc0); color: #2a2418; }
.pg-day { font-family: 'Marcellus', serif; letter-spacing: 0.2em; text-transform: uppercase; color: #9c7a21; font-size: 0.72em; }
.pg-ar { font-family: 'Amiri', serif; font-size: 1.85em; line-height: 1.85; color: #17130b; }
.pg-tr { font-size: 0.95em; line-height: 1.45; font-weight: 400; }
.pg-note { font-size: 0.76em; line-height: 1.5; color: #6b5a2e; font-style: italic; border-top: 1px solid rgba(156, 122, 33, 0.4); padding-top: 0.7em; margin-top: 0.2em; }
.pg-ref { position: absolute; bottom: 0.9em; font-size: 0.64em; color: #9c7a21; letter-spacing: 0.1em; }
.pg-title, .pg-end { background: radial-gradient(ellipse at 50% 30%, #2a220f, #0d0c0a 75%); color: var(--cream); }
.pg-title h3, .pg-end h3 { font-size: 1.6em; color: var(--gold-light); line-height: 1.25; }
.pg-title p, .pg-end p { font-size: 0.85em; color: rgba(245, 241, 230, 0.8); line-height: 1.5; }
.pg-kicker { font-size: 0.66em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.pg-orn { width: 3.2em; height: 1px; background: var(--gold); position: relative; margin-top: 0.4em; }
.pg-orn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.55em; height: 0.55em; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.pg-end .btn { font-size: 0.68em; padding: 1em 1.4em; }
.pg-img { padding: 0; background: #fff; }
.pg-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flip-ctrl { /*rtl:ignore*/ direction: ltr; display: flex; align-items: center; gap: 22px; }
.flip-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); font-size: 20px; cursor: pointer; transition: all 0.3s var(--ease); }
.flip-btn::before { content: '\2190'; }
.flip-btn#flipNext::before { content: '\2192'; }
.flip-btn:hover:not(:disabled) { background: var(--gold); color: var(--black); }
.flip-btn:disabled { opacity: 0.3; cursor: default; }
.flip-count { min-width: 64px; text-align: center; color: rgba(245, 241, 230, 0.75); direction: ltr; unicode-bidi: isolate; }
.flip-note { font-size: 13px; color: rgba(245, 241, 230, 0.5); text-align: center; }

/* ---------- lantern sky ---------- */
.lantern-section { background: var(--black); }
.sky { position: relative; max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); padding: 34px 22px 26px; background: radial-gradient(ellipse at 50% 0%, #211a0a 0%, #0d0c0a 62%); overflow: hidden; }
.sky-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; background:
  radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 44% 24%, #f4d77d 50%, transparent 51%), radial-gradient(1px 1px at 63% 74%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 78% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 91% 58%, #f4d77d 50%, transparent 51%),
  radial-gradient(1px 1px at 8% 84%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 46%, #fff 50%, transparent 51%); }
.sky-grid { position: relative; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px 2px; }
.lantern { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.55; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(var(--dx), var(--dy)) scale(var(--sc)); animation: l-bob 6s ease-in-out var(--d) infinite; -webkit-tap-highlight-color: transparent; }
.lantern i { position: absolute; display: block; }
.l-cap { left: 24%; right: 24%; top: 4%; height: 7%; background: var(--gold-deep); border-radius: 3px 3px 0 0; transition: background 0.4s; }
.l-body { left: 8%; right: 8%; top: 10%; bottom: 24%; border-radius: 42% 42% 36% 36% / 30% 30% 26% 26%; border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.05); transition: background 0.5s, box-shadow 0.5s, border-color 0.5s; }
.l-tail { left: calc(50% - 0.5px); top: 78%; width: 1px; height: 20%; background: rgba(212, 175, 55, 0.35); }
.lantern.lit .l-body, .lantern.try .l-body { border-color: var(--gold-light); background: radial-gradient(ellipse at 50% 55%, #fff6cf 0%, #f4d77d 42%, #d4af37 85%); box-shadow: 0 0 12px 3px rgba(244, 215, 125, 0.55), 0 0 30px 8px rgba(212, 175, 55, 0.25); }
.lantern.lit .l-cap, .lantern.try .l-cap { background: var(--gold); }
.lantern.lit .l-tail, .lantern.try .l-tail { background: var(--gold); }
.lantern.try .l-body { animation: l-flick 0.9s ease-in-out 2; }
.lantern:hover .l-body { border-color: var(--gold-light); }
.lantern.sel::after { content: ''; position: absolute; inset: -3px -2px; border: 1px solid var(--gold-light); border-radius: 8px; }
.lantern:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
@keyframes l-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes l-flick { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.sky-foot { max-width: 1000px; margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.sky-count { font-size: 18px; color: var(--cream); }
.sky-count b { font-family: 'Marcellus', serif; font-size: 34px; color: var(--gold-light); font-weight: 400; margin-inline-end: 4px; }
.sky-count span { color: rgba(245, 241, 230, 0.6); font-size: 15px; }
.sky-tip { min-height: 74px; display: flex; align-items: center; color: rgba(245, 241, 230, 0.85); }
.sky-tip p { margin: 0 0 10px; }
.st-dark { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.st-dark p { margin: 0; }
.st-dark[hidden], .st-lit[hidden], .st-hint[hidden] { display: none; }
@media (max-width: 900px) { .sky-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px 2px; } .sky { padding: 26px 12px 20px; } .sky-foot { justify-content: center; text-align: center; } .st-dark { justify-content: center; } }

/* ---------- reading garden ---------- */
.garden-card { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); background: linear-gradient(180deg, var(--black-soft), #0d0c0a); padding: 48px 28px 40px; }
.garden-card .section-head { margin-bottom: 26px; }
.garden-stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 56px); margin-bottom: 26px; }
.garden-stats div { text-align: center; }
.garden-stats b { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(34px, 6vw, 46px); color: var(--gold-light); line-height: 1.1; }
.garden-stats span { font-size: 13px; color: rgba(245, 241, 230, 0.65); letter-spacing: 0.12em; text-transform: uppercase; }
.garden-field { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 560px; margin: 0 auto 30px; padding: 14px 10px 10px; border-radius: 6px; background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), rgba(58, 43, 24, 0.55)); border-bottom: 3px solid #3a2b18; }
.plot { position: relative; aspect-ratio: 1 / 1.35; display: flex; align-items: flex-end; justify-content: center; }
.plot svg { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.soil { display: block; width: 46%; height: 7px; margin-bottom: 4px; border-radius: 50%; background: #3a2b18; }
.fl-stem { stroke: #5f8a4d; stroke-width: 2; fill: none; }
.fl-leaf { fill: #5f8a4d; }
.fl-head { transform-origin: 0 4px; animation: fl-sway 5s ease-in-out infinite; }
.plot:nth-child(3n) .fl-head { animation-delay: -1.5s; }
.plot:nth-child(3n+1) .fl-head { animation-delay: -3s; }
.fl.gold .fl-head { filter: drop-shadow(0 0 5px rgba(244, 215, 125, 0.95)); }
.plot.grow svg { animation: fl-grow 1.2s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes fl-grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fl-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.garden-act { display: grid; justify-items: center; gap: 14px; text-align: center; }
.garden-act .btn:disabled { opacity: 0.55; cursor: default; }
.garden-act .g-off { display: none; }
.garden-act .btn.done .g-on { display: none; }
.garden-act .btn.done .g-off { display: inline; }
.garden-msg { min-height: 3em; max-width: 520px; color: var(--gold-light); font-size: 17px; }
.garden-msg span[hidden] { display: none; }
.garden-note { font-size: 13px; color: rgba(245, 241, 230, 0.5); }
@media (max-width: 560px) { .garden-card { padding: 34px 14px 30px; } .garden-field { gap: 3px; padding: 10px 4px 8px; } }
@media (prefers-reduced-motion: reduce) {
  .lantern, .kp-pulse, .fl-head, .kc-hint-ico::after { animation: none !important; }
  .flipbook, .leaf { transition-duration: 0.01s; }
}


/* =====================================================================
   Aayaath Store (/store, /store-track, /store-policies). Separate from the main site: its own light header, no site menu.
   ===================================================================== */
.st-page { background: var(--black); }
.st-head { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.st-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-family: 'Marcellus', serif; letter-spacing: 0.14em; font-size: 15px; text-decoration: none; }
.st-brand img { width: 30px; height: 30px; border-radius: 6px; }
.st-brand em { font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-deep); padding: 3px 8px; }
.st-links { display: flex; gap: clamp(12px, 3vw, 28px); margin-inline-start: auto; }
.st-links a { color: rgba(245, 241, 230, 0.75); text-decoration: none; font-size: 14px; letter-spacing: 0.06em; padding: 6px 0; border-bottom: 2px solid transparent; }
.st-links a:hover, .st-links a.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.st-app { min-height: 70vh; }
.st-hero { padding: clamp(46px, 8vw, 96px) 0 clamp(30px, 5vw, 56px); background: radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.14), transparent 60%), var(--black); text-align: center; }
.st-hero-small { padding: clamp(36px, 6vw, 64px) 0 clamp(18px, 3vw, 30px); }
.st-hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.1; margin: 12px 0 16px; }
.st-lead { max-width: 640px; margin: 0 auto; color: rgba(245, 241, 230, 0.8); font-size: clamp(16px, 2vw, 19px); }
.st-impact { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px auto 0; max-width: 820px; }
.st-imp { flex: 1 1 200px; border: 1px solid var(--line); background: rgba(212, 175, 55, 0.06); padding: 16px 18px; display: grid; gap: 4px; }
.st-imp b { font-family: 'Marcellus', serif; font-size: 30px; color: var(--gold-light); font-weight: 400; }
.st-imp span { font-size: 14px; color: rgba(245, 241, 230, 0.85); }
.st-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 28px; }
.st-steps div { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(245, 241, 230, 0.75); }
.st-steps b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; }
.st-section { padding: clamp(44px, 7vw, 84px) 0; }
.st-closed { text-align: center; padding: 18px; margin: 20px auto; border: 1px solid var(--gold-deep); color: var(--gold-light); max-width: 720px; }
.st-loading, .st-empty { color: rgba(245, 241, 230, 0.6); }
.st-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.st-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--black-soft); }
.st-cover { background: #0d0c0a; padding: 22px; display: flex; justify-content: center; }
.st-cover img { width: min(58%, 190px); height: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.st-body { padding: 20px 20px 22px; display: grid; gap: 12px; align-content: start; }
.st-level { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.st-body h3 { font-size: 24px; }
.st-body p { color: rgba(245, 241, 230, 0.75); font-size: 15px; }
.st-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-tier { position: relative; text-align: start; background: transparent; color: var(--cream); border: 1px solid var(--line); padding: 12px 12px 10px; cursor: pointer; display: grid; gap: 2px; font: inherit; transition: border-color 0.25s, background 0.25s; }
.st-tier b { font-size: 20px; font-weight: 600; color: var(--gold-light); }
.st-tier small { font-size: 12px; color: rgba(245, 241, 230, 0.75); line-height: 1.35; }
.st-tier i { position: absolute; top: -9px; inset-inline-end: 8px; background: var(--gold); color: var(--black); font-style: normal; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; font-weight: 600; }
.st-tier:hover { border-color: var(--gold); }
.st-tier.on { border-color: var(--gold); background: rgba(212, 175, 55, 0.14); }
.st-custom input, .st-form input:not([type=checkbox]):not([type=radio]), .st-form select, .st-form textarea, .st-coupon input { width: 100%; background: #0d0c0a; border: 1px solid var(--line); color: var(--cream); padding: 13px 14px; font: inherit; font-size: 16px; }
.st-custom input.bad { border-color: #e8927f; }
.st-form input:focus, .st-form select:focus, .st-form textarea:focus, .st-custom input:focus, .st-coupon input:focus { outline: none; border-color: var(--gold); }
.st-buy { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.st-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.st-qty button { width: 40px; height: 44px; background: transparent; border: 0; color: var(--gold-light); font-size: 20px; cursor: pointer; }
.st-qty span { min-width: 34px; text-align: center; font-weight: 600; }
.st-add { flex: 1; }
.st-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.st-form h2, .st-cart h2 { font-size: 24px; margin: 26px 0 14px; }
.st-form h2:first-child, .st-cart h2 { margin-top: 0; }
.st-fields { display: grid; gap: 14px; }
.st-form .field { display: grid; gap: 6px; }
.st-form label { font-size: 13px; letter-spacing: 0.06em; color: rgba(245, 241, 230, 0.8); }
/* store forms: the label sits above its box (the site's contact form floats its labels inside the box instead) */
.st-form .field label { position: static; top: auto; left: auto; font-size: 13px; letter-spacing: 0.06em; color: rgba(245, 241, 230, 0.8); pointer-events: auto; transition: none; }
/* whatever the store's script hides stays hidden: the empty cart's totals and code box, delivery fields when collecting */
.st-page [hidden] { display: none !important; }
.st-choice { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.st-radio { position: relative; cursor: pointer; }
.st-radio input { position: absolute; opacity: 0; }
.st-radio span { display: inline-block; padding: 12px 18px; border: 1px solid var(--line); font-size: 15px; color: rgba(245, 241, 230, 0.85); }
.st-radio input:checked + span { border-color: var(--gold); background: rgba(212, 175, 55, 0.14); color: var(--gold-light); }
.st-radio input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.st-note { font-size: 13px; color: rgba(245, 241, 230, 0.6); line-height: 1.5; }
.st-note.bad, .st-error { color: #e8927f; }
.st-error:empty { display: none; }
.st-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 6px; font-size: 14px; letter-spacing: 0; }
.st-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); }
.st-submit { width: 100%; margin: 14px 0 10px; }
.st-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.st-cart { position: sticky; top: 76px; border: 1px solid var(--line); background: var(--black-soft); padding: 22px; }
.st-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-line small { display: block; font-size: 12px; color: rgba(245, 241, 230, 0.65); margin-top: 3px; }
.st-line-r { text-align: end; display: grid; gap: 4px; justify-items: end; }
.st-line-r button { background: none; border: 0; color: #e8927f; font-size: 12px; cursor: pointer; padding: 0; }
.st-coupon { margin: 16px 0 4px; display: grid; gap: 6px; }
.st-coupon-row { display: flex; gap: 8px; }
.st-coupon-row .btn { padding-inline: 18px; }
.st-totals { margin: 14px 0 0; display: grid; gap: 8px; }
.st-totals > div { display: flex; justify-content: space-between; font-size: 15px; }
.st-totals dd { margin: 0; direction: ltr; unicode-bidi: isolate; }
.st-grand { font-size: 20px !important; padding-top: 12px; border-top: 1px solid var(--line); }
.st-grand dd { color: var(--gold-light); font-weight: 600; }
.st-fund { margin-top: 16px; padding: 12px 14px; background: rgba(212, 175, 55, 0.1); border-inline-start: 3px solid var(--gold); font-size: 14px; color: var(--gold-light); }
.st-done { max-width: 720px; margin: 0 auto; text-align: center; }
.st-done h2 { font-size: clamp(28px, 4.5vw, 42px); margin: 10px 0 14px; }
.st-ref { font-size: 18px; }
.st-ref b { font-family: 'Marcellus', serif; font-size: 26px; letter-spacing: 0.08em; color: var(--gold-light); font-weight: 400; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.st-done-sum, .st-pay, .st-result { text-align: start; border: 1px solid var(--line); background: var(--black-soft); padding: 20px; margin: 20px 0; }
.st-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-items li, .st-line-sum, .st-total { display: flex; justify-content: space-between; gap: 12px; }
.st-items small { color: rgba(245, 241, 230, 0.65); }
.st-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.st-total b { color: var(--gold-light); }
.st-pay h3 { font-size: 18px; margin-bottom: 12px; }
.st-pay dl { margin: 0; display: grid; gap: 10px; }
.st-pay dl > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-pay dt { color: rgba(245, 241, 230, 0.65); font-size: 14px; }
.st-pay dd { margin: 0; font-weight: 500; }
.st-pay button { background: none; border: 1px solid var(--line); color: var(--gold-light); font-size: 12px; padding: 3px 9px; cursor: pointer; margin-inline-start: 8px; }
.st-done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.st-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.st-how > div { border: 1px solid var(--line); padding: 22px; background: var(--black-soft); }
.st-how b { font-family: 'Marcellus', serif; font-size: 20px; color: var(--gold-light); font-weight: 400; display: block; margin-bottom: 8px; }
.st-how p { color: rgba(245, 241, 230, 0.75); font-size: 15px; }
.st-impact-count { text-align: center; margin-top: 26px; font-size: 20px; color: var(--gold-light); }
.st-faq { max-width: 780px; }
.st-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.st-faq summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: '+'; flex: 0 0 auto; color: var(--gold); font-size: 24px; line-height: 1; transition: transform 0.3s var(--ease); }
.st-faq details[open] summary::after { transform: rotate(45deg); }
.st-faq p { margin-top: 10px; color: rgba(245, 241, 230, 0.75); }
.st-faq a, .st-policy a { color: var(--gold-light); }
.st-policy { max-width: 780px; }
.st-policy h2 { font-size: 24px; margin: 30px 0 10px; }
.st-policy p { color: rgba(245, 241, 230, 0.8); line-height: 1.7; }
.st-track-box { max-width: 640px; }
.st-track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-pill { padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold-light); font-size: 13px; letter-spacing: 0.06em; }
.st-pill.bad { border-color: #e8927f; color: #e8927f; }
.st-timeline { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 0; }
.st-timeline li { position: relative; padding: 0 0 18px; padding-inline-start: 30px; color: rgba(245, 241, 230, 0.5); }
.st-timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--black); }
.st-timeline li::after { content: ''; position: absolute; inset-inline-start: 6px; top: 19px; bottom: -3px; width: 2px; background: var(--line); }
.st-timeline li:last-child::after { display: none; }
.st-timeline li.done, .st-timeline li.now { color: var(--cream); }
.st-timeline li.done::before, .st-timeline li.now::before { background: var(--gold); border-color: var(--gold); }
.st-timeline li.now { font-weight: 600; color: var(--gold-light); }
.st-result h3 { margin: 18px 0 10px; font-size: 18px; }
.st-foot { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 30px; font-size: 13px; color: rgba(245, 241, 230, 0.6); }
.st-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.st-foot-links { display: inline-flex; gap: 20px; }
.st-foot a { color: rgba(245, 241, 230, 0.8); text-decoration: none; }
@media (max-width: 900px) {
  .st-checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .st-cart { position: static; order: -1; }
  .st-brand em { display: none; }
}
@media (max-width: 520px) { .st-tiers { grid-template-columns: minmax(0, 1fr); } .st-head-in { flex-wrap: wrap; } .st-links { order: 3; width: 100%; margin: 0; justify-content: space-between; } }
@media print { .st-head, .st-foot, .st-done-actions { display: none !important; } body { background: #fff; color: #000; } .st-done-sum, .st-pay { border-color: #999; background: #fff; } }


/* ---------- sponsor wall: two rows of name plates drifting in opposite directions (js/wall.js) ---------- */
.wall-section { padding: clamp(56px, 8vw, 100px) 0; background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%), var(--black); overflow: hidden; }
/*rtl:begin:ignore*/
.wall { direction: ltr; position: relative; display: grid; gap: 18px; margin: 10px 0 0; padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; gap: 16px; animation: wall-left var(--dur, 60s) linear infinite; will-change: transform; }
.wall-rev .wall-track { animation-name: wall-right; animation-duration: calc(var(--dur, 60s) * 1.25); }
.wall:hover .wall-track { animation-play-state: paused; }
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.wall-mine { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
/*rtl:end:ignore*/
.wall-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(244, 215, 125, 0.09), transparent 62%); }
.plate { position: relative; flex: none; min-width: 170px; padding: 15px 24px 14px 34px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.02)); display: grid; gap: 3px; color: var(--cream); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.plate b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 20px; letter-spacing: 0.02em; white-space: nowrap; }
.plate small { font-size: 12px; letter-spacing: 0.06em; color: rgba(245, 241, 230, 0.65); white-space: nowrap; }
.plate-orn { position: absolute; inset-inline-start: 13px; top: 50%; width: 9px; height: 9px; background: var(--gold); transform: translateY(-50%) rotate(45deg); opacity: 0.85; }
.plate.line { border-color: var(--gold-deep); }
.plate.gold { border-color: var(--gold); background: linear-gradient(160deg, rgba(244, 215, 125, 0.22), rgba(212, 175, 55, 0.08)); box-shadow: 0 0 26px rgba(212, 175, 55, 0.18); }
.plate.gold b { color: var(--gold-light); }
.plate.ghost { border-style: dashed; background: transparent; opacity: 0.55; min-width: 190px; }
.plate.ghost b { font-size: 16px; color: rgba(245, 241, 230, 0.55); }
.plate.ghost .plate-orn { background: transparent; border: 1px solid var(--gold-deep); }
.plate:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.plate.mine { transform: scale(1.18); padding: 18px 34px 17px 42px; border-color: var(--gold-light); animation: wall-pop 0.5s var(--ease); box-shadow: 0 0 46px rgba(244, 215, 125, 0.45), 0 20px 40px rgba(0, 0, 0, 0.6); background: linear-gradient(160deg, #2a220f, #0d0c0a); }
.plate.mine b { font-size: 26px; }
@keyframes wall-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1.18); } }
.wall-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: center; margin-top: 30px; text-align: center; }
.wall-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(26px, 6vw, 64px); }
.wall-stats[hidden], .wall-empty[hidden] { display: none; }
.wall-stats li { display: grid; gap: 2px; }
.wall-stats b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(34px, 6vw, 48px); color: var(--gold-light); line-height: 1.1; }
.wall-stats span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 241, 230, 0.65); }
.wall-empty { color: rgba(245, 241, 230, 0.75); max-width: 460px; }
.wall-try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; width: min(100%, 520px); min-width: 0; }
.wall-try label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.wall-try-row { display: flex; gap: 10px; width: 100%; }
.wall-try-row input { flex: 1; min-width: 0; background: #0d0c0a; border: 1px solid var(--line); color: var(--cream); padding: 14px 16px; font: inherit; font-size: 16px; }
.wall-try-row input:focus { outline: none; border-color: var(--gold); }
.wall-hint { font-size: 13px; color: rgba(245, 241, 230, 0.55); }
@media (max-width: 560px) { .wall-try-row { flex-direction: column; } .plate { min-width: 150px; padding: 12px 18px 11px 30px; } .plate b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } .wall-row { overflow-x: auto; } }


/* ---------- the village: pull the lamp, books reach homes, homes light up (js/village.js) ---------- */
.vil-section { padding: clamp(56px, 8vw, 100px) 0; background: linear-gradient(180deg, var(--black), #07070a 30%, #07070a 80%, var(--black)); overflow: hidden; }
/*rtl:begin:ignore*/
.vil { position: relative; direction: ltr; max-width: 1180px; margin: 10px auto 0; border-block: 1px solid var(--line); background: #04050a; }
.vil canvas { display: block; width: 100%; touch-action: manipulation; }
.vil-lamp { position: absolute; top: -2px; left: 50%; width: clamp(96px, 15vw, 140px); transform: translateX(-50%); transform-origin: 50% 0; animation: vil-sway 7s ease-in-out infinite; z-index: 3; }
.vil-lamp.pulling { animation: none; }
/*rtl:end:ignore*/
.vil-lamp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.vil-lamp .vl-grab { cursor: grab; }
.vil-lamp.pulling .vl-grab { cursor: grabbing; }
.vil-lamp .vl-bead { transition: cy 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.vil-lamp.pulling .vl-bead, .vil-lamp.pulling .vl-chain { transition: none; }
.vil-lamp .vl-chain { transition: y2 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.vil-lamp .vl-bulb { transition: fill 0.6s; }
.vil-lamp.on .vl-bulb { fill: url(#vlBulb); filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.95)) drop-shadow(0 0 40px rgba(255, 190, 80, 0.7)); }
.vil-lamp.on .vl-fil { stroke: #b8892a; }
.vil-halo { position: absolute; left: 50%; top: 32%; width: 620%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, 0.3), rgba(255, 214, 120, 0.06) 40%, transparent 68%); opacity: 0; transition: opacity 1s; pointer-events: none; }
.vil-lamp.on .vil-halo { opacity: 1; }
.vil-pull { position: absolute; left: 100%; top: 62%; margin-inline-start: -14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; animation: vil-bob 1.6s ease-in-out infinite; pointer-events: none; }
.vil-pull.gone { opacity: 0; transition: opacity 0.4s; animation: none; }
.vil-lamp.nudge .vl-bead { animation: vil-tug 2.4s ease-in-out 1.2s 3; }
@keyframes vil-sway { 0%, 100% { transform: translateX(-50%) rotate(-1.6deg); } 50% { transform: translateX(-50%) rotate(1.6deg); } }
@keyframes vil-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes vil-tug { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(9px); } 55% { transform: translateY(0); } }
.vil-hud { position: absolute; inset-inline-start: 18px; top: 16px; z-index: 2; pointer-events: none; }
.vil-count { display: grid; gap: 0; color: rgba(245, 241, 230, 0.75); }
.vil-count b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(38px, 7vw, 64px); line-height: 1; color: var(--gold-light); text-shadow: 0 0 30px rgba(212, 175, 55, 0.45); font-variant-numeric: tabular-nums; }
.vil-count span { font-size: 13px; letter-spacing: 0.06em; }
.vil-count i { font-style: normal; opacity: 0.75; }
.vil-pop { position: absolute; z-index: 4; width: 240px; padding: 14px 16px; background: rgba(10, 10, 11, 0.94); border: 1px solid var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); display: grid; gap: 10px; text-align: start; direction: inherit; }
.vil-pop[hidden] { display: none; }
.vil-pop p { margin: 0; font-size: 14px; color: var(--cream); }
.vil-pop .btn { padding: 11px 14px; font-size: 13px; text-align: center; }
.vil-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; margin-top: 30px; text-align: center; }
.vil-status { margin: 0; min-height: 1.5em; color: var(--gold-light); font-size: 17px; }
.vil-try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; width: min(100%, 460px); padding: 22px; border: 1px solid var(--line); background: var(--black-soft); }
.vil-try label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.vil-try-row { display: flex; align-items: center; gap: 14px; width: 100%; }
.vil-try-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--gold); height: 34px; }
.vil-try-row output { min-width: 44px; text-align: center; font-family: 'Marcellus', serif; font-size: 26px; color: var(--gold-light); }
.vil-cost { margin: 0; font-size: 16px; color: var(--cream); }
.vil-cost span { font-family: 'Marcellus', serif; font-size: 26px; color: var(--gold-light); }
.vil-cost em { font-style: normal; color: rgba(245, 241, 230, 0.7); }
.vil-foot .btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 560px) { .vil-hud { inset-inline-start: 12px; top: 10px; } .vil-pull { display: none; } }
@media (prefers-reduced-motion: reduce) { .vil-lamp, .vil-pull, .vil-lamp.nudge .vl-bead { animation: none; } }


/* ---------- City by City. Home by Home.: a scroll-triggered film (js/citylight.js) ---------- */
.cl-section { padding: clamp(56px, 8vw, 100px) 0; background: linear-gradient(180deg, var(--black), #07070a 25%, #07070a 85%, var(--black)); overflow: hidden; }
/*rtl:begin:ignore*/
.cl { position: relative; direction: ltr; max-width: 1180px; margin: 10px auto 0; border-block: 1px solid var(--line); background: #04050a; }
.cl canvas { display: block; width: 100%; }
.cl-lamp { position: absolute; top: -2px; left: 50%; width: clamp(92px, 14vw, 130px); transform: translateX(-50%); transform-origin: 50% 0; z-index: 3; animation: cl-sway 7s ease-in-out infinite, cl-drop 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.cl-lamp[hidden] { display: none; }
.cl-lamp.pulling { animation: none; }
/*rtl:end:ignore*/
.cl-lamp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cl-lamp .cl-grab { cursor: grab; touch-action: none; }
.cl-lamp .cl-bead, .cl-lamp .cl-chain { transition: cy 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), y2 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.cl-lamp.pulling .cl-bead, .cl-lamp.pulling .cl-chain { transition: none; }
.cl-lamp .cl-bulb { transition: fill 0.6s; }
.cl-lamp.on .cl-bulb { fill: url(#clBulb); filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.95)) drop-shadow(0 0 40px rgba(255, 190, 80, 0.7)); }
.cl-halo { position: absolute; left: 50%; top: 32%; width: 700%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, 0.28), rgba(255, 214, 120, 0.05) 40%, transparent 68%); opacity: 0; transition: opacity 1s; pointer-events: none; }
.cl-lamp.on .cl-halo { opacity: 1; }
.cl-pull { position: absolute; left: 100%; top: 62%; margin-inline-start: -14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; animation: cl-bob 1.6s ease-in-out infinite; pointer-events: none; }
.cl-pull.gone { opacity: 0; animation: none; transition: opacity 0.4s; }
.cl-lamp.nudge .cl-bead { animation: cl-tug 2.4s ease-in-out 1s infinite; }
.cl-lamp.on .cl-bead { animation: none; }
@keyframes cl-sway { 0%, 100% { transform: translateX(-50%) rotate(-1.5deg); } 50% { transform: translateX(-50%) rotate(1.5deg); } }
@keyframes cl-drop { from { opacity: 0; margin-top: -80px; } to { opacity: 1; margin-top: 0; } }
@keyframes cl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes cl-tug { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(10px); } }
.cl-hud { position: absolute; inset-inline-start: 18px; top: 16px; z-index: 2; pointer-events: none; display: grid; }
.cl-hud small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.cl-hud b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(38px, 7vw, 62px); line-height: 1.05; color: var(--gold-light); text-shadow: 0 0 30px rgba(212, 175, 55, 0.45); font-variant-numeric: tabular-nums; }
.cl-hud span { font-size: 13px; letter-spacing: 0.06em; color: rgba(245, 241, 230, 0.75); }
.cl-caption { position: absolute; inset-inline: 0; bottom: 14px; z-index: 2; text-align: center; padding-inline: 16px; font-family: 'Marcellus', serif; font-size: clamp(16px, 2.4vw, 22px); color: var(--cream); text-shadow: 0 2px 14px #000, 0 0 30px #000; pointer-events: none; opacity: 0; }
.cl-caption.in { animation: cl-cap 0.8s ease forwards; }
@keyframes cl-cap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cl-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; text-align: center; }
.cl-foot:has(> :not([hidden])), .toon-foot:has(> :not([hidden])) { margin-top: 26px; }
.cl-foot .btn[hidden], .cl-end[hidden] { display: none; }
.cl-end { display: grid; gap: 18px; justify-items: center; }
.cl-end p { margin: 0; font-size: clamp(16px, 2.2vw, 20px); color: rgba(245, 241, 230, 0.85); }
.cl-end b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(28px, 5vw, 40px); color: var(--gold-light); }
.cl-end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 560px) { .cl-hud { inset-inline-start: 12px; top: 10px; } .cl-pull { display: none; } }
@media (prefers-reduced-motion: reduce) { .cl-lamp, .cl-pull, .cl-lamp.nudge .cl-bead { animation: none; } }


/* =====================================================================
   The Night the Lights Came On: an interactive cartoon (js/toon-art.js draws it, js/toon.js plays it)
   ===================================================================== */
.toon-section { padding: clamp(56px, 8vw, 100px) 0; background: linear-gradient(180deg, var(--black), #0b0b1f 20%, #0b0b1f 88%, var(--black)); overflow: hidden; }
/*rtl:begin:ignore*/
.toon { position: relative; direction: ltr; max-width: 1240px; margin: 10px auto 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; border: 3px solid #1a1030; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6); background: #0b1035; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.toon-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .toon { aspect-ratio: 4 / 5.2; border-radius: 18px; } }
/*rtl:end:ignore*/
.toon svg text { font-family: 'Fredoka', 'Baloo 2', 'Jost', 'Reem Kufi', sans-serif; }
.toon svg .o { stroke: #1a1030; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.toon svg .o.thin { stroke-width: 2; }

/* ---------- characters ---------- */
.person .leg, .person .arm, .person .head { transform-box: view-box; }
.person.walk .leg-l { animation: t-leg 0.46s ease-in-out infinite; }
.person.walk .leg-r { animation: t-leg 0.46s ease-in-out infinite -0.23s; }
.person.walk .arm-l { animation: t-armw 0.46s ease-in-out infinite -0.23s; }
.person.walk .arm-r { animation: t-armw 0.46s ease-in-out infinite; }
.person.walk .body { animation: t-bob 0.23s ease-in-out infinite alternate; }
.person.wave .arm-r { animation: t-wave 0.42s ease-in-out infinite alternate; }
.person.cheer .arm-r { transform: rotate(-160deg); animation: t-cheer 0.35s ease-in-out infinite alternate; }
.person.cheer .arm-l { transform: rotate(160deg); animation: t-cheer2 0.35s ease-in-out infinite alternate; }
.person.point .arm-r { transform: rotate(-95deg); }
.person.toss .arm-r { animation: t-toss 0.46s ease-out; }
@keyframes t-toss { 0% { transform: rotate(0deg); } 35% { transform: rotate(-135deg); } 60% { transform: rotate(-150deg); } 100% { transform: rotate(0deg); } }
.person .lid { transform-box: fill-box; transform-origin: 50% 0; animation: t-blink 4.6s infinite; transform: scaleY(0); }
.person .m { opacity: 0; }
.person[data-ex="smile"] .m-smile, .person[data-ex="talk"] .m-smile { opacity: 1; }
.person[data-ex="talk"] .m-smile { opacity: 0; }
.person[data-ex="talk"] .m-open { opacity: 1; transform-box: fill-box; transform-origin: 50% 0; animation: t-talk 0.24s ease-in-out infinite alternate; }
.person[data-ex="wow"] .m-o { opacity: 1; }
.person[data-ex="flat"] .m-flat { opacity: 1; }
.person[data-ex="big"] .m-open { opacity: 1; }
.person[data-ex="wow"] .brow { transform: translateY(-4px); }
.person .head { animation: t-head 3.2s ease-in-out infinite alternate; }
@keyframes t-leg { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-24deg); } }
@keyframes t-armw { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }
@keyframes t-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes t-wave { from { transform: rotate(-135deg); } to { transform: rotate(-172deg); } }
@keyframes t-cheer { from { transform: rotate(-150deg); } to { transform: rotate(-176deg); } }
@keyframes t-cheer2 { from { transform: rotate(150deg); } to { transform: rotate(176deg); } }
@keyframes t-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
@keyframes t-talk { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes t-head { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* ---------- Noor, the lamp spirit ---------- */
.noor .nfloat { animation: t-float 3.2s ease-in-out infinite; }
@keyframes t-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.noor .nglow, .noor .bulb-lit, .noor .nweye, .noor .nm-smile { opacity: 0; transition: opacity 0.6s; }
.noor .zzz text { animation: t-zzz 3s ease-in-out infinite; opacity: 0; }
.noor .zzz text:nth-child(2) { animation-delay: 0.5s; } .noor .zzz text:nth-child(3) { animation-delay: 1s; }
@keyframes t-zzz { 0% { opacity: 0; transform: translateY(14px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.noor[data-state="awake"] .nglow { opacity: 1; animation: t-glow 2.4s ease-in-out infinite; }
.noor[data-state="awake"] .bulb-lit, .noor[data-state="awake"] .nweye, .noor[data-state="awake"] .nm-smile { opacity: 1; }
.noor[data-state="awake"] .nseye, .noor[data-state="awake"] .nm-flat, .noor[data-state="awake"] .zzz { opacity: 0; }
.noor[data-state="sleep"] .nglow { opacity: 0.18; }
.noor .grab { cursor: grab; touch-action: none; }
.noor .narm-l { animation: t-narm 1.6s ease-in-out infinite alternate; } .noor .narm-r { animation: t-narm 1.6s ease-in-out infinite alternate-reverse; }
.noor.hint .bead { animation: t-tug 1.3s ease-in-out infinite; }
@keyframes t-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes t-narm { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes t-tug { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(16px); } }
.noor .nglow, .noor .nglow { transform-box: fill-box; transform-origin: center; }

/* ---------- the van ---------- */
.van .wheel { transform-box: view-box; }
.van.drive .wheel { animation: t-spin 0.36s linear infinite; }
.van.drive .vbody { animation: t-vbounce 0.28s ease-in-out infinite alternate; }
.van .vbeam { opacity: 0; transition: opacity 0.5s; } .van.lights .vbeam { opacity: 1; animation: t-flick 2.4s ease-in-out infinite; }
.van .puffs { opacity: 0; } .van.drive .puffs { opacity: 1; animation: t-puff 0.6s linear infinite; }
.van .vdoor { transform-box: fill-box; transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.van.open .vdoor { transform: scaleX(0.06); }
.van .vinside { opacity: 0.9; }
@keyframes t-spin { to { transform: rotate(360deg); } }
@keyframes t-vbounce { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes t-flick { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes t-puff { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-40px); opacity: 0; } }

/* ---------- houses: dark and dim until a book arrives ---------- */
.house { filter: brightness(0.6) saturate(0.85); transition: filter 0.7s; }
.house .halo { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3); transition: opacity 0.7s, transform 0.9s cubic-bezier(0.2, 1.3, 0.4, 1); pointer-events: none; }
.house .litwin, .house .fam { opacity: 0; transition: opacity 0.4s; }
.house .fam { transition-delay: 0.35s; }
.house .sparkle, .house .smoke { opacity: 0; }
.house .peek { opacity: 0; }
.house.lit { filter: none; }
.house.lit .halo { opacity: 1; transform: scale(1); }
.house.lit .litwin, .house.lit .fam { opacity: 1; }
.house.lit .smoke { opacity: 1; animation: t-smoke 2.6s ease-out infinite; }
.house.lit .slights circle { animation: t-bulb 1.2s ease-in-out infinite alternate; }
.house.react .peek { opacity: 1; }
.house.react .peekin { animation: t-peek 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.house.react .pwave { animation: t-pwave 0.4s ease-in-out infinite alternate 0.7s; }
.house.react .sparkle { animation: t-spark 1.3s ease-out both; transform-box: fill-box; transform-origin: center; }
.house .peekin, .house .pwave, .house .sparkle { transform-box: view-box; }
.hpos .hit { fill: transparent; cursor: default; }
.toon.tapping .hpos:not(.done) .hit { cursor: pointer; }
.minis { filter: brightness(0.34) saturate(0.7); }
.toon.tapping .house:not(.lit) { animation: t-invite 2.4s ease-in-out infinite; }
.toon.tapping .house:not(.lit):nth-child(2n) { animation-delay: -0.8s; }
.toon.tapping .house:not(.lit):nth-child(3n) { animation-delay: -1.6s; }
@keyframes t-smoke { 0% { transform: translate(0, 0) scale(1); opacity: 0.9; } 100% { transform: translate(14px, -50px) scale(2.4); opacity: 0; } }
@keyframes t-peek { from { transform: translateY(70px); } to { transform: translateY(0); } }
@keyframes t-pwave { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes t-spark { 0% { opacity: 0; transform: scale(0.1) rotate(0); } 25% { opacity: 1; transform: scale(1.5) rotate(40deg); } 100% { opacity: 0; transform: scale(0.6) rotate(140deg) translateY(-30px); } }
@keyframes t-bulb { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes t-invite { 0%, 86%, 100% { filter: brightness(0.6) saturate(0.85); } 92% { filter: brightness(0.95) saturate(1); } }

/* ---------- winged books ---------- */
.bird .wl { animation: t-flapl 0.16s ease-in-out infinite alternate; } .bird .wr { animation: t-flapr 0.16s ease-in-out infinite alternate; }
.bird .wing { transform-box: view-box; }
@keyframes t-flapl { from { transform: rotate(28deg); } to { transform: rotate(-34deg); } }
@keyframes t-flapr { from { transform: rotate(-28deg); } to { transform: rotate(34deg); } }

/* ---------- scenery ---------- */
.moon .mopen, .moon .mbig { opacity: 0; transition: opacity 0.5s; } .moon[data-mood="happy"] .mopen, .moon[data-mood="happy"] .mbig { opacity: 1; }
.moon[data-mood="happy"] .mclosed, .moon[data-mood="happy"] .msmile { opacity: 0; }
.moon .mface { transition: opacity 0.4s; }
.owl .olid { transform-box: fill-box; transform-origin: 50% 0; animation: t-blink 5.5s infinite; transform: scaleY(0); }
.cat .tail { animation: t-tail 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
.palm .fronds { animation: t-sway 4.5s ease-in-out infinite alternate; }
.cloud { animation: t-cloud 60s linear infinite; }
.fountain .drops circle { animation: t-drop 1.2s ease-in infinite; } .fountain .drops circle:nth-child(2n) { animation-delay: -0.4s; } .fountain .drops circle:nth-child(3n) { animation-delay: -0.8s; }
.slamp .slb, .slamp .slglow { transition: opacity 0.6s, fill 0.6s; } .slamp .slglow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.slamp.on .slb { fill: #fff2b0; } .slamp.on .slglow { opacity: 1; }
.star-t { animation: t-twinkle 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.firefly { animation: t-fly 6s ease-in-out infinite alternate; }
@keyframes t-tail { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes t-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes t-cloud { from { transform: translateX(0); } to { transform: translateX(400px); } }
@keyframes t-drop { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@keyframes t-twinkle { from { opacity: 0.3; transform: scale(0.7); } to { opacity: 1; transform: scale(1.15); } }
@keyframes t-fly { 0% { transform: translate(0, 0); opacity: 0.2; } 50% { opacity: 1; } 100% { transform: translate(40px, -30px); opacity: 0.3; } }
.mh .mw { fill: #ffd76a; opacity: 0; transition: opacity 0.4s; } .mh.on .mw { opacity: 1; }
.mh .mg { opacity: 0; transition: opacity 0.6s; } .mh.on .mg { opacity: 1; }

/* ---------- interface over the film ---------- */
.toon-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.toon-cap { position: absolute; inset-inline: 12px; bottom: 12px; text-align: center; font-family: 'Fredoka', 'Jost', 'Reem Kufi', sans-serif; font-size: clamp(15px, 2.3vw, 22px); line-height: 1.35; color: #fff8dc; padding: 12px 20px; background: rgba(26, 16, 48, 0.86); border: 3px solid #f4d77d; border-radius: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; max-width: 760px; margin-inline: auto; }
.toon-cap.on { opacity: 1; transform: none; }
.toon-hud { position: absolute; top: 12px; inset-inline-start: 14px; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; background: rgba(26, 16, 48, 0.8); border: 3px solid #f4d77d; border-radius: 18px; color: #fff8dc; opacity: 0; transition: opacity 0.5s; font-family: 'Fredoka', 'Jost', sans-serif; }
.toon-hud.on { opacity: 1; }
.toon-hud b { font-size: clamp(22px, 4vw, 34px); line-height: 1; color: #ffe27a; font-weight: 600; font-variant-numeric: tabular-nums; }
.toon-hud span { font-size: 12px; letter-spacing: 0.08em; }
.toon-tools { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 8px; pointer-events: auto; }
.toon-tools button { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #f4d77d; background: rgba(26, 16, 48, 0.85); color: #fff8dc; font-size: 17px; cursor: pointer; display: grid; place-items: center; font-family: 'Fredoka', sans-serif; }
.toon-tools button:hover { background: #3a2a6a; }
.toon-tools button[hidden] { display: none; }
.toon-dots { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.toon-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 248, 220, 0.3); border: 2px solid #1a1030; transition: all 0.4s; }
.toon-dots i.on { background: #ffe27a; transform: scale(1.3); }
.toon-dots i.done { background: #f4d77d; }
.toon-act { position: absolute; inset-inline: 0; top: 62px; display: flex; justify-content: center; pointer-events: none; }
.toon-act .btn { pointer-events: auto; font-family: 'Fredoka', 'Jost', sans-serif; font-size: 17px; padding: 14px 26px; border-radius: 40px; border: 3px solid #1a1030; box-shadow: 0 5px 0 #1a1030; animation: t-pulse 1.4s ease-in-out infinite; }
.toon-act .btn[hidden] { display: none; }
@keyframes t-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.toon-bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.toon-bubble { position: absolute; transform: translate(-50%, -100%); max-width: min(240px, 58%); padding: 9px 15px; background: #fff; color: #1a1030; border: 3px solid #1a1030; border-radius: 20px; font-family: 'Fredoka', 'Jost', 'Reem Kufi', sans-serif; font-size: clamp(13px, 1.9vw, 17px); line-height: 1.25; text-align: center; animation: t-pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.toon-bubble::after { content: ''; position: absolute; left: 50%; bottom: -13px; width: 16px; height: 16px; background: #fff; border-right: 3px solid #1a1030; border-bottom: 3px solid #1a1030; transform: translateX(-50%) rotate(45deg); }
@keyframes t-pop { from { transform: translate(-50%, -100%) scale(0.2); opacity: 0; } to { transform: translate(-50%, -100%) scale(1); opacity: 1; } }
.toon-float { position: absolute; transform: translate(-50%, -50%); font-family: 'Fredoka', sans-serif; font-weight: 600; color: #ffe27a; text-shadow: 0 2px 0 #1a1030, 0 0 12px #ffb43c; animation: t-floatup 1.2s ease-out both; pointer-events: none; font-size: 22px; }
@keyframes t-floatup { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -190%); } }
.toon-cover { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 60%, rgba(26, 16, 48, 0.35), rgba(11, 16, 53, 0.82)); transition: opacity 0.7s; }
.toon-cover.gone { opacity: 0; pointer-events: none; }
.toon-cover-in { display: grid; gap: 14px; justify-items: center; max-width: 620px; }
.toon-kicker { font-family: 'Fredoka', 'Jost', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; font-size: 13px; color: #f4d77d; }
.toon-title { margin: 0; font-family: 'Fredoka', 'Marcellus', 'Reem Kufi', sans-serif; font-weight: 600; font-size: clamp(30px, 6.2vw, 64px); line-height: 1.02; color: #fff8dc; text-shadow: 0 4px 0 #1a1030, 0 0 30px rgba(255, 210, 90, 0.5); -webkit-text-stroke: 2px #1a1030; paint-order: stroke fill; }
.toon-title span { color: #ffe27a; display: inline-block; animation: t-wob 2.4s ease-in-out infinite alternate; }
@keyframes t-wob { from { transform: rotate(-2.5deg) translateY(0); } to { transform: rotate(2.5deg) translateY(-6px); } }
.toon-play { font-family: 'Fredoka', 'Jost', sans-serif; font-size: 20px; padding: 16px 34px; border-radius: 44px; border: 3px solid #1a1030; box-shadow: 0 6px 0 #1a1030; }
.toon-note { font-size: 13px; color: rgba(255, 248, 220, 0.75); }
.toon-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; text-align: center; }
.toon-end { display: grid; gap: 16px; justify-items: center; }
.toon-end[hidden] { display: none; }
.toon-end p { margin: 0; font-size: clamp(16px, 2.2vw, 20px); color: rgba(245, 241, 230, 0.85); max-width: 640px; }
.toon-end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 720px) { .toon-hud { inset-inline-start: 8px; top: 8px; padding: 5px 10px; } .toon-tools { top: 8px; inset-inline-end: 8px; } .toon-tools button { width: 36px; height: 36px; } .toon-dots { display: none; } .toon-act { top: 54px; } }
@media (prefers-reduced-motion: reduce) { .person .lid, .noor .nfloat, .cloud, .toon-act .btn { animation: none; } }

/* =====================================================================
   Site-wide vertical rhythm: one spacing scale for every section, so the gaps between
   sections stay even and compact on phones, tablets and desktops. Kept last so it wins.
   ===================================================================== */
:root { --sec-pad: clamp(44px, 5vw, 76px); --head-gap: clamp(26px, 3.2vw, 44px); }
section,
.books-section, .stats-section, .story-section, .testi-section, .sponsor-section, .rewards-section, .contact-section,
.approved-section, .scholars-section, .cities-section, .gallery-section, .peek-section, .kmap-section, .flip-section,
.lantern-section, .garden-section, .wall-section, .vil-section, .cl-section, .toon-section, .st-section {
  padding-top: var(--sec-pad); padding-bottom: var(--sec-pad);
}
.scholars-section + section { padding-top: var(--sec-pad); }
.reserve-section { padding-top: var(--sec-pad); }
.section-head,
.kmap-section .section-head, .flip-section .section-head, .lantern-section .section-head, .garden-section .section-head { margin-bottom: var(--head-gap); }
.section-sub { margin-top: 14px; }
/* a slimmer lift for scroll-in reveals, so empty space does not flash at the top of sections */
.reveal.js-armed { transform: translateY(22px); }
.reveal.js-armed.in { transform: none; }
footer { padding-top: clamp(44px, 5vw, 64px); }
/* sections whose content already sits inside a framed card need less air around the frame */
.contact-section, .garden-section, .stats-section { padding-top: calc(var(--sec-pad) * 0.7); padding-bottom: calc(var(--sec-pad) * 0.7); }

/* Certificate: a fixed A4 portrait sheet (210 x 297). Everything inside is sized from the sheet's width (cqw),
   so the whole certificate scales as one piece, like a printed page, instead of reflowing. */
.cert-col { align-self: start; min-width: 0; }
.rewards-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .rewards-grid { grid-template-columns: minmax(0, 1fr); } }
.certificate { container-type: inline-size; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 210 / 297; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0; }   /* no padding here: a container's own padding can't use its own cqw */
.cert-watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: 'Marcellus', serif; font-size: 21cqw; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); opacity: 0.07; transform: rotate(-35deg); white-space: nowrap; }
.certificate > :not(.cert-watermark):not(.cert-ribbon) { position: relative; max-width: 86cqw; }
.cert-ribbon { top: 5cqw; font-size: 3cqw; padding: 1.5cqw 4cqw; }
.cert-logo { width: 17cqw; height: 17cqw; margin: 0 auto 6cqw; }
.cert-kicker { font-size: 7.4cqw; margin-bottom: 7cqw; line-height: 1.4; max-width: 70cqw; }
.cert-line { font-size: 4.3cqw; line-height: 1.75; }
.cert-name { font-size: 10.6cqw; margin: 3.5cqw 0 6cqw; padding: 0 5cqw 2cqw; }
.cert-sign { margin-top: 11cqw; }
.cert-sign span { font-size: 3.4cqw; min-width: 44cqw; padding-top: 2cqw; }

/* Certificate reel: small certificates drifting past; the visitor's own "Your Name Here" is one of them */
.cert-reel { direction: ltr; position: relative; overflow: hidden; padding: 14px 0 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cert-reel-track { display: flex; gap: 18px; width: max-content; animation: cert-reel 46s linear infinite; }
.cert-reel:hover .cert-reel-track { animation-play-state: paused; }
/*rtl:begin:ignore*/
@keyframes cert-reel { to { transform: translateX(calc(-50% - 9px)); } }
/*rtl:end:ignore*/
.certificate.cert-mini { flex: 0 0 auto; width: 200px; max-width: none; margin: 0; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.certificate.cert-mini .cert-name { white-space: nowrap; }
.certificate.cert-mini:hover { transform: translateY(-6px); }
.certificate.cert-you { border-color: var(--gold-light); box-shadow: inset 0 0 0 6px var(--black), inset 0 0 0 7px var(--gold-deep, #8a6d1d), 0 0 34px rgba(212, 175, 55, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
@media (max-width: 480px) { .certificate.cert-mini { width: 172px; } .cert-reel-track { gap: 14px; animation-duration: 40s; } }
@media (prefers-reduced-motion: reduce) {
  .cert-reel { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .cert-reel-track { animation: none; }
  .cert-reel-track > [aria-hidden="true"] { display: none; }
}

/* =====================================================================
   About the Authenticity: five promises, one animated scene each (js/authenticity.js adds .on in view)
   ===================================================================== */
.auth-section { background: linear-gradient(180deg, var(--black), #0d0c0a 50%, var(--black)); overflow: hidden; }
.auth-rows { position: relative; display: grid; gap: clamp(44px, 6vw, 80px); padding-left: 44px; }
.auth-rail { position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.auth-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--gold-light), var(--gold)); box-shadow: 0 0 12px rgba(212, 175, 55, 0.6); border-radius: 2px; }
.auth-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.auth-row::before { content: ''; position: absolute; left: -40px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--black); border: 2px solid var(--line); transition: border-color 0.5s, box-shadow 0.5s, background 0.5s; }
.auth-row.on::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 14px rgba(212, 175, 55, 0.7); }
.auth-row.flip .auth-copy { order: 2; }
.auth-section.armed .auth-row .auth-copy, .auth-section.armed .auth-row .auth-vis { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.auth-section.armed .auth-row .auth-vis { transition-delay: 0.12s; }
.auth-section.armed .auth-row.seen .auth-copy, .auth-section.armed .auth-row.seen .auth-vis { opacity: 1; transform: none; }
.auth-num { display: block; font-family: 'Marcellus', serif; font-size: clamp(44px, 6vw, 64px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: 0.55; margin-bottom: 10px; }
.auth-copy h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--cream); margin-bottom: 12px; }
.auth-copy p { font-size: 16px; line-height: 1.75; color: rgba(245, 241, 230, 0.74); max-width: 480px; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-chips span { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line); padding: 7px 12px; border-radius: 40px; background: rgba(212, 175, 55, 0.05); }
.auth-link { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.auth-link:hover { border-color: var(--gold); }
.auth-levels { list-style: none; display: grid; gap: 10px; margin-top: 18px; max-width: 480px; }
.auth-levels li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding: 11px 14px; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(212, 175, 55, 0.07), transparent 70%); }
.auth-levels span { grid-row: span 2; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.auth-levels b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 17px; color: var(--cream); }
.auth-levels em { font-style: normal; font-size: 14px; line-height: 1.5; color: rgba(245, 241, 230, 0.68); }
@media (max-width: 480px) { .auth-levels li { grid-template-columns: minmax(0, 1fr); } .auth-levels span { grid-row: auto; } }

/*rtl:begin:ignore*/
.auth-vis { direction: ltr; position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.09), transparent 65%), linear-gradient(160deg, #17150f, #0c0b09); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.auth-vis [lang="ar"] { font-family: 'Amiri', serif; direction: rtl; }

/* 01: a verse leaves the pile, is checked under the lens, and is placed on the page */
.v1-card { position: absolute; width: 27%; height: 21%; border-radius: 4px; background: linear-gradient(180deg, #fbf6ea, #efe4c8); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); padding: 4% 3%; display: flex; flex-direction: column; align-items: center; gap: 7%; }
.v1-card b { font-size: clamp(11px, 1.6vw, 15px); color: #5a4310; line-height: 1.2; white-space: nowrap; }
.v1-card i { display: block; width: 80%; height: 3px; border-radius: 3px; background: rgba(156, 122, 33, 0.35); }
.v1-card i + i { width: 55%; }
.v1-pile .v1-card:nth-child(1) { left: 7%; top: 50%; transform: rotate(-6deg); }
.v1-pile .v1-card:nth-child(2) { left: 9%; top: 56%; transform: rotate(4deg); }
.v1-move { left: 8%; top: 45%; opacity: 0; z-index: 3; }
.v1-tick { position: absolute; right: -9%; top: -14%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: #1a1300; font-weight: 700; display: grid; place-items: center; font-size: clamp(11px, 1.5vw, 15px); transform: scale(0); box-shadow: 0 0 16px rgba(212, 175, 55, 0.7); }
.v1-lens { position: absolute; left: 30%; top: 22%; width: 17%; opacity: 0; z-index: 4; }
.v1-lens svg { width: 100%; fill: rgba(255, 244, 214, 0.12); stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6)); }
.v1-page { position: absolute; left: 62%; top: 12%; width: 31%; height: 76%; border-radius: 3px; background: linear-gradient(180deg, #fbf6ea, #f1e7cf); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 5px #fbf6ea, inset 0 0 0 6px rgba(156, 122, 33, 0.5); padding: 16% 12%; display: flex; flex-direction: column; gap: 14%; }
.v1-slot { position: relative; height: 12%; border-radius: 3px; border: 1px dashed rgba(156, 122, 33, 0.45); }
.v1-slot::after { content: ''; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, #c9a445, #e8cf7c); transform-origin: left; transform: scaleX(0); }
.v1-slot.done::after { transform: scaleX(1); }
.auth-row.on .v1-move { animation: v1-move 7s var(--ease) infinite; }
.auth-row.on .v1-lens { animation: v1-lens 7s ease-in-out infinite; }
.auth-row.on .v1-tick { animation: v1-tick 7s ease infinite; }
.auth-row.on .v1-slot.target::after { animation: v1-fill 7s ease infinite; }
@keyframes v1-move { 0% { left: 8%; top: 45%; opacity: 0; transform: scale(1) rotate(-4deg); } 8% { opacity: 1; left: 8%; top: 40%; } 24%, 50% { left: 34%; top: 34%; transform: scale(1.18) rotate(0deg); opacity: 1; } 72% { left: 64%; top: 52%; transform: scale(0.72); opacity: 1; } 80%, 100% { left: 64%; top: 52%; transform: scale(0.72); opacity: 0; } }
@keyframes v1-lens { 0%, 24% { opacity: 0; left: 28%; top: 24%; } 28% { opacity: 1; left: 30%; top: 24%; } 44% { opacity: 1; left: 50%; top: 40%; } 50%, 100% { opacity: 0; left: 52%; top: 42%; } }
@keyframes v1-tick { 0%, 42% { transform: scale(0); } 48% { transform: scale(1.25); } 52%, 70% { transform: scale(1); } 76%, 100% { transform: scale(0); } }
@keyframes v1-fill { 0%, 70% { transform: scaleX(0); } 80%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* 02: two trusted sources send their threads into the page, where the translation writes itself */
.v2-src { position: absolute; left: 5%; width: 37%; height: 30%; overflow: hidden; border-radius: 3px 6px 6px 3px; background: linear-gradient(135deg, #2a2415, #151209); border: 1px solid rgba(212, 175, 55, 0.45); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6); padding: 4% 5% 4% 13%; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.v2-src.s1 { top: 15%; } .v2-src.s2 { top: 55%; }
.v2-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: linear-gradient(90deg, var(--gold), #8a6d1d); border-radius: 3px 0 0 3px; }
.v2-src b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(9px, 1.2vw, 12.5px); line-height: 1.25; color: var(--gold-light); }
.v2-src small { font-size: clamp(7.5px, 0.9vw, 9.5px); line-height: 1.2; color: rgba(245, 241, 230, 0.55); }
.v2-threads { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-threads path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 120; stroke-dashoffset: 120; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.8)); }
.v2-page { position: absolute; left: 62%; top: 13%; width: 33%; aspect-ratio: 1000 / 1419; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.v2-page img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); }
.v2-shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 236, 170, 0.55), transparent); transform: skewX(-12deg); opacity: 0; }
.auth-row.on .v2-threads path { animation: v2-draw 1.3s var(--ease) 0.2s forwards; }
.auth-row.on .v2-threads path + path { animation-delay: 0.45s; }
.auth-row.on .v2-page img { animation: v2-print 1.6s var(--ease) 1.3s forwards; }
.auth-row.on .v2-shine { animation: v2-shine 1.1s ease 3s; }
@keyframes v2-draw { to { stroke-dashoffset: 0; } }
@keyframes v2-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes v2-print { to { clip-path: inset(0 0 0 0); } }
@keyframes v2-shine { 0% { opacity: 1; left: -60%; } 100% { opacity: 1; left: 120%; } }

/* 03: four scholar seals stamp the page, then it is approved */
.v3-page { position: absolute; left: 32%; top: 7%; width: 36%; aspect-ratio: 1000 / 1438; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.v3-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-ok { position: absolute; left: 50%; top: 50%; font-family: 'Marcellus', serif; font-size: clamp(11px, 1.6vw, 15px); letter-spacing: 0.2em; text-transform: uppercase; color: #8a6d1d; border: 2px solid #b8932f; padding: 6px 12px; border-radius: 4px; background: rgba(251, 246, 234, 0.92); transform: translate(-50%, -50%) rotate(-10deg) scale(0); }
.v3-seal { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: 'Marcellus', serif; font-size: clamp(13px, 2vw, 20px); color: #1a1300; background: radial-gradient(circle at 35% 30%, #f3dc8e, #c9a445 55%, #8a6d1d); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 8px 18px rgba(0, 0, 0, 0.6); opacity: 0; transform: scale(2); }
.v3-seal.p1 { left: 22%; top: 5%; } .v3-seal.p2 { left: 63%; top: 5%; } .v3-seal.p3 { left: 22%; top: 64%; } .v3-seal.p4 { left: 63%; top: 64%; }
.v3-count { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 241, 230, 0.7); }
.v3-count b { font-family: 'Marcellus', serif; font-size: 18px; color: var(--gold-light); letter-spacing: 0; }
.auth-row.on .v3-seal { animation: v3-stamp 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.auth-row.on .v3-seal.p1 { animation-delay: 0.4s; } .auth-row.on .v3-seal.p2 { animation-delay: 1.1s; } .auth-row.on .v3-seal.p3 { animation-delay: 1.8s; } .auth-row.on .v3-seal.p4 { animation-delay: 2.5s; }
.auth-row.on .v3-ok { animation: v3-ok 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 3.3s forwards; }
@keyframes v3-stamp { 0% { opacity: 0; transform: scale(2) rotate(-25deg); } 70% { opacity: 1; transform: scale(0.88) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes v3-ok { to { transform: translate(-50%, -50%) rotate(-10deg) scale(1); } }

/* 04: three steps rise, each with its book, level, size and the verse its readers meet. Sized from the scene's width (cqw) */
.auth-vis.v4 { aspect-ratio: 1 / 1.04; container-type: inline-size; display: flex; align-items: stretch; gap: 2.8%; padding: 3% 4.5% 0; }   /* the scene's own padding/gap can't use its own cqw */
.v4-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; }
.v4-step.k { --h: 50cqw; } .v4-step.t { --h: 61cqw; } .v4-step.y { --h: 72cqw; }
.v4-quote { background: linear-gradient(180deg, #fbf6ea, #f1e7cf); border-radius: 4px; padding: 1.8cqw 1.6cqw; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(10px); }
.v4-quote b { display: block; font-size: max(10px, 3.3cqw); color: #3d2d08; line-height: 1.45; font-weight: 400; }
.v4-quote span { display: block; font-family: Georgia, serif; font-weight: 700; font-size: max(7px, 2.05cqw); color: #2a2210; line-height: 1.35; margin-top: 0.5cqw; }
.v4-quote small { display: block; margin-top: 0.8cqw; font-size: max(6px, 1.55cqw); letter-spacing: 0.12em; text-transform: uppercase; color: #8a6d1d; }
.v4-bar { height: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.06)); border: 1px solid rgba(212, 175, 55, 0.5); border-bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 3cqw 1.2cqw 0; gap: 0.8cqw; overflow: hidden; }
.v4-bar img { width: 13cqw; aspect-ratio: 1 / 1.414; object-fit: contain; background: #fff; border-radius: 2px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); margin-bottom: 0.6cqw; }
.v4-bar em { font-style: normal; font-size: max(6.5px, 1.75cqw); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 241, 230, 0.6); }
.v4-bar strong { font-family: 'Marcellus', serif; font-weight: 400; font-size: max(10px, 3.6cqw); line-height: 1.1; color: var(--gold-light); }
.v4-book { font-size: max(7px, 2.05cqw); line-height: 1.25; color: rgba(245, 241, 230, 0.82); }
.v4-count { font-style: normal; font-weight: 600; font-size: max(6.5px, 1.75cqw); letter-spacing: 0.04em; white-space: nowrap; color: #1a1300; background: var(--gold); border-radius: 20px; padding: 0.5cqw 1.6cqw; margin-top: 0.4cqw; }
.auth-row.on .v4-bar { animation: v4-grow 0.9s var(--ease) forwards; }
.auth-row.on .v4-quote { animation: v2-in 0.6s ease forwards; }
.auth-row.on .t .v4-bar { animation-delay: 0.35s; } .auth-row.on .y .v4-bar { animation-delay: 0.7s; }
.auth-row.on .k .v4-quote { animation-delay: 0.8s; } .auth-row.on .t .v4-quote { animation-delay: 1.15s; } .auth-row.on .y .v4-quote { animation-delay: 1.5s; }
@keyframes v4-grow { to { height: var(--h); } }

/* 05: a quiz answers itself, then invites reflection */
.v5 { display: grid; place-items: center; padding: 5%; }
.v5-card { width: 84%; border-radius: 6px; background: var(--black-soft); border: 1px solid var(--line); padding: 5% 6%; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6); }
.v5-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4%; }
.v5-dots { display: flex; gap: 5px; } .v5-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.v5-dots i:first-child { background: var(--gold); }
.v5-q { font-size: clamp(13px, 1.7vw, 16px); color: var(--cream); margin-bottom: 4%; line-height: 1.5; }
.v5-q b { color: var(--gold-light); font-weight: 400; font-size: 1.15em; }
.v5-opt { position: relative; font-size: clamp(11px, 1.4vw, 13.5px); color: rgba(245, 241, 230, 0.8); border: 1px solid var(--line); border-radius: 4px; padding: 2.6% 4%; margin-bottom: 2.4%; display: flex; justify-content: space-between; }
.v5-opt span { color: #1a1300; background: var(--gold); border-radius: 50%; width: 1.5em; height: 1.5em; display: grid; place-items: center; font-weight: 700; font-size: 0.85em; transform: scale(0); }
.v5-tap { position: absolute; left: 30%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255, 244, 214, 0.55); opacity: 0; }
.v5-reflect { font-size: clamp(11px, 1.35vw, 13px); color: rgba(245, 241, 230, 0.75); margin-top: 3.5%; padding-top: 3.5%; border-top: 1px solid var(--line); opacity: 0; }
.v5-reflect b { color: var(--gold-light); font-weight: 600; }
.auth-row.on .v5-tap { animation: v5-tap 0.8s ease 1.2s; }
.auth-row.on .v5-opt.right { animation: v5-right 0.4s ease 1.6s forwards; }
.auth-row.on .v5-opt.right span { animation: v1-tick-in 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1.7s forwards; }
.auth-row.on .v5-dots i:nth-child(2) { animation: v5-dot 0.3s ease 2.1s forwards; }
.auth-row.on .v5-reflect { animation: v2-in 0.6s ease 2.4s forwards; }
@keyframes v5-tap { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes v5-right { to { border-color: var(--gold); background: rgba(212, 175, 55, 0.14); color: var(--gold-light); } }
@keyframes v1-tick-in { to { transform: scale(1); } }
@keyframes v5-dot { to { background: var(--gold); } }
/*rtl:end:ignore*/

@media (max-width: 860px) {
  .auth-rows { padding-left: 30px; }
  .auth-rail { left: 6px; }
  .auth-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .auth-row::before { left: -30px; top: 22px; margin-top: 0; }
  .auth-row.flip .auth-copy { order: 0; }
  .auth-vis { justify-self: start; }
}
@media (max-width: 480px) {
  .auth-rows { padding-left: 24px; }
  .auth-rail { left: 4px; }
  .auth-row::before { left: -26px; width: 12px; height: 12px; }
  .auth-copy p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-row.on .auth-vis *, .auth-row.on .auth-vis *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .auth-row.on .v1-move { animation: none !important; }
}

/* =====================================================================
   Reading sizes. Body and descriptions outside cards: 22px on desktop down to 18px on phones (fluid in between);
   the hero description: 19px on phones up to 25px on big screens (fluid); descriptions inside cards: 17px. Line spacing 1.7 (Arabic keeps 1.85).
   ===================================================================== */
:root { --fs-body: clamp(18px, 16.34px + 0.442vw, 22px); --fs-hero: clamp(19px, 16.8px + 0.42vw, 25px); --fs-card: 17px; --lh-body: 1.7; }
html[lang="ar"] { --lh-body: 1.85; }
body { line-height: var(--lh-body); }
.section-sub, .split-copy p, .page-hero p, .book-hero p, .auth-copy p, .sponsor-copy p, .sponsor-copy li,
.reserve-copy .lead, .reserve-steps li, .contact-info p, .book-cta-band p, .empty-note p {
  font-size: var(--fs-body); line-height: var(--lh-body);
}
.hero-sub { font-size: var(--fs-hero); line-height: var(--lh-body); }
.mission-card p, .book-card p, .testi-card p.quote, .step p, .prize-note p, .team-card p.bio, .team-featured .bio, .team-grid .bio, .way p, .process-row p,
.auth-levels em, .faq-a, .st-body p, .st-how p {
  font-size: var(--fs-card); line-height: var(--lh-body);
}
/* wider measures so the larger text keeps comfortable line lengths */
.page-hero p { max-width: 680px; }
.auth-copy p, .auth-levels { max-width: 560px; }
.faq-item.open .faq-a { max-height: 420px; }

/* After You Read: with the sample quiz removed, the certificate reel and the prize note take the full width */
.rewards-grid { grid-template-columns: minmax(0, 1fr); }
.rewards-grid .prize-note { max-width: 760px; margin-left: auto; margin-right: auto; }

/* =====================================================================
   Our Target for 2026 (src/components/target-2026.js, js/target.js)
   ===================================================================== */
.tg-section { background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 55%), linear-gradient(180deg, var(--black), #0d0c0a 55%, var(--black)); }
.tg-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(212, 175, 55, 0.14); overflow: hidden; }
.tg-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep, #9c7a21), var(--gold-light)); box-shadow: 0 0 12px rgba(212, 175, 55, 0.6); transition: width 1.2s var(--ease); }
.tg-bar.big { height: 10px; margin: 22px 0 12px; }

/* the three book targets */
.tg-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tg-book { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.01)); border-radius: 6px; }
.tg-book img { flex: 0 0 74px; width: 74px; aspect-ratio: 1 / 1.414; object-fit: contain; background: #fff; border-radius: 2px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); }
.tg-book-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tg-book-num { font-family: 'Marcellus', serif; font-weight: 400; font-size: 38px; line-height: 1; color: var(--gold-light); }
.tg-book-of { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 241, 230, 0.6); margin-top: 6px; }
.tg-book-txt strong { font-family: 'Marcellus', serif; font-weight: 400; font-size: 19px; color: var(--cream); margin-top: 2px; }
.tg-book-txt em { font-style: normal; font-size: 13.5px; color: rgba(245, 241, 230, 0.6); margin-bottom: 12px; }
.tg-book-txt small { font-size: 12.5px; color: rgba(245, 241, 230, 0.65); margin-top: 7px; }
.tg-book-txt small span { color: var(--gold-light); font-weight: 600; }

/* the overall target */
.tg-total { margin-top: 18px; padding: 26px 30px 22px; border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 6px; background: linear-gradient(160deg, #17150f, #0d0c0a); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(212, 175, 55, 0.08); }
.tg-total-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tg-days { color: #1a1300; background: var(--gold); border-radius: 30px; padding: 5px 14px; letter-spacing: 0.08em; font-weight: 600; }
.tg-days b { font-weight: 700; }
.tg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; text-align: center; }
.tg-stats div { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.tg-stats div + div { border-left: 1px solid var(--line); }
.tg-stats b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; color: var(--gold-light); }
.tg-stats span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 241, 230, 0.62); }
.tg-progress { font-size: 15px; color: rgba(245, 241, 230, 0.75); text-align: center; }
.tg-progress b { color: var(--gold-light); font-weight: 600; }

/* the board: cities on one side, the map on the other */
.tg-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: clamp(34px, 5vw, 56px); }
.tg-list-head { margin-bottom: 14px; }
.tg-list-head h3 { font-size: clamp(24px, 2.6vw, 30px); color: var(--cream); margin-bottom: 8px; }
.tg-list-head p { font-size: 15.5px; line-height: 1.7; color: rgba(245, 241, 230, 0.72); }
.tg-city { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.012); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.tg-city:hover { border-color: rgba(212, 175, 55, 0.45); }
.tg-city.open { border-color: var(--gold); background: linear-gradient(160deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.015)); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9); }
.tg-city-btn { display: block; width: 100%; padding: 16px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.tg-city-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tg-city-name { font-family: 'Marcellus', serif; font-size: 23px; color: var(--cream); }
.tg-city.open .tg-city-name { color: var(--gold-light); }
.tg-city-state { flex: 0 0 auto; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.tg-city.full .tg-city-state { color: #1a1300; background: var(--gold); padding: 3px 10px; border-radius: 20px; letter-spacing: 0.08em; font-weight: 600; }
.tg-city-meta { display: block; font-size: 14px; color: rgba(245, 241, 230, 0.6); margin-top: 2px; }
.tg-seats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tg-seat { font-style: normal; font-size: 12.5px; line-height: 1.3; padding: 5px 11px; border-radius: 20px; border: 1px dashed rgba(212, 175, 55, 0.35); color: rgba(245, 241, 230, 0.5); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-seat b { font-weight: 500; color: rgba(212, 175, 55, 0.75); margin-inline-end: 6px; }
.tg-seat.taken { border-style: solid; border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.12); color: var(--gold-light); }
.tg-seat.taken b { color: var(--gold); }
.tg-seat.paid span::before { content: '✓ '; }

/* the pledge form (moved into the chosen city) */
.tg-form { padding: 2px 18px 20px; }
.tg-form[hidden] { display: none; }
.tg-form-title { font-size: 17px; color: rgba(245, 241, 230, 0.85); margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tg-form-title b { color: var(--gold-light); font-weight: 500; }
/* the books to sponsor: pick one, two or all three (a sponsored one shows its sponsor and cannot be picked) */
.tg-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tg-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.tg-pick img { width: 46px; aspect-ratio: 1 / 1.414; object-fit: contain; background: #fff; border-radius: 2px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); margin-bottom: 6px; transition: transform 0.3s var(--ease); }
.tg-pick b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 15px; line-height: 1.25; color: var(--cream); }
.tg-pick-sub { font-size: 11.5px; line-height: 1.35; color: rgba(245, 241, 230, 0.62); }
.tg-pick-by { font-size: 11.5px; line-height: 1.35; color: var(--gold); overflow-wrap: anywhere; }
.tg-pick-by:empty { display: none; }
.tg-pick::after { content: ""; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.45); background: transparent center / 11px no-repeat; transition: background-color 0.25s, border-color 0.25s; }
.tg-pick:hover:not(:disabled) { border-color: rgba(212, 175, 55, 0.6); }
.tg-pick:hover:not(:disabled) img { transform: translateY(-2px); }
.tg-pick.on { border-color: var(--gold); background: rgba(212, 175, 55, 0.13); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35); }
.tg-pick.on b { color: var(--gold-light); }
.tg-pick.on::after { border-color: var(--gold); background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23120d00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tg-pick:disabled { cursor: not-allowed; border-style: dashed; }
.tg-pick:disabled img { opacity: 0.35; }
.tg-pick:disabled b, .tg-pick:disabled .tg-pick-sub { opacity: 0.45; }
.tg-pick:disabled::after { display: none; }
.tg-pick:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.tg-sum { font-size: 14px; line-height: 1.55; color: rgba(245, 241, 230, 0.75); margin: 12px 0 16px; text-align: center; }
.tg-form .field { margin-bottom: 14px; }
.tg-show { margin: 4px 0 16px; }
.tg-confirm { width: 100%; justify-content: center; }
.tg-note { font-size: 13px; line-height: 1.55; color: rgba(245, 241, 230, 0.6); margin-top: 10px; text-align: center; }
.tg-err { min-height: 1em; margin-top: 8px; font-size: 14px; color: #f0b3a5; text-align: center; }
.tg-err:empty { display: none; }
.tg-thanks { margin: 0 18px 18px; padding: 18px 20px; border: 1px solid var(--gold); border-radius: 6px; background: rgba(212, 175, 55, 0.1); animation: tg-rise 0.6s var(--ease); }
.tg-thanks h4 { font-size: 22px; color: var(--gold-light); margin-bottom: 6px; }
.tg-thanks p { font-size: 15px; line-height: 1.65; color: rgba(245, 241, 230, 0.85); }
.tg-thanks .tg-ref { margin: 8px 0 14px; font-size: 13.5px; color: rgba(245, 241, 230, 0.65); }
.tg-thanks code { color: var(--gold-light); font-size: 14px; letter-spacing: 0.04em; }
@keyframes tg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the map */
.tg-mapwrap { position: sticky; top: 92px; }
.tg-map { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 40% 40%, rgba(212, 175, 55, 0.08), transparent 65%), linear-gradient(160deg, #15130e, #0a0908); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
/*rtl:begin:ignore*/
.tg-map svg { direction: ltr; display: block; width: 100%; height: auto; max-height: 78vh; margin: 0 auto; }
/*rtl:end:ignore*/
.tg-land { fill: rgba(212, 175, 55, 0.07); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.25)); }
.tg-land-dots { stroke: none; pointer-events: none; }
.tg-pin { cursor: pointer; outline: none; }
.tg-halo { fill: url(#tgglow); opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.tg-pin.some .tg-halo { opacity: 0.35; }
.tg-pin.full .tg-halo { opacity: 0.75; }
.tg-pin.lit .tg-halo { animation: tg-lit 2.6s ease-out; }
@keyframes tg-lit { 0% { opacity: 1; transform: scale(0.6); } 35% { opacity: 1; transform: scale(2.1); } 100% { opacity: 0.6; transform: scale(1); } }
.tg-halo { transform-box: fill-box; transform-origin: center; }
.tg-arc { fill: none; stroke: rgba(212, 175, 55, 0.28); stroke-width: 3.4; stroke-linecap: round; transition: stroke 0.7s, filter 0.7s; }
.tg-arc.on { stroke: var(--gold-light); filter: drop-shadow(0 0 3px rgba(244, 215, 125, 0.8)); }
.tg-arc.on.late { stroke: rgba(212, 175, 55, 0.28); filter: none; }
.tg-dot { fill: var(--black); stroke: var(--gold); stroke-width: 3; transition: fill 0.4s; }
.tg-pin.some .tg-dot { fill: var(--gold); }
.tg-pin.full .tg-dot { fill: var(--gold-light); }
.tg-pin:hover .tg-dot, .tg-pin:focus-visible .tg-dot, .tg-pin.sel .tg-dot { fill: var(--gold-light); }
.tg-name { fill: var(--cream); font-size: 19px; font-family: 'Jost', sans-serif; font-weight: 400; paint-order: stroke; stroke: var(--black); stroke-width: 5px; stroke-linejoin: round; transition: fill 0.3s, font-size 0.6s; pointer-events: none; }
.tg-pin.sel .tg-name, .tg-pin:hover .tg-name { fill: var(--gold-light); }
.tg-pin:focus-visible .tg-name { text-decoration: underline; }
.tg-map.zoomed .tg-name { font-size: 11px; stroke-width: 3px; }
.tg-pin { transition: opacity 0.5s; }
.tg-map.zoomed .tg-pin:not(.sel) { opacity: 0.35; }
.tg-map.zoomed .tg-pin:not(.sel) .tg-name { opacity: 0; }
.tg-tag rect { fill: #15130d; stroke: var(--gold); stroke-width: 1; }
.tg-tag text { fill: var(--gold-light); font-size: 9.5px; font-family: 'Jost', sans-serif; font-weight: 500; }
.tg-tag.open rect { fill: rgba(21, 19, 13, 0.85); stroke: rgba(212, 175, 55, 0.5); stroke-dasharray: 3 2.5; }
.tg-tag.open text { fill: rgba(245, 241, 230, 0.6); font-weight: 400; }
.tg-tagline { stroke: rgba(212, 175, 55, 0.6); stroke-width: 0.8; }
.tg-tagline.open { stroke-dasharray: 2 2; stroke: rgba(212, 175, 55, 0.35); }
.tg-tag.pop { transform-box: fill-box; }
.tg-tag.pop rect, .tg-tag.pop text { transform-box: fill-box; transform-origin: center; animation: tg-pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tg-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tg-burst { fill: none; stroke: var(--gold-light); stroke-width: 2.5; }
.tg-spark { fill: #fff2c2; }
.tg-float { font-family: 'Marcellus', serif; font-size: 17px; fill: var(--gold-light); paint-order: stroke; stroke: #0a0908; stroke-width: 4px; stroke-linejoin: round; }
.tg-back { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); background: rgba(10, 9, 8, 0.8); border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; cursor: pointer; }
.tg-back::before { content: '← '; }
html[lang="ar"] .tg-back::before { content: '→ '; }
.tg-back[hidden] { display: none; }
.tg-map-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-size: 14.5px; line-height: 1.5; text-align: center; color: rgba(245, 241, 230, 0.85); background: linear-gradient(transparent, rgba(10, 9, 8, 0.92) 45%); pointer-events: none; }

@media (max-width: 900px) {
  .tg-books { grid-template-columns: minmax(0, 1fr); }
  .tg-board { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tg-mapwrap { position: relative; top: 0; order: -1; }
  .tg-map svg { max-height: 62vh; }
}
@media (max-width: 480px) {
  .tg-total { padding: 20px 16px 18px; }
  .tg-stats b { font-size: 26px; }
  .tg-stats span { font-size: 10.5px; letter-spacing: 0.12em; }
  .tg-city-btn { padding: 14px 14px; }
  .tg-city-name { font-size: 21px; }
  .tg-form { padding: 2px 14px 18px; }
  .tg-picks { gap: 6px; }
  .tg-pick { padding: 10px 5px 9px; }
  .tg-pick img { width: 40px; }
  .tg-pick b { font-size: 13.5px; }
  .tg-pick-sub, .tg-pick-by { font-size: 10.5px; }
  .tg-pick::after { top: 5px; right: 5px; width: 16px; height: 16px; background-size: 10px; }
  .tg-book { padding: 14px; }
  .tg-book img { flex-basis: 62px; width: 62px; }
  .tg-book-num { font-size: 32px; }
}
@media (max-width: 600px) {
  .tg-books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tg-book { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding: 12px 8px; }
  .tg-book img { flex: 0 0 auto; width: 54%; margin: 0 auto; }
  .tg-book-num { font-size: 24px; }
  .tg-book-of { font-size: 9.5px; letter-spacing: 0.1em; margin-top: 4px; }
  .tg-book-txt strong { font-size: 13.5px; line-height: 1.25; }
  .tg-book-txt em { font-size: 10.5px; line-height: 1.35; margin-bottom: 8px; }
  .tg-book-txt small { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .tg-pin.lit .tg-halo, .tg-thanks, .tg-tag.pop rect, .tg-tag.pop text { animation: none; } }

/* Every book, every city: a card per city under the board (js/target.js fills it from the same live board).
   A bar per book fills when it is sponsored; a card reads Open, then Pending, then Done once all its books are paid. */
.tgc-section { padding: var(--sec-pad) 0; background: linear-gradient(180deg, var(--black), #0d0c0a 50%, var(--black)); }
.tgc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tgc-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--black-soft); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tgc-card:hover { border-color: rgba(212, 175, 55, 0.6); transform: translateY(-4px); }
.tgc-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tgc-card h3 { font-size: 20px; letter-spacing: 0.04em; color: var(--cream); }
.tgc-pill { font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line); color: rgba(245, 241, 230, 0.7); white-space: nowrap; }
.tgc-card[data-state="pending"] .tgc-pill { color: var(--gold-light); border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.1); }
.tgc-card[data-state="pending"] .tgc-pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); margin-inline-end: 7px; vertical-align: 1px; animation: tgc-blink 1.8s ease-in-out infinite; }
.tgc-card[data-state="done"] { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 24px 44px -30px rgba(212, 175, 55, 0.45); }
.tgc-card[data-state="done"] .tgc-pill { color: #120d00; border-color: transparent; background: linear-gradient(120deg, var(--gold-light), var(--gold)); }
.tgc-card[data-state="done"] .tgc-pill::before { content: '✓ '; }
.tgc-sum { font-size: 13px; color: rgba(245, 241, 230, 0.5); }
.tgc-sum b { color: var(--gold-light); font-weight: 500; }
.tgc-books { list-style: none; display: grid; gap: 12px; margin: 2px 0 0; padding: 0; }
.tgc-books li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 8px; font-size: 11.5px; }
.tgc-bk { color: rgba(245, 241, 230, 0.75); }
.tgc-num { color: rgba(245, 241, 230, 0.45); text-align: end; white-space: nowrap; }
.tgc-num b { font-weight: 500; color: rgba(245, 241, 230, 0.6); }
.tgc-books li.taken .tgc-num b { color: var(--gold-light); }
.tgc-books .tg-bar { grid-column: 1 / -1; height: 4px; }
.tgc-books .tg-bar i { transition: width 1.4s var(--ease) 0.3s; }
.tgc-books li:nth-child(2) .tg-bar i { transition-delay: 0.45s; }
.tgc-books li:nth-child(3) .tg-bar i { transition-delay: 0.6s; }
/* a card's bars fill as it comes into view (main.js adds .in), so the fill is seen rather than done off screen */
.tgc-card.reveal.js-armed:not(.in) .tg-bar i { width: 0 !important; }
.tgc-who { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.tgc-name { min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--cream); overflow-wrap: anywhere; }
.tgc-tag { flex: 0 0 auto; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.5); }
.tgc-books li.paid .tgc-tag { color: #120d00; background: var(--gold); border-color: var(--gold); }
.tgc-books li.paid .tgc-tag::before { content: '✓ '; }
.tgc-take { padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; color: rgba(212, 175, 55, 0.85); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.35); text-underline-offset: 3px; transition: color 0.25s, text-decoration-color 0.25s; }
.tgc-take:hover, .tgc-take:focus-visible { color: var(--gold-light); text-decoration-color: var(--gold-light); }
@keyframes tgc-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
html[lang="ar"] .tgc-pill, html[lang="ar"] .tgc-tag { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 11.5px; text-transform: none; }
@media (max-width: 1100px) { .tgc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tgc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tgc-card { padding: 16px 14px; } }
@media (max-width: 480px) {
  .tgc-grid { gap: 10px; }
  .tgc-card { padding: 14px 11px 13px; gap: 10px; }
  .tgc-card h3 { font-size: 18px; letter-spacing: 0.02em; }
  .tgc-sum { font-size: 12px; }
  .tgc-books { gap: 10px; }
  .tgc-books li, .tgc-take { font-size: 11px; }
  .tgc-who { flex-wrap: wrap; gap: 4px 6px; }
  .tgc-name { font-size: 12px; }
}
@media (max-width: 350px) { .tgc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tgc-card[data-state="pending"] .tgc-pill::before { animation: none; } .tgc-card:hover { transform: none; } .tgc-books .tg-bar i { transition: none; } }
/* keep live rupee amounts reading left to right inside Arabic sentences */
/*rtl:begin:ignore*/
#tgAmount { unicode-bidi: isolate; direction: ltr; display: inline-block; }
/*rtl:end:ignore*/

/* badges and chips never break onto a second line (their rows wrap instead) */
.auth-chips span, .tg-days, .tg-city-state, .city-pill, .st-pill, .tg-back, .kc-pill { white-space: nowrap; }
@media (min-width: 481px) { .tg-stats b { white-space: nowrap; } }   /* on phones a long figure (e.g. the Arabic "30 lakh rupees") may wrap rather than push the page sideways */

/* ==========================================================================
   Reading Garden: sign-in, 100-flower garden, reading view, sharing (js/garden.js, js/garden-art.js)
   ========================================================================== */
.g-pulse { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: -8px auto 22px; font-size: 14px; color: rgba(245, 241, 230, 0.72); }
.g-pulse[hidden], .g-invited[hidden], .g-hello[hidden], .g-tools[hidden], .g-board[hidden] { display: none; }
.g-pulse b { color: var(--gold-light); font-weight: 600; }
.g-live { width: 8px; height: 8px; border-radius: 50%; background: #5fbf7a; box-shadow: 0 0 0 0 rgba(95, 191, 122, 0.6); animation: g-live 2s infinite; }
@keyframes g-live { 70% { box-shadow: 0 0 0 8px rgba(95, 191, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 191, 122, 0); } }
.g-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(212, 175, 55, 0.5); }
.g-invited { text-align: center; color: var(--gold-light); margin: -6px auto 18px; font-size: 16px; }
.g-hello { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: 0 auto 22px; font-size: 16px; color: rgba(245, 241, 230, 0.8); }
.g-hello b { color: var(--cream); font-weight: 600; }
.g-chip { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--gold-light); letter-spacing: 0.04em; white-space: nowrap; }
.g-link { background: none; border: 0; color: rgba(245, 241, 230, 0.6); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.g-link:hover { color: var(--gold-light); }
.g-link[hidden] { display: none; }
.g-small { font-size: 13px; }

/* the 100 plots */
.g-field-wrap { position: relative; max-width: 660px; margin: 0 auto 18px; }
.garden-field.g-hundred { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px 4px; max-width: none; margin: 0; padding: 14px 12px 10px; }
.g-hundred .plot { aspect-ratio: 1 / 1.3; }
.g-hundred .plot .soil { width: 52%; height: 5px; background: #3e2e19; }
.g-hundred button.plot { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.plot.next .seed { display: block; width: 34%; aspect-ratio: 1; margin-bottom: 3px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 35%, #fbe7a6, var(--gold) 55%, var(--gold-deep)); }
.plot.next.ready .seed { animation: g-seed 1.8s ease-in-out infinite; }
.plot.next.ready::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(244, 215, 125, 0.35), rgba(244, 215, 125, 0) 70%); pointer-events: none; animation: g-glow 1.8s ease-in-out infinite; }
.plot.next.locked .seed { filter: grayscale(0.6) brightness(0.7); }
.plot.next .lock { position: absolute; top: 18%; left: 50%; width: 42%; transform: translateX(-50%); fill: none; stroke: rgba(245, 241, 230, 0.55); stroke-width: 2; stroke-linecap: round; }
@keyframes g-seed { 50% { transform: translateY(-3px) scale(1.08); } }
@keyframes g-glow { 50% { opacity: 0.45; transform: translateX(-50%) scale(1.25); } }
.fl .fl-leaf.r { fill: #7aa864; }
.fl.crown .fl-head { filter: drop-shadow(0 0 8px rgba(244, 215, 125, 1)); }
.fl-bell .fl-head, .fl-tulip .fl-head { animation-duration: 6s; }

/* a new flower grows: stem, leaves, then the bloom */
.g-hundred .plot.grow svg { animation: none; }
.plot.grow .fl-stem { stroke-dasharray: 60; stroke-dashoffset: 60; animation: g-stem 0.8s 0.1s ease-out forwards; }
.plot.grow .fl-leaf { transform-box: fill-box; transform-origin: 100% 100%; transform: scale(0); animation: g-leaf 0.5s 0.6s ease-out forwards; }
.plot.grow .fl-leaf.r { transform-origin: 0 100%; animation-delay: 0.75s; }
.plot.grow .fl-head { transform: scale(0) rotate(-120deg); animation: g-bloom 0.9s 0.95s cubic-bezier(0.2, 1.5, 0.4, 1) forwards, fl-sway 5s 2s ease-in-out infinite; }
@keyframes g-stem { to { stroke-dashoffset: 0; } }
@keyframes g-leaf { to { transform: scale(1); } }
@keyframes g-bloom { to { transform: scale(1) rotate(0); } }
.g-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.g-fx i { position: absolute; width: 7px; height: 7px; border-radius: 50%; opacity: 0; animation: g-burst 1.8s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
.g-fx i.petal { width: 9px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
@keyframes g-burst { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }

/* progress to 100 days in a row */
.g-path { position: relative; max-width: 560px; margin: 0 auto 38px; padding: 0 10px; }
.g-path-bar { height: 6px; border-radius: 99px; background: rgba(245, 241, 230, 0.08); overflow: hidden; }
.g-path-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: width 1.2s var(--ease); }
.g-marks { position: relative; height: 22px; }
.g-marks span { position: absolute; top: 6px; left: var(--p); transform: translateX(-50%); font-size: 12px; color: rgba(245, 241, 230, 0.4); }
.g-marks span::before { content: ""; position: absolute; top: -12px; left: 50%; width: 2px; height: 8px; margin-left: -1px; background: rgba(245, 241, 230, 0.18); }
.g-marks span.on { color: var(--gold-light); }
.g-marks span.on::before { background: var(--gold-light); }

.garden-act .g-main { min-width: 260px; justify-content: center; }
.garden-act .btn.done { background: transparent; color: var(--gold-light); border-color: var(--line); }
.btn.nudge { animation: g-nudge 0.45s; }
@keyframes g-nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.g-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.g-tool { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); background: rgba(245, 241, 230, 0.03); color: var(--cream); font: inherit; font-size: 14px; cursor: pointer; border-radius: 99px; transition: border-color 0.3s, background 0.3s; }
.g-tool:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.08); }
.g-tool[hidden] { display: none; }
.g-tool svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.g-tool.g-gold { border-color: var(--gold); color: var(--gold-light); }

.g-board { max-width: 420px; margin: 30px auto 6px; padding: 18px 22px; border: 1px solid var(--line); background: rgba(245, 241, 230, 0.02); }
.g-board-head { text-align: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.g-board ol { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.g-board li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(212, 175, 55, 0.1); counter-increment: g; font-size: 15px; }
.g-board li:first-child { border-top: 0; }
.g-board li::before { content: counter(g); width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 175, 55, 0.12); color: var(--gold-light); font-size: 12px; }
.g-board .g-bn { flex: 1; min-width: 0; color: rgba(245, 241, 230, 0.85); }
.g-board b { color: var(--gold-light); font-weight: 600; }
.g-board b::after { content: " \1F525"; font-weight: 400; }

/* dialogs */
html.g-lock, html.g-lock body { overflow: hidden; }
.g-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(5, 4, 2, 0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s; }
.g-modal.show { opacity: 1; }
.g-modal[hidden] { display: none; }
.g-sheet { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px 30px 28px; background: linear-gradient(180deg, #17140e, #0f0d0a); border: 1px solid rgba(212, 175, 55, 0.35); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); transform: translateY(18px) scale(0.98); transition: transform 0.3s var(--ease); color: var(--cream); }
.g-modal.show .g-sheet { transform: none; }
.g-modal:not(.show) .g-sheet { pointer-events: none; }
.g-sheet h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 28px; text-align: center; margin: 0 0 8px; color: var(--cream); }
.g-sub { text-align: center; color: rgba(245, 241, 230, 0.7); font-size: 15px; margin: 0 auto 22px; max-width: 400px; }
.g-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: rgba(245, 241, 230, 0.6); font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.g-x:hover { color: var(--gold-light); }
.g-join-art { width: 90px; margin: 0 auto 6px; }
.g-join-art svg { width: 100%; overflow: visible; }
.g-modal.show .g-sprout { stroke-dasharray: 34; stroke-dashoffset: 34; animation: g-stem 0.8s 0.2s forwards; }
.g-modal.show .g-sprout-l, .g-modal.show .g-sprout-r, .g-modal.show .g-sprout-bud { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); animation: g-leaf 0.5s forwards; }
.g-modal.show .g-sprout-l { animation-delay: 0.7s; }
.g-modal.show .g-sprout-r { animation-delay: 0.85s; }
.g-modal.show .g-sprout-bud { animation-delay: 1s; }
.g-when-back { display: none; }
.g-modal.back .g-when-back { display: revert; }
.g-modal.back .g-when-join { display: none; }
#gJoinForm { display: grid; gap: 14px; }
.g-field { display: grid; gap: 7px; font-size: 14px; color: rgba(245, 241, 230, 0.75); }
.g-field small { color: rgba(245, 241, 230, 0.45); }
.g-field input, .g-field select { width: 100%; min-width: 0; padding: 13px 14px; background: rgba(245, 241, 230, 0.04); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--cream); font: inherit; font-size: 16px; border-radius: 0; }
.g-field input:focus, .g-field select:focus { outline: none; border-color: var(--gold); background: rgba(245, 241, 230, 0.07); }
.g-field select option { background: #17140e; color: var(--cream); }
.g-phone { display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); gap: 8px; }
.g-phone input { direction: ltr; }
.g-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(245, 241, 230, 0.75); cursor: pointer; }
.g-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: 0 0 auto; }
.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.g-err { min-height: 1.2em; margin: 0; color: #f0a49b; font-size: 14px; text-align: center; }
.g-err:empty { min-height: 0; }
.g-wide { width: 100%; justify-content: center; }
.g-fine { font-size: 12.5px; color: rgba(245, 241, 230, 0.5); line-height: 1.55; margin: 0; }
.g-center { text-align: center; }
#gJoinForm .g-link { justify-self: center; }

/* reading */
.g-reader { width: min(680px, 100%); padding-top: 26px; display: flex; flex-direction: column; }
.g-read-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: 0 40px 14px; }
.g-ref { font-size: 14px; color: rgba(245, 241, 230, 0.65); }
.g-sheet h3.g-read-title { font-size: 26px; color: var(--gold-light); min-height: 1.2em; }
.g-read-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 4px 4px; text-align: center; }
.g-ayah { font-family: 'Amiri', serif; font-size: clamp(26px, 4.6vw, 36px); line-height: 2.05; color: var(--cream); margin: 6px 0 18px; }
.g-trans { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.7; color: rgba(245, 241, 230, 0.88); margin: 0 auto 10px; max-width: 560px; }
.g-attrib { font-size: 12px; letter-spacing: 0.08em; color: rgba(245, 241, 230, 0.4); margin: 0; }
.g-read-load { display: none; align-items: center; justify-content: center; gap: 12px; padding: 60px 0; color: rgba(245, 241, 230, 0.7); }
.g-modal.loading .g-read-load { display: flex; }
.g-modal.loading .g-read-body, .g-modal.loading .g-read-tools { display: none; }
.g-modal.failed .g-read-body, .g-modal.failed .g-read-tools, .g-modal.failed .g-timer { display: none; }
.g-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(212, 175, 55, 0.25); border-top-color: var(--gold); animation: g-spin 0.8s linear infinite; }
@keyframes g-spin { to { transform: rotate(360deg); } }
.g-read-tools { display: flex; justify-content: center; margin: 14px 0 4px; }
.g-read-tools .g-tool .g-pause, .g-read-tools .g-tool.playing .g-play { display: none; }
.g-read-tools .g-tool.playing .g-pause { display: inline; }
.g-read-tools .g-tool svg { fill: var(--gold-light); stroke: none; }
.g-read-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(212, 175, 55, 0.15); }
.g-timer { position: relative; width: 52px; height: 52px; flex: 0 0 auto; }
.g-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-timer circle { fill: none; stroke-width: 3; stroke: rgba(245, 241, 230, 0.1); }
.g-timer #gRing { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.25s linear; }
.g-timer span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.g-plant { min-width: 230px; justify-content: center; }
.g-plant:disabled { opacity: 0.55; cursor: default; }
.g-plant:disabled:hover { color: #120d00; letter-spacing: 0.18em; }
.g-plant:disabled::before { display: none; }
.g-modal.ready .g-plant { animation: g-pop 0.5s; }
@keyframes g-pop { 50% { transform: scale(1.05); } }
#gRHint { margin-top: 12px; }
#gRHint.paused { color: var(--gold-light); }

/* sharing */
.g-sharer { width: min(560px, 100%); }
.g-tpls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.g-tpls button { padding: 7px 14px; border: 1px solid var(--line); background: none; color: rgba(245, 241, 230, 0.7); font: inherit; font-size: 13px; border-radius: 99px; cursor: pointer; }
.g-tpls button.on { background: var(--gold); border-color: var(--gold); color: #120d00; font-weight: 600; }
.g-tpls button[hidden] { display: none; }
.g-canvas { display: flex; justify-content: center; margin-bottom: 16px; }
.g-canvas canvas { width: auto; max-width: 100%; height: min(46dvh, 470px); aspect-ratio: 1080 / 1350; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9); border: 1px solid rgba(212, 175, 55, 0.25); }
.g-modal.landscape .g-canvas canvas { height: auto; width: 100%; aspect-ratio: 1754 / 1240; }
.g-share-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g-share-row .btn { grid-column: 1 / -1; justify-content: center; }
.g-sbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--line); background: rgba(245, 241, 230, 0.03); color: var(--cream); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none; transition: border-color 0.3s; }
.g-sbtn:hover { border-color: var(--gold); }
.g-sbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-sbtn.g-wa svg { fill: #25d366; stroke: none; }
.g-sbtn.g-wa { grid-column: span 2; flex-direction: row; justify-content: center; border-color: rgba(37, 211, 102, 0.5); }
.g-share-more { display: flex; justify-content: center; gap: 18px; margin: 12px 0 10px; font-size: 13px; }
.g-share-more a { color: rgba(245, 241, 230, 0.6); text-decoration: underline; text-underline-offset: 3px; }
.g-share-more a:hover { color: var(--gold-light); }
.g-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1300; transform: translate(-50%, 20px); padding: 12px 20px; background: #f4d77d; color: #120d00; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* the garden is complete: all 100 flowers fly in from everywhere and settle into their plots, the garden glows, petals
   burst, then the certificate and sharing (js/garden.js finale) */
.garden-field.complete { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.55), 0 0 46px -10px rgba(244, 215, 125, 0.55); }
.g-modal.g-modal-done { align-items: center; padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, rgba(40, 32, 12, 0.9), rgba(5, 4, 2, 0.94)); }
.g-done { position: relative; width: min(560px, 100%); text-align: center; color: var(--cream); padding: 6px 0; }
.g-modal:not(.show) .g-done { pointer-events: none; }
.g-done .g-x { top: -8px; right: -4px; }
.g-done-eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.g-done h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 40px 18px; color: var(--gold-light); }
.g-done-stage { position: relative; width: max(200px, min(86vw, 420px, calc((100dvh - 340px) / 1.3))); margin: 0 auto 20px; }
.g-done-field { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0 2px; padding: 12px 8px 8px; border-radius: 8px; background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(58, 43, 24, 0.65)); border-bottom: 3px solid #3a2b18; transition: box-shadow 1.2s; }
.g-done-field .plot { aspect-ratio: 1 / 1.3; }
.g-modal.show .g-done-field .plot svg { animation: g-fly 1.25s var(--d) cubic-bezier(0.22, 0.9, 0.3, 1) both; }
@keyframes g-fly {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.4); }
  20% { opacity: 1; }
  82% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1.2); }
  100% { opacity: 1; transform: none; }
}
.g-modal.landed .g-done-field { box-shadow: 0 0 0 2px var(--gold), 0 0 80px -4px rgba(244, 215, 125, 0.6); }
.g-done-stage .g-fx i { animation-duration: 2.6s; }
.g-done-text { opacity: 0; transform: translateY(14px); transition: opacity 0.7s, transform 0.7s var(--ease); }
.g-modal.landed .g-done-text { opacity: 1; transform: none; }
.g-done-sub { font-size: 17px; margin: 0 0 16px; color: var(--cream); }
.g-done-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; }
.g-done-acts [hidden] { display: none; }
#gDoneNote { max-width: 420px; margin: 0 auto; }
@media (max-height: 560px) { .g-modal.g-modal-done { overflow-y: auto; align-items: start; } }
@media (prefers-reduced-motion: reduce) {
  .g-modal.show .g-done-field .plot svg { animation: none; }
  .g-done-text { transition: none; }
}

@media (max-width: 600px) {
  .garden-field.g-hundred { gap: 0 1px; padding: 10px 4px 8px; }
  .g-modal { padding: 0; align-items: end; }
  .g-sheet { width: 100%; max-height: 94dvh; padding: 28px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(40px); border-left: 0; border-right: 0; border-bottom: 0; }
  .g-read-foot { gap: 12px; }
  .g-plant { min-width: 0; flex: 1; padding-left: 16px; padding-right: 16px; }
  .g-share-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-sbtn.g-wa { grid-column: 1 / -1; }
  .g-canvas canvas { height: min(40dvh, 420px); }
  .g-board { margin-top: 24px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .plot.grow .fl-stem, .plot.grow .fl-leaf, .plot.grow .fl-head { animation: none; transform: none; stroke-dashoffset: 0; }
  .plot.next.ready .seed, .plot.next.ready::after, .g-live { animation: none; }
}

/* the /garden page: the garden is the first thing on it, then "How it works" */
.garden-page .garden-section { padding-top: 130px; }
.g-how { padding: 20px 0 90px; }
.g-how .section-head { margin-bottom: 34px; }
.g-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.g-how-card { position: relative; padding: 30px 26px 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--black-soft), #0d0c0a); }
.g-how-card h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 26px; color: var(--cream); margin: 14px 0 8px; }
.g-how-card p { color: rgba(245, 241, 230, 0.75); font-size: 17px; line-height: 1.65; margin: 0; }
.g-how-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-family: 'Marcellus', serif; font-size: 20px; }
.g-how-note { max-width: 680px; margin: 30px auto 0; text-align: center; color: rgba(245, 241, 230, 0.6); font-size: 15px; }
@media (max-width: 800px) {
  .g-how-grid { grid-template-columns: minmax(0, 1fr); }
  .garden-page .garden-section { padding-top: 104px; }
}

.g-all { display: block; margin: -8px auto 22px; font-size: 13px; }
.g-lib { display: table; margin: 14px auto 0; font-size: 14px; color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.4); text-underline-offset: 4px; }
.g-lib::after { content: ' →'; }
html[lang="ar"] .g-lib::after { content: ' ←'; }
.g-all .g-when-all, .g-all.all .g-when-few { display: none; }
.g-all.all .g-when-all { display: inline; }

/* 2026 target on phones: the big figures size themselves to their own card or column (cqw), so "10,000", "30,000" and
   "₹30 Lakh" fit on the narrowest phones and with larger text settings. Older browsers keep the fixed sizes before. */
@media (max-width: 600px) {
  .tg-book-txt, .tg-stats div { container-type: inline-size; }
  .tg-book-num { font-size: 21px; font-size: clamp(14px, 23cqw, 24px); white-space: nowrap; }
  .tg-stats b { font-size: 22px; font-size: clamp(15px, 20cqw, 26px); white-space: nowrap; }
  .tg-stats span { font-size: 9.5px; font-size: clamp(8px, 9cqw, 10.5px); letter-spacing: 0.06em; }
  .tg-book-of { font-size: 9px; font-size: clamp(7.5px, 8.6cqw, 9.5px); letter-spacing: 0.06em; }
}

/* =====================================================================
   Our 7-Point Strategy (src/components/strategy.html, js/strategy.js)
   A golden path runs down the middle and fills as you scroll; a point's number lights when the path reaches it, and
   its picture slides in and starts its own small loop. Every picture's resting state is its finished state and the
   loops only run under .on, so without the script (or with reduced motion) the section shows complete and still.
   The script adds .s7-armed to the section, .on to a point once it has come into view, .run while it is on screen
   (loops pause off screen) and .lit once the path has reached its number.
   ===================================================================== */
.s7-section { padding: var(--sec-pad) 0; overflow: hidden; background: radial-gradient(ellipse 70% 36% at 50% 0%, rgba(212, 175, 55, 0.07), transparent 70%); }
.s7-journey { position: relative; max-width: 1060px; margin: 0 auto; }
.s7-track { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; border-radius: 2px; background: rgba(212, 175, 55, 0.16); pointer-events: none; }
.s7-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); box-shadow: 0 0 12px rgba(212, 175, 55, 0.55); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.s7-tip { position: absolute; top: -7px; left: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(244, 215, 125, 0.18), 0 0 22px 4px rgba(244, 215, 125, 0.6); opacity: 0; }
.s7-armed .s7-tip { opacity: 1; }

.s7-path { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.s7-step { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); column-gap: clamp(24px, 3.4vw, 48px); align-items: center; }
.s7-node { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); background: radial-gradient(circle at 50% 35%, #2a2416, var(--black) 70%); color: var(--gold-light); font-family: 'Marcellus', serif; font-size: 24px; line-height: 1; box-shadow: 0 0 0 6px var(--black), 0 0 0 7px rgba(212, 175, 55, 0.24), 0 0 34px rgba(212, 175, 55, 0.35); transition: border-color 0.5s, color 0.5s, box-shadow 0.6s var(--ease), transform 0.6s var(--ease); }
.s7-node::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold-light); opacity: 0; pointer-events: none; }
.s7-armed .s7-step:not(.lit) .s7-node { border-color: rgba(212, 175, 55, 0.3); color: rgba(245, 241, 230, 0.4); box-shadow: 0 0 0 6px var(--black), 0 0 0 7px rgba(212, 175, 55, 0.08), 0 0 0 rgba(212, 175, 55, 0); transform: scale(0.86); }
.s7-armed .s7-step.lit .s7-node::after { animation: s7-ping 1.1s var(--ease); }

.s7-vis { grid-column: 1; grid-row: 1; justify-self: end; position: relative; width: 100%; max-width: 440px; margin: 0; aspect-ratio: 240 / 150; padding: 5% 6%; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, rgba(212, 175, 55, 0.12), transparent 65%), linear-gradient(180deg, #16140f, #0c0b09); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(244, 215, 125, 0.08); transition: border-color 0.4s, box-shadow 0.4s; }
.s7-vis::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(212, 175, 55, 0.16) 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 50%, #000 15%, transparent 72%); }
.s7-vis:hover { border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), 0 0 42px -12px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(244, 215, 125, 0.12); }
.s7-vis svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.s7-copy { grid-column: 3; grid-row: 1; }
.s7-copy::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 16px; }
.s7-copy h3 { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.25; color: var(--cream); margin-bottom: 12px; }
.s7-copy p { font-size: var(--fs-card); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.72); max-width: 440px; }
.s7-step:nth-child(even) .s7-vis { grid-column: 3; justify-self: start; }
.s7-step:nth-child(even) .s7-copy { grid-column: 1; text-align: end; }
.s7-step:nth-child(even) .s7-copy::before, .s7-step:nth-child(even) .s7-copy p { margin-inline-start: auto; }

/* "Coming soon" on the video book */
.s7-soon { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(244, 215, 125, 0.5); background: rgba(10, 10, 11, 0.72); color: var(--gold-light); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2; }
.s7-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px var(--gold-light); }
html[lang="ar"] .s7-soon { font-size: 12.5px; text-transform: none; font-family: 'Reem Kufi', 'Jost', sans-serif; }

/* the goal */
.s7-goal { position: relative; max-width: 880px; margin: clamp(64px, 8vw, 110px) auto 0; padding: clamp(30px, 4.6vw, 54px) clamp(22px, 5vw, 64px) clamp(34px, 5vw, 58px); text-align: center; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 70%), linear-gradient(180deg, #15130f, #0b0a09); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(244, 215, 125, 0.1); }
.s7-goal::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.s7-chain { max-width: 520px; margin: 0 auto 22px; }
.s7-chain svg { width: 100%; height: auto; overflow: visible; }
.s7-goal .eyebrow { justify-content: center; margin-bottom: 14px; }
.s7-goal .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.s7-not { font-family: 'Marcellus', serif; font-size: clamp(19px, 2.2vw, 25px); color: rgba(245, 241, 230, 0.62); margin-bottom: 12px; }
.s7-are { font-family: 'Marcellus', serif; font-size: clamp(24px, 3.3vw, 38px); line-height: 1.35; max-width: 760px; margin: 0 auto; }
html[lang="ar"] .s7-not { font-family: 'Aref Ruqaa', 'Amiri', serif; }
html[lang="ar"] .s7-are { line-height: 1.6; }

/* ---- the pictures: shared strokes and fills ---- */
.s7-vis svg *, .s7-chain svg * { transform-box: fill-box; transform-origin: center; }
.s7-vis .sf { fill: rgba(212, 175, 55, 0.09); stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.s7-vis .ln { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s7-vis .gd { fill: var(--gold-light); }
/* 1 · the open book */
.s7-v1 .glow { opacity: 0.8; }
.s7-v1 .ray { fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.s7-v1 .spark { fill: var(--gold-light); }
/* 2 · our three books, and one of them flying into a student's hands */
.s7-v2 .floor { stroke: rgba(212, 175, 55, 0.22); stroke-width: 0.8; }
.s7-v2 .shade { fill: rgba(0, 0, 0, 0.55); }
.s7-v2 .edge { fill: #efe6cc; stroke: #b99a4c; stroke-width: 0.5; stroke-linejoin: round; }
.s7-v2 .rim { fill: none; stroke: rgba(80, 60, 20, 0.35); stroke-width: 0.5; }
.s7-v2 .arc { fill: none; stroke: rgba(244, 215, 125, 0.5); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.001 0.03; }
.s7-v2 .flyb { fill: #fbf6e6; stroke: #c9a445; stroke-width: 0.6; }
.s7-v2 .f2, .s7-v2 .f3 { opacity: 0; }
.s7-v2 .kid-bag { fill: #4d3b18; }
.s7-v2 .kid-body { fill: url(#s7shirt); stroke: rgba(120, 100, 60, 0.35); stroke-width: 0.5; }
.s7-v2 .kid-strap { fill: none; stroke: #6a5122; stroke-width: 4.2; stroke-linecap: round; }
.s7-v2 .kid-neck { fill: #b07542; }
.s7-v2 .kid-collar { fill: none; stroke: #cbbf9f; stroke-width: 0.9; stroke-linejoin: round; }
.s7-v2 .kid-skin { fill: #c98a55; }
.s7-v2 .kid-face { fill: url(#s7skin); }
.s7-v2 .kid-hair { fill: #1d140c; }
.s7-v2 .kid-cap { fill: #f4efe3; stroke: #d6c9ab; stroke-width: 0.5; }
.s7-v2 .kid-capline { fill: none; stroke: #c9a445; stroke-width: 0.6; stroke-dasharray: 1 1.2; }
.s7-v2 .kid-brow { fill: none; stroke: #2a1a0f; stroke-width: 1; stroke-linecap: round; }
.s7-v2 .kid-eyes { fill: #1a0f08; }
.s7-v2 .kid-glint { fill: #fff; }
.s7-v2 .kid-nose { fill: none; stroke: rgba(110, 60, 30, 0.55); stroke-width: 0.7; stroke-linecap: round; }
.s7-v2 .kid-cheek { fill: rgba(226, 120, 100, 0.22); }
.s7-v2 .kid-mouth { fill: none; stroke: #7a3420; stroke-width: 1.1; stroke-linecap: round; }
.s7-v2 .tick { fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* 3 · follow-up: a message and a week of reading */
.s7-v3 .dot { fill: var(--gold-light); }
.s7-v3 .wk { fill: none; stroke: rgba(212, 175, 55, 0.3); stroke-width: 2; }
.s7-v3 .day { fill: var(--gold); stroke: var(--gold-light); stroke-width: 1.5; }
.s7-v3 .chk { fill: none; stroke: var(--black); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
/* 4 · the trophy */
.s7-v4 .ground { stroke: rgba(212, 175, 55, 0.35); }
.s7-v4 .shine { fill: rgba(255, 246, 216, 0.45); opacity: 0; }
.s7-v4 .star, .s7-v4 .tw { fill: var(--gold-light); }
.s7-v4 .cf { fill: var(--gold); }
.s7-v4 .cf:nth-of-type(2n) { fill: var(--gold-light); }
.s7-v4 .cf:nth-of-type(3n) { fill: var(--cream); }
/* 5 · the stairs */
.s7-v5 .stairs { fill: rgba(212, 175, 55, 0.08); }
.s7-v5 .bglow { fill: rgba(244, 215, 125, 0.22); }
.s7-v5 .ball { fill: var(--gold-light); }
/* 6 · the video book, playing an Aayaath lesson */
.s7-v6 .scr { fill: #0b0a08; stroke: rgba(212, 175, 55, 0.45); stroke-width: 1.2; }
.s7-v6 .vintro, .s7-v6 .vplay { opacity: 0; }
.s7-v6 .vbrand { font-family: 'Jost', sans-serif; font-size: 4.6px; font-weight: 500; letter-spacing: 0.9px; fill: var(--gold-light); }
.s7-v6 .var { font-family: 'Amiri', serif; font-size: 12.5px; fill: var(--gold-light); }
.s7-v6 .ven { font-family: 'Jost', sans-serif; font-size: 5px; fill: rgba(245, 241, 230, 0.92); }
.s7-v6 .vref { font-family: 'Jost', sans-serif; font-size: 3.4px; letter-spacing: 0.4px; fill: rgba(212, 175, 55, 0.8); }
.s7-v6 .vmark { opacity: 0.85; }
.s7-v6 .vmk { font-family: 'Jost', sans-serif; font-size: 3.3px; font-weight: 500; letter-spacing: 0.5px; fill: rgba(244, 215, 125, 0.85); }
.s7-v6 .vpause { fill: rgba(245, 241, 230, 0.9); }
.s7-v6 .playc { fill: rgba(10, 9, 8, 0.55); stroke: var(--gold-light); stroke-width: 1.4; }
.s7-v6 .pulse { fill: none; stroke: var(--gold-light); stroke-width: 1.2; opacity: 0; }
.s7-v6 .track { fill: rgba(245, 241, 230, 0.2); }
.s7-v6 .bar { fill: var(--gold); }
.s7-v6 .vhome { fill: none; stroke: rgba(212, 175, 55, 0.55); stroke-width: 1; }
html[lang="ar"] .s7-v6 .vbrand, html[lang="ar"] .s7-v6 .vmk, html[lang="ar"] .s7-v6 .vref { letter-spacing: 0; }
/* 7 · readers and ambassadors across the world */
.s7-v7 .land { fill: none; stroke: rgba(212, 175, 55, 0.34); stroke-width: 1.05; stroke-linecap: round; }
.s7-v7 .lk { fill: none; stroke: rgba(212, 175, 55, 0.6); stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 1; }
.s7-v7 .l1 { stroke: rgba(244, 215, 125, 0.8); }
.s7-v7 .pk { fill: none; stroke: #fff3c9; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 0.05 1; stroke-dashoffset: 0.05; opacity: 0; }
.s7-v7 .nd { fill: var(--gold-light); stroke: #0c0b09; stroke-width: 0.5; }
.s7-v7 .rg { fill: none; stroke: var(--gold-light); stroke-width: 0.45; opacity: 0; }
.s7-v7 .hubg { fill: rgba(244, 215, 125, 0.28); }
.s7-v7 .hub { fill: #fff3c9; }
.s7-v7 .s7-lb { font-family: 'Jost', sans-serif; font-size: 5.4px; font-weight: 500; fill: rgba(245, 241, 230, 0.9); paint-order: stroke; stroke: #0c0b09; stroke-width: 1.6px; stroke-linejoin: round; }
.s7-v7 .hubl { fill: var(--gold-light); font-weight: 600; }
html[lang="ar"] .s7-v7 .s7-lb { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 5.8px; }
@media (max-width: 480px) { .s7-v7 .s7-lb { font-size: 6.4px; } html[lang="ar"] .s7-v7 .s7-lb { font-size: 6.8px; } }
/* the goal's chain */
.s7-chain .link { stroke: rgba(212, 175, 55, 0.3); stroke-width: 2; }
.s7-chain .flow { fill: none; stroke: var(--gold-light); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 90 700; stroke-dashoffset: 90; }
.s7-chain .gh { fill: rgba(244, 215, 125, 0.35); opacity: 0; }
.s7-chain .gnb { fill: #16140f; stroke: var(--gold); stroke-width: 1.5; }
.s7-chain .gnp { fill: var(--gold-light); }
.s7-chain .trav { opacity: 0; }
.s7-chain .travg { fill: rgba(244, 215, 125, 0.3); }
.s7-chain .travc { fill: #fff6d8; }
.s7-goal .s7-are { background-image: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 16%, var(--gold-light) 32%, #fff3c9 40%, var(--gold-light) 48%, var(--gold) 64%, var(--gold-light) 80%, var(--gold) 90%, var(--gold-deep) 100%); background-size: 200% 100%; }

/* ---- motion. Kept out of rtlcss: the positions, origins and turns below are drawing coordinates, not layout;
   the Arabic page mirrors the pictures that read as a direction (2, 5 and the chain) as a whole instead. ---- */
/*rtl:begin:ignore*/
.s7-vis svg { direction: ltr; }
[dir="rtl"] .s7-v5 svg, [dir="rtl"] .s7-chain svg { transform: scaleX(-1); }
.s7-copy::before { background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0)); }
.s7-step:nth-child(even) .s7-copy::before, [dir="rtl"] .s7-copy::before { background: linear-gradient(270deg, var(--gold), rgba(212, 175, 55, 0)); }
[dir="rtl"] .s7-step:nth-child(even) .s7-copy::before { background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0)); }
.s7-v2 .fly { transform: translate(184px, 98px) rotate(0deg) scale(1); transform-box: view-box; transform-origin: 0 0; }
.s7-v2 .kid-head { transform-origin: 50% 100%; }

/* 1 · a 3D Flowers of Quran, lying open: the cover opens, then a page keeps turning.
   The cover and the turning page hinge on the spine (the left edge of the right-hand page). */
.s7-bk { position: absolute; inset: 0; display: grid; place-items: center; perspective: 820px; direction: ltr; pointer-events: none; }
.s7-bk-book { position: relative; width: 55%; aspect-ratio: 3 / 2; transform: translateY(14%) rotateX(38deg) rotateZ(-5deg); transform-style: preserve-3d; }
.s7-bk-book::before { content: ""; position: absolute; left: -7%; right: -7%; top: 8%; bottom: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); transform: translateZ(-2px); }
.s7-bk-page, .s7-bk-leaf, .s7-bk-cover { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.s7-bk-page { background: #fbf8f0; box-shadow: 1px 1px 0 #e9e1c9, 2px 2px 0 #d6cbac, 3px 3px 0 #e9e1c9, 4px 4px 0 #c7b88f; }
.s7-bk-leaf { transform: translateZ(1px); }
.s7-bk-cover { transform: translateZ(2px) rotateY(-180deg); }
.s7-bk-face { position: absolute; inset: 0; overflow: hidden; background: #fbf8f0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.s7-bk-back { transform: rotateY(180deg); }
.s7-bk-cover .s7-bk-back { box-shadow: -1px 1px 0 #e9e1c9, -2px 2px 0 #d6cbac, -3px 3px 0 #e9e1c9, -4px 4px 0 #c7b88f; }
.s7-bk-front { box-shadow: inset 0 0 0 1px rgba(156, 122, 33, 0.35); }
.s7-bk img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the fold: pages darken towards the spine */
.s7-bk-page::after, .s7-bk-leaf .s7-bk-face::after, .s7-bk-cover .s7-bk-back::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(70, 45, 10, 0.38), rgba(70, 45, 10, 0) 20%); }
.s7-bk-leaf .s7-bk-back::after, .s7-bk-cover .s7-bk-back::after { background: linear-gradient(270deg, rgba(70, 45, 10, 0.38), rgba(70, 45, 10, 0) 20%); }
.s7-v5 .bx { transform: translateX(195px); }
.s7-v5 .by { transform: translateY(33px); }
.s7-v5 .flag .gd { transform-origin: 0 50%; }
.s7-v6 .bar { transform-origin: 0 50%; transform: scaleX(0.62); }

/* the pictures and words come in from their own side */
.s7-armed .s7-vis { --side: -44px; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.s7-armed .s7-step:nth-child(even) .s7-vis { --side: 44px; }
[dir="rtl"] .s7-armed .s7-vis { --side: 44px; }
[dir="rtl"] .s7-armed .s7-step:nth-child(even) .s7-vis { --side: -44px; }
.s7-armed .s7-step:not(.on) .s7-vis { opacity: 0; transform: translate3d(var(--side), 0, 0) scale(0.96); }
.s7-armed .s7-copy { transition: opacity 0.8s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s; }
.s7-armed .s7-step:not(.on) .s7-copy { opacity: 0; transform: translate3d(0, 22px, 0); }
.s7-armed .s7-goal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.s7-armed .s7-goal:not(.on) { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.98); }
.s7-armed .s7-not { transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s; }
.s7-armed .s7-are { transition: opacity 0.9s var(--ease) 0.45s, transform 0.9s var(--ease) 0.45s; }
.s7-armed .s7-goal:not(.on) .s7-not, .s7-armed .s7-goal:not(.on) .s7-are { opacity: 0; transform: translate3d(0, 14px, 0); }

/* 1 */
.s7-step.on .s7-bk-cover { animation: s7-bk-open 1.5s cubic-bezier(0.55, 0.05, 0.25, 1) 0.35s both; }
.s7-step.on .s7-bk-leaf { animation: s7-bk-turn 6.5s ease-in-out 2.4s infinite both; }
.s7-step.on .s7-bk-leaf .s7-bk-face { animation: s7-bk-fade 6.5s linear 2.4s infinite both; }
.s7-step.on .s7-bk-book { animation: s7-bk-float 7s ease-in-out 1.9s infinite alternate; }
.s7-step.on .s7-v1 .glow { animation: s7-breathe 4s ease-in-out 0.6s infinite alternate both; }
.s7-step.on .s7-v1 .ray { animation: s7-ray 2.8s ease-in-out calc(var(--k) * 0.14s + 1.2s) infinite both; }
.s7-step.on .s7-v1 .spark { animation: s7-twinkle 3.2s ease-in-out 1.6s infinite both; }
.s7-step.on .s7-v1 .spark.s2 { animation-delay: 3.2s; }
/* 2 */
.s7-step.on .s7-v2 .arc { animation: s7-march 1.2s linear infinite; }
.s7-step.on .s7-v2 .fly { animation: s7-fly3 13.8s linear 0.4s infinite both; }
.s7-step.on .s7-v2 .f2 { animation-delay: 5s; }
.s7-step.on .s7-v2 .f3 { animation-delay: 9.6s; }
.s7-step.on .s7-v2 .tick { animation: s7-tick 4.6s var(--ease) 0.4s infinite both; }
.s7-step.on .s7-v2 .kid-head { animation: s7-nod 4.6s ease-in-out 0.4s infinite; }
.s7-step.on .s7-v2 .kid-eyes { animation: s7-wink 3.9s ease-in-out 1s infinite; }
/* 3 */
.s7-step.on .s7-v3 .dot { animation: s7-typing 1.3s ease-in-out calc(var(--k) * 0.16s) infinite; }
.s7-step.on .s7-v3 .day { animation: s7-day 6.4s ease calc(var(--k) * 0.42s + 0.4s) infinite both; }
.s7-step.on .s7-v3 .chk { animation: s7-chk 6.4s ease calc(var(--k) * 0.42s + 0.4s) infinite both; }
/* 4 */
.s7-step.on .s7-v4 .trophy { animation: s7-rise 1s var(--ease) 0.2s both, s7-float 4s ease-in-out 1.2s infinite; }
.s7-step.on .s7-v4 .shine { animation: s7-sweep 3.6s ease-in-out 1.4s infinite; }
.s7-step.on .s7-v4 .star { animation: s7-beat 2.4s ease-in-out infinite; }
.s7-step.on .s7-v4 .tw { animation: s7-twinkle 2.8s ease-in-out calc(var(--k) * 0.6s + 0.8s) infinite both; }
.s7-step.on .s7-v4 .cf { animation: s7-fall 3.4s linear calc(var(--k) * 0.55s + 1s) infinite both; }
/* 5 */
.s7-step.on .s7-v5 .dr { stroke-dasharray: 1; animation: s7-draw 1.2s var(--ease) var(--d, 0s) both; }
.s7-step.on .s7-v5 .bx { animation: s7-bx 5.2s linear 0.9s infinite both; }
.s7-step.on .s7-v5 .by { animation: s7-by 5.2s 0.9s infinite both; }
.s7-step.on .s7-v5 .bglow { animation: s7-beat 1.3s ease-in-out infinite; }
.s7-step.on .s7-v5 .flag .gd { animation: s7-wave 1.8s ease-in-out infinite alternate; }
/* 6: press play, the Aayaath title, then an ayah with its translation, on a loop */
.s7-step.on .s7-v6 .vplay { animation: s7-vplay 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .pulse { animation: s7-ring 1.2s ease-out 0.5s infinite; }
.s7-step.on .s7-v6 .vintro { animation: s7-vintro 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .var { animation: s7-var 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .ven { animation: s7-ven 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .vref { animation: s7-vref 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .vmark { animation: s7-vmark 9s ease 0.5s infinite both; }
.s7-step.on .s7-v6 .bar { animation: s7-vbar 9s linear 0.5s infinite both; }
.s7-step.on .s7-v6 .vglow { animation: s7-breathe 3s ease-in-out infinite alternate; }
.s7-step.on .s7-soon::before { animation: s7-blink 1.6s ease-in-out infinite; }
/* 7: India lights its cities, then the world; light keeps travelling out along the links */
.s7-step.on .s7-v7 .land { animation: s7-fadein 1s ease 0.1s both; }
.s7-step.on .s7-v7 .l1 { animation: s7-draw 0.6s var(--ease) calc(var(--k) * 0.1s + 0.5s) both; }
.s7-step.on .s7-v7 .n1 { animation: s7-pop 0.4s var(--ease) calc(var(--k) * 0.1s + 1s) both; }
.s7-step.on .s7-v7 .l2 { animation: s7-draw 1s var(--ease) calc(var(--k) * 0.14s + 1.2s) both; }
.s7-step.on .s7-v7 .n2 { animation: s7-pop 0.45s var(--ease) calc(var(--k) * 0.14s + 2.1s) both; }
.s7-step.on .s7-v7 .s7-lb { animation: s7-fadein 0.6s ease calc(var(--k) * 0.14s + 2.3s) both; }
.s7-step.on .s7-v7 .pk { animation: s7-packet 3s ease-in calc(var(--k) * 0.37s + 3.2s) infinite both; }
.s7-step.on .s7-v7 .rg { animation: s7-ping2 3s ease-out calc(var(--k) * 0.37s + 5.9s) infinite both; }
.s7-step.on .s7-v7 .hubg { animation: s7-breathe 2.4s ease-in-out infinite alternate; }
/* the goal */
.s7-goal.on .s7-chain .flow { animation: s7-flow 3.6s linear 0.6s infinite; }
.s7-goal.on .s7-chain .trav { animation: s7-trav 3.6s linear 0.6s infinite; }
.s7-goal.on .s7-chain .gh { animation: s7-halo 3.6s linear calc(var(--k) * 0.517s + 0.6s) infinite; }
.s7-goal.on .s7-are { animation: s7-shimmer 8s linear 1.2s infinite; }

/* loops rest while their picture is off screen */
.s7-step:not(.run) .s7-vis *, .s7-goal:not(.run) *, .s7-step:not(.run) .s7-soon::before { animation-play-state: paused; }

@keyframes s7-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.8); opacity: 0; } }
@keyframes s7-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes s7-bk-open { from { transform: translateZ(2px) rotateY(0deg); } to { transform: translateZ(2px) rotateY(-180deg); } }
@keyframes s7-bk-turn {
  0%, 12% { transform: translateZ(1px) rotateY(0deg); }
  42%, 86% { transform: translateZ(3px) rotateY(-180deg); }
  87%, 100% { transform: translateZ(1px) rotateY(0deg); }
}
@keyframes s7-bk-fade { 0%, 78% { opacity: 1; } 86%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes s7-bk-float { from { transform: translateY(14%) rotateX(38deg) rotateZ(-5deg); } to { transform: translateY(11%) rotateX(34deg) rotateZ(-3deg); } }
@keyframes s7-nod { 0%, 54%, 70%, 100% { transform: rotate(0deg); } 60% { transform: rotate(-5deg); } }
@keyframes s7-wink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes s7-vplay { 0%, 6% { opacity: 1; transform: scale(1); } 8% { opacity: 1; transform: scale(0.84); } 12%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes s7-vintro { 0%, 10% { opacity: 0; transform: scale(0.9); } 14%, 22% { opacity: 1; transform: scale(1); } 26%, 100% { opacity: 0; transform: scale(1.04); } }
@keyframes s7-var { 0%, 26% { opacity: 0; transform: translateY(3px); } 32%, 90% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes s7-ven { 0%, 34% { opacity: 0; transform: translateY(2px); } 40%, 90% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes s7-vref { 0%, 40% { opacity: 0; } 46%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes s7-vmark { 0%, 24% { opacity: 0; } 28%, 92% { opacity: 0.85; } 96%, 100% { opacity: 0; } }
@keyframes s7-vbar { 0%, 10% { transform: scaleX(0); } 96%, 100% { transform: scaleX(1); } }
@keyframes s7-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes s7-packet { 0% { stroke-dashoffset: 0.05; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -0.97; opacity: 0; } }
@keyframes s7-ping2 { 0% { transform: scale(1); opacity: 0.9; } 30%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes s7-breathe { from { opacity: 0.45; transform: scale(0.88); } to { opacity: 1; transform: scale(1.08); } }
@keyframes s7-ray { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } }
@keyframes s7-twinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 30% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 0; transform: scale(0.2) rotate(90deg); } }
@keyframes s7-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes s7-march { to { stroke-dashoffset: -0.031; } }
@keyframes s7-fly3 {
  0% { transform: translate(62px, 70px) rotate(0deg) scale(0.4); opacity: 0; }
  2.67% { transform: translate(62px, 70px) rotate(0deg) scale(1); opacity: 1; }
  3.33% { transform: translate(62px, 70px) rotate(-4deg) scale(1); }
  6.67% { transform: translate(71px, 49.6px) rotate(-14deg) scale(1); }
  8.33% { transform: translate(83.9px, 39.5px) rotate(-12deg) scale(1); }
  9.67% { transform: translate(99.6px, 38.1px) rotate(-4deg) scale(1); }
  11% { transform: translate(117px, 43.5px) rotate(6deg) scale(1); }
  12.33% { transform: translate(135.2px, 54px) rotate(12deg) scale(1); }
  13.67% { transform: translate(153.1px, 67.8px) rotate(14deg) scale(1); }
  15.33% { transform: translate(169.7px, 83px) rotate(10deg) scale(1); }
  18.67% { transform: translate(184px, 98px) rotate(0deg) scale(1); }
  20% { transform: translate(184px, 94px) rotate(0deg) scale(1); }
  21.33% { transform: translate(184px, 98px) rotate(0deg) scale(1); }
  29.33% { transform: translate(184px, 98px) rotate(0deg) scale(1); opacity: 1; }
  32%, 100% { transform: translate(184px, 98px) rotate(0deg) scale(0.9); opacity: 0; }
}
@keyframes s7-tick { 0%, 56% { opacity: 0; transform: scale(0.3); } 62% { opacity: 1; transform: scale(1.15); } 66%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes s7-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes s7-day {
  0%, 2% { fill: #0a0a0b; stroke: rgba(212, 175, 55, 0.45); transform: scale(0.9); }
  7% { fill: #d4af37; stroke: #f4d77d; transform: scale(1.14); }
  11%, 78% { fill: #d4af37; stroke: #f4d77d; transform: scale(1); }
  90%, 100% { fill: #0a0a0b; stroke: rgba(212, 175, 55, 0.45); transform: scale(0.9); }
}
@keyframes s7-chk { 0%, 5% { stroke-dashoffset: 1; } 12%, 78% { stroke-dashoffset: 0; } 88%, 100% { stroke-dashoffset: 1; } }
@keyframes s7-rise { from { transform: translateY(26px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes s7-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1); } }
@keyframes s7-sweep { 0% { transform: translateX(-30px); opacity: 0; } 8% { opacity: 1; } 40% { transform: translateX(62px); opacity: 1; } 46%, 100% { transform: translateX(62px); opacity: 0; } }
@keyframes s7-fall { 0% { transform: translateY(-14px) rotate(0deg); opacity: 0; } 12%, 80% { opacity: 1; } 100% { transform: translateY(96px) rotate(300deg); opacity: 0; } }
@keyframes s7-bx {
  0% { transform: translateX(53px); opacity: 0; }
  4% { opacity: 1; }
  12% { transform: translateX(53px); }
  28%, 40% { transform: translateX(103px); }
  56%, 68% { transform: translateX(153px); }
  84% { transform: translateX(195px); }
  94% { transform: translateX(195px); opacity: 1; }
  100% { transform: translateX(195px); opacity: 0; }
}
@keyframes s7-by {
  0%, 12% { transform: translateY(105px); animation-timing-function: ease-out; }
  20% { transform: translateY(59px); animation-timing-function: ease-in; }
  28%, 40% { transform: translateY(81px); animation-timing-function: ease-out; }
  48% { transform: translateY(35px); animation-timing-function: ease-in; }
  56%, 68% { transform: translateY(57px); animation-timing-function: ease-out; }
  76% { transform: translateY(11px); animation-timing-function: ease-in; }
  84%, 100% { transform: translateY(33px); }
}
@keyframes s7-wave { from { transform: skewY(-8deg) scaleX(0.86); } to { transform: skewY(6deg) scaleX(1); } }
@keyframes s7-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.3); opacity: 0; } }
@keyframes s7-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes s7-pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes s7-flow { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -560; } }
@keyframes s7-trav { 0% { transform: translateX(40px); opacity: 0; } 4%, 86% { opacity: 1; } 92% { opacity: 0; } 100% { transform: translateX(690px); opacity: 0; } }
@keyframes s7-halo { 0% { opacity: 1; transform: scale(0.75); } 30%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes s7-shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
/*rtl:end:ignore*/

/* phones and small tablets: one column, the path down the start side, each picture above its words */
@media (max-width: 900px) {
  .s7-journey { max-width: 620px; }
  .s7-track { left: 23px; }
  .s7-path { gap: 56px; }
  .s7-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; row-gap: 20px; align-items: start; }
  .s7-node { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; font-size: 20px; margin-top: 6px; box-shadow: 0 0 0 5px var(--black), 0 0 0 6px rgba(212, 175, 55, 0.24), 0 0 26px rgba(212, 175, 55, 0.35); }
  .s7-armed .s7-step:not(.lit) .s7-node { box-shadow: 0 0 0 5px var(--black), 0 0 0 6px rgba(212, 175, 55, 0.08), 0 0 0 rgba(212, 175, 55, 0); }
  .s7-vis, .s7-step:nth-child(even) .s7-vis { grid-column: 2; grid-row: 1; justify-self: stretch; max-width: none; }
  .s7-copy, .s7-step:nth-child(even) .s7-copy { grid-column: 2; grid-row: 2; text-align: start; }
  .s7-step:nth-child(even) .s7-copy::before, .s7-step:nth-child(even) .s7-copy p { margin-inline-start: 0; }
  .s7-copy::before { margin-bottom: 12px; }
  /*rtl:begin:ignore*/
  .s7-step:nth-child(even) .s7-copy::before { background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0)); }
  [dir="rtl"] .s7-step:nth-child(even) .s7-copy::before { background: linear-gradient(270deg, var(--gold), rgba(212, 175, 55, 0)); }
  .s7-armed .s7-step:not(.on) .s7-vis { transform: translate3d(0, 28px, 0) scale(0.97); }
  /*rtl:end:ignore*/
}
@media (max-width: 480px) {
  .s7-track { left: 19px; }
  .s7-step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .s7-node { width: 40px; height: 40px; font-size: 18px; }
  .s7-vis { border-radius: 16px; }
  .s7-soon { top: 9px; right: 9px; padding: 4px 9px; font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .s7-section *, .s7-section *::before, .s7-section *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Ayah Library (src/generate/ayahs.js) and Guides (src/generate/guides.js)
   ===================================================================== */
.ay-hero, .gd-hero { min-height: 0; padding: clamp(120px, 14vw, 160px) 0 clamp(34px, 5vw, 56px); background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%); }
.ay-hero h1 .ay-ref { display: block; font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
html[lang="ar"] .ay-hero h1 .ay-ref { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 16px; }
.ay-hero .btn { margin-top: 24px; }
.ay-section, .gd-section { padding: 10px 0 clamp(44px, 6vw, 70px); }
.ay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ay-card { padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 10px; background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1), transparent 60%), linear-gradient(180deg, #16140f, #0c0b09); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.ay-arabic { font-family: 'Amiri', serif; font-size: clamp(28px, 4vw, 42px); line-height: 2; color: var(--gold-light); text-align: center; direction: rtl; }
.ay-num { color: var(--gold); font-size: 0.8em; white-space: nowrap; }
.ay-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.ay-label { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
html[lang="ar"] .ay-label { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 15px; }
.ay-translit { font-style: italic; font-size: 17px; line-height: 1.7; color: rgba(245, 241, 230, 0.75); }
.ay-trans { margin: 0; }
.ay-trans p { font-family: 'Marcellus', serif; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--cream); }
.ay-trans cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: rgba(245, 241, 230, 0.55); }
.ay-tafsir { font-size: 19px; line-height: 1.9; color: rgba(245, 241, 230, 0.9); }
.ay-facts { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); }
.ay-facts dl { display: grid; gap: 12px; margin: 6px 0 20px; }
.ay-facts dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.12); font-size: 14.5px; }
.ay-facts dt { color: rgba(245, 241, 230, 0.55); }
.ay-facts dd { margin: 0; color: var(--cream); text-align: end; }
.ay-lib { width: 100%; justify-content: center; }
.ay-garden { padding: 0 0 clamp(44px, 6vw, 70px); }
.ay-cta { text-align: center; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 56px); border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.01)); }
.ay-cta .eyebrow { justify-content: center; }
.ay-cta p { max-width: 620px; margin: 12px auto 22px; color: rgba(245, 241, 230, 0.75); font-size: var(--fs-card); }
.ay-more { padding: 0 0 clamp(50px, 7vw, 90px); }
.ay-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.ay-step { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.3s; }
.ay-step:hover { border-color: var(--gold); }
.ay-step.next { text-align: end; }
.ay-step small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ay-step b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 17px; color: var(--cream); }
html[lang="ar"] .ay-step b { font-family: inherit; }
.ay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.ay-chip { padding: 7px 13px; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 30px; font-size: 13.5px; color: rgba(245, 241, 230, 0.8); transition: border-color 0.3s; }
.ay-chip b { color: var(--gold-light); font-weight: 500; margin-inline-end: 6px; }
.ay-chip:hover { border-color: var(--gold); }
.ay-books { max-width: 760px; font-size: var(--fs-card); color: rgba(245, 241, 230, 0.7); }
.ay-books a, .gd-body a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.4); text-underline-offset: 3px; }
.ay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ay-item { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--black-soft); transition: border-color 0.3s, transform 0.3s var(--ease); }
.ay-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.ay-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.ay-item b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 18px; line-height: 1.35; color: var(--cream); }
html[lang="ar"] .ay-item b { font-family: inherit; font-size: 15px; line-height: 1.75; }
.ay-item-ar { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Amiri', serif; font-size: 20px; line-height: 1.9; color: rgba(244, 215, 125, 0.85); }
.gd-hero .gd-meta { font-size: 13px; color: rgba(245, 241, 230, 0.55); letter-spacing: 0.04em; }
.gd-body { max-width: 760px; margin: 0 auto; }
.gd-body h2 { font-size: clamp(24px, 2.8vw, 32px); color: var(--cream); margin: 40px 0 14px; }
.gd-body p, .gd-body li { font-size: var(--fs-body); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.82); }
.gd-body p + p { margin-top: 16px; }
.gd-quote { margin: 24px 0; padding: 22px 26px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0)); }
.gd-body .gd-quote p { font-family: 'Marcellus', serif; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; color: var(--cream); }
.gd-body .gd-quote .gd-quote-ar { margin-bottom: 8px; font-family: 'Amiri', serif; font-size: 24px; line-height: 1.9; color: var(--gold-light); text-align: right; }
.gd-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; color: rgba(245, 241, 230, 0.6); }
.gd-steps { display: grid; gap: 8px; margin: 16px 0; padding-left: 22px; }
.gd-steps b { color: var(--gold-light); font-weight: 500; }
.gd-days { list-style: none; display: grid; gap: 8px; margin: 16px 0; padding: 0; }
.gd-days li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; }
.gd-days span { min-width: 52px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.gd-days small { font-size: 13px; color: rgba(245, 241, 230, 0.5); }
.gd-more { padding: 0 0 clamp(50px, 7vw, 90px); }
.gd-more .section-title { margin-bottom: 20px; }
.gd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-cards-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); transition: border-color 0.3s, transform 0.3s var(--ease); }
.gd-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.gd-card small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.gd-card b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--cream); }
.gd-card span { font-size: 15px; line-height: 1.6; color: rgba(245, 241, 230, 0.7); }
@media (max-width: 900px) { .ay-wrap, .gd-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ay-steps, .gd-cards-lg { grid-template-columns: minmax(0, 1fr); } .ay-card { padding: 22px 18px; } }
@media (prefers-reduced-motion: reduce) { .ay-item:hover, .gd-card:hover { transform: none; } }
.nf-hero .eyebrow { font-size: 14px; }
.nf-hero .nf-ar { font-family: 'Amiri', serif; font-size: 20px; }
.nf-hero .nf-ar a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }

/* =====================================================================
   Team profiles (src/generate/team.js), photo pages (src/generate/photos.js), campaign cities (src/generate/cities.js)
   ===================================================================== */
.tp-hero { min-height: 0; padding: clamp(120px, 14vw, 160px) 0 clamp(34px, 5vw, 56px); background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%); }
.tp-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: center; }
.tp-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.5); background: var(--black-soft); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.tp-head .eyebrow { margin-bottom: 10px; }
.tp-org { font-size: 14px !important; color: var(--gold) !important; letter-spacing: 0.06em; }
.tp-section { padding: 10px 0 clamp(50px, 7vw, 90px); }
.tp-about { max-width: 760px; padding: clamp(22px, 4vw, 36px); margin-bottom: clamp(36px, 6vw, 60px); border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); }
.tp-about p { margin: 12px 0 20px; font-size: var(--fs-card); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.78); }
.tp-more { margin-bottom: 22px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); transition: border-color 0.3s, transform 0.3s var(--ease); }
.tp-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.tp-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.4); margin-bottom: 8px; }
.tp-card b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 18px; line-height: 1.3; color: var(--cream); }
.tp-card span { font-size: 13px; color: var(--gold); }
.ph-where { font-size: 15px !important; color: var(--gold-light) !important; letter-spacing: 0.04em; }
.ph-section { padding: 10px 0 clamp(50px, 7vw, 90px); }
.ph-figure { margin: 0 0 30px; }
.ph-figure img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--black-soft); }
.ph-figure figcaption { max-width: 820px; margin-top: 16px; }
.ph-figure figcaption p { font-size: var(--fs-card); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.82); }
.ph-figure figcaption p + p { margin-top: 8px; }
.ph-figure figcaption small { display: block; margin-top: 10px; font-size: 13px; color: rgba(245, 241, 230, 0.55); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 6px 0 28px; }
.ph-thumb { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: rgba(245, 241, 230, 0.8); }
.ph-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: border-color 0.3s; }
.ph-thumb:hover img { border-color: var(--gold); }
.ph-all { text-align: center; }
.lb-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; font-size: 13px; }
.lb-links[hidden] { display: none; }
.lb-links a, .lb-share { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.45); text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ct-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px !important; color: rgba(245, 241, 230, 0.8) !important; }
.ct-status[data-status="live"] .city-pill { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; border-color: transparent; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ct-section { padding: 10px 0 clamp(50px, 7vw, 90px); }
.ct-section .section-title { margin-bottom: 22px; }
.ct-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(40px, 6vw, 64px); }
.ct-book { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); transition: border-color 0.3s; }
.ct-book:hover { border-color: var(--gold); }
.ct-book img { width: 120px; height: auto; margin-bottom: 10px; border-radius: 2px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55); }
.ct-book b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 19px; color: var(--cream); }
.ct-book span { font-size: 13px; color: var(--gold); }
.ct-book small { font-size: 13px; color: rgba(245, 241, 230, 0.6); }
.ct-how { list-style: none; counter-reset: ct; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; }
.ct-how li { counter-increment: ct; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.ct-how li::before { content: counter(ct); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-family: 'Marcellus', serif; font-size: 17px; }
.ct-how b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 19px; color: var(--cream); }
.ct-how span { font-size: 15px; line-height: 1.6; color: rgba(245, 241, 230, 0.72); }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); transition: border-color 0.3s, transform 0.3s var(--ease); }
.ct-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.ct-card b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; color: var(--cream); }
.ct-card small { font-size: 13px; color: rgba(245, 241, 230, 0.55); }
.ct-card[data-status="live"] { border-color: var(--gold); }
.ct-card[data-status="live"] .city-pill { background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; border-color: transparent; }
.city-card h3 a:hover { color: var(--gold-light); }
@media (max-width: 760px) {
  .tp-head { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .tp-photo { width: 150px; height: 150px; }
  .ct-books, .ct-how { grid-template-columns: minmax(0, 1fr); }
  .ct-book { flex-direction: row; text-align: start; flex-wrap: wrap; justify-content: flex-start; }
  .ct-book img { width: 70px; margin: 0 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .tp-card:hover, .ct-card:hover { transform: none; } }

/* =====================================================================
   One minute a day (src/components/one-minute.html, js/one-minute.js)
   The markup is the end state ("1 minute"); the script adds .om-armed (start empty) and plays to .done.
   ===================================================================== */
.om-section { padding: var(--sec-pad) 0; overflow: hidden; background: radial-gradient(ellipse 55% 45% at 50% 32%, rgba(212, 175, 55, 0.09), transparent 70%), linear-gradient(180deg, var(--black), #0c0b09 50%, var(--black)); }
.om-section .section-head { margin-bottom: 10px; }
.om-stage { position: relative; width: min(560px, 88vw); aspect-ratio: 1; margin: 0 auto clamp(30px, 5vw, 50px); }
.om-stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.12), transparent); }
.om-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.om-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
/*rtl:begin:ignore*/
.om-num { display: flex; align-items: flex-end; justify-content: center; direction: ltr; font-family: 'Marcellus', serif; font-size: clamp(88px, 21vw, 196px); line-height: 1; transition: filter 1.2s var(--ease); }
[dir="rtl"] .om-unit { order: -1; margin: 0 0.3em 0.34em 0; }
/*rtl:end:ignore*/
.om-d { display: inline-block; max-width: 1em; overflow: visible; background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), max-width 0.9s var(--ease); }
.om-d.gone { max-width: 0; opacity: 0; overflow: hidden; }
.om-armed .om-d:not(.in) { opacity: 0; transform: translateY(26px); }
.om-d.dust { opacity: 0 !important; transform: none !important; transition: opacity 0s, max-width 0.9s var(--ease); }
.om-unit { display: inline-block; max-width: 6em; margin: 0 0 0.34em 0.3em; overflow: hidden; white-space: nowrap; font-size: 0.26em; letter-spacing: 0.06em; color: var(--cream); transition: max-width 1.1s var(--ease), opacity 0.8s var(--ease) 0.25s; }
.om-armed:not(.done) .om-unit { max-width: 0; margin-left: 0; margin-right: 0; opacity: 0; }
.done .om-num { filter: drop-shadow(0 0 28px rgba(244, 215, 125, 0.35)); }
.om-cap { display: grid; text-align: center; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.om-cap span { grid-area: 1 / 1; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.om-cap-a { opacity: 0; transform: translateY(8px); }
.om-armed:not(.done) .om-cap-a { opacity: 1; transform: none; }
.om-armed:not(.done) .om-cap-b { opacity: 0; transform: translateY(-8px); }
html[lang="ar"] .om-cap { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 16px; text-transform: none; }
html[lang="ar"] .om-unit { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 0.3em; }
/* the one minute left, at the top of the dial */
.om-dot { position: absolute; top: 2px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff3c9; box-shadow: 0 0 10px 3px rgba(244, 215, 125, 0.9), 0 0 34px 10px rgba(212, 175, 55, 0.45); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.om-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(244, 215, 125, 0.8); animation: om-ping 2.4s ease-out infinite; }
.om-armed:not(.done) .om-dot { opacity: 0; transform: scale(0.3); }
@keyframes om-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
.om-replay { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); padding: 7px 16px; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 30px; background: rgba(10, 10, 11, 0.6); color: var(--gold-light); font: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: border-color 0.3s, opacity 0.6s; }
.om-replay::before { content: '↻ '; }
.om-replay:hover { border-color: var(--gold); }
.om-replay[hidden] { display: none; }
/* the words */
.om-title { text-align: center; max-width: 860px; margin: 0 auto; }
.om-lead { max-width: 720px; margin: 18px auto 0; text-align: center; font-size: var(--fs-body); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.78); }
.om-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: clamp(34px, 5vw, 54px) auto 0; }
.om-pillar { position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #15130f, #0c0b09); text-align: center; }
.om-n { display: block; font-family: 'Marcellus', serif; font-size: 15px; letter-spacing: 0.2em; color: var(--gold); }
.om-pillar b { display: block; margin: 8px 0 8px; font-family: 'Marcellus', serif; font-weight: 400; font-size: 30px; color: var(--cream); }
.om-pillar p { font-size: var(--fs-card); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.7); }
.om-math { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 34px); flex-wrap: wrap; margin: clamp(36px, 5vw, 56px) auto 0; }
.om-math div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.om-math b { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; background: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.om-math span { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 241, 230, 0.65); }
.om-math i { width: clamp(24px, 5vw, 60px); height: 1px; background: linear-gradient(90deg, rgba(212, 175, 55, 0), var(--gold), rgba(212, 175, 55, 0)); }
html[lang="ar"] .om-math span { font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 15px; text-transform: none; }
.om-small { margin-top: 16px; text-align: center; font-size: 15px; color: rgba(245, 241, 230, 0.55); }
.om-close { max-width: 820px; margin: clamp(34px, 5vw, 54px) auto 0; text-align: center; font-family: 'Marcellus', serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.35; color: var(--cream); }
html[lang="ar"] .om-close { font-family: 'Aref Ruqaa', 'Amiri', serif; line-height: 1.6; }
.om-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) {
  .om-pillars { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .om-cap { font-size: 11px; letter-spacing: 0.2em; }
  .om-replay { font-size: 10.5px; padding: 6px 12px; }
  .om-math i { display: none; }
  .om-math { gap: 22px 30px; }
}
@media (prefers-reduced-motion: reduce) { .om-dot::after { animation: none; } }

/* =====================================================================
   Inside AAYAATH.COM (src/components/inside-site.js, js/inside-site.js)
   The phone plays one screen at a time: .ix-scene.on. Everything in a screen that moves has data-a (how it moves) and
   --d (when), so a screen plays again from the start each time .on is put back. The markup is each screen's end state.
   ===================================================================== */
.ix-section { position: relative; overflow: hidden; background: radial-gradient(ellipse 42% 52% at 50% 60%, rgba(212, 175, 55, 0.1), transparent 70%), linear-gradient(180deg, var(--black), #0d0c0a 50%, var(--black)); }
.ix-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 70px); max-width: 1200px; margin: 0 auto; }
.ix-beam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.ix-beam path { fill: none; stroke: rgba(244, 215, 125, 0.7); stroke-width: 1.4; filter: drop-shadow(0 0 5px rgba(244, 215, 125, 0.7)); }
.ix-beam circle { fill: #fff3c9; filter: drop-shadow(0 0 6px rgba(244, 215, 125, 0.95)); opacity: 0; transition: opacity 0.4s 0.6s; }
.ix-beam.lit circle { opacity: 1; }

/* the parts of the site */
.ix-list { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.ix-item { position: relative; }
.ix-pick { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: start; width: 100%; padding: 16px 18px 18px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.14); border-radius: 12px; background: linear-gradient(180deg, rgba(24, 22, 17, 0.75), rgba(12, 11, 9, 0.75)); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.ix-pick:hover { border-color: rgba(212, 175, 55, 0.42); }
.ix-pick:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.ix-ico { grid-row: 1 / span 2; width: 46px; height: 46px; padding: 11px; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 50%; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: background 0.4s, stroke 0.4s, box-shadow 0.4s; }
.ix-name { font-family: 'Marcellus', serif; font-size: 20px; line-height: 1.25; color: var(--cream); transition: color 0.4s; }
.ix-line { font-size: 14.5px; line-height: 1.5; color: rgba(245, 241, 230, 0.6); }
.ix-time { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform: scaleX(0); transform-origin: left; }
.ix-item.on .ix-pick { border-color: rgba(212, 175, 55, 0.6); background: linear-gradient(180deg, rgba(42, 34, 18, 0.9), rgba(16, 14, 10, 0.9)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.ix-item.on .ix-ico { background: var(--gold); stroke: #120d00; box-shadow: 0 0 22px rgba(244, 215, 125, 0.45); }
.ix-item.on .ix-name { color: var(--gold-light); }
.ix-item.on .ix-time { animation: ixTime var(--ms, 7s) linear both; }
.ix-stage.paused .ix-item.on .ix-time, .ix-stage.paused .ix-orbit i { animation-play-state: paused; }
.ix-open { display: inline-flex; gap: 6px; max-height: 0; margin: 0 0 0 78px; overflow: hidden; opacity: 0; font-size: 13px; letter-spacing: 0.06em; color: var(--gold-light); transition: max-height 0.4s var(--ease), opacity 0.4s, margin 0.4s; }
.ix-open:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.ix-item.on .ix-open, .ix-open:focus-visible { max-height: 30px; margin-top: 8px; opacity: 1; }
@keyframes ixTime { to { transform: scaleX(1); } }

/* the phone */
.ix-phone { position: relative; z-index: 1; width: 300px; height: 620px; }
.ix-orbit { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; pointer-events: none; }
.ix-orbit::before { content: ""; position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.2), transparent); }
.ix-orbit i { position: absolute; inset: 0; border: 1px dashed rgba(212, 175, 55, 0.24); border-radius: 50%; animation: ixSpin 70s linear infinite; }
.ix-orbit i + i { inset: 56px; border-style: solid; border-color: rgba(212, 175, 55, 0.1); animation-duration: 100s; animation-direction: reverse; }
.ix-orbit i::before, .ix-orbit i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px 3px rgba(244, 215, 125, 0.6); }
.ix-orbit i::after { top: auto; bottom: -3px; width: 5px; height: 5px; opacity: 0.6; }
@keyframes ixSpin { to { transform: rotate(360deg); } }
.ix-body { position: absolute; inset: 0; padding: 11px; border-radius: 48px; background: linear-gradient(145deg, #463b27, #16130d 38%, #2e271a 68%, #0f0d09); box-shadow: 0 0 0 1px rgba(244, 215, 125, 0.4), 0 0 0 2px #0a0908, 0 50px 90px rgba(0, 0, 0, 0.7), 0 0 70px rgba(212, 175, 55, 0.14); }
.ix-body::before, .ix-body::after { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px; border-radius: 0 2px 2px 0; background: #3a3122; }
.ix-body::after { right: auto; left: -3px; top: 120px; height: 38px; border-radius: 2px 0 0 2px; box-shadow: 0 58px 0 #3a3122, 0 106px 0 #3a3122; }
.ix-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: radial-gradient(ellipse 90% 50% at 50% 0%, #1c1810, #0b0a08 60%); color: var(--cream); font-family: 'Jost', sans-serif; }
.ix-status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 24px 0 28px; font-size: 13px; font-weight: 600; }
.ix-island { position: absolute; left: 50%; top: 10px; width: 88px; height: 25px; margin-left: -44px; border-radius: 14px; background: #000; }
.ix-sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.ix-sig i { width: 3px; height: 5px; border-radius: 1px; background: var(--cream); }
.ix-sig i + i { height: 8px; } .ix-sig i + i + i { height: 11px; }
/*rtl:begin:ignore*/
.ix-status, .ix-bar { direction: ltr; }
/*rtl:end:ignore*/
.ix-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; height: 32px; margin: 2px 12px 10px; padding: 0 12px; border-radius: 16px; background: #1b1812; font-size: 13px; color: rgba(245, 241, 230, 0.88); white-space: nowrap; overflow: hidden; }
.ix-lock { position: relative; flex: none; width: 9px; height: 7px; margin-top: 4px; border-radius: 1.5px; background: var(--gold); }
.ix-lock::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 6px; height: 6px; border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.ix-url.typing::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--gold-light); }
.ix-view { position: relative; flex: 1; overflow: hidden; }
.ix-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 48%, transparent 60%); transform: translateX(-100%); }
.ix-sheen.go { animation: ixSheen 1.1s var(--ease); }
@keyframes ixSheen { to { transform: translateX(100%); } }

/* one screen */
.ix-scene { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px 14px 14px; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0s 0.4s; }
.ix-scene.on { visibility: visible; opacity: 1; transition: opacity 0.45s 0.1s; }
.ix-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.ix-head span { font-family: 'Marcellus', serif; font-size: 18px; }
.ix-head b { font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ix-card { position: relative; padding: 12px 14px; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 12px; background: linear-gradient(180deg, #19160f, #110f0b); }
.ix-ar { font-family: 'Amiri', serif; font-size: 19px; line-height: 1.85; color: var(--gold-light); text-align: center; }
/*rtl:begin:ignore*/
.ix-ar { direction: rtl; }
.ixl-card .ix-ar { text-align: right; }
/*rtl:end:ignore*/
.ix-tr { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: rgba(245, 241, 230, 0.8); text-align: center; }
.ix-ref { display: block; margin-top: 6px; text-align: center; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.ix-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 20px; background: rgba(212, 175, 55, 0.14); font-size: 12px; font-weight: 500; color: var(--gold-light); white-space: nowrap; }
.ix-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px var(--gold-light); }
/* a finger's tap, and what it presses */
.ix-tap { position: absolute; left: 50%; top: 50%; z-index: 5; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: rgba(255, 255, 255, 0.3); opacity: 0; pointer-events: none; }
.ix-scene.on .ix-tap { animation: ixTap 1s ease var(--d, 0s) both; }
@keyframes ixTap { 0% { opacity: 0; transform: scale(1.7); } 30% { opacity: 1; transform: scale(1); } 45% { transform: scale(0.78); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }
.ixg-btn, .ixo-btn { position: relative; display: grid; place-items: center; height: 40px; border-radius: 10px; background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.ixg-btn::before, .ixo-btn::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 10px; background: #17140e; opacity: 1; }
.ixg-btn > span, .ixo-btn > span { position: relative; grid-area: 1 / 1; }
.ixg-btn .b2, .ixo-btn .b2 { color: var(--gold-light); }
.ixg-btn .b2::before, .ixo-btn .b2::before { content: '✓ '; }
.ix-scene.on :is(.ixg-btn, .ixo-btn)::before { animation: ixIn 0.35s var(--t) both; }
.ix-scene.on :is(.ixg-btn, .ixo-btn) .b1 { animation: ixOut 0.3s var(--t) both; }
.ix-scene.on :is(.ixg-btn, .ixo-btn) .b2 { animation: ixIn 0.35s var(--t) both; }
@keyframes ixIn { from { opacity: 0; } }
@keyframes ixOut { to { opacity: 0; } }

/* the movements */
.ix-scene.on [data-a] { animation: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both; }
.ix-scene.on [data-a="up"] { animation-name: ixUp; }
.ix-scene.on [data-a="pop"] { animation-name: ixPop; }
.ix-scene.on [data-a="grow"] { animation-name: ixGrow; animation-duration: 1.2s; }
.ix-scene.on [data-a="burst"] { animation-name: ixBurst; animation-duration: 1.2s; }
.ix-scene.on [data-a="fill"] { animation-name: ixFill; animation-duration: 1.6s; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
.ix-scene.on [data-a="read"] { animation-name: ixFill; animation-duration: 4.4s; animation-timing-function: linear; }
.ix-scene.on [data-a="scroll"] { animation-name: ixScroll; animation-duration: 3.2s; animation-timing-function: ease-in-out; }
.ix-scene.on [data-a="rise"] { animation-name: ixRise; animation-duration: 0.9s; }
.ix-scene.on [data-a="step"] { animation-name: ixStep; animation-duration: 0.45s; }
.ix-scene.on [data-a="drive"] { animation-name: ixDrive; animation-duration: 1.1s; animation-timing-function: ease-in-out; }
.ix-scene.on [data-a="draw"] { animation-name: ixDraw; animation-duration: 1.7s; animation-timing-function: ease-in-out; }
.ix-scene.on [data-a="pin"] { animation-name: ixPop; animation-duration: 0.55s; }
.ix-scene.on [data-a="flip"] { animation-name: ixFlip; animation-duration: 1.1s; animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1); }
@keyframes ixUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes ixPop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.14); } }
@keyframes ixGrow { 0% { transform: scale(0); } 70% { transform: scale(1.12); } }
@keyframes ixBurst { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes ixFill { from { transform: scaleX(0); } }
@keyframes ixScroll { from { transform: none; } }
@keyframes ixRise { from { transform: translateY(115%); } }
@keyframes ixStep { from { color: rgba(245, 241, 230, 0.35); } }
@keyframes ixDraw { from { stroke-dashoffset: 1; fill-opacity: 0; } 65% { fill-opacity: 0; } }

/* Reading Garden */
.ixg-plots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ixg-plots > i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(212, 175, 55, 0.12); border-radius: 8px; background: radial-gradient(circle at 50% 75%, #2d2518, #16130d); }
.ixg-plots b { display: grid; place-items: center; width: 100%; height: 100%; transform-origin: 50% 85%; }
.ixg-plots s { position: absolute; inset: -4px; border: 2px solid var(--gold-light); border-radius: 50%; opacity: 0; }
.ixg-plots .new { border-color: rgba(244, 215, 125, 0.55); box-shadow: 0 0 14px rgba(244, 215, 125, 0.25); }
.ixf { width: 78%; height: 78%; }
.ixf.gold { filter: drop-shadow(0 0 5px rgba(244, 215, 125, 0.85)); }
.ixg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ixg-note { font-size: 11px; line-height: 1.4; color: rgba(245, 241, 230, 0.55); text-align: right; }

/* Ayah Library */
.ixl-search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 10px; background: #17140f; font-size: 14px; }
.ixl-search i { position: relative; flex: none; width: 12px; height: 12px; border: 1.6px solid var(--gold); border-radius: 50%; }
.ixl-search i::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.6px; background: var(--gold); transform: rotate(45deg); }
.ixl-search u { width: 1.5px; height: 16px; margin-left: -8px; background: var(--gold-light); animation: ixBlink 1s steps(1) infinite; }
@keyframes ixBlink { 50% { opacity: 0; } }
.ixl-found { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.ixl-card { padding: 9px 12px 8px; border: 1px solid rgba(212, 175, 55, 0.16); border-radius: 10px; background: #14120d; }
.ixl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ixl-top b { overflow: hidden; font-family: 'Marcellus', serif; font-weight: 400; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.ixl-top span { flex: none; font-size: 10px; letter-spacing: 0.08em; color: var(--gold); }
.ixl-card .ix-ar { overflow: hidden; font-size: 16px; line-height: 1.8; white-space: nowrap; text-overflow: ellipsis; }
.ixl-card .ix-tr { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; text-align: left; font-size: 12px; }
.ixl-open { border-color: rgba(244, 215, 125, 0.6); background: linear-gradient(180deg, #221c10, #14120d); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }

/* Guides */
.ixr-progress { height: 3px; margin: -4px 0 0; overflow: hidden; border-radius: 2px; background: rgba(245, 241, 230, 0.1); }
.ixr-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: left; }
.ixr-eye { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ixr-cover h4 { margin-top: 6px; font-family: 'Marcellus', serif; font-weight: 400; font-size: 19px; line-height: 1.3; }
.ixr-cover em { display: block; font-style: normal; color: var(--gold-light); }
.ixr-text { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 78%, transparent); }
.ixr-text div { padding-top: 8px; transform: translateY(-34%); }
.ixr-text i { display: block; height: 7px; margin-bottom: 9px; border-radius: 4px; background: rgba(245, 241, 230, 0.14); }
.ixr-text b { display: block; height: 8px; }
.ixr-next { flex: none; padding: 10px 14px; }
.ixr-next b { display: block; margin-top: 3px; font-family: 'Marcellus', serif; font-weight: 400; font-size: 14px; }

/* Quiz & Certificate */
.ixq-q .ix-ar { font-size: 23px; }
.ixq-ask { margin-top: 2px; text-align: center; font-size: 13px; color: rgba(245, 241, 230, 0.85); }
.ixq-opt { position: relative; padding: 10px 14px; border: 1px solid rgba(245, 241, 230, 0.16); border-radius: 10px; background: #15130f; font-size: 13.5px; }
.ixq-opt.ok { border-color: #6fbf73; background: rgba(111, 191, 115, 0.16); }
.ixq-opt.ok span::after { content: '  ✓'; color: #8fd693; }
.ixq-opt.ok::before { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(245, 241, 230, 0.16); border-radius: 10px; background: #15130f; }
.ixq-opt.ok span { position: relative; }
.ix-scene.on .ixq-opt.ok::before { animation: ixOut 0.35s var(--t) both; }
.ix-scene.on .ixq-opt.ok span::after { animation: ixIn 0.35s var(--t) both; }
.ixq-score { align-self: center; padding: 5px 14px; border-radius: 20px; background: var(--gold); color: #120d00; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.ixq-cert { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 30px 16px 16px; border: 3px double #c9a13a; border-radius: 10px; background: radial-gradient(ellipse at 50% 0%, #fffaf0, #f4ecd6); color: #3a2f18; text-align: center; box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6); }
.ixq-seal { position: absolute; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #d4af37 55%, #9c7a21); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(212, 175, 55, 0.3); }
.ixq-t1 { font-family: 'Marcellus', serif; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6a1c; }
.ixq-t2 { font-size: 11px; color: #6b5a3a; }
.ixq-name { padding: 0 18px 2px; border-bottom: 1px solid rgba(154, 122, 33, 0.5); font-family: 'Amiri', serif; font-style: italic; font-size: 24px; color: #2b2415; }
.ixq-t3 { max-width: 220px; font-size: 10.5px; line-height: 1.45; color: #6b5a3a; }

/* Store */
.ixo-cart { display: inline-flex; align-items: center; gap: 5px; }
.ixo-cart em { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #120d00; font-style: normal; font-size: 11px; letter-spacing: 0; }
.ixo-item { display: flex; align-items: center; gap: 14px; }
.ixo-item img { flex: none; width: 72px; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); }
.ixo-item b { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: 17px; }
.ixo-item span { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(245, 241, 230, 0.6); }
.ixo-item em { display: block; margin-top: 8px; font-style: normal; font-size: 17px; font-weight: 600; color: var(--gold-light); }
.ixo-track { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; padding: 16px 14px 18px; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 14px; background: linear-gradient(180deg, #1d190f, #12100b); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6); }
.ixo-track > b { display: block; margin-bottom: 16px; font-family: 'Marcellus', serif; font-weight: 400; font-size: 17px; }
.ixo-track ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; text-align: center; font-size: 11px; }
.ixo-track li::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 8px; border: 2px solid var(--gold); border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(244, 215, 125, 0.6); }
.ix-scene.on .ixo-track li::before { animation: ixDot 0.45s var(--d) both; }
@keyframes ixDot { from { border-color: rgba(212, 175, 55, 0.3); background: #1d190f; box-shadow: none; } }
.ixo-road { position: absolute; left: calc(12.5% + 8px); right: calc(12.5% + 8px); top: 57px; height: 2px; background: rgba(212, 175, 55, 0.3); }
.ixo-road i { position: absolute; top: -9px; left: 100%; width: 18px; height: 11px; margin-left: -9px; border-radius: 2px 5px 2px 2px; background: var(--gold-light); box-shadow: 0 0 10px rgba(244, 215, 125, 0.7); }
.ixo-road i::after { content: ""; position: absolute; left: 3px; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: #120d00; box-shadow: 8px 0 0 #120d00; }
@keyframes ixDrive { from { left: 33.3%; } }

/* Sponsor a City */
.ixs-city { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: border-color 0.5s; }
.ixs-city::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 0 24px rgba(212, 175, 55, 0.25); opacity: 1; pointer-events: none; }
.ix-scene.on .ixs-city::after { animation: ixIn 0.5s 4.6s both; }
.ixs-top { display: flex; align-items: center; justify-content: space-between; }
.ixs-top h4 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; }
.ixs-pill { display: grid; }
.ixs-pill i { grid-area: 1 / 1; justify-self: end; padding: 4px 10px; border: 1px solid rgba(245, 241, 230, 0.3); border-radius: 12px; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; }
.ixs-pill i:nth-child(2) { border-color: var(--gold); color: var(--gold-light); }
.ixs-pill i:nth-child(3) { opacity: 1; border-color: var(--gold); background: var(--gold); color: #120d00; }
.ixs-pill i:nth-child(3)::before { content: '✓ '; }
.ix-scene.on .ixs-pill i:nth-child(1) { animation: ixShow 1.3s steps(1) both; }
.ix-scene.on .ixs-pill i:nth-child(2) { animation: ixBlip 3.3s 1.3s steps(1) forwards; }
.ix-scene.on .ixs-pill i:nth-child(3) { animation: ixPopIn 0.5s 4.6s both; }
@keyframes ixShow { from { opacity: 1; } to { opacity: 0; } }
@keyframes ixBlip { from { opacity: 1; } to { opacity: 0; } }
@keyframes ixPopIn { 0% { opacity: 0; transform: scale(0.5); } 70% { opacity: 1; transform: scale(1.1); } }
.ixs-sum { font-size: 12.5px; color: rgba(245, 241, 230, 0.65); }
.ixs-sum b { font-size: 15px; color: var(--gold-light); }
.ixs-sum em, .ixs-line em { font-style: normal; }
.ixs-line { display: flex; justify-content: space-between; font-size: 12.5px; }
.ixs-line b { font-weight: 600; color: var(--gold-light); }
.ixs-bar { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: rgba(245, 241, 230, 0.1); }
.ixs-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: left; }
.ixs-who { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 12.5px; }
.ixs-who em { padding: 3px 9px; border: 1px solid var(--gold); border-radius: 12px; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }

/* Campaign Cities */
.ixc-map { flex: 1; min-height: 0; width: 100%; }
.ixc-map polygon { fill: rgba(212, 175, 55, 0.08); stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4)); }
.ixc-pin { transform-box: fill-box; transform-origin: center; }
.ixc-pin circle { fill: var(--gold-light); }
.ixc-pin .halo { fill: rgba(244, 215, 125, 0.28); transform-box: fill-box; transform-origin: center; }
.ix-scene.on .ixc-pin .halo { animation: ixPulse 2.2s ease-out calc(var(--d) + 0.5s) infinite both; }
@keyframes ixPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.ixc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px; border-top: 1px solid rgba(212, 175, 55, 0.18); text-align: center; }
.ixc-nums b { display: block; font-size: 21px; font-weight: 600; color: var(--gold-light); }
.ixc-nums span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 241, 230, 0.6); }

/* In Arabic: the page turns over, from English to Arabic */
.ix-arabic { perspective: 1100px; }
.ixa-flip { position: relative; flex: 1; transform-style: preserve-3d; }
.ixa-side { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 0; text-align: start; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/*rtl:begin:ignore*/
.ixa-flip { transform: rotateY(180deg); }
.ixa-ar { transform: rotateY(180deg); }
@keyframes ixFlip { from { transform: rotateY(0); } }
/*rtl:end:ignore*/
[data-en]::before { content: attr(data-en); }
.ixa-nav { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.ixa-nav img { width: 28px; height: 28px; border-radius: 6px; }
.ixa-nav span { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-light); }
.ixa-nav em { margin-inline-start: auto; padding: 3px 9px; border: 1px solid var(--line); border-radius: 12px; font-style: normal; font-size: 11px; color: var(--gold-light); }
.ixa-eye { margin-top: 18px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.ixa-h { font-family: 'Marcellus', serif; font-size: 34px; line-height: 1.05; }
.ixa-h.gold { background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ixa-p { font-size: 13px; line-height: 1.6; color: rgba(245, 241, 230, 0.75); }
.ixa-btn { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: 8px; background: linear-gradient(120deg, var(--gold-light), var(--gold)); color: #120d00; font-size: 12.5px; font-weight: 600; }
.ixa-ar .ixa-eye { letter-spacing: 0; font-family: 'Reem Kufi', 'Jost', sans-serif; font-size: 13px; }
.ixa-ar .ixa-h { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 40px; line-height: 1.25; }
.ixa-ar .ixa-p, .ixa-ar .ixa-btn { font-family: 'IBM Plex Sans Arabic', 'Amiri', sans-serif; }
.ixa-ar .ixa-nav span { font-family: 'Amiri', serif; font-size: 19px; letter-spacing: 0; }
.ixa-ar .ixa-nav em { font-family: 'Amiri', serif; }
.ixa-switch { position: relative; align-self: center; display: flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 22px; background: #17140e; font-size: 12.5px; }
.ixa-switch span:last-of-type { font-family: 'Amiri', serif; font-size: 15px; color: var(--gold-light); }
/*rtl:begin:ignore*/
.ixa-switch { direction: ltr; }
.ixa-switch > i { position: relative; width: 32px; height: 18px; border-radius: 9px; background: var(--gold); }
.ixa-switch > i::after { content: ""; position: absolute; top: 2px; left: 16px; width: 14px; height: 14px; border-radius: 50%; background: #120d00; }
.ix-scene.on .ixa-switch > i::after { animation: ixKnob 0.35s var(--t) both; }
.ix-scene.on .ixa-switch > i { animation: ixTrack 0.35s var(--t) both; }
@keyframes ixKnob { from { left: 2px; background: var(--gold-light); } }
@keyframes ixTrack { from { background: rgba(245, 241, 230, 0.2); } }
/*rtl:end:ignore*/

/* narrower screens: the phone first, the parts under it */
@media (max-width: 1080px) {
  .ix-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .ix-phone { order: -1; margin-bottom: 26px; }
  .ix-beam { display: none; }
  .ix-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 760px; }
  .ix-l { margin-bottom: -10px; }
}
@media (max-width: 600px) {
  .ix-list { gap: 10px; }
  .ix-pick { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 14px 12px 15px; text-align: center; justify-items: center; }
  .ix-ico { grid-row: auto; width: 40px; height: 40px; padding: 9px; }
  .ix-name { font-size: 16px; }
  .ix-line { display: none; }
  .ix-open { margin-left: 0; justify-content: center; width: 100%; font-size: 12px; }
  .ix-item.on .ix-open { margin-top: 6px; }
  .ix-orbit { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
}
@media (prefers-reduced-motion: reduce) {
  .ix-scene [data-a], .ix-scene .ix-tap, .ix-scene *::before, .ix-scene *::after, .ix-orbit i { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .ix-item.on .ix-time { animation: none; }
}

/* =====================================================================
   Going International (src/components/international.js, js/international.js)
   A globe (drawn on the canvas) beside a departures board whose letters flip.
   ===================================================================== */
.it-section { position: relative; overflow: hidden; background: radial-gradient(ellipse 40% 55% at 28% 55%, rgba(212, 175, 55, 0.09), transparent 70%), linear-gradient(180deg, var(--black), #0c0b09 50%, var(--black)); }
.it-stage { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(26px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.it-globe { position: relative; justify-self: center; width: 100%; max-width: 560px; aspect-ratio: 1; }
.it-globe::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.16), transparent); pointer-events: none; }
.it-canvas { position: relative; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.it-canvas.dragging { cursor: grabbing; }

/* the departures board */
.it-board { --c: clamp(14px, 1.5vw, 18px); position: relative; padding: 20px 18px 12px; border: 1px solid rgba(212, 175, 55, 0.32); border-radius: 14px; background: linear-gradient(180deg, #141210, #0a0908); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.it-board::before, .it-board::after { content: ""; position: absolute; top: 9px; left: 9px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6d5d3a, #1c170e); }
.it-board::after { left: auto; right: 9px; }
.it-top { display: flex; align-items: center; gap: 12px; padding: 0 6px 14px; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.it-plane svg { display: block; width: 24px; height: 24px; fill: var(--gold-light); transform: rotate(45deg); }
.it-top b { font-weight: 600; font-size: 21px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); }
.it-fromto { margin-left: auto; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 241, 230, 0.55); text-align: right; }
.it-cols { display: flex; justify-content: space-between; padding: 12px 16px 6px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.it-rows { list-style: none; }
.it-row + .it-row { border-top: 1px dashed rgba(212, 175, 55, 0.12); }
.it-pick { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.35s, box-shadow 0.35s; }
.it-pick:hover { background: rgba(212, 175, 55, 0.05); }
.it-pick:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.it-row.on .it-pick { background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.02)); box-shadow: inset 3px 0 0 var(--gold); }
.it-dest { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.it-name { font-size: 13.5px; line-height: 1.35; color: var(--cream); }
.it-line { margin-top: -4px; font-size: 12px; line-height: 1.35; color: rgba(245, 241, 230, 0.5); }
.it-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* one letter of the board: two halves and the split between them */
/*rtl:begin:ignore*/
.it-flaps { display: inline-flex; gap: 2px; direction: ltr; }
/*rtl:end:ignore*/
.it-flaps i { position: relative; display: grid; place-items: center; width: var(--c); height: calc(var(--c) * 1.42); border-radius: 3px; background: linear-gradient(180deg, #25221b 0 50%, #1b1914 50% 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5); font-family: 'Jost', sans-serif; font-style: normal; font-weight: 600; font-size: calc(var(--c) * 0.8); line-height: 1; color: #f3e6c0; }
.it-flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.75); }
.it-flaps i.fl { animation: itFlap 0.08s linear; }
@keyframes itFlap { 50% { transform: scaleY(0.12); filter: brightness(1.5); } }
.it-stat .it-flaps i { color: var(--gold-light); }
.it-row.on .it-flaps i { color: #fff6d8; text-shadow: 0 0 8px rgba(244, 215, 125, 0.65); }
.it-you .it-flaps i { background: linear-gradient(180deg, #1c1a15 0 50%, #151410 50% 100%); color: rgba(245, 241, 230, 0.75); }
.it-you .it-stat .it-flaps i { color: #9ee0a2; }
.it-you .it-pick:hover .it-name { color: var(--gold-light); }
.it-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(30px, 4vw, 48px); }

@media (max-width: 1080px) {
  .it-stage { grid-template-columns: minmax(0, 1fr); }
  .it-globe { max-width: 500px; }
  .it-board { --c: 17px; justify-self: center; width: 100%; max-width: 640px; }
}
@media (max-width: 600px) {
  .it-board { --c: 16px; padding: 16px 10px 8px; }
  .it-top { flex-wrap: wrap; row-gap: 4px; }
  .it-top b { font-size: 18px; }
  .it-fromto { width: 100%; margin-left: 0; text-align: left; font-size: 11px; }
  .it-cols span + span { display: none; }
  .it-pick { flex-direction: column; gap: 8px; padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) { .it-flaps i.fl { animation: none; } }

/* =====================================================================
   Small fixes after the site audit
   ===================================================================== */
/* The phone menu on a short screen (a phone on its side): it used to be centred in a fixed height, so the first links
   were above the top and could not be reached. Now it is centred when there is room and scrolls when there is not. */
@media (max-width: 1100px) {
  .nav-links { height: 100vh; height: 100dvh; justify-content: flex-start; padding-top: 84px; padding-bottom: 32px; overflow-y: auto; overscroll-behavior: contain; }
  .nav-links > li:first-child { margin-top: auto; }
  .nav-links > li:last-child { margin-bottom: auto; }
}
/* Reduced motion: the things that move by themselves all the time stand still, and jumps are not animated. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb .ring1, .hero-orb .ring2, .hero-orb .ring3, .scroll-cue .stick::after, .marquee-track { animation: none; }
}

/* Wide screens (a laptop at 125%, a desktop, the TV by the stage): the content was a fixed 1180px column with wide empty
   bands on both sides. Above 1280px it now takes 92% of the width (up to 1720px), and the hero grows with it. Phones,
   tablets and small laptops are unchanged. */
@media (min-width: 1281px) {
  .container { max-width: min(92vw, 1720px); padding-left: clamp(32px, 3vw, 60px); padding-right: clamp(32px, 3vw, 60px); }
  .hero-inner { gap: clamp(60px, 5vw, 110px); }
  .hero-title { font-size: clamp(78px, 5.3vw, 108px); }
  .hero-sub { max-width: 27em; }
  .hero-actions { margin-bottom: clamp(48px, 4vw, 64px); }
  .hero-stats { gap: clamp(48px, 3.6vw, 72px); }
  .hero-stats .num { font-size: clamp(30px, 2.1vw, 40px); }
  .hero-stats .label { font-size: clamp(11px, 0.75vw, 13px); }
}

/* /team/: the first three large, the others smaller on the row under them */
.tp-grid-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.tp-grid-top .tp-card { padding: clamp(24px, 3vw, 38px) 18px; gap: 8px; }
.tp-grid-top .tp-card img { width: clamp(120px, 12vw, 170px); height: clamp(120px, 12vw, 170px); margin-bottom: 12px; }
.tp-grid-top .tp-card b { font-size: clamp(19px, 1.6vw, 24px); }
.tp-grid-top .tp-card span { font-size: 14px; }
.tp-grid-rest { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.tp-grid-rest .tp-card { padding: 16px 10px; gap: 4px; }
.tp-grid-rest .tp-card img { width: 72px; height: 72px; margin-bottom: 6px; }
.tp-grid-rest .tp-card b { font-size: 16px; }
.tp-grid-rest .tp-card span { font-size: 12px; }
@media (max-width: 640px) {
  .tp-grid-top { grid-template-columns: minmax(0, 1fr); }
  .tp-grid-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A team member's page: what they do, one card for each part of it */
.tp-does { margin-bottom: clamp(36px, 6vw, 60px); }
.tp-does .section-title { margin-bottom: 22px; }
.tp-does ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tp-does li { display: grid; align-content: start; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--black-soft); }
.tp-does li b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 19px; color: var(--gold-light); }
.tp-does li span { font-size: var(--fs-card); line-height: var(--lh-body); color: rgba(245, 241, 230, 0.78); }

/* ---------- The team section (home and About, src/components/team-cards.js) ----------
   Plain cards on one 12-column grid: the three featured people across the top (4 columns each), the other four under
   them (3 each), so both rows share the same edges. On a laptop or a larger screen the heading and every card fit in
   one screen: the photos and spacing follow the screen's height. */
.tm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.8vh, 18px); max-width: 1120px; margin: 0 auto; }
.tm-card { grid-column: span 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(14px, 2.2vh, 22px) 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--black-soft); transition: border-color 0.3s, transform 0.3s; }
.tm-card:hover { border-color: rgba(212, 175, 55, 0.6); transform: translateY(-3px); }
.tm-lead { grid-column: span 4; padding: clamp(18px, 3vh, 30px) 22px; }
.tm-photo { width: clamp(52px, 7.6vh, 84px); height: clamp(52px, 7.6vh, 84px); flex: none; object-fit: cover; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.45); background: var(--black); margin-bottom: clamp(8px, 1.4vh, 14px); }
.tm-lead .tm-photo { width: clamp(80px, 12.6vh, 136px); height: clamp(80px, 12.6vh, 136px); }
.tm-name { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(15px, 2vh, 17px); line-height: 1.3; color: var(--cream); }
.tm-lead .tm-name { font-size: clamp(17px, 2.5vh, 21px); }
.tm-role { margin-top: 5px; font-size: 11px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tm-bio { margin-top: clamp(6px, 1.2vh, 12px); max-width: 34ch; font-size: 14px; line-height: 1.6; color: rgba(245, 241, 230, 0.62); }
@media (min-width: 981px) {
  #team { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(82px, 11vh, 110px) 0 clamp(20px, 3.6vh, 48px); }
  #team > .container { width: 100%; }
  #team .section-head { max-width: 980px; margin-bottom: clamp(16px, 3.2vh, 40px); }   /* wide enough for the line under the title to stay on one line */
  #team .section-title { font-size: clamp(28px, 5vh, 48px); }
  #team .section-sub { margin-top: clamp(8px, 1.4vh, 16px); }
}
/* phones: the featured people one per row (photo beside the words), the others two by two */
@media (max-width: 640px) {
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-card { grid-column: span 1; padding: 14px 10px; }
  .tm-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: start; padding: 14px 16px; }
  .tm-lead .tm-photo { width: 76px; height: 76px; margin: 0; grid-row: 1 / span 3; }
  .tm-lead .tm-bio { margin-top: 4px; font-size: 13px; }
  .tm-photo { width: 60px; height: 60px; }
  .tm-name { font-size: 15px; }
  .tm-lead .tm-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .tm-card:hover { transform: none; } }

/* The credit ribbon at the foot of every page: who designed and built the site, and where to learn to build one.
   Full width, flush with the bottom of the page. */
.credit-ribbon { position: relative; overflow: hidden; margin: 30px 0 -30px; padding: 13px 0; background: linear-gradient(90deg, #0b0a08, #171309 50%, #0b0a08); border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent) 1; }
.st-foot .credit-ribbon { margin-bottom: -26px; }
.credit-ribbon::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 38%, rgba(244, 215, 125, 0.09) 50%, transparent 62%); transform: translateX(-100%); animation: credit-sheen 8s ease-in-out infinite; }
@keyframes credit-sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.credit-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; font-size: 13px; letter-spacing: 0.02em; color: rgba(245, 241, 230, 0.72); }
.credit-ribbon a { text-decoration: none; }
.credit-by { color: rgba(245, 241, 230, 0.72); }
.credit-by b { font-weight: 500; color: var(--gold-light); }
.credit-by:hover b { text-decoration: underline; text-underline-offset: 3px; }
.credit-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.6; }
.credit-learn { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.credit-cta { display: inline-flex; align-items: center; gap: 6px; padding: 6px 15px; border-radius: 999px; background: linear-gradient(120deg, #f4d77d, #d4af37); color: #120d00 !important; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; transition: transform 0.25s, box-shadow 0.25s; }
.credit-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(212, 175, 55, 0.7); }
.credit-cta:focus-visible, .credit-by:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
@media (max-width: 640px) { .credit-dot { display: none; } .credit-in { flex-direction: column; gap: 9px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .credit-ribbon::after { display: none; } .credit-cta:hover { transform: none; } }

/* About: "About Aayaath" leads the main heading, as a small gold line above the words */
.ph-kicker { display: block; margin-bottom: 14px; font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); }
/* /team/: the two groups are named, the leaders' cards say what they do, and the page ends with what Aayaath is */
.tp-label { margin: 0 0 14px; font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); text-align: center; }
.tp-grid-top + .tp-label { margin-top: clamp(26px, 4vw, 40px); }
.tp-grid-top .tp-card small { max-width: 34ch; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: rgba(245, 241, 230, 0.62); }
.tp-about-end { margin: clamp(40px, 6vw, 70px) auto 0; text-align: center; }
