/* Pre-wedding film - cinematic dusk: midnight plum, amber and rose. */
:root {
  --night: #120f2b; --night2: #1b1638; --plum: #3a1f4f; --amber: #ffb36b; --rose: #e9577a; --cream: #f6ead8; --mute: #b9aecb; --line: rgba(246, 234, 216, .16);
  --serif: 'Cormorant Garamond', 'Noto Serif Tamil', Georgia, serif;
  --sans: 'Montserrat', 'Hind Madurai', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.75; color: var(--cream); background: var(--night); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
html[data-lang="en"] .ta, html[data-lang="ta"] .en { display: none !important; }
html[data-lang="ta"] body { font-family: 'Hind Madurai', var(--sans); line-height: 1.85; font-weight: 400; }
html[data-lang="ta"] h1, html[data-lang="ta"] h2, html[data-lang="ta"] h3 { font-family: 'Noto Serif Tamil', var(--serif); font-weight: 600; font-style: normal; }

.site-header { position: fixed; z-index: 70; left: 0; right: 0; top: 0; height: 66px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3.4vw, 48px); transition: background .4s, backdrop-filter .4s; }
.site-header.scrolled { background: rgba(18, 15, 43, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; margin-right: auto; }
.brand b { font-weight: 600; } .brand i { width: 1px; height: 22px; background: var(--amber); transform: rotate(18deg); }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
#menu a { display: block; padding: 6px 14px; text-decoration: none; color: var(--cream); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; position: relative; }
html[data-lang="ta"] #menu a { letter-spacing: 0; text-transform: none; font-size: 16px; }
#menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
#menu a:hover::after, #menu a:focus-visible::after { transform: scaleX(1); }
#menu a:hover { color: var(--amber); outline: none; }
.lang { display: flex; gap: 2px; }
.lang button { border: 1px solid var(--line); background: transparent; min-width: 38px; height: 30px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--mute); letter-spacing: .1em; }
.lang button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--night); }
.nav-toggle { display: none; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { width: min(760px, 100%); }
.sec { padding: 120px 0; position: relative; }
.sec.dark { background: var(--night2); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--amber); }
html[data-lang="ta"] .eyebrow { letter-spacing: .04em; text-transform: none; font-size: 16px; }
.sec-h { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.1; margin: 12px 0 18px; }
html[data-lang="ta"] .sec-h { font-size: clamp(28px, 4vw, 46px); line-height: 1.3; }
.sub { max-width: 52ch; color: var(--mute); }
.center { text-align: center; } .center .sub { margin: 0 auto; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.btn { display: inline-block; border: 1px solid var(--amber); background: var(--amber); color: var(--night); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; padding: 15px 34px; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, letter-spacing .3s; }
html[data-lang="ta"] .btn { letter-spacing: .02em; text-transform: none; font-size: 16px; }
.btn:hover, .btn:focus-visible { background: transparent; color: var(--amber); letter-spacing: .3em; outline: none; }
html[data-lang="ta"] .btn:hover { letter-spacing: .02em; }
.btn.alt { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.alt:hover { background: var(--cream); color: var(--night); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 110px 0 90px; }
.scene { position: absolute; inset: 0; background: var(--night); }
.scene img { width: 100%; height: 100%; object-fit: cover; animation: kb 30s ease-in-out infinite alternate; transform-origin: 62% 70%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.16) translateX(-2%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 15, 43, .55), rgba(18, 15, 43, 0) 36%, rgba(18, 15, 43, 0) 60%, rgba(18, 15, 43, .85)); pointer-events: none; }
.grain { position: absolute; inset: -50%; z-index: 1; opacity: .13; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; pointer-events: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 2%); } }
.hero-copy { position: relative; z-index: 2; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--amber); animation: rise 1.4s .2s both; }
html[data-lang="ta"] .kicker { letter-spacing: .04em; text-transform: none; font-size: 17px; }
#names { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(64px, 14vw, 190px); line-height: .92; margin-top: 14px; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); animation: rise 1.6s .4s both; }
html[data-lang="ta"] #names { font-size: clamp(48px, 10vw, 128px); line-height: 1.1; font-weight: 600; }
#names .n1, #names .n2 { display: inline-block; }
#names .amp { font-style: normal; color: var(--amber); font-size: .5em; margin: 0 .25em; display: inline-block; transform: translateY(-.18em); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.8vw, 30px); margin-top: 16px; animation: rise 1.6s .7s both; }
html[data-lang="ta"] .hero-lead { font-style: normal; font-size: clamp(17px, 2.2vw, 24px); }
.hero-date { margin-top: 26px; font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; animation: rise 1.6s .9s both; }
html[data-lang="ta"] .hero-date { letter-spacing: .04em; text-transform: none; font-size: 19px; }
.hero-place { color: var(--amber); font-size: 14px; letter-spacing: .12em; animation: rise 1.6s 1s both; }
.ticket { display: inline-flex; align-items: flex-start; gap: 12px; margin: 26px 0 4px; animation: rise 1.6s 1.1s both; }
.ticket > div { min-width: 64px; text-align: center; }
.ticket > span { font-family: var(--serif); font-size: 36px; color: var(--amber); line-height: 1.2; opacity: .6; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .1; } }
.ticket b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ticket b.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: translateY(-5px); color: var(--amber); } }
.ticket small { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
html[data-lang="ta"] .ticket small { letter-spacing: 0; text-transform: none; font-size: 13px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; animation: rise 1.6s 1.3s both; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 44px; margin-left: -13px; border: 1px solid var(--cream); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.sticky { position: sticky; top: 96px; }
.stack { position: relative; margin-top: 26px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease, transform 6s ease; }
.stack img.on { opacity: 1; transform: scale(1); }
.cnt { position: absolute; right: 14px; bottom: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.chaps { padding-top: 40px; }
.chap { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; border-top: 1px solid var(--line); }
.chap:first-child { border-top: 0; }
.num { font-family: var(--serif); font-style: italic; font-size: clamp(70px, 9vw, 120px); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--amber); }
.where { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }
html[data-lang="ta"] .where { letter-spacing: .04em; text-transform: none; font-size: 16px; }
.chap h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 8px 0 12px; }
html[data-lang="ta"] .chap h3 { font-size: clamp(22px, 2.6vw, 30px); font-style: normal; }
.chap p:last-child { color: var(--mute); max-width: 44ch; }

/* film reel */
.reel-wrap { position: relative; margin-top: 46px; }
.reel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px clamp(20px, 6vw, 90px) 40px; scrollbar-width: none; cursor: grab; background: #0a0818; border-block: 1px solid var(--line); position: relative; }
.reel::-webkit-scrollbar { display: none; }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(246, 234, 216, .22) 14px 26px); pointer-events: none; }
.reel::before { top: 9px; } .reel::after { bottom: 9px; }
.fr { flex: 0 0 min(560px, 78vw); scroll-snap-align: center; position: relative; display: block; text-decoration: none; color: var(--cream); aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); }
.fr img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter .6s; filter: saturate(.9); }
.fr:hover img, .fr:focus-visible img { transform: scale(1.08); filter: saturate(1.15); }
.fr:focus-visible { outline: 2px solid var(--amber); }
.fno { position: absolute; left: 12px; top: 8px; z-index: 2; font-size: 11px; letter-spacing: .3em; color: var(--amber); font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(10, 8, 24, .88)); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; display: flex; justify-content: space-between; align-items: baseline; }
.cap em { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--amber); }
html[data-lang="ta"] .cap { font-style: normal; font-size: 19px; font-family: 'Noto Serif Tamil', serif; }
.arrow { position: absolute; top: 50%; z-index: 4; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--amber); background: rgba(18, 15, 43, .75); color: var(--amber); font-size: 22px; cursor: pointer; transition: background .3s, color .3s; }
.arrow:hover { background: var(--amber); color: var(--night); }
.prev { left: 16px; } .next { right: 16px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; text-align: center; }
.nm b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.nm span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
html[data-lang="ta"] .nm span { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* wedding */
.wed-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.datebox { border: 1px solid var(--amber); text-align: center; padding: 40px 20px; position: relative; display: grid; gap: 0; }
.datebox::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); pointer-events: none; }
.datebox b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(110px, 14vw, 190px); line-height: .9; color: var(--amber); }
.mo, .yr, .dw { font-size: 13px; letter-spacing: .5em; text-transform: uppercase; }
html[data-lang="ta"] .mo, html[data-lang="ta"] .yr, html[data-lang="ta"] .dw { letter-spacing: .06em; text-transform: none; font-size: 19px; }
.dw { color: var(--mute); margin-top: 6px; }
.tl { list-style: none; margin: 14px 0 22px; padding: 0; border-left: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0 9px 22px; position: relative; }
.tl li::before { content: ""; position: absolute; left: -5px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--night2); border: 1px solid var(--amber); }
.tl li.hl::before { background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 179, 107, .2); animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 11px rgba(255, 179, 107, 0); } }
.tl b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--amber); line-height: 1.3; }
.tl li.hl span { font-weight: 600; }
.venue { margin: 0 0 22px; color: var(--mute); }
.venue b { color: var(--cream); font-weight: 500; font-size: 19px; }

