/* Landing page (themes/basic/mainindex.html + themes/basic/home/*) */

/* scroll reveal (only when JS is running; content is visible without JS) */
/* Reveal: a one-off fade-up animation. It moves with the separate `translate` property, so the
   element's own `transform` (hover lift) and transitions are untouched — no flicker on hover/scroll. */
.js-reveal [data-reveal]:not(.is-visible) { opacity: 0; }
.js-reveal [data-reveal].is-visible { animation: reveal-up .9s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes reveal-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* shared: eyebrow with a short gold rule, section intro */
.page-home .eyebrow { display: inline-flex; align-items: center; gap: .65rem; }
.page-home .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.page-home .section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.ad-slot:empty { display: none; }
.ad-slot { margin-top: var(--space-5); }

/* ---------------------------------------------------------------- 1. hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--ink);
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.hero__bg {   /* banner image on its own layer: slow "breathing" zoom */
  position: absolute; inset: -2%; z-index: -2;
  background: var(--banner-image, none) center / cover no-repeat;
  animation: hero-zoom 28s ease-in-out infinite alternate; will-change: transform; backface-visibility: hidden;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 15% 40%, rgba(12, 10, 9, .6), transparent 70%),
    linear-gradient(90deg, rgba(12, 10, 9, .9) 0%, rgba(12, 10, 9, .62) 55%, rgba(12, 10, 9, .4) 100%);
}
.hero::after {   /* soft fade into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to top, rgba(12, 10, 9, .7), transparent);
}
/* rising sparks — the light of the Akhand Deep */
.hero__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__sparks i {
  position: absolute; bottom: -10px; left: var(--x); width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8 0%, rgba(248, 182, 0, .8) 40%, transparent 70%);
  opacity: 0; will-change: transform, opacity;
  animation: spark var(--t, 14s) linear var(--delay, 0s) infinite;
}
.hero__sparks i:nth-child(1)  { --x: 6%;  --t: 15s; --delay: 0s;  --s: 4px; }
.hero__sparks i:nth-child(2)  { --x: 14%; --t: 19s; --delay: 3s;  --s: 3px; }
.hero__sparks i:nth-child(3)  { --x: 23%; --t: 13s; --delay: 6s;  --s: 5px; }
.hero__sparks i:nth-child(4)  { --x: 31%; --t: 17s; --delay: 1s;  --s: 3px; }
.hero__sparks i:nth-child(5)  { --x: 42%; --t: 21s; --delay: 8s;  --s: 4px; }
.hero__sparks i:nth-child(6)  { --x: 51%; --t: 16s; --delay: 4s;  --s: 2px; }
.hero__sparks i:nth-child(7)  { --x: 60%; --t: 18s; --delay: 10s; --s: 4px; }
.hero__sparks i:nth-child(8)  { --x: 68%; --t: 14s; --delay: 2s;  --s: 3px; }
.hero__sparks i:nth-child(9)  { --x: 77%; --t: 20s; --delay: 7s;  --s: 5px; }
.hero__sparks i:nth-child(10) { --x: 85%; --t: 15s; --delay: 5s;  --s: 3px; }
.hero__sparks i:nth-child(11) { --x: 92%; --t: 22s; --delay: 9s;  --s: 4px; }
.hero__sparks i:nth-child(12) { --x: 37%; --t: 24s; --delay: 12s; --s: 2px; }
@keyframes spark {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(18px, -45vh) scale(1); opacity: .7; }
  100% { transform: translate(-12px, -95vh) scale(.4); opacity: 0; }
}

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.hero__emblem {
  display: block; width: auto; max-width: min(100%, 440px); max-height: 150px; object-fit: contain; margin-bottom: var(--space-6);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45));
}
.hero h1 { color: var(--white); margin-bottom: var(--space-5); text-wrap: balance; }
.hero__lead {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: var(--space-6);
  font-size: var(--text-xl); font-weight: var(--weight-light); color: rgba(255, 255, 255, .88);
}
.hero__lead i { color: var(--saffron-300); font-size: .9em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__raw { color: var(--white); }
.hero__ad { margin-top: var(--space-6); }
/* entrance: staggered fade-up on load */
.hero-in { animation: hero-in .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__emblem.hero-in { animation: hero-in .9s var(--ease) both, float 6s ease-in-out 1.2s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* gold glow sweep on the main action */
.btn-glow { position: relative; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(248, 182, 0, .7); }
.btn-glow::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  animation: sweep 4.5s ease-in-out 2s infinite;
}
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--saffron-300); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- hero quick links (glass panel) */
.quick-links {
  position: relative; color: var(--white);
  background: linear-gradient(160deg, rgba(43, 33, 26, .9), rgba(20, 16, 12, .93));
  border: 1px solid rgba(251, 207, 92, .22); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: var(--space-3);
}
.quick-links::before {   /* thin gold light along the top edge */
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron-300), transparent);
}
.quick-links__tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 var(--space-3); list-style: none;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); border: 0;
}
.quick-links__tabs .nav-item { flex: 1; }
.quick-links__tabs .nav-link {
  width: 100%; padding: .6rem .75rem; border: 0; border-radius: var(--radius-pill); background: none;
  color: rgba(255, 255, 255, .7); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--duration), color var(--duration);
}
.quick-links__tabs .nav-link:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.quick-links__tabs .nav-link.active { color: var(--ink); background: var(--saffron-500); box-shadow: 0 6px 16px -6px rgba(248, 182, 0, .8); }
.quick-links__panels { padding: 0 var(--space-1) var(--space-1); max-height: 440px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
/* featured link (the editor's coloured button) */
.ql-feature {
  display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius); text-decoration: none; color: var(--ink) !important;
  background: linear-gradient(120deg, var(--saffron-300), var(--saffron-500) 60%, #f59e0b);
  box-shadow: 0 14px 30px -14px rgba(248, 182, 0, .9);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration);
}
.ql-feature:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(248, 182, 0, 1); }
.ql-feature__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(28, 25, 23, .9); color: var(--saffron-300); font-size: 1.25rem; }
.ql-feature__text { flex: 1; min-width: 0; font-weight: var(--weight-semibold); line-height: 1.3; }
.ql-feature__badge {
  display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem;
  font-size: .7rem; font-weight: var(--weight-semibold); letter-spacing: .1em; text-transform: uppercase; color: rgba(28, 25, 23, .7);
}
.ql-feature__badge .live-dot { --dot: #b91c1c; }
.ql-feature__go { font-size: 1.2rem; transition: transform var(--duration) var(--ease); }
.ql-feature:hover .ql-feature__go { transform: translateX(4px); }
/* link tiles: two columns */
.ql-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.ql-item {
  display: flex; align-items: center; gap: var(--space-3); height: 100%; padding: .7rem .75rem;
  border-radius: 12px; text-decoration: none; color: rgba(255, 255, 255, .92) !important; font-size: var(--text-sm); line-height: 1.3;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  transition: background var(--duration), border-color var(--duration), transform var(--duration) var(--ease);
}
.ql-item:hover { background: rgba(248, 182, 0, .1); border-color: rgba(248, 182, 0, .45); transform: translateY(-2px); }
.ql-item__icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(248, 182, 0, .14); color: var(--saffron-300); font-size: 1rem; transition: background var(--duration), color var(--duration);
}
.ql-item:hover .ql-item__icon { background: var(--saffron-500); color: var(--ink); }
.ql-item__text { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ql-item__go { font-size: .75rem; color: rgba(255, 255, 255, .4); transition: color var(--duration), transform var(--duration); }
.ql-item:hover .ql-item__go { color: var(--saffron-300); transform: translateX(2px); }
/* stagger the items when a tab is shown */
.quick-links .tab-pane.active .ql-list li { animation: hero-in .5s var(--ease) both; }
.quick-links .tab-pane.active .ql-list li:nth-child(1) { animation-delay: .05s; }
.quick-links .tab-pane.active .ql-list li:nth-child(2) { animation-delay: .1s; }
.quick-links .tab-pane.active .ql-list li:nth-child(3) { animation-delay: .15s; }
.quick-links .tab-pane.active .ql-list li:nth-child(4) { animation-delay: .2s; }
.quick-links .tab-pane.active .ql-list li:nth-child(5) { animation-delay: .25s; }
.quick-links .tab-pane.active .ql-list li:nth-child(6) { animation-delay: .3s; }
.quick-links .tab-pane.active .ql-list li:nth-child(n+7) { animation-delay: .35s; }
/* social */
.ql-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .08); }
.ql-social__label { margin-right: auto; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ql-social a:not(.ql-social__more) {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: rgba(255, 255, 255, .07); color: var(--white) !important; font-size: 1.05rem;
  transition: background var(--duration), color var(--duration), transform var(--duration) var(--ease);
}
.ql-social a:not(.ql-social__more):hover { background: var(--saffron-500); color: var(--ink) !important; transform: translateY(-3px); }
.ql-social__more { font-size: var(--text-sm); color: var(--saffron-300) !important; text-decoration: none; margin-left: var(--space-2); }
/* search */
.ql-search { padding: var(--space-2) var(--space-1) var(--space-1); }
.ql-search label { display: block; font-size: var(--text-lg); font-weight: var(--weight-light); margin-bottom: var(--space-3); }
.ql-search__field {
  display: flex; align-items: center; gap: var(--space-2); padding: 6px 6px 6px var(--space-4);
  border-radius: var(--radius-pill); background: var(--white); color: var(--ink);
}
.ql-search__field i { color: var(--stone-500); }
.ql-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--text-base); color: var(--ink); }
.ql-search__field .btn-theme { min-height: 40px; padding: .5rem 1.1rem; }
.ql-search__popular { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; font-size: var(--text-sm); }
.ql-search__popular span { color: rgba(255, 255, 255, .6); margin-right: var(--space-1); }
.ql-search__popular a {
  padding: .3rem .8rem; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white) !important; text-decoration: none; transition: border-color var(--duration), background var(--duration);
}
.ql-search__popular a:hover { border-color: var(--saffron-500); background: rgba(248, 182, 0, .12); }
.ql-raw { color: var(--white); }
.ql-raw a { color: var(--saffron-300); }

