/* =============================================================
   Inner pages — each page a distinct experience
   ============================================================= */

/* ---------- shared page hero ---------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: grid;
  align-content: end;
  padding: 9rem var(--gutter) clamp(3rem, 8vh, 5.5rem);
  overflow: clip;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75% 60% at 78% 10%, rgba(227, 74, 31, .2), transparent 60%),
    radial-gradient(55% 45% at 12% 85%, rgba(232, 184, 75, .1), transparent 55%);
}
.page-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .34;
  filter: saturate(1.05);
}
.page-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 8, .72), rgba(20, 10, 8, .92));
}
.page-hero__inner { width: min(100%, var(--content-max)); margin-inline: auto; display: grid; gap: 1.4rem; }
.page-hero__title { font-size: var(--step-5); font-weight: 800; line-height: 1.44; }
.page-hero__lead { max-width: 40rem; color: var(--ivory-70); font-size: var(--step-1); line-height: 1.9; }
/* giant ghost word behind hero */
.page-hero__ghost {
  position: absolute;
  right: -2vw;
  bottom: -.18em;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 19rem);
  line-height: 1.44;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 184, 75, .12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- editorial prose blocks ---------- */
.prose-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.prose-split > h2 { position: sticky; top: 7rem; }
.prose body, .prose p { color: var(--ivory-70); }
.prose { display: grid; gap: 1.4rem; font-size: var(--step-1); line-height: 2; color: var(--ivory-70); }
.prose strong { color: var(--gold); font-weight: 600; }
@media (max-width: 56rem) {
  .prose-split { grid-template-columns: 1fr; }
  .prose-split > h2 { position: static; }
}

/* ---------- ૪૫૦+ scroll counter (About) ---------- */
.counter-block {
  text-align: center;
  padding-block: clamp(4rem, 10vh, 7rem);
}
.counter-block__num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(100deg, var(--gold) 0%, var(--saffron) 45%, var(--sindoor) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter-block__label {
  font-size: var(--step-1);
  color: var(--ivory-70);
  letter-spacing: .2em;
  font-family: var(--font-display);
}

/* ---------- DARSHAN — day arc ---------- */
.day-arc { position: relative; overflow: clip; }
.day-arc__sky {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(100% 75% at 50% 100%, rgba(255, 150, 60, .3), transparent 65%),
    linear-gradient(180deg, rgba(70, 28, 16, .5), transparent 60%);
  pointer-events: none;
}
.day-arc__stage {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding-block: 12vh 8vh;
  position: relative;
}
.day-arc__svg { width: min(58rem, 92vw); height: auto; overflow: visible; }
.day-arc__path { fill: none; stroke: var(--ivory-12); stroke-width: 1.5; stroke-dasharray: 4 7; }
.day-arc__break { fill: none; stroke: rgba(227, 74, 31, .4); stroke-width: 4; opacity: .5; }
.day-arc__sun { filter: drop-shadow(0 0 18px rgba(255, 150, 60, .9)); }
.day-arc__moment-dot { fill: var(--gold-dim); transition: fill .3s, r .3s; }
.day-arc__moment-dot.is-active { fill: var(--saffron); }
.day-arc__edge {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--ivory-50);
  letter-spacing: .08em;
}
.day-arc__readout {
  text-align: center;
  display: grid;
  gap: .4rem;
  min-height: 7.5em;
}
.day-arc__time {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--saffron);
  font-variant-numeric: tabular-nums;
}
.day-arc__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--ivory); }
.day-arc__desc { color: var(--ivory-70); max-width: 26rem; margin-inline: auto; }

/* schedule list (also the reduced-motion/no-js representation) */
.schedule {
  display: grid;
  gap: 0;
  max-width: 44rem;
  margin-inline: auto;
}
.schedule__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.6rem;
  padding: 1.35rem .8rem;
  border-bottom: 1px solid var(--ivory-06);
  align-items: baseline;
  transition: background .3s;
  border-radius: .6rem;
}
.schedule__row:hover { background: var(--ivory-06); }
.schedule__row.is-aarti .schedule__name { color: var(--gold); }
.schedule__row.is-aarti .schedule__time { text-shadow: 0 0 22px rgba(255, 122, 26, .55); }
.schedule__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--saffron);
  font-variant-numeric: tabular-nums;
}
.schedule__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); }
.schedule__sep {
  text-align: center;
  padding: 1.2rem;
  color: var(--sindoor);
  font-family: var(--font-display);
  letter-spacing: .4em;
  font-size: var(--step--1);
}

