/* ==========================================================================
   AARTI AT KAINCHI — a dusk set-piece for the Maharajji mandir
   Scoped to .ma so it can be lifted into any page without touching the site.
   Warm palette only. No black, no cold grey, no dark mode.
   ========================================================================== */

.ma {
  /* Palette */
  --ma-ivory:      #FFF9EC;
  --ma-cream:      #F6E7CE;
  --ma-cream-2:    #EAD2B1;
  --ma-sand:       #D8AF80;
  --ma-clay:       #B9794E;
  --ma-marigold:   #F0A23A;
  --ma-saffron:    #E4762A;
  --ma-vermilion:  #D2452C;
  --ma-sindoor:    #B3222B;
  --ma-maroon:     #7C2A20;
  --ma-deep:       #4A1E15;
  --ma-ink:        #3B1A12;

  --ma-ink-soft:   rgba(74, 30, 21, .76);
  --ma-ink-mute:   rgba(74, 30, 21, .56);
  --ma-line:       rgba(90, 36, 24, .18);
  --ma-line-soft:  rgba(90, 36, 24, .11);
  --ma-line-light: rgba(255, 249, 236, .34);
  --ma-glass:      rgba(255, 249, 236, .48);
  --ma-glass-deep: rgba(255, 249, 236, .74);
  --ma-shadow:     rgba(74, 30, 21, .30);

  --ma-serif: "MA Serif", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ma-sans:  "MA Sans", "Mukta", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ma-deva:  "MA Deva", "Tiro Devanagari Hindi", "Kohinoor Devanagari", "Devanagari Sangam MN", serif;

  --ma-ease: cubic-bezier(.22, 1, .36, 1);
  --ma-ease-soft: cubic-bezier(.33, 1, .68, 1);

  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ma-cream);
  color: var(--ma-ink);
  font-family: var(--ma-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  touch-action: manipulation;
  color-scheme: only light;
}

.ma *,
.ma *::before,
.ma *::after { box-sizing: border-box; }

.ma p { margin: 0; }
.ma h1, .ma h2, .ma h3 { margin: 0; font-weight: 400; }
.ma [hidden] { display: none !important; }
.ma button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ma button:focus-visible {
  outline: 2px solid var(--ma-marigold);
  outline-offset: 4px;
}
.ma :lang(hi) { letter-spacing: 0; }

.ma__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Stage and atmosphere ------------------------------------------ */

.ma__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ma-cream);
  user-select: none;
  -webkit-user-select: none;
}

.ma__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ma__vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 82% at 50% 44%,
      rgba(255, 249, 236, 0) 40%,
      rgba(122, 42, 32, .12) 74%,
      rgba(90, 36, 24, .22) 100%),
    linear-gradient(to bottom,
      rgba(122, 42, 32, .09) 0%,
      rgba(122, 42, 32, 0) 16%,
      rgba(90, 36, 24, 0) 78%,
      rgba(90, 36, 24, .18) 100%);
  mix-blend-mode: multiply;
  transition: opacity 2.4s var(--ma-ease-soft);
}
.ma.is-face .ma__vignette { opacity: .55; }

.ma__grain {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: .075;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .26 0 0 0 0 .13 0 0 0 0 .07 0 0 0 .62 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.ma.is-face .ma__grain { opacity: .11; }
.ma.is-ended .ma__grain { opacity: .08; }

/* ---------- The portrait -------------------------------------------------- */

.ma__portrait {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--ma-deep);
  transition: opacity 3s var(--ma-ease-soft);
}
.ma.is-face .ma__portrait { opacity: 1; }

.ma__portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: sepia(.20) saturate(1.03) contrast(.93) brightness(1.04);
  transform: scale(1.018);
  transform-origin: 50% 38%;
}
@media (prefers-reduced-motion: no-preference) {
  .ma.is-face .ma__portrait-img { animation: ma-portrait-breathe 38s ease-in-out both; }
  @keyframes ma-portrait-breathe {
    from { transform: scale(1.018); }
    to   { transform: scale(1.045); }
  }
}