/* rsvp */
.rsvp-form { margin-top: 38px; display: grid; gap: 22px; padding: 44px 40px 34px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--amber); padding: 0; }
html[data-lang="ta"] .field label, html[data-lang="ta"] .field legend { letter-spacing: 0; text-transform: none; font-size: 16px; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--mute); background: transparent; padding: 10px 2px; font-size: 18px; color: var(--cream); outline: none; border-radius: 0; transition: border-color .3s; }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--amber); }
.field textarea { resize: vertical; }
.opt { font-weight: 400; color: var(--mute); letter-spacing: 0; text-transform: none; }
.choice { gap: 10px; }
.radio, .check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; cursor: pointer; }
.field .radio, .field .check { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--cream); font-weight: 300; }
html[data-lang="ta"] .field .radio, html[data-lang="ta"] .field .check { font-weight: 400; }
.radio input, .check input { accent-color: var(--amber); width: 18px; height: 18px; margin: 5px 0 0; flex: 0 0 auto; }
.err { color: #ff8da1; font-size: 13px; }
.err:empty { display: none; }
.field.invalid input { border-bottom-color: #ff8da1; }
.rsvp-form .btn { width: 100%; text-align: center; }
.fine { font-size: 14px; color: var(--mute); text-align: center; line-height: 1.6; }
.fine a { white-space: nowrap; }

.foot { background: #0a0818; text-align: center; padding: 90px 0 36px; border-top: 1px solid var(--line); }
.fq { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 36px); color: var(--amber); }
html[data-lang="ta"] .fq { font-style: normal; font-size: clamp(20px, 2.8vw, 28px); }
.fnames { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 9vw, 110px); line-height: 1.1; margin-top: 10px; }
html[data-lang="ta"] .fnames { font-style: normal; font-weight: 600; font-size: clamp(38px, 6vw, 70px); }
.hash { margin-top: 12px; font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.photocred { margin: 30px auto 0; font-size: 12px; color: #7d7498; max-width: 70ch; line-height: 1.6; }
.credit { margin-top: 14px; font-size: 13px; color: #7d7498; } .credit a { color: var(--mute); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 22, .95); display: grid; place-items: center; padding: 20px; }
.lightbox figure { margin: 0; max-width: min(1000px, 94vw); }
.lightbox img { max-height: 80vh; margin: 0 auto; }
.lightbox figcaption { text-align: center; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.lb-close { position: absolute; right: 22px; top: 14px; width: 46px; height: 46px; border: 1px solid var(--amber); background: transparent; color: var(--amber); font-size: 28px; cursor: pointer; border-radius: 50%; }

@media (max-width: 960px) {
  .story-grid, .wed-grid { grid-template-columns: 1fr; gap: 40px; }
  .sticky { position: relative; top: 0; }
  .chap { min-height: 0; padding: 40px 0; }
  .nums { grid-template-columns: 1fr 1fr; gap: 36px 10px; }
  #menu a { padding: 6px 8px; }
}
@media (max-width: 820px) {
  .site-header { height: 60px; }
  .lang { margin-left: auto; }
  .nav-toggle { display: block; width: 42px; height: 38px; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--cream); transition: .3s; }
  .nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }
  #menu { position: fixed; top: 60px; left: 0; right: 0; background: rgba(18, 15, 43, .98); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  #menu.open { max-height: 80vh; overflow: auto; }
  #menu ul { flex-direction: column; padding: 8px 20px 20px; }
  #menu a { padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
  #menu a::after { display: none; }
  .sec { padding: 80px 0; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .arrow { display: none; }
  .rsvp-form { padding: 30px 18px 24px; }
  .tl li { grid-template-columns: 70px 1fr; }
  .ticket { gap: 6px; } .ticket > div { min-width: 56px; } .ticket > span { font-size: 26px; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .cap { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}
.hero::after { background: radial-gradient(ellipse 60% 46% at 50% 50%, rgba(18, 15, 43, .62), rgba(18, 15, 43, 0) 100%), linear-gradient(180deg, rgba(18, 15, 43, .55), rgba(18, 15, 43, 0) 36%, rgba(18, 15, 43, 0) 60%, rgba(18, 15, 43, .85)); }
.hero-copy { text-shadow: 0 2px 14px rgba(10, 8, 24, .75); }
.hero-place { color: #ffd29b; }
