/* The site's fonts, hosted with the site (public/fonts) instead of loaded from
   Google: same server, no extra connection, and index.html preloads the ones
   the first screen needs. Latin-ext files only load for characters outside
   basic Latin (e.g. ₹). Bengali, Tamil and Devanagari hold only the letters
   the site uses. All fonts are SIL Open Font License. */
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cinzel-decorative-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cinzel-decorative-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/cinzel-decorative-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/cinzel-decorative-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cinzel-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cinzel-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IM Fell English';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/im-fell-english-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IM Fell English';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/im-fell-english-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tiro Devanagari Sanskrit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tiro-devanagari-sanskrit-400.woff2') format('woff2');
  unicode-range: U+915, U+925, U+93e, U+965;
}
@font-face {
  font-family: 'Noto Serif Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-serif-bengali-400.woff2') format('woff2');
  unicode-range: U+9ab, U+9b2, U+9b6, U+9be-9bf, U+9c7, U+9cb, U+b95, U+b9a, U+ba3, U+baa, U+bae, U+bc6, U+bcd;
}
@font-face {
  font-family: 'Noto Serif Tamil';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-serif-tamil-400.woff2') format('woff2');
  unicode-range: U+9ab, U+9b2, U+9b6, U+9be-9bf, U+9c7, U+9cb, U+b95, U+b9a, U+ba3, U+baa, U+bae, U+bc6, U+bcd;
}

/* ──────────────────────────────────────────────────────────────
   KATHA · coming soon — one screen in the same temple sanctum as
   the site. The arrival: the dark lifts to reveal the sanctum, the
   mandala settles, then the words rise one by one. Motion uses transform / opacity only (GPU-cheap)
   and stops for "reduce motion".
   ────────────────────────────────────────────────────────────── */

:root {
  --gold: #c9a24a;
  --gold-light: #ecd189;
  --gold-pale: #f6e7b8;
  --bone: #ecdfbf;
  --bone-dim: #c4b38d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-carved: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --f-inscr: 'Cinzel', 'Tiro Devanagari Sanskrit', Georgia, serif;
  --f-script: 'IM Fell English', Georgia, serif;
  --f-deva: 'Tiro Devanagari Sanskrit', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--bone);
  background: #0e0906;
  font-family: var(--f-script);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ── the sanctum ──────────────────────────────────────────── */
.sanctum {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4rem 1.25rem 6rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255, 150, 60, 0.16), transparent 70%),
    url('grain.webp'),
    radial-gradient(ellipse at 50% 40%, #26190f, #0c0805 75%);
}
.wall {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* कथा, cut deep into the back wall */
.deva {
  font-family: var(--f-deva);
  font-size: clamp(14rem, 44vw, 42rem);
  line-height: 1;
  color: #1b130b;
  text-shadow:
    0 -3px 1px rgba(0, 0, 0, 0.95),
    0 2px 1px rgba(255, 214, 150, 0.08);
  translate: 0 4%;
  user-select: none;
}
.mandala {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(118vw, 860px);
  aspect-ratio: 1;
  translate: -50% -50%;
  color: var(--gold);
  opacity: 0.3;
  animation: settle 3.2s var(--ease) 0.3s both;
}
@keyframes settle {
  from {
    opacity: 0;
    scale: 1.08;
  }
  to {
    opacity: 0.3;
    scale: 1;
  }
}
.mandala svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 260s linear infinite;
}
.mandala svg + svg {
  animation-duration: 190s;
  animation-direction: reverse;
}
/* the dark the visitor arrives in — lifts to reveal the sanctum */
.veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #060402;
  animation: lift 1.8s var(--ease) 0.2s forwards;
}
@keyframes lift {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.dark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle min(46vmax, 640px) at 50% 46%,
    rgba(255, 176, 90, 0.08) 0%,
    rgba(10, 6, 3, 0.22) 35%,
    rgba(6, 4, 2, 0.8) 75%,
    rgba(4, 2, 1, 0.94) 100%
  );
}

