/* ==========================================================================
   Regina Dawah Association
   Clean, high-contrast type in the spirit of Apple's product pages:
   one sans family (Inter), tight headline tracking, flat colour.
   Deep night green, warm gold, white. Amiri for Arabic only.
   ========================================================================== */

:root {
  --bg: #0A110E;
  --bg-2: #0D1512;
  --surface: #121B17;
  --surface-2: #19241F;
  --text: #F5F5F7;
  --text-2: #A1A1A6;
  --text-3: #6E6E73;
  --gold: #D4AF6A;
  --gold-2: #E6C789;
  --on-gold: #14110A;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --gold-line: rgba(212, 175, 106, .42);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", "Geeza Pro", serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(96px, 12vw, 168px);
  --nav-h: 64px;
  --strip-h: 64px;
  --header-h: calc(var(--nav-h) + var(--strip-h));

  --ease: cubic-bezier(.22, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.48, .6, 1);   /* soft overshoot: rises, nudges past, settles */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF6A' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Cpath d='M40 0v14M40 66v14M0 40h14M66 40h14'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cpath d='M0 400V212.1A225 225 0 0 1 150 0A225 225 0 0 1 300 212.1V400Z'/%3E%3C/svg%3E");
  --arch-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cpath d='M1 400V212.1A224 224 0 0 1 150 1.5A224 224 0 0 1 299 212.1V400' fill='none' stroke='%23D4AF6A' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  color-scheme: dark;
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; --strip-h: 60px; }
}
.no-js { --strip-h: 0px; }

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -.011em;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
cite { font-style: normal; }
em { font-style: normal; color: var(--gold); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(212, 175, 106, .35); color: var(--text); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ar { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */

.eyebrow {
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--center { text-align: center; }

.h2 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--text);
  text-wrap: balance;
}

.lead {
  margin-top: 1.25rem;
  max-width: 36em;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.016em;
  text-wrap: pretty;
}
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- motion: soft bounce reveals ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .5s ease-out, transform .75s var(--spring);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* headlines split into words, each springs up in quick succession */
.js .split-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .55em, 0);
  transition: opacity .45s ease-out, transform .7s var(--spring);
  transition-delay: calc(var(--i, 0) * 32ms);
}
.js [data-split].is-visible .split-word { opacity: 1; transform: none; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1.0625rem/1 var(--font);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--gold); color: var(--on-gold); }
.btn--primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--primary:active { transform: scale(.98); }
.btn--outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--compact { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--gold);
}
.link-arrow span { transition: transform .3s var(--spring); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover span { transform: translateX(3px); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(10, 17, 14, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  color: var(--text);
}
.brand__mark { width: 28px; height: 28px; color: var(--gold); flex: none; }
.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__name span {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text-2);
}

.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a[aria-current="page"] { color: var(--text); }
.site-nav__give { margin-left: 10px; }
.header-cta { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 20px; height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-toggle__bars { position: relative; transform: translateY(-4px); }
.menu-toggle__bars::before { content: ""; position: absolute; left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: inline-flex; }
  .site-nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .4s var(--spring), visibility 0s;
  }
  .site-nav__list a:not(.btn) {
    display: flex;
    min-height: 56px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .site-nav__give { margin: 20px 0 0; }
  .site-nav__give .btn { width: 100%; }
}
@media (max-width: 720px) {
  .site-header__inner { gap: 12px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand__mark { width: 24px; height: 24px; }
  .brand__name { font-size: .9375rem; }
  .brand__name span { font-size: .6875rem; }
  .header-cta { padding: 0 14px; font-size: .875rem; }
}
@media (max-width: 340px) {
  .header-cta { display: none; }
}

/* ---------- prayer times bar: flat, no gradients ---------- */

.prayer-bar {
  height: var(--strip-h);
  background: #060B09;
  border-bottom: 1px solid var(--line);
}
.no-js .prayer-bar { display: none; }

.prayer-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.prayer-bar__meta { min-width: 0; margin-right: auto; }
.prayer-bar__title { font-size: .8125rem; font-weight: 600; color: var(--text); }
.prayer-bar__date { margin-top: 1px; font-size: .8125rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prayer-bar__group { display: flex; align-items: center; gap: 4px; }
.prayer-bar__times { display: flex; align-items: center; gap: 4px; }
.prayer-bar__times li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  text-align: center;
  transition: background-color .3s var(--ease);
}
.prayer-bar__name {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.prayer-bar__time {
  margin-top: 3px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.prayer-bar__ap { font-size: .72em; font-weight: 500; color: var(--text-2); }
.prayer-bar__tag { display: none; }

/* the current (or next) prayer: larger, solid gold */
.prayer-bar__times li.is-current {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "time tag" "time name";
  align-content: center;
  justify-content: center;
  column-gap: 10px;
  row-gap: 1px;
  min-width: 150px;
  height: 52px;
  margin-inline: 4px;
  padding: 0 16px;
  background: var(--gold);
}
.prayer-bar__times li.is-current .prayer-bar__time { grid-area: time; margin: 0; align-self: center; font-size: 1.625rem; font-weight: 700; letter-spacing: -.03em; color: var(--on-gold); }
.prayer-bar__times li.is-current .prayer-bar__ap { color: rgba(20, 17, 10, .7); }
.prayer-bar__times li.is-current .prayer-bar__name { grid-area: name; justify-self: start; color: var(--on-gold); font-size: .75rem; }
.prayer-bar__times li.is-current .prayer-bar__tag {
  grid-area: tag;
  display: block;
  justify-self: start;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(20, 17, 10, .62);
}

/* next prayer sits right after Isha */
.prayer-bar__next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 36px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
  white-space: nowrap;
}
.prayer-bar__next-label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.prayer-bar__next-text { margin-top: 2px; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--text); }

@media (max-width: 1180px) {
  .prayer-bar__meta { display: none; }
  .prayer-bar__group { margin-inline: auto; }
}
@media (max-width: 860px) {
  .prayer-bar__next { display: none; }
  .prayer-bar__inner { padding-inline: 8px; }
  .prayer-bar__group, .prayer-bar__times { width: 100%; }
  .prayer-bar__times { gap: 2px; }
  .prayer-bar__times li { flex: 1; min-width: 0; padding: 0 4px; height: 46px; }
  .prayer-bar__times li.is-current { flex: 1.55; min-width: 0; margin-inline: 2px; height: 50px; }
}
@media (max-width: 720px) {
  .prayer-bar__name { font-size: .5625rem; letter-spacing: .06em; }
  .prayer-bar__time { font-size: .9375rem; margin-top: 2px; }
  .prayer-bar__ap { display: none; }
  .prayer-bar__times li.is-current { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
  .prayer-bar__times li.is-current .prayer-bar__name { justify-self: auto; font-size: .5625rem; }
  .prayer-bar__times li.is-current .prayer-bar__tag { font-size: .5rem; }
  .prayer-bar__times li.is-current .prayer-bar__time { font-size: 1.25rem; }
}

/* ---------- welcome screen (typed) ---------- */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #040806;
  color: var(--text);
  cursor: pointer;
  animation: loader-failsafe 0s 9s forwards;   /* never trap the page if scripts fail */
}
.js.skip-intro .loader { display: none; }
.loader__text {
  max-width: 30em;
  padding-inline: 24px;
  text-align: center;
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.loader__gold { color: var(--gold); }
.loader__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.18em;
  background: var(--gold);
  animation: caret 1s steps(1) infinite;
}
.loader__wipe {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translate3d(0, 100%, 0);
}
.loader.is-wiping .loader__wipe { transform: translate3d(0, 0, 0); transition: transform .55s cubic-bezier(.7, 0, .25, 1); }
.loader.is-leaving { background: transparent; pointer-events: none; }
.loader.is-leaving .loader__text { opacity: 0; }
.loader.is-leaving .loader__wipe { transform: translate3d(0, -100%, 0); transition: transform .7s cubic-bezier(.7, 0, .25, 1); }
@keyframes caret { 50% { opacity: 0; } }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

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

.hero { position: relative; height: 100vh; height: 100svh; }
.js .hero.is-pinned { height: 230vh; height: 230svh; }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform-origin: 50% 70%;
}

.hero__veil {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
  pointer-events: none;
}
.hero__veil .veil-fill { fill: var(--bg); }
.hero__veil .veil-line { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .85; }

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: min(36vw, 480px);
  height: min(36vw, 480px);
  background: var(--pattern) 0 0 / 64px 64px;
  opacity: .06;
}
.hero__glow::before { left: 0; -webkit-mask: radial-gradient(circle at 0 100%, #000 0, transparent 70%); mask: radial-gradient(circle at 0 100%, #000 0, transparent 70%); }
.hero__glow::after { right: 0; -webkit-mask: radial-gradient(circle at 100% 100%, #000 0, transparent 70%); mask: radial-gradient(circle at 100% 100%, #000 0, transparent 70%); }

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + clamp(16px, 3.4vh, 44px));
  text-align: center;
}
.no-js .hero__copy,
.hero--flat .hero__copy { background: linear-gradient(var(--bg) 70%, rgba(10, 17, 14, 0)); padding-bottom: 48px; }

.verse { max-width: 46rem; margin-inline: auto; }
.verse__ar {
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.5;
  color: var(--gold);
}
.verse__en {
  margin-top: 2px;
  font-size: clamp(.875rem, .82rem + .2vw, 1rem);
  font-weight: 500;
  color: var(--text-2);
}
.verse__en cite { margin-left: .35em; color: var(--text-3); font-weight: 500; }

.hero__title {
  max-width: 13.5em;
  margin: clamp(14px, 2.4vh, 26px) auto 0;
  font-size: clamp(2.5rem, min(6vw, 8.4vh), 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__triad {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(18px, 3vh, 30px);
}

.hero__caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
  opacity: 0;
}

/* load-in after the welcome screen, with the same soft spring */
.js .hero__copy > .container > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
.js.is-ready .hero__copy > .container > * {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease-out, transform .8s var(--spring);
}
.js.is-ready .hero__copy .verse { transition-delay: .05s; }
.js.is-ready .hero__copy .hero__title { transition-delay: .14s; }
.js.is-ready .hero__copy .hero__triad { transition-delay: .24s; }
.js.is-ready .hero__copy .hero__actions { transition-delay: .32s; }

@media (max-width: 720px) {
  .hero .verse__en { display: none; }
  .hero .verse__ar { font-size: 1.3rem; }
  .hero .verse::after {
    content: "At-Tawbah 9:18";
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-3);
  }
  .hero__caption { flex-direction: column; gap: 4px; font-size: .6875rem; }
  .hero__actions { gap: 4px 20px; }
}

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

.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 50rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 24px 64px;
}
.section-head--split .lead { margin-top: 0; justify-self: end; max-width: 24em; }

@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .lead { justify-self: start; }
}

