/* Isnad Media */

:root {
  /* Layout: a pale sage page in the logo's green and gold; a mihrab arch frames a film at the top and the sections hang below it like links in a chain. */
  --green: #114D3A;
  --green-deep: #0B3A2B;
  --gold: #A8841F;
  --gold-text: #8A6A12;
  --white: #FFFFFF;
  --bg: #EEF4EF;       /* the page: a pale sage, not white */
  --surface: #FFFFFF;  /* cards and fields, lifted off the page */
  --tint: #E2ECE5;
  --gold-tint: #FBF6E7;
  --ink: #114D3A;
  --muted: #4E7264;
  --soft: #9BB2A6;
  --line: #D2E0D6;
  --line-gold: #E6D8AE;
  --gold-light: #D6B65C;  /* gold on the deep green */

  /* each prayer has its colour, on the live map and in the prayer times */
  --p-fajr: #7FA6CC;
  --p-sunrise: #E8D9A6;
  --p-dhuhr: #E3B946;
  --p-asr: #C2852B;
  --p-maghrib: #D0643A;
  --p-isha: #2E6B54;
  /* star and cross, as in the gold illumination of a printed muṣḥaf */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%23A8841F'%3E%3Cpath d='M48.0 0.0L62.1 14.1L81.9 14.1L81.9 33.9L96.0 48.0L81.9 62.1L81.9 81.9L62.1 81.9L48.0 96.0L33.9 81.9L14.1 81.9L14.1 62.1L0.0 48.0L14.1 33.9L14.1 14.1L33.9 14.1Z' stroke-opacity='.3'/%3E%3Cpath d='M48.0 9.0L59.4 20.4L75.6 20.4L75.6 36.6L87.0 48.0L75.6 59.4L75.6 75.6L59.4 75.6L48.0 87.0L36.6 75.6L20.4 75.6L20.4 59.4L9.0 48.0L20.4 36.6L20.4 20.4L36.6 20.4Z' stroke-opacity='.16'/%3E%3C/g%3E%3Cpath d='M48.0 41.0L50.1 43.1L52.9 43.1L52.9 45.9L55.0 48.0L52.9 50.1L52.9 52.9L50.1 52.9L48.0 55.0L45.9 52.9L43.1 52.9L43.1 50.1L41.0 48.0L43.1 45.9L43.1 43.1L45.9 43.1Z' fill='%23A8841F' fill-opacity='.1'/%3E%3Cg fill='%23A8841F' fill-opacity='.1'%3E%3Ccircle cx='0' cy='0' r='2.5'/%3E%3Ccircle cx='96' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='96' r='2.5'/%3E%3Ccircle cx='96' cy='96' r='2.5'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: "Bodoni Moda", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-naskh: "Amiri", "Geeza Pro", "Traditional Arabic", "Times New Roman", serif;
  --font-kufi: "Reem Kufi", "Amiri", "Geeza Pro", sans-serif;

  --step-4: clamp(2.7rem, 1.7rem + 4.2vw, 5rem);
  --step-3: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  --step-2: 1.5rem;
  --step-1: 1.1875rem;
  --step--1: .8125rem;
  --step--2: .6875rem;

  --radius: 6px;
  --wrap: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

@media (max-width: 560px) {
  :root { --step--2: .75rem; }  /* the small uppercase labels, a little larger on phones */
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--green);
  text-wrap: balance;
}

p, figure, blockquote { margin: 0; }

a { color: var(--green); }

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

[lang="ar"] { font-family: var(--font-naskh); }

.gold { color: var(--gold); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }  /* the skip link lands here; the page itself needs no ring */

/* "Skip to content": hidden until a keyboard reaches it, then shown over the bar */
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

.noscript { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: var(--gold-tint); color: var(--green); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 80px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

@media (min-width: 900px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .9375rem/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--line { background: var(--surface); color: var(--green); border-color: var(--line-gold); }
.btn--line:hover { border-color: var(--gold); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); }

/* ---------- section labels ---------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
}
/* two links of the logo's chain before each label; the second locks onto the first as the section comes on screen */
.eyebrow::before,
.eyebrow::after {
  content: "";
  order: -2;
  width: 18px;
  height: 10px;
  flex: none;
  border: 2px solid var(--gold);
  border-radius: 999px;
}
.eyebrow::after { order: -1; margin-left: -24px; transition: transform .8s cubic-bezier(.2, .7, .2, 1) .2s, opacity .5s .2s; }
.js-reveal .eyebrow:not(.is-seen)::after { opacity: 0; transform: translateX(14px); }
.eyebrow--hero::before,
.eyebrow--hero::after { display: none; }  /* the lamp's chain hangs just above it */
.eyebrow__ar {
  font-family: var(--font-kufi);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
  word-spacing: .25em;
  text-transform: none;
  color: var(--green);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--green);
  border-bottom: 1px solid var(--line-gold);
}
/* a gold line along the bottom of the bar, filling as the page is read */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(var(--read, 0));
  transform-origin: left;
  pointer-events: none;
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand {
  --mark-arch: var(--green);
  --mark-chain: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--green);
  text-decoration: none;
}
.brand__mark { width: 30px; height: 40px; flex: none; }
.brand__word { display: grid; gap: 5px; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .1em; }
.brand__sub { font-size: .625rem; font-weight: 700; letter-spacing: .55em; color: var(--gold); }

/* the sections, with the one on screen underlined in gold */
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--green); }
.site-nav a:hover::after,
.site-nav a[aria-current]::after { transform: scaleX(1); }
/* Contact is a green pill at the end, in the place and style the Follow us button had */
.site-nav a.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .2s, box-shadow .2s;
}
.site-nav a.site-nav__cta::after { content: none; }
.site-nav a.site-nav__cta:hover { background: var(--green-deep); color: var(--white); }
.site-nav a.site-nav__cta[aria-current] { background: var(--green-deep); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold-light); }
.site-header__back { margin-left: auto; }
.menu-btn { display: none; }