/* ── the words ────────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
}
.content > * {
  opacity: 0;
  animation: rise 1.6s var(--ease) forwards;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 1.6rem;
  font-family: var(--f-inscr);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  animation-delay: 1.1s !important;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 2.2em;
  height: 7px;
  flex: none;
  background: radial-gradient(circle, currentColor 0 1.6px, transparent 2px) 0 50% / 7px 7px repeat-x;
  opacity: 0.7;
}
.title {
  width: min(80vw, 29rem);
  animation-delay: 0.8s !important;
}
/* the wordmark is unveiled left to right — the artwork itself is untouched */
.logo {
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: unveil 2.2s var(--ease) 0.9s forwards;
}
@keyframes unveil {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.tagline {
  margin-top: 0.9rem;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
  color: var(--gold-pale);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  animation-delay: 1.4s !important;
}
.lotus {
  width: 220px;
  height: auto;
  margin-top: 1.6rem;
  color: var(--gold);
  animation-delay: 1.6s !important;
}
/* gold leaf, in true capitals (the face's lowercase letters join in pairs) */
.soon {
  margin-top: 1.2rem;
  font-family: var(--f-carved);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  font-variant-ligatures: none;
  background: linear-gradient(176deg, #fbeec0 0%, #e7c56c 28%, #b98a2c 52%, #f0d27d 70%, #a57a24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px rgba(214, 160, 60, 0.2));
  animation-delay: 1.8s !important;
}
.lines {
  margin-top: 1.4rem;
  font-family: var(--f-inscr);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.6vw, 0.86rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  animation-delay: 2.1s !important;
}
.lines span {
  margin-inline: 0.7em;
  font-family: var(--f-deva);
  letter-spacing: 0;
  color: var(--gold);
}
.invite {
  max-width: 28rem;
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--bone-dim);
  animation-delay: 2.3s !important;
}

/* ── falling parijat ──────────────────────────────────────── */
.petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.petals img {
  position: absolute;
  top: -8%;
  height: auto;
  opacity: 0;
  animation: fall var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
}
/* they tumble in 3D as they fall: tilting back and forth and turning over */
.petals img:nth-child(odd) {
  --flip: 180deg;
}
.petals img:nth-child(even) {
  --flip: -150deg;
}
@keyframes fall {
  0% {
    transform: perspective(700px) translate3d(0, 0, 0) rotate(0deg) rotateX(0deg) rotateY(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  30% {
    transform: perspective(700px) translate3d(calc(var(--drift) * 0.3), 35vh, 0) rotate(calc(var(--spin) * 0.3)) rotateX(40deg)
      rotateY(calc(var(--flip) * 0.3));
  }
  65% {
    transform: perspective(700px) translate3d(calc(var(--drift) * 0.65), 77vh, 0) rotate(calc(var(--spin) * 0.65)) rotateX(-35deg)
      rotateY(calc(var(--flip) * 0.65));
  }
  85% {
    opacity: 0.75;
  }
  100% {
    transform: perspective(700px) translate3d(var(--drift), 118vh, 0) rotate(var(--spin)) rotateX(0deg) rotateY(var(--flip));
    opacity: 0;
  }
}

.colophon {
  position: absolute;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-family: var(--f-inscr);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(196, 179, 141, 0.75);
  /* the last thing to appear, after the words */
  opacity: 0;
  animation: rise 1.6s var(--ease) 2.6s forwards;
}
.colophon__deva {
  font-family: var(--f-deva);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #8a6a24;
}

/* ── phones ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sanctum {
    padding-bottom: 6rem;
  }
  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }
  /* tighter tracking so these stay on one line instead of orphaning a word */
  .eyebrow {
    letter-spacing: 0.2em;
  }
  .lines {
    letter-spacing: 0.16em;
  }
  .lines span {
    margin-inline: 0.45em;
  }
}

/* ── reduce motion: no veil, nothing moves, words simply appear ── */
@media (prefers-reduced-motion: reduce) {
  .veil,
  .petals {
    display: none;
  }
  .mandala {
    animation: none;
  }
  .content > *,
  .logo,
  .colophon {
    opacity: 1;
    clip-path: none;
    animation: none !important;
  }
  .mandala svg {
    animation: none;
  }
}
