/* anshulsaxena.com — Virya lotus brand. Sora + Tiro Devanagari only.
   Tokens from the Virya logo kit. Saffron is for dark grounds only: on ivory/sand it fails
   contrast (1.6–1.9:1), so light sections use ember-deep (#C8431F, 4.6:1 on ivory) or ink. */
:root {
  --night: #14173A;
  --night-2: #1E2250;
  --ivory: #FBF6EC;
  --sand: #EDE3CF;
  --saffron: #F2A93B;
  --gold: #FFD36A;
  --ember: #E4572E;
  --ember-deep: #C8431F;
  --ink: #14173A;
  --ink-soft: #4A4F6E;
  --on-night: #FBF6EC;
  --on-night-soft: rgba(251, 246, 236, .74);
  --line: rgba(20, 23, 58, .08);
  --radius: 22px;
  --wrap: 1120px;
  --flame: linear-gradient(0deg, #E4572E 0%, #F2A93B 55%, #FFD36A 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Sora, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
.deva { font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif; font-weight: 400; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 15px; height: 15px; stroke-width: 1.75; }
:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible { outline-color: var(--saffron); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--night); color: var(--on-night); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1180px; margin: 0 auto; padding: 10px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em;
}
.brand__mark { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
  border-radius: 10px; transition: color .16s ease, background .16s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(20, 23, 58, .05); }
.nav__links a[aria-current="true"], .nav__links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav__links .nav__cta {
  margin-left: 8px; padding: 0 18px; border-radius: 999px;
  background: var(--night); color: var(--on-night);
}
.nav__links .nav__cta:hover { background: var(--night-2); color: var(--on-night); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 16px; height: 16px; }
.btn--ink { background: var(--night); color: var(--on-night); }
.btn--ink:hover { background: var(--night-2); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(20, 23, 58, .28); }
.btn--line:hover { background: rgba(20, 23, 58, .05); border-color: var(--ink); }
.btn--saffron { background: var(--saffron); color: var(--night); }
.btn--saffron:hover { background: var(--gold); }
.btn--ivory { background: var(--ivory); color: var(--night); }
.btn--ivory:hover { background: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* The hero tile's links, in the orange-yellow of the Virya ivory lotus. */
.btn--sun { background: linear-gradient(135deg, #F2A93B 0%, #FFD36A 100%); color: var(--night); box-shadow: 0 6px 16px rgba(228, 87, 46, .22); }
.btn--sun:hover { background: linear-gradient(135deg, #E4572E 0%, #F2A93B 100%); color: var(--night); }
.btn--sunline { background: rgba(255, 211, 106, .18); color: var(--night); border-color: #F2A93B; }
.btn--sunline:hover { background: rgba(242, 169, 59, .22); border-color: #E4572E; }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.label--ember { color: var(--ember-deep); }
.label--soft { color: var(--ink-soft); }
.label--saffron { color: var(--saffron); }
.h2 {
  margin: 0 0 22px; font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.05; letter-spacing: -.035em;
}
.lead { max-width: 56ch; margin: 0 0 32px; font-size: clamp(1rem, 1.35vw, 1.08rem); line-height: 1.7; color: var(--ink-soft); }
.on-night { background: var(--night); color: var(--on-night); }
.on-night .lead { color: var(--on-night-soft); }

.section { padding: clamp(72px, 10vw, 112px) 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 100px); }
.meaning {
  max-width: 760px; margin: 0 auto 28px; text-align: center;
  font-size: 15px; line-height: 1.6; color: var(--night-2);
}
.meaning strong { color: var(--ink); }
.meaning .deva, .meaning em { color: var(--ember-deep); }
.meaning em { font-style: normal; font-weight: 600; letter-spacing: .08em; font-size: 13px; }

.card {
  display: grid; grid-template-columns: minmax(240px, .9fr) 1.35fr; gap: clamp(36px, 5vw, 64px);
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 4vw, 48px);
  background: var(--sand); border-radius: 28px; box-shadow: 0 24px 70px rgba(20, 23, 58, .08);
}
.card__left { display: flex; flex-direction: column; align-items: flex-start; }
/* The lotus sits centred over the name: the lockup is as wide as the name, and the lotus centres in it. */
.name-lockup { display: inline-grid; justify-items: center; }
.name-lockup .name { justify-self: stretch; }
.name { margin: 0 0 16px; font-weight: 700; font-size: clamp(2.6rem, 5.5vw, 3.6rem); line-height: .98; letter-spacing: -.045em; }
.name span { display: block; }
/* The accent bar sits above the role, so the role, the name and the lotus share one left edge. */
.role {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 22px;
  font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink);
}
.role::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #E4572E, #F2A93B, #FFD36A); }
.meta { display: flex; flex-direction: column; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--ink-soft); font-size: .92rem; }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.summary { margin: 0 0 32px; font-size: 1.02rem; line-height: 1.72; color: var(--ink-soft); }
.writing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.writing a {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  height: 100%; min-height: 64px; padding: 14px 16px;
  background: rgba(251, 246, 236, .6); border: 1px solid transparent; border-radius: 14px;
  font-size: .92rem; font-weight: 500; line-height: 1.4; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.writing a:hover { background: var(--ivory); border-color: rgba(20, 23, 58, .14); transform: translateY(-1px); }
.writing .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--ember-deep); }

/* Hero lotus: sways on a loop, off under reduced motion */
.lotus { height: 80px; width: auto; margin-bottom: 22px; overflow: visible; animation: lotusFloat 4s ease-in-out infinite; }
.lotus .p { transform-box: fill-box; transform-origin: 50% 100%; }
.lotus .p1 { animation: petal 1s cubic-bezier(.2,.8,.2,1) .45s both, swayL 3.2s ease-in-out 1.5s infinite; }
.lotus .p2 { animation: petal 1s cubic-bezier(.2,.8,.2,1) .25s both, swayL2 3.2s ease-in-out 1.5s infinite; }
.lotus .p3 { animation: petal 1s cubic-bezier(.2,.8,.2,1) .05s both, rise 3.2s ease-in-out 1.5s infinite; }
.lotus .p4 { animation: petal 1s cubic-bezier(.2,.8,.2,1) .25s both, swayR2 3.2s ease-in-out 1.5s infinite; }
.lotus .p5 { animation: petal 1s cubic-bezier(.2,.8,.2,1) .45s both, swayR 3.2s ease-in-out 1.5s infinite; }
.lotus .s { transform-box: fill-box; transform-origin: 50% 50%; animation: sparkIn .5s ease-out 1.1s both, spark 1.6s ease-in-out 1.6s infinite; }
.lotus .h { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; animation: halo 1.6s ease-out 1.6s infinite; }
@keyframes petal { from { transform: scale(.2, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swayL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes swayL2 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes swayR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
@keyframes swayR2 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@keyframes rise { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.1); } }
@keyframes sparkIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spark { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.9); opacity: .6; } }
@keyframes halo { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(5); opacity: 0; } }
@keyframes lotusFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
.game {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%;
  padding: 30px 28px 28px; background: var(--night-2);
  border: 1px solid rgba(251, 246, 236, .06); border-radius: var(--radius);
}
.game__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 12px; background: rgba(242, 169, 59, .12); color: var(--saffron); }
.game h3 { margin: 0 0 10px; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.12; letter-spacing: -.03em; }
.game__kicker { font-size: .72em; font-weight: 600; letter-spacing: .14em; color: var(--saffron); display: block; margin-bottom: 4px; }
.game__tag { margin: 0 0 14px; color: var(--saffron); font-weight: 500; font-size: .98rem; }
.game__desc { flex: 1; margin: 0 0 28px; font-size: .95rem; line-height: 1.65; color: var(--on-night-soft); }