/* phones, tablets and dual-screen phones: the sections open as a list under the bar */
@media (max-width: 900px), (horizontal-viewport-segments: 2) {
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px 0 12px;
    border: 1.5px solid var(--line-gold);
    border-radius: 999px;
    background: var(--bg);
    color: var(--green);
    font: 600 .875rem/1 var(--font-body);
    cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn__close,
  .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px max(20px, env(safe-area-inset-left, 0px)) 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 18px 30px rgba(17, 77, 58, .12);
  }
  .site-nav.is-open { display: flex; animation: reach-in .25s cubic-bezier(.2, .7, .2, 1); }
  .site-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--green); }
  .site-nav a:last-child { border-bottom: 0; }
  /* in the phone menu, Contact is a full-width green pill under the other sections */
  .site-nav a.site-nav__cta { justify-content: center; min-height: 48px; margin: 12px 0 2px; }
  .site-nav a::after { left: 4px; right: auto; bottom: 12px; width: 28px; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
  .menu-btn span { display: none; }
  .menu-btn { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- hero ---------- */

/* the opening is set in the deep green of the logo, with the muṣḥaf's star and cross faint at its edges */
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 80% 70% at 50% 35%, var(--green) 0%, var(--green-deep) 70%);
  color: rgba(255, 255, 255, .8);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-position: center top;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 35%, #000);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 35%, #000);
}

/* the opening stands alone, centred, inside a mihrab drawn in gold, with a mosque lamp hanging from a chain at its point;
   the Ṭawāf arch follows "Our name" */
.hero__inner {
  --mihrab-top: clamp(18px, 3vw, 44px);
  --lamp-w: clamp(34px, 3.6vw, 50px);
  position: relative;
  padding-block: calc(var(--mihrab-top) + var(--lamp-w) * 3.75 + clamp(16px, 2.4vw, 32px)) clamp(44px, 5.5vw, 80px);
}