/* pulsing "live" dot (notices, today badge) */
.live-dot { --dot: var(--saffron-600); position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------------------------------------------------------------- 2. notices */
.notices { background: var(--saffron-50); border-bottom: 1px solid var(--saffron-100); }
.notices__inner { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-4); }
.notices__label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--saffron-100);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--saffron-800);
}
.notices__list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.notices__list li { padding-inline: var(--space-4); border-left: 1px solid var(--saffron-100); }
.notices__list li:first-child { border-left: 0; padding-left: 0; }
.notices__list a { display: flex; align-items: flex-start; gap: .4rem; color: var(--ink); font-size: var(--text-sm); text-decoration: none; line-height: var(--leading-snug); }
.notices__list a i { margin-top: .15rem; font-size: .75rem; color: var(--saffron-700); opacity: 0; transform: translateX(-4px); transition: opacity var(--duration), transform var(--duration); }
.notices__list a:hover { color: var(--saffron-800); }
.notices__list a:hover i { opacity: 1; transform: none; }
.notices__all { flex-shrink: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-link); text-decoration: none; white-space: nowrap; }
.notices__all:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 3. who we are */
.about-intro { padding-bottom: 0; }
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-8); align-items: center; }
.about-intro__title { font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-5); text-wrap: balance; }
.lead-text { font-size: var(--text-lg); color: var(--stone-700); }
.pillars { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.pillars li { display: flex; flex-direction: column; gap: .3rem; padding-top: var(--space-4); border-top: 2px solid var(--saffron-500); }
.pillars__icon { color: var(--saffron-700); font-size: 1.35rem; line-height: 1; margin-bottom: .25rem; }
.pillars strong { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--ink); }
.pillars span:last-child { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }
.about-intro__media { position: relative; margin: 0; isolation: isolate; }
.about-intro__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-intro__media::before {   /* gold frame offset behind the photo */
  content: ""; position: absolute; inset: calc(var(--space-5) * -1) var(--space-5) var(--space-5) calc(var(--space-5) * -1);
  border: 1px solid var(--saffron-300); border-radius: var(--radius-lg); z-index: -1;
}
.about-intro__media figcaption {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, .72); backdrop-filter: blur(6px); color: var(--white); font-size: var(--text-xs); letter-spacing: .04em;
}

