/* Aadhi Raat (आधी रात): New Year's Eve, rooftop disco-glam. Near-black violet night, champagne gold, a hot
   pink and an ice blue; Unbounded over Manrope, Monoton for the new year in neon. Opening: a split-flap clock
   at 23:59:50 under a mirror ball; pull the lever, ten seconds flip, fireworks (canvas), the year bursts out.
   Then: note -> lanyard passes -> wristbands -> countdown -> flutes -> bring -> reply. */

:root {
  --night: #07050f;
  --night-2: #120c26;
  --violet: #1d1440;
  --line: #2f2560;
  --gold: #ffd27a;
  --gold-2: #f2b84b;
  --pink: #ff4fa3;
  --ice: #7fe6ff;
  --lilac: #b98cff;
  --text: #f4f0ff;
  --muted: #a9a1cc;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-neon: "Monoton", "Unbounded", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --chrome: linear-gradient(180deg, #fff6dc 0%, #ffd27a 38%, #b07a1c 52%, #ffe7a8 70%, #c98f2a 100%);

  --fx-music-bg: #1d1440;
  --fx-music-ring: #ffd27a;
  --fx-music-ink: #ffd27a;
  --fx-bg: #120c26;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body { background: var(--night); color: var(--text); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }

.kicker { font: 600 12px/1.2 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--pink); }
.sec__title { margin: 12px 0 0; font: 800 clamp(32px, 9vw, 64px)/1.02 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.sec__title em { font-style: normal; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec__dek { margin: 12px auto 0; max-width: 28em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 1.5px solid rgba(244, 240, 255, .5); color: var(--text); text-decoration: none;
  font: 600 15px/1.1 var(--f-display); letter-spacing: .02em; transition: background .25s, transform .2s, box-shadow .25s;
}
.btn:hover { background: rgba(244, 240, 255, .08); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 8px 14px; font-size: 12px; }
.btn--gold { background: var(--chrome); border-color: transparent; color: #241500; box-shadow: 0 6px 24px -6px rgba(255, 210, 122, .55); }
.btn--gold:hover { background: var(--chrome); box-shadow: 0 8px 30px -4px rgba(255, 210, 122, .8); }
.btn--wide { width: 100%; max-width: 380px; }

/* =================================================================== OPENING */

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, #2a1a5c, var(--night-2) 45%, var(--night) 80%);
}
.sky { position: absolute; inset: 0; z-index: -3; }
.sky i { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .55; animation: tw 2.6s ease-in-out var(--d) infinite alternate; }
@keyframes tw { to { opacity: .1; } }
.spots { position: absolute; left: 50%; top: 92px; z-index: -1; width: 0; height: 0; animation: spin 18s linear infinite; pointer-events: none; }
.spots i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .55; box-shadow: 0 0 12px 3px var(--c);
  transform: rotate(var(--a)) translate(var(--r)) ; filter: blur(.4px);
}
@keyframes spin { to { rotate: 360deg; } }
.gate:not([data-phase="idle"]) .spots { animation-duration: 6s; }
.ball { position: absolute; left: 50%; top: -6px; width: 92px; margin-left: -46px; z-index: -1; filter: drop-shadow(0 0 22px rgba(185, 140, 255, .45)); }
.ball__svg { display: block; width: 100%; height: auto; }
.ball__tiles { animation: tiles 6s linear infinite; }
@keyframes tiles { to { transform: translateX(-18px); } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: min(30svh, 32vw); z-index: -2; }
.skyline__svg { display: block; width: 100%; height: 100%; }
.beacon { animation: beacon 1.6s steps(2) infinite; }
@keyframes beacon { 50% { opacity: .15; } }
.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.gate__in {
  position: relative; z-index: 2; min-height: 100svh; max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 110px 16px calc(36px + env(safe-area-inset-bottom));
}
.gate__to { font: 500 16px/1.2 var(--f-body); color: var(--ice); margin-bottom: 6px; }
.gate__hosts { font: 600 12px/1.4 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); max-width: 26em; }