/* big open/closed banner */
.now-banner {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: .9em 1.8em;
  border-radius: 100px;
  background: var(--ivory-06);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

/* ---------- JAYANTI — festival theme + journey ---------- */
.theme-jayanti {
  --night: #1c0705;
  --night-2: #260a06;
  --glass: rgba(28, 7, 5, .55);
}
.countdown { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); flex-wrap: wrap; }
.countdown__cell {
  display: grid;
  justify-items: center;
  gap: .2rem;
  min-width: 4.6em;
  padding: 1em .7em .8em;
  border-radius: var(--radius);
  background: var(--ivory-06);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.countdown__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.1;
  color: var(--saffron);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: .72rem; letter-spacing: .25em; color: var(--ivory-50); font-family: var(--font-display); }

.journey { position: relative; max-width: 56rem; margin-inline: auto; padding-block: 2rem; }
.journey__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ivory-12);
}
.journey__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold), var(--sindoor));
  transform: scaleY(var(--journey-progress, 0));
  transform-origin: top;
}
.milestone {
  position: relative;
  width: calc(50% - 3rem);
  padding: 1.6rem 0;
  margin-bottom: 2.5rem;
}
.milestone:nth-child(odd of .milestone) { margin-left: auto; text-align: left; padding-left: 0; }
.milestone:nth-child(even of .milestone) { margin-right: auto; text-align: right; }
.milestone__icon { font-size: 1.6rem; margin-bottom: .6rem; display: block; }
.milestone__num {
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--gold-dim);
  letter-spacing: .3em;
  display: block;
  margin-bottom: .5rem;
}
.milestone__title { font-size: var(--step-2); font-weight: 700; }
.milestone__text { color: var(--ivory-70); margin-top: .6rem; line-height: 1.95; }
.milestone::before {
  content: '';
  position: absolute;
  top: 2.4rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(232, 184, 75, .8);
}
.milestone:nth-child(odd of .milestone)::before { left: -3rem; transform: translateX(-50%); }
.milestone:nth-child(even of .milestone)::before { right: -3rem; transform: translateX(50%); }
@media (max-width: 48rem) {
  .journey__line { left: .4rem; }
  .milestone, .milestone:nth-child(odd of .milestone), .milestone:nth-child(even of .milestone) {
    width: auto; margin: 0 0 2.2rem 2.4rem; text-align: left;
  }
  .milestone:nth-child(odd of .milestone)::before,
  .milestone:nth-child(even of .milestone)::before { left: -2rem; right: auto; transform: translateX(-50%); }
}

/* sindoor feature panel (static cousin of the homepage flood) */
.sindoor-panel {
  position: relative;
  border-radius: calc(var(--radius) * 1.6);
  overflow: clip;
  padding: clamp(2.5rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 30% 20%, #ff8a4a 0%, var(--sindoor) 45%, var(--sindoor-deep) 100%);
  color: #fff3e8;
  display: grid;
  gap: 1.4rem;
}
.sindoor-panel h2, .sindoor-panel h3 { color: var(--ivory); }
.sindoor-panel p { font-size: var(--step-1); line-height: 1.95; max-width: 44rem; }
.sindoor-panel::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 200, 130, .18) 60deg, transparent 130deg);
  animation: sheen-spin 16s linear infinite;
  pointer-events: none;
}

