/* Sri Kalyani Mahal: sample site by Final Draft
   Palette: banana-leaf green, marigold, jasmine white, kumkum red, dark ink. */

@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/rozha-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: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/rozha-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Madurai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/hind-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: "Hind Madurai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/hind-400-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Madurai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/hind-400-tamil.woff2) format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Madurai"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/hind-600-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: "Hind Madurai"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/hind-600-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind Madurai"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/hind-600-tamil.woff2) format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+25CC; }

:root {
  --leaf: #1D4A2F;
  --leaf-mid: #2E6B45;
  --leaf-soft: #E7EFE2;
  --marigold: #F2A007;
  --marigold-deep: #D98A00;
  --jasmine: #FBFAF4;
  --paper: #FFFEF9;
  --kumkum: #B3202A;
  --ink: #1C1A17;
  --ink-soft: #4B473F;
  --line: #DCDFCF;
  --ring: var(--kumkum);

  --f-display: "Rozha One", "Georgia", serif;
  --f-body: "Hind Madurai", "Noto Sans Tamil", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --sh-1: 0 1px 2px rgba(29, 74, 47, .08), 0 6px 14px -6px rgba(29, 74, 47, .18);
  --sh-2: 0 2px 4px rgba(29, 74, 47, .06), 0 22px 48px -20px rgba(29, 74, 47, .42);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);

  --ribbon-h: 44px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ribbon-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-top: var(--ribbon-h);
  padding-bottom: var(--dock-h);
  background: var(--jasmine);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--s4); }
