/* ==========================================================================
   Shree Satya Sai Kalyan Kshetra Vrudhashram — Design System
   Bootstrap 5.3 is loaded first; this file customises it.
   Colour system: white + logo brown/gold/green (see tokens). White dominates.

   CONTENTS
   01 Tokens            08 Section system        15 Forms
   02 Base & type       09 Cards                 16 Accordion (FAQ)
   03 Accessibility     10 Arch frames (signature) 17 CTA bands, map
   04 Buttons           11 Story band            18 Footer
   05 Top bar & header  12 Gallery + lightbox    19 Floating buttons
   06 Hero              13 Steps, facts, routine 20 Motion
   07 Page hero         14 Verify markers        21 Text-size, utilities
   20b Background motif system (tokens, motifs, dividers, warm band, CTA panels, plain hero, tints, mapping)
   ========================================================================== */

/* Metric-matched fallback fonts: while Poppins / Playfair Display load, text is laid out at (almost exactly)
   the same width, so the swap does not move anything. size-adjust values measured against the real fonts. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); font-weight: 400; size-adjust: 111.2%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); font-weight: 500; size-adjust: 112.6%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial Bold"), local("Arial"); font-weight: 600; size-adjust: 106%; }
@font-face { font-family: "Playfair Fallback"; src: local("Georgia"); font-weight: 500; size-adjust: 101.7%; }
@font-face { font-family: "Playfair Fallback"; src: local("Georgia Bold"), local("Georgia"); font-weight: 600; size-adjust: 88.4%; }
@font-face { font-family: "Playfair Fallback"; src: local("Georgia Bold"), local("Georgia"); font-weight: 700; size-adjust: 89.3%; }

/* 01 — TOKENS ------------------------------------------------------------- */
:root {
    /* Colour — sampled from the official logo (title brown, "VRUDHASHRAM" bronze, lamp gold, leaf green).
       White is the base (~75%); the brand colours are used for buttons, labels, icons, borders and controls. */
    --brand-primary: #7A4508;      /* bronze-brown (logo "VRUDHASHRAM" lettering): buttons, links — 7.4:1 on white */
    --brand-primary-dark: #4A1C00; /* deep brown (logo title): hover, footer                                      */
    --brand-primary-light: #E8B04A;/* lamp gold (logo emblem): accents on dark                                    */
    --brand-green: #45531C;        /* leaf green (logo tagline)                                                   */
    --brand-soft: #FAF4E8;         /* faint warm cream: alternate sections                                        */
    --white: #FFFFFF;
    --text-dark: #2B2118;
    --text-muted: #6B6055;
    --border-light: #EBE1D2;
    /* legacy names used throughout this stylesheet */
    --primary-color: var(--brand-primary);
    --primary-dark: var(--brand-primary-dark);
    --primary-light: var(--brand-soft);
    --primary-soft: #FDFAF4;
    --secondary-color: var(--brand-primary);
    --secondary-dark: var(--brand-primary-dark);
    --accent-color: var(--brand-primary);
    --green-color: var(--brand-green);
    --green-dark: #34400F;
    --amber-color: var(--brand-primary);
    --gold-color: var(--brand-primary-light);
    --dark-color: var(--text-dark);
    --light-color: #FFFFFF;
    --sand-color: var(--brand-soft);
    --white-color: #FFFFFF;
    --text-color: var(--text-dark);
    --muted-color: var(--text-muted);
    --line-color: var(--border-light);
    --border: var(--border-light);
    --success: #3F7A3A;

    /* Type */
    --font-heading: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
    --font-body: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-deva: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;

    /* Shape, depth, spacing */
    --radius-sm: .6rem;
    --radius-md: 1.1rem;
    --radius-lg: 1.6rem;
    --arch-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; /* for 4:5 frames */
    --shadow-sm: 0 1px 2px rgba(43, 33, 24, .05), 0 6px 18px -10px rgba(74, 28, 0, .16);
    --shadow-md: 0 2px 4px rgba(43, 33, 24, .04), 0 18px 40px -18px rgba(74, 28, 0, .24);
    --section-space: clamp(3.75rem, 7vw, 6.5rem);
    --header-h: 5.25rem;

    /* Bootstrap variable bridge */
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.75;
    --bs-body-color: var(--text-color);
    --bs-body-bg: var(--light-color);
    --bs-heading-color: var(--text-color);
    --bs-link-color-rgb: 122, 69, 8;
    --bs-link-hover-color-rgb: 74, 28, 0;
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--primary-dark);
    --bs-border-color: var(--line-color);
    --bs-border-radius: var(--radius-sm);
}

/* 02 — BASE & TYPOGRAPHY -------------------------------------------------- */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; background: var(--light-color); overflow-x: clip; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.005em;
    color: var(--text-color);
}
h1, .h1 { font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.35rem); font-weight: 700; line-height: 1.08; }
h2, .h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h3, .h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
h4, .h4 { font-size: 1.3rem; }
h5, .h5 { font-size: 1.125rem; }
h2, .h2 { margin-bottom: 1rem; }
p { margin-bottom: 1.1rem; }
.lead { font-size: 1.25rem; font-weight: 400; color: var(--muted-color); line-height: 1.7; }
.text-muted, .text-body-secondary { color: var(--muted-color) !important; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.deva { font-family: var(--font-deva); font-weight: 600; letter-spacing: 0; }
em.accent { font-style: italic; font-weight: 500; color: var(--primary-color); }
.on-dark em.accent, .hero-dark em.accent, .section--dark em.accent, .page-hero em.accent, .story-band em.accent, .site-footer em.accent { color: var(--gold-color); }
code { color: var(--primary-dark); background: rgba(122, 69, 8, .08); padding: .1rem .35rem; border-radius: .3rem; font-size: .88em; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* 03 — ACCESSIBILITY ------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .story-band :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: #fff; }
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--primary-dark); color: #fff; padding: .85rem 1.4rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600; text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; }

/* 04 — BUTTONS ------------------------------------------------------------ */
.btn {
    --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .8rem;
    --bs-btn-font-family: var(--font-body); --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 999px; --bs-btn-font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3.3rem; line-height: 1.25; letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { --bs-btn-padding-x: 2rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.05rem; min-height: 3.6rem; }
.btn-sm { --bs-btn-padding-x: 1.2rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .95rem; min-height: 2.9rem; }

/* Primary: brand-brown fill */
.btn-donate, .btn-walnut {
    --bs-btn-color: #fff; --bs-btn-bg: var(--primary-color); --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #2E1100; --bs-btn-active-border-color: #2E1100;
    --bs-btn-focus-shadow-rgb: 122, 69, 8;
}
/* Secondary: brand-brown outline */
.btn-outline-walnut {
    --bs-btn-color: var(--primary-color); --bs-btn-border-color: var(--primary-color); --bs-btn-border-width: 2px; --bs-btn-bg: transparent;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--primary-color); --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--primary-color); --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 122, 69, 8;
}
/* On photographs / video */
.btn-outline-light-soft {
    --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .8); --bs-btn-border-width: 2px; --bs-btn-bg: rgba(255, 255, 255, .08);
    --bs-btn-hover-color: var(--primary-dark); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--primary-dark); --bs-btn-active-bg: #fff; --bs-btn-active-border-color: #fff;
}
.btn-gold {
    --bs-btn-color: var(--primary-dark); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--primary-dark); --bs-btn-hover-bg: var(--primary-light); --bs-btn-hover-border-color: var(--primary-light);
    --bs-btn-active-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-light); --bs-btn-active-border-color: var(--primary-light);
}
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* 05 — TOP BAR & HEADER --------------------------------------------------- */
.top-bar { background: var(--primary-soft); color: var(--text-color); font-size: .875rem; border-bottom: 1px solid var(--line-color); }
.top-bar .container-xl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 2.75rem; }
.top-bar a { color: var(--text-color); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.6rem; white-space: nowrap; }
.top-bar a i { color: var(--primary-color); width: 1rem; text-align: center; flex: none; }
.top-bar a:hover { color: var(--primary-color); text-decoration: underline; }
.top-bar__items { display: flex; flex-wrap: nowrap; gap: 0 1.5rem; align-items: center; overflow: hidden; }
.text-size { display: inline-flex; align-items: center; gap: .35rem; }
.text-size__label { font-size: .8rem; color: var(--muted-color); margin-right: .15rem; }
.text-size button {
    background: transparent; border: 1.5px solid var(--border); color: var(--text-color); border-radius: 999px;
    min-width: 2.4rem; height: 2.1rem; padding: 0 .55rem; font-weight: 600; line-height: 1; cursor: pointer;
}
.text-size button:nth-of-type(1) { font-size: .8rem; }
.text-size button:nth-of-type(2) { font-size: .95rem; }
.text-size button:nth-of-type(3) { font-size: 1.1rem; }
.text-size button[aria-pressed="true"] { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.text-size button:hover { border-color: var(--primary-color); }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--white-color); /* opaque white no backdrop-filter: it would trap the fixed offcanvas inside the header */
    border-bottom: 1px solid var(--line-color);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(74, 28, 0, .45); }
/* Fixed height: nothing in the header changes size on scroll, so the page can never "breathe" or shake */
.site-header .navbar { height: var(--header-h); min-height: var(--header-h); padding: 0; }
.header-inner { width: 100%; max-width: 1500px; margin-inline: auto; padding-inline: clamp(.75rem, 2vw, 1.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Official logo (assets/logo/image.png → optimised round badge assets/images/logo/logo.webp|png, transparent corners).
   Square 1:1 artwork: fixed height, width auto, so it is never stretched or cropped. */
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; flex: none; }
.brand-logo { display: block; height: 4.25rem; width: auto; aspect-ratio: 1 / 1; }
@media (min-width: 1200px) { :root { --header-h: 6rem; } .brand-logo { height: 4.9rem; } }

/* Brand lockup: real-text organisation name beside the logo (logo artwork untouched) */
.brand { gap: .6rem; }
.site-header .brand-logo { height: 3.5rem; }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.15; }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-heading, inherit); font-weight: 700; font-size: .95rem; letter-spacing: 0; color: var(--brand-primary-dark); white-space: nowrap; }
.brand-name > span { display: block; }
.brand-sub { margin-top: .2rem; font-size: .56rem; font-weight: 600; letter-spacing: .06em; color: var(--brand-primary); white-space: nowrap; }
@media (min-width: 480px) {
    .site-header .brand-logo { height: 4rem; }
    .brand-name { font-size: 1.05rem; }
    .brand-sub { font-size: .62rem; }
}
@media (min-width: 768px) {
    .site-header .brand-logo { height: 4.25rem; }
    .brand-name { font-size: 1.2rem; }
    .brand-sub { font-size: .7rem; letter-spacing: .1em; }
}
@media (min-width: 1200px) {
    .site-header .brand-logo { height: 4rem; }
    .brand { gap: .65rem; }
    .brand-name { font-size: 1rem; }
    .brand-sub { font-size: .62rem; letter-spacing: .06em; }
}
@media (min-width: 1400px) {
    .site-header .brand-logo { height: 4.9rem; }
    .brand { gap: .75rem; }
    .brand-name { font-size: 1.35rem; }
    .brand-sub { font-size: .75rem; letter-spacing: .1em; }
}
@media (max-width: 479.98px) {
    .header-inner { gap: .4rem; padding-inline: .6rem; }
    .navbar-toggler { padding: .4rem .75rem; gap: .3rem; }
}