/* ---------- GALLERY ---------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.filterbar__btn {
  padding: .65em 1.4em;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ivory-70);
  box-shadow: inset 0 0 0 1px var(--ivory-12);
  transition: color .25s, background .25s, box-shadow .25s;
}
.filterbar__btn:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--glass-border); }
.filterbar__btn[aria-pressed="true"] {
  background: var(--sindoor);
  color: var(--ivory);
  box-shadow: none;
}
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  grid-auto-rows: 10rem;
  gap: 1rem;
}
.masonry__item { position: relative; border-radius: var(--radius); overflow: clip; }
.masonry__item.is-hidden { display: none; }
.masonry__item:nth-child(4n + 1) { grid-row: span 3; }
.masonry__item:nth-child(4n + 2) { grid-row: span 2; }
.masonry__item:nth-child(4n + 3) { grid-row: span 2; }
.masonry__item:nth-child(4n) { grid-row: span 3; }
.masonry__btn { display: block; width: 100%; height: 100%; padding: 0; position: relative; }
.masonry__btn img,
.masonry__btn video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease-out), filter .7s;
}
.masonry__btn:hover img,
.masonry__btn:focus-visible img,
.masonry__btn:hover video,
.masonry__btn:focus-visible video { transform: scale(1.06); }
.masonry__play {
  position: absolute;
  left: .9rem;
  bottom: .8rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 5, 4, .72);
  color: var(--gold);
  font-size: .85rem;
  pointer-events: none;
}
.masonry__tag {
  position: absolute;
  left: .9rem; bottom: .8rem;
  padding: .35em .9em;
  border-radius: 100px;
  background: rgba(11, 5, 4, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  pointer-events: none;
}

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  margin: auto; /* the global reset removes the UA's dialog centering */
  background: transparent;
  max-width: min(94vw, 70rem);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(8, 3, 2, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox__inner { position: relative; display: grid; gap: .9rem; }
.lightbox__inner img,
.lightbox__inner video {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
}
.lightbox__video { display: none; }
.lightbox__caption { text-align: center; color: var(--gold); font-family: var(--font-display); letter-spacing: .12em; }
.lightbox__close {
  position: absolute;
  top: -2.6rem; right: 0;
  font-size: 1.1rem;
  color: var(--ivory);
  padding: .4em .8em;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  color: var(--ivory);
  padding: .6em;
  background: rgba(11, 5, 4, .5);
  border-radius: 50%;
}
.lightbox__nav--prev { left: .6rem; }
.lightbox__nav--next { right: .6rem; }

/* ---------- EVENTS ---------- */
.event-rows { display: grid; }
.event-row {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 4vh, 2.6rem) .8rem;
  border-bottom: 1px solid var(--ivory-06);
  transition: background .3s, padding-left .3s;
  border-radius: .8rem;
}
.event-row:hover { background: var(--ivory-06); padding-left: 1.6rem; }
.event-row__when {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--saffron);
  font-size: var(--step-1);
  line-height: 1.4;
}
.event-row__title { font-size: var(--step-2); font-weight: 700; }
.event-row__desc { color: var(--ivory-70); margin-top: .35rem; }
.event-row__badge {
  padding: .5em 1.2em;
  border-radius: 100px;
  font-size: .75rem;
  font-family: var(--font-display);
  letter-spacing: .15em;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  white-space: nowrap;
}
@media (max-width: 48rem) {
  .event-row { grid-template-columns: 1fr; gap: .5rem; }
  .event-row__badge { justify-self: start; }
}

