@import url("../fonts/fonts.css");

/* ==========================================================================
   EMARA FOUNDATION - design system
   Theme lock ......... light page, locked. Ink panels are a documented device
                       (full-bleed navy sections), never a theme inversion.
   Accent lock ........ jade. Gold is the ceremonial metal, used only as hairline
                       rules, small caps labels and the mark, on ink surfaces.
   Shape lock ......... radius 3px on every container, button, input and chip.
                       Photographic media is arch-topped (mihrab arch). No mixing.
   Motion ............. intensity 4. Transitions plus one scroll reveal.
                       Everything collapses under prefers-reduced-motion.
   ========================================================================== */

:root {
  /* brand */
  --ink:        #10263C;
  --navy:       #1F3A5F;
  --jade:       #1E7F82;   /* button and chip fill */
  --jade-ink:   #176F72;   /* jade for text and links, AA on white and on mist */
  --jade-lift:  #2FA6A9;   /* jade for ink surfaces, AA against --ink */
  --jade-deep:  #15666A;
  --gold:       #C2A05B;   /* ink surfaces only */
  --gold-ink:   #7C6127;   /* the same metal, darkened to pass AA on light */
  --gold-soft:  #D9BE84;
  --link-on-ink:#5FCBCE;   /* AA for small text on both ink and navy */
  --mist:       #F1F4F7;
  --paper:      #FFFFFF;

  /* derived surfaces and text */
  --bg:            var(--paper);
  --bg-sunk:       var(--mist);
  --bg-ink:        var(--ink);
  --text:          #14293D;
  --text-muted:    #4C6076;
  --text-on-ink:   #E8EEF4;
  --text-on-ink-muted: #A9BDD0;
  --rule:          #D8E0E8;
  --rule-ink:      rgba(194, 160, 91, .28);
  --focus:         #0F6E71;

  /* type */
  --serif: "Spectral", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --titling: "Cinzel", "Trajan Pro", "Optima", "Palatino Linotype", Georgia, serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Geeza Pro", "Traditional Arabic", serif;

  --fs-display: clamp(2.35rem, 1.5rem + 3.6vw, 4rem);
  --fs-h1:      clamp(2rem, 1.45rem + 2.3vw, 3.05rem);
  --fs-h2:      clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3:      clamp(1.15rem, 1.08rem + .4vw, 1.4rem);
  --fs-lead:    clamp(1.06rem, 1rem + .38vw, 1.22rem);
  --fs-body:    1.0625rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .8125rem;

  /* rhythm */
  --pad-section: clamp(3.75rem, 7vw, 7rem);
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --measure:     64ch;
  --radius:      3px;
  --shadow: 0 1px 2px rgba(16, 38, 60, .05), 0 12px 32px -18px rgba(16, 38, 60, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Dark scheme: same brand, deeper ground. Hierarchy parity preserved. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0B1B2B;
    --bg-sunk:   #102639;
    --bg-ink:    #081524;
    --text:      #E4EBF2;
    --text-muted:#9FB3C6;
    --rule:      #1E3A52;
    --jade:      var(--jade-lift);
    --jade-ink:  var(--jade-lift);
    --gold-ink:  var(--gold);
    --focus:     #4FC3C6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.8);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.14; margin: 0; letter-spacing: -.012em; }
p { margin: 0; }
a { color: var(--jade-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--jade-deep); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- language switching (no JS required to render) ---------- */
html[lang="en"] [data-lang="es"],
html[lang="es"] [data-lang="en"] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--pad-section); }
.section--sunk { background: var(--bg-sunk); }
.section--ink, .hero, .scripture {
  background-color: var(--bg-ink); color: var(--text-on-ink);
  background-image: url("../img/pattern-girih.svg");
  background-size: 132px 132px;
  position: relative;
}
.section--ink > *, .hero > *, .scripture > * { position: relative; z-index: 1; }
/* The tile is drawn at full strength and knocked back here, so one file
   serves every surface. */
.section--ink::before, .hero::before, .scripture::before {
  content: ""; position: absolute; inset: 0; background: var(--bg-ink); opacity: .87; pointer-events: none;
}
.section--ink h1, .section--ink h2, .section--ink h3,
.hero h1, .hero h2 { color: var(--paper); }
.section--ink p { color: var(--text-on-ink-muted); }
.section--ink a:not(.btn), .hero a:not(.btn), .times a:not(.btn), .foot a:hover { color: var(--link-on-ink); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.15rem; border-radius: var(--radius);
}
.skip:focus { left: .75rem; top: .75rem; }

/* ---------- typography helpers ---------- */
.display { font-family: var(--serif); font-size: var(--fs-display); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: var(--measure); }
.section--ink .lead, .hero .lead { color: var(--text-on-ink-muted); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.4em; font-size: var(--fs-h2); }
.prose h3 { margin-top: 2em; font-size: var(--fs-h3); }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose strong { font-weight: 600; color: var(--text); }
.eyebrow {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--jade-ink);
  margin: 0 0 1rem;
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--gold); }
.bismillah { font-family: var(--arabic); font-size: 1.5rem; line-height: 2; color: var(--gold); direction: rtl; }
.pull {
  font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.3; font-style: italic; color: var(--ink);
  border-left: 2px solid var(--gold); padding-left: clamp(1rem, 3vw, 1.75rem);
}
@media (prefers-color-scheme: dark) { .pull { color: var(--text); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .12s var(--ease), color .22s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--jade); color: #fff; }        /* 4.9:1 on white */
.btn--primary:hover { background: var(--jade-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); border-color: #B9C6D3; }
.section--ink .btn--primary, .hero .btn--primary { background: var(--jade-lift); color: var(--ink); } /* 5.0:1 on ink */
.section--ink .btn--primary:hover, .hero .btn--primary:hover { background: var(--gold-soft); color: var(--ink); }
.section--ink .btn--ghost, .hero .btn--ghost { color: var(--paper); border-color: rgba(232,238,244,.35); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(232,238,244,.09); color: var(--paper); }
.btn--wide { width: 100%; padding-block: 1rem; }
@media (prefers-color-scheme: dark) {
  .btn--ghost { color: var(--text); }
  .btn--ghost:hover { background: var(--bg-sunk); color: var(--text); }
  .btn--primary { color: #06121D; }
  .btn--primary:hover { background: var(--gold-soft); color: #06121D; }
}

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(1px)) { .masthead { background: var(--bg); } }
.masthead__inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
@media (min-width: 1120px) { .masthead__inner { height: 76px; } }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand svg, .brand img { width: 38px; height: 38px; flex: none; }
/* Traced from the logo artwork: strapline cap height is 0.55 of the wordmark's,
   and the gap between them is 0.21 of it. */
.brand__name { font-family: var(--titling); font-size: 1rem; font-weight: 600; letter-spacing: .06em; line-height: 1; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.brand__sub { display: block; font-family: var(--titling); font-size: .58rem; font-weight: 400; letter-spacing: .11em; line-height: 1; text-transform: uppercase; color: var(--text-muted); margin-top: .21em; white-space: nowrap; }
@media (max-width: 560px) {
  .masthead__inner { gap: .6rem; }
  .brand { gap: .55rem; }
  .brand svg, .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: .92rem; letter-spacing: .03em; }
  .masthead .langswitch a { padding: .3rem .45rem; }
  .menutoggle { width: 38px; height: 38px; }
}
@media (max-width: 400px) { .brand__sub { display: none; } }
.foot .brand__name { white-space: normal; }

.nav { display: none; }
/* The nav goes horizontal only where the longer Spanish labels still fit
   on one line. Below that the drawer takes over. */
@media (min-width: 1260px) {
  .nav { display: flex; align-items: center; gap: 1.15rem; }
  .nav a {
    font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); text-decoration: none;
    white-space: nowrap; padding-block: .45rem; border-bottom: 2px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }
  .nav a:hover { color: var(--text); }
  .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
}
.masthead__actions { display: flex; align-items: center; gap: .5rem; }
.masthead .btn { padding: .6rem 1.1rem; }
@media (max-width: 560px) {
  .masthead .btn { padding: .5rem .85rem; }
  .masthead__actions .langswitch { display: none; }
}
.drawer .langswitch { display: none; margin-top: 1.25rem; }
@media (max-width: 560px) { .drawer .langswitch { display: inline-flex; } }

.langswitch { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.langswitch a {
  padding: .35rem .6rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  text-decoration: none; color: var(--text-muted); background: transparent; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.langswitch a:hover { background: var(--bg-sunk); color: var(--text); }
html[lang="en"] .langswitch a[hreflang="en"],
html[lang="es"] .langswitch a[hreflang="es"] { background: var(--ink); color: #fff; }

.menutoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--rule);
  border-radius: var(--radius); cursor: pointer; color: var(--text);
}
@media (min-width: 1260px) { .menutoggle { display: none; } }
.drawer {
  position: fixed; inset: 68px 0 auto; z-index: 39;
  background: var(--bg); border-bottom: 1px solid var(--rule);
  padding: .5rem var(--gutter) 1.5rem; box-shadow: var(--shadow);
  display: none;
}
.drawer[data-open="true"] { display: block; }
@media (min-width: 1260px) { .drawer { display: none !important; } }
.drawer a:not(.btn) {
  display: block; padding: .95rem .25rem; font-size: 1.06rem; font-weight: 600;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.drawer a:not(.btn)[aria-current="page"] { color: var(--jade-ink); }
.drawer .btn { margin-top: 1.25rem; }

/* ---------- mihrab arch: the site's one shape signature ---------- */
.arch {
  position: relative; overflow: hidden;
  border-radius: 50% 50% var(--radius) var(--radius) / 32% 32% var(--radius) var(--radius);
  background-color: var(--navy);
  background-image: linear-gradient(155deg, var(--navy), var(--ink));
}
.arch--half { border-radius: 50% 50% var(--radius) var(--radius) / 15% 15% var(--radius) var(--radius); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(194,160,91,.35);
}

/* ---------- scripture: the first thing on the page ---------- */
.scripture { border-bottom: 1px solid var(--rule-ink); }
.scripture__inner { padding-block: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.scripture .ayah {
  font-family: var(--arabic); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 2; color: var(--gold); direction: rtl; margin: 0;
}
.scripture .gloss {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.5;
  color: var(--text-on-ink); max-width: 60ch; margin: .5rem auto 0;
}
.scripture .ref {
  display: block; margin-top: .7rem; font-family: var(--sans); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

/* ---------- scripture inside a section (larger, ceremonial) ---------- */
.ayah-block { text-align: center; max-width: 62ch; margin-inline: auto; }
.ayah-block .ayah {
  font-family: var(--arabic); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  line-height: 1.95; color: var(--gold); direction: rtl; margin: 0;
}
.ayah-block .gloss {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.5;
  color: var(--paper); margin-top: 1rem;
}
.ayah-block .ref {
  display: block; margin-top: 1rem; font-family: var(--sans); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.ayah-block hr { width: 60px; height: 1px; background: var(--gold); border: 0; margin: 1.75rem auto 0; }

/* ---------- hero ---------- */
.hero { background: var(--bg-ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.25rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .hero .display { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.35rem); }
  .hero__grid { grid-template-columns: 1.25fr .75fr; align-items: center; padding-block: clamp(2.5rem, 4vw, 4rem); }
}
.hero .display { color: var(--paper); }
.hero__lede { color: var(--text-on-ink-muted); font-size: var(--fs-lead); max-width: 46ch; margin-top: 1.35rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__figure { aspect-ratio: 3 / 4; max-height: 44vh; margin-inline: auto; width: 100%; max-width: 340px; }
.hero__rule { height: 1px; background: var(--rule-ink); }

/* ---------- numbers ---------- */
.figures { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 760px) { .figures { grid-template-columns: 1.35fr 1fr 1fr; align-items: end; } }
.figure { border-top: 1px solid var(--rule); padding-top: 1rem; }
.figure__n { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); line-height: .95; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.figure--lead .figure__n { color: var(--jade-ink); }
.figure__t { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); max-width: 24ch; }
@media (prefers-color-scheme: dark) { .figure__n { color: var(--text); } .figure--lead .figure__n { color: var(--jade-lift); } }
.figures-rest { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .figures-rest { grid-template-columns: repeat(3, 1fr); } }
.figures-rest p { font-size: var(--fs-sm); color: var(--text-muted); padding-left: 1rem; border-left: 1px solid var(--rule); }
.figures-rest b { color: var(--text); font-weight: 600; }

/* ---------- the principal work: one panel that outranks everything ---------- */
.principal {
  display: grid; gap: 0;
  border: 1px solid var(--rule-ink); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 900px) { .principal { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.principal__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.principal__eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.principal :is(h2, h3) { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem); color: var(--paper); margin-top: .9rem; }
.principal p { font-size: var(--fs-lead); color: var(--text-on-ink-muted); margin-top: 1.1rem; max-width: 46ch; }
.principal p + p { margin-top: .9rem; }
.principal__mark { width: 46px; height: 46px; color: var(--gold); }

/* ---------- supporting works: an arcade, gold springing line above each ---------- */
.works { display: grid; gap: clamp(1.75rem, 3.5vw, 2.5rem); }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .works { grid-template-columns: repeat(4, 1fr); } }
.work { display: flex; flex-direction: column; gap: .8rem; padding-top: 1.35rem; position: relative; }
.work::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 14px;
  border: 1px solid var(--gold-ink); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: .55;
}
.section--ink .work::before { border-color: var(--gold); opacity: .5; }
.work svg { width: 26px; height: 26px; color: var(--jade-ink); }
.section--ink .work svg { color: var(--gold); }
.work h3 { font-size: var(--fs-h3); }
.work p { font-size: var(--fs-sm); color: var(--text-muted); }
.section--ink .work h3 { color: var(--paper); }
.section--ink .work p { color: var(--text-on-ink-muted); }

/* Six programmes read as two rows of three, never four-plus-two. */
@media (min-width: 1040px) { .works--three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the recurring case: one-off against every month ---------- */
.versus { display: grid; gap: 1px; background: var(--rule-ink); border: 1px solid var(--rule-ink); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus > div { background: var(--bg-ink); padding: clamp(1.5rem, 3vw, 2.25rem); }
.versus__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.versus h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); color: var(--paper); margin-top: .8rem; }
.versus p { font-size: var(--fs-sm); color: var(--text-on-ink-muted); margin-top: .7rem; max-width: 40ch; }
.versus > div + div { position: relative; }
.versus > div:last-child .versus__label { color: var(--link-on-ink); }

/* ---------- partnership band ---------- */
.partner {
  display: grid; gap: 1.25rem; align-items: center;
  border: 1px solid var(--rule); border-left: 3px solid var(--jade); border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--bg-sunk);
}
@media (min-width: 820px) { .partner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; } }
.partner h3 { font-size: var(--fs-h3); }
.partner p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .5rem; max-width: 62ch; }

/* ---------- pillars (bento, exactly six cells) ---------- */
.pillars { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
/* Four tracks, eight units of content: two full rows, no empty cell. */
@media (min-width: 1040px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillars > :nth-child(1), .pillars > :nth-child(6) { grid-column: span 2; }
}
.pillar { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .7rem; }
.pillar--tint { background: var(--bg-sunk); }
.pillar__no { font-family: var(--serif); font-size: 1rem; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { font-size: var(--fs-sm); color: var(--text-muted); }
.pillar--ink { background: var(--ink); color: var(--text-on-ink); }
.pillar--ink h3 { color: var(--paper); }
.pillar--ink p { color: var(--text-on-ink-muted); }
.pillar--ink .pillar__no { color: var(--gold); }
.pillar svg { width: 26px; height: 26px; color: var(--jade-ink); }
.pillar--ink svg { color: var(--gold); }

/* ---------- indexed programmes (sticky rail + sequence) ---------- */
.indexed { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 960px) {
  .indexed { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); align-items: start; }
  .indexed__rail { position: sticky; top: 100px; }
}
.indexed__rail h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jade-ink); margin-bottom: 1rem; }
.indexed__rail ol { list-style: none; display: grid; gap: .1rem; }
.indexed__rail a {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; align-items: baseline;
  padding: .5rem 0; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--rule); transition: color .2s var(--ease);
}
.indexed__rail a:hover { color: var(--jade-ink); }
.indexed__rail i { font-style: normal; font-family: var(--serif); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.program { padding-block: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.program:first-child { border-top: 0; padding-top: 0; }
.program__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.program__head svg { width: 28px; height: 28px; color: var(--jade-ink); flex: none; }
.program__no { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.program h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); }
.program p { color: var(--text-muted); max-width: var(--measure); }
.program h3 + p { margin-top: .85rem; }
.program p + p { margin-top: .9rem; }

/* ---------- feature place ---------- */
.feature { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.feature .arch { aspect-ratio: 5 / 4; }

/* ---------- places ---------- */
.places { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 640px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .places { grid-template-columns: repeat(4, 1fr); } }
.place { display: flex; flex-direction: column; gap: .9rem; }
.place .arch { aspect-ratio: 3 / 4; }
.place h3 { font-size: var(--fs-h3); }
.place p { font-size: var(--fs-sm); color: var(--text-muted); }
.place__tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--jade-ink); }

/* ---------- commitments (ink, hairlines, no cards) ---------- */
.commit { display: grid; gap: 0; }
@media (min-width: 800px) { .commit { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); } }
.commit > div { padding-block: 1.6rem; border-top: 1px solid var(--rule-ink); }
.commit h3 { font-size: var(--fs-h3); color: var(--paper); }
.commit p { font-size: var(--fs-sm); margin-top: .5rem; }

