:root {
  --ink: #0d0710;
  --ink-2: #170c1a;
  --rose: #ff6b8b;
  --blush: #ffc2cf;
  --gold: #f3c67a;
  --cream: #fbf1e6;
  --muted: #bda7b4;
  --line: rgba(255, 210, 225, .14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 800px at 80% -10%, #3a1230 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 30%, #2a0f2a 0%, transparent 60%),
              var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; color: var(--blush); font-weight: 400; }
::selection { background: var(--rose); color: var(--ink); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

main { position: relative; z-index: 2; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.tiny { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hand { font-family: var(--hand); font-weight: 500; color: var(--gold); font-size: 1.45rem; line-height: 1.2; }
.hand.big { font-size: clamp(2rem, 5vw, 3rem); }
.hand.huge { font-size: clamp(3.5rem, 12vw, 8rem); }
.eyebrow { font-size: .75rem; color: var(--rose); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 2.5rem; }
section { padding: clamp(5rem, 12vw, 9rem) 0; position: relative; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter 1s; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- GATE ---------- */
#gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 2rem;
  background: radial-gradient(600px 500px at 50% 55%, #3d0f2b, var(--ink) 70%);
  transition: clip-path 1.4s cubic-bezier(.77,0,.18,1), opacity 1.4s;
  clip-path: circle(150% at 50% 60%);
}
#gate.open { clip-path: circle(0% at 50% 60%); opacity: 0; pointer-events: none; }
.gate-inner { text-align: center; max-width: 560px; display: grid; gap: 1.4rem; justify-items: center; }
.gate-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; }
.gate-sub { color: var(--muted); font-size: .98rem; }
.seal { position: relative; width: 132px; height: 132px; margin: 1rem 0; display: grid; place-items: center; }
.seal-wax {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #ff8aa5, #c2173f 55%, #7a0b26);
  box-shadow: inset -6px -8px 16px rgba(0,0,0,.35), inset 6px 6px 12px rgba(255,255,255,.25), 0 18px 50px rgba(255, 60, 110, .45);
  font-family: var(--serif); font-size: 2.2rem; color: #ffe3ea; transition: transform .4s;
  border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
}
.seal-wax i { font-style: normal; font-size: 1.2rem; margin: 0 .15rem; vertical-align: middle; }
.seal:hover .seal-wax { transform: scale(1.06) rotate(-4deg); }
.seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,140,170,.5); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1 } to { transform: scale(1.5); opacity: 0 } }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35 } }