/* impact numbers: full-width dark band */
.impact {
  margin-top: var(--section-y); color: var(--color-on-dark);
  background: radial-gradient(90% 160% at 50% 0%, #2b211a, var(--ink) 70%);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stats__item { display: flex; flex-direction: column-reverse; padding: var(--space-7) var(--space-5); border-left: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.stats__item:first-child { border-left: 0; }
.stats dt { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-on-dark-muted); }
.stats dd {
  margin: 0 0 var(--space-3); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem); font-weight: var(--weight-thin);
  line-height: 1; color: var(--saffron-300); font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 4. vision */
.vision { position: relative; overflow: hidden; text-align: center; }
.vision::before {   /* faint concentric rings, like the light of the deep */
  content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 900px; transform: translateX(-50%);
  background: repeating-radial-gradient(circle, transparent 0 58px, rgba(248, 182, 0, .09) 59px 60px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%); pointer-events: none;
}
.vision .container { position: relative; }
.vision__head { max-width: 58rem; margin: 0 auto var(--space-8); }
.vision__motto { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.15; margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.vision__head p { font-size: var(--text-lg); color: var(--color-muted); max-width: 42rem; margin-inline: auto; }
.vision__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); text-align: left; }
.vision__list li {
  position: relative; padding: var(--space-6); border-radius: var(--radius); background: var(--white);
  border: var(--hairline); transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration) var(--ease);
}
.vision__list li:hover { border-color: var(--saffron-500); box-shadow: var(--shadow); transform: translateY(-3px); }
.vision__no { display: block; font-size: var(--text-3xl); font-weight: var(--weight-thin); color: var(--saffron-600); line-height: 1; margin-bottom: var(--space-4); }
.vision__list h3 { font-size: var(--text-xl); font-weight: var(--weight-medium); margin: 0 0 var(--space-2); }
.vision__list h3 a { color: var(--ink); text-decoration: none; }
.vision__list h3 a::after { content: ""; position: absolute; inset: 0; }
.vision__list p { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }
.vision__more { margin: var(--space-7) 0 0; }

/* ---------------------------------------------------------------- 5. pathways + work tiles */
.pathways-grid { --min: 320px; }
.work-grid { --min: 300px; }
/* CMS icons are light-blue PNGs: use them as a mask so they take the brand colour */
.tile__icon--mask::before {
  content: ""; width: 28px; height: 28px; background: var(--saffron-700);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.tile:hover .tile__icon { background: var(--saffron-500); }
.tile:hover .tile__icon--mask::before { background: var(--ink); }
.tile:hover .tile__icon i { color: var(--ink); }
.tile__icon { transition: background var(--duration) var(--ease); }
.tile__go {
  margin-top: auto; align-self: flex-start; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: var(--hairline); color: var(--saffron-700);
  transition: background var(--duration), color var(--duration), transform var(--duration) var(--ease);
}
.tile:hover .tile__go { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateX(3px); }
.tile--row { flex-direction: row; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); }
.tile--row .tile__icon { flex-shrink: 0; }
.tile--row h3 { margin-bottom: .3rem; }

/* ---------------------------------------------------------------- today at Shantikunj (dark, temple-at-dusk) */
.today {
  position: relative; isolation: isolate; overflow: hidden; color: var(--color-on-dark);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(248, 182, 0, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(180, 83, 9, .22), transparent 70%),
    linear-gradient(180deg, #1f1712, var(--ink));
}
.today::before {   /* faint mandala rings behind the date */
  content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(248, 182, 0, .07) 39px 40px);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%); pointer-events: none;
}
.today .eyebrow { color: var(--saffron-300); }
.today h2, .today h3 { color: var(--white); }
.today__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-7); }
.today__intro { max-width: 40rem; }
.today__intro h2 { font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-3); }
.today__intro p { color: var(--color-on-dark-muted); font-size: var(--text-lg); margin: 0; }
.today__date { display: flex; align-items: center; gap: var(--space-5); }
/* calendar leaf */
.leaf {
  position: relative; display: grid; justify-items: center; min-width: 132px; padding: var(--space-4) var(--space-4) var(--space-3);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); transform: rotate(-3deg);
}
.leaf::before {   /* binding strip */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--saffron-600), var(--saffron-500));
}
.leaf__day { font-size: 3.25rem; font-weight: var(--weight-thin); line-height: 1; margin-top: var(--space-2); color: var(--saffron-800); }
.leaf__month { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .08em; text-transform: uppercase; margin-top: var(--space-2); }
.leaf__week { font-size: var(--text-xs); color: var(--stone-500); }
.today__label {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 var(--space-4);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--saffron-300) !important;
}
.today__label::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); margin-left: var(--space-3); }

