/* Srinikesh Fireworks: Home page. True black, huge tight type, one accent that follows the chapter. */
.page-home { --bg: #000; }
.story-scroll { position: relative; z-index: 1; }
.after-story { position: relative; z-index: 2; }
.page-home .footer { position: relative; z-index: 2; margin-top: 0; }
/* chapters overlap a little, so the story takes less scrolling */
.nav-progress, .link, .btn-primary, .badge { transition: background-color .8s var(--ease), color .8s var(--ease); }

/* ---------- chapters (default: plain sections with all text visible) */
.chapter { position: relative; }
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 96px 24px calc(48px + var(--bar-h)); overflow: hidden; text-align: center; }
.sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); margin-top: 18px; }
.copy { max-width: 1100px; }
.copy-top { align-self: center; margin-bottom: auto; padding-top: 4vh; }

.ch-hero .stage { justify-content: center; }
/* hero is only as tall as its words, so the best sellers come right after */
.ch-show .stage { min-height: 0; padding-bottom: 24px; }
.hero-copy { display: grid; justify-items: center; }
.emblem-hero { width: clamp(84px, 9vw, 128px); margin-bottom: 14px; }
.hero-facts { margin-top: 30px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero-sub { margin-top: 18px; font-size: clamp(18px, 2vw, 28px); font-style: italic; color: var(--gold); }

.ch-ascent .stage { align-items: stretch; text-align: left; }
.copy-left { align-self: flex-start; max-width: 560px; padding-left: clamp(0px, 6vw, 96px); }




.hero-title { font-size: clamp(42px, 7.6vw, 104px); line-height: 1; text-wrap: balance; margin-inline: auto; }
html:lang(ta) .hero-title { font-size: clamp(34px, 6.4vw, 92px); line-height: 1.3; max-width: none; }

/* ---------- Ways in */
.ways { padding-top: 8px; }
.page-ways main { padding-top: 92px; min-height: 70vh; }
.band { border-block: 1px solid rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: clamp(44px, 6vw, 80px); }
.band-track { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 10px 16px; }
.band a { display: block; padding: 10px 16px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.band a:hover, .band a:focus-visible { color: var(--text); }
.band.is-moving .band-track { flex-wrap: nowrap; width: max-content; padding-inline: 0; animation: band 90s linear infinite; }
.band.is-moving:hover .band-track, .band.is-moving:focus-within .band-track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-50%); } }
.ways .headline, .story .headline, .safety .headline, .contact .headline { margin-bottom: clamp(32px, 4vw, 56px); max-width: 16ch; }
html:lang(ta) .ways .headline, html:lang(ta) .story .headline, html:lang(ta) .safety .headline, html:lang(ta) .contact .headline { max-width: 22ch; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w-in { display: inline-block; }
html:lang(ta) .w { padding-top: .2em; margin-top: -.2em; }
.seg-tabs { margin-bottom: 36px; }
.panel:focus-visible { outline-offset: 8px; }
.panel-title { font-size: 20px; margin-bottom: 18px; }
.js .panel-title { display: none; }
.no-js .panel { margin-bottom: 48px; }
.ways-tour { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Our Story */
.story, .safety, .reviews, .faq, .contact { padding-top: clamp(110px, 16vw, 220px); }
.story-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.story-body { display: grid; gap: 20px; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 64ch; }
.story-body .lead { color: var(--text); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; letter-spacing: -.01em; }
html:lang(ta) .story-body .lead { letter-spacing: 0; line-height: 1.7; }
.story-photos, .place-photos { display: grid; gap: 16px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(64px, 8vw, 110px); }
.values li { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.values strong { color: var(--text); font-size: 20px; letter-spacing: -.02em; }
html:lang(ta) .values strong { letter-spacing: 0; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 clamp(48px, 6vw, 80px); }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats dd { font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.05em; font-weight: 500; color: var(--text); }
.stats .stat-word { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -.035em; line-height: 1.05; display: flex; align-items: flex-end; min-height: clamp(44px, 7vw, 104px); }
html:lang(ta) .stats .stat-word { letter-spacing: 0; font-size: clamp(20px, 2.6vw, 36px); line-height: 1.4; }
.stats dt { font-size: 14px; color: var(--dim); }
.story .eyebrow { margin: clamp(48px, 6vw, 80px) 0 22px; }
.founders { margin-bottom: clamp(56px, 7vw, 96px); }
.founders { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 28px; }
.founders li { display: grid; gap: 4px; }
.founders .slot { margin-bottom: 12px; }
.founder-name { font-size: 22px; letter-spacing: -.02em; }
.founder-title { color: var(--muted); font-size: 15px; }
.gallery { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }

/* ---------- Safety */
.safety-list { counter-reset: safe; display: grid; max-width: 900px; }
.safety-list li { counter-increment: safe; display: grid; grid-template-columns: 100px 1fr; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -.01em; }
html:lang(ta) .safety-list li { letter-spacing: 0; line-height: 1.7; font-size: clamp(16px, 1.4vw, 20px); }

/* ---------- Contact */
.contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.action { display: grid; align-content: start; gap: 8px; padding: 28px 28px 32px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.action + .action { padding-left: 28px; border-left: 1px solid var(--line); }
.action .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.action strong { color: var(--text); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.1; }
html:lang(ta) .action strong { letter-spacing: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }
a.action:hover strong { color: var(--accent); }
.phones { display: grid; gap: 12px; margin-top: 8px; }
.phones li { display: grid; gap: 0; font-size: 14px; }
.phones a { font-size: 19px; color: var(--text); padding: 4px 0; }
.phones a:hover { color: var(--accent); }
.contact-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); margin-top: 56px; align-items: start; }
address { font-style: normal; display: grid; gap: 6px; color: var(--muted); justify-items: start; }
address span:first-of-type { color: var(--text); font-size: 20px; font-weight: 600; }
address .link { margin-top: 10px; padding: 6px 0; }
.place-photos { grid-template-columns: 1fr 1fr; }
.contact { padding-bottom: 40px; }

@media (max-width: 820px) {
  .stage { padding: 84px 20px calc(28px + var(--bar-h)); gap: 18px; }
  .hero-title { max-width: 9ch; }
  .hero-facts { margin-top: 20px; font-size: 14px; }
  .ch-ascent .stage { justify-content: flex-start; }
  .copy-left { padding-top: 4vh; }
  .offer-facts { flex-direction: column; align-items: center; gap: 4px; }
  .offer-facts li + li::before { display: none; }
  .story-cols, .contact-place { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 0; }
  .values li { padding: 18px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .founders { grid-template-columns: 1fr 1fr; gap: 16px; }
  .founder-name { font-size: 18px; }
  .contact-actions { grid-template-columns: 1fr; }
  .action, .action + .action { padding: 24px 0 26px; border-left: 0; }
  .safety-list li { grid-template-columns: 74px 1fr; padding: 16px 0; }
  .slot-gallery { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .band.is-moving .band-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- festive decorations (art in /decor, motion in decor.js; at rest each one is complete and still) */
.page-home, .page-ways { --gold-hi: #fde6a8; --gold-glow: rgba(245, 196, 81, .45); --flame-glow: rgba(255, 168, 64, .38); }

.kolam { display: block; width: min(520px, 100%); height: auto; margin: 0 0 30px; overflow: visible; filter: drop-shadow(0 0 5px var(--gold-glow)); }
.kolam-line { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kolam-dot { fill: var(--gold-hi); }
#sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.decor-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 56px); }
.decor-head .headline { margin-bottom: 0; min-width: 0; overflow-wrap: break-word; }
.rangoli { position: relative; display: block; width: clamp(240px, 32vw, 440px); max-width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.rangoli-contact { width: clamp(200px, 22vw, 300px); }
.rangoli:active { cursor: grabbing; }
.rangoli:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
.rangoli-turn, .rangoli-spin { position: absolute; inset: 0; display: block; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; -webkit-user-drag: none;
  /* each ring stays solid a little past its edge, so the next ring fades in over it and no seam shows at rest */
  -webkit-mask-image: radial-gradient(circle closest-side, transparent var(--r0), #000 calc(var(--r0) + .5%), #000 calc(var(--r1) + .6%), transparent calc(var(--r1) + 1%));
  mask-image: radial-gradient(circle closest-side, transparent var(--r0), #000 calc(var(--r0) + .5%), #000 calc(var(--r1) + .6%), transparent calc(var(--r1) + 1%)); }
.ring-1 { --r0: -1%; }
.ring-4 { --r1: 101%; }
/* the cuts follow each rangoli's own gold circles */
.rangoli-story .ring-1 { --r1: 19%; } .rangoli-story .ring-2 { --r0: 19%; --r1: 34%; } .rangoli-story .ring-3 { --r0: 34%; --r1: 42%; } .rangoli-story .ring-4 { --r0: 42%; }
.rangoli-contact .ring-1 { --r1: 24%; } .rangoli-contact .ring-2 { --r0: 24%; --r1: 42%; } .rangoli-contact .ring-3 { --r0: 42%; --r1: 66%; } .rangoli-contact .ring-4 { --r0: 66%; }

.diya { position: relative; display: block; width: 76px; }
.diya-lamp { display: block; width: 100%; height: auto; }
.diya::after { content: ""; position: absolute; left: 16%; top: 6%; width: 2px; height: 2px; border-radius: 50%; box-shadow: 0 0 26px 16px var(--flame-glow); transition: opacity .6s var(--ease); pointer-events: none; }
/* flame box and its base come from the cut (see cut_art.py) */
.flame { position: absolute; left: 6.09%; top: -16.74%; width: 20.05%; height: 41.16%; transform-origin: 50% 94.5%; transform: rotate(var(--lean, 0deg)); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.flame img { display: block; width: 100%; height: 100%; transform-origin: 50% 94.5%; animation: flicker 2.4s ease-in-out infinite alternate; }
.safety-list li:hover .flame, .safety-list li.flare .flame { transform: rotate(var(--lean, 0deg)) scale(1.3); }
.lamps-wait li:not(.is-lit) .flame { opacity: 0; transform: scale(.25); }
.lamps-wait li:not(.is-lit) .diya::after { opacity: 0; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); opacity: .94; }
  30% { transform: scale(.96, 1.05) skewX(-1.6deg); opacity: 1; }
  65% { transform: scale(1.03, .96) skewX(1.2deg); opacity: .9; }
  100% { transform: scale(.98, 1.03) skewX(-.5deg); opacity: 1; }
}

@media (max-width: 820px) {
  .decor-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .decor-head .rangoli { order: -1; justify-self: center; width: min(78vw, 340px); }
  .decor-head .rangoli-contact { width: min(60vw, 240px); }
  .diya { width: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .diya::after { transition: none; }
  .flame img { animation: none; }
}

/* ---------- customer reviews: a slow sliding band (home.js copies the cards once so it loops); hover or focus pauses it */
.reviews .headline { margin-bottom: clamp(28px, 4vw, 48px); max-width: 16ch; }
.reviews-band { overflow-x: auto; scrollbar-width: none; }
.reviews-band::-webkit-scrollbar { display: none; }
.reviews-band:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.reviews-track { display: flex; width: max-content; padding-inline: 20px 4px; }
.review { flex: none; width: min(340px, 80vw); margin-right: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.review-stars { margin-bottom: -6px; color: var(--gold); font-size: 17px; line-height: 1; letter-spacing: 3px; }
.review-text { flex: 1; font-size: 16px; line-height: 1.6; }
.review-who { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.review-who strong { color: var(--text); font-size: 15px; }
.reviews-band.is-moving { overflow: hidden; }
.reviews-band.is-moving .reviews-track { padding-inline: 0; animation: reviews 180s linear infinite; } /* 20 cards: about 9 s per card */
.reviews-band.is-moving:hover .reviews-track, .reviews-band.is-moving:focus-within .reviews-track, .reviews-band.is-moving:focus .reviews-track { animation-play-state: paused; }
@keyframes reviews { to { transform: translateX(-50%); } }

/* ---------- best sellers: a row the customer slides by hand (no auto-scroll) */
.best, .brands, .page-home .reviews { padding-top: clamp(48px, 6vw, 88px); }
.best .headline, .brands .headline { margin-bottom: clamp(24px, 3vw, 40px); }
.best-row { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.best-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.best-row .card { flex: none; width: min(260px, 70vw); scroll-snap-align: start; cursor: default; }

/* ---------- our brands: logo boxes rolling on their own (same band as the reviews) */
.brand-logo { flex: none; width: 180px; margin-right: 16px; }
.brands-band.is-moving .reviews-track { animation-duration: 40s; }

/* ---------- FAQ: native details, so a tap or the keyboard opens it and it works without JS */
.faq .headline { margin-bottom: clamp(28px, 4vw, 48px); max-width: 16ch; }
html:lang(ta) .faq .headline, html:lang(ta) .reviews .headline { max-width: 22ch; }
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 28px; font-weight: 400; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.faq-item p { max-width: 64ch; padding-bottom: 22px; color: var(--muted); }
html:lang(ta) .faq-item summary { font-size: 18px; line-height: 1.5; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .reviews-band.is-moving .reviews-track { animation: none; } }

/* ---------- About Us page: the story sits just under the menu */
.page-ways .story { padding-top: 32px; }