.ma__portrait-warm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 44% at 50% 30%, rgba(255, 221, 160, .20), rgba(255, 221, 160, 0) 68%),
    linear-gradient(180deg, rgba(124, 42, 32, .22) 0%, rgba(124, 42, 32, .02) 25%, rgba(124, 42, 32, .03) 58%, rgba(74, 30, 21, .62) 100%);
  mix-blend-mode: multiply;
}
.ma__portrait-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 38% at 50% 32%, rgba(255, 236, 198, .24), rgba(255, 236, 198, 0) 70%),
    radial-gradient(ellipse 64% 46% at 50% 106%, rgba(240, 162, 58, .18), transparent 70%);
  mix-blend-mode: soft-light;
}

.ma__quote {
  position: absolute;
  left: 50%;
  bottom: clamp(7.5rem, 17vh, 12rem);
  z-index: 5;
  width: min(90vw, 880px);
  transform: translate(-50%, 10px);
  text-align: center;
  color: var(--ma-ivory);
  opacity: 0;
  transition: opacity 2.6s var(--ma-ease-soft), transform 3s var(--ma-ease-soft);
  pointer-events: none;
}
.ma__quote.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ma__quote-line {
  font-family: var(--ma-serif);
  font-size: clamp(1.6rem, 3.3vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.012em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(74, 30, 21, .58), 0 1px 2px rgba(74, 30, 21, .32);
}
.ma__quote-line em { font-style: italic; }
.ma__quote-hi {
  margin-top: .9rem;
  font-family: var(--ma-deva);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  line-height: 1.78;
  color: rgba(255, 249, 236, .78);
  text-shadow: 0 2px 20px rgba(74, 30, 21, .55);
}
.ma__quote-rule {
  width: 34px;
  height: 1px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(to right, transparent, rgba(240, 162, 58, .9), transparent);
}
.ma__photo-credit {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(76px, 14vh, 118px) + env(safe-area-inset-bottom));
  z-index: 5;
  transform: translateX(-50%);
  width: min(92vw, 720px);
  text-align: center;
  font-family: var(--ma-sans);
  font-size: .56rem;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.5;
  color: rgba(255, 249, 236, .60);
  opacity: 0;
  transition: opacity 1.8s var(--ma-ease-soft);
  pointer-events: none;
}
.ma.is-face .ma__photo-credit { opacity: 1; transition-delay: 7s; }

/* ---------- Bell ---------------------------------------------------------- */

.ma__bell {
  position: absolute;
  top: max(-6px, calc(env(safe-area-inset-top) - 6px));
  left: 50%;
  z-index: 5;
  width: clamp(118px, 17vw, 196px);
  transform: translateX(-50%) translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ma-ease-soft), transform 1.6s var(--ma-ease-soft);
  filter: drop-shadow(0 26px 34px rgba(74, 30, 21, .28));
}
.ma.is-bell .ma__bell {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ma.is-face .ma__bell,
.ma.is-ended .ma__bell { opacity: 0; }

.ma__bell-chain {
  width: 1px;
  height: clamp(44px, 10vh, 100px);
  margin: 0 auto;
  background:
    repeating-linear-gradient(to bottom,
      rgba(255, 249, 236, .72) 0 3px,
      rgba(124, 42, 32, .45) 3px 5px);
  box-shadow: 0 0 12px rgba(240, 162, 58, .12);
}
.ma__bell-swing {
  transform-origin: 50% 0%;
  will-change: transform;
}
.ma__bell.is-ringing .ma__bell-swing {
  animation: ma-bell-swing 7.2s cubic-bezier(.37, .01, .63, 1) both;
}
@keyframes ma-bell-swing {
  0%   { transform: rotate(0deg); }
  7%   { transform: rotate(7.2deg); }
  15%  { transform: rotate(-6.1deg); }
  24%  { transform: rotate(4.8deg); }
  34%  { transform: rotate(-3.5deg); }
  46%  { transform: rotate(2.4deg); }
  58%  { transform: rotate(-1.6deg); }
  72%  { transform: rotate(.9deg); }
  86%  { transform: rotate(-.35deg); }
  100% { transform: rotate(0deg); }
}
.ma__bell svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Top bar ------------------------------------------------------- */

.ma__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 16;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding:
    max(14px, calc(env(safe-area-inset-top) + 10px))
    clamp(14px, 3.2vw, 30px)
    0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s linear 1.2s;
  pointer-events: none;
}
.ma.is-begun .ma__top {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s;
  pointer-events: auto;
}