/* ---------- Policy ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0 0 36px; padding: 0; list-style: none; }
.stat__num { display: block; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.stat__label { display: block; margin-top: 10px; font-size: .9rem; }
.stats--ember .stat__num { color: var(--ember-deep); }
.stats--ember .stat__label { color: var(--ink-soft); }
.stats--saffron .stat__num { color: var(--saffron); }
.stats--saffron .stat__label { color: var(--on-night-soft); }
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 23, 58, .04);
  font-size: .98rem; line-height: 1.5; font-weight: 500;
}
.feature__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(242, 169, 59, .16); color: var(--ember-deep); }

/* ---------- Grid Index ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: pillar; }
.pillars li {
  counter-increment: pillar; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 20px; min-height: 96px;
  background: var(--night-2); border: 1px solid rgba(251, 246, 236, .07); border-radius: 16px;
  font-size: .95rem; font-weight: 500; line-height: 1.35;
}
.pillars li::before { content: counter(pillar, decimal-leading-zero); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--saffron); }
.pillars__caption { margin: 14px 0 0; font-size: .85rem; color: var(--on-night-soft); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 36px; font-size: .92rem; border-top: 1px solid rgba(251, 246, 236, .08); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(251, 246, 236, .12); }
.footer .brand { font-size: 1.05rem; font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--on-night-soft); text-decoration: none; border-radius: 8px; }
.footer__links a:hover { color: var(--saffron); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 22px 0 0; color: rgba(251, 246, 236, .6); font-size: .84rem; }
.footer__bottom .tagline { letter-spacing: .14em; font-weight: 600; font-size: .75rem; color: var(--saffron); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { max-width: 46rem; padding: clamp(48px, 8vw, 80px) 28px clamp(64px, 9vw, 96px); margin: 0 auto; }
.page h1 { margin: 0 0 20px; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.page p { margin: 0 0 1.25rem; line-height: 1.7; color: var(--ink-soft); }
.page p strong { color: var(--ink); }
.page a { color: var(--ember-deep); text-underline-offset: 3px; }
.page a.btn { text-decoration: none; }
.page .btn--ink { color: var(--on-night); }
.page .btn--line { color: var(--ink); }
.notfound { text-align: center; }
.notfound .lotus-static { width: 72px; height: auto; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; margin-top: 12px; }
.notfound .code { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--ember-deep); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .card, .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .wrap, .page { padding-left: 20px; padding-right: 20px; }
  /* No hamburger: brand on row one, all four destinations visible on row two */
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 12px 0; }
  .brand { padding: 0 8px; }
  .nav__links { justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { padding: 0 10px; font-size: .9rem; white-space: nowrap; }
  .nav__links .nav__cta { margin-left: 4px; padding: 0 16px; }
  .card { padding: 28px 22px; border-radius: 22px; }
  .writing, .games, .pillars { grid-template-columns: 1fr; }
  .games { gap: 16px; margin-top: 32px; }
  .game { padding: 24px 22px; }
  .game__icon { margin-bottom: 16px; }
  .game__desc { margin-bottom: 22px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li { min-height: 0; padding: 14px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lotus, .lotus .p, .lotus .s, .lotus .h { animation: none; }
  .btn, .writing a, .nav__links a { transition: none; }
}

/* Phone: fit all four nav items without scrolling; keep the stats on one row */
@media (max-width: 720px) {
  .nav__links a { padding: 0 8px; }
  .stats { gap: 16px 28px; }
  .stat__num { font-size: 2.2rem; }
}
@media (max-width: 400px) {
  .hide-sm { display: none; }
}

.games-hint { display: none; margin: 18px 0 0; font-size: .85rem; color: var(--on-night-soft); }
/* Phone: games become a swipeable row instead of a 6-card stack (no JS; scroll-snap).
   The next card peeks in from the right so it is obvious the row scrolls. */
@media (max-width: 720px) {
  .games {
    display: flex; gap: 12px; margin-left: -20px; margin-right: -20px; padding: 4px 20px 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .games::-webkit-scrollbar { display: none; }
  .games > li { position: relative; flex: 0 0 84%; scroll-snap-align: start; }
  .games-hint { display: block; }
}

/* Notice shown when an email link is clicked (see site.js). */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px); margin: 0;
  padding: 12px 18px; border-radius: 12px; background: var(--night); color: var(--on-night);
  font-size: .95rem; box-shadow: 0 8px 24px rgba(20, 23, 58, .25);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Phone: every destination in one row; the padding tightens so Contact stays on screen. */
@media (max-width: 480px) {
  .nav__links a { padding: 0 7px; font-size: .86rem; }
  .nav__links .nav__cta { margin-left: 2px; padding: 0 12px; }
}
@media (max-width: 400px) {
  .nav { padding-left: 6px; padding-right: 6px; }
  .nav__links a { padding: 0 5px; font-size: .82rem; }
  .nav__links .nav__cta { padding: 0 10px; }
}

/* ---------- Topic pages (games, energy-policy, grid-index, writing; generated by tools/pages.mjs) ---------- */
.intro { padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 64px); }
.intro .lead { margin-bottom: 28px; }
.crumbs { margin: 0 0 20px; font-size: .9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ember-deep); text-underline-offset: 3px; }
.section--tight { padding-top: 0; }
.section .features { margin-bottom: 32px; }
.feature a { color: var(--ember-deep); text-underline-offset: 3px; }
.features--night .feature { background: var(--night-2); color: var(--on-night); box-shadow: none; border: 1px solid rgba(251, 246, 236, .07); }
.features--night .feature__icon { color: var(--saffron); }
.steps { display: grid; gap: 14px; max-width: 60ch; margin: 0 0 36px; padding-left: 1.4em; line-height: 1.65; color: var(--ink-soft); }
.steps strong { color: var(--ink); }
.more { margin: 28px 0 0; }
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.article {
  display: flex; flex-direction: column; height: 100%; padding: 24px 24px 26px;
  background: #fff; border: 1px solid transparent; border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 23, 58, .04);
  color: var(--ink); text-decoration: none; transition: border-color .16s ease, transform .16s ease;
}
.article:hover { border-color: rgba(20, 23, 58, .14); transform: translateY(-1px); }
.article__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.article__meta { margin: 0 0 14px; font-size: .85rem; font-weight: 600; color: var(--ember-deep); }
.article__summary { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
@media (max-width: 720px) { .articles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .article { transition: none; } }
.on-night .btn--line { color: var(--on-night); border-color: rgba(251, 246, 236, .35); }
.on-night .btn--line:hover { background: rgba(251, 246, 236, .08); border-color: var(--on-night); }
.feature p { margin: 0; }

/* ---------- Instagram strip (filled by tools/instagram.mjs; absent until it has run) ---------- */
.ig__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ig__tile { display: block; overflow: hidden; border-radius: 14px; background: var(--sand); aspect-ratio: 1; transition: transform .16s ease; }
.ig__tile:hover { transform: translateY(-2px); }
.ig__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 920px) { .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ig__tile { transition: none; } }