/* ---------- intro ---------- */

.intro { padding-top: clamp(112px, 14vw, 200px); }

.intro__statement {
  max-width: 19em;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.intro__statement .w { transition: opacity .35s linear; }

.intro__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
  max-width: 64rem;
  margin-top: clamp(56px, 7vw, 96px);
}
.intro__cols > div { padding-top: 24px; border-top: 1px solid var(--line-2); }
.intro__label { margin-bottom: .6rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.intro__cols p { color: var(--text-2); font-size: 1.125rem; line-height: 1.5; }

@media (max-width: 720px) {
  .intro__cols { grid-template-columns: 1fr; }
}

/* ---------- arch-framed portrait images ---------- */

.arch-wrap { position: relative; }
.arch-wrap::before {
  content: "";
  position: absolute;
  inset: -14px -14px 0;
  background: var(--arch-line) center / 100% 100% no-repeat;
  pointer-events: none;
  opacity: .7;
}
.arch-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
  mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.arch-frame img {
  position: absolute;
  left: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

/* ---------- prayer hall ---------- */

.hall { padding-top: 0; }
.hall__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.hall__text { position: sticky; top: calc(var(--header-h) + 8vh); padding-top: 6vh; }
.hall__text .h2 { font-size: clamp(2.1rem, 1.3rem + 2.2vw, 3.4rem); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 2.25rem;
}
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.facts dd { margin-top: 4px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }

@media (max-width: 900px) {
  .hall__grid { grid-template-columns: 1fr; }
  .hall__figure { max-width: 500px; width: calc(100% - 28px); margin-inline: auto; }
  .hall__text { position: static; padding-top: 0; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- floor plan: built as you scroll ---------- */

.plan-build { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.js .plan-build.is-pinned { height: 300vh; height: 300svh; }
.plan-build__stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 40px;
  overflow: hidden;
}
.js .plan-build.is-pinned .plan-build__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.plan-build__stage::before {
  /* faint dot grid, like a drafting table */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.plan-build__layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-rows: 1fr auto;
  gap: 24px 48px;
}
.plan-build__copy { align-self: center; }
.plan-build__copy .h2 { font-size: clamp(2.1rem, 1.3rem + 2.2vw, 3.4rem); }

.plan-build__step { margin-top: 32px; min-height: 9.5em; }
.plan-build__count {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.plan-build__count b { color: var(--gold); font-weight: 600; }
.plan-build__count i { width: 40px; height: 1px; background: var(--line-2); }
.plan-build__step-title { margin-top: 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan-build__step-text { margin-top: 8px; color: var(--text-2); font-size: 1.125rem; line-height: 1.45; max-width: 24em; }
.plan-build__step-title.is-swap, .plan-build__step-text.is-swap { animation: step-in .6s var(--spring); }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.plan-build__drawing { position: relative; align-self: center; transform-origin: 50% 50%; }
.plan-build__drawing.is-zooming { transition: transform 1.15s cubic-bezier(.7, 0, .2, 1); }
.plan__svg { width: 100%; height: auto; overflow: visible; }

.plan-build__progress {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  text-align: right;
  pointer-events: none;
}
.plan-build__progress span { display: block; font-size: .8125rem; font-weight: 500; color: var(--text-3); }
.plan-build__progress strong { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .12); }
.plan-build__progress small { font-size: 1.5rem; font-weight: 700; color: rgba(255, 255, 255, .12); }

.plan-build__controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 32px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .5s ease-out, transform .7s var(--spring);
}
.plan-build.is-built .plan-build__controls { opacity: 1; transform: none; pointer-events: auto; }
.plan__rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.plan__caption { grid-column: 1 / 2; min-height: 1.5em; color: var(--text-2); font-size: 1.0625rem; }
.plan-build__cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.plan-build__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 2;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 500 .875rem/1 var(--font);
  cursor: pointer;
  transition: opacity .3s;
}
.plan-build__skip:hover { color: var(--text); }
.plan-build.is-built .plan-build__skip { opacity: 0; pointer-events: none; }

.room-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 500 .9375rem/1 var(--font);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.room-btn:hover { border-color: var(--text-2); }
.room-btn:active { transform: scale(.97); }
.room-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0A0A0A; }

/* plan drawing */
.plan__room { cursor: pointer; }
.plan__room rect,
.plan__room path {
  fill: var(--surface);
  stroke: rgba(212, 175, 106, .35);
  stroke-width: 1;
  transition: fill .4s var(--ease);
}
.plan__room:hover rect,
.plan__room:hover path { fill: var(--surface-2); }
.plan__room.is-active rect,
.plan__room.is-active path { fill: rgba(212, 175, 106, .22); }
.plan__room .plan__detail { stroke: rgba(212, 175, 106, .35); stroke-dasharray: 2 5; }
.plan__room .plan__labelbg { stroke: none; }
.plan__dome { fill: none; stroke: rgba(212, 175, 106, .45); stroke-width: 1; stroke-dasharray: 3 6; pointer-events: none; }
.plan__room.is-active .plan__dome { stroke: var(--gold-2); }

.plan__svg text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-anchor: middle;
  fill: var(--text-2);
  pointer-events: none;
  transition: fill .4s var(--ease);
}
.plan__svg .plan__sublabel { font-weight: 500; font-size: 13px; }
.plan__room.is-active text { fill: var(--text); }

.plan__wall { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: miter; pointer-events: none; }
.plan__windows rect { fill: var(--bg-2); stroke: var(--gold); stroke-width: 1; pointer-events: none; }
.plan__door { fill: none; stroke: var(--gold-2); stroke-width: 3; pointer-events: none; }
.plan__minaret { fill: rgba(212, 175, 106, .18); stroke: var(--gold); stroke-width: 2; pointer-events: none; }
.plan__mihrab { fill: var(--surface); stroke: var(--gold); stroke-width: 2; pointer-events: none; }
.plan__minbar { fill: none; stroke: var(--gold); stroke-width: 1; pointer-events: none; }
.plan__note path { fill: none; stroke: var(--text-3); stroke-width: 1; }
.plan__note text { font-weight: 500; font-size: 14px; fill: var(--text-3); }
.plan__dim line, .plan__dim path { stroke: #E0705A; stroke-width: 1; fill: none; }
.plan__dim text { fill: #E0705A; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .js .plan-build.is-pinned { height: 260vh; height: 260svh; }
  .plan-build__layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: start; gap: 12px; }
  .plan-build__copy { align-self: start; }
  .plan-build__copy .h2 { font-size: 1.9rem; }
  .plan-build__step { margin-top: 12px; min-height: 6.6em; }
  .plan-build__step-title { font-size: 1.35rem; margin-top: 8px; }
  .plan-build__step-text { font-size: 1rem; }
  .plan-build__progress strong { font-size: 2.6rem; }
  .plan-build__progress small { font-size: 1rem; }
  .plan-build__controls { grid-template-columns: 1fr; }
  .plan-build__cta { grid-column: 1; grid-row: auto; justify-self: start; }
  .plan__caption { grid-column: 1; }
}
@media (max-width: 720px) {
  .plan__svg text { display: none; }
  .plan__svg .plan__note text, .plan__svg .plan__dim text { display: block; font-size: 30px; }
  .plan-build__stage { padding-top: calc(var(--header-h) + 18px); }
  .plan__rooms { gap: 6px; }
  .room-btn { min-height: 38px; padding: 0 12px; font-size: .8125rem; }
  .plan-build__progress { display: none; }
  .plan-build .eyebrow { margin-bottom: .4rem; }
  .plan-build__copy .h2 { font-size: 1.7rem; }
  .plan-build__step { min-height: 5.4em; }
  .plan-build.is-built .plan-build__step-text { display: none; }
  .plan-build.is-built .plan-build__step { min-height: 0; }
  .plan__rooms {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .plan__rooms::-webkit-scrollbar { display: none; }
  .room-btn { flex: none; }
  .plan__caption { font-size: .9375rem; }
  .plan-build__controls { gap: 12px; }
}

/* zoom into a room before opening its page */
.zoom-shot {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background: #000 center / cover no-repeat;
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), opacity .35s ease-out;
}
.plan-build.is-building [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.zoom-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity .55s ease-in;
}
.zoom-shot.is-dark::after { opacity: 1; }

/* ---------- week: sun path, halaqahs, schedule ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.sunpath { padding: clamp(24px, 3.5vw, 44px); }
.sunpath__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}
.sunpath__title { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.sunpath__title span { margin-left: .5em; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); }
.sunpath__next { font-size: .9375rem; font-weight: 600; color: var(--gold); }

.sunpath__chart { position: relative; margin-top: 28px; }
.sunpath__plot { position: relative; }
.sunpath__svg { width: 100%; height: clamp(150px, 20vw, 230px); overflow: visible; }
.sunpath__svg .horizon { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sunpath__svg .arc-night { fill: none; stroke: rgba(212, 175, 106, .35); stroke-width: 1.25; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.sunpath__svg .arc-day { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.sunpath__dot {
  position: absolute;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--gold);
}
.sunpath__dot.is-next { background: var(--gold); }

/* the sun itself, placed at its real position for the current time */
.sunpath__sun {
  position: absolute;
  z-index: 2;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #FFD27A;
  box-shadow: 0 0 0 6px rgba(255, 210, 122, .16), 0 0 0 14px rgba(255, 210, 122, .07), 0 0 40px 8px rgba(255, 196, 92, .45);
  transition: left 1.2s var(--ease), top 1.2s var(--ease), opacity .4s;
}
.sunpath__sun.is-down { background: #6B5A3A; box-shadow: 0 0 0 5px rgba(212, 175, 106, .08); }
.sunpath__sun-label {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 22px));
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--text);
  color: #0A0A0A;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}