.hero__mihrab {
  position: absolute;
  top: var(--mihrab-top);
  bottom: 0;
  left: 50%;
  width: min(1100px, calc(100% - 24px));
  container-type: inline-size;
  transform: translateX(-50%);
  pointer-events: none;
  /* the sides fade out into the page below */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
@media (min-width: 900px) { .hero__mihrab { width: min(1100px, calc(100% - 80px)); } }
/* the lamp's light, warm on the green */
.hero__mihrab::before {
  content: "";
  position: absolute;
  top: calc(var(--lamp-w) * 2.8);
  left: 15%;
  right: 15%;
  height: 62cqw;
  max-height: 560px;
  background: radial-gradient(closest-side, rgba(214, 182, 92, .18), rgba(214, 182, 92, 0));
  animation: hero-glow 1.6s ease-out 2.4s backwards;
}
.hero__arch { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 200 / 114.5; overflow: visible; }
.hero__arch path { fill: none; stroke: var(--gold-light); stroke-width: 1.5; vector-effect: non-scaling-stroke; animation: hero-draw 1.8s cubic-bezier(.6, .1, .2, 1) .1s backwards; }
.hero__leg { position: absolute; top: 57.25cqw; bottom: 0; width: 1.5px; background: var(--gold-light); transform-origin: top; animation: hero-grow 1.4s cubic-bezier(.4, 0, .2, 1) 1.2s backwards; }
.hero__leg--l { left: -.75px; }
.hero__leg--r { right: -.75px; }
.hero__lamp {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--lamp-w);
  height: auto;
  aspect-ratio: 60 / 224;
  margin-left: calc(var(--lamp-w) / -2);
  overflow: visible;
  transform-origin: 50% 0;
  animation: hero-swing 6s ease-in-out 3s infinite alternate;
}
/* the links come down one after another, each handed on by the one above it */
.hero__chain { fill: none; stroke: var(--gold-light); stroke-width: 2.5; stroke-linecap: round; }
.hero__chain path { stroke-width: 4; }
.hero__link { animation: hero-link .45s cubic-bezier(.2, .7, .2, 1) calc(.9s + var(--i) * .12s) backwards; }
/* then the lamp arrives at the end of the chain and is lit */
.hero__lantern {
  filter: drop-shadow(0 0 10px rgba(255, 222, 140, .7));
  animation: hero-link .6s cubic-bezier(.2, .7, .2, 1) 2s backwards, hero-flicker 2.6s ease-in-out 3.4s infinite alternate;
}
.hero__cords { fill: none; stroke: var(--gold-light); stroke-width: 1.2; }
.hero__glass { fill: url(#lampGlass); stroke: var(--gold-light); stroke-width: 1.5; animation: hero-light 1.2s ease-out 2.5s backwards; }
.hero__bands { fill: none; stroke: rgba(11, 58, 43, .45); stroke-width: 1.2; }
.hero__medallion { color: var(--green-deep); fill: var(--green-deep); }
@keyframes hero-link { from { opacity: 0; transform: translateY(-12px); } }
@keyframes hero-light { from { fill-opacity: .25; } }
@keyframes hero-flicker { to { filter: drop-shadow(0 0 16px rgba(255, 222, 140, .95)); } }
@keyframes hero-glow { from { opacity: 0; } }
@keyframes hero-draw { from { stroke-dasharray: 0 1; } to { stroke-dasharray: 1 0; } }
@keyframes hero-grow { from { transform: scaleY(0); } }
@keyframes hero-swing { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

.hero__copy { position: relative; display: grid; gap: 26px; justify-items: center; max-width: 820px; margin-inline: auto; text-align: center; }
.hero__copy > * { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) .25s both; }
.hero__copy > :nth-child(2) { animation-delay: .4s; }
.hero__copy > :nth-child(3) { animation-delay: .6s; }
/* two balanced lines, narrow enough to stand clear of the arch at every width */
.hero h1 { max-width: 8.6em; font-size: var(--step-4); letter-spacing: -.01em; color: var(--white); }
/* the lamp's light falls on "chain." once it is lit */
.hero h1 .gold { color: var(--gold-light); text-shadow: 0 0 .45em rgba(214, 182, 92, .4); animation: hero-lit 1.6s ease-out 2.6s backwards; }
@keyframes hero-lit { from { text-shadow: 0 0 .45em rgba(214, 182, 92, 0); } }
.hero .eyebrow { justify-content: center; color: var(--gold-light); }
/* phones: the label stacks, so it fits where the arch is still narrow */
@media (max-width: 480px) { .eyebrow--hero { flex-direction: column; gap: 4px; } }
.hero .eyebrow__ar { color: var(--white); }

/* ---------- 404: the chain with one link broken and the star fallen ---------- */

.lost { min-height: 100dvh; }
.lost__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-block: clamp(220px, 28vh, 260px) 80px;
  text-align: center;
}
.lost__chain {
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: auto;
  aspect-ratio: 60 / 170;
  margin-left: -32px;
  overflow: visible;
  transform-origin: 50% 0;
  animation: hero-swing 6s ease-in-out infinite alternate;
}
.lost__broken { transform: rotate(-32deg); transform-origin: 30px 54px; }
.lost__chain use { color: var(--gold-light); filter: drop-shadow(0 0 8px rgba(214, 182, 92, .6)); }
.lost h1 { max-width: 14ch; font-size: var(--step-4); color: var(--white); }
.lost h1 .gold { color: var(--gold-light); }
.lost__lead { max-width: 46ch; font-size: 1.125rem; color: rgba(255, 255, 255, .78); }
.lost .btn--primary { background: var(--gold-light); color: var(--green-deep); }
.lost .btn--primary:hover { background: #E4C778; }

/* ---------- the privacy notice ---------- */

.legal { max-width: 760px; }
.legal h1 { font-size: var(--step-3); }
.legal__date { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.section .legal h2 { margin-top: 40px; font-size: 1.6rem; }
.legal p, .legal li { max-width: 66ch; color: var(--muted); }
.legal h2 + p, .legal p + p, .legal ul + p { margin-top: 12px; }
.legal a[href^="https://wa.me"] { white-space: nowrap; }
.legal ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 1.2em; }
.legal strong { color: var(--green); font-weight: 600; }
.legal a { color: var(--green); }

/* live countdown to the next adhan, shaped like a chain link */
.countdown {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 22px;
  padding: 14px 30px 14px 14px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--surface);
}
.countdown__ring { width: 76px; height: 76px; flex: none; }
.countdown__track { fill: none; stroke: var(--line); stroke-width: 4; }
.countdown__fill { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .9s linear; }
.countdown__star { color: var(--green); }
.countdown__text { display: grid; gap: 1px; min-width: 0; }
.countdown__label { font-size: var(--step--2); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.countdown__name { color: var(--green); font-weight: 500; }
.countdown__name .ar { font-size: 1.25rem; color: var(--gold-text); }
.countdown__clock {
  font: 600 clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem)/1.1 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  color: var(--green);
}

/* city pickers */
.city-select {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A8841F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}
.city-select--pill {
  min-height: 40px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background-color: var(--surface);
  font-size: .9375rem;
  font-weight: 500;
}
.city-select:hover { color: var(--gold-text); }

/* phones: controls big enough for a thumb, and pickers at 16px so iPhones don't zoom in on them */
@media (max-width: 900px), (horizontal-viewport-segments: 2), (vertical-viewport-segments: 2) {
  .btn--sm { min-height: 44px; }
  .city-select { font-size: 16px; }
  .city-select--pill { min-height: 44px; }
}

@media (max-width: 420px) {
  .countdown { gap: 12px; padding: 12px 22px 12px 12px; border-radius: 48px; }
  .countdown__ring { width: 60px; height: 60px; }
}
/* folding phones' narrow outer screens (280–340px) */
@media (max-width: 340px) {
  .countdown { gap: 10px; padding: 10px 14px 10px 10px; }
  .countdown__ring { width: 48px; height: 48px; }
  .countdown__clock { font-size: 1.6rem; }
  .countdown__label { letter-spacing: .12em; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(36px, 4.5vw, 60px); }
.section + .section { padding-top: 0; }
.section__head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 26px; }
.section h2 { font-size: var(--step-3); }
.section__lead { max-width: 62ch; font-size: 1.0625rem; color: var(--muted); }

/* the page's words and cards rise in as they come on screen (only with the script, and never with reduced motion) */
.reveal { transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), border-color .3s, background-color .3s, box-shadow .3s; }
.reveal:not(.is-seen) { opacity: 0; transform: translateY(22px); }