/* ---------- editorial: heading left, argument right ---------- */
.editorial { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .editorial { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .editorial > :first-child { padding-top: .35rem; }
}
.editorial .h2 { max-width: 14ch; }

/* ---------- split section ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--figureFirst > :first-child { order: 2; } }
.split .arch { aspect-ratio: 4 / 5; }

/* ---------- donate ----------
   Single column, case first, then the ask. Two-column giving pages put the
   form beside copy that has not sold the gift yet, and mobile is over half
   the traffic anyway. */
.give { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 980px) { .give { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } }
.givebox { max-width: 560px; margin-inline: auto; }
.givebox .card { padding: clamp(1.5rem, 3vw, 2.25rem); }

/* Security treatment on the pay step: a measured +14% on its own. */
.paynote {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-top: 1.25rem; padding: .9rem 1rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-sunk);
  font-size: var(--fs-xs); color: var(--text-muted);
}
.paynote svg { width: 18px; height: 18px; flex: none; color: var(--jade-ink); margin-top: .1rem; }
.paynote b { color: var(--text); font-weight: 600; }

/* Where the money goes, stated on the home page: donors rank it second only
   to the mission, and almost no charity site says it up front. */
.spend { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .spend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .spend { grid-template-columns: repeat(4, 1fr); } }
.spend > div { background: var(--bg); padding: 1.35rem 1.5rem; }
.spend b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--text); }
.spend p { margin-top: .45rem; font-size: var(--fs-sm); color: var(--text-muted); }
.card { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
/* Two fields per row reads as a shorter form even when nothing is removed. */
.fieldrow { display: grid; gap: 0 1rem; }
@media (min-width: 480px) { .fieldrow { grid-template-columns: 1fr 1fr; } }
.field > label, .fieldset__legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field__help { font-size: var(--fs-xs); color: var(--text-muted); }
.field__err { font-size: var(--fs-xs); color: #A32B2B; min-height: 1em; }
@media (prefers-color-scheme: dark) { .field__err { color: #FF9C9C; } }
textarea.input { resize: vertical; min-height: 8rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .8rem .9rem; background: var(--bg);
  border: 1px solid #B7C4D1; border-radius: var(--radius); color: var(--text);
}
@media (prefers-color-scheme: dark) { textarea.input { resize: vertical; min-height: 8rem; }
.input, select.input, textarea.input { border-color: #35506B; } }
.input::placeholder { color: #6B7E90; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: #A32B2B; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.segment { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: .6rem; }
.choice__note { display: block; margin-top: .2rem; font-size: var(--fs-xs); font-weight: 400; opacity: .85; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
@media (min-width: 480px) { .amounts { grid-template-columns: repeat(5, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice { display: flex; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; text-align: center; padding: .8rem .5rem; border: 1px solid #B7C4D1;
  border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
@media (prefers-color-scheme: dark) { .choice > span { border-color: #35506B; } }
.choice input:hover + span { border-color: var(--jade-ink); color: var(--text); }
.choice > span > span { display: inline; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input:checked + span { background: var(--jade); border-color: var(--jade); color: #fff; }
@media (prefers-color-scheme: dark) { .choice input:checked + span { color: #06121D; } }
.amount-custom { position: relative; }
.amount-custom span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.amount-custom .input { padding-left: 2rem; font-variant-numeric: tabular-nums; }
.give__summary { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 1rem; text-align: center; }
.give__summary b { color: var(--text); font-weight: 600; }
.notice {
  border: 1px solid var(--rule); border-left: 2px solid var(--gold); border-radius: var(--radius);
  padding: 1rem 1.15rem; font-size: var(--fs-sm); color: var(--text-muted); background: var(--bg-sunk);
}
.notice b { color: var(--text); font-weight: 600; }
.formstatus { margin-top: 1rem; font-size: var(--fs-sm); border-radius: var(--radius); padding: .85rem 1rem; display: none; }
.formstatus[data-state="error"] { display: block; background: #FBEDED; color: #8A2222; border: 1px solid #E7C4C4; }
.formstatus[data-state="ok"] { display: block; background: #E9F4F4; color: #14555A; border: 1px solid #BFDDDD; }
.formstatus[data-state="busy"] { display: block; background: var(--bg-sunk); color: var(--text-muted); border: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  .formstatus[data-state="error"] { background: #331B1B; color: #FFC4C4; border-color: #5A2C2C; }
  .formstatus[data-state="ok"] { background: #103334; color: #A9E4E4; border-color: #1F5254; }
}
.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ---------- allocation list ---------- */
.alloc { list-style: none; display: grid; gap: 0; container-type: inline-size; }
.alloc li { display: grid; gap: .3rem; padding-block: 1.15rem; border-top: 1px solid var(--rule); }
@container (min-width: 640px) {
  .alloc li { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 1100px) { .alloc li { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; } }
}
.alloc b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--text); }
.alloc p { font-size: var(--fs-sm); color: var(--text-muted); max-width: 62ch; }

/* ---------- footer ---------- */
.foot { background: var(--bg-ink); color: var(--text-on-ink-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); } }
.foot h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: .7rem; }
.foot a { color: var(--text-on-ink-muted); text-decoration: none; font-size: var(--fs-sm); }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.foot .brand__name { color: var(--paper); }
.foot .brand__sub { color: var(--gold); }
.foot__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-ink); font-size: var(--fs-xs); display: grid; gap: .75rem; }
@media (min-width: 800px) { .foot__legal { grid-template-columns: 1fr auto; align-items: center; } }
.foot__legal p { color: var(--text-on-ink-muted); max-width: 72ch; }

/* ---------- page header ---------- */
.pagehead { background: var(--bg-sunk); border-bottom: 1px solid var(--rule); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.pagehead .h1 { max-width: 20ch; }
.pagehead .lead { margin-top: 1.1rem; }
.crumb { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--jade-ink); margin-bottom: .9rem; }

.icon { fill: currentColor; }

/* ---------- misc ---------- */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.headgroup { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.headgroup p { margin-top: 1rem; color: var(--text-muted); font-size: var(--fs-lead); }
.section--ink .headgroup p { color: var(--text-on-ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- motion: one reveal, motivated by reading sequence ---------- */
/* Only a page that has proven it can reveal again is allowed to hide anything. */
html[data-motion="on"] .reveal { opacity: 0; transform: translateY(14px); }
html[data-motion="on"] .reveal[data-shown="true"] {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] .reveal,
  html[data-motion="on"] .reveal[data-shown="true"] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ==========================================================================
   Brand reference page. Scoped to .bk so it cannot leak into the site.
   ========================================================================== */
.bk-swatches { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .bk-swatches { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bk-swatches { grid-template-columns: repeat(3, 1fr); } }
.bk-swatch { background: var(--bg); padding: 0; }
.bk-swatch__chip { height: 96px; }
.bk-swatch__body { padding: 1rem 1.15rem 1.25rem; }
.bk-swatch b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.bk-swatch code { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--text-muted); }
.bk-swatch p { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }

.bk-marks { display: grid; gap: clamp(1.5rem, 3vw, 2rem); align-items: center; }
@media (min-width: 720px) { .bk-marks { grid-template-columns: repeat(3, 1fr); } }
/* These tiles demonstrate fixed brand surfaces, so they ignore the page theme. */
.bk-mark { background: #FFFFFF; border: 1px solid #D8E0E8; border-radius: var(--radius); padding: 2rem; display: grid; justify-items: center; gap: 1rem; }
.bk-mark--mist { background: #F1F4F7; }
.bk-mark--ink { background: #10263C; border-color: #10263C; }
.bk-mark span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #4C6076; }
.bk-mark--ink span { color: #C2A05B; }

.bk-specimen { border-top: 1px solid var(--rule); padding-block: 1.75rem; }
.bk-specimen small { display: block; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; }
.bk-specimen p { margin: 0; }

.bk-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.bk-do { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .bk-do { grid-template-columns: repeat(2, 1fr); } }
.bk-do > div { background: var(--bg); padding: 1.35rem 1.5rem; }
.bk-do h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.bk-do p { font-size: var(--fs-sm); color: var(--text-muted); }
.bk-do p + p { margin-top: .6rem; }


/* ---------- hero give card: the form's first step lives where the decision is made ---------- */
.givecard {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--rule-ink); border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  width: 100%; max-width: 420px; margin-inline: auto;
}
.givecard h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); color: var(--text); }
.givecard__sub { margin-top: .4rem; font-size: var(--fs-sm); color: var(--text-muted); }
.givecard fieldset { margin: 1.25rem 0 0; }
.givecard .btn--primary { background: var(--jade); color: #fff; margin-top: 1.25rem; }
.givecard .btn--primary:hover { background: var(--jade-deep); color: #fff; }
.givecard__fine { margin-top: .9rem; font-size: var(--fs-xs); color: var(--text-muted); }
@media (prefers-color-scheme: dark) {
  .givecard .btn--primary { color: #06121D; }
  .givecard .btn--primary:hover { background: var(--gold-soft); color: #06121D; }
}

/* ---------- the peninsula: where we are, and where is next ---------- */
.thread { list-style: none; display: grid; gap: 0; }
.thread li {
  display: grid; gap: .35rem; padding: 1.35rem 0 1.35rem clamp(1.1rem, 3vw, 1.75rem);
  border-left: 2px solid var(--gold-ink);
}
.thread li + li { border-top: 1px solid var(--rule); }
.thread li[data-next="true"] { border-left-style: dashed; }
.thread b { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 500; color: var(--text); }
.thread p { font-size: var(--fs-sm); color: var(--text-muted); max-width: 62ch; }
.thread__tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--jade-ink); }
.thread li[data-next="true"] .thread__tag { color: var(--text-muted); }
.section--ink .thread li { border-left-color: var(--gold); }
.section--ink .thread li + li { border-top-color: var(--rule-ink); }
.section--ink .thread b { color: var(--paper); }
.section--ink .thread p { color: var(--text-on-ink-muted); }
.section--ink .thread__tag { color: var(--link-on-ink); }

/* ---------- compact scripture band on phones, so the ask stays near the top ---------- */
@media (max-width: 640px) {
  .scripture__inner { padding-block: 1.1rem; }
  .scripture .ayah { font-size: 1.2rem; line-height: 1.85; }
  .scripture .gloss { font-size: .95rem; margin-top: .3rem; }
  .scripture .ref { margin-top: .45rem; }
}

@media (max-width: 420px) {
  .masthead__inner { gap: .45rem; }
  .brand { gap: .45rem; }
  .brand__name { font-size: .78rem; letter-spacing: .02em; }
  .masthead .btn { padding: .5rem .7rem; }
}

/* ---------- hadith set inside a page, beside the thing it speaks about ---------- */
.hadith-inline {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; max-width: 62ch;
  border: 1px solid var(--rule); border-left: 3px solid var(--gold-ink);
  border-radius: var(--radius); background: var(--bg-sunk);
}
.hadith-inline .ayah { font-family: var(--arabic); font-size: 1.45rem; line-height: 1.9; direction: rtl; color: var(--gold-ink); margin: 0; }
.hadith-inline .gloss { font-family: var(--serif); font-style: italic; margin-top: .5rem; color: var(--text); font-size: 1.05rem; }
.hadith-inline .ref { display: block; margin-top: .6rem; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- a town as an arch: the arch is the card, and it carries the words ---------- */
.cities { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 720px) { .cities { grid-template-columns: repeat(2, 1fr); } .cities > .city--lead { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cities { grid-template-columns: repeat(4, 1fr); } }
.city {
  text-align: center; color: var(--text-on-ink);
  background-color: var(--navy); background-image: linear-gradient(165deg, var(--navy), var(--ink));
  border-radius: 50% 50% var(--radius) var(--radius) / 80px 80px var(--radius) var(--radius);
  box-shadow: inset 0 0 0 1px rgba(194, 160, 91, .38);
  padding: 6rem clamp(1.35rem, 2.5vw, 2rem) 2.1rem;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.city__tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.city h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: var(--paper); }
.city p { font-size: var(--fs-sm); color: var(--text-on-ink-muted); max-width: 36ch; }
.city--next { background-image: none; background-color: var(--ink); box-shadow: none; border: 1px dashed rgba(194, 160, 91, .7); }
.city--lead { padding-top: 7rem; border-radius: 50% 50% var(--radius) var(--radius) / 110px 110px var(--radius) var(--radius); }
.city--lead p { max-width: 62ch; }
.city__stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; max-width: 640px; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-ink); }
.city__stats b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 500; color: var(--paper); line-height: 1; font-variant-numeric: tabular-nums; }
.city__stats span { display: block; margin-top: .4rem; font-size: var(--fs-xs); color: var(--text-on-ink-muted); }
@media (max-width: 640px) { .city { border-radius: 50% 50% var(--radius) var(--radius) / 64px 64px var(--radius) var(--radius); padding-top: 5rem; } .city--lead { padding-top: 5.5rem; } }

/* ---------- the story, in chapters ---------- */
.chapter { display: grid; gap: .9rem 3rem; padding-block: clamp(2rem, 4.5vw, 3.25rem); border-top: 1px solid var(--rule); }
.chapter:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
  .chapter__title { position: sticky; top: 110px; align-self: start; }
}
.chapter__title { font-size: var(--fs-h2); }
.chapter .prose p { font-size: 1.1rem; }
.chapter .prose p + p { margin-top: 1.1em; }

/* ---------- a number that moved ---------- */
.double { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 720px) { .double { grid-template-columns: 1fr auto 1fr; } }
.double__n { font-family: var(--serif); font-size: clamp(3rem, 2.2rem + 4vw, 5.6rem); line-height: .95; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.double__n--end { color: var(--jade-ink); }
.double__y { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }
.double__arrow { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-ink); line-height: 1; padding-bottom: 1.6rem; }
@media (max-width: 719px) { .double__arrow { padding: 0; transform: rotate(90deg); width: 2rem; } }
@media (prefers-color-scheme: dark) { .double__n { color: var(--text); } }

/* ---------- the payment form, on our own page ---------- */
.paybar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.paybar__sum { font-size: var(--fs-sm); color: var(--text-muted); }
.paybar__sum b { color: var(--text); font-weight: 600; }
#give-checkout { min-height: 280px; }
#give-pay:focus { outline: none; }

/* ---------- policies row in the footer ---------- */
.foot__policies { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-ink); }
.foot__policies a { font-size: var(--fs-sm); }
.foot__policies + .foot__legal { margin-top: 1.25rem; padding-top: 0; border-top: 0; }





/* ---------- photographs: shown whole, never cropped, with a gold line offset behind ---------- */
.photo { position: relative; margin: 0; isolation: isolate; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 28px 50px -28px rgba(16, 38, 60, .55); }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius);
  border: 1px solid var(--gold-ink); transform: translate(14px, 14px); opacity: .85; }
.section--ink .photo::before, .hero .photo::before { border-color: var(--gold); opacity: .7; }
.photo--portrait { max-width: 460px; }
.photo--wide { max-width: 560px; }
.split > .photo { justify-self: center; width: 100%; }
.hero .photo { max-width: min(100%, 460px, calc(72vh * .75)); margin-inline: auto; }
@media (max-width: 640px) { .photo::before { transform: translate(9px, 9px); } }

/* ---- reels: tap-to-play vertical videos ---- */
.reels { display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(1.75rem, 4vw, 2.75rem); align-items: start; }
.reels--inline { display: block; margin-top: 1.5rem; }
.reel { margin: 0; max-width: 320px; }
.reel__play, .reel video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #0B1B2B; object-fit: cover; }
.reel__play { position: relative; padding: 0; border: 1px solid rgba(194,160,91,.45); cursor: pointer; overflow: hidden; }
.reel__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; filter: brightness(.82); }
.reel__play:hover img, .reel__play:focus-visible img { transform: scale(1.04); filter: brightness(.95); }
.reel__play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.reel__icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(16,38,60,.82); border: 1.5px solid var(--gold); display: grid; place-items: center; }
.reel__icon svg { width: 28px; height: 28px; fill: var(--gold); margin-left: 3px; }
.reel figcaption { margin-top: .75rem; display: grid; gap: .25rem; font-size: var(--fs-sm); line-height: 1.4; }
.reel figcaption b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.reel figcaption span { color: var(--text-muted); }
.reel figcaption small { font-size: .78rem; opacity: .75; }
.section--ink .reel figcaption b { color: var(--paper); }
.section--ink .reel figcaption span { color: #A9BDD0; }
.section--ink .reel figcaption small { color: #A9BDD0; }
@media (max-width: 540px) { .reels:not(.reels--inline) { grid-template-columns: repeat(2, 1fr); } .reel { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .reel__play img { transition: none; } }
.reel [hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reels--inline .reel { max-width: 250px; }