.ma__where { display: grid; gap: 2px; padding-top: 3px; }
.ma__where-place {
  font-family: var(--ma-deva);
  font-size: .78rem;
  line-height: 1.25;
  color: var(--ma-ivory);
  opacity: .80;
  text-shadow: 0 1px 12px rgba(74, 30, 21, .62);
}
.ma__where-chapter {
  display: flex;
  align-items: center;
  gap: .45em;
  font-family: var(--ma-sans);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ma-ivory);
  opacity: .62;
  text-shadow: 0 1px 10px rgba(74, 30, 21, .58);
}
.ma__where-chapter .sep { opacity: .45; }

.ma__top-actions { display: flex; align-items: center; gap: .45rem; }

.ma__icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ma-deep);
  background: rgba(255, 249, 236, .34);
  border: 1px solid rgba(255, 249, 236, .44);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 8px 24px -16px rgba(74, 30, 21, .42);
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ma-ease);
}
.ma__icon-btn:hover { background: var(--ma-glass-deep); transform: translateY(-1px); }
.ma__icon-btn svg { width: 18px; height: 18px; }
.ma__icon-btn .is-hidden { display: none; }

.ma.is-face .ma__where-place,
.ma.is-face .ma__where-chapter { color: var(--ma-ivory); text-shadow: 0 1px 14px rgba(74, 30, 21, .45); }
.ma.is-face .ma__icon-btn {
  color: var(--ma-ivory);
  background: rgba(90, 36, 24, .28);
  border-color: rgba(255, 249, 236, .22);
}
.ma.is-face .ma__icon-btn:hover { background: rgba(90, 36, 24, .46); }

/* ---------- Captions ------------------------------------------------------ */

.ma__caption {
  position: absolute;
  left: 50%;
  top: clamp(5.2rem, 13vh, 8.4rem);
  z-index: 12;
  width: min(88vw, 700px);
  transform: translate(-50%, 8px);
  text-align: center;
  opacity: 0;
  transition: opacity 2.3s var(--ma-ease-soft), transform 2.6s var(--ma-ease-soft);
  pointer-events: none;
}
.ma__caption.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ma__caption-en {
  font-family: var(--ma-serif);
  font-size: clamp(1.32rem, 2.55vw, 2rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.008em;
  color: var(--ma-deep);
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(255, 249, 236, .64);
}
.ma__caption-hi {
  margin-top: .58rem;
  font-family: var(--ma-deva);
  font-size: clamp(.94rem, 1.55vw, 1.1rem);
  line-height: 1.78;
  color: rgba(74, 30, 21, .76);
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(255, 249, 236, .58);
}
.ma__caption-rule {
  width: 28px;
  height: 1px;
  margin: 0 auto .8rem;
  background: linear-gradient(to right, transparent, rgba(179, 34, 43, .38), transparent);
}

/* The bell is the one chapter where the words belong below the bell,
   in the courtyard, among the lamps. */
.ma[data-scene="bell"] .ma__caption {
  top: auto;
  bottom: clamp(8.4rem, 21vh, 12.5rem);
  transform: translate(-50%, -8px);
}
.ma.is-face .ma__caption,
.ma.is-ended .ma__caption { opacity: 0 !important; }

/* ---------- Silence choices ---------------------------------------------- */

.ma__silence {
  position: absolute;
  left: 50%;
  bottom: clamp(7.4rem, 14vh, 9.4rem);
  z-index: 13;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem clamp(1.1rem, 3vw, 2.4rem);
  width: min(92vw, 560px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2s var(--ma-ease-soft), transform 2s var(--ma-ease-soft), visibility 0s linear 2s;
}
.ma.is-silence .ma__silence {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition: opacity 2s var(--ma-ease-soft), transform 2s var(--ma-ease-soft), visibility 0s;
  transition-delay: 4.5s;
}
.ma__choice {
  padding: .45rem 0;
  font-family: var(--ma-sans);
  font-size: .615rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ma-deep);
  opacity: .72;
  border-bottom: 1px solid var(--ma-line);
  transition: opacity .35s, border-color .35s;
  white-space: nowrap;
}
.ma__choice:hover { opacity: 1; border-bottom-color: var(--ma-sindoor); }
.ma__choice--leave { color: var(--ma-maroon); }

/* ---------- Chapter rail -------------------------------------------------- */

.ma__rail {
  position: absolute;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 15;
  width: min(72vw, 520px);
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s linear 1.2s;
}
.ma.is-begun .ma__rail {
  opacity: .72;
  visibility: visible;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s;
}
.ma.is-idle-ui .ma__rail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .9s var(--ma-ease-soft), visibility 0s linear .9s;
}
.ma__seg {
  flex: 1 1 0;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 4px;
}
.ma__seg-track {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(74, 30, 21, .19);
  overflow: hidden;
  transition: height .35s var(--ma-ease);
}
.ma__seg:hover .ma__seg-track { height: 3px; }
.ma__seg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  border-radius: 2px;
  background: var(--ma-sindoor);
  transition: width .9s linear;
}
.ma__seg[aria-current="step"] .ma__seg-fill { background: var(--ma-vermilion); }
.ma.is-face .ma__seg-track { background: rgba(255, 249, 236, .24); }
.ma.is-face .ma__seg-fill { background: var(--ma-marigold); }
.ma.is-ended .ma__rail { opacity: 0; visibility: hidden; }

