/* ==========================================================================
   Navagraha Religious & Charitable Trust, Thirunelly
   Design system + site styles

   Palette sampled from the trust logo (navalogo.jpeg). The three values marked
   "measured" below are the artwork's own flat fills, read off the pixels rather
   than matched by eye; the other two are those taken up or down for legibility.
   Re-measure them only against a new logo file.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand, straight from the logo — four values, nothing beside them */
  --green:        #186038;   /* measured: the mandala outline and the wordmark */
  --orange-deep:  #DF5F18;   /* measured: the swastika and the initial N */
  --orange:       #E7791D;   /* measured: the graha glyphs and the outer dots */
  --green-deep:   #0A2E1B;   /* the green taken down, for deep panels */
  --orange-ink:   #A8500F;   /* the same warmth, legible as text on paper */

  /* surfaces — warm white, the colour of temple paper */
  --surface:       #FDF9F0;
  --surface-2:     #F6EFE0;
  --surface-3:     #EDE3D0;
  --paper:         #FFFFFF;

  /* one deep tone, for inverted chips, buttons and captions */
  --deep:          #0F2318;
  --cream:         #FDF9F0;

  /* text */
  --text:          #1A1210;
  --text-dim:      rgba(26, 18, 16, .66);
  --text-faint:    rgba(26, 18, 16, .42);
  --hairline:      rgba(26, 18, 16, .14);
  --hairline-soft: rgba(26, 18, 16, .08);

  /* accents — redefined inside .on-dark, so components need no variants */
  --accent:         var(--orange-deep);   /* eyebrows, dates, small emphasis */
  --accent-display: var(--orange-ink);  /* the italic word in a headline */

  /* text when it sits on a photograph or a deep panel */
  --on-photo:      #FDF9F0;
  --on-photo-dim:  rgba(253,249,240, .74);

  /* type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:    "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --deva:    "Tiro Devanagari Sanskrit", "Cormorant Garamond", serif;

  /* rhythm */
  --gutter: clamp(20px, 5vw, 96px);
  --section-y: clamp(72px, 9vw, 160px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: .9s var(--ease);
}

/* ---------------------------------------------------------- the dark scope */
/* Applied to the sections that earn darkness: the hero, the two navagraha
   chapters (night sky), the offering band and the footer. Everything inside
   reads the same tokens, so no component needs a dark variant of its own. */
.on-dark {
  --surface:       #0A1A11;
  --surface-2:     #0F2318;
  --surface-3:     #163020;
  --paper:         #0A1A11;

  --text:          #FDF9F0;
  --text-dim:      rgba(253,249,240, .64);
  --text-faint:    rgba(253,249,240, .34);
  --hairline:      rgba(253,249,240, .16);
  --hairline-soft: rgba(253,249,240, .08);

  /* on a dark ground the bright orange is the legible warm accent */
  --accent:         var(--orange);
  --accent-display: var(--orange);

  background: var(--surface);
  color: var(--text);
}

/* inverted controls inside the dark scope */
.on-dark .btn {
  background: var(--cream);
  color: var(--deep);
}
.on-dark .btn:hover { color: var(--cream); }
.on-dark .btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.on-dark .btn--orange { background: var(--orange); color: var(--deep); }
.on-dark .btn--orange::before { background: var(--cream); }
.on-dark .btn--orange:hover { color: var(--deep); }


.site-header:not(.is-stuck) .social-row a { background: rgba(253,249,240, .12); }
.site-header:not(.is-stuck) .social-row a:hover { background: var(--cream); color: var(--deep); }
.on-dark .social-row a { background: rgba(253,249,240, .10); }
.on-dark .social-row a:hover { background: var(--cream); color: var(--deep); }

.on-dark .contact-card { background: rgba(253,249,240, .03); }
.on-dark .contact-card:hover { border-color: var(--orange); background: rgba(238,118,35, .08); }
.on-dark .contact-card i { color: var(--orange); }

.on-dark .counter__num { color: var(--orange); }
.on-dark .mantra { color: var(--orange); }
.on-dark .star-mark { color: var(--orange); }
.on-dark .chapter-no { -webkit-text-stroke-color: rgba(253,249,240, .3); }
.on-dark .graha-node circle { fill: rgba(253,249,240, .06); }
.on-dark .ornament-mandala { opacity: .10; }
.on-dark .footer-col a:hover,
.on-dark .footer-bottom a:hover { color: var(--orange); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* anchor targets clear the fixed bar */
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, .52vw + 13px, 17px);
  line-height: 1.65;
  font-weight: 350;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
.timeline, .way-list { margin: 0; padding: 0; list-style: none; }
/* sections are flex boxes, which would otherwise outrank the hidden attribute */
[hidden] { display: none !important; }

::selection { background: var(--orange-deep); color: var(--on-photo); }

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

/* --------------------------------------------------------------- display */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
}

.d1 { font-size: clamp(3rem, 7.6vw, 8rem); }
.d2 { font-size: clamp(2.4rem, 5.4vw, 5.4rem); }
.d3 { font-size: clamp(1.8rem, 3.1vw, 3.1rem); }
.d4 { font-size: clamp(1.35rem, 1.9vw, 2rem); }

.d1 em, .d2 em, .d3 em {
  font-style: italic;
  color: var(--accent-display);
}

.lede {
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 350;
  max-width: 54ch;
}

/* small caps micro-label with a lamp dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  flex: none;
}
.eyebrow--line::after {
  content: "";
  width: clamp(28px, 5vw, 72px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* sanskrit / malayalam line */
.mantra {
  font-family: var(--deva);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.9;
  color: var(--green);
  letter-spacing: .01em;
}
.mantra--trans {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: .82em;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-top: .35em;
}

/* ---------------------------------------------------------------- layout */
.section {
  position: relative;
  overflow-x: clip;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-y) var(--gutter);
}
.section--flush { padding-left: 0; padding-right: 0; }
.section--auto  { min-height: 0; }
/* alternating band: a shade warmer than the page, to keep a scroll rhythm */
.section--light { background: var(--surface-2); }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; }
.wrap--narrow { max-width: 1100px; }
.wrap--text { max-width: 820px; }