/* darshan bento: tall feature + 3x2 squares */
.darshan__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.darshan__item {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px;
}
.darshan__item--feature { grid-row: span 2; aspect-ratio: auto; }
.darshan__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter var(--duration); }
.darshan__item--feature img { object-position: center 30%; }
.darshan__item:hover img { transform: scale(1.06); }
/* the photos carry their own title band: the caption is a small pill shown on hover/focus */
.darshan__cap {
  position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: .45rem .5rem .45rem .9rem; border-radius: var(--radius-pill);
  background: rgba(12, 10, 9, .78); backdrop-filter: blur(6px); color: var(--white);
  font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.2;
  opacity: 0; transform: translateY(8px); transition: opacity var(--duration), transform var(--duration) var(--ease);
}
.darshan__cap span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.darshan__cap i {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem;
  background: var(--saffron-500); color: var(--ink);
}
.darshan__item:hover .darshan__cap, .darshan__item:focus-visible .darshan__cap { opacity: 1; transform: none; }
.darshan__item:hover { outline-color: var(--saffron-500); }

/* collection cards: cover on a stack of cards */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-6) var(--space-5); margin-top: var(--space-7); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack__cover { position: relative; display: block; aspect-ratio: 1; margin: 10px 10px 0 0; }
.stack__cover::before, .stack__paper {   /* the cards behind */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: #3a2d22;
  border: 1px solid rgba(255, 255, 255, .08); transition: transform .4s var(--ease);
}
.stack__cover::before { transform: rotate(6deg) translate(8px, -4px); background: #2c221b; }
.stack__paper { transform: rotate(3deg) translate(4px, -2px); }
.stack__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .8); transition: transform .4s var(--ease);
}
.stack__cover:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.stack__cover:hover::before { transform: rotate(10deg) translate(16px, -6px); }
.stack__cover:hover .stack__paper { transform: rotate(5deg) translate(8px, -3px); }
.stack__count {
  position: absolute; z-index: 1; right: var(--space-3); bottom: var(--space-3); display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: var(--radius-pill); background: rgba(12, 10, 9, .75); backdrop-filter: blur(4px);
  color: var(--white); font-size: var(--text-xs); font-weight: var(--weight-semibold);
}
.stack__body h3 { display: flex; align-items: center; gap: .5rem; font-size: var(--text-base); font-weight: var(--weight-medium); margin: 0 0 .2rem; }
.stack__body h3 i { color: var(--saffron-300); }
.stack__body p { margin: 0; font-size: var(--text-sm); color: var(--color-on-dark-muted); }

/* shared rail controls (literature shelf, journey) */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.rail-head h3 { font-size: var(--text-lg); font-weight: var(--weight-regular); margin: 0; }
.rail-buttons { display: flex; gap: var(--space-2); }
.rail-buttons button {
  width: 42px; height: 42px; border-radius: 50%; border: var(--hairline); background: var(--white); color: var(--ink);
  display: grid; place-items: center; transition: background var(--duration), border-color var(--duration);
}
.rail-buttons button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card-x__more { align-self: flex-start; justify-content: flex-start; }

/* ---------------------------------------------------------------- latest */
.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: var(--stone-100); list-style: none; margin: 0; }
.section--alt .segmented { background: var(--white); border: var(--hairline); }
.segmented button {
  border: 0; background: none; padding: .55rem 1.2rem; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--stone-600);
}
.segmented button.active { background: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.latest-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: var(--space-5); }
.latest-grid .card-x--featured { grid-row: span 3; }
.latest-grid .card-x--featured .card-x__media { aspect-ratio: 16 / 11; }
.latest-grid .card-x--featured .card-x__title { font-size: var(--text-xl); font-weight: var(--weight-regular); }
.latest-grid .card-x:not(.card-x--featured) { flex-direction: row; }
.latest-grid .card-x:not(.card-x--featured) .card-x__media { flex: 0 0 34%; aspect-ratio: auto; min-height: 140px; }
.latest-grid .card-x:nth-child(n+2) { grid-column: 2 / span 2; }
.latest-more { margin: var(--space-6) 0 0; text-align: center; }
/* missing / broken picture: show the emblem on a warm ground instead of an empty grey box */
.card-x__media {
  background: var(--saffron-50) url("/static/img/mashal.png") center / 56px auto no-repeat;
}