/* ---------- Controls ------------------------------------------------------ */

.ma__controls {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 15;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 249, 236, .38);
  border: 1px solid rgba(255, 249, 236, .42);
  box-shadow: 0 18px 50px -28px rgba(74, 30, 21, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s linear 1.2s, background .5s;
}
.ma.is-begun .ma__controls {
  opacity: .82;
  visibility: visible;
  transition: opacity 1.2s var(--ma-ease-soft), visibility 0s, background .5s;
}
.ma.is-idle-ui .ma__controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .9s var(--ma-ease-soft), visibility 0s linear .9s, background .5s;
}
.ma__controls:hover,
.ma__controls:focus-within { opacity: .98 !important; }
.ma.is-face .ma__controls {
  background: rgba(74, 30, 21, .32);
  border-color: rgba(255, 249, 236, .18);
}
.ma.is-ended .ma__controls { opacity: 0; visibility: hidden; }

.ma__ctl {
  width: 54px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ma-deep);
  opacity: .86;
  transition: background .3s, opacity .3s, color .3s;
}
.ma__ctl:hover { background: rgba(255, 249, 236, .52); opacity: 1; }
.ma__ctl svg { width: 16px; height: 16px; }
.ma__ctl span {
  font-family: var(--ma-sans);
  font-size: .47rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .68;
}
.ma__ctl:disabled { opacity: .28; cursor: default; }
.ma__ctl:disabled:hover { background: none; }
.ma.is-face .ma__ctl { color: var(--ma-ivory); }
.ma.is-face .ma__ctl:hover { background: rgba(255, 249, 236, .12); }

/* ---------- Intro --------------------------------------------------------- */

.ma__intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding:
    max(2rem, calc(env(safe-area-inset-top) + 1.4rem))
    clamp(1.25rem, 5vw, 3.5rem)
    max(1.25rem, calc(env(safe-area-inset-bottom) + 1rem));
  background:
    linear-gradient(to bottom,
      rgba(251, 245, 234, .93) 0%,
      rgba(251, 245, 234, .74) 32%,
      rgba(251, 245, 234, .18) 62%,
      rgba(251, 245, 234, .72) 89%,
      rgba(251, 245, 234, .94) 100%);
  transition: opacity 1.7s var(--ma-ease-soft), visibility 0s linear 1.7s;
}
.ma__intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ma__intro-top { display: grid; justify-items: center; gap: .7rem; width: min(100%, 660px); text-align: center; }
.ma__intro-deva {
  font-family: var(--ma-deva);
  font-size: clamp(.8rem, 1.4vw, .95rem);
  line-height: 1.5;
  color: var(--ma-maroon);
  opacity: .78;
}
.ma__intro-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--ma-sans);
  font-size: .565rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ma-sindoor);
}
.ma__intro-eyebrow::before,
.ma__intro-eyebrow::after {
  content: "";
  width: clamp(18px, 4vw, 40px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(179, 34, 43, .45));
}
.ma__intro-eyebrow::after { transform: scaleX(-1); }
.ma__intro-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .18em .28em;
  font-family: var(--ma-serif);
  font-size: clamp(3.1rem, 8.6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--ma-deep);
}
.ma__intro-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ma-maroon);
  letter-spacing: -.02em;
}
.ma__intro-lede {
  width: min(88vw, 38ch);
  margin-top: .45rem;
  font-family: var(--ma-sans);
  font-size: clamp(.92rem, 1.7vw, 1.04rem);
  line-height: 1.72;
  color: var(--ma-ink-soft);
  text-wrap: pretty;
}
.ma__intro-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .1rem;
  font-family: var(--ma-sans);
  font-size: .555rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ma-ink-mute);
}
.ma__intro-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ma-saffron);
}