.grid { display: grid; gap: clamp(28px, 4vw, 72px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }

/* -------------------------------------------------------------- ornament */
/* faint lotus-mandala watermark behind dark sections */
.ornament-mandala {
  position: absolute;
  inset: auto;
  pointer-events: none;
  opacity: .16;
  color: var(--orange);
  width: clamp(340px, 46vw, 760px);
  aspect-ratio: 1;
  z-index: 0;
}
.ornament-mandala--tr { top: -10%; right: -12%; }
.ornament-mandala--bl { bottom: -14%; left: -10%; }
/* a watermark stays inside its own section — never over the one above or below */
.section:has(> .ornament-mandala) { overflow: clip; }

/* thin double rule, echoing the seal's concentric rings */
.rule {
  border: 0;
  height: 3px;
  width: 100%;
  margin: 0;
  background:
    linear-gradient(var(--hairline), var(--hairline)) top / 100% 1px no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) bottom / 100% 1px no-repeat;
}


/* the seal's 8-point star, used as a section mark */
.star-mark {
  width: 34px; height: 34px;
  color: var(--green);
  flex: none;
}

/* ------------------------------------------------------------- preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--surface);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
/* the trust's mandala, turning once while the page settles */
.preloader > div { display: grid; justify-items: center; padding-inline: 16px; }
.preloader__mark {
  display: block;
  width: clamp(150px, 20vw, 230px);
  height: auto;
  margin: 0 auto;
  animation: seal-turn 9s linear infinite;
}
/* the wordmark under the mandala, as the trust stacks its logo */
.preloader__word {
  display: block;
  width: clamp(230px, 30vw, 360px);
  height: auto;
  margin-top: clamp(4px, 1vw, 10px);
  animation: word-rise 1s var(--ease) both .15s;
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes seal-turn {
  0%   { transform: rotate(0deg)   scale(.97); opacity: .70; }
  50%  { transform: rotate(180deg) scale(1.02); opacity: 1; }
  100% { transform: rotate(360deg) scale(.97); opacity: .70; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__mark { animation: none; }
  .preloader__word { animation: none; }
}

/* ------------------------------------------------------- the full lockup */
/* Emblem and wordmark together, as the artwork draws them. Used where the
   mark is the subject rather than a label: the footer and the trust page.
   Two files, because the wordmark's green and black cannot survive a dark
   ground: -lockup on paper, -lockup-reverse (cream and orange) on night. */
.brand-lockup {
  display: inline-block;
  line-height: 0;
}
.brand-lockup img {
  display: block;
  width: clamp(208px, 22vw, 268px);
  height: auto;
}
.brand-lockup--lg img { width: clamp(240px, 34vw, 420px); }

/* the mandala alone, large — the pattern of the logo on the trust page.
   The file is ~330px square, so it is not shown much past that size. */
.brand-emblem {
  display: block;
  margin-top: clamp(32px, 4.4vw, 60px);
  line-height: 0;
}
.brand-emblem img {
  display: block;
  width: clamp(240px, 26vw, 400px);
  height: auto;
}

/* ---------------------------------------------------------------- header */
/* over the hero the header is light-on-dark; once stuck it flips to paper */
.site-header {
  --text: #FDF9F0;
  --text-dim: rgba(253,249,240, .64);
  --accent: var(--orange);
  --hairline: rgba(253,249,240, .16);
  color: var(--text);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 120;
  padding: clamp(12px, 1.4vw, 20px) clamp(16px, 3vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* a shallow wash under the bar so the links survive a bright patch of sky */
  background: linear-gradient(180deg, rgba(10,26,17,.78) 0%, rgba(10,26,17,.42) 62%, rgba(10,26,17,0) 100%);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.site-header.is-stuck::before { opacity: 0; }
/* a little lift so the links survive a bright patch of sky */
.site-header:not(.is-stuck) { text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.site-header.is-stuck {
  --text: #1A1210;
  --text-dim: rgba(26, 18, 16, .66);
  --accent: var(--orange-deep);
  --hairline: rgba(26, 18, 16, .14);
  color: var(--text);
  background: rgba(253,249,240, .9);
  backdrop-filter: blur(14px);
  padding-top: clamp(12px, 1.2vw, 16px);
  padding-bottom: clamp(12px, 1.2vw, 16px);
  border-bottom: 1px solid var(--hairline);
}

/* the trust's logo — the full lockup, as the October 2026 corrections asked.
   Two files, because the wordmark's green and black vanish on night: the
   reverse (cream and orange) over the dark banners, the full-colour lockup
   once the bar has turned to paper. */
.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
  display: block;
  height: clamp(58px, 5.8vw, 88px);
  width: auto;
  transition: height .5s var(--ease);
}
.brand__logo--reverse { filter: drop-shadow(0 1px 10px rgba(10, 26, 17, .45)); }
.brand__logo--paper { display: none; }
.site-header.is-stuck .brand__logo { height: clamp(52px, 4.6vw, 70px); }
.site-header.is-stuck .brand__logo--reverse { display: none; }
.site-header.is-stuck .brand__logo--paper { display: block; }

/* right cluster — nav, socials and the call to action on one line */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}
.header-right > .site-nav      { order: 1; }
.header-right > .social-row    { order: 2; }
.header-right > .header-donate { order: 3; }

.social-row {
  display: flex;
  gap: 8px;
  padding-left: clamp(14px, 1.6vw, 26px);
  border-left: 1px solid var(--hairline);
}
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26, 18, 16, .04);
  border: 1px solid var(--hairline);
  font-size: .82rem;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.social-row a:hover {
  background: var(--green);
  color: var(--on-photo);
  transform: translateY(-3px);
}

.site-nav { display: flex; align-items: center; gap: clamp(12px, 1.35vw, 26px); }
.site-nav a {
  position: relative;
  font-size: .92rem;
  white-space: nowrap;
  letter-spacing: .01em;
  color: var(--text-dim);
  padding: 2px 0;
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width .45s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a::after { background: var(--accent); }

/* Donations — its own tab, to the right of the social links */
.header-donate {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1.35em;
  border-radius: 100px;
  background: var(--orange);
  color: var(--deep);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: none;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.header-donate i { font-size: 1.05em; }
.header-donate:hover { background: var(--cream); color: var(--deep); transform: translateY(-2px); }
.site-header.is-stuck .header-donate:hover { background: var(--green); color: var(--on-photo); }

/* mobile menu trigger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1px;
  background: var(--text);
  transition: transform .4s var(--ease), opacity .3s;
}
/* the two strokes share a centre, so opening simply crosses them */
.nav-toggle { position: relative; }
.nav-toggle span { position: absolute; left: calc(50% - 9px); top: 50%; }
.nav-toggle span:nth-child(1) { transform: translateY(-3px); }
.nav-toggle span:nth-child(2) { transform: translateY(3px); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: rotate(-45deg); }
.nav-toggle.is-open span { background: var(--cream); }
.nav-toggle.is-open { border-color: rgba(253,249,240, .3); }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: 1.05em 2.1em;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  background: var(--green);
  color: var(--on-photo);
  overflow: hidden;
  transition: color .45s var(--ease), transform .45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn i { position: relative; z-index: 1; font-size: .78em; transition: transform .45s var(--ease); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--orange-deep), var(--orange));
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover { color: var(--on-photo); }
.btn:hover::before { transform: translateY(0); }
.btn:hover i { transform: translate(4px, -4px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(26, 18, 16, .28);
}
.btn--ghost:hover { color: var(--on-photo); }

.btn--orange { background: var(--orange); color: var(--deep); }
.btn--orange::before { background: var(--green); }
.btn--orange:hover { color: var(--on-photo); }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .92rem;
  letter-spacing: .03em;
  padding-bottom: .35em;
  border-bottom: 1px solid currentColor;
  transition: gap .35s var(--ease);
}
.link-arrow:hover { gap: 1.1em; }

/* ------------------------------------------------------------------ hero */
/* The home banner: five slides, one for each strand of the trust's work,
   shown one at a time. Each slide carries its own photograph, and the tab
   strip along the foot names all five so a visitor can jump straight to the
   one they came for. */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

/* The slides share one grid cell, so the banner is as tall as its tallest
   slide: on a short screen the hero grows rather than pushing the words up
   under the header. */
.hero__slides { position: relative; z-index: 0; flex: 1; display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease), visibility 0s;
  z-index: 1;
}

.hero-slide__media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide__media img,
.hero-slide__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s linear;
}
.hero-slide.is-active .hero-slide__media img,
.hero-slide.is-active .hero-slide__media video { transform: scale(1); }

.hero-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,17,.80) 0%, rgba(10,26,17,.20) 32%, rgba(10,26,17,.40) 62%, rgba(10,26,17,.94) 100%),
    linear-gradient(90deg, rgba(10,26,17,.74) 0%, rgba(10,26,17,.16) 58%, transparent 82%),
    radial-gradient(120% 80% at 72% 30%, rgba(238,118,35,.20) 0%, transparent 60%);
}

