:root {
  --bg: #070b1e;
  --bg-deep: #040616;
  --navy: #030750;
  --ink: #14183f;
  --ivory: #f6f3ec;
  --ivory-soft: rgba(246, 243, 236, 0.72);
  --line: #c9caf2;
  --line-strong: #e6e7ff;
  --line-dim: rgba(201, 202, 242, 0.34);
  --card: rgba(14, 20, 58, 0.72);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --deva:
    "Noto Serif Devanagari", "Kohinoor Devanagari", "ITF Devanagari", serif;
  --bengali: "Noto Serif Bengali", "Noto Serif Devanagari", serif;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-deep);
}

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: #d5d6f5;
  color: var(--ink);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.atmosphere__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(130vmin, 980px);
  height: min(130vmin, 980px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(72, 84, 176, 0.2),
    rgba(18, 26, 84, 0.05) 42%,
    transparent 72%
  );
}

.atmosphere img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150vmin, 1100px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: drift 72s linear infinite;
  will-change: transform;
  -webkit-mask-image: radial-gradient(
    circle,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.4) 58%,
    transparent 78%
  );
  mask-image: radial-gradient(
    circle,
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.4) 58%,
    transparent 78%
  );
}

body {
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 8%,
      #18215f 0%,
      rgba(24, 33, 95, 0) 58%
    ),
    radial-gradient(
      ellipse 120% 80% at 50% 100%,
      #0a1030 0%,
      var(--bg-deep) 70%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.frame {
  display: none;
}

main {
  position: relative;
  z-index: 2;
}

.view {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.view-home {
  display: flex;
  align-items: center;
  animation: rise 0.7s ease both;
}

.view-sub {
  display: none;
}

#song:target,
#kuber:target {
  display: block;
  animation: rise 0.55s ease both;
}

body:has(#song:target) #home,
body:has(#kuber:target) #home {
  display: none;
}

.home-grid,
.brand,
.paths {
  width: min(540px, 100%);
  margin-inline: auto;
}

.brand {
  text-align: center;
}

h1 {
  margin: 0;
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.mark-plate {
  display: grid;
  place-items: center;
  width: clamp(176px, 48vw, 236px);
  aspect-ratio: 1;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.mark {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand__name {
  color: var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.event-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: var(--line);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}

.event-line__gem {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  flex: none;
}

.paths {
  margin-top: 28px;
}

.paths__label,
.eyebrow {
  margin: 0 0 12px;
  color: var(--line);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.paths__label {
  text-align: center;
}

.choice,
.entry {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 16px 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(201, 202, 242, 0.1),
      rgba(255, 255, 255, 0.03)
    ),
    var(--card);
  border: 1px solid var(--line-dim);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.choice::after,
.entry::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  opacity: 0.7;
}

.choice:active,
.entry:active,
.lang__btn:active,
.back:active {
  transform: scale(0.985);
}

.choice__no,
.entry__no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-dim);
  background: rgba(7, 11, 30, 0.35);
  color: var(--line-strong);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.choice__copy,
.entry__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.choice__title,
.entry__title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.choice__sub,
.entry__sub {
  margin-top: 3px;
  color: var(--ivory-soft);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.choice__lang,
.lede-deva {
  margin-top: 2px;
  font-family: var(--deva);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--line);
}

.choice__arrow,
.entry__ext {
  color: var(--line);
}

.panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: 6px;
}

.panel--entries {
  width: min(840px, 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dim);
  background: rgba(10, 16, 46, 0.55);
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar__logo {
  width: 46px;
  height: 46px;
  padding: 1px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.heading {
  margin-bottom: 22px;
}

.heading h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lede {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--ivory-soft);
}

.lede-deva {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.video-shell {
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(201, 202, 242, 0.2),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #050816;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lang {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 4px 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lang::-webkit-scrollbar {
  display: none;
}

.lang__btn {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dim);
  background: rgba(10, 16, 46, 0.45);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
  background: var(--ivory);
  color: var(--ink);
  border-color: transparent;
}

.lyric-sheet {
  margin: 0 0 22px;
  padding: 26px 18px 18px;
  border-radius: 22px;
  text-align: center;
  color: #171b45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #fbf8f2, #efe8da);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.lyric-sheet p {
  margin: 0 0 1.15em;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  font-weight: 500;
  line-height: 1.6;
}

.lyric-sheet[lang="hi"] p {
  font-family: var(--deva);
  font-size: clamp(1.08rem, 3vw, 1.28rem);
  line-height: 1.75;
}

.lyric-sheet[lang="bn"] p {
  font-family: var(--bengali);
  font-size: clamp(1.08rem, 3vw, 1.28rem);
  line-height: 1.75;
}

.lyric-sheet[lang="ta"] p,
.lyric-sheet[lang="kn"] p,
.lyric-sheet[lang="te"] p,
.lyric-sheet[lang="ml"] p,
.lyric-sheet[lang="gu"] p,
.lyric-sheet[lang="mr"] p,
.lyric-sheet[lang="or"] p,
.lyric-sheet[lang="pa"] p {
  font-size: clamp(1.08rem, 3vw, 1.28rem);
  line-height: 1.8;
}

.lyric-sheet .refrain {
  font-weight: 700;
  color: #0c1458;
}

.lyric-sheet p:last-child {
  margin-bottom: 0;
}

.entry__meta {
  margin-top: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entries {
  display: grid;
  gap: 12px;
}

.entry__meta {
  color: var(--line);
  font-weight: 500;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
}

@media (hover: hover) {
  .choice:hover,
  .entry:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 231, 255, 0.72);
    background:
      linear-gradient(
        180deg,
        rgba(201, 202, 242, 0.16),
        rgba(255, 255, 255, 0.05)
      ),
      rgba(18, 26, 74, 0.82);
  }

  .lang__btn:hover {
    border-color: rgba(230, 231, 255, 0.7);
  }

  .back:hover {
    border-color: rgba(230, 231, 255, 0.7);
    background: rgba(18, 26, 74, 0.8);
  }
}

@media (min-width: 720px) {
  .entries {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .entry {
    min-height: 148px;
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  .frame {
    display: block;
    position: fixed;
    inset: 16px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(201, 202, 242, 0.22);
    border-radius: 20px;
  }

  .frame::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 202, 242, 0.12);
    border-radius: 14px;
  }

  .view {
    padding-top: max(42px, env(safe-area-inset-top));
    padding-bottom: 48px;
  }

  .home-grid {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
    gap: 56px;
    align-items: center;
  }

  .brand,
  .paths {
    width: auto;
    margin: 0;
  }

  .mark-plate {
    width: min(248px, 26vw);
  }

  .paths__label {
    text-align: left;
  }

  .choice {
    padding: 20px 18px;
  }

  .choice__title {
    font-size: 2rem;
  }
}

@media (max-height: 700px) and (max-width: 899px) {
  .view-home {
    align-items: flex-start;
  }

  .mark-plate {
    width: 136px;
  }

  .brand__lockup {
    gap: 8px;
    margin-bottom: 10px;
  }

  .paths {
    margin-top: 16px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .heading {
    margin-bottom: 14px;
  }

  .heading h1 {
    font-size: 2.15rem;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
