/* =====================================================================
   AVNSM Heritage theme — "Ancient Wisdom × Modern Minimalism"
   Loaded after every other stylesheet on every page.
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@400;500;600&family=Noto+Serif+Tamil:wght@400;500;600&family=Hind+Madurai:wght@400;500;600&display=swap");

:root {
  /* palette */
  --ivory: #FAF7F0;
  --maroon: #742C32;
  --maroon-deep: #5b2127;
  --saffron: #C77932;
  --sandstone: #E8DDCA;
  --gold: #AF8B50;
  --charcoal: #292521;
  --charcoal-soft: #5e554d;
  --hairline: rgba(175, 139, 80, 0.38);
  --hairline-strong: rgba(116, 44, 50, 0.28);

  /* map onto the site's existing tokens */
  --kumkum: var(--maroon);
  --kumkum-deep: var(--maroon-deep);
  --turmeric: var(--saffron);
  --turmeric-soft: #F3EBDD;
  --leaf: #5c6b4a;
  --leaf-soft: #EFEBE0;
  --rice: var(--ivory);
  --ink: var(--charcoal);
  --ink-soft: var(--charcoal-soft);
  --line: #E6DCCB;

  /* type */
  --font-display: "Cormorant Garamond", "Noto Serif Tamil", Georgia, serif;
  --font-body: "Manrope", "Hind Madurai", system-ui, sans-serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --measure: 64ch;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* motifs (inline SVG) */
  --gold-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6h50M70 6h50' stroke='%23AF8B50' stroke-width='.8'/%3E%3Cpath d='M60 1.5l4.5 4.5L60 10.5 55.5 6z' fill='none' stroke='%23AF8B50' stroke-width='.8'/%3E%3Ccircle cx='60' cy='6' r='1.2' fill='%23C77932'/%3E%3C/svg%3E");
  --kolam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23AF8B50' stroke-opacity='.22' stroke-width='.8'%3E%3Cpath d='M24 4c11 9 11 31 0 40C13 35 13 13 24 4zM72 4c11 9 11 31 0 40-11-9-11-31 0-40zM24 52c11 9 11 31 0 40-11-9-11-31 0-40zM72 52c11 9 11 31 0 40-11-9-11-31 0-40z'/%3E%3Cpath d='M4 24c9-11 31-11 40 0-9 11-31 11-40 0zM52 24c9-11 31-11 40 0-9 11-31 11-40 0zM4 72c9-11 31-11 40 0-9 11-31 11-40 0zM52 72c9-11 31-11 40 0-9 11-31 11-40 0z'/%3E%3C/g%3E%3Cg fill='%23AF8B50' fill-opacity='.3'%3E%3Ccircle cx='24' cy='24' r='1.4'/%3E%3Ccircle cx='72' cy='24' r='1.4'/%3E%3Ccircle cx='24' cy='72' r='1.4'/%3E%3Ccircle cx='72' cy='72' r='1.4'/%3E%3Ccircle cx='48' cy='48' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --gopuram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='none' stroke='%23AF8B50' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M30 276V206h140v70'/%3E%3Cpath d='M84 276v-38a16 16 0 0 1 32 0v38'/%3E%3Cpath d='M22 206h156'/%3E%3Cpath d='M36 206l6-28h116l6 28M46 178l6-26h96l6 26M56 152l5-24h78l5 24M65 128l5-22h60l5 22M74 106l4-20h44l4 20'/%3E%3Cpath d='M76 86c0-18 48-18 48 0'/%3E%3Cpath d='M70 86h60'/%3E%3Cpath d='M88 66c0-8 8-10 8-16M100 62c0-10 0-16 0-22M112 66c0-8-8-10-8-16'/%3E%3Ccircle cx='100' cy='37' r='3'/%3E%3Cpath d='M92 128v-10M108 128v-10M84 152v-12M100 152v-14M116 152v-12M76 178v-12M100 178v-14M124 178v-12'/%3E%3C/svg%3E");
  --arch-radius: 999px 999px var(--radius-md) var(--radius-md);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--charcoal); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; }