/* ---------------------------------------------------------------- media */
.media-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-7); align-items: center; }
.media-feature h2 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
.media-feature p { color: var(--color-on-dark-muted); }
.media-feature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.video-lite {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; background: #000 var(--thumb) center / cover no-repeat;
  box-shadow: var(--shadow-lg); outline: 1px solid rgba(255, 255, 255, .08); outline-offset: 6px;
}
.video-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 60%); }
.video-lite__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron-500); color: var(--ink); font-size: 2.4rem; transition: transform var(--duration) var(--ease);
  box-shadow: 0 0 0 10px rgba(248, 182, 0, .25);
}
.video-lite:hover .video-lite__play { transform: translate(-50%, -50%) scale(1.08); }
.video-lite__frame { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------------------------------------------------------------- founders */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.founder-card {
  display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: var(--space-6); align-items: center;
  padding: var(--space-5); border: var(--hairline); border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.founder-card__portrait { margin: 0; border-radius: var(--radius); overflow: hidden; background: #7cc4ef; }
.founder-card__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.founder-card__role { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--saffron-700); margin-bottom: var(--space-2); }
.founder-card h3 { font-size: var(--text-2xl); font-weight: var(--weight-light); margin: 0 0 var(--space-4); }
.founder-card__quote {
  margin: 0 0 var(--space-5); padding-left: var(--space-4); border-left: 2px solid var(--saffron-500);
  color: var(--stone-700); font-size: var(--text-base); line-height: 1.65;
}
.milestones { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.milestones li {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4);
  border: var(--hairline); border-radius: var(--radius); background: var(--stone-50);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.milestones li:hover { border-color: var(--saffron-500); box-shadow: var(--shadow); }
.milestones img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--stone-100); }
.milestones__no { display: block; font-size: var(--text-xs); letter-spacing: var(--tracking-label); color: var(--saffron-700); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.milestones h3 { font-size: var(--text-lg); font-weight: var(--weight-medium); margin: 0 0 var(--space-2); }
.milestones h3 a { color: var(--ink); text-decoration: none; }
.milestones h3 a::after { content: ""; position: absolute; inset: 0; }
.milestones h3 a:hover { color: var(--saffron-800); }
.milestones p { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }

/* ---------------------------------------------------------------- journey (timeline rail) */
.timeline {
  --dot: 14px;
  list-style: none; margin: 0; padding: 0 0 var(--space-3);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.timeline::-webkit-scrollbar { display: none; }
.timeline li { position: relative; scroll-snap-align: start; padding: calc(var(--dot) + var(--space-5)) var(--space-5) 0 0; }
.timeline li::before {   /* the line */
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) / 2); height: 1px; background: var(--stone-300);
}
.timeline li::after {    /* the dot */
  content: ""; position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--paper); border: 2px solid var(--saffron-500);
}
.timeline__now::after { background: var(--saffron-500) !important; box-shadow: 0 0 0 6px rgba(248, 182, 0, .22); }
.timeline__year { display: block; font-size: var(--text-3xl); font-weight: var(--weight-thin); line-height: 1; color: var(--ink); margin-bottom: var(--space-3); font-variant-numeric: tabular-nums; }
.timeline__now .timeline__year { color: var(--saffron-700); }
.timeline p { font-size: var(--text-sm); color: var(--stone-700); margin: 0; max-width: 24ch; }

/* ---------------------------------------------------------------- establishments (bento) */
/* 4 columns: Shantikunj 2x2, four tiles beside it, the last two tiles of a set of 7 share the third row */
.estab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: var(--space-4); grid-auto-flow: dense; }
.estab-grid__item { aspect-ratio: auto; height: 100%; }
.estab-grid__item--lead { grid-column: span 2; grid-row: span 2; }
.estab-grid__item--lead .photo-tile__caption h3 { font-size: var(--text-2xl); font-weight: var(--weight-light); }
.estab-grid__item--lead:nth-last-child(7) ~ .estab-grid__item:nth-last-child(-n+2) { grid-column: span 2; }
.photo-tile__caption p { margin: .35rem 0 0; color: rgba(255, 255, 255, .8); font-size: var(--text-sm); }
.estab-grid .photo-tile img { opacity: .9; }
.estab-grid .photo-tile__caption { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.estab-grid .photo-tile__caption h3 { font-size: var(--text-lg); font-weight: var(--weight-regular); line-height: var(--leading-snug); }
.photo-tile__more {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); color: var(--white);
  transition: background var(--duration), color var(--duration);
}
.photo-tile:hover .photo-tile__more { background: var(--saffron-500); color: var(--ink); }

/* ---------------------------------------------------------------- literature */
.literature__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-8); align-items: center; }
.literature h2 { font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-5); }
.lib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-6) 0; border-block: var(--hairline); }
.lib-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.lib-stats > div + div { padding-left: var(--space-4); border-left: var(--hairline); }
.lib-stats dt { font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; }
.lib-stats dd { margin: 0 0 .25rem; font-size: var(--text-2xl); font-weight: var(--weight-light); color: var(--ink); font-variant-numeric: tabular-nums; }
.literature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.shelf { min-width: 0; }
.shelf__rail {
  list-style: none; margin: 0; padding: var(--space-2) var(--space-1) var(--space-5);
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shelf__rail::-webkit-scrollbar { display: none; }
.shelf__rail li { scroll-snap-align: start; }
.book { display: block; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--stone-200);
  box-shadow: -1px 0 0 rgba(0, 0, 0, .08) inset, 0 18px 30px -16px rgba(28, 25, 23, .45);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.book img { display: block; width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }
.book:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 40px -18px rgba(28, 25, 23, .55); }