.navbar-toggler {
    border: 2px solid var(--primary-color); border-radius: 999px; color: var(--primary-color);
    padding: .5rem 1.05rem; font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; min-height: 3rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:hover { background: var(--primary-color); color: #fff; }

.navbar-nav { --bs-nav-link-padding-x: .6rem; --bs-nav-link-padding-y: .55rem; --bs-nav-link-font-size: .92rem; --bs-nav-link-font-weight: 500; --bs-nav-link-color: var(--dark-color); --bs-nav-link-hover-color: var(--primary-color); }
.navbar-nav .nav-link { position: relative; white-space: nowrap; }
.navbar-nav .nav-link::after {
    content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .2rem; height: 2px;
    background: var(--primary-color); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.navbar-nav .nav-link[aria-current="page"] { color: var(--primary-color); font-weight: 600; }

.offcanvas { --bs-offcanvas-width: min(92vw, 390px); background: #fff; }
.offcanvas-header { border-bottom: 1px solid var(--line-color); }
.offcanvas .btn-close { width: 1.4rem; height: 1.4rem; opacity: .85; }
.nav-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }

@media (max-width: 1199.98px) {
    .navbar-nav .nav-link { font-size: 1.15rem; padding: 1rem .25rem; min-height: 3.6rem; display: flex; align-items: center; border-bottom: 1px solid var(--line-color); font-weight: 500; }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link[aria-current="page"] { color: var(--primary-color); }
}
@media (min-width: 1200px) {
    .navbar-nav { --bs-nav-link-padding-x: .42rem; --bs-nav-link-font-size: .88rem; gap: 0; }
    .navbar-nav .nav-link::after { left: .42rem; right: .42rem; }
    .nav-actions { flex-direction: row; margin: 0 0 0 .6rem; align-items: center; }
    .nav-actions .btn { white-space: nowrap; min-height: 2.9rem; --bs-btn-padding-x: 1.15rem; --bs-btn-padding-y: .5rem; font-size: .92rem; }
}
@media (min-width: 1400px) {
    .navbar-nav { --bs-nav-link-padding-x: .6rem; --bs-nav-link-font-size: .95rem; }
    .navbar-nav .nav-link::after { left: .6rem; right: .6rem; }
    .nav-actions { margin-left: 1rem; }
    .nav-actions .btn { min-height: 3.1rem; --bs-btn-padding-x: 1.4rem; font-size: .98rem; }
}

/* 06 — HERO: see "HERO (video)" near the end of this file */

/* 07 — PAGE HERO (inner pages) -------------------------------------------- */
.page-hero {
    position: relative; overflow: hidden; color: rgba(255, 255, 255, .92);
    background: linear-gradient(135deg, #4A1C00 0%, #7A4508 100%);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.75rem);
}
/* Pages with a photograph: a deep wash keeps the text readable while the photo stays natural */
.page-hero[class*="page-hero--"] {
    background:
        linear-gradient(100deg, rgba(36, 18, 4, .88) 0%, rgba(36, 18, 4, .72) 46%, rgba(36, 18, 4, .38) 100%),
        var(--ph-img, none) var(--ph-pos, center) / cover no-repeat, #2E1100;
}
.page-hero--about { --ph-img: url("../media/photo/img-7165-1080.webp"); --ph-pos: 50% 30%; }
.page-hero--our-home { --ph-img: url("../media/photo/img-7174-1080.webp"); --ph-pos: 50% 45%; }
.page-hero--care { --ph-img: url("../media/photo/img-7154-1080.webp"); --ph-pos: 50% 55%; }
.page-hero--activities { --ph-img: url("../media/photo/img-7141-1080.webp"); --ph-pos: 50% 75%; }
.page-hero--gallery { --ph-img: url("../media/photo/img-7167-1080.webp"); --ph-pos: 50% 50%; }
.page-hero--stories { --ph-img: url("../media/photo/img-7169-1080.webp"); --ph-pos: 50% 60%; }
.page-hero--involved { --ph-img: url("../media/photo/img-7177-1080.webp"); --ph-pos: 50% 45%; }
.page-hero--donate { --ph-img: url("../media/photo/img-7024-1080.webp"); --ph-pos: 50% 22%; }
.page-hero--contact { --ph-img: url("../media/photo/img-7026-1080.webp"); --ph-pos: 50% 55%; }
.page-hero::after {
    content: ""; position: absolute; right: clamp(-3rem, 4vw, 6rem); bottom: -1px; width: clamp(9rem, 20vw, 17rem); aspect-ratio: 4 / 5;
    border: 2px solid rgba(255, 255, 255, .28); border-bottom: 0; border-radius: 50% 50% 0 0 / 40% 40% 0 0; pointer-events: none;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3.8vw, 3.6rem); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255, 255, 255, .9); max-width: 46rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-color); }
.page-hero .eyebrow::before { background: var(--gold-color); }
.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8); font-size: .95rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255, 255, 255, .95); }
.breadcrumb a:hover { color: var(--gold-color); }

/* 08 — SECTION SYSTEM ----------------------------------------------------- */
.section { padding-block: var(--section-space); position: relative; }
.section--sand { background: var(--sand-color); }
.section--white { background: var(--white-color); }
.section--dark { background: var(--primary-dark); color: rgba(255, 255, 255, .88); }
/* legacy class name: now a soft warm-cream band */
.section--walnut { background: var(--primary-light); color: var(--text-color); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .88); }
.section--walnut .lead { color: var(--muted-color); }
.section--flush-top { padding-top: 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { text-align: center; margin-inline: auto; max-width: 48rem; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: 1rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary-color);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--primary-color); flex: none; }
.section--dark .eyebrow { color: var(--gold-color); }
.section--dark .eyebrow::before { background: var(--gold-color); }

.prose p { max-width: 64ch; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose--legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose--legal h3 { font-size: 1.2rem; }
.prose--legal p, .prose--legal li { max-width: 72ch; }
.pull-quote {
    font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.4;
    color: var(--text-color); border-left: 3px solid var(--primary-color); padding: .25rem 0 .25rem 1.4rem; margin: 2rem 0;
}

/* 09 — CARDS -------------------------------------------------------------- */
.card {
    --bs-card-bg: var(--white-color); --bs-card-border-color: var(--line-color); --bs-card-border-radius: var(--radius-md);
    --bs-card-inner-border-radius: calc(var(--radius-md) - 1px); --bs-card-spacer-y: 1.6rem; --bs-card-spacer-x: 1.6rem;
    box-shadow: var(--shadow-sm); height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(122, 69, 8, .35); }
.card-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--text-color); }
.card p:last-child { margin-bottom: 0; }