/* ---------- DONATION ---------- */
.upi-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}
.upi-panel__qr {
  width: clamp(11rem, 26vw, 15rem);
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--ivory);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.upi-panel__qr img, .upi-panel__qr svg { width: 100%; height: 100%; }
.upi-panel__body { display: grid; gap: 1rem; justify-items: start; }
.upi-id {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--gold);
}
.copy-btn {
  font-size: .78rem;
  font-family: var(--font-display);
  letter-spacing: .12em;
  padding: .5em 1.1em;
  border-radius: 100px;
  color: var(--ivory-70);
  box-shadow: inset 0 0 0 1px var(--ivory-12);
  transition: color .25s, box-shadow .25s;
}
.copy-btn:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--glass-border); }
.copy-btn.is-copied { color: #57d97c; box-shadow: inset 0 0 0 1px rgba(87, 217, 124, .4); }
.bank-list { display: grid; gap: .4rem; color: var(--ivory-70); font-size: var(--step--1); line-height: 2; }
.bank-list strong { color: var(--ivory); font-weight: 600; }
@media (max-width: 48rem) {
  .upi-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .upi-panel__body { justify-items: center; }
}

/* seva cards-not-cards: ribbon list */
.seva-list { display: grid; gap: 1px; background: var(--ivory-06); border-radius: var(--radius); overflow: clip; }
.seva-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  background: var(--night);
  transition: background .3s;
}
.seva-list__item:hover { background: var(--night-2); }
.seva-list__icon { font-size: 1.5rem; }
.seva-list__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); }
.seva-list__desc { color: var(--ivory-50); font-size: var(--step--1); margin-top: .2rem; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-card { display: grid; gap: 1.8rem; }
.contact-card__block h3 {
  font-size: var(--step--1);
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: .8rem;
  font-weight: 600;
}
.contact-card__block p, .contact-card__block li { color: var(--ivory-70); line-height: 2.1; }
.map-facade {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: calc(var(--radius) * 1.4);
  overflow: clip;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(227, 74, 31, .18), transparent 65%),
    var(--night-2);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  display: grid;
  place-items: center;
}
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade__btn { display: grid; justify-items: center; gap: 1rem; padding: 2rem; width: 100%; height: 100%; align-content: center; }
.map-facade__pin { font-size: 2.4rem; }
.map-facade__label { font-family: var(--font-display); font-weight: 600; color: var(--gold); }
.map-facade__hint { font-size: .8rem; color: var(--ivory-50); }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- blessing finale (shared) ---------- */
.blessing-end {
  text-align: center;
  padding-block: var(--space-section);
  display: grid;
  gap: 2rem;
  justify-items: center;
}
.blessing-end__text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.8;
  color: var(--gold);
  max-width: 38rem;
}

/* ---------- BAPU detail pages ---------- */
.bapu-hero--bhaskaranand .page-hero__ghost { color: rgba(227, 74, 31, .08); }
.bapu-hero--muktanand .page-hero__ghost { color: rgba(232, 184, 75, .1); }
.bapu-stats {
  padding-block: clamp(2rem, 6vh, 4rem);
  border-block: 1px solid var(--glass-border);
  background: var(--night-2);
}
.bapu-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.bapu-stats__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--saffron);
  line-height: 1.2;
}
.bapu-hero--muktanand ~ .bapu-stats .bapu-stats__num { color: var(--gold); }
.bapu-stats__label {
  margin-top: .5rem;
  font-size: var(--step--1);
  color: var(--ivory-50);
  line-height: 1.5;
}
.bapu-gallery-strip {
  display: flex;
  gap: clamp(1rem, 3vw, 1.6rem);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block: 1rem;
}
.bapu-gallery-strip__item {
  flex: 0 0 clamp(14rem, 28vw, 20rem);
  scroll-snap-align: start;
}
.bapu-gallery-strip__item .frame {
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 75, .2);
}
.bapu-gallery-strip__item img,
.bapu-gallery-strip__item video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* ---------- shared media strip (about, jayanti) ---------- */
.media-strip {
  display: flex;
  gap: clamp(.8rem, 2vw, 1.2rem);
  overflow-x: auto;
  padding-block: .5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.media-strip__item {
  flex: 0 0 clamp(14rem, 28vw, 22rem);
  scroll-snap-align: start;
}
.media-strip__item .frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: clip;
}
.media-strip__item img,
.media-strip__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bapu-journey .milestone__period {
  font-size: var(--step--1);
  letter-spacing: .1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .3rem;
  display: block;
}
.bapu-future {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 184, 75, .12), transparent 60%),
    var(--night-2);
  border: 1px solid rgba(232, 184, 75, .28);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2rem, 5vw, 3rem);
}
.bapu-future__list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 1.4rem;
}
.bapu-future__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  background: rgba(20, 10, 8, .5);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}
.bapu-future__icon { font-size: 1.5rem; }
.bapu-future__item h3 {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: .4rem;
}
.bapu-future__item p {
  color: var(--ivory-70);
  line-height: 1.9;
  font-size: var(--step--1);
}
@media (max-width: 56rem) {
  .bapu-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* reduced motion: arc stage unpins (rendered statically), counter static */
@media (prefers-reduced-motion: reduce) {
  .day-arc__sky { opacity: 1; }
  .journey__line::after { transform: none; }
}