/* ---------------------------------------------------------------- involve */
.involve__panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: var(--space-7); align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4rem); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 0% 0%, #3a2a1a, var(--ink) 60%); color: var(--color-on-dark);
}
.involve__panel h2 { color: var(--white); font-size: var(--text-3xl); margin: var(--space-3) 0 var(--space-4); }
.involve__panel .eyebrow { color: var(--saffron-300); }
.involve__intro p { color: var(--color-on-dark-muted); margin: 0; }
.involve__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.involve__card {
  display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .03);
  color: var(--color-on-dark-muted) !important; text-decoration: none; font-size: var(--text-sm);
  transition: border-color var(--duration), background var(--duration), transform var(--duration) var(--ease);
}
.involve__card i { font-size: 1.5rem; color: var(--saffron-300); }
.involve__card strong { display: block; color: var(--white); font-size: var(--text-base); font-weight: var(--weight-medium); margin-bottom: .15rem; }
.involve__card:hover { border-color: var(--saffron-500); background: rgba(248, 182, 0, .06); transform: translateY(-3px); }
.involve__write { grid-column: 1 / -1; margin: 0; padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--text-sm); }
.involve__write a { color: var(--saffron-300); text-decoration: none; }
.involve__write a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  .notices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }
  .notices__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-card__portrait { max-width: 220px; }
  .estab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estab-grid__item--lead { grid-row: span 1; }
  .estab-grid__item--lead:nth-last-child(7) ~ .estab-grid__item:nth-last-child(-n+2) { grid-column: auto; }
}
@media (max-width: 991.98px) {
  .hero__inner, .about-intro__grid, .media-feature__grid, .involve__panel, .literature__grid { grid-template-columns: minmax(0, 1fr); }
  .about-intro__media { max-width: 520px; }
  .about-intro__media img { aspect-ratio: 3 / 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .vision__list { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-grid .card-x--featured { grid-row: auto; }
  .latest-grid .card-x:nth-child(n+2) { grid-column: auto; }
  .founders { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estab-grid { grid-auto-rows: 190px; }
  .involve__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notices__inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}
@media (max-width: 575.98px) {
  .notices__list, .milestones, .involve__actions, .pillars { grid-template-columns: 1fr; }
  .notices__list li { border-left: 0; padding-left: 0; }
  .latest-grid .card-x:not(.card-x--featured) { flex-direction: column; }
  .latest-grid .card-x:not(.card-x--featured) .card-x__media { flex: none; aspect-ratio: 16 / 10; }
  .hero__emblem { max-height: 110px; }
  .stats__item { padding: var(--space-5) var(--space-3); }
  .founder-card { grid-template-columns: 1fr; }
  .estab-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .estab-grid__item--lead { grid-column: auto; }
  .lib-stats dd { font-size: var(--text-xl); }
  .shelf__rail { grid-auto-columns: 140px; }
  .about-intro__media::before { display: none; }
  .journey .rail-buttons { display: none; }
  .darshan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .darshan__item--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .collections .stack:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - var(--space-2)); justify-self: center; }
  .today__date { width: 100%; justify-content: space-between; }
  .leaf { min-width: 110px; }
  .milestones li { flex-direction: row; align-items: flex-start; }
  .milestones img { flex: 0 0 88px; width: 88px; aspect-ratio: 1; }
}

/* involve follows a white section: no double gap */
.section + .involve { padding-top: calc(var(--section-y) * .35); }

/* letter-spacing breaks up Devanagari words: labels keep normal spacing in hi/mr/ne/sa */
:is(:lang(hi), :lang(mr), :lang(ne), :lang(sa)) :is(.eyebrow, .today__label, .leaf__month, .stats dt, .founder-card__role, .notices__label, .milestones__no, .quick-links__tabs .nav-link) { letter-spacing: 0; }

/* ================================================================ motion (all off for prefers-reduced-motion) */
/* items of one row reveal one after another (--i set by core/reveal.js) */
/* eyebrow rule draws in */
.js-reveal [data-reveal] .eyebrow::before, .js-reveal [data-reveal] .eyebrow::after { width: 0; transition: width .8s var(--ease) .25s; }
.js-reveal [data-reveal].is-visible .eyebrow::before, .js-reveal [data-reveal].is-visible .eyebrow::after { width: 28px; }

/* impact numbers: gold line grows under each number */
.stats__item { position: relative; }
.stats__item::after {
  content: ""; position: absolute; left: 50%; bottom: var(--space-5); width: 32px; height: 1px; margin-left: -16px;
  background: var(--saffron-500); transform: scaleX(0); transition: transform .8s var(--ease) calc(var(--i, 0) * 120ms + .3s);
}
.stats__item.is-visible::after, html:not(.js-reveal) .stats__item::after { transform: scaleX(1); }

/* vision: the rings breathe slowly */
.vision::before { animation: breathe 9s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes breathe { from { transform: translateX(-50%) scale(.96); opacity: .7; } to { transform: translateX(-50%) scale(1.06); opacity: 1; } }
.vision__no { transition: color var(--duration); }
.vision__list li:hover .vision__no { color: var(--saffron-500); }

/* pathways / work: the icon turns gently on hover */
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.06); }
.tile__icon { transition: background var(--duration) var(--ease), transform .4s var(--ease); }

/* journey: the line draws, then the dots light up one by one */
.js-reveal .timeline li::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.js-reveal .timeline li::after { transform: scale(0); transition: transform .4s var(--ease); }
.js-reveal .timeline li > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .timeline.is-visible li::before { transform: none; }
.js-reveal .timeline.is-visible li::after { transform: none; }
.js-reveal .timeline.is-visible li > * { opacity: 1; transform: none; }
.timeline li:nth-child(2)::before, .timeline li:nth-child(2)::after, .timeline li:nth-child(2) > * { transition-delay: .15s; }
.timeline li:nth-child(3)::before, .timeline li:nth-child(3)::after, .timeline li:nth-child(3) > * { transition-delay: .3s; }
.timeline li:nth-child(4)::before, .timeline li:nth-child(4)::after, .timeline li:nth-child(4) > * { transition-delay: .45s; }
.timeline li:nth-child(5)::before, .timeline li:nth-child(5)::after, .timeline li:nth-child(5) > * { transition-delay: .6s; }
.timeline li:nth-child(6)::before, .timeline li:nth-child(6)::after, .timeline li:nth-child(6) > * { transition-delay: .75s; }
.timeline li:nth-child(7)::before, .timeline li:nth-child(7)::after, .timeline li:nth-child(7) > * { transition-delay: .9s; }
.timeline li:nth-child(8)::before, .timeline li:nth-child(8)::after, .timeline li:nth-child(8) > * { transition-delay: 1.05s; }
.timeline li:hover .timeline__year { color: var(--saffron-700); }
.timeline__year { transition: color var(--duration); }

/* founders: portrait lifts, quote mark */
.founder-card { position: relative; overflow: hidden; transition: box-shadow var(--duration), transform var(--duration) var(--ease); }
.founder-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.founder-card::before {
  content: "\201C"; position: absolute; right: var(--space-5); top: -.15em; font-size: 9rem; line-height: 1;
  font-family: Georgia, serif; color: var(--saffron-100); pointer-events: none;
}
.founder-card__portrait img { transition: transform .8s var(--ease); }
.founder-card:hover .founder-card__portrait img { transform: scale(1.04); }