.ma__intro-centre { display: grid; justify-items: center; gap: .1rem; }
.ma__begin {
  position: relative;
  display: block;
  width: min(56vw, 286px);
  padding: 0;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform .8s var(--ma-ease);
}
.ma__begin:hover { transform: translateY(-2px); }
.ma__begin::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26%;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 236, 190, .9), rgba(240, 162, 58, .26) 43%, transparent 72%);
  filter: blur(18px);
  opacity: .55;
  transition: opacity .8s var(--ma-ease-soft);
}
.ma__begin:hover::before,
.ma__begin:focus-visible::before { opacity: .95; }
.ma__begin svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }

.ma__begin-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(6px) scale(.2);
  transition: opacity .5s var(--ma-ease-soft), transform .7s var(--ma-ease);
}
.ma.is-lighting .ma__begin-flame { opacity: 1; transform: translateY(0) scale(1); }
.ma__begin-glow {
  opacity: 0;
  transition: opacity 1.2s var(--ma-ease-soft);
}
.ma.is-lighting .ma__begin-glow { opacity: 1; }

.ma__begin-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .16rem;
  margin-top: .1rem;
  text-align: center;
}
.ma__begin-hint strong {
  font-family: var(--ma-sans);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ma-deep);
}
.ma__begin-hint span {
  font-family: var(--ma-deva);
  font-size: .98rem;
  color: rgba(74, 30, 21, .72);
}
@media (prefers-reduced-motion: no-preference) {
  .ma__begin-hint strong { animation: ma-hint-breathe 5.2s ease-in-out infinite; }
  @keyframes ma-hint-breathe { 0%, 100% { opacity: .66; } 50% { opacity: 1; } }
}

.ma__intro-foot {
  display: grid;
  justify-items: center;
  gap: .35rem;
  width: min(100%, 560px);
  text-align: center;
}
.ma__intro-note {
  font-family: var(--ma-sans);
  font-size: .70rem;
  line-height: 1.6;
  color: var(--ma-ink-mute);
  max-width: 40ch;
}
.ma__intro-credit {
  font-family: var(--ma-sans);
  font-size: .52rem;
  letter-spacing: .12em;
  line-height: 1.6;
  color: rgba(74, 30, 21, .48);
}
.ma__intro-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Pause --------------------------------------------------------- */

.ma__pause {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(251, 245, 234, .26);
  -webkit-backdrop-filter: blur(3.5px) saturate(.94);
  backdrop-filter: blur(3.5px) saturate(.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .9s var(--ma-ease-soft), visibility 0s linear .9s;
}
.ma.is-paused .ma__pause {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .9s var(--ma-ease-soft), visibility 0s;
}
.ma__pause-inner { display: grid; justify-items: center; gap: .85rem; }
.ma__pause-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ma-deep);
  background: rgba(255, 249, 236, .7);
  border: 1px solid rgba(255, 249, 236, .8);
  box-shadow: 0 24px 70px -30px rgba(74, 30, 21, .6);
  transition: transform .4s var(--ma-ease), background .4s;
}
.ma__pause:hover .ma__pause-circle { transform: scale(1.035); background: var(--ma-ivory); }
.ma__pause-circle svg { width: 26px; height: 26px; margin-left: 3px; }
.ma__pause-label {
  font-family: var(--ma-serif);
  font-size: 1.32rem;
  line-height: 1.1;
  color: var(--ma-deep);
  text-align: center;
}
.ma__pause-label span {
  display: block;
  margin-top: .22rem;
  font-family: var(--ma-deva);
  font-size: .82rem;
  color: rgba(74, 30, 21, .62);
}
.ma__pause-hint {
  font-family: var(--ma-sans);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(74, 30, 21, .48);
}