/* ---------- भारतीय (Bhartiya): mudras, mantras, face yoga and chakras ---------- */
.bharat-intro__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bharat-intro__art { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20, 23, 58, .16); }
.bharat-title { margin: 0 0 14px; font-size: clamp(3.2rem, 8vw, 5.4rem); line-height: 1.05; font-weight: 400; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bharat-body { max-width: 60ch; margin: 0 0 16px; line-height: 1.7; color: var(--ink); }
.bharat-body .deva { color: var(--ember-deep); }
.bharat-note { max-width: 60ch; margin: 0 0 28px; padding: 14px 16px; border-left: 3px solid var(--saffron); border-radius: 0 12px 12px 0; background: rgba(255, 211, 106, .14); color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.bharat { border-top: 1px solid var(--line); }
.bharat__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.bharat__art { width: clamp(120px, 16vw, 180px); height: auto; border-radius: 50%; box-shadow: 0 0 0 6px rgba(242, 169, 59, .25); }

/* The cover strip: a swipeable row of thumbnails, the chosen one ringed in saffron. */
.picker { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 8px 0 28px; }
.picker__strip { display: flex; gap: 12px; margin: 0; padding: 6px 4px 12px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--saffron) transparent; }
.picker__strip li { flex: 0 0 auto; scroll-snap-align: start; }
.pick { display: grid; gap: 7px; width: 112px; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; line-height: 1.25; text-align: center; }
.pick img { width: 112px; height: 140px; object-fit: cover; border-radius: 12px; border: 3px solid transparent; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pick:hover img { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 23, 58, .16); }
.pick[aria-current="true"] img { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255, 211, 106, .55); }
.pick[aria-current="true"] span { color: var(--ember-deep); }
.picker__step, .deck__step { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(242, 169, 59, .7); border-radius: 999px; background: rgba(255, 211, 106, .16); color: var(--ember-deep); font: 600 1.4rem/1 inherit; cursor: pointer; transition: background .16s ease, color .16s ease; }
.picker__step:hover, .deck__step:hover:not(:disabled) { background: linear-gradient(135deg, #F2A93B, #FFD36A); color: var(--night); }
.deck__step:disabled { opacity: .35; cursor: default; }

/* One practice: a heading, then its cards as a scroll-snap carousel. */
.decks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.deck { min-width: 0; }
.deck[hidden] { display: none; }
.deck__head { margin-bottom: 18px; }
.deck__kind { margin: 0 0 6px; color: var(--ember-deep); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.deck__title { margin: 0 0 6px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.deck__deva { margin-left: 10px; color: var(--ember-deep); font-size: .85em; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.deck__sub { margin: 0; color: var(--ink-soft); }
.deck__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scroll-padding-inline: 4px; scrollbar-width: none; }
.deck__track::-webkit-scrollbar { display: none; }
.deck__track:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 4px; border-radius: 16px; }
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.deck__dots { display: inline-flex; gap: 8px; }
.vdot { width: 20px; height: 19px; background: url("/assets/mark.svg") center / contain no-repeat; opacity: .25; filter: grayscale(1); transition: opacity .2s ease, transform .2s ease, filter .2s ease; }
.vdot--on { opacity: 1; filter: none; transform: scale(1.15); }

/* The cards: the Instagram originals, 4:5, as images (a face-yoga movement guide is a looping video). */
.vcard { flex: 0 0 min(340px, 78vw); aspect-ratio: 4 / 5; margin: 0; scroll-snap-align: start; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(20, 23, 58, .12); background: #FBF2E2; }
.vcard img, .vcard video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .bharat-intro__grid { grid-template-columns: 1fr; }
  .bharat-intro__art { max-width: 420px; }
  .bharat__head { grid-template-columns: 1fr; }
  .bharat__art { display: none; }
  .picker { grid-template-columns: minmax(0, 1fr); }
  .picker__step { display: none; }
  .deck__deva { display: block; margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .pick img, .vdot { transition: none; } }

/* ---------- FAQ (topic pages; generated by tools/pages.mjs) ---------- */
.qa { max-width: 68ch; }
.qa__q { margin: 28px 0 8px; font-size: 1.08rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.qa__q:first-child { margin-top: 8px; }
.qa__a { margin: 0; line-height: 1.7; color: var(--ink-soft); }
.qa__updated { margin: 28px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* भारतीय "Read as text": the words on a deck's cards, collapsed under its controls. */
.deck__text { max-width: 62ch; margin: 14px auto 0; border-top: 1px solid var(--line); padding-top: 4px; }
.deck__text summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ember-deep); font-weight: 600; cursor: pointer; }
.deck__text h4 { margin: 14px 0 4px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.deck__text p, .deck__text li { margin: 0 0 8px; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
.deck__text ul { margin: 8px 0 0; padding-left: 1.2em; }

/* ---------- Contact form (home page; Netlify Forms) ---------- */
.split--top { align-items: start; }
.contact-form { display: grid; gap: 18px; margin: 0; }
.field { display: grid; gap: 6px; margin: 0; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(20, 23, 58, .28); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.contact-form .btn { justify-self: start; cursor: pointer; }
/* Spam honeypot: off-screen, not display:none, so simple bots still fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Landing deck ----------
   A full-screen vertical carousel: an intro, then one slide per game or tool. A particle field
   (deck.js) redraws the Virya lotus and then each slide's icon. Without JS the slides stack
   (deck-noscript.css); under reduced motion the particles hold still and slides cut, not glide. */
.header--night { background: #0E102A; border-bottom-color: rgba(251, 246, 236, .08); color: var(--on-night); transition: background .3s ease, color .3s ease; }
.header--night .nav__links a { color: var(--on-night-soft); }
.header--night .nav__links a:hover { color: var(--on-night); background: rgba(251, 246, 236, .08); }
.header--night .nav__links a[aria-current="true"] { color: var(--on-night); box-shadow: inset 0 -2px 0 var(--saffron); }
.header--night .nav__links .nav__cta { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(251, 246, 236, .35); }
.header--night .nav__links .nav__cta:hover { background: rgba(251, 246, 236, .1); }
.header--night :focus-visible { outline-color: var(--saffron); }

.vdeck {
  --glow: 228, 87, 46;
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100vh - var(--hdr, 65px)); height: calc(100svh - var(--hdr, 65px)); min-height: 520px;
  background: #0E102A; color: var(--on-night);
}
.vdeck :focus-visible { outline-color: var(--saffron); }
.vdeck[data-glow="saffron"] { --glow: 242, 169, 59; }
.vdeck[data-glow="indigo"] { --glow: 96, 104, 220; }
.vdeck__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.vdeck__glow {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 48% at 22% 42%, rgba(var(--glow), .30), transparent 70%),
    radial-gradient(38% 44% at 78% 62%, rgba(var(--glow), .16), transparent 70%),
    radial-gradient(60% 60% at 50% 110%, rgba(30, 34, 80, .9), transparent 70%);
  transition: background 1.2s ease;
  animation: deckGlow 14s ease-in-out infinite alternate;
}
@keyframes deckGlow { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 1%, 0) scale(1.06); } }

.vdeck__slides { position: relative; height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.vdeck__slide {
  position: absolute; inset: 0 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 72px; visibility: hidden; opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .8s;
}
.vdeck__slide.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: .25s, .25s, 0s; }
.vdeck__slide.is-above { transform: translateY(-28px); }

.vdeck__kicker { margin: 0 0 18px; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron); }
.vdeck__title { max-width: 12ch; margin: 0 0 22px; font-weight: 600; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.045em; }
/* A long single-line title would run under the icon on wide screens; this one breaks after "US Grid". */
.vdeck__title--narrow { max-width: 8ch; }
.vdeck__desc { max-width: 34ch; margin: 0 0 34px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: var(--on-night-soft); }
.btn--deck {
  background: #2E252C; color: var(--on-night);
  border-color: rgba(242, 169, 59, .55); box-shadow: 0 0 28px rgba(228, 87, 46, .25), inset 0 0 18px rgba(242, 169, 59, .12);
}
.btn--deck:hover { background: var(--saffron); color: var(--night); border-color: var(--saffron); }

/* Intro: centred, the lotus drawn in particles behind it */
.vdeck__intro { align-items: center; text-align: center; }
.vdeck__pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 30px; padding: 8px 16px;
  border: 1px solid rgba(242, 169, 59, .35); border-radius: 999px; background: rgba(14, 16, 42, .55);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-soft);
}
.vdeck__pill strong { color: var(--on-night); font-weight: 600; }
.vdeck__pill .deva { color: var(--saffron); text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.vdeck__pill-mark { width: 16px; height: 16px; }
.vdeck__headline { max-width: 22ch; margin: 0 0 44px; font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(14, 16, 42, .8); }
.vdeck__begin { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0; border: 0; background: none; color: var(--on-night-soft); font: inherit; cursor: pointer; }
.vdeck__begin-ring {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(242, 169, 59, .45); background: rgba(228, 87, 46, .12);
  box-shadow: 0 0 40px rgba(228, 87, 46, .3); transition: transform .3s ease, box-shadow .3s ease;
  animation: beginPulse 2.6s ease-in-out infinite;
}
.vdeck__begin:hover .vdeck__begin-ring { transform: scale(1.06); box-shadow: 0 0 60px rgba(242, 169, 59, .45); }
.vdeck__begin-mark { width: 40px; height: 40px; }
.vdeck__begin-label { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; }
@keyframes beginPulse { 0%, 100% { box-shadow: 0 0 30px rgba(228, 87, 46, .25); } 50% { box-shadow: 0 0 56px rgba(242, 169, 59, .42); } }

/* Bottom bar: arrows and slide name on the left, a way out on the right */
.vdeck__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0 28px 22px;
}
.vdeck__arrows { display: flex; flex-direction: column; gap: 8px; }
.vdeck__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(251, 246, 236, .22); background: rgba(14, 16, 42, .5); color: var(--on-night); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.vdeck__arrow:hover { background: rgba(242, 169, 59, .18); border-color: var(--saffron); }
.vdeck__arrow[disabled] { opacity: .35; cursor: default; }
.vdeck__count { margin: 0 0 12px; font-size: .82rem; color: var(--on-night-soft); }
.vdeck__count-name { color: var(--on-night); font-weight: 500; }
.vdeck__count-num { margin-left: 10px; font-variant-numeric: tabular-nums; color: var(--on-night-soft); }
.vdeck__skip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; font-size: .82rem; color: var(--on-night-soft); text-decoration: none; }
.vdeck__skip:hover { color: var(--on-night); }
.vdeck__skip .icon { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .vdeck__slides { padding: 0 20px; }
  .vdeck__slide { inset: 0 20px; justify-content: flex-end; padding-bottom: 150px; }
  .vdeck__intro { justify-content: center; padding-bottom: 96px; }
  .vdeck__ui { padding: 0 20px 16px; }
  .vdeck__arrows { flex-direction: row; }
  .vdeck__count { position: absolute; left: 20px; bottom: 70px; margin: 0; }
  .vdeck__headline { margin-bottom: 32px; }
  .vdeck__begin-ring { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .vdeck__glow, .vdeck__begin-ring { animation: none; }
  .vdeck__slide, .vdeck__slide.is-active { transition: opacity .2s ease, visibility 0s; transform: none; transition-delay: 0s; }
}
/* While the deck fills the top of the page, a vertical swipe on it changes slides instead of scrolling. */
.vdeck--live.vdeck--held { touch-action: pan-x pinch-zoom; }

/* ---------- Nav dropdowns (Tools, Games) ---------- */
.nav__menu { position: relative; }
.nav__menu summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  list-style: none; cursor: pointer; border-radius: 10px;
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary:hover, .nav__menu details[open] summary { color: var(--ink); background: rgba(20, 23, 58, .05); }
.nav__menu summary .icon { transition: transform .2s ease; }
.nav__menu details[open] summary .icon { transform: rotate(180deg); }
.header--night .nav__menu summary { color: var(--on-night-soft); }
.header--night .nav__menu summary:hover, .header--night .nav__menu details[open] summary { color: var(--on-night); background: rgba(251, 246, 236, .08); }
.menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 300px; margin: 0; padding: 8px; list-style: none;
  background: #0E102A; border: 1px solid rgba(242, 169, 59, .22); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14, 16, 42, .45);
}
.menu a {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  color: var(--on-night); text-decoration: none;
}
.menu a:hover { background: rgba(242, 169, 59, .12); }
.menu a:focus-visible { outline-color: var(--saffron); }
.menu__name { font-size: .92rem; font-weight: 600; }
.menu__desc { font-size: .8rem; color: var(--on-night-soft); }
.menu__more { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(251, 246, 236, .1); }
.menu__more a { flex-direction: row; align-items: center; font-size: .85rem; font-weight: 600; color: var(--saffron); }
@media (max-width: 720px) {
  .nav__menu { position: static; }
  .menu { position: absolute; left: 16px; right: 16px; width: auto; top: calc(100% - 4px); }
  .nav { position: relative; }
}