/* establishments: picture drifts on hover */
.estab-grid .photo-tile img { transition: transform 1.2s var(--ease), opacity var(--duration); }
.estab-grid .photo-tile:hover img { transform: scale(1.08); }

/* literature: books rise in like being placed on a shelf */
.js-reveal .shelf__rail li[data-reveal].is-visible { animation-name: book-in; animation-duration: 1s; }
@keyframes book-in { from { opacity: 0; translate: 0 24px; rotate: 3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }

/* media: soft pulse around the play button */
.video-lite__play::before, .video-lite__play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(248, 182, 0, .6);
  animation: play-pulse 2.4s ease-out infinite; will-change: transform, opacity;
}
.video-lite__play::after { animation-delay: 1.2s; }
@keyframes play-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* involve: slow light across the panel, icons hop on hover */
.involve__panel { position: relative; overflow: hidden; isolation: isolate; }
.involve__panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 182, 0, .18), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate; will-change: transform;
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-260px, 160px); } }
.involve__card i { transition: transform .4s var(--ease); }
.involve__card:hover i { transform: translateY(-4px) scale(1.12); }

/* today: darshan tiles fade up in sequence (handled by [data-reveal] + --i) */

@media (prefers-reduced-motion: reduce) {
  .page-home *, .page-home *::before, .page-home *::after { animation: none !important; }
  .hero__sparks { display: none; }
}
.founder-card > * { position: relative; }

/* quick links: all tabs share one grid cell, so the panel keeps the height of the tallest tab (no jump) */
.quick-links .tab-content { display: grid; }
.quick-links .tab-content > .tab-pane { grid-area: 1 / 1; display: block; visibility: hidden; }
.quick-links .tab-content > .tab-pane.active { visibility: visible; }
@media (max-width: 991.98px) {
  .hero__scroll { display: none; }
  .hero { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
}
@media (max-width: 400px) {
  .ql-list { grid-template-columns: 1fr; }
}

/* looping animations pause while their section is off screen (.is-offscreen set by core/reveal.js) */
/* (only the loops: one-off reveal animations always finish) */
.is-offscreen.vision::before, .is-offscreen .hero__bg, .is-offscreen .hero__sparks i, .is-offscreen .hero__emblem,
.is-offscreen .btn-glow::after, .is-offscreen .hero__scroll span, .is-offscreen .live-dot::after,
.is-offscreen .video-lite__play::before, .is-offscreen .video-lite__play::after,
.is-offscreen .involve__panel::before { animation-play-state: paused; }
/* images fade in once loaded instead of popping (class set by core/reveal.js) */
.js-reveal img.img-fade { transition: opacity .5s ease; }
.js-reveal img.img-fade:not(.is-loaded) { opacity: 0; }

/* ================================================================ illustrations (themes/basic/home/art/*.html) */
/* inline SVG, decorative (aria-hidden); colours follow the saffron / ink palette */
.art { display: block; width: 100%; height: auto; }
.section-head--art { align-items: center; }
.section-head--art .section-head__text { flex: 1 1 26rem; }
.section-head__aside { flex: 0 1 420px; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-4); }
.section-head__aside .art {
  width: 100%; max-width: 420px; border-radius: 28px;
  box-shadow: 0 30px 60px -36px rgba(127, 29, 29, .45), 0 0 0 1px rgba(248, 182, 0, .18);
}
.art--journey { box-shadow: 0 30px 60px -30px rgba(28, 25, 23, .6) !important; }
@media (max-width: 991.98px) {
  .section-head__aside { flex-basis: 100%; align-items: stretch; }
  .section-head__aside .art { max-width: 560px; }
  .section-head__aside .rail-buttons, .section-head__aside .segmented { align-self: flex-start; }
}

/* vision: dawn over the motto, emblems and colour per revolution */
.vision { background: radial-gradient(70% 60% at 50% 0%, var(--saffron-50), transparent 70%); }
.vision::before { opacity: .6; }
.art--dawn { width: min(360px, 80%); margin: 0 auto var(--space-3); }
.vision__list li { overflow: hidden; isolation: isolate; --rev: var(--saffron-500); --rev-soft: var(--saffron-50); }
.vision__list li:nth-child(2) { --rev: var(--saffron-600); --rev-soft: #fff1e0; }
.vision__list li:nth-child(3) { --rev: var(--maroon-800); --rev-soft: #fdf0ec; }
.vision__list li::before {   /* colour band */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--rev), var(--saffron-300));
}
.vision__list li::after {    /* soft glow behind the emblem */
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--rev-soft), transparent 70%); pointer-events: none; z-index: -1;
}
.vision__list li .vision__art { position: absolute; right: var(--space-5); top: var(--space-5); width: 72px; height: 72px; transition: transform .5s var(--ease); }
.vision__art-bg { fill: var(--rev-soft); stroke: var(--rev); stroke-opacity: .25; }
.vision__list li:hover .vision__art { transform: rotate(-6deg) scale(1.08); }
.vision__list li:nth-child(2) .vision__no { color: var(--saffron-700); }
.vision__list li:nth-child(3) .vision__no { color: var(--maroon-800); }

/* journey: a warmer track (lamp -> now) */
.journey .timeline li::before { background: linear-gradient(90deg, var(--saffron-300), var(--saffron-600)); height: 2px; }
.journey .timeline li:nth-child(n+5)::before { background: linear-gradient(90deg, var(--saffron-600), var(--maroon-800)); }
.journey .timeline li::after { background: var(--white); border-color: var(--saffron-600); box-shadow: 0 0 0 4px rgba(248, 182, 0, .15); }