.hero-slide__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(1560px + var(--gutter) * 2);
  margin-inline: auto;
  /* the top padding clears the header and its logo */
  padding: clamp(150px, 20vh, 200px) var(--gutter) calc(clamp(96px, 13vh, 132px) + 24px);
}
/* each phrase of a banner title sits on its own line (set with <br>) */
.hero-slide__title {
  font-size: clamp(2.5rem, 5.4vw, 5.6rem);
  line-height: 1.04;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .4);
}
.hero-slide__title em { font-style: italic; color: var(--accent-display); }
.hero-slide__lede {
  margin-top: clamp(1.1rem, 1.8vw, 1.8rem);
  max-width: 58ch;
  color: rgba(253,249,240, .82);
}
.hero-slide__cta { margin-top: clamp(1.6rem, 3vw, 2.6rem); }

/* the words rise in after the photograph has settled */
.hero-slide__body > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-slide.is-active .hero-slide__body > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__body > :nth-child(1) { transition-delay: .35s; }
.hero-slide.is-active .hero-slide__body > :nth-child(2) { transition-delay: .48s; }
.hero-slide.is-active .hero-slide__body > :nth-child(3) { transition-delay: .62s; }
.hero-slide.is-active .hero-slide__body > :nth-child(4) { transition-delay: .76s; }
.no-js .hero-slide__body > * { opacity: 1; transform: none; }

/* -- the tab strip: number, name and a line that fills while a slide plays */
.hero-tabs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  width: 100%;
  max-width: calc(1560px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(18px, 3vh, 34px);
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 28px);
}
.hero-tabs__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
}
.hero-tab {
  text-align: left;
  padding: 14px 0 0;
  color: rgba(253,249,240, .55);
  transition: color .4s var(--ease);
}
.hero-tab:hover, .hero-tab[aria-selected="true"] { color: var(--cream); }
.hero-tab__bar {
  display: block;
  height: 2px;
  background: rgba(253,249,240, .2);
  overflow: hidden;
  margin-bottom: 12px;
}
.hero-tab__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-tab[aria-selected="true"] .hero-tab__bar i {
  animation: hero-fill var(--slide-ms, 7000ms) linear forwards;
}
.hero.is-paused .hero-tab[aria-selected="true"] .hero-tab__bar i { animation-play-state: paused; }
.hero.is-static .hero-tab[aria-selected="true"] .hero-tab__bar i { animation: none; transform: none; }
@keyframes hero-fill { to { transform: scaleX(1); } }

.hero-tab__no {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: .15rem;
}
.hero-tab__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-controls { display: flex; gap: 8px; flex: none; }
.hero-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(253,249,240, .28);
  color: var(--cream);
  font-size: .78rem;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.hero-controls button:hover { background: var(--cream); color: var(--deep); border-color: var(--cream); }

@media (max-width: 860px) {
  .hero-tab__label { display: none; }
  .hero-tabs__list { gap: 8px; }
  .hero-controls button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide__media img, .hero-slide__media video { transform: none !important; }
}