/* --- the split-flap clock --- */
.clockwrap { position: relative; margin-top: 26px; transition: opacity .6s, transform .8s var(--ease); }
.clock__label { font: 500 14px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.clock { display: flex; align-items: center; justify-content: center; gap: clamp(3px, 1vw, 6px); perspective: 500px; }
.flap {
  position: relative; display: grid; place-items: center; width: clamp(38px, 11vw, 70px); height: clamp(58px, 16vw, 104px); border-radius: 8px;
  background: linear-gradient(180deg, #241a4a 0 49.5%, #0b0718 49.5% 50.5%, #1a1238 50.5% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 20px -6px rgba(0, 0, 0, .7), 0 0 0 1px #33295f;
  font: 800 clamp(34px, 10vw, 64px)/1 var(--f-display); color: var(--text); font-variant-numeric: tabular-nums;
}
.flap.flip { animation: flip .32s cubic-bezier(.3, .7, .4, 1); }
@keyframes flip { 0% { transform: rotateX(-88deg); filter: brightness(1.6); } 100% { transform: none; } }
.clock__colon { font: 800 clamp(26px, 7vw, 48px)/1 var(--f-display); color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ghost {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1; pointer-events: none;
  font: 400 clamp(160px, 50vw, 320px)/1 var(--f-neon); color: var(--pink); opacity: 0; text-shadow: 0 0 30px var(--pink);
}
.ghost.pop { animation: ghost .5s ease-out forwards; }
@keyframes ghost { 0% { opacity: .55; scale: 1.25; } 100% { opacity: 0; scale: .85; } }
.gate[data-phase="ticking"] .clock__colon { animation: none; }

/* --- the lever --- */
.leverbox { margin-top: 30px; display: grid; justify-items: center; gap: 12px; transition: opacity .5s; }
.lever {
  position: relative; width: 74px; height: 136px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.lever__plate {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 46px; margin-left: -23px; border-radius: 14px;
  background: linear-gradient(90deg, #2a2050, #3d3170 50%, #2a2050); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .5), 0 10px 20px -8px rgba(0, 0, 0, .8);
}
.lever__slot {
  position: absolute; left: 50%; top: 14px; bottom: 14px; width: 12px; margin-left: -6px; border-radius: 10px;
  background: linear-gradient(90deg, #05030c, #1a1238 50%, #05030c); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8);
}
.lever__arm { position: absolute; left: 50%; top: 18px; width: 0; height: 0; transform: translateY(calc(var(--pull, 0) * 88px)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.lever.is-dragging .lever__arm { transition: none; }
.lever__knob {
  position: absolute; left: -27px; top: -20px; width: 54px; height: 40px; border-radius: 20px;
  background: radial-gradient(circle at 35% 30%, #fff6dc, #ffd27a 30%, #b07a1c 75%, #6b4a10);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .6), 0 0 22px rgba(255, 210, 122, .35);
}
.gate[data-phase="idle"] .lever:not(.is-dragging) .lever__arm { animation: tug 2.8s var(--ease) 1.2s infinite; }
@keyframes tug { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(14px); } }
.lever__hint { font: 600 13px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.gate:not([data-phase="idle"]) .leverbox { opacity: 0; pointer-events: none; }

/* --- after midnight: the year takes the clock's place, then the hero comes in under it --- */
.stack { display: grid; place-items: center; margin-top: 26px; }
.stack > * { grid-area: 1 / 1; }
.stack .clockwrap { margin-top: 0; }
.year { pointer-events: none; opacity: 0; scale: .3; }
.year__num {
  font: 400 clamp(84px, 27vw, 210px)/1 var(--f-neon); color: #fff; letter-spacing: .02em;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 40px var(--pink), 0 0 80px var(--lilac);
}
.gate.midnight .year { opacity: 1; scale: 1; transition: opacity .3s, scale 1.1s cubic-bezier(.2, 1.5, .4, 1); }
.gate.midnight .clockwrap { opacity: 0; transform: scale(.8); pointer-events: none; }
.hero { display: none; }
.gate[data-phase="open"] .hero { display: block; margin-top: 10px; animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
.gate[data-phase="open"] .leverbox { display: none; }
.gate[data-phase="open"] .year__num { animation: neon 3s ease-in-out infinite; }
@keyframes neon { 50% { text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 26px var(--pink), 0 0 50px var(--lilac); } }
.hero__greet { font: 600 13px/1.2 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--ice); }
.hero__title { margin: 12px 0 0; font: 800 clamp(32px, 9.4vw, 70px)/1.02 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.hero__when { margin-top: 14px; font: 600 17px/1.35 var(--f-body); color: var(--gold); }
.hero__where { font-size: 16px; color: var(--muted); }
.hero > * { text-shadow: 0 2px 12px #07050f, 0 0 2px #07050f; }
.hero__down {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px;
  font: 600 12px/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.hero__down::after { content: "↓"; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }
.gate.flash::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #fff; animation: flash .7s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }

.gate__skip {
  position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 5; min-height: 36px; padding: 8px 14px;
  border: 1px solid rgba(244, 240, 255, .4); border-radius: 999px; background: rgba(7, 5, 15, .5);
  font: 600 11px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--text); cursor: pointer;
}
.gate__skip::before { content: ""; position: absolute; inset: -6px; }
.gate:not([data-phase="idle"]) .gate__skip { display: none; }
html:not(.js) :is(.gate__skip, .leverbox, .clockwrap) { display: none; }
html:not(.js) .hero { display: block; }
html:not(.js) .year { opacity: 1; scale: 1; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: clamp(80px, 15vw, 130px) 16px; text-align: center; }
.sec__head { max-width: 680px; margin: 0 auto clamp(32px, 7vw, 52px); }

.sec--note { background: linear-gradient(180deg, var(--night), var(--violet)); }
.note { max-width: 640px; margin: 0 auto; }
.note__msg { margin-top: 22px; font-size: 20px; line-height: 1.6; color: #ddd6f5; text-wrap: pretty; }
.note__sign { margin-top: 22px; font: 600 12px/1.4 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* --- lanyards --- */
.sec--pass { background: var(--violet); }
.lanyards { display: grid; gap: 40px; justify-items: center; }
.lanyard { position: relative; width: min(100%, 400px); padding-top: 70px; }
.lanyard__strap {
  position: absolute; left: 50%; top: 0; width: 26px; height: 84px; margin-left: -13px;
  background: repeating-linear-gradient(180deg, var(--pink) 0 10px, #c3207a 10px 20px); border-radius: 2px;
}
.lanyard__strap::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 34px; height: 16px; margin-left: -17px; border-radius: 4px; background: var(--chrome); }
.badge {
  position: relative; padding: 26px 20px 24px; text-align: left; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 40%, rgba(127, 230, 255, .1) 60%, transparent 80%),
    linear-gradient(180deg, #2a1f59, #160f33);
  box-shadow: 0 0 0 1.5px rgba(255, 210, 122, .55), 0 30px 60px -24px rgba(0, 0, 0, .9);
  animation: swing 5s ease-in-out infinite alternate; transform-origin: 50% -60px;
}
@keyframes swing { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.badge::before { content: ""; position: absolute; left: 50%; top: 12px; width: 44px; height: 8px; margin-left: -22px; border-radius: 4px; background: #07050f; }
.badge__top { display: flex; justify-content: space-between; margin-top: 10px; font: 600 11px/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--ice); }
.badge__name { margin: 14px 0 6px; font: 800 clamp(24px, 6.6vw, 32px)/1.08 var(--f-display); letter-spacing: -.02em; }
.badge__date { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.badge__date b { font: 400 44px/1 var(--f-neon); color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 122, .5); }
.badge__date span { font: 600 15px/1.2 var(--f-body); color: var(--muted); }
.badge__rows { margin: 18px 0 0; display: grid; gap: 10px; }
.badge__rows dt { font: 600 10px/1.3 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.badge__rows dd { margin: 0; font-size: 16px; line-height: 1.45; color: #e6e0fa; overflow-wrap: anywhere; }
.badge__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge__bar { display: block; height: 34px; margin-top: 20px; background: repeating-linear-gradient(90deg, #f4f0ff 0 2px, transparent 2px 4px, #f4f0ff 4px 5px, transparent 5px 9px, #f4f0ff 9px 12px, transparent 12px 14px); opacity: .7; }

/* --- wristbands --- */
.sec--entry { background: linear-gradient(180deg, var(--violet), var(--night-2)); }
.bands { display: grid; gap: 14px; max-width: 560px; margin: 0 auto 28px; }
.band {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 16px 22px 16px 40px; text-align: left;
  border: 0; border-radius: 999px; cursor: pointer; color: #160f33;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 10px 24px -14px var(--c); transition: transform .3s var(--ease), box-shadow .3s;
}
.band::before { content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #160f33; box-shadow: inset 0 0 0 3px var(--c), 0 0 0 2px #160f33; }
.band[aria-checked="true"] { transform: scale(1.03); box-shadow: 0 0 0 3px #fff, 0 14px 34px -10px var(--c); }
.band[aria-checked="true"]::before { background: #fff; }
.band__name { font: 800 17px/1.2 var(--f-display); }
.band__price { grid-row: 1 / span 2; grid-column: 2; font: 800 20px/1 var(--f-display); }
.band__note { font: 500 14px/1.3 var(--f-body); opacity: .8; }

/* --- countdown --- */
.sec--count { background: var(--night-2); }
.count { display: flex; justify-content: center; gap: clamp(5px, 2vw, 16px); margin-top: 22px; }
.count span { display: grid; gap: 8px; justify-items: center; font: 600 10px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.count b {
  display: grid; place-items: center; width: clamp(72px, 20.5vw, 116px); height: clamp(80px, 22vw, 124px); border-radius: 10px;
  background: linear-gradient(180deg, #241a4a 0 49.5%, #0b0718 49.5% 50.5%, #1a1238 50.5% 100%); box-shadow: 0 0 0 1px #33295f, 0 12px 24px -10px rgba(0, 0, 0, .8);
  font: 800 clamp(24px, 7vw, 50px)/1 var(--f-display); color: var(--text); letter-spacing: -.03em;
}
.count__done { margin-top: 20px; font: 400 34px/1.2 var(--f-neon); color: var(--pink); }
.count__when { margin-top: 22px; color: var(--muted); }

/* --- flutes --- */
.sec--cheers { background: radial-gradient(60% 50% at 50% 60%, #2a1a5c, var(--night) 70%); overflow: hidden; }
.flutes { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 70px; height: 230px; }
.flute { display: block; width: 66px; height: auto; filter: drop-shadow(0 0 14px rgba(255, 210, 122, .25)); }
.flute--l { transform-origin: 50% 100%; rotate: 8deg; transition: rotate .4s var(--ease); }
.flute-btn { padding: 0; border: 0; background: none; cursor: grab; touch-action: none; transform: translateX(var(--fx, 0px)) rotate(calc(-8deg - var(--fx, 0px) * .06deg)); transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.flute-btn.back { transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.flutes.clinked .flute--l { rotate: 14deg; }
.bubbles { position: absolute; left: 50%; top: 20px; width: 0; height: 0; }
.bubbles i { position: absolute; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--gold); }
.cheers__done { margin-top: 18px; font: 800 22px/1.3 var(--f-display); color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 122, .6); }

/* --- bring --- */
.sec--bring { background: var(--night); }
.bring { max-width: 620px; margin: 0 auto; }
.bring__text { margin-top: 14px; font: 600 clamp(22px, 6vw, 30px)/1.35 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.bring__dress { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bring__dress span { font: 600 10px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bring__dress em { font-style: normal; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* --- reply --- */
.sec--reply { background: linear-gradient(180deg, var(--night), var(--violet)); }
.reply { max-width: 560px; margin: 0 auto; }
.reply__ask { margin-top: 14px; color: var(--muted); }
.reply__btns { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.reply__tag { margin-top: 26px; font: 400 26px/1 var(--f-neon); color: var(--pink); }

/* --- footer --- */
.foot { padding: 50px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; background: #040309; color: var(--muted); font-size: 15px; }
.foot__year { font: 400 54px/1 var(--f-neon); color: var(--gold); }
.foot__title { margin-top: 8px; font: 800 22px/1.2 var(--f-display); color: var(--text); }
.foot__cal { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); }
.foot__music, .foot__credit { margin-top: 8px; font-size: 14px; }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--gold); font: 600 11px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; }

/* =================================================================== OG CARD */

.ogcard { align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 0%, #2a1a5c, var(--night-2) 50%, var(--night) 85%); }
.og__bursts { position: absolute; inset: 0; }
.og__burst { position: absolute; }
.og__sky { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; }
.og__sky .skyline__svg { width: 100%; height: 100%; }
.og__words { position: relative; text-align: center; margin-top: -40px; }
.og__year { font: 400 170px/1 var(--f-neon); color: #fff; text-shadow: 0 0 8px #fff, 0 0 24px var(--pink), 0 0 60px var(--pink); }
.og__title { margin-top: 10px; font: 800 64px/1.05 var(--f-display); letter-spacing: -.02em; color: var(--text); }
.og__date { margin-top: 16px; font: 600 28px/1.2 var(--f-body); color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .spots { display: none; } }
.foot__date { margin-top: 4px; }