/* motion: slow and soft; looping parts pause off screen and stop for reduced motion */
.art-spin { transform-box: view-box; transform-origin: 50% 37%; animation: art-spin 60s linear infinite; }
.art--dawn .art-spin { transform-origin: 50% 74.6%; }
.art-spin--slow { animation-duration: 90s; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.art-breathe { transform-box: fill-box; transform-origin: center; animation: art-breathe 6s ease-in-out infinite alternate; }
@keyframes art-breathe { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
.art-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: art-flame 2.6s ease-in-out infinite alternate; }
@keyframes art-flame { 0% { transform: scale(1, 1); } 50% { transform: scale(.94, 1.06) skewX(-2deg); } 100% { transform: scale(1.03, .97) skewX(2deg); } }
.art-flow { animation: art-flow 2.4s linear infinite; }
.art-flow--slow { animation-duration: 5s; }
@keyframes art-flow { to { stroke-dashoffset: -44; } }
.art-twinkle { animation: art-twinkle 3s ease-in-out infinite alternate; }
.art-twinkle--2 { animation-delay: -1s; }
.art-twinkle--3 { animation-delay: -2s; }
@keyframes art-twinkle { from { opacity: .25; } to { opacity: 1; } }
.art-ripple { transform-box: fill-box; transform-origin: center; animation: art-ripple 6s ease-out infinite; opacity: 0; }
.art-ripple--2 { animation-delay: -2s; }
.art-ripple--3 { animation-delay: -4s; }
@keyframes art-ripple { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.art-bird { animation: art-bird 7s ease-in-out infinite alternate; }
.art-bird--2 { animation-delay: -3s; }
@keyframes art-bird { from { transform: translate(0, 0); } to { transform: translate(-14px, -6px); } }
.art-flag { transform-box: fill-box; transform-origin: 0 50%; animation: art-flag 1.8s ease-in-out infinite alternate; }
@keyframes art-flag { from { transform: scaleX(1); } to { transform: scaleX(.8) skewY(4deg); } }
.is-offscreen .art *, .is-offscreen .vision__art * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .art *, .vision__art * { animation: none !important; }
  .art-ripple { opacity: .35; }
}

/* ---- illustrated card + timeline icons (sprite: themes/basic/home/art/icons.html, filter card_art) */
.art-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tile__art {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 76px; height: 76px; margin-bottom: var(--space-4); border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, #fffbea, var(--saffron-50) 55%, var(--saffron-100));
  box-shadow: inset 0 0 0 1px rgba(248, 182, 0, .25), 0 10px 22px -14px rgba(180, 83, 9, .55);
  transition: transform .45s var(--ease), box-shadow var(--duration), background var(--duration);
}
.tile__art svg { width: 56px; height: 56px; overflow: visible; transition: transform .45s var(--ease); }
.tile--row .tile__art { width: 64px; height: 64px; margin-bottom: 0; border-radius: 18px; }
.tile--row .tile__art svg { width: 46px; height: 46px; }
.tile:hover .tile__art {
  background: radial-gradient(circle at 30% 25%, #fffbea, var(--saffron-100) 55%, var(--saffron-300));
  box-shadow: inset 0 0 0 1px rgba(248, 182, 0, .5), 0 16px 30px -14px rgba(180, 83, 9, .6);
}
.tile:hover .tile__art svg { transform: translateY(-3px) scale(1.08) rotate(-4deg); }
/* the colour of each card follows its icon: a thin top band in the same family */
.pathways-grid .tile, .work-grid .tile { position: relative; overflow: hidden; }
.pathways-grid .tile::before, .work-grid .tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0;
  background: linear-gradient(90deg, var(--saffron-500), var(--saffron-600), var(--maroon-800)); transition: opacity var(--duration);
}
.pathways-grid .tile:hover::before, .work-grid .tile:hover::before { opacity: 1; }

.timeline__art {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-3); border-radius: 16px;
  background: var(--white); box-shadow: inset 0 0 0 1px rgba(248, 182, 0, .3), 0 8px 18px -12px rgba(180, 83, 9, .5);
  transition: transform .4s var(--ease);
}
.timeline__art svg { width: 42px; height: 42px; overflow: visible; }
.timeline li:hover .timeline__art { transform: translateY(-3px) rotate(-4deg); }
.timeline__now .timeline__art { background: linear-gradient(160deg, #fffbea, var(--saffron-100)); box-shadow: inset 0 0 0 1px var(--saffron-500), 0 10px 22px -12px rgba(127, 29, 29, .55); }
@media (prefers-reduced-motion: reduce) {
  .tile:hover .tile__art svg, .timeline li:hover .timeline__art { transform: none; }
}

/* ---------------------------------------------------------------- phones: centred hero and section intros
   (cards, lists and longer text stay left-aligned: easier to read) */
@media (max-width: 767.98px) {
  .hero__text { text-align: center; }
  .hero__emblem { margin-inline: auto; }
  .hero__lead { display: block; text-wrap: balance; }   /* pin icon stays with the first word when it wraps */
  .hero__lead i { margin-right: .35rem; }
  .hero__actions { justify-content: center; }

  .page-home .section-head, .today__head { flex-direction: column; align-items: center; text-align: center; }
  .page-home .section-head__text { margin-inline: auto; }
  .section-head__aside { align-items: center; width: 100%; }
  .section-head__aside .rail-buttons, .section-head__aside .segmented { align-self: center; }

  .about-intro__text, .involve__intro { text-align: center; }
  .about-intro__media { margin-inline: auto; }
  .pillars li { align-items: center; }

  /* the eyebrow's gold rule on both sides once it is centred */
  .page-home .section-head .eyebrow::after, .today__head .eyebrow::after,
  .about-intro__text .eyebrow::after, .involve__intro .eyebrow::after {
    content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7;
  }
}