/* ---------- Ending -------------------------------------------------------- */

.ma__ending {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(124, 42, 32, .70), rgba(74, 30, 21, .88) 76%);
  -webkit-backdrop-filter: blur(9px) saturate(.9);
  backdrop-filter: blur(9px) saturate(.9);
  color: var(--ma-ivory);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2s var(--ma-ease-soft), visibility 0s linear 2s;
}
.ma.is-ended .ma__ending {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 2s var(--ma-ease-soft), visibility 0s;
}
.ma__ending-inner { display: grid; justify-items: center; gap: .8rem; width: min(92vw, 560px); }
.ma__ending-eyebrow {
  font-family: var(--ma-sans);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 249, 236, .58);
}
.ma__ending-title {
  font-family: var(--ma-serif);
  font-size: clamp(3.1rem, 9vw, 5.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ma-ivory);
}
.ma__ending-hi {
  font-family: var(--ma-deva);
  font-size: 1.02rem;
  color: rgba(255, 249, 236, .76);
}
.ma__ending-line {
  margin-top: .3rem;
  font-family: var(--ma-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 249, 236, .68);
}
.ma__ending-return {
  margin-top: 1.2rem;
  padding: .8rem 1.35rem;
  border: 1px solid rgba(255, 249, 236, .42);
  border-radius: 999px;
  font-family: var(--ma-sans);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ma-ivory);
  transition: background .35s, border-color .35s;
}
.ma__ending-return:hover { background: rgba(255, 249, 236, .12); border-color: rgba(255, 249, 236, .72); }

/* ---------- Lingering ---------------------------------------------------- */

.ma.is-lingering .ma__top,
.ma.is-lingering .ma__caption,
.ma.is-lingering .ma__silence,
.ma.is-lingering .ma__rail,
.ma.is-lingering .ma__controls,
.ma.is-lingering .ma__quote { opacity: 0 !important; pointer-events: none !important; }
.ma.is-lingering .ma__top,
.ma.is-lingering .ma__silence,
.ma.is-lingering .ma__rail,
.ma.is-lingering .ma__controls { visibility: hidden; }
.ma.is-lingering .ma__vignette { opacity: .85; }
.ma__linger-hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 14;
  transform: translateX(-50%);
  font-family: var(--ma-deva);
  font-size: .82rem;
  color: rgba(255, 249, 236, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ma-ease-soft);
  text-shadow: 0 1px 16px rgba(74, 30, 21, .5);
}
.ma.is-lingering .ma__linger-hint { opacity: 1; transition-delay: 7s; }

/* ---------- Idle (before Begin) ------------------------------------------ */

.ma:not(.is-begun) .ma__top,
.ma:not(.is-begun) .ma__rail,
.ma:not(.is-begun) .ma__controls,
.ma:not(.is-begun) .ma__silence { display: none; }
.ma:not(.is-begun) .ma__canvas { opacity: .96; }

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .ma *,
  .ma *::before,
  .ma *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .65s !important;
    scroll-behavior: auto !important;
  }
  .ma__begin:hover { transform: none; }
  .ma__portrait-img { transform: none !important; }
  .ma__bell.is-ringing .ma__bell-swing { animation: none !important; }
  .ma__quote { transform: translate(-50%, 0) !important; }
  .ma__caption { transform: translate(-50%, 0) !important; }
}

/* ---------- Small screens ------------------------------------------------- */