html[lang="ta"] body { font-family: "Hind Madurai", var(--font-body); line-height: 1.85; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--charcoal); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3 { font-family: "Noto Serif Tamil", var(--font-display); font-weight: 500; letter-spacing: 0; }
html[lang="ta"] h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.3; }
html[lang="ta"] h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.35; }
p { max-width: var(--measure); }
.lede { color: var(--charcoal-soft); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.7; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s var(--ease); }
a:hover { color: var(--saffron); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
::selection { background: rgba(199, 121, 50, 0.25); }

/* small caps label used for eyebrows */
.eyebrow, .ht-eyebrow, .prog .since { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--saffron); }

/* fine gold divider under section headings */
.section > h2::after,
.section .split > div > h2::after,
.section > .wrap-narrow > h2::after,
.page-hero h1::after {
  content: ""; display: block; width: 120px; height: 12px; margin-top: 18px;
  background: var(--gold-rule) left center / contain no-repeat;
}

/* ---------- Header: minimal navigation ---------- */
.site-header { background: rgba(250, 247, 240, 0.9); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--hairline); transition: box-shadow .4s var(--ease), background .4s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(41, 37, 33, 0.06); }
.site-header .bar { padding-top: 14px; padding-bottom: 14px; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--charcoal); }
.brand small { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.nav { gap: 2px; }
.nav a, .nav button.navtoggle { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; color: var(--charcoal); padding: 8px 12px; position: relative; }
.nav > a:not(.btn)::after, .nav .navtoggle::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:not(.btn):hover::after, .nav .navtoggle:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--maroon); box-shadow: none; }
.nav a:hover, .nav button.navtoggle:hover { color: var(--maroon); }
.dropdown .menu { background: var(--ivory); border: 1px solid var(--hairline); border-radius: var(--radius-md); box-shadow: 0 18px 40px rgba(41, 37, 33, 0.08); padding: 10px; min-width: 250px; }
.dropdown .menu a { padding: 9px 12px; border-radius: var(--radius-sm); }
.dropdown .menu a:hover { background: #F3EBDD; }
.lang { border: 1px solid var(--hairline); background: transparent; font-size: 0.85rem; color: var(--charcoal); padding: 6px 14px; }
.lang:hover { border-color: var(--gold); }
@media (max-width: 1060px) {
  .nav { background: var(--ivory); border-bottom: 1px solid var(--hairline); padding-bottom: 20px; }
  .nav > a:not(.btn)::after, .nav .navtoggle::after { display: none; }
  .dropdown .menu { border: 0; box-shadow: none; background: transparent; padding: 0 0 0 12px; }
}

/* ---------- Buttons: refined, thin ---------- */
.btn { border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 15px 28px; border: 1px solid transparent; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
html[lang="ta"] .btn { text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem; }
.btn-primary { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.btn-primary:hover { background: var(--maroon-deep); color: var(--ivory); border-color: var(--maroon-deep); }
.btn-turmeric { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.btn-turmeric:hover { background: #b06927; color: #fff; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(116, 44, 50, 0.04); }
.btn:active { transform: translateY(1px); }
.nav .btn-primary { padding: 11px 20px; font-size: 0.78rem; }

/* ---------- Page headers: editorial, with a gopuram line drawing ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--ivory); color: var(--charcoal);
  padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero::before { content: ""; position: absolute; right: clamp(-40px, 4vw, 80px); bottom: -2px; width: clamp(180px, 26vw, 360px); aspect-ratio: 200 / 280; background: var(--gopuram) center bottom / contain no-repeat; opacity: 0.9; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: var(--kolam); opacity: 0.35; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); mask-image: linear-gradient(90deg, transparent 40%, #000 100%); pointer-events: none; }
.page-hero h1 { color: var(--charcoal); max-width: 16ch; position: relative; z-index: 1; }
.page-hero p { color: var(--charcoal-soft); font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 52ch; position: relative; z-index: 1; }
.page-hero .actions { position: relative; z-index: 1; }
.page-hero .btn-ghost { color: var(--maroon); }
.kolam { display: none; }
@media (max-width: 760px) { .page-hero::before { width: 130px; right: -10px; opacity: 0.5; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section.tint { background: var(--sandstone); background-image: linear-gradient(rgba(232, 221, 202, 0.92), rgba(232, 221, 202, 0.92)), var(--kolam); }
.section.leaf { background: #F1EBDF; }
.section.ink { background: var(--sandstone); color: var(--charcoal); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section.ink h2, .section.ink h3 { color: var(--charcoal); }
.figures { border-top: 0; gap: 0; margin-top: 40px; }
.figures div { padding: 6px 28px; border-left: 1px solid var(--hairline); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--maroon); line-height: 1; letter-spacing: -0.02em; }
.figures span { color: var(--charcoal-soft); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
html[lang="ta"] .figures span { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
@media (max-width: 720px) { .figures div { border-left: 0; padding: 14px 0; border-top: 1px solid var(--hairline); } }

blockquote.verse { border-left: 1px solid var(--gold); padding-left: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--maroon); }

/* ---------- Editorial images: temple-arch crops, asymmetry ---------- */
.split { gap: clamp(40px, 7vw, 120px); }
.split img { border-radius: var(--arch-radius); aspect-ratio: 4 / 5; max-height: 620px; box-shadow: none; filter: saturate(0.92) sepia(0.06); }
.award .split img, .split img[data-book-page] { border-radius: var(--radius-md); aspect-ratio: auto; max-height: none; }
.activity { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--hairline); counter-increment: work; gap: clamp(28px, 6vw, 96px); }
main { counter-reset: work; }
.activity h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.activity h3::before { content: counter(work, decimal-leading-zero); display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.activity .media { overflow: hidden; border-radius: var(--radius-md); }
.activity .media img { border-radius: var(--radius-md); aspect-ratio: 5 / 4; transition: transform 1.2s var(--ease); filter: saturate(0.92); }
.activity:hover .media img { transform: scale(1.04); }
.activity:hover h3 { color: var(--maroon); }
.activity .more { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maroon); }
.activity .more::after { content: "  \2192"; transition: margin .3s var(--ease); }
.activity:hover .more::after { margin-left: 6px; }
.festival img, .campaign-card img, .event-row img, .gallery img, .cover-band, .issue-head img, .award img { border-radius: var(--radius-md); filter: saturate(0.92); }

/* ---------- Cards: thin borders, soft shadows ---------- */
.way, .panel, .campaign-card, .message, .prog, .story-card, .zone, .ht-progs a {
  background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(41, 37, 33, 0.02), 0 18px 40px -24px rgba(41, 37, 33, 0.18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.way:hover, .campaign-card:hover, .message:hover, .prog:hover, .ht-progs a:hover { transform: translateY(-3px); border-color: var(--hairline); box-shadow: 0 24px 50px -24px rgba(41, 37, 33, 0.25); }
.ways { gap: 24px; }
.way { padding: 36px 32px; gap: 12px; }
.way h3 { font-size: 1.8rem; }
.way.primary { background: var(--maroon); border-color: var(--maroon); color: var(--ivory); }
.way.primary h3 { color: var(--ivory); }
.way.primary p { color: rgba(250, 247, 240, 0.85); }
.way.primary .btn-turmeric { background: var(--ivory); color: var(--maroon); border-color: var(--ivory); }
.way.primary .btn-turmeric:hover { background: var(--sandstone); }
.zone { border-left: 2px solid var(--gold); }
.services li { border-top: 1px solid var(--hairline); padding: 24px 0; }
.services li strong { font-family: var(--font-display); color: var(--maroon); font-size: 1.5rem; }
.event-row { border-top: 1px solid var(--hairline); }
.event-row .date { color: var(--maroon); }
.notice { background: #F3EBDD; border-left: 2px solid var(--saffron); border-radius: var(--radius-sm); }
.amounts button { border: 1px solid var(--line); border-radius: var(--radius-md); }
.amounts button[aria-pressed="true"] { border-color: var(--maroon); background: #F7EFE9; }
.segmented { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ivory); }
.segmented button[aria-pressed="true"] { background: var(--maroon); }
.progress { height: 4px; background: var(--line); }
.progress i { background: var(--saffron); }

/* forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="password"], select, textarea {
  background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(175, 139, 80, 0.18); }

/* ---------- Homepage hero (temple drawing) ---------- */
.hero-temple {
  background: var(--ivory); text-align: left; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "text art" "progs progs";
  align-items: center; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(36px, 5vw, 64px);
  padding: clamp(48px, 7vw, 110px) var(--gutter) clamp(48px, 6vw, 88px);
}
/* the temple drawing, fully visible, in its own column */
.hero-temple::before {
  grid-area: art; position: relative; inset: auto; z-index: 0; align-self: center;
  width: 100%; aspect-ratio: 1536 / 775;
  background: var(--sketch) center / contain no-repeat;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  animation: htIn 1.6s var(--ease) both; transform: translate3d(0, var(--py, 0px), 0);
}
@keyframes htIn { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; } }
.hero-temple::after { display: none; }
.page-hero::before { transform: translate3d(0, var(--py, 0px), 0); }
.hero-temple .ht-text { grid-area: text; margin: 0; max-width: 560px; position: relative; z-index: 1; }
.hero-temple .ht-text::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 32px; background: var(--gold-rule) left center / contain no-repeat; }
.hero-temple h1 { color: var(--charcoal); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; max-width: 13ch; margin: 0 0 20px; text-shadow: none; }
.hero-temple .ht-lede { color: var(--charcoal-soft); text-shadow: none; margin: 0; max-width: 46ch; }
.hero-temple .actions { justify-content: flex-start; }
.hero-temple .btn-ghost { background: transparent; }
.ht-progs { grid-area: progs; }
@media (max-width: 900px) {
  .hero-temple { grid-template-columns: 1fr; grid-template-areas: "text" "art" "progs"; text-align: center; row-gap: 28px; }
  .hero-temple::before { width: 112%; margin: 0 -6%; }
  .hero-temple .ht-text { margin: 0 auto; }
  .hero-temple .ht-text::after { margin-inline: auto; }
  .hero-temple h1, .hero-temple .ht-lede { margin-inline: auto; }
  .hero-temple .actions { justify-content: center; }
}
.ht-eyebrow { color: var(--saffron); }
.ht-progs a { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 12px; }
.ht-progs a:hover { border-bottom-color: var(--gold); }
.ht-progs strong { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--charcoal); }
.ht-progs img { border-radius: 999px; width: 56px; height: 56px; }

/* ---------- 10 Years page ---------- */
.jubilee { background: var(--ivory); color: var(--charcoal); border-bottom: 1px solid var(--hairline); }
.jubilee::before { content: ""; position: absolute; inset: 0; background: var(--kolam); opacity: 0.45; -webkit-mask-image: radial-gradient(60% 70% at 80% 40%, #000, transparent); mask-image: radial-gradient(60% 70% at 80% 40%, #000, transparent); pointer-events: none; }
.jubilee h1 { color: var(--charcoal); }
.jubilee-lede { color: var(--charcoal-soft); }
.jubilee-mantra { border-left: 1px solid var(--gold); }
.jubilee-mantra span[lang="sa"] { color: var(--maroon); }
.jubilee-mantra span:last-child { color: var(--charcoal-soft); }
.jubilee .btn-ghost { color: var(--maroon); }
.jubilee-mark::before { border: 1px solid var(--hairline); }
.jubilee-mark::after { background: radial-gradient(circle, rgba(199, 121, 50, 0.16), rgba(199, 121, 50, 0) 70%); }
.ten { -webkit-text-stroke: 1px var(--gold); filter: none; }
.ten-label { color: var(--gold); }
.journey::before { background: var(--hairline); height: 1px; }
.journey li::before { width: 9px; height: 9px; top: -26px; background: var(--ivory); border: 1px solid var(--gold); }
.journey li:last-child::before { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 5px rgba(199, 121, 50, 0.15); }
.j-yr { color: var(--maroon); }
.j-txt { color: var(--charcoal-soft); }
.story::before { background: var(--hairline); width: 1px; }
.story-item::before { width: 11px; height: 11px; background: var(--ivory); border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--sandstone); }
.story-img { border-radius: var(--radius-md); box-shadow: 0 30px 60px -30px rgba(41, 37, 33, 0.35); }
.story-item:nth-child(odd) .story-img { border-radius: var(--arch-radius); }
.story-yr { color: var(--maroon); }
.message blockquote { font-style: italic; font-size: 1.3rem; }
.message blockquote::before { color: var(--gold); }
.prog .num { color: var(--maroon); font-family: var(--font-display); font-weight: 500; }
.prog-img { filter: saturate(0.9); }
.chapters button { border: 1px solid var(--line); background: #FFFDF8; border-radius: 999px; font-size: 0.85rem; }
.chapters button:hover, .chapters button[aria-current="true"] { background: var(--maroon); border-color: var(--maroon); }
.fb { background: var(--charcoal); border-radius: var(--radius-lg); }
.fb-tabs button[aria-selected="true"] { background: var(--saffron); border-color: var(--saffron); color: #fff; }

/* ---------- Footer: charcoal with gold accents ---------- */
.site-footer { background: var(--charcoal); color: rgba(250, 247, 240, 0.78); padding-top: clamp(72px, 9vw, 120px); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--charcoal) var(--gopuram) center 60% / 30px auto no-repeat; border: 1px solid rgba(175, 139, 80, 0.5); }
.site-footer h3 { color: var(--gold); font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .cols > div:first-child h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--ivory); font-weight: 500; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.site-footer li { margin-bottom: 10px; }
.site-footer .legal { border-top: 1px solid rgba(175, 139, 80, 0.25); color: rgba(250, 247, 240, 0.55); font-size: 0.82rem; }

/* ---------- Scroll reveal & parallax (driven by theme.js) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* header Donate button keeps its filled style inside the nav */
.nav a.btn-primary { background: var(--maroon); color: var(--ivory); border: 1px solid var(--maroon); margin-left: 6px; }
.nav a.btn-primary:hover { background: var(--maroon-deep); color: var(--ivory); }
.nav a.btn-primary::after { display: none; }
.jubilee::before { opacity: 0.25; }
@media (max-width: 700px) {
  .hero-temple .ht-text { padding-bottom: 0; }
  .hero-temple::before { background-size: contain; background-position: center; }
}

/* ---------- Videos ---------- */
.founder-video { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-video .fv-player { justify-self: center; width: min(100%, 380px); aspect-ratio: 9 / 16; border-radius: var(--arch-radius); overflow: hidden; background: var(--charcoal); box-shadow: 0 40px 80px -40px rgba(41, 37, 33, 0.45); outline: 1px solid var(--hairline); outline-offset: 10px; }
.founder-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-video blockquote { margin: 26px 0; padding-left: 22px; border-left: 1px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--maroon); }
@media (max-width: 820px) { .founder-video { grid-template-columns: 1fr; } .founder-video .fv-player { order: -1; width: min(100%, 320px); } }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: 36px; }
.vcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--charcoal); }
.vthumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-md); overflow: hidden; background: var(--sandstone); margin-bottom: 8px; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 37, 33, 0) 55%, rgba(41, 37, 33, 0.55)); }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vplay { position: absolute; z-index: 1; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(250, 247, 240, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform .4s var(--ease), background .4s var(--ease); }
.vplay::before { content: ""; position: absolute; left: 24px; top: 19px; border-left: 18px solid var(--maroon); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard:hover .vplay { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.vtime { position: absolute; z-index: 1; right: 10px; bottom: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: #fff; }
.vtitle { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.vsub { font-size: 0.92rem; color: var(--charcoal-soft); line-height: 1.5; }
.vcard:focus-visible { outline: 2px solid var(--saffron); outline-offset: 6px; border-radius: var(--radius-md); }

.vbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 17, 15, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 16px 20px; }
.vbox[hidden] { display: none; }
.vframe { height: min(82vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.vframe video { width: 100%; height: 100%; display: block; background: #000; }
.vcap { color: var(--ivory); margin: 14px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.vclose { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(175, 139, 80, 0.6); background: transparent; color: var(--ivory); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.vclose:hover { background: var(--saffron); border-color: var(--saffron); }