/* -------------------------------------------------------- chapter header */
.chapter-no {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 18, 16, .26);
  margin-bottom: 1rem;
}


/* two-up media + text, full bleed */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}
.split__media { position: relative; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body {
  padding: clamp(48px, 7vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split--reverse .split__media { order: 2; }

/* caption overlay on full-bleed images */
.figcap {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-photo);
  background: rgba(15,35,24, .62);
  backdrop-filter: blur(6px);
  padding: .5em .9em;
  border-radius: 100px;
  border: 1px solid rgba(253,249,240, .18);
}

/* ------------------------------------------------------- navagraha wheel */
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
}

.wheel {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.wheel__svg { width: 100%; height: 100%; overflow: visible; }
.wheel__ring { fill: none; stroke: var(--hairline); }
.wheel__spin { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.graha-node {
  cursor: pointer;
  transition: transform .5s var(--ease);
}
.graha-node circle {
  fill: var(--surface-2);
  stroke: var(--hairline);
  transition: fill .4s var(--ease), stroke .4s var(--ease);
}
.graha-node text {
  fill: var(--text-dim);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .4s var(--ease);
  pointer-events: none;
}
.graha-node:hover circle,
.graha-node.is-active circle {
  fill: var(--orange-deep);
  stroke: var(--orange-deep);
}
.graha-node:hover text,
.graha-node.is-active text { fill: var(--on-photo); }

.wheel__hub {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(238,118,35,.22), transparent 68%);
}
.wheel__hub-om {
  font-family: var(--deva);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: var(--orange-ink);
  line-height: 1;
}

/* the detail card beside the wheel */
.graha-card { position: relative; min-height: 340px; }
.graha-card__sym {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: .6rem;
}
.graha-card__name { margin-bottom: .2rem; }
.graha-card__sans {
  font-family: var(--deva);
  color: var(--accent-display);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.graha-card__body { color: var(--text-dim); max-width: 46ch; }
.graha-card__facts {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.graha-card__facts div {
  background: var(--surface);
  padding: .9rem 1.1rem;
}
.section--light .graha-card__facts div { background: var(--surface-2); }
.graha-card__facts dt {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .3em;
}
.graha-card__facts dd {
  margin: 0;
  font-size: .95rem;
  color: var(--text);
}

/* ---------------------------------------------------------- program grid */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}


.prog {
  position: relative;
  padding: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  min-height: clamp(300px, 34vh, 400px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: color .5s var(--ease);
}


.prog__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.prog__bg img { width: 100%; height: 100%; object-fit: cover; }
.prog__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,50,26,.78), rgba(15,35,24,.92));
}
.prog:hover { color: var(--on-photo); }
.prog:hover .prog__bg { opacity: 1; }
.prog > *:not(.prog__bg):not(.prog__index) { position: relative; z-index: 1; }

.prog__icon {
  width: 46px; height: 46px;
  color: var(--accent);
  transition: color .5s var(--ease), transform .6s var(--ease);
}
.prog:hover .prog__icon { color: var(--orange); transform: translateY(-4px); }
.prog { justify-content: flex-start; }
.prog > div { flex: 1; display: flex; flex-direction: column; }
.prog__title { margin: 1.6rem 0 .6rem; }
.prog__more { margin-top: auto; }
.prog__text {
  font-size: .95rem;
  color: var(--text-dim);
  transition: color .5s var(--ease);
  margin: 0 0 1.4rem;
}
.prog:hover .prog__text { color: var(--on-photo-dim); }
.prog__more {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--accent);
  transition: color .5s var(--ease), gap .35s var(--ease);
}
.prog:hover .prog__more { color: var(--orange); gap: 1.1em; }
.prog__index {
  position: absolute;
  top: clamp(20px, 2.4vw, 34px);
  right: clamp(20px, 2.4vw, 34px);
  z-index: 1;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text-dim);
  opacity: .5;
}
.prog:hover .prog__index { color: rgba(253,249,240,.62); }

/* --------------------------------------------------------------- counter */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.counter {
  background: var(--surface);
  padding: clamp(28px, 3.4vw, 54px) clamp(20px, 2.4vw, 36px);
  text-align: left;
}
.counter__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  line-height: 1;
  color: var(--green);
  font-weight: 300;
}
.counter__label {
  margin-top: .7rem;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --------------------------------------------------------------- gallery */
.gallery-marquee { overflow: hidden; width: 100%; }
.gallery-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.gallery-track figure {
  margin: 0;
  width: clamp(240px, 26vw, 420px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.gallery-track img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.gallery-track figure:hover img { transform: scale(1.05); }

.gallery-grid {
  columns: 4;
  column-gap: 14px;
}
.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  break-inside: avoid;
  background: var(--surface-2);
}
.gallery-grid img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8,50,26, .58);
  color: var(--on-photo);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.gallery-grid a:hover::after { opacity: 1; }

@media (max-width: 1200px) { .gallery-grid { columns: 3; } }
@media (max-width: 860px)  { .gallery-grid { columns: 2; } }
@media (max-width: 520px)  { .gallery-grid { columns: 1; } }

/* ---------------------------------------------------------------- donate */
/* the offering band: deep green, the darkest moment after the hero */
.donate {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}
.donate__bg { position: absolute; inset: 0; opacity: .24; }
.donate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 46%, rgba(8,50,26,.35), rgba(8,50,26,.85));
}
.donate__bg img { width: 100%; height: 100%; object-fit: cover; }
.donate__inner { position: relative; z-index: 2; text-align: center; }

/* ------------------------------------------------------------ page-header */
.page-header {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(140px, 18vh, 220px) var(--gutter) clamp(48px, 7vh, 96px);
  overflow: hidden;
}
.page-header__bg { position: absolute; inset: 0; z-index: 0; }
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,26,17,.86) 0%,
    rgba(10,26,17,.42) 46%,
    rgba(10,26,17,.88) 84%,
    rgba(10,26,17,1) 100%);
}
.page-header__inner { position: relative; z-index: 2; width: 100%; }
.crumbs {
  display: flex;
  gap: .7em;
  align-items: center;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.4rem;
}
.crumbs a:hover { color: var(--orange); }