/* Intro headline: one short line, then the subline */
.vdeck__intro .vdeck__headline { max-width: 14ch; margin-bottom: 18px; font-size: clamp(2.4rem, 6.4vw, 5rem); }
.vdeck__sub { max-width: 40ch; margin: 0 0 40px; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--on-night-soft); text-shadow: 0 2px 20px rgba(14, 16, 42, .9); }
.nav__links .menu a, .header--night .nav__links .menu a {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 10px 12px; text-align: left; white-space: normal; font-size: inherit; color: var(--on-night); border-radius: 10px; box-shadow: none;
}
.nav__links .menu a:hover { background: rgba(242, 169, 59, .12); color: var(--on-night); }
.nav__links .menu__more a { flex-direction: row; align-items: center; justify-content: flex-start; color: var(--saffron); }
@media (max-width: 720px) { .nav__links { justify-content: flex-end; gap: 4px; } }

/* ---------- Deck, Virya touches ----------
   Day (ivory) for the tools, night for the intro and games; a petal rail instead of plain arrows;
   a faint Devanagari numeral behind each slide. */
.vdeck { transition: background-color .9s ease, color .9s ease; }
.vdeck[data-theme="ivory"] { background-color: var(--ivory); color: var(--ink); }
.vdeck[data-theme="ivory"] .vdeck__glow {
  background:
    radial-gradient(44% 50% at 20% 40%, rgba(242, 169, 59, .28), transparent 70%),
    radial-gradient(40% 46% at 78% 60%, rgba(228, 87, 46, .14), transparent 70%),
    radial-gradient(70% 60% at 50% 115%, rgba(237, 227, 207, 1), transparent 70%);
}
.vdeck[data-theme="ivory"] .vdeck__kicker { color: var(--ember-deep); }
.vdeck[data-theme="ivory"] .vdeck__desc { color: var(--ink-soft); }
.vdeck[data-theme="ivory"] .btn--deck { background: var(--night); color: var(--on-night); border-color: var(--night); box-shadow: 0 10px 26px rgba(20, 23, 58, .18); }
.vdeck[data-theme="ivory"] .btn--deck:hover { background: var(--night-2); color: var(--on-night); }
.vdeck[data-theme="ivory"] :focus-visible { outline-color: var(--ember-deep); }
.vdeck[data-theme="ivory"] .vdeck__count { color: var(--ink-soft); }
.vdeck[data-theme="ivory"] .vdeck__count-name { color: var(--ink); }
.vdeck[data-theme="ivory"] .vdeck__skip { color: var(--ink-soft); }
.vdeck[data-theme="ivory"] .vdeck__skip:hover { color: var(--ink); }