.sunpath__labels { position: relative; height: 72px; margin-top: 14px; }
.sunpath__labels li {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}
.sunpath__labels li.is-lower { top: 32px; }
.sunpath__labels .name { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.sunpath__labels .time { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sunpath__labels li.is-next .time, .sunpath__labels li.is-next .name { color: var(--gold); }

.sunpath__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--text-3); }

@media (max-width: 720px) {
  .sunpath__title span { display: block; margin: 4px 0 0; }
  .sunpath__labels {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    margin-top: 20px;
  }
  .sunpath__labels li { position: static; transform: none; text-align: left; white-space: normal; }
  .sunpath__labels li.is-lower { top: auto; }
}

/* featured halaqahs */
.halaqahs__eyebrow { margin: clamp(64px, 8vw, 104px) 0 20px; }
.halaqahs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.halaqah { display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 44px); }
.halaqah__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.halaqah__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: .75rem;
  font-weight: 600;
}
.halaqah__when { font-size: .875rem; font-weight: 600; color: var(--gold); }
.halaqah__title { margin-top: 16px; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
.halaqah__sub { margin-top: 6px; font-size: 1.125rem; font-weight: 600; color: var(--text-2); letter-spacing: -.015em; }
.halaqah__quote { margin-top: 22px; }
.halaqah__ar { font-family: var(--font-ar); font-size: 1.5rem; line-height: 1.5; color: var(--gold); }
.halaqah__quote p:not(.halaqah__ar) { color: var(--text-2); }
.halaqah__quote cite { margin-left: .35em; color: var(--text-3); }
.halaqah__structure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.halaqah__structure dt { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.halaqah__structure dd { margin-top: 2px; color: var(--text-2); line-height: 1.4; }
.halaqah__line { margin-top: 18px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.5; }
.halaqah__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.halaqah__steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; }
.halaqah__steps li + li::before { content: "›"; color: var(--text-3); font-weight: 500; }
.halaqah__steps li.is-prayer { color: var(--gold); }
.halaqah__meta { margin-top: auto; padding-top: 24px; font-size: .9375rem; font-weight: 500; color: var(--text-2); }
.halaqah__meta strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .halaqahs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .halaqah__structure { grid-template-columns: 1fr; }
}