/* a deep green band, with the muṣḥaf's star and cross faint at its edges */
.section.section--deep {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 4.5vw, 64px) clamp(28px, 3vw, 40px);
  background: var(--green-deep);
  color: rgba(255, 255, 255, .78);
}
.section--deep + .section { padding-top: clamp(28px, 3vw, 40px); }
.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-position: center top;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, transparent, #000);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, transparent, #000);
}
.section--deep h2,
.section--deep h3 { color: var(--white); }
.section--deep .eyebrow { color: var(--gold-light); }
.section--deep .eyebrow::before,
.section--deep .eyebrow::after { border-color: var(--gold-light); }
.section--deep .eyebrow__ar { color: var(--white); }
.section--deep .btn--primary { background: var(--gold-light); color: var(--green-deep); }
.section--deep .btn--primary:hover { background: #E4C778; }

/* ---------- the shelves of videos under the arch strip ---------- */

.shelf {
  position: relative;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 20px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: reach-in .4s cubic-bezier(.2, .7, .2, 1);
}
.shelf__films { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.shelf__film { display: grid; align-content: start; gap: 2px; min-width: 0; }
.shelf__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--green-deep);
  box-shadow: 0 0 0 1px var(--line-gold), 0 10px 24px rgba(17, 77, 58, .1);
  cursor: pointer;
  transition: box-shadow .25s;
}
.shelf__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.shelf__thumb:hover { box-shadow: 0 0 0 2px var(--green), 0 14px 30px rgba(17, 77, 58, .16); }
.shelf__thumb:hover img { transform: scale(1.04); }
.shelf__thumb:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
/* a small corner badge, so the frame stays clear */
.shelf__play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 58, 43, .85);
  color: #FFFFFF;
  pointer-events: none;
  transition: transform .3s, opacity .3s;
}
.shelf__play svg { width: 12px; height: 12px; transform: translateX(1px); }
.shelf__thumb:hover .shelf__play { transform: scale(1.1); }
.shelf__len {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 58, 43, .85);
  color: #FFFFFF;
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.shelf__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .45s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.shelf__thumb:hover .shelf__preview { transform: scale(1.04); }
.is-previewing .shelf__preview { opacity: 1; }
.is-previewing .shelf__play { opacity: 0; }
/* how far this visitor has watched */
.shelf__progress { position: absolute; right: 0; bottom: 0; left: 0; display: none; height: 4px; background: rgba(255, 255, 255, .28); pointer-events: none; }
.shelf__progress span { display: block; width: 0; height: 100%; background: #D6B65C; }
.is-started .shelf__progress { display: block; }
.shelf__series { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 14px; font-size: var(--step--2); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.shelf__series .piece__ar { margin: 0; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.shelf .piece__title { margin-top: 6px; font-size: 1.25rem; }
.shelf .piece__text { margin-top: 4px; }
.shelf .piece__text { max-width: 44ch; }
/* the videos rise into the shelf one after another */
.shelf:not([hidden]) .shelf__film { animation: rise-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.shelf__film:nth-child(2) { animation-delay: .08s; }
.shelf__film:nth-child(3) { animation-delay: .16s; }
.shelf__film:nth-child(n+4) { animation-delay: .24s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 560px) {
  .shelf__films { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .shelf__series { letter-spacing: .1em; }
}

/* ---------- prayer times ---------- */

.prayers-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 14px; font-weight: 600; color: var(--green); }

.prayers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* each prayer carries its colour from the live map along its top edge */
.prayer { display: grid; align-content: start; gap: 2px; padding: 14px 16px 16px; background: var(--surface); box-shadow: inset 0 3px var(--c, transparent); }
.prayer[data-p="fajr"] { --c: var(--p-fajr); }
.prayer[data-p="sunrise"] { --c: var(--p-sunrise); }
.prayer[data-p="dhuhr"] { --c: var(--p-dhuhr); }
.prayer[data-p="asr"] { --c: var(--p-asr); }
.prayer[data-p="maghrib"] { --c: var(--p-maghrib); }
.prayer[data-p="isha"] { --c: var(--p-isha); }
.prayer:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.prayer:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.prayer__ar { font-size: 1.375rem; line-height: 1.35; color: var(--gold-text); text-align: left; }
.prayer__en { font-size: var(--step--2); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prayer__time { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
.prayer__in { font-size: var(--step--1); font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.prayer--sun .prayer__time { color: var(--muted); }
.prayer.is-next { position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 3px var(--c, transparent), 0 0 0 2px var(--gold), 0 10px 24px rgba(17, 77, 58, .12); }
.prayer.is-next .prayer__in { font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em; }
.prayer__tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-text); letter-spacing: .12em; }
.prayers__note { max-width: 70ch; margin-top: 14px; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 760px) {
  .prayers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prayer { padding: 12px; }
}

/* ---------- across africa: the live adhan map ---------- */

.atlas {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "map head" "map side";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 24px;
}
.atlas__head { grid-area: head; display: grid; gap: 14px; align-content: end; }
.atlas__side { grid-area: side; display: grid; align-content: start; gap: 18px; }

.atlas__map {
  grid-area: map;
  position: relative;
  align-self: start;
  aspect-ratio: 860 / 760;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(ellipse at 45% 50%, #EEF4F1 0%, #DDE9E3 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px rgba(17, 77, 58, .1);
}
.atlas__land, .atlas__night, .atlas__lines, .atlas__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__coast { fill: #FBF8EE; stroke: #B9CCC1; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(17, 77, 58, .12)); }
.atlas__borders { fill: none; stroke: #D9CFAE; stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.atlas__lat { stroke: #B9CCC1; stroke-width: .8; stroke-dasharray: 2 5; }
.atlas__lat-label { font: 600 11px var(--font-body); fill: #7F998C; text-anchor: start; letter-spacing: .08em; }
.atlas__night { image-rendering: auto; mix-blend-mode: multiply; pointer-events: none; }
.atlas__lines { pointer-events: none; }
.atlas__qibla { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .22; }
.atlas__qibla--on { stroke-width: 2.4; opacity: .95; stroke-dasharray: 6 5; animation: atlas-flow 1s linear infinite; }
@keyframes atlas-flow { to { stroke-dashoffset: -11; } }
.atlas__kaaba rect { fill: #111; }
.atlas__kaaba line { stroke: #D6B65C; stroke-width: 2; }
.atlas__kaaba text { font: 700 15px var(--font-body); fill: var(--green); paint-order: stroke; stroke: #FBFAF4; stroke-width: 4px; }

/* a city: a small light, coloured by the prayer it is in */
.atlas__dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.atlas__dot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--c, var(--p-isha));
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 1px 3px rgba(0, 0, 0, .35);
  transition: background-color .6s, transform .2s;
}
.atlas__dot:hover::before, .atlas__dot:focus-visible::before, .atlas__dot.is-on::before { transform: scale(1.5); }
.atlas__dot:focus-visible { outline: none; }
.atlas__dot:focus-visible::before { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--green); }
/* the adhan is being called here: a ring spreads out from the city */
.atlas__dot.is-calling::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid var(--c);
  animation: atlas-call 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes atlas-call { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .atlas__dot.is-calling::after { animation: none; transform: scale(1.9); opacity: .75; } }
.atlas__dot[data-p="fajr"] { --c: var(--p-fajr); }
.atlas__dot[data-p="sunrise"] { --c: var(--p-sunrise); }
.atlas__dot[data-p="dhuhr"] { --c: var(--p-dhuhr); }
.atlas__dot[data-p="asr"] { --c: var(--p-asr); }
.atlas__dot[data-p="maghrib"] { --c: var(--p-maghrib); }
.atlas__dot[data-p="isha"] { --c: var(--p-isha); }

.atlas__tip {
  position: absolute;
  z-index: 3;
  width: min(260px, 70%);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(11, 58, 43, .95);
  color: #FFFFFF;
  font-size: .8125rem;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.atlas__tip b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.atlas__tip small { display: block; color: rgba(255, 255, 255, .7); }
.atlas__tip .atlas__tip-now { color: #D6B65C; font-weight: 700; }
.atlas__tip p + p { margin-top: 4px; }

.atlas__clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-family: var(--font-display); font-size: 1.5rem; color: var(--green); font-variant-numeric: tabular-nums; }
.atlas__live { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--white); font: 700 var(--step--2)/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.atlas__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D6B65C; animation: atlas-blink 1.8s ease-in-out infinite; }
.atlas__live.is-sim { background: var(--gold-tint); color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--line-gold); }
.atlas__live.is-sim::before { animation: none; background: var(--gold); }
@keyframes atlas-blink { 50% { opacity: .25; } }
.atlas__now { min-height: 3em; color: var(--green); font-weight: 600; }
.atlas__now span[lang="ar"] { color: var(--gold-text); font-weight: 400; }

.atlas__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.atlas__key li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.atlas__key i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 2.5px var(--line); }
.atlas__key b { margin-left: auto; color: var(--green); font-variant-numeric: tabular-nums; }
.atlas__key [lang="ar"] { color: var(--gold-text); }

.atlas__time { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }
.atlas__time .btn svg { width: 14px; height: 14px; }
.atlas__scrub { flex: 1 1 180px; min-width: 0; height: 44px; margin: 0; accent-color: var(--green); }

@media (max-width: 900px) {
  .atlas { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "side"; grid-template-rows: none; }
  .atlas__map { border-radius: 18px; }
}
@media (max-width: 560px) {
  .atlas__kaaba text { font-size: 32px; stroke-width: 7px; dominant-baseline: central; }
  .atlas__lat-label { font-size: 24px; }
  .atlas__dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .atlas__dot::before { inset: 5px; }
  .atlas__tip { width: min(240px, 78%); }
}

/* ---------- from the haramain ---------- */

/* one background for the section, like an illuminated page */
.haram {
  --haram-wash: #FCF9F0;
  position: relative;
  isolation: isolate;
  background: var(--haram-wash);
}
.section.haram { padding-top: clamp(36px, 4.5vw, 60px); }
.haram::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-position: center top;
  /* strongest at the edges, quiet behind the words and arches */
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, rgba(0, 0, 0, .28), #000);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, rgba(0, 0, 0, .28), #000);
}
/* the double gold rule that frames a muṣḥaf page */
.haram::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.4vw, 18px);
  z-index: -1;
  border: 1.5px solid var(--line-gold);
  box-shadow: inset 0 0 0 4px var(--haram-wash), inset 0 0 0 5px var(--line-gold);
  pointer-events: none;
}

/* an arcade like the Haram's own: arched windows onto one moment each, linked like a chain */
.arcade {
  --gap: clamp(22px, 3vw, 40px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.arcade__bay { display: grid; align-content: start; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.arcade__frame { position: relative; width: 100%; aspect-ratio: 18 / 25; }
.arcade__bay + .arcade__bay .arcade__frame::before {
  content: "";
  position: absolute;
  top: 56%;
  left: calc(var(--gap) / -2 - 23px);
  z-index: 2;
  width: 46px;
  height: 16px;
  margin-top: -8px;
  border: 2.5px solid var(--gold);
  border-radius: 999px;
  pointer-events: none;
  transition: opacity .2s;
}
/* a link shows only while both its arches are in view, so the edge of the row never cuts one */
.arcade__bay:not(.is-in) .arcade__frame::before,
.arcade__bay:not(.is-in) + .arcade__bay .arcade__frame::before { opacity: 0; }
.arcade__arch {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  border: 0;
  background: var(--green);
  clip-path: url(#archClip);
  cursor: zoom-in;
  transition: background-color .25s;
}
.arcade__arch:focus-visible { outline: none; background: var(--gold); }
.arcade__window { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--green-deep); clip-path: url(#archClip); }

.arcade__window img,
.arcade__window video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.arcade__arch:hover .arcade__window > *,
.arcade__arch:focus-visible .arcade__window > * { transform: scale(1.06); }
.arcade .piece__text { max-width: none; text-wrap: balance; }
.arcade__frame .hold { position: absolute; right: 16%; bottom: 16px; z-index: 2; }

.piece__ar { margin-top: 14px; font-size: 1.3rem; line-height: 1.4; color: var(--gold-text); }
.piece__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--green); }
.piece__text { max-width: 26ch; font-size: var(--step--1); color: var(--muted); }

/* small round buttons laid over the moving pictures */
.hold {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 58, 43, .72);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(214, 182, 92, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.hold:hover { background: rgba(11, 58, 43, .92); }
.hold svg { width: 16px; height: 16px; }
@media (max-width: 900px), (horizontal-viewport-segments: 2), (vertical-viewport-segments: 2) { .hold { width: 44px; height: 44px; } }
.hold__play,
.is-held .hold__pause { display: none; }
.is-held .hold__play { display: inline; }

/* phones and tablets: two whole arches fill the width, and a swipe moves on to the next two, so no arch is ever cut */
@media (max-width: 900px) {
  .arcade {
    --gap: 22px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    margin-inline: -20px;
    padding: 4px 20px 10px;
  }
  .arcade::-webkit-scrollbar { display: none; }
  .arcade__bay { flex: 0 0 calc((100% - var(--gap)) / 2); }
  .arcade__bay:nth-child(odd) { scroll-snap-align: start; scroll-snap-stop: always; }
}
/* two arches side by side leave narrow columns: smaller captions keep the longest to two lines, so the row stays even */
@media (max-width: 420px) {
  .arcade .piece__ar { font-size: 1.1rem; }
  .arcade .piece__title { font-size: 1.15rem; }
}

/* the arch strip: the arcade's frames at every width, with a gold line inside, and each arch opens its videos */
@media (min-width: 901px) {
  .arcade--strip {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0 10px;
  }
  .arcade--strip::-webkit-scrollbar { display: none; }
  .arcade--strip .arcade__bay { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
  .arcade--strip .arcade__bay:nth-child(odd) { scroll-snap-align: start; scroll-snap-stop: always; }
}
.arcade--strip .arcade__bay { position: relative; grid-template-rows: auto auto auto auto 1fr; }
.arcade--strip .arcade__arch { position: relative; }
.arcade--strip .arcade__bay:hover .arcade__window > * { transform: scale(1.06); }
.arcade__line { position: absolute; top: 15px; left: 15px; width: calc(100% - 30px); height: calc(100% - 20px); overflow: visible; fill: none; stroke: #D6B65C; stroke-width: 1.2; opacity: .85; pointer-events: none; }
.strip__btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.strip__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* the whole arch is the button */
.strip__btn:focus-visible { outline: none; text-decoration: underline; }
.arcade__bay:has(.strip__btn:focus-visible) .arcade__arch,
.arcade__bay.is-open .arcade__arch { background: var(--gold); }
.strip__more { display: flex; align-self: end; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; font-size: var(--step--1); font-weight: 700; color: var(--green); }
.strip__more svg { width: 14px; height: 14px; transition: transform .3s; }
.arcade__bay.is-open .strip__more svg { transform: rotate(90deg); }
/* the row of arches with an arrow either side, level with the middle of the arches; the small arches sit below */
.strip { position: relative; margin-inline: -12px; padding-inline: 58px; }
.strip:has(> .strip__bar[hidden]) { margin-inline: 0; padding-inline: 0; }
.strip__bar { justify-content: center; margin-top: 18px; }
.strip .deck__btn { position: absolute; top: calc(4px + var(--arch-half)); z-index: 3; width: 44px; height: 44px; margin-top: -22px; }
.strip .deck__btn:first-child { left: 0; }
.strip .deck__btn:last-child { right: 0; }
/* on a phone two arches need the full width, so the arrows sit on their outer edges, and only where there is further to go */
@media (max-width: 560px) {
  .strip { margin-inline: 0; padding-inline: 0; }
  .strip .deck__btn:first-child { left: -16px; }
  .strip .deck__btn:last-child { right: -16px; }
  .strip .deck__btn:disabled { visibility: hidden; }
}
.strip__dots { display: flex; align-items: center; gap: 8px; }
.strip__dot { width: 11px; height: 14px; background: var(--line-gold); clip-path: url(#archClip); transition: background-color .25s; }
.strip__dot.is-on { background: var(--gold); }

/* the full view: one picture, uncropped, over the page */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 84px 24px;
  border: 0;
  background: rgba(6, 28, 21, .96);
  color: #FFFFFF;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 16px; }
.lightbox::backdrop { background: rgba(6, 28, 21, .6); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox:focus { outline: none; }
.lightbox__media { position: relative; width: 100%; height: 100%; min-height: 0; }
.lightbox__media img,
.lightbox__media video { position: absolute; inset: 0; display: block; max-width: 100%; max-height: 100%; margin: auto; border-radius: 14px; background: #000; box-shadow: 0 0 0 1.5px rgba(214, 182, 92, .6); }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; max-width: 70ch; font-size: .9375rem; text-align: center; color: rgba(255, 255, 255, .82); }
.lightbox__caption b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: #FFFFFF; }
.lightbox__caption [lang="ar"] { font-size: 1.25rem; color: #D6B65C; }
.lightbox__resume { padding: 2px 10px; border-radius: 999px; background: rgba(214, 182, 92, .2); color: #D6B65C; font-size: .8125rem; font-weight: 600; }
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev,
.lightbox__next { top: 50%; margin-top: -24px; }
.lightbox__prev { left: 18px; }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next { display: none; }
.lightbox__next { right: 18px; }

@media (max-width: 760px) {
  .lightbox { padding: 64px 12px 84px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 18px; margin: 0; }
}
/* phones turned sideways: less margin, with the arrows at the sides */
@media (max-height: 500px) {
  .lightbox { padding: 12px 72px; gap: 8px; }
  .lightbox__prev,
  .lightbox__next { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__close { top: 10px; right: 12px; }
}

/* social links */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 12px;
  border: 1.5px solid var(--line-gold);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.socials a:hover { border-color: var(--gold); background: var(--gold-tint); }
.socials svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.socials span { display: grid; line-height: 1.2; }
.socials small { font-size: .75rem; font-weight: 500; color: var(--muted); }

/* ---------- ayah ---------- */

/* the verse, with Makkah rising out of the white below it */
.ayah { background: var(--bg); color: var(--green); }
.ayah__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: clamp(28px, 3.5vw, 44px) 0;
  text-align: center;
}
.ayah__photo { position: relative; margin: clamp(-24px, -2vw, -8px) 0 0; }
.ayah__photo img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 440px);
  object-fit: cover;
  object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
}
.ayah__ar { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.9; color: var(--green); }
.ayah__en { max-width: 34ch; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); line-height: 1.35; color: var(--green); }
.ayah__en .gold {
  color: var(--gold-text);
  /* "verify it." is underlined in gold once the verse is read */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 1.4s cubic-bezier(.6, .1, .2, 1) .6s;
}
.ayah.is-seen .ayah__en .gold,
html:not(.js-reveal) .ayah__en .gold { background-size: 100% 1.5px; }

/* ---------- our name ---------- */

.name {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
}
.name__head { display: grid; gap: 14px; }
.name__text { display: grid; gap: 16px; }
.name__ar {
  font-family: var(--font-kufi);
  font-weight: 700;
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  line-height: 1.1;
  color: var(--gold);
  text-align: left;
}
.name__text > p { max-width: 60ch; color: var(--muted); }

@media (max-width: 900px) {
  .name { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- masajid of africa: a photo story as a stack of pages, at the head of its shelf ---------- */

/* the words and the list of pages on one side, the stack on the other; the videos follow below a rule */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  animation: rise-in .55s cubic-bezier(.2, .7, .2, 1) both;
}
.story__text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.story .shelf__series { margin-top: 0; }
.story__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; color: var(--green); }
.story__lead { max-width: 46ch; color: var(--muted); }
/* every page of the story, by name: the one on top of the stack is marked in gold */
.story__pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 460px; margin: 6px 0 0; padding: 0; list-style: none; }
.story__go {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.story__go:hover { background: var(--surface); color: var(--green); }
.story__go:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.story__go[aria-current] { background: var(--surface); color: var(--green); font-weight: 600; box-shadow: inset 3px 0 var(--gold), 0 4px 14px rgba(17, 77, 58, .08); }
.story__n { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* a pair of photos at the foot of the shelf, below a rule: the words on one side, the photos on the other */
.pics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.pics__text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.pics .shelf__series { margin-top: 0; }
.pics__title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--green); }
.pics__lead { max-width: 46ch; color: var(--muted); }
.pics__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pics__item { display: grid; align-content: start; gap: 2px; min-width: 0; }
.pics__card {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gold-tint);
  box-shadow: 0 14px 30px rgba(17, 77, 58, .16);
  cursor: zoom-in;
  transition: box-shadow .25s;
}
.pics__card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pics__card:hover { box-shadow: 0 0 0 2px var(--green), 0 14px 30px rgba(17, 77, 58, .16); }
.pics__card:hover img { transform: scale(1.04); }
.pics__card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.pics .piece__ar { margin-top: 10px; font-size: 1.1rem; }
.pics .piece__title { margin-top: 0; font-size: 1.2rem; }
@media (max-width: 900px) {
  .pics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .pics__list { gap: 14px; }
  .pics .piece__title { font-size: 1.05rem; }
}

/* the stack is never taller than the screen: its pages, count and arrows all fit in view at once */
.deck { --stage: min(100%, 340px, max(200px, calc((100vh - 210px) * .8))); --arrow-side: max(-16px, calc(50% - var(--stage) / 2 - 78px)); position: relative; display: grid; justify-items: center; gap: 28px; min-width: 0; }
@supports (height: 100svh) { .deck { --stage: min(100%, 340px, max(200px, calc((100svh - 210px) * .8))); } }
.deck__stage { position: relative; width: var(--stage); aspect-ratio: 4 / 5; touch-action: pan-y; }
.deck__pages { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.deck__page { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.deck__card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gold-tint);
  box-shadow: 0 18px 36px rgba(17, 77, 58, .18);
  cursor: grab;
}
.deck__card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-select: none; }
/* the pages under the top one fan out a little; turned pages fly off to the left */
.deck__page[data-pos="0"] { z-index: 6; }
.deck__page[data-pos="1"] { z-index: 5; transform: translate(7%, 2%) rotate(4deg) scale(.95); }
.deck__page[data-pos="2"] { z-index: 4; transform: translate(-6%, 4%) rotate(-3.5deg) scale(.91); }
.deck__page[data-pos="3"],
.deck__page[data-pos="far"] { z-index: 3; transform: translate(3%, 6%) rotate(1.5deg) scale(.87); opacity: 0; }
.deck__page[data-pos="gone"] { z-index: 7; transform: translate(-130%, -6%) rotate(-16deg); opacity: 0; pointer-events: none; }
.deck.is-dragging .deck__page[data-pos="0"] { transition: none; }
.deck.is-dragging .deck__card { cursor: grabbing; }

.deck__bar { display: flex; align-items: center; gap: 18px; }
.deck__count { min-width: 5ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.deck__now { font-family: var(--font-display); font-size: 1.6rem; color: var(--green); }
.deck__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1.5px solid var(--line-gold);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.deck__btn:hover { border-color: var(--gold); }
.deck__btn:disabled { opacity: .35; cursor: default; }
.deck__btn svg { width: 18px; height: 18px; }
/* the arrows sit either side of the stack, level with its middle and clear of the fanned pages where there is room; the count stays below */
.deck .deck__btn { position: absolute; top: 0; z-index: 8; width: 44px; height: 44px; margin-top: calc(var(--stage) * .625 - 22px); }
.deck .deck__btn:first-child { left: var(--arrow-side); }
.deck .deck__btn:last-child { right: var(--arrow-side); }

@media (max-width: 900px) {
  /* one column: the words, then the stack, then the list of pages */
  .story { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .story .deck { margin: 18px 0 10px; }
  .story__text { display: contents; }
  .story__pages { order: 1; max-width: none; }
  .deck { --stage: min(82%, 340px, max(200px, calc((100vh - 210px) * .8))); }
}
@supports (height: 100svh) {
  @media (max-width: 900px) { .deck { --stage: min(82%, 340px, max(200px, calc((100svh - 210px) * .8))); } }
}
@media (max-width: 560px) {
  .deck .deck__btn:disabled { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .deck__page { transition: opacity .2s; }
  .story { animation: none; }
}

/* ---------- our expertise ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.service:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(17, 77, 58, .08); }
.service-num, .also__item-num { font-family: var(--font-display); font-size: 1.125rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.service h3 { font-size: 1.3rem; line-height: 1.15; }
.service p, .also__item p { font-size: .9375rem; color: var(--muted); }

/* on the green band: glassy cards with large numbers drawn in a gold line, which fill on hover */
.section--deep .service { background: rgba(255, 255, 255, .035); border-color: rgba(214, 182, 92, .25); }
.section--deep .service:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .065); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.section--deep .service-num { margin-bottom: 2px; font-size: 2.1rem; color: var(--gold-light); transition: color .3s; }
@supports (-webkit-text-stroke: 1px) {
  .section--deep .service-num { color: transparent; -webkit-text-stroke: 1px var(--gold-light); }
  .section--deep .service:hover .service-num { color: var(--gold-light); }
}
.section--deep .service p,
.section--deep .also__item p { color: rgba(255, 255, 255, .72); }
.section--deep .also__title,
.section--deep .also__item-num { color: var(--gold-light); }
.section--deep .also__item { border-top-color: rgba(214, 182, 92, .3); }

/* the smaller services, listed under a quieter heading */
.also { display: grid; gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.also__title { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.also__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.also__item { display: grid; align-content: start; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding-top: 18px; border-top: 1px solid var(--line-gold); }
.also__item-num { grid-row: span 2; font-size: 1rem; padding-top: 3px; }
.also__item h3 { font-size: var(--step-1); }
.services__cta { margin-top: clamp(24px, 3vw, 36px); }

@keyframes reach-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service { padding: 22px 20px; }
}

/* ---------- contact ---------- */

/* a soft gold light behind the heading, like the glow of a lamp */
.contact-section { background: radial-gradient(60% 420px at 50% 0, rgba(214, 182, 92, .16), transparent 70%), var(--bg); }
.section__head--center { justify-items: center; margin-inline: auto; text-align: center; }
.section__head--center .section__lead { max-width: 52ch; }

/* one box with a line of welcome and a dark green pill for each way to reach us */
.contact { max-width: 1080px; margin-inline: auto; }
.talk {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 48px);
  border: 2px solid var(--gold);
  border-radius: 24px;
  background: var(--surface);
}
.talk__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; color: var(--green); }
.talk__ways { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.talk__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 26px 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s, transform .2s;
}
.talk__btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.talk__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.talk__btn svg { flex: none; width: 20px; height: 20px; }
.talk__note { margin-top: -4px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 560px) {
  .talk__ways { display: grid; width: 100%; }
  .talk__btn { width: 100%; }
}

/* ---------- footer ---------- */

/* the footer closes the page in deep green, with the logo's arch and chain large and faint behind it */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-deep);
  color: rgba(255, 255, 255, .68);
  border-top: 2px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.footer__mark {
  --mark-arch: rgba(255, 255, 255, .06);
  --mark-chain: rgba(214, 182, 92, .14);
  position: absolute;
  right: max(12px, calc(50% - 680px));
  bottom: -48px;
  z-index: -1;
  width: clamp(110px, 12vw, 150px);
  height: auto;
  aspect-ratio: 272 / 362;
  pointer-events: none;
}
.site-footer .brand { --mark-arch: var(--white); --mark-chain: var(--gold-light); color: var(--white); }
.site-footer .brand__sub { color: var(--gold-light); }
.site-footer .footer__tag { color: rgba(255, 255, 255, .85); }
.site-footer .socials a { background: transparent; color: var(--white); border-color: rgba(214, 182, 92, .35); }
.site-footer .socials a:hover { background: rgba(255, 255, 255, .06); border-color: var(--gold-light); }
.site-footer .socials svg { color: var(--gold-light); }
.site-footer .socials small { color: rgba(255, 255, 255, .6); }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.footer__grid { padding-block: 44px 14px; }  /* the row sits low, close to the line above the small print */
/* one row: the logo and the line beside it on the left, the social buttons on the right */
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer__brand .socials { margin: 0 0 0 auto; }
@media (max-width: 760px) { .footer__brand .socials { margin-left: 0; } }
.footer__tag { font-size: var(--step--2); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--green); }
.footer__base a { color: inherit; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--step--1);
}

/* ---------- dual-screen phones ---------- */

/* With the page spread over two screens, nothing may sit across the hinge: two-part layouts put one part on each
   screen, grids put their columns either side, and the full view uses one screen. The browser reports where the
   hinge is through env(viewport-segment-*). */
@media (horizontal-viewport-segments: 2) {
  :root {
    --fold-start: env(viewport-segment-right 0 0, 50vw);
    --fold-end: env(viewport-segment-left 1 0, 50vw);
    --fold-gap: calc(var(--fold-end) - var(--fold-start) + 48px);
  }
  .wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
  .atlas, .name {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--fold-gap);
  }
  .services, .also__list { --g: var(--fold-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fold-gap); }
  .prayers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fold-gap); background: none; border: 0; row-gap: 1px; }
  .prayer, .prayer:first-child, .prayer:last-child { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
  .arcade { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fold-gap); row-gap: 40px; }
  .arcade__bay + .arcade__bay .arcade__frame::before { display: none; }  /* the chain links would cross the hinge */
  .section__head { max-width: calc(var(--fold-start) - 48px); }
  /* the verse: Arabic on the left screen, English on the right */
  .ayah__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--fold-gap); align-items: center; }
  .footer__base { justify-content: flex-start; column-gap: var(--fold-gap); }
  .footer__base p { flex: 1 1 0; }
  .lightbox { padding-left: calc(var(--fold-end) + 24px); padding-right: 24px; }
  .lightbox__prev { left: calc(var(--fold-end) + 12px); }
}
/* the same phones turned sideways, with the hinge running across: the full view uses the top screen */
@media (vertical-viewport-segments: 2) {
  .lightbox { padding-bottom: calc(100dvh - env(viewport-segment-bottom 0 0, 50dvh) + 16px); }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: min(480px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