.ico { width: 22px; height: 22px; flex: none; }
.small { font-size: .9rem; color: var(--ink-soft); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--jasmine); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: calc(var(--ribbon-h) + 8px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 1.03rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-marigold { background: var(--marigold); color: var(--ink); box-shadow: 0 1px 0 rgba(28,26,23,.25) inset, var(--sh-1); }
.btn-marigold:hover { background: #FFB21F; }
.btn-leaf { background: var(--leaf); color: var(--jasmine); box-shadow: var(--sh-1); }
.btn-leaf:hover { background: var(--leaf-mid); }
.btn-ghost { background: transparent; color: var(--leaf); border-color: var(--leaf); }
.btn-ghost:hover { background: var(--leaf-soft); }

/* Final Draft ribbon */
.ribbon {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 var(--s4); background: var(--ink); color: #E9E6DA; font-size: .875rem;
}
.ribbon-text { white-space: nowrap; }
.ribbon-link {
  display: inline-flex; align-items: center; min-height: var(--ribbon-h); padding: 0 4px;
  color: var(--marigold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.ribbon-link:hover { color: #FFC24A; }
.ribbon .ribbon-link:focus-visible { outline-color: var(--marigold); outline-offset: -4px; }


.btn-glass { background: rgba(251, 250, 244, .1); color: var(--jasmine); border-color: rgba(251, 250, 244, .65); }
.btn-glass:hover { background: rgba(251, 250, 244, .2); }

/* Header, floating over the hero */
.site-head {
  position: absolute; top: var(--ribbon-h); left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) var(--s4); --ring: var(--marigold);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-family: var(--f-display); font-size: 1.25rem; color: var(--jasmine); text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(251, 250, 244, .35); }
.menu-btn { min-height: 44px; min-width: 76px; padding: 0 16px; border-radius: 10px; border: 1.5px solid rgba(251, 250, 244, .75); background: rgba(20, 14, 8, .3); color: var(--jasmine); font-weight: 600; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--jasmine); color: var(--leaf); }
.site-nav { display: none; }
.site-nav.open {
  display: grid; position: absolute; top: 100%; left: var(--s4); right: var(--s4);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); padding: var(--s2); --ring: var(--kumkum);
}
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.site-nav a:hover { background: var(--leaf-soft); }

/* Hero: full-bleed evening hall in layered depth */
.hero {
  position: relative; height: calc(100svh - var(--ribbon-h)); min-height: 580px; max-height: 1080px;
  overflow: hidden; background: #160F08; color: var(--jasmine); isolation: isolate; --ring: var(--marigold);
}
.scene { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 50%; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; transform: translateZ(var(--z, 0)) scale(var(--s, 1)); }
.l-photo { --z: -180px; --s: 1.25; }
.l-rays { --z: -120px; --s: 1.14; }
.l-bokeh-far { --z: -60px; --s: 1.08; }
.l-shade { --s: 1.05; }
.l-bokeh-near { --z: 150px; --s: .86; }
.l-strings { --z: 190px; --s: .82; }
.l-thoranam { --z: 240px; --s: .77; }

.l-photo picture, .l-photo img { display: block; width: 100%; height: 100%; }
.l-photo img { object-fit: cover; object-position: 50% 58%; }
.l-shade {
  background:
    linear-gradient(180deg, rgba(14, 10, 6, .62) 0%, rgba(14, 10, 6, 0) 24%, rgba(14, 10, 6, 0) 40%, rgba(14, 10, 6, .72) 74%, rgba(14, 10, 6, .94) 100%),
    radial-gradient(80% 50% at 50% 26%, rgba(242, 160, 7, .22), rgba(242, 160, 7, 0) 70%);
}
.rays {
  position: absolute; left: -30%; top: -35%; width: 160%; height: 135%; transform-origin: 50% 0;
  background: repeating-conic-gradient(from 180deg at 50% 0%, rgba(255, 214, 140, .13) 0deg 3deg, rgba(255, 214, 140, 0) 3deg 11deg);
  -webkit-mask-image: radial-gradient(55% 75% at 50% 0%, #000 0%, transparent 78%); mask-image: radial-gradient(55% 75% at 50% 0%, #000 0%, transparent 78%);
  animation: rays 16s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.l-bokeh-far i, .l-bokeh-near i {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 150, .95) 0, rgba(255, 184, 70, .4) 34%, rgba(255, 170, 60, 0) 70%);
  animation: drift var(--d) ease-in-out infinite alternate, twinkle calc(var(--d) * .45) ease-in-out infinite alternate;
}
.l-bokeh-near i { background: radial-gradient(circle, rgba(255, 210, 130, .42) 0, rgba(255, 180, 70, .16) 45%, rgba(255, 170, 60, 0) 70%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(16px, -30px, 0); } }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.thoranam { position: absolute; top: 62px; left: -4%; width: 108%; height: clamp(74px, 15vh, 140px); overflow: visible; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .45)); }
.string { position: absolute; top: calc(62px + 6%); height: 60%; width: clamp(15px, 2vw, 22px); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.string-l { left: 3%; }
.string-r { right: 3%; }

.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 500px; z-index: 2; }
.petal {
  position: absolute; top: -6%; left: var(--x); width: var(--w, 14px); height: calc(var(--w, 14px) * 1.4);
  color: var(--c, var(--marigold)); fill: currentColor; opacity: 0;
  animation: fall var(--d, 11s) linear var(--delay, 0s) infinite;
}
.petals.paused .petal, .paused .l-bokeh-far i, .paused .l-bokeh-near i, .paused .rays { animation-play-state: paused; }
@keyframes fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate3d(1, .4, .2, 0deg); }
  8%   { opacity: .95; }
  50%  { transform: translate3d(var(--sway, 30px), calc(var(--fall, 600px) * .5), var(--z, 40px)) rotate3d(.3, 1, .4, 300deg); }
  88%  { opacity: .9; }
  100% { opacity: 0; transform: translate3d(calc(var(--sway, 30px) * -.4), var(--fall, 600px), 0) rotate3d(1, .2, .6, 640deg); }
}