.schedule { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-2); }
.schedule__day {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.schedule__name { font-size: 1.375rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.schedule__day.is-today .schedule__name { color: var(--gold); }
.schedule__day.is-today .schedule__name::after {
  content: "Today";
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.schedule__items li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 4px 24px;
  align-items: baseline;
}
.schedule__items li + li { margin-top: 10px; }
.schedule__what { font-weight: 600; }
.schedule__when { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }
.schedule__who { color: var(--text-2); }

@media (max-width: 800px) {
  .schedule__day { grid-template-columns: 1fr; padding: 20px 0; }
  .schedule__items li { grid-template-columns: 1fr auto; }
  .schedule__who { grid-column: 1 / -1; font-size: .9375rem; }
}

/* ---------- moments: a sea of photos that slides sideways ---------- */

.moments { position: relative; background: #050907; }
.js .moments.is-pinned { height: 520vh; height: 520svh; }
.moments__stage { position: relative; overflow: hidden; }
.js .moments.is-pinned .moments__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.moments__head { position: relative; z-index: 3; padding-top: calc(var(--header-h) + 28px); pointer-events: none; }
.moments__head .h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); }
.moments__sea { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.tile {
  position: absolute;
  left: calc(var(--x) * 1vw * var(--k, 1));
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1vw * var(--k, 1));
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.tile img { width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; }
.tile figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.moments__card {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  top: 50%;
  width: min(380px, 32vw);
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 22, 18, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate3d(-12px, -50%, 0);
  pointer-events: none;
  transition: opacity .35s ease-out, transform .6s var(--spring);
}
.moments__card.is-on { opacity: 1; transform: translate3d(0, -50%, 0); pointer-events: auto; }
.moments__count { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold); }
.moments__meta { margin-top: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.moments__title { margin-top: 6px; font-size: 1.875rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.moments__text { margin-top: 12px; color: var(--text-2); line-height: 1.5; }
.moments__card .link-arrow { margin-top: 6px; font-size: .9375rem; }
.moments__pills {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: calc(100% - 2 * var(--gutter));
  overflow-x: auto;
  scrollbar-width: none;
}
.moments__pills::-webkit-scrollbar { display: none; }
.moments__pills button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 17, 14, .8);
  color: var(--text-2);
  font: 600 .75rem/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.moments__pills button[aria-current="true"] { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.moments__hint { position: absolute; z-index: 4; right: var(--gutter); bottom: 32px; font-size: .75rem; font-weight: 500; color: var(--text-3); }

/* static fallback for reduced motion */
.moments__list { display: none; }
.moments.is-static .moments__sea,
.moments.is-static .moments__card,
.moments.is-static .moments__pills,
.moments.is-static .moments__hint { display: none; }
.moments.is-static { padding-bottom: var(--section); }
.moments.is-static .moments__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 40px;
}
.moments__list figure { border-radius: 14px; overflow: hidden; background: var(--surface); }
.moments__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moments__list figcaption { padding: 16px 18px 18px; color: var(--text-2); }
.moments__list figcaption strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 1.125rem; letter-spacing: -.02em; }

@media (max-width: 860px) {
  .tile { --k: 1.9; border-radius: 8px; }
  .moments__card {
    top: auto;
    bottom: 76px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    padding: 18px 18px 14px;
    transform: translate3d(0, 16px, 0);
  }
  .moments__card.is-on { transform: none; }
  .moments__title { font-size: 1.4rem; }
  .moments__text { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .moments__meta { margin-top: 8px; }
  .moments__hint { display: none; }
  .moments__pills { bottom: 18px; }
}

/* ---------- visit ---------- */

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.checklist { margin-top: 2rem; border-top: 1px solid var(--line); }
.checklist li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 23px;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__figure { order: -1; max-width: 500px; width: calc(100% - 28px); margin-inline: auto; }
}

/* ---------- legacy (sadaqah jariyah) ---------- */

.legacy {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  background: var(--bg);
}
.legacy__media { position: relative; aspect-ratio: 16 / 9; margin-top: calc(clamp(40px, 6vw, 96px) * -1); }
.legacy__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 17, 14, .55) 16%, rgba(10, 17, 14, 0) 38%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 14, 0) 18%);
}
.legacy__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