/* ----------------------------------------------------------------- forms */
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .6em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font: inherit;
  padding: .85em 0;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--orange-deep);
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.contact-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .45s var(--ease), background .45s var(--ease);
}
.contact-card { background: var(--surface); }
.contact-card:hover { border-color: var(--orange-deep); background: var(--surface-2); }
.contact-card i { color: var(--orange-deep); font-size: 1.1rem; margin-bottom: .8rem; }
.contact-card h4 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.contact-card p { margin: 0; font-size: 1.02rem; line-height: 1.6; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(28px, 3vw, 44px);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--hairline);
}
/* column titles, highlighted in the logo's orange */
.footer-col h5 {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
  background: var(--orange-deep);
  padding: .55em .8em .5em .95em;
  margin: 0 0 1.4rem;
}
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: var(--text-dim); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--orange-deep); }
.footer-bottom {
  padding-top: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--text-faint);
}
.footer-bottom > * { min-width: 0; }
/* keep the legal line clear of the floating back-to-top button */
.footer-bottom > *:last-child { padding-right: 68px; }
@media (max-width: 640px) { .footer-bottom > *:last-child { padding-right: 0; } }
.footer-bottom a:hover { color: var(--orange-deep); }

/* to-top */
.to-top {
  position: fixed;
  right: clamp(16px, 2vw, 34px);
  bottom: clamp(16px, 2vw, 34px);
  z-index: 110;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--on-photo);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .35s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); color: var(--deep); }

/* ----------------------------------------------------- reveal animations */
/* Hidden only once js/story.js has claimed the page — so with no script, no
   GSAP or reduced motion, everything is simply there. The rest of the story
   styles are at the foot of this file. */
.has-story [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(26px);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1200px) {
  .wheel-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .grid--3, .grid--4, .grid--split, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { min-height: 56vh; }
  .split--reverse .split__media { order: 0; }

}

/* Eight links, the social row and the donations tab need about 1220px; below
   that the menu moves into a drawer. The drawer is deep green whatever state
   the header is in, so it sets its own tokens rather than inheriting them. */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-grid; position: relative; z-index: 130; }
  .header-right {
    --text: #FDF9F0;
    --text-dim: rgba(253,249,240, .66);
    --hairline: rgba(253,249,240, .16);
    --accent: var(--orange);
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 400px);
    background: var(--green-deep);
    color: var(--text);
    text-shadow: none;
    box-shadow: -30px 0 60px rgba(10, 26, 17, .3);
    padding: 110px clamp(24px, 6vw, 48px) 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .6s var(--ease);
    overflow-y: auto;
  }
  .header-right.is-open { transform: none; }
  .header-right > .site-nav      { order: 2; }
  .header-right > .social-row    { order: 3; }
  .header-right > .header-donate { order: 1; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .site-nav a { font-size: 1.5rem; font-family: var(--display); }
  .header-right .social-row { padding-left: 0; border-left: 0; }
  .header-right .social-row a { background: rgba(253,249,240, .08); }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .graha-card__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Sections added with the October 2026 content review
   ========================================================================== */

/* the living tradition: the words on the left, the floral mandala beside
   them — held inside the section, so nothing reaches up over the banner */
.invocation {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}
.invocation__text .lede { max-width: 60ch; }
.invocation__art {
  display: grid;
  place-items: center;
  color: var(--orange);
}
.invocation__mandala {
  width: min(100%, 520px);
  height: auto;
  opacity: .5;
  animation: spin 160s linear infinite;
}
@media (max-width: 980px) {
  .invocation { grid-template-columns: 1fr; }
  .invocation__mandala { width: clamp(160px, 44vw, 260px); }
}

/* the values heading keeps each of its three lines whole; the words sit beside it */
.values-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
@media (max-width: 980px) { .values-head { grid-template-columns: 1fr; } }

/* the italic pledge line that closes an intro — "Lokah samastah..." */
.pledge {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 40ch;
}
.pledge b { font-weight: 500; color: var(--accent-display); }

/* body copy set at reading width, for the long paragraphs in the review */
.prose p { margin: 0 0 1.1rem; color: var(--text-dim); line-height: 1.75; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose p.lede { color: var(--text-dim); }
.prose strong { color: var(--text); font-weight: 500; }

/* ------------------------------------------------------- principles card */
/* The nine values sit on the same wheel the grahas used to; the card beside
   it reads the same graha-card styles, with these few additions. */
.principle-node text { font-family: var(--deva); font-size: 22px; letter-spacing: 0; }
.principle-card__no {
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.principle-card__value {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--accent-display);
  margin: 0 0 1.1rem;
}
.principle-card__nav { display: flex; gap: 8px; margin-top: 2rem; }
.principle-card__nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  font-size: .78rem;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.principle-card__nav button:hover { background: var(--orange); border-color: var(--orange); color: var(--deep); }

/* all nine at once, on the trust page */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.principle {
  position: relative;
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background .5s var(--ease);
}
.principle:hover { background: var(--surface); }
.principle__no {
  font-family: var(--deva);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
}
.principle__name { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin: 1rem 0 .2rem; }
.principle__kind {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.principle__value {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent-display);
  margin: 1.1rem 0 .6rem;
}
.principle__text { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--text-dim); }
@media (max-width: 1100px) { .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .principle-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ the navagraha way */
.way-list { counter-reset: way; }
.way-list li {
  counter-increment: way;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: baseline;
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  line-height: 1.2;
  transition: padding-left .5s var(--ease);
}
.way-list li:first-child { border-top: 1px solid var(--hairline); }
.way-list li:hover { padding-left: .6rem; }
.way-list li::before {
  content: counter(way, decimal-leading-zero);
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--text-faint);
}
.way-list em { font-style: italic; color: var(--accent-display); }

/* the core words, carried across a deep band */
.core-band {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 46px) 0;
  background: var(--green-deep);
}
.core-band__label {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.1rem;
}
.core-band__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.core-band__track {
  display: flex;
  width: max-content;
  animation: core-drift 46s linear infinite;
}
.core-band__set { display: flex; align-items: center; flex: none; }
.core-band__set span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--text);
  padding: 0 clamp(14px, 1.8vw, 28px);
  white-space: nowrap;
}
.core-band__set span:nth-of-type(3n+1) { color: var(--orange); }
.core-band__set i {
  width: 7px; height: 7px;
  flex: none;
  background: var(--orange);
  transform: rotate(45deg);
}
@keyframes core-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .core-band__track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .core-band__set { flex-wrap: wrap; justify-content: center; }
  .core-band__set[aria-hidden="true"] { display: none; }
}