/* Arched icon badge — echoes the doorway motif */
.icon-arch {
    width: 3.4rem; height: 4rem; display: inline-flex; align-items: center; justify-content: center; flex: none;
    border-radius: 50% 50% 9px 9px / 42% 42% 9px 9px; background: var(--primary-light); color: var(--primary-color);
    font-size: 1.5rem; margin-bottom: 1.15rem; border: 1.5px solid rgba(122, 69, 8, .18);
}
.section--sand .icon-arch, .section--walnut .icon-arch { background: #fff; }
.icon-arch--gold { background: var(--primary-light); color: var(--primary-color); }


.value-card { text-align: left; }
.value-card .card-title { margin-bottom: .6rem; }
.on-walnut-card { --bs-card-bg: #fff; --bs-card-border-color: var(--line-color); }

.photo-card { position: relative; border-radius: var(--radius-md); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm); background: var(--sand-color); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; display: block; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card__body { position: absolute; inset: auto 0 0 0; padding: 3.5rem 1.4rem 1.3rem; color: #fff; background: linear-gradient(to top, rgba(43, 33, 24, .92), rgba(43, 33, 24, .55) 55%, rgba(43, 33, 24, 0)); }
.photo-card__body h3 { color: #fff; font-size: 1.4rem; margin: 0 0 .2rem; }
.photo-card__body p { font-size: .95rem; margin: 0; line-height: 1.5; color: rgba(255, 255, 255, .9); }

/* Activity card: image, icon medallion, name, description */
.activity-card { overflow: hidden; }
.activity-card__media { position: relative; overflow: hidden; }
.activity-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.activity-card:hover .activity-card__media img { transform: scale(1.05); }
.activity-card__icon {
    position: absolute; left: 1.1rem; bottom: .9rem; width: 3rem; height: 3rem; border-radius: 50%; z-index: 2;
    background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: 0 8px 18px -8px rgba(43, 33, 24, .6); border: 3px solid var(--white-color);
}
.activity-card .card-body { padding-top: 1.5rem; }
.activity-card--large .card-body { padding: 1.75rem; }

.empty-state { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; border: 1.5px solid var(--line-color); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .55); }
.empty-state .icon-arch { margin-inline: auto; }
.empty-state h3 { font-size: 1.5rem; }
.empty-state p { max-width: 46ch; margin-inline: auto; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line-color); }
.contact-item:last-child { border-bottom: 0; }
.contact-item > i { font-size: 1.35rem; color: var(--primary-color); margin-top: .25rem; flex: none; width: 1.6rem; text-align: center; }
.contact-item strong { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-color); font-weight: 600; margin-bottom: .15rem; }
.contact-item address { margin: 0; font-style: normal; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.tag-list li { padding: .3rem .95rem; border-radius: 999px; background: var(--white-color); border: 1px solid var(--line-color); font-size: .95rem; font-weight: 500; color: var(--primary-color); }
.section--sand .tag-list li { background: #fff; }

.text-success { color: var(--success) !important; }

/* The four words on the emblem's outer ring */

/* Honest labelling of stock photography */
.stock-tag { position: absolute; left: .7rem; bottom: .7rem; z-index: 2; padding: .12rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.6; color: var(--dark-color); background: rgba(255, 255, 255, .92); pointer-events: none; }
.stock-note { font-size: .92rem; color: var(--muted-color); }

/* 10 — ARCH FRAMES (signature) -------------------------------------------- */
.arch-wrap { position: relative; padding: 0 16px 16px 0; max-width: 440px; margin-inline: auto; }
.arch-wrap::before {
    content: ""; position: absolute; left: 16px; top: 16px; right: 0; bottom: 0;
    border: 2px solid rgba(122, 69, 8, .35); border-radius: var(--arch-radius); z-index: 0;
}
.arch-wrap--flip { padding: 0 0 16px 16px; }
.arch-wrap--flip::before { left: 0; right: 16px; }
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch-radius); background: var(--sand-color); box-shadow: var(--shadow-md); }
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch--natural { aspect-ratio: 1000 / 1055; }
.welcome-logo { display: flex; justify-content: center; align-items: center; }
.welcome-logo img { display: block; width: 100%; max-width: 18rem; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
@media (min-width: 992px) { .welcome-logo img { max-width: 26rem; } }
.frame-soft { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.frame-soft img, .frame-soft video { width: 100%; display: block; aspect-ratio: 5 / 4; object-fit: cover; }

/* 11 — STORY BAND --------------------------------------------------------- */
.story-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; }
.story-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36, 18, 4, .82), rgba(36, 18, 4, .78)); }
.story-band .eyebrow { color: var(--gold-color); justify-content: center; }
.story-band .eyebrow::before { background: var(--gold-color); }
.story-band blockquote { margin: 0 auto 2rem; max-width: 26ch; font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1.2; color: #fff; }
.story-band p { max-width: 54ch; margin-inline: auto; font-size: 1.15rem; color: rgba(255, 255, 255, .9); }

/* 12 — GALLERY + LIGHTBOX ------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.25rem; }
.filter-btn {
    background: var(--white-color); border: 1.5px solid var(--line-color); color: var(--primary-color); border-radius: 999px;
    padding: .55rem 1.2rem; font-weight: 500; font-size: .98rem; min-height: 2.9rem; cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--primary-color); background: var(--sand-color); }
.filter-btn[aria-pressed="true"] { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.gallery-masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 480px) { .gallery-masonry { column-count: 2; } }
@media (min-width: 992px) { .gallery-masonry { column-count: 3; } }
@media (min-width: 1400px) { .gallery-masonry { column-count: 4; } }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; transition: opacity .25s ease, transform .25s ease; }
.gallery-item.is-hiding { opacity: 0; transform: scale(.96); }
.gallery-item[hidden] { display: none; }
.gallery-item button {
    display: block; width: 100%; padding: 0; border: 0; background: var(--sand-color); border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: zoom-in; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item .zoom-badge {
    position: absolute; right: .75rem; top: .75rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.85); transition: all .25s ease;
}
.gallery-item button:hover .zoom-badge, .gallery-item button:focus-visible .zoom-badge { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item .zoom-badge { opacity: 1; transform: none; } }
.gallery-empty { display: none; }
.gallery-empty.is-visible { display: block; }
.gallery-thumb-grid a { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-thumb-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-thumb-grid a:hover img { transform: scale(1.06); }

/* Real (non-stock) video clips: poster + native controls, played on demand */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.video-card { border-radius: var(--radius-md); overflow: hidden; background: var(--white-color); box-shadow: var(--shadow-sm); }
.video-card video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.video-card--wide video { aspect-ratio: 16 / 9; }
.video-card__caption { padding: .9rem 1.1rem 1.1rem; }
.video-card__caption h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.video-card__caption p { font-size: .92rem; color: var(--muted-color); margin: 0; }

.lightbox .modal-content { background: #24150A; color: #fff; border: 0; border-radius: var(--radius-md); }
.lightbox .modal-header { border: 0; padding: .75rem 1rem 0; }
.lightbox .modal-body { padding: .5rem 1rem 1rem; text-align: center; position: relative; }
.lightbox img { max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox__caption { margin: 1rem 0 0; color: rgba(255, 255, 255, .9); font-size: 1rem; }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0; z-index: 2;
    background: rgba(255, 255, 255, .92); color: var(--dark-color); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer;
}
.lightbox__nav:hover { background: var(--primary-light); }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
.modal-backdrop.show { opacity: .8; }

/* 13 — STEPS, FACTS, ROUTINE ---------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--white-color); border: 1px solid var(--line-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.steps li::before {
    content: counter(step); flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--primary-color); color: #fff;
    font-family: var(--font-heading); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.steps strong { display: block; color: var(--primary-color); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white-color); border: 1px solid var(--line-color); border-radius: var(--radius-md); overflow: hidden; }
.facts th, .facts td { padding: 1rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--line-color); text-align: left; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); }
@media (max-width: 575.98px) { .facts th, .facts td { display: block; width: 100%; } .facts th { border-bottom: 0; padding-bottom: .25rem; } }
.routine { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid rgba(122, 69, 8, .35); display: grid; gap: 1.25rem; }
.routine li { position: relative; padding: 1.1rem 1.3rem; background: var(--white-color); border: 1px solid var(--line-color); border-radius: var(--radius-md); }
.routine li::before { content: ""; position: absolute; left: -2.15rem; top: 1.6rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--primary-color); border: 3px solid var(--primary-light); box-sizing: content-box; }
.routine h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.routine .when { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--primary-color); }

/* 14 — internal verification markers are no longer part of the public site */

/* 15 — FORMS -------------------------------------------------------------- */
.form-panel { background: var(--white-color); border: 1px solid var(--line-color); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-label { font-weight: 600; color: var(--primary-color); margin-bottom: .4rem; font-size: 1rem; }
.form-label .req { color: #A32D2D; margin-left: .15rem; }
.form-control, .form-select {
    min-height: 3.4rem; font-size: 1.05rem; border: 1.5px solid #D6C8B2; border-radius: var(--radius-sm); padding: .7rem 1rem;
    background-color: var(--white-color); color: var(--dark-color);
}
textarea.form-control { min-height: 9rem; }
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .25rem rgba(122, 69, 8, .22); }
.form-text { color: var(--muted-color); font-size: .9rem; }
.invalid-feedback { font-size: .95rem; font-weight: 500; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: #A32D2D; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); font-size: 1rem; }

/* 16 — ACCORDION (FAQ) ---------------------------------------------------- */
.accordion {
    --bs-accordion-bg: var(--white-color); --bs-accordion-border-color: var(--line-color); --bs-accordion-border-radius: var(--radius-md);
    --bs-accordion-inner-border-radius: calc(var(--radius-md) - 1px);
    --bs-accordion-btn-color: var(--primary-color); --bs-accordion-btn-bg: var(--white-color);
    --bs-accordion-active-color: var(--primary-dark); --bs-accordion-active-bg: var(--primary-light);
    --bs-accordion-btn-padding-y: 1.25rem; --bs-accordion-btn-padding-x: 1.5rem; --bs-accordion-body-padding-x: 1.5rem; --bs-accordion-body-padding-y: 1.25rem;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(122, 69, 8, .28);
}
.accordion-item { margin-bottom: .85rem; border-radius: var(--radius-md) !important; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-color); }
.accordion-button { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }

/* 17 — CTA BAND, MAP ------------------------------------------------------ */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #4A1C00, #7A4508);
    box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 56ch; font-size: 1.15rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; position: relative; z-index: 1; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-color); box-shadow: var(--shadow-md); background: var(--sand-color); }
.map-embed iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }

/* 18 — FOOTER ------------------------------------------------------------- */
.site-footer { position: relative; background: var(--primary-dark); color: rgba(255, 255, 255, .86); font-size: 1rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-color); font-weight: 600; margin-bottom: 1.15rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: var(--gold-color); text-decoration: underline; }
.footer-main { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.footer-logo { display: inline-flex; max-width: 100%; gap: .9rem; }
.footer-logo:hover { text-decoration: none; }
.site-footer .brand-logo { height: 5.5rem; width: auto; }
.site-footer .brand-name { color: #FFF6E3; font-size: 1.15rem; letter-spacing: .01em; }
.site-footer .brand-sub { color: var(--gold-color); font-size: .68rem; letter-spacing: .1em; margin-top: .3rem; }
@media (max-width: 575.98px) {
    .site-footer .col-12:first-child > h2 { text-align: center; }
    .footer-logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
    .site-footer .brand-text { align-items: center; }
    .site-footer .brand-logo { height: 6rem; }
    .site-footer .brand-name { font-size: 1.1rem; }
    .site-footer .col-12:first-child > p { text-align: center; margin-inline: auto; }
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li a { display: inline-flex; align-items: center; min-height: 2.6rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer-contact i { color: var(--gold-color); margin-top: .3rem; flex: none; }
.footer-contact address { margin: 0; font-style: normal; }
.social-links { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.social-links a { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.social-links a:hover { background: #fff; color: var(--primary-dark); border-color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.4rem 0; font-size: .92rem; }
.footer-bottom .container-xl { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-note { margin: 0; flex-basis: 100%; font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* 19 — FLOATING BUTTONS --------------------------------------------------- */
.fab-stack { position: fixed; right: max(.85rem, env(safe-area-inset-right)); bottom: max(.85rem, env(safe-area-inset-bottom)); z-index: 1040; display: flex; flex-direction: column; gap: .65rem; align-items: flex-end; }
.fab {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 3.5rem; height: 3.5rem; padding: 0 1rem; border-radius: 999px;
    color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(43, 33, 24, .55); border: 2px solid rgba(255, 255, 255, .85);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fab i { font-size: 1.4rem; line-height: 1; }
.fab:hover { color: #fff; transform: translateY(-3px); }
.fab[hidden] { display: none; }
.fab__label { display: none; }
@media (min-width: 992px) { .fab__label { display: inline; } }
.fab--call { background: var(--primary-color); }
.fab--whatsapp { background: #16793F; }
.fab--donate { background: var(--primary-dark); }
.back-to-top {
    position: fixed; left: max(.85rem, env(safe-area-inset-left)); bottom: max(.85rem, env(safe-area-inset-bottom)); z-index: 1040; width: 3.2rem; height: 3.2rem; border-radius: 50%;
    border: 2px solid var(--primary-color); background: #fff; color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; box-shadow: var(--shadow-sm);
}
body:has(.offcanvas.show) .fab-stack, body:has(.offcanvas.show) .back-to-top { display: none; } /* keep the open mobile menu unobstructed */
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-color); color: #fff; }

/* 20 — MOTION ------------------------------------------------------------- */
/* Hidden state applies only when JS is on; html.no-reveal (set if main.js never runs) shows everything. */
.js .reveal, .js .reveal-up { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible, .js .reveal-up.is-visible { opacity: 1; transform: none; }
.js .reveal-fade { opacity: 0; transition: opacity .7s ease; transition-delay: var(--delay, 0s); }
.js .reveal-fade.is-visible { opacity: 1; }
.no-reveal.js .reveal, .no-reveal.js .reveal-up, .no-reveal.js .reveal-fade { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal, .js .reveal-up, .js .reveal-fade { opacity: 1; transform: none; transition-delay: 0s !important; }
    .btn:hover, .card-hover:hover, .fab:hover { transform: none; }
}

/* 20b — BACKGROUND MOTIF SYSTEM ---------------------------------------------
   A small library of decorative layers drawn from the logo (arched doorway, diya lamp, leaf, rangoli).
   Each motif is a modifier class added to a <section> (or the footer). Rules of the system:
   · CSS only. Shapes are inline-SVG data URIs used as MASKS, so every colour still comes from a token below.
   · One motif per section (::before). Texture layers (.bg-grain / .bg-dots) sit on ::after and may be added on top.
   · Decorations sit at z-index 0, content at z-index 1, and never take pointer events or cover text.
   · Line motifs 0.08–0.25, glows 0.15–0.35, motto text ≤ 0.05. Hidden in print.
   Classes:  .bg-warm-band  .bg-cta (+ --inner / --panel)  .page-hero--plain  .bg-tint-alt  .bg-faq  .bg-map  .bg-arch--sm
             .bg-arch  .bg-diya  .bg-leaf  .bg-rangoli  .bg-motto (+ .bg-motto__text)  .bg-grain  .bg-dots
             .bg-arch-pattern (footer)  .bg-moment (warm cream band)  .bg-left / .bg-top (mirror a corner motif)
             .bg-divider + .divider-wave-top|bottom / .divider-arch-top|bottom + .divider--white|sand|… (fill)  */

/* ---- tokens ---- */
:root {
    --bg-motif-line: var(--brand-primary);          /* arch / rangoli / dots line colour on light bands   */
    --bg-motif-line-dark: var(--brand-primary-light);/* the same lines on dark brown (footer, CTA)         */
    --bg-leaf-line: var(--brand-green);             /* sprigs                                              */
    --bg-glow-gold: var(--brand-primary-light);     /* diya glow                                           */
    --bg-grain-ink: var(--brand-primary-dark);      /* paper grain                                         */
    --bg-warm: color-mix(in srgb, var(--brand-primary-light) 22%, var(--brand-soft)); /* "moment" cream   */
    --bg-line-alpha: .16;
    --bg-leaf-alpha: .22;
    --bg-glow-alpha: .3;
    --bg-grain-alpha: .07;
    --bg-motto-alpha: .045;
    --bg-edge: clamp(.25rem, 4vw, 4.5rem);          /* distance of a corner motif from the side edge       */

    --bg-shape-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250' %3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 250V108a88 88 0 0 1 176 0V250'/%3E%3Cpath d='M38 250V110a62 62 0 0 1 124 0V250'/%3E%3Cpath d='M64 250V112a36 36 0 0 1 72 0V250'/%3E%3C/g%3E%3C/svg%3E");
    --bg-shape-arch-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 64' width='96' height='64'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 64V34a32 32 0 0 1 64 0V64'/%3E%3Cpath d='M30 64V35a18 18 0 0 1 36 0V64'/%3E%3C/g%3E%3C/svg%3E");
    --bg-shape-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' %3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(70 285) rotate(8) scale(1.1)'%3E%3Cpath d='M0 0C4-60 -4-120 6-190'/%3E%3Cpath transform='translate(2 -30) rotate(-38) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -30) rotate(218) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(-38) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(218) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(-38) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(218) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(-38) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(218) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(-38) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(218) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(6 -190) rotate(-90) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3C/g%3E%3Cg transform='translate(150 290) rotate(-14) scale(0.9)'%3E%3Cpath d='M0 0C4-60 -4-120 6-190'/%3E%3Cpath transform='translate(2 -30) rotate(-38) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -30) rotate(218) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(-38) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(218) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(-38) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(218) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(-38) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(218) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(-38) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(218) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(6 -190) rotate(-90) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3C/g%3E%3Cg transform='translate(225 285) rotate(22) scale(0.75)'%3E%3Cpath d='M0 0C4-60 -4-120 6-190'/%3E%3Cpath transform='translate(2 -30) rotate(-38) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -30) rotate(218) scale(1)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(-38) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(0 -62) rotate(218) scale(0.9)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(-38) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(-1 -94) rotate(218) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(-38) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(2 -128) rotate(218) scale(0.7)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(-38) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(5 -160) rotate(218) scale(0.6)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3Cpath transform='translate(6 -190) rotate(-90) scale(0.8)' d='M0 0C10-14 28-14 38 0C28 14 10 14 0 0Z M0 0H38'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-shape-rangoli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' %3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'%3E%3Ccircle cx='232.0' cy='120.0' r='1.7' fill='black'/%3E%3Ccircle cx='230.3' cy='139.4' r='1.7' fill='black'/%3E%3Ccircle cx='225.2' cy='158.3' r='1.7' fill='black'/%3E%3Ccircle cx='217.0' cy='176.0' r='1.7' fill='black'/%3E%3Ccircle cx='205.8' cy='192.0' r='1.7' fill='black'/%3E%3Ccircle cx='192.0' cy='205.8' r='1.7' fill='black'/%3E%3Ccircle cx='176.0' cy='217.0' r='1.7' fill='black'/%3E%3Ccircle cx='158.3' cy='225.2' r='1.7' fill='black'/%3E%3Ccircle cx='139.4' cy='230.3' r='1.7' fill='black'/%3E%3Ccircle cx='120.0' cy='232.0' r='1.7' fill='black'/%3E%3Ccircle cx='100.6' cy='230.3' r='1.7' fill='black'/%3E%3Ccircle cx='81.7' cy='225.2' r='1.7' fill='black'/%3E%3Ccircle cx='64.0' cy='217.0' r='1.7' fill='black'/%3E%3Ccircle cx='48.0' cy='205.8' r='1.7' fill='black'/%3E%3Ccircle cx='34.2' cy='192.0' r='1.7' fill='black'/%3E%3Ccircle cx='23.0' cy='176.0' r='1.7' fill='black'/%3E%3Ccircle cx='14.8' cy='158.3' r='1.7' fill='black'/%3E%3Ccircle cx='9.7' cy='139.4' r='1.7' fill='black'/%3E%3Ccircle cx='8.0' cy='120.0' r='1.7' fill='black'/%3E%3Ccircle cx='9.7' cy='100.6' r='1.7' fill='black'/%3E%3Ccircle cx='14.8' cy='81.7' r='1.7' fill='black'/%3E%3Ccircle cx='23.0' cy='64.0' r='1.7' fill='black'/%3E%3Ccircle cx='34.2' cy='48.0' r='1.7' fill='black'/%3E%3Ccircle cx='48.0' cy='34.2' r='1.7' fill='black'/%3E%3Ccircle cx='64.0' cy='23.0' r='1.7' fill='black'/%3E%3Ccircle cx='81.7' cy='14.8' r='1.7' fill='black'/%3E%3Ccircle cx='100.6' cy='9.7' r='1.7' fill='black'/%3E%3Ccircle cx='120.0' cy='8.0' r='1.7' fill='black'/%3E%3Ccircle cx='139.4' cy='9.7' r='1.7' fill='black'/%3E%3Ccircle cx='158.3' cy='14.8' r='1.7' fill='black'/%3E%3Ccircle cx='176.0' cy='23.0' r='1.7' fill='black'/%3E%3Ccircle cx='192.0' cy='34.2' r='1.7' fill='black'/%3E%3Ccircle cx='205.8' cy='48.0' r='1.7' fill='black'/%3E%3Ccircle cx='217.0' cy='64.0' r='1.7' fill='black'/%3E%3Ccircle cx='225.2' cy='81.7' r='1.7' fill='black'/%3E%3Ccircle cx='230.3' cy='100.6' r='1.7' fill='black'/%3E%3Cpath transform='rotate(0 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(30 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(60 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(90 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(120 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(150 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(180 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(210 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(240 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(270 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(300 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(330 120 120)' d='M120 100C106 80 106 52 120 34C134 52 134 80 120 100Z'/%3E%3Cpath transform='rotate(15 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(45 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(75 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(105 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(135 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(165 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(195 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(225 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(255 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(285 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(315 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Cpath transform='rotate(345 120 120)' d='M120 92C112 78 112 66 120 56C128 66 128 78 120 92Z'/%3E%3Ccircle cx='201.1' cy='141.7' r='1.6' fill='black'/%3E%3Ccircle cx='179.4' cy='179.4' r='1.6' fill='black'/%3E%3Ccircle cx='141.7' cy='201.1' r='1.6' fill='black'/%3E%3Ccircle cx='98.3' cy='201.1' r='1.6' fill='black'/%3E%3Ccircle cx='60.6' cy='179.4' r='1.6' fill='black'/%3E%3Ccircle cx='38.9' cy='141.7' r='1.6' fill='black'/%3E%3Ccircle cx='38.9' cy='98.3' r='1.6' fill='black'/%3E%3Ccircle cx='60.6' cy='60.6' r='1.6' fill='black'/%3E%3Ccircle cx='98.3' cy='38.9' r='1.6' fill='black'/%3E%3Ccircle cx='141.7' cy='38.9' r='1.6' fill='black'/%3E%3Ccircle cx='179.4' cy='60.6' r='1.6' fill='black'/%3E%3Ccircle cx='201.1' cy='98.3' r='1.6' fill='black'/%3E%3Ccircle cx='120' cy='120' r='16'/%3E%3Ccircle cx='120' cy='120' r='6' fill='black'/%3E%3C/g%3E%3C/svg%3E");
    --bg-shape-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='1.3' fill='black'/%3E%3C/svg%3E");
    --bg-shape-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --bg-shape-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C140 6 300 8 450 30S760 58 910 34 1110 8 1200 26V60H0Z'/%3E%3C/svg%3E");
    --bg-shape-arch-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V50C250 50 380 3 600 3S950 50 1200 50V60Z'/%3E%3C/svg%3E");
    --bg-shape-arch-curve-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V50C950 50 820 3 600 3S250 50 0 50Z'/%3E%3C/svg%3E");
}

/* ---- base layer: positioning, stacking, safety ---- */
.section, .leadership-section { overflow-x: clip; }
.section > .container-xl, .leadership-section > .container-xl, .story-band > .container-xl, .site-footer > * { position: relative; z-index: 1; }
.bg-arch, .bg-diya, .bg-leaf, .bg-rangoli, .bg-motto, .bg-grain, .bg-dots, .bg-arch-pattern, .bg-moment,
.section--sand, .section--walnut { position: relative; }
.bg-arch::before, .bg-diya::before, .bg-leaf::before, .bg-rangoli::before, .bg-arch-pattern::before,
.bg-grain::after, .bg-dots::after, .section--sand::after, .section--walnut::after, .cta-band::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
}
/* mask-drawn layers: the SVG gives the shape, the token gives the colour */
.bg-arch::before, .bg-leaf::before, .bg-rangoli::before, .bg-arch-pattern::before, .bg-dots::after,
.bg-grain::after, .section--sand::after, .section--walnut::after, .cta-band::before {
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
/* corner modifiers: mirror a motif to the other side / hang it from the top */
.bg-left { --bg-fx: -1; }
.bg-top { --bg-fy: -1; }

/* ---- .bg-arch — nested arched doorways standing on the section floor (logo lamp niche) ---- */
.bg-arch::before {
    width: clamp(9rem, 20vw, 17rem); aspect-ratio: 4 / 5; right: var(--bg-edge); bottom: 0;
    background: var(--bg-motif-line); opacity: var(--bg-line-alpha);
    -webkit-mask-image: var(--bg-shape-arch); mask-image: var(--bg-shape-arch);
    transform: scaleX(var(--bg-fx, 1));
}

/* ---- .bg-diya — soft lamp-gold glow behind a heading or key card ---- */
.bg-diya::before {
    left: 50%; top: calc(var(--section-space) * .35); width: min(54rem, 100%); height: clamp(15rem, 30vw, 23rem);
    transform: translateX(-50%); opacity: var(--bg-glow-alpha);
    background: radial-gradient(closest-side, var(--bg-glow-gold), transparent);
}

/* ---- .bg-leaf — a cluster of leaf sprigs for garden, food and campus sections ---- */
.bg-leaf::before {
    width: var(--bg-size, clamp(11rem, 26vw, 22rem)); aspect-ratio: 1; right: var(--bg-edge); bottom: 0;
    background: var(--bg-leaf-line); opacity: var(--bg-leaf-alpha);
    -webkit-mask-image: var(--bg-shape-leaf); mask-image: var(--bg-shape-leaf);
    transform: scale(var(--bg-fx, 1), var(--bg-fy, 1));
}

/* ---- .bg-rangoli — faint dot-and-petal mandala, half tucked off the corner ---- */
.bg-rangoli::before {
    width: clamp(14rem, 32vw, 27rem); aspect-ratio: 1; right: calc(var(--bg-edge) - 6rem); top: -3rem;
    background: var(--bg-motif-line); opacity: var(--bg-line-alpha);
    -webkit-mask-image: var(--bg-shape-rangoli); mask-image: var(--bg-shape-rangoli);
    transform: scaleX(var(--bg-fx, 1));
}

/* corner modifiers (placed after the motifs so they win): .bg-left moves a motif to the left edge, .bg-top hangs it from the top */
.bg-left::before { right: auto; left: var(--bg-edge); }
.bg-top::before { bottom: auto; top: 0; }

/* ---- .bg-grain — very subtle paper texture (feTurbulence). Automatic on every cream band. ---- */
.bg-grain::after, .section--sand::after, .section--walnut::after {
    inset: 0; background: var(--bg-grain-ink); opacity: var(--bg-grain-alpha);
    -webkit-mask-image: var(--bg-shape-grain); mask-image: var(--bg-shape-grain);
    -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: 220px 220px; mask-size: 220px 220px;
}
.bg-grain:not(.section--sand):not(.section--walnut)::after { opacity: calc(var(--bg-grain-alpha) * .6); } /* even lighter on white */

/* ---- .bg-dots — soft map-style dotted texture fading in from the right (texture layer, like grain) ---- */
.bg-dots::after {
    top: 0; right: 0; bottom: 0; width: 55%; background: var(--bg-motif-line); opacity: var(--bg-line-alpha);
    -webkit-mask-image: var(--bg-shape-dots), linear-gradient(90deg, transparent, black 70%);
    mask-image: var(--bg-shape-dots), linear-gradient(90deg, transparent, black 70%);
    -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
    -webkit-mask-size: 22px 22px, 100% 100%; mask-size: 22px 22px, 100% 100%;
    -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ---- .bg-motto — huge Playfair motto, decoration only (use once per page; the element is aria-hidden) ----
   <section class="… bg-motto"><span class="bg-motto__text" aria-hidden="true">Seva · Prem · Samman · Sahara</span> … */
.bg-motto__text {
    position: absolute; z-index: 0; inset: 0; display: flex; align-items: center; justify-content: center; padding-inline: 1rem;
    font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.75rem, 9.5vw, 8.5rem); line-height: 1.15; letter-spacing: .02em;
    text-align: center; color: var(--brand-primary-dark); opacity: var(--bg-motto-alpha); pointer-events: none; user-select: none;
}
.story-band .bg-motto__text { color: var(--brand-primary-light); }

/* ---- .bg-moment — a warmer, richer cream "moment" band (eases in from the cream band above it) ---- */
.bg-moment { background: linear-gradient(180deg, var(--brand-soft) 0, var(--bg-warm) 38%, var(--bg-warm) 100%); }

/* ---- .bg-arch-pattern — deep-brown surfaces: a quiet row-on-row of arches in lamp gold (footer) ---- */
.bg-arch-pattern { overflow-x: clip; }
.bg-arch-pattern::before {
    inset: 0; background: var(--bg-motif-line-dark); opacity: .09;
    -webkit-mask-image: var(--bg-shape-arch-row); mask-image: var(--bg-shape-arch-row);
    -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: 96px 64px; mask-size: 96px 64px; -webkit-mask-position: left top; mask-position: left top;
}
.site-footer.bg-grain::after { background: var(--white); opacity: .04; } /* grain on dark is light-on-dark */
.site-footer { border-top: 4px solid var(--primary-color); }

/* ---- dividers — a soft wave or arch-curve edge. Fill must equal the NEIGHBOURING section's background.
   <div class="bg-divider divider-wave-bottom divider--sand" aria-hidden="true"></div> placed inside the section whose edge it softens. ---- */
.bg-divider {
    position: absolute; z-index: 1; left: 0; right: 0; height: clamp(1.5rem, 4vw, 3.25rem); pointer-events: none;
    background: var(--div-fill, var(--white));
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 0; mask-position: 0 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.divider-wave-bottom, .divider-wave-top { -webkit-mask-image: var(--bg-shape-wave); mask-image: var(--bg-shape-wave); }
.divider-arch-bottom { -webkit-mask-image: var(--bg-shape-arch-curve); mask-image: var(--bg-shape-arch-curve); }           /* next section rises as a dome */
.divider-arch-top { -webkit-mask-image: var(--bg-shape-arch-curve-top); mask-image: var(--bg-shape-arch-curve-top); }       /* this section rises as a dome */
.divider-wave-bottom, .divider-arch-bottom { bottom: -1px; }
.divider-wave-top, .divider-arch-top { top: -1px; }
.divider-wave-top { transform: scaleY(-1); }
.divider--white { --div-fill: var(--white); }
.divider--sand { --div-fill: var(--brand-soft); }
.divider--warm { --div-fill: var(--bg-warm); }

/* ---- page / section mapping ---- */
/* white sections stay plain white; the old gradient wash and the "walnut" sky tint are gone */
.section--sand { background: var(--brand-soft); }
.section--walnut { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--primary-soft) 100%); }
.card, .form-panel, .contact-card { border-color: var(--border-light); }

/* leadership: brand re-theme (cream band, bronze accents, gold photo ring) */
.leadership-section { background: linear-gradient(180deg, var(--white) 0, var(--brand-soft) 14%, var(--brand-soft) 86%, var(--white) 100%); }

/* shared warm brown-gold call-to-action: gold light from the top-right corner plus a nested gold doorway */
.cta-band {
    background:
        radial-gradient(ellipse 55% 95% at 90% 0%, color-mix(in srgb, var(--brand-primary-light) 26%, transparent), transparent 70%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band::before {
    right: 2rem; bottom: -1px; width: 9rem; aspect-ratio: 4 / 5; background: var(--bg-motif-line-dark); opacity: .25;
    -webkit-mask-image: var(--bg-shape-arch); mask-image: var(--bg-shape-arch);
}

/* ---- .bg-warm-band — the one standout "moment" per page: richer cream, paper grain, optional arch-curve edge.
   Same gradient as .bg-moment (kept as an alias). The top edge is an aria-hidden divider element:
   <div class="bg-divider divider-arch-top divider--white" aria-hidden="true"></div> as the section's first child. ---- */
.bg-warm-band { position: relative; background: linear-gradient(180deg, var(--brand-soft) 0, var(--bg-warm) 38%, var(--bg-warm) 100%); }
.bg-warm-band::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
    background: var(--bg-grain-ink); opacity: var(--bg-grain-alpha);
    -webkit-mask-image: var(--bg-shape-grain); mask-image: var(--bg-shape-grain);
    -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: 220px 220px; mask-size: 220px 220px;
}
.bg-warm-band > .bg-divider.divider-arch-top + .container-xl { padding-top: clamp(.5rem, 2vw, 1.5rem); } /* breathing room under the dome */

/* small corner arch (gallery): same doorway, smaller and quieter */
.bg-arch--sm::before { width: clamp(5rem, 11vw, 9rem); }
.bg-arch--sm.bg-top::before { transform: scale(var(--bg-fx, 1), -1); }

/* ---- .bg-cta — shared closing moment for every .section--flush-top call to action.
   <section class="section section--flush-top bg-cta"> + the existing .cta-band panel (deep brown → bronze).
   The section adds a soft lamp-gold halo behind the panel; the panel gets a second, mirrored doorway outline. ---- */
.bg-cta { position: relative; }
.bg-cta::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none; left: 50%; bottom: 0; width: min(70rem, 100%); height: 85%;
    transform: translateX(-50%); opacity: .2;
    background: radial-gradient(closest-side, var(--bg-glow-gold), transparent);
}
.bg-cta .cta-band {
    background:
        radial-gradient(ellipse 50% 80% at 88% 0%, color-mix(in srgb, var(--brand-primary-light) 30%, transparent), transparent 70%),
        radial-gradient(ellipse 35% 70% at 6% 100%, color-mix(in srgb, var(--brand-primary-light) 14%, transparent), transparent 70%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
.bg-cta .cta-band::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; left: 2rem; bottom: -1px; width: 6.5rem; aspect-ratio: 4 / 5;
    background: var(--bg-motif-line-dark); opacity: .16;
    -webkit-mask: var(--bg-shape-arch) center / contain no-repeat; mask: var(--bg-shape-arch) center / contain no-repeat;
}

/* Text-only calls to action (no .cta-band markup): the same brown panel is built from the existing block.
   .bg-cta--inner  → the centred column / .empty-state becomes the panel (activities, stories)
   .bg-cta--panel  → the container becomes a compact full-width panel (contact "Speak to someone", donate "Not ready to donate?") */
.bg-cta--inner > .container-xl > .row > .col-lg-9, .bg-cta--inner .empty-state, .bg-cta--panel > .container-xl {
    position: relative; overflow: hidden; color: #fff; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    background:
        radial-gradient(ellipse 50% 80% at 88% 0%, color-mix(in srgb, var(--brand-primary-light) 30%, transparent), transparent 70%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
.bg-cta--inner > .container-xl > .row > .col-lg-9 { padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem); margin-inline: auto; }
.bg-cta--inner .empty-state { padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem); }
.bg-cta--inner > .container-xl { padding-inline: .75rem; }
.bg-cta--inner > .container-xl > .row { margin-inline: 0; }
.bg-cta--inner > .container-xl > .row > .col-lg-9::after, .bg-cta--inner .empty-state::after, .bg-cta--panel > .container-xl::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; right: 2rem; bottom: -1px; width: 6.5rem; aspect-ratio: 4 / 5;
    background: var(--bg-motif-line-dark); opacity: .2;
    -webkit-mask: var(--bg-shape-arch) center / contain no-repeat; mask: var(--bg-shape-arch) center / contain no-repeat;
}
.bg-cta--inner h2, .bg-cta--inner .h3, .bg-cta--inner .lead, .bg-cta--inner p,
.bg-cta--panel > .container-xl > h2, .bg-cta--panel > .container-xl > p, .bg-cta--panel .section-head h2, .bg-cta--panel .section-head .lead { color: #fff; }
.bg-cta--inner .eyebrow, .bg-cta--panel .eyebrow { color: var(--gold-color); }
.bg-cta--inner .eyebrow::before, .bg-cta--panel .eyebrow::before { background: var(--gold-color); }
.bg-cta--inner p a, .bg-cta--panel > .container-xl > p a { color: var(--gold-color); text-decoration: underline; text-underline-offset: .2em; }
.bg-cta--inner .icon-arch { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: var(--gold-color); }
.bg-cta--inner > .container-xl > .row > .col-lg-9 > *, .bg-cta--inner .empty-state > *, .bg-cta--panel > .container-xl > * { position: relative; z-index: 1; }
/* compact panel sits on a cream band so it never melts into the hero above or the next white section */
.bg-cta--panel { background: var(--brand-soft); padding-inline: .75rem; padding-block: clamp(2rem, 4vw, 3rem) var(--section-space); }
.bg-cta--panel > .container-xl { padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem); }
.bg-cta--panel .section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.bg-cta--panel .section-head--center .eyebrow { justify-content: center; }
.bg-cta--panel .reveal { position: relative; z-index: 1; }
.bg-cta--panel::before { display: none; }

/* ---- .page-hero--plain — pages with no photo hero (FAQ, privacy, terms): the brown gradient plus a gold glow on the right,
   paper grain (::before) and the hero's own doorway outline (::after, from section 07). ---- */
.page-hero.page-hero--plain {
    background:
        radial-gradient(ellipse 42% 95% at 92% 40%, color-mix(in srgb, var(--brand-primary-light) 30%, transparent), transparent 72%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}
.page-hero--plain::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0; background: var(--white); opacity: .06;
    -webkit-mask-image: var(--bg-shape-grain); mask-image: var(--bg-shape-grain);
    -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-size: 220px 220px; mask-size: 220px 220px;
}

/* ---- tinted chapters: cards (or groups) inside one long section alternate white / cream so it reads as chapters ---- */
.bg-tint-alt .row > [class*="col-"]:nth-child(even) > .card { --bs-card-bg: var(--brand-soft); }

/* FAQ: each group is a panel (alternating cream / white) with a small doorway marker beside its heading */
.bg-faq .col-lg-9 > .mb-5 { padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: var(--radius-lg); margin-bottom: 1.5rem !important; }
.bg-faq .col-lg-9 > .mb-5:nth-child(odd) { background: var(--brand-soft); border: 1px solid var(--border-light); }
.bg-faq .col-lg-9 > .mb-5 > h2 { display: flex; align-items: center; gap: .75rem; }
.bg-faq .col-lg-9 > .mb-5 > h2::before {
    content: ""; flex: none; width: 1.2rem; height: 1.7rem; border: 2px solid var(--primary-color); border-bottom: 0; border-radius: 1.2rem 1.2rem 0 0;
    background: color-mix(in srgb, var(--brand-primary-light) 28%, transparent);
}

/* Contact map: white band with a faint dotted map-grid; the map sits in a cream frame */
.bg-map { background: radial-gradient(color-mix(in srgb, var(--brand-primary) 22%, transparent) 1.2px, transparent 1.5px) 0 0 / 24px 24px, var(--white); }
.bg-map .map-embed { padding: clamp(.5rem, 1.5vw, .9rem); background: var(--brand-soft); border-color: var(--border-light); }
.bg-map .map-embed iframe { border-radius: calc(var(--radius-lg) - .5rem); }

/* ---- responsive: shrink or hide the large motifs on phones ---- */
@media (max-width: 575.98px) {
    :root { --bg-edge: .25rem; }
    .bg-arch::before { width: 7.5rem; }
    .bg-leaf::before { --bg-size: 8.5rem; }
    .bg-rangoli::before { width: 11rem; right: -4rem; top: -2rem; }
    .bg-diya::before { height: 13rem; }
    .bg-dots::after { display: none; }
    .bg-motto__text { font-size: clamp(2rem, 11vw, 3rem); }
    .cta-band::before { width: 6rem; right: 1rem; }
    .bg-cta .cta-band::after, .bg-cta--inner .col-lg-9::after, .bg-cta--inner .empty-state::after, .bg-cta--panel > .container-xl::after { display: none; }
    .bg-arch--sm::before { width: 4rem; }
    .bg-map { background-size: 20px 20px, auto; }
}

/* ---- motion: the diya breathes very slowly, only for people who have not asked for less motion ---- */
@keyframes bgDiyaGlow { 0%, 100% { opacity: calc(var(--bg-glow-alpha) * .8); } 50% { opacity: var(--bg-glow-alpha); } }
@media (prefers-reduced-motion: no-preference) {
    .bg-diya::before { animation: bgDiyaGlow 6s ease-in-out infinite; }
}

/* ---- print: no decoration ---- */
@media print {
    .bg-arch::before, .bg-diya::before, .bg-leaf::before, .bg-rangoli::before, .bg-arch-pattern::before,
    .bg-grain::after, .bg-dots::after, .section--sand::after, .section--walnut::after, .cta-band::before, .cta-band::after,
    .bg-warm-band::after, .bg-cta::before, .page-hero--plain::before, .bg-faq .mb-5 > h2::before,
    .bg-divider, .bg-motto__text { display: none !important; }
    .bg-moment, .bg-warm-band, .bg-map, .bg-cta--panel, .section--sand, .section--walnut, .leadership-section { background: var(--white) !important; }
    .bg-cta--inner .col-lg-9, .bg-cta--inner .empty-state, .bg-cta--panel > .container-xl { background: none !important; box-shadow: none !important; color: var(--text-color) !important; }
    .bg-cta--inner h2, .bg-cta--inner p, .bg-cta--inner .lead, .bg-cta--panel h2, .bg-cta--panel p, .bg-cta--panel .lead { color: var(--text-color) !important; }
    .bg-cta--inner .col-lg-9::after, .bg-cta--inner .empty-state::after, .bg-cta--panel > .container-xl::after { display: none !important; }
    .page-hero.page-hero--plain { background: var(--white) !important; color: var(--text-color); }
}

/* 21 — TEXT SIZE (user control) & UTILITIES -------------------------------- */
html.text-size-lg { font-size: 112.5%; }
html.text-size-xl { font-size: 125%; }
.gap-y-section { row-gap: clamp(2rem, 4vw, 3rem); }
.bg-sand { background: var(--sand-color); }
.divider-arch { width: 3rem; height: 1.5rem; border: 2px solid var(--primary-color); border-bottom: 0; border-radius: 3rem 3rem 0 0; margin: 0 auto 1.25rem; }
.img-fluid { max-width: 100%; height: auto; }
.print-only { display: none; }
@media print {
    .top-bar, .site-header, .fab-stack, .back-to-top, .site-footer .footer-cta, .cta-band { display: none !important; }
    body { background: #fff; font-size: 12pt; }
}


/* ==========================================================================
   22 — TASK 2: REAL MEDIA, VIDEO, CONTACT
   ========================================================================== */

/* Top bar phones + mobile header call button */
.top-bar__phone b { font-weight: 600; color: var(--primary-dark); }
.top-bar__phone .who { opacity: .8; }
@media (max-width: 1199.98px) { .top-bar__phone .who { display: none; } }
.header-call {
    display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; flex: none;
    background: var(--primary-color); color: #fff; font-size: 1.2rem; text-decoration: none; margin-left: auto; margin-right: .5rem;
}
.header-call:hover { background: var(--primary-dark); color: #fff; }

/* Mobile action bar (Call · Call · Donate); WhatsApp deliberately absent until confirmed */
.action-bar { display: none; }
@media (max-width: 991.98px) {
    .action-bar {
        display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 1040;
        background: var(--primary-dark); padding-bottom: env(safe-area-inset-bottom);
    }
    .action-bar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3.6rem; padding: .35rem .25rem;
        color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; line-height: 1.2; text-align: center;
    }
    .action-bar a i { font-size: 1.25rem; line-height: 1; color: var(--gold-color); }
    .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .18); }
    .action-bar a.is-donate { background: var(--primary-color); }
    .action-bar a.is-donate i { color: #fff; }
    .action-bar a:active { background: var(--primary-color); }
    .fab-stack { display: none; }
    body { padding-bottom: 3.9rem; }
    .back-to-top { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}

/* Phone links & contact cards */
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.phone-list li { display: flex; flex-wrap: wrap; gap: .1rem .75rem; align-items: baseline; }
.phone-list .who { color: var(--muted-color); font-size: .95rem; }
.phone-list a { font-weight: 600; white-space: nowrap; }
.footer-contact .phone-list .who { color: rgba(255, 255, 255, .75); }
.footer-contact .phone-list a { color: #fff; }
.contact-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 56rem; margin-inline: auto; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
    background: var(--white-color); border: 1px solid var(--line-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.contact-card .icon-arch { margin-bottom: .6rem; }
.contact-card h3 { margin: 0; font-size: 1.4rem; }
.contact-card__num { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 600; color: var(--primary-color); text-decoration: none; letter-spacing: .01em; }
.contact-card__num:hover { color: var(--primary-color); }
.contact-card .btn { margin-top: .9rem; }
.help-box { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--primary-soft); border-radius: var(--radius-sm); border-left: 4px solid var(--primary-color); }
.help-box h3 { font-size: 1.1rem; margin: 0 0 .5rem; }

/* HERO — full-width real video behind the content.
   Stability: the section reserves its height up front (clamp), the poster <img> and the <video> are
   absolutely positioned inside it, and the video only fades in (opacity) once it is playing — so
   nothing about the hero's box ever depends on the media loading. */
.hero { position: relative; isolation: isolate; width: 100%; min-height: clamp(650px, 88vh, 900px); display: flex; align-items: center; overflow: hidden; background: #2E1A0A; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-video { opacity: 0; transition: opacity .8s ease; background: transparent; }
.hero.is-playing .hero-video, .hero.is-paused .hero-video { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(30, 14, 4, .7) 0%, rgba(30, 14, 4, .42) 55%, rgba(30, 14, 4, .18) 100%),
        linear-gradient(0deg, rgba(30, 14, 4, .45) 0%, rgba(30, 14, 4, 0) 45%);
}
.hero-content { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem); }
.hero-content__inner { max-width: 42rem; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem); line-height: 1.1; margin: .2rem 0 1rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-lead { font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .95); margin-bottom: 1.75rem; max-width: 34rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-actions .btn { min-height: 3.2rem; }
.hero-toggle {
    position: absolute; right: max(1rem, env(safe-area-inset-right)); top: 1rem; z-index: 3; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(30, 14, 4, .45); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem;
}
.hero.is-playing .hero-toggle, .hero.is-paused .hero-toggle { display: inline-flex; }
.hero-toggle:hover { background: rgba(30, 14, 4, .75); }
@media (max-width: 767.98px) {
    .hero-overlay { background: linear-gradient(0deg, rgba(30, 14, 4, .66) 0%, rgba(30, 14, 4, .34) 55%, rgba(30, 14, 4, .22) 100%); }
    .hero { align-items: flex-end; }
    .hero h1 { font-size: clamp(2.05rem, 8.6vw, 2.7rem); margin-bottom: .6rem; }
    .hero-lead { margin-bottom: 1.25rem; }
    .hero-actions { gap: .6rem; }
    .hero-actions .btn { flex: 1 1 calc(50% - .3rem); --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .6rem; min-height: 3rem; }
    .hero-actions .btn:nth-child(3) { flex-basis: 100%; min-height: 2.75rem; }
    .hero-actions .btn { white-space: nowrap; }
}
@media (max-width: 399.98px) { .hero-actions .btn { --bs-btn-padding-x: .6rem; --bs-btn-font-size: .95rem; } }

/* Click-to-play video tiles */
.vtile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #24150A; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; color: #fff; text-align: left; box-shadow: var(--shadow-sm); isolation: isolate; }
.vtile img, .vtile video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .6s ease; }
.vtile video { background: #000; }
.vtile:hover img { transform: scale(1.04); }
.vtile--wide img, .vtile--wide video { aspect-ratio: 16 / 9; }
@media (min-width: 480px) { .vtile--wide { grid-column: span 2; } }
.vtile-wrap { max-width: 22rem; margin-inline: auto; }
.vtile__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4rem; height: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .94); color: var(--primary-color); font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .25s ease, background .25s ease;
}
.vtile__play i { margin-left: .2rem; }
.vtile:hover .vtile__play, .vtile:focus-visible .vtile__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.vtile__cap { position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem .95rem; background: linear-gradient(to top, rgba(30, 14, 4, .92), rgba(30, 14, 4, 0)); pointer-events: none; }
.vtile__cap .t { display: block; color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.25; margin: 0 0 .1rem; }
.vtile__cap .d { display: block; font-size: .88rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.vtile.is-playing { cursor: default; }
.vtile.is-playing .vtile__cap { display: none; }

/* Photo pair (care) */
.pair { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 52rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
@media (min-width: 576px) { .pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.pair .photo-card img { aspect-ratio: 4 / 5; }
/* Editorial gallery */
.gallery-editorial { display: grid; gap: .85rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; grid-auto-flow: dense; }
@media (min-width: 768px) { .gallery-editorial { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 13rem; gap: 1rem; } }
@media (min-width: 1200px) { .gallery-editorial { grid-auto-rows: 15rem; } }
.gallery-editorial .gallery-item { margin: 0; min-height: 0; position: relative; }
.gallery-editorial .gallery-item button { width: 100%; height: 100%; display: block; position: relative; }
.gallery-editorial .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gi--tall { grid-row: span 2; }
.gi--wide { grid-column: span 2; }
.gi--feature { grid-column: span 2; grid-row: span 2; }
.gi__cap { position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .7rem; color: #fff; font-size: .9rem; font-weight: 500; text-align: left; background: linear-gradient(to top, rgba(30, 14, 4, .82), rgba(30, 14, 4, 0)); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.gallery-item button:hover .gi__cap, .gallery-item button:focus-visible .gi__cap { opacity: 1; }
@media (hover: none) { .gi__cap { opacity: 1; } }
.vgroup { margin-top: clamp(2rem, 4vw, 3rem); }
.vgroup h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.vgrid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 479.98px) { .vgrid { grid-template-columns: 1fr; } }

/* Lightbox additions */
.lightbox__counter { position: absolute; left: 1.25rem; top: .85rem; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); letter-spacing: .04em; }
.lightbox img { transition: opacity .25s ease; touch-action: pan-y; }
.lightbox img.is-swapping { opacity: 0; }

/* Photo-less activity card header (no real photograph exists yet) */
.activity-card__media--icon { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sand-color), #F1E2C4); }
.activity-card__media--icon > i.big { font-size: 3.4rem; color: var(--primary-color); opacity: .55; }

/* Gentle image fade-in once loaded */
.js img.fade-in { opacity: 0; transition: opacity .7s ease; }
.js img.fade-in.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vtile img, .hero-video, .hvid img, .vcard img, .gcard img { transition: none !important; } .js img.fade-in { opacity: 1; } }
@media print { .action-bar, .hero-toggle { display: none !important; } }

@media (max-width: 479.98px) {
    .header-inner { gap: .5rem; }
    .header-call { margin-right: 0; }
    .navbar-toggler { padding: .5rem; min-width: 3rem; justify-content: center; }
    .navbar-toggler span { display: none; }
}

/* ==========================================================================
   23 — WHO WE ARE (editorial image), ROUTINE NOTE, REMAINING POLISH
   ========================================================================== */
.who-figure { margin: 0; max-width: 33rem; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--primary-soft); }
.who-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1055; object-fit: cover; }
.routine-note { font-size: .98rem; color: var(--muted-color); }
.photo-card { background: var(--primary-light); }
.map-embed { background: var(--primary-light); }
.vtile__play { color: var(--primary-color); }
.text-primary-emphasis { color: var(--primary-color) !important; }
.cta-band .btn-donate { --bs-btn-color: var(--primary-dark); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-color: var(--primary-dark); --bs-btn-hover-bg: var(--primary-light); --bs-btn-hover-border-color: var(--primary-light); }


/* ==========================================================================
   24 — HOMEPAGE: OUR HOME VIDEOS, VIDEO + GALLERY CAROUSELS
   ========================================================================== */

/* Play badge shared by video cards */
.vplay {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 3.6rem; height: 3.6rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); color: var(--brand-primary); font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(30, 14, 4, .32); transition: transform .3s ease;
}
.vplay i { margin-left: .18rem; }

/* Our Home: one large feature video + four supporting real videos */
.homevids { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hvid { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #24150A; cursor: pointer; color: #fff; text-align: left; box-shadow: var(--shadow-sm); isolation: isolate; }
.hvid__media { display: block; position: absolute; inset: 0; }
.hvid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hvid:hover img, .hvid:focus-visible img { transform: scale(1.04); }
.hvid:hover .vplay, .hvid:focus-visible .vplay { transform: translate(-50%, -50%) scale(1.07); }
.hvid__cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .85rem; font-weight: 600; font-size: 1rem; line-height: 1.3; background: linear-gradient(to top, rgba(30, 14, 4, .85), rgba(30, 14, 4, 0)); }
.hvid--feature { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.hvid--feature .vplay { width: 4.6rem; height: 4.6rem; font-size: 2rem; }
.hvid--feature .hvid__cap { font-family: var(--font-heading); font-size: 1.35rem; padding: 3.5rem 1.25rem 1.1rem; }
.hvid--sm { aspect-ratio: 1; }
.hvid--sm .vplay { width: 3rem; height: 3rem; font-size: 1.3rem; }
@media (min-width: 768px) {
    .homevids { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, clamp(12rem, 19vw, 19rem)); gap: 1.25rem; }
    .hvid--feature { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
    .hvid--sm { aspect-ratio: auto; }
}

/* Carousel (videos, gallery): native scroll-snap track + Previous / Next buttons.
   Cards per view: mobile 1 (next card peeks), 576 → 2, 900 → 3, 1200 → 4. Only .carousel__track scrolls sideways. */
.carousel { --per: 1.18; --gap: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "track track track" "prev dots next"; gap: 1.1rem .75rem; align-items: center; }
@media (min-width: 576px) { .carousel { --per: 2; } }
@media (min-width: 900px) { .carousel { --per: 3; --gap: 1.25rem; } }
@media (min-width: 1200px) { .carousel { --per: 4; } }
@media (min-width: 992px) {
    .carousel { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev track next" ". dots ."; gap: 1.25rem 1rem; }
}
.carousel__track {
    grid-area: track; list-style: none; margin: 0; padding: .35rem .15rem 1.1rem; display: flex; gap: var(--gap);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: .15rem; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.carousel__btn {
    width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 2px solid var(--brand-primary); background: #fff; color: var(--brand-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; padding: 0; flex: none;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.carousel__btn--prev { grid-area: prev; justify-self: end; }
.carousel__btn--next { grid-area: next; justify-self: start; }
.carousel__btn:hover:not(:disabled) { background: var(--brand-primary); color: #fff; }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__dots { grid-area: dots; display: flex; justify-content: center; align-items: center; }
.carousel__dots[hidden] { display: none; }
.carousel__count { font-size: .95rem; font-weight: 600; letter-spacing: .06em; color: var(--brand-primary); min-width: 3.5rem; text-align: center; }
.carousel__dots button { width: 1.9rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel__dots button::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--border-light); border: 1.5px solid var(--brand-primary); transition: background-color .2s ease, transform .2s ease; }
.carousel__dots button[aria-current="true"]::before { background: var(--brand-primary); transform: scale(1.2); }
@media (min-width: 992px) { .carousel__btn--prev, .carousel__btn--next { align-self: center; margin-bottom: 1.1rem; } }

/* Video card: real poster, play button, title, one line of description */
.vcard { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; overflow: hidden; cursor: pointer; text-align: left; color: var(--text-dark); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, border-color .3s ease; }
.vcard:hover { box-shadow: var(--shadow-md); border-color: rgba(122, 69, 8, .35); }
.vcard__media, .gcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #24150A; flex: none; }
.vcard__media img, .gcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.vcard:hover img, .vcard:focus-visible img, .gcard:hover img, .gcard:focus-visible img { transform: scale(1.035); }
.vcard:hover .vplay, .vcard:focus-visible .vplay { transform: translate(-50%, -50%) scale(1.07); }
.vcard__text, .gcard__cap { display: block; padding: .9rem 1.05rem 1.05rem; }
.vcard__text .t { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--text-dark); }
.vcard__text .d { display: block; margin-top: .2rem; font-size: .9rem; line-height: 1.45; color: var(--text-muted); min-height: 2.9em; }

/* Gallery card */
.gcard { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; overflow: hidden; cursor: zoom-in; text-align: left; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, border-color .3s ease; }
.gcard:hover { box-shadow: var(--shadow-md); border-color: rgba(122, 69, 8, .35); }
.gcard__cap { font-size: .95rem; font-weight: 500; color: var(--text-dark); }
.gcard__zoom { position: absolute; right: .7rem; top: .7rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-size: .95rem; opacity: 0; transition: opacity .25s ease; }
.gcard:hover .gcard__zoom, .gcard:focus-visible .gcard__zoom { opacity: 1; }
@media (hover: none) { .gcard__zoom { opacity: 1; } }

/* Video modal */
.lightbox--video .modal-dialog { max-width: min(26rem, 94vw); }
.lightbox--video .modal-header { justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1rem .25rem 1.25rem; }
.lightbox--video .modal-title { font-size: 1.15rem; margin: 0; color: #fff; font-family: var(--font-heading); }
.lightbox--video video { display: block; width: 100%; max-height: 78vh; border-radius: var(--radius-sm); background: #000; }


/* ==========================================================================
   25 — HOMEPAGE: WHAT WE DO, COMFORT, AMENITIES, MEALS, EVENTS
   ========================================================================== */

/* What We Do: image/content stage + topic list (tabs). Desktop 58 / 42; below 992px the stage sits above a row of topic chips. */
.wwd { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .wwd { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 1.75rem; } }
.wwd__stage { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #24150A; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); isolation: isolate; }
@media (min-width: 576px) { .wwd__stage { aspect-ratio: 16 / 11; } }
@media (min-width: 992px) { .wwd__stage { aspect-ratio: auto; min-height: 34rem; } }
.wwd__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wwd__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 14, 4, .88) 0%, rgba(30, 14, 4, .5) 32%, rgba(30, 14, 4, 0) 62%); pointer-events: none; }
.wwd__cap { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 1.25rem 1.25rem 1.4rem; color: #fff; }
@media (min-width: 768px) { .wwd__cap { padding: 1.75rem 2rem 2rem; max-width: 36rem; } }
.wwd__cap h3 { color: #fff; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin: 0 0 .4rem; }
.wwd__cap p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .94); }
.wwd__more { color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1.5px solid var(--brand-primary-light); padding-bottom: 1px; }
.wwd__more:hover { color: var(--brand-primary-light); }
.js .wwd__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.js .wwd__slide img { transform: scale(1.05); transition: transform .9s ease; }
.js .wwd__slide .wwd__cap { transform: translateY(10px); transition: transform .5s ease; }
.js .wwd__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.js .wwd__slide.is-active img { transform: none; }
.js .wwd__slide.is-active .wwd__cap { transform: none; }
html:not(.js) .wwd__slide { position: relative; aspect-ratio: 16 / 11; margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius-md); }
html:not(.js) .wwd__stage { aspect-ratio: auto; min-height: 0; background: none; box-shadow: none; }
html:not(.js) .wwd__list { display: none; }

.wwd__list { position: relative; display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(122, 69, 8, .35) transparent; padding: .2rem .15rem .6rem; margin: 0 -.15rem; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.wwd__tab {
    flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; scroll-snap-align: center; text-align: left; cursor: pointer;
    padding: .55rem 1.05rem .55rem .6rem; min-height: 3.4rem; border: 1px solid var(--border-light); border-radius: 999px; background: #fff; color: var(--text-dark);
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.25; transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.wwd__ico { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--text-muted); font-size: 1.1rem; transition: background-color .3s ease, color .3s ease; }
.wwd__name { display: block; }
.wwd__sub { display: none; font-weight: 400; font-size: .88rem; color: var(--text-muted); margin-top: .1rem; }
.wwd__tab:hover { border-color: rgba(122, 69, 8, .45); }
.wwd__tab:hover .wwd__ico { color: var(--brand-primary); }
.wwd__tab[aria-selected="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; box-shadow: 0 10px 24px -12px rgba(74, 28, 0, .55); }
.wwd__tab[aria-selected="true"] .wwd__ico { background: rgba(255, 255, 255, .2); color: #fff; }
.wwd__tab[aria-selected="true"] .wwd__sub { color: rgba(255, 255, 255, .9); }
.wwd__tab:focus-visible, .meal__tab:focus-visible { outline: 3px solid var(--brand-primary-light); outline-offset: 2px; box-shadow: 0 0 0 5px var(--brand-primary-dark); }
@media (min-width: 576px) and (max-width: 991.98px) { .wwd__list { flex-wrap: wrap; justify-content: center; overflow: visible; } }
@media (min-width: 992px) {
    .wwd__list { flex-direction: column; justify-content: space-between; overflow: visible; gap: .7rem; padding: 0; margin: 0; }
    .wwd__tab { flex: 1 1 0; border-radius: var(--radius-md); padding: .7rem 1.1rem .7rem .8rem; gap: .95rem; font-size: 1.05rem; }
    .wwd__ico { width: 2.9rem; height: 2.9rem; font-size: 1.3rem; }
    .wwd__sub { display: block; }
}

/* Comfort Is Priority: image cards inside the shared carousel */
.ccard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.ccard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #24150A; flex: none; }
.ccard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccard__text { padding: .95rem 1.05rem 1.15rem; }
.ccard .t { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin: 0 0 .25rem; color: var(--text-dark); }
.ccard .d { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text-muted); }

/* Amenities: compact icon tiles */
.amen-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .amen-grid { gap: 1rem; } }
@media (min-width: 992px) { .amen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.amen { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.15rem .8rem 1.1rem; text-align: center; transition: border-color .3s ease; }
.amen:hover { border-color: rgba(122, 69, 8, .4); }
.amen__ico { display: inline-flex; width: 3rem; height: 3rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-primary); font-size: 1.3rem; margin-bottom: .6rem; }
.amen h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.3; margin: 0 0 .15rem; color: var(--text-dark); }
.amen p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--text-muted); }

/* Meals: copy + tabs left, one large real photograph right */
.meal { margin-top: 1.5rem; }
.meal__tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.meal__tab { cursor: pointer; padding: .5rem 1.15rem; min-height: 2.75rem; border: 2px solid var(--brand-primary); border-radius: 999px; background: #fff; color: var(--brand-primary); font: inherit; font-weight: 600; font-size: .95rem; transition: background-color .3s ease, color .3s ease; }
.meal__tab:hover { background: var(--brand-soft); }
.meal__tab[aria-selected="true"] { background: var(--brand-primary); color: #fff; }
.meal__panels { display: grid; }
.meal__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.meal__panel.is-active { visibility: visible; opacity: 1; animation: mealIn .45s ease; }
.meal__panel h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.meal__panel p { margin-bottom: 1rem; }
@keyframes mealIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.meal__stage { position: relative; aspect-ratio: 4 / 5; max-width: 32rem; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: #24150A; box-shadow: var(--shadow-md); }
@media (min-width: 992px) { .meal__stage { max-width: none; } }
.meal__img { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.meal__img.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.meal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
    .js .wwd__slide, .js .wwd__slide img, .js .wwd__slide .wwd__cap, .meal__img { transition: none !important; transform: none !important; }
    .meal__panel.is-active { animation: none; }
}


/* ===== Leadership section (homepage + about) =====
   Brand re-theme: cream band (see 20b), bronze accents, lamp-gold photo ring. No cool colours. */
.leadership-section {
    --lead-accent: var(--brand-primary);
    --lead-line: color-mix(in srgb, var(--brand-primary) 18%, transparent);
    padding-block: var(--section-space);
}
.leadership-section .eyebrow { color: var(--lead-accent); }
.leadership-section .eyebrow::before { background: var(--lead-accent); }
.leadership-section h2 { color: var(--text-dark); }
.leader-grid {
    list-style: none; margin: 0 auto; padding: 0; max-width: 1280px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.leader-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.6rem .75rem 1.5rem; background: rgba(255, 255, 255, .78);
    border: 1px solid var(--lead-line); border-radius: var(--radius-md);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.leader-card:hover, .leader-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lead-accent); }
.leader-card__photo {
    display: block; width: clamp(104px, 36vw, 150px); aspect-ratio: 1; border-radius: 50%;
    padding: 4px; background: #fff; border: 2px solid var(--lead-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary-light) 38%, transparent);
    margin-bottom: 1.25rem;
}
.leader-card__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.leader-card__name { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text-dark); margin: 0; min-height: 2.7em; display: flex; align-items: center; }
.leadership-closing {
    max-width: 44rem; margin: 3rem auto 0; padding-top: 1.5rem; position: relative;
    text-align: center; color: var(--text-dark); font-size: 1.05rem; line-height: 1.7;
}
.leadership-closing::before { content: ""; position: absolute; top: 0; left: 50%; width: 3rem; height: 3px; margin-left: -1.5rem; border-radius: 2px; background: var(--brand-primary-light); }
.leader-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
@media (max-width: 359.98px) { .leader-grid { grid-template-columns: 1fr; } .leader-card:last-child { width: auto; } }
@media (min-width: 768px) {
    .leader-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
    .leader-card { grid-column: span 2; }
    .leader-card:last-child { grid-column: span 2; width: auto; }
    .leader-card:nth-child(4) { grid-column: 2 / span 2; }
    .leader-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1200px) {
    .leader-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
    .leader-card, .leader-card:nth-child(4), .leader-card:nth-child(5) { grid-column: auto; }
    .leader-card { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .leader-card { transition: none; } .leader-card:hover { transform: none; } }