.legacy__copy {
  position: relative;
  z-index: 1;
  padding-top: var(--section);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.legacy__ar { font-family: var(--font-ar); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--gold); line-height: 1.5; margin-bottom: 10px; }
.legacy__quote { max-width: 48rem; }
.legacy__quote p {
  font-size: clamp(1.6rem, 1.05rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.legacy__quote footer { margin-top: 1rem; font-size: .9375rem; font-weight: 500; color: var(--text-2); }
.legacy__line { max-width: 31em; margin: 1.25rem auto 2rem; color: var(--text-2); font-size: 1.125rem; text-wrap: balance; }

@media (max-width: 720px) {
  .legacy__media { aspect-ratio: 4 / 3; margin-top: -24px; }
}

/* ---------- give ---------- */

.give { background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.give__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.give__text { position: sticky; top: calc(var(--header-h) + 40px); }
.give__points { margin-top: 2rem; }
.give__points li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.give__points strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; font-size: 1.0625rem; }

.give-form { padding: clamp(26px, 3.5vw, 40px); }
.give-form__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.give-form__group { margin-top: 26px; }
.give-form__group legend { margin-bottom: 10px; padding: 0; font-size: .875rem; font-weight: 600; color: var(--text-2); }

.segmented, .amounts { display: grid; gap: 8px; }
.segmented { grid-template-columns: 1fr 1fr; }
.amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segmented label, .amounts label { position: relative; display: block; }
.segmented input, .amounts input, .fund input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented span, .amounts span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.segmented label:hover span, .amounts label:hover span { border-color: var(--text-2); }
.segmented input:checked + span,
.amounts input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.segmented input:focus-visible + span,
.amounts input:focus-visible + span,
.fund input:focus-visible + .fund__body { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.other-amount { display: block; margin-top: 12px; }
.other-amount__label { display: block; margin-bottom: 6px; font-size: .875rem; color: var(--text-2); }
.other-amount__field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.other-amount__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .2); }
.other-amount__field.is-invalid { border-color: #E0705A; }
.other-amount input {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 1.0625rem/1 var(--font);
  color: var(--text);
}
.other-amount input::placeholder { color: var(--text-3); }
.field-error { margin-top: 8px; font-size: .875rem; color: #F0987F; }

.funds { display: grid; gap: 8px; }
.fund { position: relative; display: block; cursor: pointer; }
.fund__body {
  position: relative;
  display: block;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.fund__body::before {
  content: "";
  position: absolute;
  left: 16px; top: 17px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fund:hover .fund__body { border-color: var(--line-2); }
.fund input:checked + .fund__body { border-color: var(--gold); background: rgba(212, 175, 106, .08); }
.fund input:checked + .fund__body::before { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--gold); }
.fund__name { display: block; font-weight: 600; }
.fund__desc { display: block; margin-top: 2px; font-size: .9375rem; color: var(--text-2); line-height: 1.4; }

.give-form__summary { margin: 26px 0 12px; font-size: 1.0625rem; font-weight: 500; color: var(--text-2); }
.give-form__status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(212, 175, 106, .08); font-size: .9375rem; }
.give-form__fine { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--text-3); }

@media (max-width: 900px) {
  .give__grid { grid-template-columns: 1fr; }
  .give__text { position: static; }
}
@media (max-width: 420px) {
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- team page ---------- */

.team-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.team-hero__title {
  max-width: 12em;
  margin: clamp(16px, 2.6vw, 28px) auto 0;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.team-hero .lead { margin-inline: auto; }
.team-hero .hero__triad { margin-top: 20px; }

.team-group + .team-group { margin-top: clamp(72px, 9vw, 120px); }
.team-group__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.team-group__head .lead { margin-top: 0; }
@media (max-width: 860px) { .team-group__head { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.member { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px; }
.member__portrait-wrap { position: relative; margin-bottom: 22px; }
.member__portrait {
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 3 / 4;
  background: var(--bg);
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
  mask: var(--arch-mask) center / 100% 100% no-repeat;
  color: var(--gold);
}
.member__portrait svg { width: 32px; height: 32px; margin-top: 14px; }
.member__portrait img { width: 100%; height: 100%; object-fit: cover; }
.member__portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -7px -7px 0;
  background: var(--arch-line) center / 100% 100% no-repeat;
  opacity: .8;
}
.member__role { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.member__name { margin-top: 4px; font-size: 1rem; font-weight: 600; color: var(--gold); }
.member__name.is-pending { color: var(--text-3); font-weight: 500; }
.member__bio { margin-top: 12px; color: var(--text-2); line-height: 1.5; }

.serve {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
}
.serve__list { border-top: 1px solid var(--line); }
.serve__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.serve__list span:first-child { font-weight: 600; }
.serve__list span:last-child { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.serve__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 2rem; }
@media (max-width: 860px) { .serve { grid-template-columns: 1fr; } }

/* ---------- rooms page: scenes that light up ---------- */

.rooms-page { background: #000; }
.room-cover {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: #000;
  pointer-events: none;
  transition: opacity 1.1s ease-out .15s;
}
.room-cover.is-gone { opacity: 0; }

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.scene__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.scene__dark {
  /* the lights are off until the scene is in view */
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .9;
  transition: opacity 1.6s ease-out;
}
.scene__warm {
  position: absolute;
  inset: 0;
  background: #FFB347;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 2s ease-out .4s;
}
.scene__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 42%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 40%);
}
.scene.is-lit .scene__dark { opacity: 0; }
.scene.is-lit .scene__warm { opacity: .22; }
.scene.is-lit .scene__img { transform: scale(1); }

.scene__body {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(32px, 8vh, 88px);
  z-index: 2;
  max-width: 34rem;
}
.scene__num { font-size: clamp(3.5rem, 2.4rem + 4vw, 6.5rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); }
.scene__title { margin-top: 10px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.scene__text { margin-top: 12px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .78); }

.scene__card {
  position: absolute;
  right: calc(var(--gutter) + 180px);
  bottom: clamp(32px, 8vh, 88px);
  z-index: 2;
  width: min(330px, 30vw);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(12, 16, 14, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.scene__card-head { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.scene__card-head span:last-child { color: var(--text-3); letter-spacing: 0; text-transform: none; font-weight: 500; }
.scene__when { margin-top: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.scene__facts { margin-top: 12px; border-top: 1px solid var(--line); }
.scene__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.scene__facts li span:first-child { color: var(--text-2); }
.scene__facts li span:last-child { font-weight: 600; text-align: right; }

.scene [data-scene-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .5s ease-out, transform .8s var(--spring); transition-delay: var(--d, .35s); }
.scene.is-lit [data-scene-reveal] { opacity: 1; transform: none; }

.rooms-nav {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  z-index: 40;
  transform: translateY(-40%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(12, 16, 14, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.rooms-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}
.rooms-nav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.rooms-nav a:hover { color: var(--text); }
.rooms-nav a[aria-current="true"] { background: rgba(255, 255, 255, .1); color: var(--text); }
.rooms-nav a[aria-current="true"]::before { background: var(--gold); }

.rooms-back {
  position: fixed;
  left: var(--gutter);
  top: calc(var(--header-h) + 16px);
  z-index: 40;
}
.rooms-back .btn { background: rgba(12, 16, 14, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: rgba(255, 255, 255, .16); }

.scene--end { display: grid; place-items: center; text-align: center; }
.scene--end .scene__body { position: relative; left: auto; bottom: auto; max-width: 40rem; padding: 0 var(--gutter); }
.scene--end .scene__shade { background: rgba(0, 0, 0, .55); }
.scene__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 28px; }

@media (max-width: 960px) {
  .rooms-nav { display: none; }
  .scene__card { right: auto; left: var(--gutter); bottom: auto; top: calc(var(--header-h) + 76px); width: min(330px, calc(100% - 2 * var(--gutter))); }
  .scene__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .25) 100%); }
  .scene__body { right: var(--gutter); }
}
@media (max-width: 720px) {
  .scene__card { padding: 14px 16px; }
  .scene__facts li { padding: 6px 0; font-size: .8125rem; }
  .scene__when { font-size: .9375rem; }
}
@media (max-height: 700px) and (max-width: 960px) {
  .scene__card { display: none; }
}

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

.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 32px;
  background: #050907;
  border-top: 1px solid var(--line);
  overflow: hidden;
  font-size: .875rem;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  background: var(--pattern) 0 0 / 64px 64px;
  opacity: .05;
  -webkit-mask: radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
  mask: radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.brand--footer { margin-right: 0; }
.site-footer__line { max-width: 26em; color: var(--text-2); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0;
}
.site-footer__heading { margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--text); }
.site-footer__cols a:not(.btn) { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--text-2); }
.site-footer__cols a:not(.btn):hover { color: var(--text); text-decoration: underline; }
.site-footer__cta { margin-top: 12px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
}
.site-footer__bottom .link-arrow { font-size: .875rem; }

@media (max-width: 860px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js .split-word { opacity: 1; transform: none; }
  .js .hero__copy > .container > * { opacity: 1; transform: none; }
  .arch-frame img { top: 0; height: 100%; transform: none !important; }
  .scene__dark { opacity: 0; }
  .scene [data-scene-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Theme v3: black to deep green, Islamic geometry, glass, livelier motion
   ========================================================================== */

:root {
  --bg: #020604;
  --green: #12291F;
  --spring: cubic-bezier(.28, 1.62, .5, 1);
}

body { background: #000; }

/* black fading into a slightly lighter deep green, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(110% 80% at 88% 108%, rgba(26, 64, 47, .55) 0%, rgba(26, 64, 47, 0) 62%),
    radial-gradient(70% 50% at 8% -6%, rgba(18, 41, 31, .5) 0%, rgba(18, 41, 31, 0) 70%),
    linear-gradient(162deg, #000 0%, #020805 36%, #0B1D16 74%, var(--green) 100%);
}
/* a faint drafting grid that fades out toward the edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 106, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 106, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 55%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 55%, #000 0%, transparent 75%);
}

/* fine-line geometric ornaments (injected by main.js) */
.bg-orn { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orn svg { position: absolute; fill: none; stroke: var(--gold); }
.bg-orn__astrolabe { width: min(64vw, 720px); height: auto; right: -14vw; bottom: -22vh; opacity: .085; stroke-width: .7; animation: orn-turn 240s linear infinite; }
.bg-orn__lattice { width: min(42vw, 460px); height: auto; left: -8vw; top: 6vh; opacity: .05; stroke-width: .8; animation: orn-turn 360s linear infinite reverse; }
.bg-orn__star { width: var(--s, 22px); height: var(--s, 22px); left: var(--x); top: var(--y); opacity: .16; stroke-width: 1.1; animation: orn-glint var(--t, 7s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes orn-turn { to { transform: rotate(360deg); } }
@keyframes orn-glint { 0%, 100% { opacity: .08; } 50% { opacity: .32; } }

/* sections let the background through */
.section--alt { background: rgba(255, 255, 255, .012); }
.plan-build, .give, .legacy, .hero__stage { background: transparent; }
.moments { background: rgba(0, 0, 0, .35); }
.site-footer { background: rgba(0, 0, 0, .55); }
.prayer-bar { background: #020604; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(2, 6, 4, .78); }
.plan__windows rect { fill: #07120D; }

/* glass cards */
.card {
  background: rgba(16, 30, 23, .58);
  border-color: rgba(212, 175, 106, .16);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* legacy image fades into the page instead of into a flat colour */
.legacy__media::after { display: none; }
.legacy__media {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 32%, #000 80%, transparent 100%);
}

/* ---------- livelier reveals: a clear rise and a soft bounce ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(.965);
  transition: opacity .7s ease-out, transform 1.05s var(--spring);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .split-word {
  opacity: 0;
  transform: translate3d(0, .95em, 0) rotate(2.5deg);
  transform-origin: 0 100%;
  transition: opacity .55s ease-out, transform .95s var(--spring);
  transition-delay: calc(var(--i, 0) * 48ms);
}
.js [data-split].is-visible .split-word { opacity: 1; transform: none; }

/* ---------- sun: a small radar pulse ---------- */

.sunpath__sun::before,
.sunpath__sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 210, 122, .85);
  animation: radar 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.sunpath__sun::after { animation-delay: 1.3s; }
.sunpath__sun.is-down::before, .sunpath__sun.is-down::after { border-color: rgba(212, 175, 106, .45); }
@keyframes radar {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(3.8); opacity: 0; }
}

/* ---------- hero: arch opens on a drone approach, then the ayah ---------- */

.js .hero.is-pinned { height: 400vh; height: 400svh; }
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__canvas { display: block; }
.hero__shade {
  /* keeps the ayah readable over the sky */
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 38%, rgba(0, 0, 0, 0) 55%);
  opacity: 0;
}
.hero__copy .hero__title { margin-top: clamp(24px, 6vh, 64px); }

.hero__ayah {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--header-h) + clamp(28px, 7vh, 80px));
  width: min(52rem, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.hero__ayah > * { opacity: 0; transform: translate3d(0, 28px, 0); }
.hero__ayah-ar { font-family: var(--font-ar); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.55; color: var(--gold-2); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero__ayah-en { margin-top: 8px; font-size: clamp(1.0625rem, .95rem + .5vw, 1.4rem); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; color: var(--text); text-shadow: 0 1px 18px rgba(0, 0, 0, .7); }
.hero__ayah-ref { margin-top: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* without motion the ayah simply sits below the hero */
.ayah-static { display: none; padding: 48px 0 0; text-align: center; }
.no-js .ayah-static, .hero:not(.is-pinned) + .ayah-static { display: block; }
.no-js .hero__ayah, .hero:not(.is-pinned) .hero__ayah { display: none; }
.ayah-static .hero__ayah-ar { color: var(--gold); text-shadow: none; }
.ayah-static .hero__ayah-en { text-shadow: none; max-width: 40em; margin-inline: auto; }

/* ---------- room tour: slow zoom, text pops in, quick fade to the next room ---------- */

.tour { position: relative; }
.tour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.tour .scene { position: absolute; inset: 0; height: auto; opacity: 0; visibility: hidden; }
.tour .scene.is-shown { visibility: visible; }
.scene__media { position: absolute; inset: 0; transform-origin: 50% 55%; will-change: transform; }
.scene__media video, .scene__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour .scene__dark { opacity: .85; transition: opacity .9s ease-out; }
.tour .scene.is-active .scene__dark { opacity: 0; }
.tour .scene.is-active .scene__warm { opacity: .16; }
.tour .scene [data-scene-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(.97);
  transition: opacity .25s ease-in, transform .3s ease-in;
  transition-delay: 0s;
}
.tour .scene.is-active [data-scene-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out, transform 1s var(--spring);
  transition-delay: var(--d, .2s);
}
.tour__progress { position: absolute; left: 0; bottom: 0; z-index: 5; height: 2px; width: 100%; background: rgba(255, 255, 255, .08); }
.tour__progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- finances ---------- */

.fin-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 5vw, 64px); }
.fin-hero__title { max-width: 14em; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.25rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.fin-sample { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(230, 103, 103, .45); background: rgba(230, 103, 103, .1); color: #F0A8A8; font-size: .8125rem; font-weight: 600; }
.fin-sample[hidden] { display: none; }

.fin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.fin-toolbar label { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.fin-select {
  min-height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(16, 30, 23, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A1A1A6' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  color: var(--text);
  font: 600 1rem/1 var(--font);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.kpi { padding: 22px 22px 20px; }
.kpi__label { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.kpi__value { margin-top: 8px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__note { margin-top: 8px; font-size: .875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kpi__note b { font-weight: 600; color: var(--text); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fin-block + .fin-block { margin-top: clamp(64px, 8vw, 104px); }
.fin-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 24px; }
.fin-block__head .h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.fin-block__total { font-size: 1rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fin-block__total b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }

.split-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .split-charts { grid-template-columns: 1fr; } }

.pie-card { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px); }
.pie-card__title { grid-column: 1 / -1; font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
.pie-card__title span { margin-left: 8px; font-size: 1rem; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pie { width: 100%; max-width: 220px; aspect-ratio: 1; overflow: visible; }
.pie path { stroke: #0F1C16; stroke-width: 2; stroke-linejoin: round; transition: transform .25s var(--ease), opacity .2s; transform-origin: 50% 50%; cursor: pointer; }
.pie path.is-dim { opacity: .35; }
.pie path.is-hot { transform: scale(1.04); }
.pie__center-value { fill: var(--text); font: 700 20px var(--font); letter-spacing: -.03em; text-anchor: middle; }
.pie__center-label { fill: var(--text-2); font: 500 11px var(--font); text-anchor: middle; }
@media (max-width: 520px) { .pie-card { grid-template-columns: 1fr; justify-items: center; } .pie-card .legend { width: 100%; } }

.legend { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.legend th { padding: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); text-align: right; }
.legend th:first-child { text-align: left; }
.legend td { padding: 9px 0; border-top: 1px solid var(--line); font-size: .9375rem; text-align: right; color: var(--text); }
.legend td:first-child { text-align: left; }
.legend td + td { padding-left: 12px; }
.legend tr.is-hot td { background: rgba(255, 255, 255, .04); }
.legend__swatch { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; vertical-align: 0; }
.legend__pct { color: var(--text-2); }
.legend tfoot td { font-weight: 700; border-top: 1px solid var(--line-2); }

.ts-card { padding: clamp(20px, 3vw, 32px); }
.ts-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 600 .875rem/1 var(--font);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0A0A0A; }
.ts-summary { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.ts-summary__value { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -.04em; }
.ts-summary__label { color: var(--text-2); }
.ts-summary__delta { font-size: .9375rem; font-weight: 600; color: var(--text-2); }
.ts-chart { position: relative; margin-top: 18px; }
.ts-chart svg { width: 100%; height: 280px; overflow: visible; }
.ts-chart .grid line { stroke: rgba(255, 255, 255, .07); }
.ts-chart .axis text { fill: var(--text-3); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.ts-chart .bar { fill: var(--series, #3987e5); }
.ts-chart .bar.is-hot { fill: var(--gold-2); }
.ts-chart .hit { fill: transparent; cursor: crosshair; }
.ts-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(8, 14, 11, .95);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}
.ts-tip b { display: block; font-size: 1rem; }
.ts-tip[hidden] { display: none; }

.sector-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sector-table th { padding: 0 0 10px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); text-align: right; }
.sector-table th:first-child { text-align: left; }
.sector-table td { padding: 12px 0; border-top: 1px solid var(--line); text-align: right; }
.sector-table td:first-child { text-align: left; font-weight: 600; }
.sector-table td + td { padding-left: 12px; }
.sector-table .up { color: #E6C789; }
.sector-table .down { color: var(--text-2); }
.sector-table button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.sector-table button:hover { text-decoration: underline; }

.zakat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .zakat-row { grid-template-columns: 1fr; } }
.zakat-bar { height: 10px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.zakat-bar i { display: block; height: 100%; background: #199e70; border-radius: 999px; }

.reports { border-top: 1px solid var(--line-2); }
.reports li { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.reports li.is-current { background: rgba(212, 175, 106, .06); }
.reports__month { font-weight: 700; letter-spacing: -.02em; }
.reports__num { text-align: right; }
.reports__num small { display: block; font-size: .75rem; color: var(--text-3); }
.reports .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
@media (max-width: 760px) {
  .reports li { grid-template-columns: 1fr 1fr; }
  .reports__month { grid-column: 1 / -1; }
  .reports li .btn { grid-column: 1 / -1; justify-self: start; }
}
.fin-note { max-width: 46rem; color: var(--text-2); }
.fin-note li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); }
.fin-note li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .bg-orn svg { animation: none; }
  .sunpath__sun::before, .sunpath__sun::after { animation: none; display: none; }
  .js [data-reveal], .js .split-word { opacity: 1; transform: none; }
  .hero__ayah > * { opacity: 1; transform: none; }
  .tour .scene [data-scene-reveal] { opacity: 1; transform: none; }
}

/* "Back to the plan" lands here, with the plan fully built */
.plan-build__end { position: absolute; left: 0; bottom: 100vh; bottom: 100svh; width: 1px; height: 1px; }

.tile video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; background: #0a0f0c; }

.fin-body { padding-top: 24px; }
.ts-sectors { margin-top: 10px; }
.legend tbody tr { cursor: default; }
.legend tbody tr:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }

/* photo wall depth: near tiles are bigger, far tiles smaller and dimmer */
.tile { width: calc(var(--w) * var(--d, 1) * 1vw * var(--k, 1)); }
.tile[data-depth] { box-shadow: 0 calc(var(--d, 1) * 24px) calc(var(--d, 1) * 60px) -20px rgba(0, 0, 0, .85); }

/* events: why we gather, right before the moments wall */
.events-intro { padding-block: clamp(96px, 12vw, 168px) clamp(56px, 7vw, 96px); }
.events-intro__inner { max-width: 56rem; }
.events-intro .h2 { max-width: 18em; }
.events-intro .lead { max-width: 34em; }
.events-intro + .moments .moments__head { padding-top: calc(var(--header-h) + 20px); }

/* a slightly longer wall for the extra films */
.js .moments.is-pinned { height: 560vh; height: 560svh; }

/* posters and the talk keep their own shape in the still list */
.moments__list img[src*="poster-quran"],
.moments__list img[src*="poster-seerah"],
.moments__list img[src*="talk-poster"] { aspect-ratio: auto; object-fit: contain; background: #000; }

/* the halaqahs now open this section */
.week .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* the pills get the whole bottom edge: the hint moves up beside the heading */
.moments__hint { top: calc(var(--header-h) + 40px); bottom: auto; }
.moments__pills { left: 0; right: 0; width: max-content; margin-inline: auto; transform: none; }

/* "Want a closer look?" sits beside its button */
.plan-build__cta { display: flex; align-items: center; gap: 18px; }
.plan-build__cta-label { margin: 0; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