/* ----------------------------------------------------------- seva grid */
/* ten kinds of seva: five across, then two, then one */
.seva-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seva-grid .prog { min-height: clamp(300px, 32vh, 360px); }
.seva-grid .prog__title { margin-top: 1.4rem; }
.seva-grid .prog__title { font-size: clamp(1.25rem, 1.5vw, 1.6rem); }
.seva-grid .prog__text { font-size: .9rem; }
@media (max-width: 1240px) { .seva-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .seva-grid { grid-template-columns: 1fr; } }
/* a card with no photograph still needs a dark ground to turn over onto */
.prog__bg { background: var(--green-deep); }

/* ------------------------------------------------ the goshala offering band */
.goshala-band {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  padding-block: var(--section-y);
}
.goshala-band__bg { position: absolute; inset: 0; opacity: .8; }
.goshala-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* dark behind the words on the left, opening up behind the offering card */
.goshala-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,26,17,.93) 0%, rgba(10,26,17,.86) 48%, rgba(10,26,17,.5) 72%, rgba(10,26,17,.36) 100%);
}
@media (max-width: 980px) {
  .goshala-band__bg::after { background: rgba(10,26,17,.78); }
}
.goshala-band__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
}
.goshala-band__tag {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--orange);
  margin: 1.2rem 0 1.6rem;
}

.offer-card {
  background: rgba(253,249,240, .05);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  padding: clamp(24px, 3vw, 44px);
}
.offer-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.offer-card > p { color: var(--text-dim); font-size: .95rem; margin: .8rem 0 0; }
.offer-options { display: grid; gap: 10px; margin: 1.6rem 0; }
.offer-option {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .2rem 1rem;
  align-items: baseline;
  text-align: left;
  padding: 1rem 1.2rem;
  border: 1px solid var(--hairline);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.offer-option b {
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--orange);
}
.offer-option span { font-weight: 500; }
.offer-option small { color: var(--text-dim); font-size: .84rem; }
.offer-option:hover { border-color: rgba(253,249,240, .4); }
.offer-option[aria-checked="true"] { border-color: var(--orange); background: rgba(231,121,29, .12); }
.offer-option--other { grid-template-columns: 1fr; }
.offer-option--other b { grid-row: auto; font-size: 1.15rem; }
.offer-card__note { margin: 1.2rem 0 0; font-size: .8rem; color: var(--text-faint); }
@media (max-width: 980px) { .goshala-band__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .offer-option { grid-template-columns: 1fr; } .offer-option b { grid-row: auto; } }

/* ----------------------------------------------------------------- quotes */
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.quote {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 52px);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.quote__portrait {
  width: clamp(104px, 11vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(.25) sepia(.18);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--hairline);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.85rem);
  line-height: 1.32;
}
.quote figcaption {
  margin-top: 1.1rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 1100px) { .quotes__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px)  { .quote { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ----------------------------------------------------------------- events */
/* One row per event: the date, the event, and its photograph in a circle
   where the timing used to sit. Built by js/navagraha.js from the event
   data, so the same list feeds the home page, Events and Programs. */
.event-list { border-top: 1px solid var(--hairline); }
.event {
  display: grid;
  grid-template-columns: clamp(92px, 10vw, 150px) minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 56px);
  align-items: center;
  padding: clamp(22px, 2.8vw, 40px) 0;
  border-bottom: 1px solid var(--hairline);
}
.event__date { line-height: 1; }
.event__day {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 300;
  color: var(--accent);
}
.event__month {
  display: block;
  margin-top: .5rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.event__weekday {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.event__no {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 .6rem;
}
.event__title { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.event__title a:hover { color: var(--accent-display); }
.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: .8rem 0 0;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.event__meta i { color: var(--accent); margin-right: .45em; }
.event__text { margin: 1rem 0 0; color: var(--text-dim); max-width: 64ch; line-height: 1.7; }
.event__links { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.event__links a { font-size: .86rem; }
.event__image {
  display: block;
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--hairline);
  background: var(--surface-2);
}
.section--light .event__image { box-shadow: 0 0 0 6px var(--surface-2), 0 0 0 7px var(--hairline); }
.event__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event__image:hover img { transform: scale(1.07); }
.event--past .event__day { color: var(--text-faint); }
.event-empty {
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-dim);
}
@media (max-width: 760px) {
  .event { grid-template-columns: minmax(0, 1fr) auto; }
  .event__date { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .9rem; }
  .event__month, .event__weekday { margin-top: 0; }
  .event__image { width: 96px; align-self: start; }
}

/* the programme cards: the first one wide, as the featured programme */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}
.program-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: border-color .45s var(--ease);
}
.program-card:hover { border-color: var(--orange-deep); }
.program-card:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; }
.program-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.program-card:first-child .program-card__media { aspect-ratio: auto; min-height: 420px; }
.program-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.program-card:hover .program-card__media img { transform: scale(1.05); }
.program-card__badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 1;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .55em 1.1em;
  border-radius: 100px;
  background: var(--orange);
  color: var(--deep);
}
.program-card__badge--past { background: var(--cream); }
.program-card__body {
  padding: clamp(24px, 3vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.program-card__date {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.program-card__title { font-size: clamp(1.8rem, 3vw, 3rem); }
.program-card__body p:not(.program-card__date) { margin: 0; color: var(--text-dim); line-height: 1.7; }
.program-card__body .link-arrow { align-self: flex-start; margin-top: .6rem; }
@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-card:first-child { grid-template-columns: 1fr; }
  .program-card:first-child .program-card__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* filters — the gallery categories and the programme views share these */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.filter-bar button {
  padding: .7em 1.4em;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.filter-bar button:hover { border-color: var(--green); color: var(--text); }
.filter-bar button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-photo); }
.filter-bar button small { opacity: .6; margin-left: .35em; }

.gallery-grid a[hidden] { display: none; }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 2.4rem 1rem .9rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-photo);
  background: linear-gradient(180deg, transparent, rgba(10,26,17,.78));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.gallery-grid a:hover figcaption { opacity: 1; transform: none; }

/* --------------------------------------------------------- the timeline */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(150px, 17vw, 250px);
  width: 1px;
  background: var(--hairline);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(150px, 17vw, 250px) minmax(0, 1fr);
  padding: clamp(22px, 2.6vw, 38px) 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: clamp(150px, 17vw, 250px);
  top: calc(clamp(22px, 2.6vw, 38px) + .55rem);
  width: 9px; height: 9px;
  margin-left: -4px;
  background: var(--surface);
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: background .4s var(--ease);
}
.timeline__item:hover::before { background: var(--accent); }
.timeline__when {
  padding-right: clamp(20px, 2.6vw, 44px);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.2;
  color: var(--accent);
}
.timeline__what { padding-left: clamp(24px, 3vw, 56px); }
.timeline__what h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); margin-bottom: .7rem; }
.timeline__what p { margin: 0; color: var(--text-dim); line-height: 1.75; max-width: 70ch; }
@media (max-width: 760px) {
  .timeline::before, .timeline__item::before { left: 4px; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline__when { padding: 0 0 .5rem; }
  .timeline__what { padding-left: 0; }
}

/* a centred closing statement */
.statement {
  text-align: center;
  max-width: 900px;
  margin: clamp(48px, 6vw, 96px) auto 0;
}
.statement h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.statement h3 em { font-style: italic; color: var(--accent-display); }
.statement p { color: var(--text-dim); margin: 1.2rem auto 0; max-width: 62ch; line-height: 1.75; }

/* ----------------------------------------------------------- seva blocks */
/* the Our Seva page: one block per seva, photograph and text alternating */
.seva-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: clamp(32px, 4vw, 56px) auto 0;
}
/* every seva shown highlighted in green, as the corrections asked */
.seva-index a {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .65em 1.2em;
  border-radius: 100px;
  border: 1px solid var(--green);
  background: var(--green);
  font-size: .84rem;
  color: var(--on-photo);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.seva-index a span { font-family: var(--display); color: var(--orange); transition: color .35s var(--ease); }
.seva-index a:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-2px); }
.seva-index a:hover span { color: var(--cream); }