.hero-content {
  position: absolute; left: 0; right: 0; bottom: calc(var(--dock-h) + 28px); z-index: 5;
  width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--s4);
}
.tamil-line { font-weight: 600; color: #FFC24A; font-size: 1rem; line-height: 1.5; margin-bottom: var(--s3); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.tamil-line span, .foot-ta span { white-space: nowrap; }
.hero h1 { font-size: clamp(3.3rem, 15.5vw, 8.6rem); line-height: .94; letter-spacing: -0.015em; color: #FFF9EC; text-shadow: 0 2px 24px rgba(0, 0, 0, .5), 0 0 70px rgba(242, 160, 7, .35); }
.hero h1 .line { display: block; overflow: hidden; padding: 0 .04em .08em; margin: 0 -.04em; }
.hero h1 .line > span { display: inline-block; }
.hero-lede { margin-top: var(--s4); font-size: 1.08rem; line-height: 1.6; max-width: 40ch; color: #F1E9D8; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.lede-more { display: none; }
.hero-actions { display: none; gap: var(--s3); margin-top: var(--s5); }
.tilt-btn {
  position: absolute; right: var(--s4); top: calc(74px + clamp(74px, 15vh, 140px)); z-index: 6; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(251, 250, 244, .35); background: rgba(20, 14, 8, .35); color: #F1E9D8; font-size: .82rem; font-weight: 600; cursor: pointer;
}

/* The one orchestrated entrance */
@media (prefers-reduced-motion: no-preference) {
  .l-photo img { animation: heroZoom 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  .thoranam { animation: dropIn 1.4s var(--spring) .55s both; }
  .string { animation: dropIn 1.5s var(--spring) .8s both; }
  .l-rays, .l-bokeh-far, .l-bokeh-near { animation: fadeIn 2s ease-out 1s both; }
  .l-shade::after { content: ""; position: absolute; inset: 0; background: #0E0905; pointer-events: none; animation: lightsUp 1.9s cubic-bezier(.4, 0, .2, 1) .1s both; }
  .tamil-line { animation: riseIn 1s var(--ease) .25s both; }
  .hero h1 .line > span { animation: lineUp 1.15s var(--ease) .4s both; }
  .hero h1 .line + .line > span { animation-delay: .55s; }
  .hero-lede, .hero-actions { animation: riseIn 1.1s var(--ease) .8s both; }
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes dropIn { from { transform: translate3d(0, -120%, 0); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightsUp { 0% { opacity: .82; } 35% { opacity: .55; } 100% { opacity: 0; } }
@keyframes riseIn { from { transform: translate3d(0, 26px, 0); } to { transform: none; } }
@keyframes lineUp { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }

/* Section rhythm */
.dates, .hall, .events, .packages, .photos, .location, .faq { padding-block: var(--s8); }
.dates h2, .hall h2, .events h2, .packages h2, .photos h2, .location h2, .faq h2 { font-size: clamp(2.1rem, 8.4vw, 3.4rem); color: var(--leaf); }

.sample-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s4);
  font-size: .9rem; font-weight: 600; color: var(--marigold);
}
.sample-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sample-tag-light { color: var(--kumkum); }

/* Muhurtham dates */
.dates { position: relative; background: var(--leaf); color: var(--jasmine); --ring: var(--marigold); }
.dates::before, .dates::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle, var(--marigold) 2px, transparent 2.6px) 7px 50% / 18px 10px repeat-x;
  opacity: .9;
}
.dates::before { top: 14px; }
.dates::after { bottom: 14px; }
.dates h2 { color: var(--jasmine); }
.tamil-sub { margin-top: var(--s2); color: var(--marigold); font-weight: 600; font-size: 1.05rem; }
.dates-lede { color: #DCE6DD; font-size: 1.1rem; max-width: 52ch; }

.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); margin-top: var(--s6); border-bottom: 1px solid rgba(251, 250, 244, .18); overflow-x: auto; scrollbar-width: none; }
.months::-webkit-scrollbar { display: none; }
.month-tab {
  display: grid; justify-items: start; gap: 0; min-height: 60px; padding: 8px 8px 10px; min-width: 0;
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: #C8D6CB; cursor: pointer; text-align: left;
}
.month-tab .mt-name { font-family: var(--f-display); font-size: clamp(1.05rem, 4.6vw, 1.45rem); line-height: 1.1; }
.month-tab .mt-name, .month-tab .mt-count { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-tab .mt-count { font-size: .85rem; }
.month-tab[aria-selected="true"] { color: var(--jasmine); border-bottom-color: var(--marigold); }
.month-tab[aria-selected="true"] .mt-count { color: var(--marigold); }
.month-tab:focus-visible { outline-offset: -3px; }

.month-panel { padding-top: var(--s5); }
.month-panel[hidden] { display: none; }
.date-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.dcard { position: relative; height: 118px; perspective: 700px; }
@media (prefers-reduced-motion: no-preference) {
  .js .month-panel .dcard { transform-origin: 50% 0; transform: perspective(700px) rotateX(-84deg); transition: transform .75s var(--spring) calc(var(--i, 0) * 45ms); }
  .js .month-panel.dealt .dcard { transform: none; }
}
.flip { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--spring); }
.dcard.is-flipped .flip { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 10px 12px 11px; border-radius: 14px; border: 0; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.face.front { background: var(--jasmine); color: var(--ink); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .55); }
.f-wk { font-size: .85rem; font-weight: 600; line-height: 1.2; color: var(--ink-soft); }
.f-num { font-family: var(--f-body); font-weight: 600; font-size: 2.5rem; line-height: .95; margin-top: 2px; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.f-st { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.f-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-mid); flex: none; }
.dcard.few .face.front { background: var(--marigold); }
.dcard.few .f-wk { color: #3A2B07; }
.dcard.few .f-st::before { background: var(--ink); }
.dcard.booked .face.front { background: rgba(251, 250, 244, .06); color: #C8D6CB; border: 1.5px dashed rgba(251, 250, 244, .32); box-shadow: none; }
.dcard.booked .f-wk { color: #AFC2B4; }
.dcard.booked .f-st::before { background: var(--kumkum); box-shadow: 0 0 0 2px rgba(251, 250, 244, .5); }

.face.back {
  transform: rotateY(180deg); background: var(--paper); color: var(--leaf); justify-content: center; gap: 6px;
  font-weight: 600; font-size: .95rem; line-height: 1.25; box-shadow: 0 0 0 2px var(--marigold), 0 10px 22px -14px rgba(0, 0, 0, .55);
}
.face.back .ico { width: 24px; height: 24px; color: var(--leaf-mid); }
.dcard.booked .face.back { background: var(--leaf-mid); color: var(--jasmine); box-shadow: 0 0 0 1.5px rgba(251, 250, 244, .4); }
.dcard.booked .face.back .ico { color: var(--marigold); }
.dcard.is-flipped .face.front, .dcard:not(.is-flipped) .face.back { pointer-events: none; }
.face:focus-visible { outline-offset: 2px; }

.month-note {
  grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; border: 1.5px dotted rgba(242, 160, 7, .7);
  color: #DCE6DD; font-size: .95rem; line-height: 1.55;
}
.month-note strong { color: var(--marigold); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--s5); font-size: .92rem; color: #DCE6DD; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.sw-free { background: var(--jasmine); }
.sw-few { background: var(--marigold); }
.sw-booked { border: 1.5px dashed rgba(251, 250, 244, .55); }
.nojs { color: var(--jasmine); }


/* Lamp beside the calendar: tap to light its five wicks */
.dates { overflow: hidden; }
.dates > .wrap { position: relative; z-index: 1; }
.dates-warm {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.8s ease;
  background:
    radial-gradient(70% 38% at 82% 10%, rgba(255, 186, 72, .30), rgba(255, 186, 72, 0) 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(242, 160, 7, .12), rgba(242, 160, 7, 0) 70%);
}
.dates.is-lit .dates-warm { opacity: 1; }

.dates-top {
  display: grid; column-gap: var(--s3); align-items: start;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 37vw, 250px);
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-areas: "h2 lamp" "ta lamp" "st lamp" "lede lede" "tag tag";
}
.dates-head, .lamp-col { display: contents; }
.dates-head h2 { grid-area: h2; }
.dates-head .tamil-sub { grid-area: ta; }
.dates-head .dates-lede { grid-area: lede; }
.dates-head .sample-tag { grid-area: tag; justify-self: start; }
.lamp { grid-area: lamp; }
.lamp-status { grid-area: st; }

.lamp { --lit: 1; position: relative; width: 100%; aspect-ratio: 5 / 8; margin: -6px 0 0; }
.lamp-glow {
  position: absolute; left: -30%; width: 160%; top: -12%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 80, .5) 0, rgba(255, 170, 40, .16) 40%, rgba(255, 170, 40, 0) 70%);
  opacity: calc(.28 + var(--lit) * .12); transition: opacity .8s ease;
  animation: glowPulse 3.2s ease-in-out infinite alternate;
}
.lamp.flare .lamp-glow { opacity: 1; transition-duration: .15s; }
@keyframes glowPulse { from { transform: scale(.95); } to { transform: scale(1.05); } }
.lamp-svg { position: absolute; left: 50%; top: 6%; height: 88%; width: auto; transform: translateX(-50%); transition: opacity .8s ease; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)); }
.lamp-svg .wk { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: scale(.2); transition: opacity .35s ease, transform .7s var(--spring); }
.lamp-svg .wk.on { opacity: 1; transform: none; }
.lamp.flare .lamp-svg .wk.on { transform: scale(1.25); transition-duration: .2s; }
.lamp-svg .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: flick var(--fd, 2s) ease-in-out infinite alternate; }
@keyframes flick { 0% { transform: scale(1, 1); opacity: .92; } 50% { transform: scale(.92, 1.1); opacity: 1; } 100% { transform: scale(1.04, .94); opacity: .88; } }
.lamp-canvas { position: absolute; inset: -6% -24% -2%; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.lamp-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.lamp.is-3d .lamp-canvas { opacity: 1; }
.lamp.is-3d .lamp-svg { opacity: 0; }
.lamp-tap {
  position: absolute; inset: 4% 6% 2%; z-index: 2; padding: 0; border: 0; border-radius: 40% 40% 24px 24px;
  background: none; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.lamp-tap:focus-visible { outline-offset: 0; }
.lamp-status {
  align-self: start; margin-top: var(--s3); padding-left: 22px; position: relative;
  font-size: .95rem; font-weight: 600; line-height: 1.4; color: #FFD98A;
}
.lamp-status::before {
  content: ""; position: absolute; left: 3px; top: .1em; width: 10px; height: 15px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #FFF6D6, #FFC24A 45%, #F28A00); box-shadow: 0 0 12px rgba(255, 190, 70, .8);
}
@media (prefers-reduced-motion: no-preference) {
  .lamp:not(.touched) .lamp-tap::after {
    content: ""; position: absolute; left: 50%; top: 13%; width: 46%; aspect-ratio: 1; margin-left: -23%; border-radius: 50%;
    border: 1.5px solid rgba(255, 210, 120, .75); animation: tapHint 2.4s ease-out 1.2s infinite; opacity: 0;
  }
}
@keyframes tapHint { 0% { transform: scale(.5); opacity: 0; } 25% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.dates-lede { margin-top: var(--s4); }

/* Your day: pinned scroll story */
.story { background: var(--jasmine); padding-top: var(--s8); }
.story-intro h2 { font-size: clamp(2.1rem, 8.4vw, 3.4rem); color: var(--leaf); max-width: 16ch; }
.story-intro p { margin-top: var(--s3); color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
.story-steps { display: grid; gap: var(--s7); padding: var(--s6) var(--s4) var(--s8); }
.step-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #E6DCC6; box-shadow: var(--sh-2); }
.step-photo img { width: 100%; height: 100%; object-fit: cover; }
.step-text { margin-top: var(--s4); }
.step-time { font-size: .92rem; font-weight: 600; color: #8A5600; }
.step-text h3 { font-size: clamp(1.9rem, 7.4vw, 3.4rem); color: var(--leaf); margin-top: 4px; }
.step-text p:last-child { margin-top: var(--s3); color: var(--ink-soft); max-width: 40ch; }
.story-progress { display: none; }

.story.is-pinned .story-track { position: relative; height: calc(var(--n, 4) * 92svh); }
.story.is-pinned .story-sticky { position: sticky; top: var(--ribbon-h); height: calc(100svh - var(--ribbon-h) - var(--dock-h)); overflow: hidden; }
.story.is-pinned .story-steps { position: absolute; inset: 0; padding: 0; display: block; max-width: none; margin: 0; }
.story.is-pinned .step { position: absolute; inset: 0; pointer-events: none; }
.story.is-pinned .step-photo {
  position: absolute; left: var(--s4); right: var(--s4); top: var(--s3); height: 56%; aspect-ratio: auto; border-radius: 20px;
  transform-origin: 50% 0; will-change: transform; backface-visibility: hidden;
}
.story.is-pinned .step-text { position: absolute; left: var(--s4); right: var(--s4); top: calc(56% + 30px); margin: 0; will-change: transform, opacity; }
.story.is-pinned .step-text h3 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
.story.is-pinned .story-progress { display: block; position: absolute; left: var(--s4); right: var(--s4); bottom: 14px; }
.sp-bar { display: block; height: 3px; border-radius: 3px; background: rgba(29, 74, 47, .15); overflow: hidden; }
.sp-bar span { display: block; height: 100%; background: var(--marigold-deep); transform-origin: 0 50%; transform: scaleX(0); }
.story-progress ol { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; font-size: .8rem; font-weight: 600; color: #5C574D; }
.story-progress li.on { color: var(--leaf); }

/* Hall details as an invitation card */
.hall { background-color: var(--jasmine); background-image: radial-gradient(rgba(29, 74, 47, .09) 1.2px, transparent 1.7px); background-size: 22px 22px; }
.hall-grid { display: grid; gap: var(--s6); align-items: center; }
.hall-intro p { margin-top: var(--s4); max-width: 44ch; color: var(--ink-soft); font-size: 1.1rem; }
.invite-wrap { perspective: 1100px; }
.invite {
  position: relative; max-width: 520px; margin: 0 auto; padding: 58px 36px 44px; text-align: center; border-radius: 8px;
  background: linear-gradient(160deg, #FFFDF6 0%, #FBF3DF 100%);
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(70, 45, 10, .08), 0 34px 70px -30px rgba(70, 45, 10, .55);
  outline: 2px solid #C9A24A; outline-offset: -12px; transform-style: preserve-3d; transition: transform .6s var(--ease); overflow: hidden;
}
.invite::before { content: ""; position: absolute; inset: 19px; border: 1px solid rgba(201, 162, 74, .6); border-radius: 3px; pointer-events: none; }
.invite > *:not(.invite-sheen):not(.corner) { position: relative; z-index: 1; }
.invite-sheen { position: absolute; z-index: 0; mix-blend-mode: normal; opacity: .6; inset: -20% -60%; background: linear-gradient(115deg, rgba(255, 240, 200, 0) 38%, rgba(255, 236, 180, .55) 50%, rgba(255, 240, 200, 0) 62%); pointer-events: none; transform: translateX(-30%); }
.corner { position: absolute; width: 44px; height: 44px; color: #B8862B; }
.c-tl { top: 24px; left: 24px; } .c-tr { top: 24px; right: 24px; transform: scaleX(-1); }
.c-bl { bottom: 24px; left: 24px; transform: scaleY(-1); } .c-br { bottom: 24px; right: 24px; transform: scale(-1, -1); }
.invite-ta { color: var(--kumkum); font-weight: 600; font-size: 1rem; }
.invite-title { font-size: clamp(2rem, 8vw, 2.6rem); color: var(--leaf); margin: 6px 0 var(--s4); }
.spec { text-align: left; }
.spec > div { display: flex; align-items: baseline; gap: var(--s2); padding: 11px 0; border-bottom: 1px solid rgba(201, 162, 74, .25); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { display: flex; align-items: baseline; flex: 1 1 auto; min-width: 0; font-weight: 600; }
.spec dt::after { content: ""; flex: 1; min-width: 16px; margin: 0 4px 0 10px; border-bottom: 2px dotted #C8A65C; transform: translateY(-5px); }
.spec dd { margin: 0; text-align: right; max-width: 58%; color: var(--ink-soft); line-height: 1.4; }
.invite-foot { margin-top: var(--s4); font-size: .9rem; color: #6E5A2E; }

/* Evening: dark, gold-lit */
.evening {
  position: relative; overflow: hidden; padding-block: var(--s8); color: #EDE3CC; --ring: var(--marigold);
  background:
    radial-gradient(60% 45% at 25% 30%, rgba(242, 160, 7, .24), rgba(242, 160, 7, 0) 70%),
    radial-gradient(45% 40% at 85% 85%, rgba(179, 32, 42, .2), rgba(179, 32, 42, 0) 70%),
    #16100A;
}
.evening-grid { display: grid; gap: var(--s7); align-items: center; }
.evening-media { position: relative; min-height: 470px; }
.ev-main {
  position: relative; width: 70%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 999px 999px 18px 18px / 30% 30% 18px 18px;
  box-shadow: 0 0 0 6px #16100A, 0 0 0 7px rgba(245, 196, 81, .6), 0 30px 80px -20px rgba(242, 160, 7, .45);
}
.ev-side {
  position: absolute; right: 0; bottom: 4%; width: 52%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  box-shadow: 0 0 0 4px #16100A, 0 24px 50px -16px rgba(0, 0, 0, .8);
}
.evening h2 { font-size: clamp(2.3rem, 9vw, 4rem); color: #F5C451; text-shadow: 0 0 40px rgba(242, 160, 7, .35); }
.evening-copy > p { margin-top: var(--s4); font-size: 1.12rem; max-width: 40ch; color: #E4D9C0; }
.ev-list { margin: var(--s5) 0 var(--s6); display: grid; gap: 10px; }
.ev-list li { position: relative; padding-left: 26px; color: #EDE3CC; }
.ev-list li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 9px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #FFF6D6, #FFC24A 45%, #F28A00); box-shadow: 0 0 12px rgba(255, 190, 70, .8); }

/* Photos: masonry with a depth reveal */
.masonry { columns: 2; column-gap: 10px; margin-top: var(--s6); }
.masonry li { break-inside: avoid; margin-bottom: 10px; transform-origin: 50% 100%; }
.masonry figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--leaf-soft); }
.masonry img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.masonry figure::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(14, 10, 6, .72)); pointer-events: none; }
.masonry figcaption { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; font-size: .85rem; font-weight: 600; color: #FFF9EC; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .js .masonry li { transform: perspective(900px) translate3d(0, 60px, -40px) rotateX(16deg); transition: transform 1s var(--ease); }
  .js .masonry li.in { transform: none; }
}
@media (hover: hover) and (pointer: fine) { .masonry figure:hover img { transform: scale(1.04); } }

/* Events */
.events { padding-top: var(--s3); }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin-top: var(--s6); }
.event-list li { border-top: 2px solid var(--leaf); padding-top: var(--s3); }
.event-list h3 { font-size: 1.45rem; color: var(--ink); }
.event-list .ev-ta { font-size: .9rem; font-weight: 600; line-height: 1.4; color: #8A5600; margin-bottom: 2px; }
.event-list p { margin-top: 6px; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }

/* Packages */
.packages { background: var(--leaf-soft); }
.pack-head p:not(.sample-tag) { margin-top: var(--s4); max-width: 46ch; color: var(--ink-soft); font-size: 1.1rem; }
.price-list { margin: var(--s6) 0 var(--s6); background: var(--paper); border-radius: 18px; box-shadow: var(--sh-2); padding: 0 var(--s5); border: 1px solid var(--line); }
.price-list li { display: grid; gap: var(--s2); padding: var(--s5) 0; border-bottom: 2px dotted #C8B98C; }
.price-list li:last-child { border-bottom: 0; }
.pl-main h3 { font-size: 1.6rem; color: var(--leaf); }
.pl-main p { margin-top: 6px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; max-width: 52ch; }
.pl-price { font-family: var(--f-display); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.pl-price .from, .pl-price .unit { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }

/* Location */
.loc-grid { display: grid; gap: var(--s6); }
.addr { margin-top: var(--s4); font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.landmarks { margin-top: var(--s4); display: grid; gap: 6px; color: var(--ink-soft); }
.landmarks li { position: relative; padding-left: 20px; }
.landmarks li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--marigold-deep); }
.loc-actions { display: grid; gap: var(--s3); margin-top: var(--s5); }
.loc-copy .small { margin-top: var(--s3); }
.map { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.map svg { width: 100%; height: auto; }

/* FAQ */
.faq { padding-top: var(--s4); }
.faq-list { margin-top: var(--s5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 60px; padding: var(--s3) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(var(--leaf), var(--leaf)) center / 14px 2px no-repeat, linear-gradient(var(--leaf), var(--leaf)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s4); color: var(--ink-soft); max-width: 62ch; }
.faq-ask { margin-top: var(--s6); }

/* Footer */
.site-foot { background: var(--ink); color: #DDD9CC; padding: var(--s7) 0 var(--s7); --ring: var(--marigold); }
.foot-grid { display: grid; gap: var(--s6); }
.foot-name { font-family: var(--f-display); font-size: 1.9rem; color: var(--jasmine); line-height: 1.1; }
.foot-ta { margin: 6px 0 var(--s3); color: var(--marigold); font-weight: 600; }
.foot-fd p:first-child { max-width: 46ch; }
.foot-fd .btn { margin-top: var(--s4); }
.site-foot .small { margin-top: var(--s4); color: #B9B5A8; }
.site-foot .small a { display: inline-block; padding: 12px 0; }

/* Phone dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px;
  padding: 10px var(--s4) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(29, 74, 47, .45);
}
.dock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.dock-date { background: var(--marigold); color: var(--ink); }
.dock-wa { background: var(--leaf); color: var(--jasmine); }
body { --dock-h: 72px; }


/* Larger phones and tablets */
@media (min-width: 600px) {
  .wrap, .site-head, .hero-content { padding-inline: var(--s6); }
  .lede-more { display: inline; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .tamil-line .sep { display: inline; }
  .date-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loc-actions { grid-auto-flow: column; justify-content: start; }
  .masonry { columns: 3; column-gap: 14px; }
  .masonry li { margin-bottom: 14px; }
  .story-steps { padding-inline: var(--s6); }
}
@media (max-width: 599px) {
  .tamil-line .sep { display: none; }
  .tamil-line span:not(.sep) { display: block; }
  .foot-ta .sep { display: none; }
  .foot-ta span:not(.sep) { display: block; }
}

/* Laptop */
@media (min-width: 960px) {
  body { --dock-h: 0px; }
  .dock { display: none; }
  .menu-btn { display: none; }
  .site-head { max-width: 1240px; margin: 0 auto; padding-top: var(--s4); }
  .site-nav, .site-nav.open { display: flex; position: static; gap: 2px; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav a { min-height: 44px; padding: 0 12px; font-weight: 600; color: #F4ECDB; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
  .site-nav a:hover { color: var(--ink); background: rgba(251, 250, 244, .85); text-shadow: none; }

  .hero-content { bottom: 64px; padding-inline: var(--s6); }
  .hero-lede { font-size: 1.25rem; line-height: 1.65; max-width: 46ch; }
  .tamil-line { font-size: 1.1rem; }
  .thoranam { top: 76px; height: clamp(90px, 15vh, 150px); }

  .dates, .hall, .packages, .photos, .location { padding-block: var(--s9); }
  .dates-top { grid-template-columns: 1.15fr .85fr; grid-template-rows: none; grid-template-areas: none; gap: var(--s7); align-items: center; }
  .dates-head { display: block; max-width: 640px; }
  .lamp-col { display: flex; flex-direction: column; align-items: center; }
  .lamp { width: 100%; max-width: 320px; margin: 0 auto; }
  .lamp-status { margin-top: var(--s2); text-align: center; padding-left: 0; }
  .lamp-status::before { position: static; display: inline-block; vertical-align: -2px; margin-right: 10px; }
  .date-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .dcard { height: 132px; }
  .f-num { font-size: 3rem; }

  .story { padding-top: var(--s9); }
  .story-steps { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s6); max-width: 1180px; margin: 0 auto; }
  .story.is-pinned .step-photo { left: max(var(--s6), calc((100vw - 1180px) / 2 + var(--s6))); right: auto; width: 50vw; max-width: 700px; top: 5%; bottom: 7%; height: auto; border-radius: 24px; }
  .story.is-pinned .step-text {
    top: 5%; bottom: 7%; display: flex; flex-direction: column; justify-content: center;
    left: calc(max(var(--s6), calc((100vw - 1180px) / 2 + var(--s6))) + min(50vw, 700px) + 56px); right: max(var(--s6), calc((100vw - 1180px) / 2 + var(--s6)));
  }
  .story.is-pinned .step-text h3 { font-size: clamp(2.6rem, 3.6vw, 3.6rem); }
  .story.is-pinned .story-progress { left: calc(max(var(--s6), calc((100vw - 1180px) / 2 + var(--s6))) + min(50vw, 700px) + 56px); right: max(var(--s6), calc((100vw - 1180px) / 2 + var(--s6))); bottom: 9%; }

  .hall-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); }
  .invite { padding: 64px 56px 50px; }

  .price-list { padding: 0 var(--s6); }
  .price-list li { grid-template-columns: 1fr auto; align-items: center; gap: var(--s6); padding: var(--s6) 0; }
  .pl-price { font-size: 2.4rem; text-align: right; }

  .evening { padding-block: var(--s9); }
  .evening-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .evening-media { min-height: 640px; }
  .ev-main { width: 64%; }
  .ev-side { width: 50%; bottom: 8%; }

  .masonry { columns: 3; column-gap: 18px; }
  .masonry li { margin-bottom: 18px; }

  .loc-grid { grid-template-columns: 5fr 7fr; align-items: center; gap: var(--s8); }
  .faq-wrap { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; gap: 0 var(--s8); align-items: start; }
  .faq-list { margin-top: 0; grid-row: span 2; }
  .faq-ask { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Very small phones */
@media (max-width: 370px) {
  .ribbon { gap: 8px; font-size: .8rem; }
  .date-grid { gap: 8px; }
  .face { padding: 9px 10px 10px; }
  .f-num { font-size: 2.3rem; }
  .face.back { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .petals { display: none; }
}