@media (max-width: 680px) {
  .ma__top { padding-top: max(12px, calc(env(safe-area-inset-top) + 8px)); }
  .ma__where-place { font-size: .72rem; }
  .ma__where-chapter { font-size: .52rem; letter-spacing: .15em; }
  .ma__icon-btn { width: 40px; height: 40px; }
  .ma__caption { width: min(90vw, 520px); }
  .ma__caption-en { font-size: clamp(1.24rem, 5.4vw, 1.6rem); }
  .ma__caption-hi { font-size: .92rem; }
  .ma__quote { width: 92vw; bottom: clamp(7rem, 16vh, 10rem); }
  .ma__quote-hi { font-size: .88rem; }
  .ma__rail { width: min(86vw, 520px); bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ma__controls { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ma__ctl { width: 52px; }
  .ma__silence { bottom: clamp(7rem, 12vh, 8.6rem); flex-direction: column; gap: .4rem; }
  .ma__choice { font-size: .57rem; letter-spacing: .14em; }
  .ma__bell { width: clamp(112px, 32vw, 168px); }
  .ma__photo-credit { font-size: .5rem; letter-spacing: .06em; }
}

@media (max-width: 400px) {
  .ma__intro-title { font-size: clamp(2.8rem, 13vw, 3.6rem); gap: .12em .22em; }
  .ma__intro-lede { font-size: .88rem; width: 90vw; }
  .ma__begin { width: min(66vw, 268px); }
  .ma__intro-credit { font-size: .47rem; }
  .ma__ctl { width: 48px; height: 44px; }
  .ma__ctl span { font-size: .43rem; letter-spacing: .1em; }
  .ma__controls { padding: 3px; }
  .ma__where-chapter { letter-spacing: .11em; }
}

@media (max-height: 620px) {
  .ma__intro { padding-top: max(1rem, calc(env(safe-area-inset-top) + .7rem)); padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
  .ma__intro-top { gap: .4rem; }
  .ma__intro-title { font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .ma__intro-lede { line-height: 1.55; }
  .ma__intro-meta { display: none; }
  .ma__begin { width: min(46vw, 220px); }
  .ma__caption { top: 4.8rem; }
  .ma[data-scene="bell"] .ma__caption { top: auto; bottom: 6.6rem; }
  .ma__caption-en { font-size: 1.2rem; }
  .ma__silence { bottom: 6.4rem; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .ma__intro {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 34vw);
    align-items: center;
    gap: 1rem;
    padding: .8rem clamp(1rem, 4vw, 2rem);
  }
  .ma__intro-top { justify-items: start; text-align: left; gap: .3rem; }
  .ma__intro-eyebrow { justify-content: flex-start; }
  .ma__intro-title { justify-content: flex-start; font-size: clamp(2rem, 6vw, 3rem); }
  .ma__intro-lede { width: min(54ch, 100%); font-size: .84rem; }
  .ma__intro-meta, .ma__intro-credit { display: none; }
  .ma__intro-centre { grid-column: 2; grid-row: 1 / span 2; }
  .ma__begin { width: min(40vw, 220px); }
  .ma__intro-foot { position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%); }
  .ma__intro-foot .ma__intro-note { display: none; }
  .ma__caption { top: 3.6rem; width: min(70vw, 520px); }
  .ma[data-scene="bell"] .ma__caption { top: auto; bottom: 5.2rem; }
  .ma__caption-hi { display: none; }
  .ma__quote { bottom: 4.8rem; }
  .ma__quote-hi { display: none; }
  .ma__silence { bottom: 4.6rem; }
  .ma__rail { bottom: 3.4rem; width: min(56vw, 440px); }
  .ma__controls { bottom: .4rem; }
  .ma__ctl { height: 40px; }
  .ma__ctl span { display: none; }
  .ma__ctl svg { width: 18px; height: 18px; }
  .ma__where-place { display: none; }
}

/* ---------- Contrast ------------------------------------------------------ */

@media (prefers-contrast: more) {
  .ma__caption-en,
  .ma__quote-line,
  .ma__intro-title,
  .ma__begin-hint strong { text-shadow: none; }
  .ma__caption-hi,
  .ma__where-place,
  .ma__where-chapter { opacity: 1; color: var(--ma-deep); }
  .ma__controls { background: rgba(255, 249, 236, .86); }
  .ma__rail { opacity: 1; }
  .ma__seg-track { background: rgba(74, 30, 21, .38); }
}


.aarti-home{position:fixed;z-index:60;top:0.9rem;left:1rem;font-family:"Mukta",sans-serif;font-size:0.625rem;letter-spacing:0.16em;text-transform:uppercase;color:#7C2A20;text-decoration:none;opacity:0.68;transition:opacity .3s}
.aarti-home:hover{opacity:1}
@media(max-width:640px){.aarti-home{top:0.6rem;left:0.7rem;font-size:0.5625rem}}