.seva-block { padding: clamp(64px, 8vw, 132px) var(--gutter); scroll-margin-top: 80px; }
.seva-block:nth-of-type(even) { background: var(--surface-2); }
.seva-block__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}
.seva-block--flip .seva-block__media { order: 2; }
.seva-block__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-3);
}
.seva-block__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seva-block__head { display: flex; align-items: flex-end; gap: 1.2rem; margin-bottom: 1.2rem; }
.seva-block__head .chapter-no { margin: 0; }
.seva-block__head .eyebrow { margin: 0 0 .6rem; }
.seva-block h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); max-width: 18ch; }
.seva-block .lede { margin-top: 1.4rem; max-width: 60ch; }
.seva-points {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid;
  border-top: 1px solid var(--hairline);
}
.seva-points li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: .4rem 1.6rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.65;
}
.seva-points b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
}
@media (max-width: 980px) {
  .seva-block__grid { grid-template-columns: 1fr; }
  .seva-block--flip .seva-block__media { order: 0; }
  .seva-block__media { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) { .seva-points li { grid-template-columns: 1fr; } }

/* where no honest photograph exists, a drawn plate stands in */
.plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(238,118,35, .18), transparent 70%),
    linear-gradient(160deg, var(--green-deep) 0%, color-mix(in srgb, var(--green) 45%, var(--green-deep)) 48%, var(--deep) 100%);
  color: rgba(253,249,240, .9);
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  inset: clamp(18px, 2.4vw, 36px);
  border: 1px solid rgba(253,249,240, .14);
  pointer-events: none;
}
.plate::after { inset: calc(clamp(18px, 2.4vw, 36px) + 7px); border-color: rgba(253,249,240, .07); }
.plate svg { width: clamp(110px, 16vw, 200px); height: auto; stroke-width: .9; }
.plate__label {
  position: absolute;
  bottom: clamp(36px, 4vw, 60px);
  left: 0; right: 0;
  text-align: center;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(253,249,240, .5);
}

/* ----------------------------------------------------------- small tiles */
.kind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.kind {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(22px, 2.6vw, 36px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.kind svg { width: 40px; height: 40px; color: var(--accent); flex: none; }
.kind h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
@media (max-width: 900px) { .kind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kind-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- the FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(18px, 2.2vw, 28px) 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span:first-child {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--text-faint);
}
.faq summary i {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  font-size: .72rem;
  color: var(--accent);
  transition: transform .45s var(--ease), background .35s var(--ease);
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--surface-2); }
.faq summary:hover { color: var(--accent-display); }
.faq details p {
  margin: 0;
  padding: 0 3.4rem clamp(20px, 2.4vw, 30px) 4rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 72ch;
}
@media (max-width: 560px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) auto; }
  .faq summary span:first-child { display: none; }
  .faq details p { padding: 0 0 1.4rem; }
}

/* --------------------------------------------------------- contact extras */
.captcha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.captcha canvas {
  width: 150px;
  height: 52px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.captcha__refresh {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  color: var(--accent);
  transition: transform .5s var(--ease), background .35s var(--ease);
}
.captcha__refresh:hover { transform: rotate(120deg); background: var(--surface-2); }
.captcha .field { flex: 1; min-width: 160px; margin-bottom: 0; }
.form-note.is-error { color: var(--orange-deep) !important; }

.bank-card dl { margin-top: .6rem; }
.upi-qr { margin: 1.4rem 0 0; max-width: 260px; }
.upi-qr img { display: block; width: 100%; height: auto; border-radius: 6px; }
.upi-qr figcaption { margin-top: .6rem; font-size: .8rem; color: var(--text-dim); }
.chosen-seva {
  display: none;
  margin: 0 0 1.2rem;
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--orange);
  background: rgba(231,121,29, .08);
  font-size: .92rem;
}
.chosen-seva.is-on { display: block; }