/* ---------- music ---------- */
.music {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .95rem; border-radius: 999px; font-size: .72rem;
  background: rgba(30, 12, 30, .55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.bars i { width: 3px; background: var(--rose); border-radius: 2px; height: 30%; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s } .bars i:nth-child(3) { animation-delay: .4s } .bars i:nth-child(4) { animation-delay: .1s }
@keyframes eq { 50% { height: 100% } }
.music.off .bars i { animation: none; height: 25%; }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; padding: 1.4rem 0 0; display: flex; flex-direction: column; }
.hero-top { display: flex; justify-content: space-between; width: min(1120px, 100% - 2.5rem); margin: 0 auto; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.hero-name {
  font-family: var(--serif); font-weight: 400; text-align: center; line-height: .82;
  font-size: clamp(6rem, 26vw, 22rem); letter-spacing: -.03em; margin: 3rem 0 1rem; color: var(--blush);
}
.split .ch { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(6deg); filter: blur(10px);
  background: linear-gradient(180deg, #fff3f6 20%, #ff9fb5 70%, #b8264d);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .02em;
  transition: all 1.1s cubic-bezier(.2,.7,.2,1); }
.split .ch:nth-child(2n) { font-style: italic; }
body.opened .split .ch { opacity: 1; transform: none; filter: none; }
.hero-grid {
  width: min(1120px, 100% - 2.5rem); margin: 0 auto; flex: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; padding-bottom: 3rem;
}
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 30ch; color: #ead6df; }
.hero-sign { text-align: right; }
.arch { position: relative; width: min(340px, 70vw); }
.arch img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 999px 999px 18px 18px;
  box-shadow: 0 30px 80px rgba(255, 60, 120, .25); border: 1px solid rgba(255,200,215,.25); }
.arch figcaption { position: absolute; left: -2.5rem; bottom: -1.8rem; transform: rotate(-6deg); }
.sticker {
  position: absolute; top: 12%; right: -1.6rem; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
  background: var(--gold); animation: spin 14s linear infinite; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
@keyframes spin { to { transform: rotate(360deg) } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1rem 0; background: rgba(255,107,139,.04); }
.track { display: flex; gap: 2rem; width: max-content; animation: mq 32s linear infinite; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; }
.track b { color: var(--rose); font-weight: 400; }
@keyframes mq { to { transform: translateX(-50%) } }

/* ---------- DICTIONARY ---------- */
.dict-card {
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.8rem, 5vw, 4rem);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.dict-card::after { content: "ख़ुशी"; position: absolute; right: -1rem; bottom: -3rem; font-size: clamp(8rem, 22vw, 16rem); color: rgba(255,107,139,.06); font-family: var(--serif); pointer-events: none; }
.dict-word { font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 11vw, 8rem); line-height: 1; }
.dict-phon { color: var(--muted); margin: .6rem 0 2rem; font-size: .9rem; }
.dict-list { counter-reset: d; list-style: none; display: grid; gap: 1.2rem; max-width: 60ch; }
.dict-list li { counter-increment: d; padding-left: 2.6rem; position: relative; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.dict-list li::before { content: counter(d) "."; position: absolute; left: 0; font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.5rem; line-height: 1.1; }
.dict-ex { margin-top: 2.4rem; }
.dict-ex .hand { font-size: 1.8rem; }
.dict-syn { margin-top: 2rem; text-transform: none; letter-spacing: .04em; }

/* ---------- FILM ---------- */
.film-head { position: relative; }
.hint { position: absolute; right: 0; bottom: 0; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px) } }
.strip {
  display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.5rem max(1.25rem, calc((100vw - 1120px) / 2)) 3rem; scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.polaroid {
  flex: 0 0 auto; width: min(320px, 76vw); scroll-snap-align: center; background: var(--cream); color: #3a2230;
  padding: .8rem .8rem 1.2rem; border-radius: 6px; transform: rotate(var(--r));
  box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.polaroid:hover { transform: rotate(0) translateY(-10px) scale(1.02); }
.polaroid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 3px; pointer-events: none; }
.polaroid figcaption { padding-top: .9rem; display: grid; gap: .2rem; }
.polaroid .hand { color: #b8264d; font-size: 1.7rem; }
.polaroid small { font-size: .9rem; color: #6a4d5b; line-height: 1.4; }
.strip-end { flex: 0 0 auto; width: min(260px, 70vw); display: grid; place-content: center; text-align: center; gap: .5rem; border: 1px dashed var(--line); border-radius: 16px; scroll-snap-align: center; }

/* ---------- CALLS ---------- */
.phones { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; max-width: 820px; margin: 0 auto; }
.phone { position: relative; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #2a1a26, #120910); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.phone img { border-radius: 27px; aspect-ratio: 9/16; object-fit: cover; width: 100%; object-position: top; }
.call-tag { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); white-space: nowrap; font-size: .66rem; padding: .4rem .7rem; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.call-mid { text-align: center; display: grid; gap: .5rem; justify-items: center; }
.pulse-heart { font-size: 2.4rem; color: var(--rose); animation: beat 1.2s ease-in-out infinite; text-shadow: 0 0 30px var(--rose); }
@keyframes beat { 0%,100%{transform:scale(1)} 15%{transform:scale(1.25)} 30%{transform:scale(1)} 45%{transform:scale(1.18)} }
.call-mid .hand { font-size: 1.25rem; max-width: 9ch; }
.calls-note { max-width: 56ch; margin: 3rem auto 0; text-align: center; font-size: 1.1rem; color: #ead6df; }

/* ---------- COUNTER ---------- */
.count { text-align: center; }
.count .h2 { margin-bottom: 2rem; }
.counter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 860px; margin: 0 auto 1.5rem; }
.counter div { border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem .5rem; background: rgba(255,255,255,.03); display: grid; gap: .3rem; }
.counter b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; color: var(--blush); font-variant-numeric: tabular-nums; }
.counter span { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }

/* ---------- REASONS ---------- */
.deck { position: relative; max-width: 620px; margin: 0 auto; height: clamp(320px, 60vw, 380px); }
.card {
  position: absolute; inset: 0; border-radius: 28px; padding: clamp(1.6rem, 5vw, 2.8rem); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #ff7b98, #c2173f 60%, #6d0a2a); color: #fff2f5;
  box-shadow: 0 40px 90px rgba(200, 23, 63, .35); z-index: 3; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card.flip { animation: flip .6s cubic-bezier(.2,.7,.2,1); }
@keyframes flip { 0%{transform:none} 45%{transform:translateX(-30%) rotate(-10deg); opacity:0} 55%{transform:translateX(20%) rotate(6deg); opacity:0} 100%{transform:none; opacity:1} }
.card-text { font-family: var(--serif); font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.12; }
.card-num, .card-foot { color: rgba(255,240,245,.8); }
.card.ghost { z-index: 2; background: #3a1230; transform: rotate(4deg) translate(10px, 10px); box-shadow: none; border: 1px solid var(--line); }
.card.ghost.g2 { z-index: 1; background: #260d22; transform: rotate(-5deg) translate(-12px, 14px); }

/* ---------- HIM ---------- */
.him-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.6rem); }
.him-grid figure:nth-child(2) { transform: translateY(3rem); }
.him-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 18px; filter: saturate(.9) contrast(1.05); transition: filter .5s, transform .5s; }
.him-grid figure:hover img { filter: saturate(1.1); transform: scale(1.02); }
.him-grid figcaption { margin-top: .6rem; font-size: 1.25rem; }

/* ---------- REEL ---------- */
.reel-frame { position: relative; max-width: 420px; margin: 0 auto; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(255, 60, 120, .22); background: #000; }
.reel-frame video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .9rem 1.4rem; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.3);
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; transition: opacity .4s, transform .4s;
}
.reel-play span { color: var(--rose); margin-right: .3rem; }
.reel-frame.playing .reel-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }

/* ---------- LETTER ---------- */
.paper {
  max-width: 720px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 6px; color: #3a2230;
  background: linear-gradient(#fbf1e6, #f4e2d2); box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: rotate(-.6deg);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(184,38,77,.12) 33px 34px), linear-gradient(#fbf1e6, #f4e2d2);
}
.paper .hand { color: #b8264d; }
.paper .line { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; margin-top: 1.1rem;
  opacity: 0; transform: translateY(12px); transition: opacity .9s, transform .9s; }
.paper .line.in { opacity: 1; transform: none; }
.paper .sign { margin-top: 1.6rem; text-align: right; }

/* ---------- PROMISES ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.chips li { padding: .9rem 1.3rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: clamp(.95rem, 1.6vw, 1.1rem); }
.chips li::before { content: "♡ "; color: var(--rose); }
.chips li:nth-child(3n+2) { background: rgba(255,107,139,.12); border-color: rgba(255,107,139,.35); }
.chips li:nth-child(3n) { background: rgba(243,198,122,.1); border-color: rgba(243,198,122,.3); }

/* ---------- FINALE ---------- */
.finale { text-align: center; min-height: 90svh; display: grid; align-items: center; }
.finale-q { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1.02; margin-bottom: 3rem; }
.answers { display: flex; justify-content: center; gap: 1rem; position: relative; min-height: 64px; }
.btn { padding: 1rem 2rem; border-radius: 999px; font-family: var(--sans); font-weight: 500; font-size: 1.05rem; transition: transform .3s, box-shadow .3s; }
.btn.yes { background: linear-gradient(135deg, #ff8aa5, #e0254f); color: #fff; box-shadow: 0 15px 40px rgba(224, 37, 79, .45); }
.btn.yes:hover { transform: scale(1.06); }
.btn.no { border: 1px solid var(--line); color: var(--muted); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.after { display: grid; gap: 1rem; justify-items: center; animation: rise 1s cubic-bezier(.2,.7,.2,1); }
.after-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: #ead6df; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) } }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem 0 5rem; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.foot a { color: var(--blush); text-decoration: none; }
.foot a:hover { color: var(--rose); }

/* ---------- floating hearts ---------- */
.fx-heart { position: fixed; z-index: 60; pointer-events: none; color: var(--rose); will-change: transform, opacity; user-select: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2.5rem; }
  .hero-lede { order: 2; margin: 0 auto; }
  .arch { order: 1; }
  .hero-sign { order: 3; text-align: center; }
  .arch figcaption { left: -1rem; }
  .sticker { right: -.8rem; width: 70px; height: 70px; font-size: 1.15rem; }
  .hero-name { margin: 2.2rem 0 1.5rem; }
  .phones { grid-template-columns: 1fr 1fr; }
  .call-mid { grid-column: 1 / -1; order: -1; }
  .counter { grid-template-columns: repeat(2, 1fr); }
  .him-grid { grid-template-columns: 1fr 1fr; }
  .him-grid figure:nth-child(2) { transform: translateY(2rem); }
  .him-grid figure:nth-child(3) { grid-column: 1 / -1; max-width: 70%; justify-self: center; margin-top: 2rem; }
  .hint { position: static; margin-top: -1.5rem; }
  .hero-top span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .paper .line { opacity: 1; transform: none; filter: none; }
}