/* Devanagari slide numeral, large and faint, behind the kicker and title */
.vdeck__slide[data-num]::before {
  content: attr(data-num); position: absolute; z-index: -1; left: -.06em; top: 50%;
  transform: translateY(-62%); pointer-events: none;
  font-family: 'Tiro Devanagari Hindi', serif; font-size: clamp(14rem, 34vw, 26rem); line-height: 1;
  color: rgba(251, 246, 236, .045);
}
.vdeck[data-theme="ivory"] .vdeck__slide[data-num]::before { color: rgba(200, 67, 31, .07); }

/* Petal rail: leaf-shaped prev/next with one lotus petal per slide between them */
.vdeck__rail { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vdeck__leaf {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid rgba(242, 169, 59, .5); border-radius: 50% 4px 50% 4px; transform: rotate(45deg);
  background: rgba(14, 16, 42, .55); color: var(--on-night);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.vdeck__leaf .icon { transform: rotate(-45deg); width: 17px; height: 17px; }
.vdeck__leaf:hover { background: var(--saffron); color: var(--night); box-shadow: 0 0 22px rgba(242, 169, 59, .45); }
.vdeck__leaf[disabled] { opacity: .3; cursor: default; background: transparent; box-shadow: none; color: var(--on-night); }
.vdeck[data-theme="ivory"] .vdeck__leaf { background: var(--ivory); border-color: rgba(200, 67, 31, .55); color: var(--ember-deep); }
.vdeck[data-theme="ivory"] .vdeck__leaf:hover { background: var(--ember-deep); color: var(--ivory); }
.vdeck__petals { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 4px 0; padding: 0; list-style: none; }
.vdeck__petals svg { width: 9px; height: 15px; fill: none; stroke: rgba(242, 169, 59, .45); stroke-width: 1.4; transition: fill .4s ease, stroke .4s ease, transform .4s ease; }
.vdeck__petals .is-past svg { fill: rgba(242, 169, 59, .45); stroke: transparent; }
.vdeck__petals .is-on svg { fill: url(#flame); stroke: transparent; transform: scale(1.45); }
.vdeck[data-theme="ivory"] .vdeck__petals svg { stroke: rgba(200, 67, 31, .45); }
.vdeck[data-theme="ivory"] .vdeck__petals .is-past svg { fill: rgba(200, 67, 31, .4); }
.vdeck__count { display: inline-flex; align-items: center; gap: 8px; }
.vdeck__count-mark { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .vdeck__rail { flex-direction: row; gap: 12px; }
  .vdeck__petals { flex-direction: row; gap: 4px; }
  .vdeck__petals .is-on svg { transform: scale(1.3); }
  .vdeck__slide[data-num]::before { top: 62%; font-size: 13rem; }
}
@media (max-width: 360px) { .vdeck__petals { display: none; } }
@media (prefers-reduced-motion: reduce) { .vdeck { transition: none; } }
.vdeck[data-theme="ivory"] .vdeck__count-num { color: var(--ink-soft); }
.vdeck__ui { pointer-events: none; align-items: center; }
.vdeck__ui > * { pointer-events: auto; }
@media (min-width: 721px) {
  .vdeck__rail { position: absolute; right: 28px; bottom: calc(50% - 0px); transform: translateY(50%); }
  .vdeck__ui { position: static; }
  .vdeck__count, .vdeck__skip { position: absolute; bottom: 22px; }
  .vdeck__count { left: max(28px, calc((100% - 1180px) / 2 + 28px)); margin: 0; }
  .vdeck__skip { right: max(28px, calc((100% - 1180px) / 2 + 28px)); }
}
.vdeck__skip { white-space: nowrap; }
@media (max-width: 720px) {
  .vdeck__rail { gap: 8px; }
  .vdeck__petals { gap: 3px; }
  .vdeck__petals svg { width: 8px; height: 13px; }
  .vdeck__skip { margin-left: auto; }
}

/* ---------- Ivory contrast + lotus prev/next ----------
   Measured against the rendered glow, not the flat ivory: text >= 4.5:1, controls >= 3:1. */
.vdeck[data-theme="ivory"] .vdeck__kicker { color: #9A2F15; }               /* ~6:1 on the warm glow */
.vdeck[data-theme="ivory"] .vdeck__glow {
  background:
    radial-gradient(44% 50% at 20% 40%, rgba(242, 169, 59, .16), transparent 70%),
    radial-gradient(40% 46% at 78% 60%, rgba(228, 87, 46, .10), transparent 70%),
    radial-gradient(70% 60% at 50% 115%, rgba(237, 227, 207, 1), transparent 70%);
}
.vdeck[data-theme="ivory"] .vdeck__slide[data-num]::before { color: rgba(154, 47, 21, .06); }
.vdeck[data-theme="ivory"] .vdeck__petals svg { stroke: #9A2F15; }
.vdeck[data-theme="ivory"] .vdeck__petals .is-past svg { fill: #9A2F15; stroke: transparent; }
.vdeck[data-theme="ivory"] .vdeck__petals .is-on svg { fill: var(--night); }

.vdeck__leaf { width: 48px; height: 48px; }
.vdeck__leaf-in { display: flex; flex-direction: column; align-items: center; gap: 1px; transform: rotate(-45deg); }
.vdeck__leaf-mark { width: 20px; height: 20px; }
.vdeck__leaf-chev { width: 14px; height: 7px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vdeck__leaf:hover .vdeck__leaf-mark { filter: drop-shadow(0 0 6px rgba(255, 211, 106, .7)); }
.vdeck__leaf:hover { background: rgba(242, 169, 59, .2); color: var(--on-night); }
/* On ivory the leaves turn night, like the call-to-action, so the flame lotus keeps its contrast. */
.vdeck[data-theme="ivory"] .vdeck__leaf { background: var(--night); border-color: var(--night); color: var(--ivory); }
.vdeck[data-theme="ivory"] .vdeck__leaf:hover { background: var(--night-2); color: var(--ivory); }
.vdeck[data-theme="ivory"] .vdeck__leaf[disabled] { background: transparent; border-color: rgba(20, 23, 58, .35); color: var(--ink-soft); }