.reach-card {
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid var(--hairline);
  background: var(--surface);
  height: 100%;
}
.reach-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--on-photo);
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
}
.reach-card h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: .8rem; }
.reach-card p { margin: 0; color: var(--text-dim); line-height: 1.7; }

.map-embed { position: relative; width: 100%; height: clamp(360px, 52vh, 560px); background: var(--surface-3); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-embed__link {
  position: absolute;
  right: var(--gutter);
  top: 24px;
  z-index: 1;
}

/* ----------------------------------------------------- legal page prose */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 2.6rem 0 .9rem; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.8; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal__updated { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }

/* a shorter banner, for the pages that are mostly reading */
.page-header--short { min-height: 52vh; }

/* footer additions */
.nowrap { white-space: nowrap; }
.footer-motto { color: var(--text); font-size: .98rem; line-height: 1.6; margin: 0 0 .9rem; }
.footer-about { color: var(--text-dim); font-size: .9rem; line-height: 1.7; max-width: 40ch; margin: 0; }
.footer-col address { font-style: normal; color: var(--text-dim); line-height: 1.7; }
.footer-legal a { margin-left: .2em; }

/* an event page: the story on the left, the facts beside it */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
}
.detail-grid > aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > aside { position: static; }
}

/* three counters stay on one row until the phone breakpoint */
.counters--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.counters--3 .counter { padding-inline: clamp(16px, 1.8vw, 28px); }
@media (max-width: 640px) { .counters--3 { grid-template-columns: 1fr; } }

/* the footer's social row needs no divider of its own */
.footer-col .social-row { padding-left: 0; border-left: 0; }

/* a short, even set of photographs: one clean grid instead of masonry */
.gallery-grid--even {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-grid--even a { margin: 0; aspect-ratio: 4 / 3; }
.gallery-grid--even figure, .gallery-grid--even img { height: 100%; }
.gallery-grid--even img { object-fit: cover; }
@media (max-width: 860px) { .gallery-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   The scroll story — the pieces js/story.js moves
   Every rule here waits for .has-story, which the script sets only when it
   can run; without it the page reads exactly as it would with no motion.
   ========================================================================== */

/* the whole sentence, kept for screen readers when a line is split into words */
.story-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* a headline word rises inside its own slot. The slot clips a little wider
   than the word, so italic overhangs and descenders are never cut. */
.sw { display: inline-block; clip-path: inset(-.15em -.12em -.18em -.12em); }
.sw__i { display: inline-block; }
/* a full stop that rides in an italic word's slot keeps the headline's own setting */
.sl--plain { font-style: normal; color: var(--text); }

/* the eyebrow's lamp-dot lights (--lamp) and its rule draws out (--rule) */
.has-story .eyebrow::before { transform: scale(var(--lamp, 1)); }
.has-story .eyebrow--line::after { transform: scaleX(var(--rule, 1)); transform-origin: 0 50%; }

/* the outlined chapter numeral fills with warm ink, from the foot up, while
   its chapter is read (--fill, 0% to 100%) */
.chapter-no { --chapter-ink: rgba(223, 95, 24, .3); }
.on-dark .chapter-no { --chapter-ink: rgba(231, 121, 29, .4); }
.has-story .chapter-no {
  background-image: linear-gradient(0deg, var(--chapter-ink) var(--fill, 0%), transparent calc(var(--fill, 0%) + 1.5%));
  -webkit-background-clip: text;
  background-clip: text;
}

/* the Navagraha Way: each line is lit like a lamp as the reader reaches it */
.has-story .way-list li {
  color: var(--text-faint);
  transition: padding-left .5s var(--ease), color .9s var(--ease);
}
.has-story .way-list li em { color: inherit; transition: color .9s var(--ease); }
.has-story .way-list li::before { transition: color .9s var(--ease); }
.has-story .way-list li.is-lit { color: var(--text); }
.has-story .way-list li.is-lit em { color: var(--accent-display); }
.has-story .way-list li.is-lit::before { color: var(--accent); }

/* the chronology: a line of light drawn down through the ages (--line), and
   each era lit as the line reaches its marker */
.has-story .timeline::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(150px, 17vw, 250px);
  width: 1px;
  background: var(--accent);
  transform: scaleY(var(--line, 0));
  transform-origin: 50% 0;
}
.has-story .timeline__item::before {
  z-index: 1;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.has-story .timeline__item.is-lit::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.has-story .timeline__when,
.has-story .timeline__what { transition: opacity .8s var(--ease); }
.has-story .timeline__item:not(.is-lit) .timeline__when,
.has-story .timeline__item:not(.is-lit) .timeline__what { opacity: .4; }
@media (max-width: 760px) { .has-story .timeline::after { left: 4px; } }

/* the home banner keeps its first words, its slow zoom and its timer until
   the lamp has lifted, so the opening is seen rather than missed */
.has-story .hero:not(.is-ready) .hero-slide__body > * { opacity: 0; transform: translateY(26px); transition: none; }
.has-story .hero:not(.is-ready) .hero-slide__media img { transform: scale(1.08); transition: none; }
.has-story .hero:not(.is-ready) .hero-tab__bar i { animation-play-state: paused; }

/* the reading line along the top of the window */
.story-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 125;
  pointer-events: none;
}
.story-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* on paper, everything is simply there */
@media print {
  .story-progress { display: none; }
  .has-story [data-reveal], .has-story [data-reveal] *, .has-story .sw__i, .has-story .sl,
  .has-story .split__media, .has-story .site-footer *,
  .has-story .timeline__when, .has-story .timeline__what {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  }
}
