/* Vishnu & Arsha, wedding site.
   Identity: Kerala kasavu (ivory handloom, gold zari border) + the backwater lake at Olam.
   One ornament (the kasavu stripe), one big moment (the hands). */
:root {
  --ivory: #f4ecdc;
  --jasmine: #fffdf8;
  --zari: #a8823a;
  --zari-lt: #d9b56a;
  --lake: #34503f;   /* deep sage, from the embroidery */
  --lake-dk: #263b2f;
  --sage: #a8c8a2;
  --blush: #f0c4cb;  /* pastel pink, from the outfits */
  --blush-dk: #b86d7a;
  --ink: #23201b;
  --muted: #6b6356;
  --kumkum: #8e2f27;
  --line: rgba(168, 130, 58, .35);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --sign: "Mrs Saint Delafield", "Pinyon Script", cursive;
  --script: "Pinyon Script", cursive;
  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { overflow-x: clip; margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); }
body.is-intro { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--zari); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--jasmine); padding: 10px 14px; }
.skip:focus { top: 12px; }
.amp { font-style: italic; font-weight: 400; color: var(--zari); }
.h2, .reveal-title, .families-lead, .journey-line, .slide h3 { position: relative; }
.h2 { font: 500 clamp(40px, 6vw, 72px)/1 var(--serif); letter-spacing: -.01em; text-wrap: balance; }

/* The kasavu stripe: thin, thick, thin gold on ivory, with a woven grain. */
.kasavu {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, transparent 0 3px, var(--zari) 3px 4px, transparent 4px 6px, var(--zari) 6px 11px, transparent 11px 13px, var(--zari) 13px 14px, transparent 14px);
  background-color: var(--ivory);
}

/* ---------- Opening ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; cursor: pointer; }
@supports (height: 100dvh) { .intro { bottom: auto; height: 100dvh; } }
.intro.is-gone { visibility: hidden; }
.intro-page {
  position: absolute; inset: 0; overflow: hidden; color: var(--lake-dk); will-change: transform;
  background: linear-gradient(180deg, #fffbf3 0%, #f9efe6 55%, #f2dcdc 100%);
  transition: transform 1.2s cubic-bezier(.83, 0, .17, 1);
}
.intro.is-opening .intro-page { transform: translateY(-104%); }
.intro-page::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(52, 80, 63, .28); pointer-events: none; }
.intro-copy { position: absolute; z-index: 2; top: 6vh; left: 7vw; right: 7vw; text-align: center; }
.intro-dear { font: italic 500 clamp(18px, 2vw, 24px)/1.2 var(--serif); color: var(--zari); }
.intro-dear.has-guest { font: 400 clamp(40px, 5.6vw, 68px)/1.15 var(--script); color: var(--zari); margin-bottom: -4px; text-shadow: 0 2px 3px rgba(60, 45, 20, .28), 0 6px 18px rgba(60, 45, 20, .22); }
.intro-names { margin-top: 10px; font: 500 clamp(54px, 8vw, 120px)/.86 var(--serif); color: var(--lake-dk); }
.intro-names .amp { color: var(--zari); }
.intro-line { margin-top: 14px; font: italic 400 clamp(19px, 2vw, 28px)/1.2 var(--serif); color: var(--lake); }
.intro-art { position: absolute; left: 4vw; right: 4vw; bottom: 2vh; height: 64vh; display: flex; align-items: flex-end; justify-content: center; }
.intro-art img { position: relative; z-index: 1; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(80, 60, 40, .18)); transform-origin: 50% 100%; }
.intro-sun { position: absolute; top: 8%; left: 50%; width: min(66vw, 470px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #f8dfe2, #f0c4cb 70%); box-shadow: 0 0 0 18px rgba(255, 255, 255, .45), 0 0 0 19px rgba(168, 130, 58, .35), 0 0 0 40px rgba(255, 255, 255, .25); transform: translateX(-50%); }
.intro-date { position: absolute; z-index: 2; left: 7vw; bottom: calc(4.5vh + env(safe-area-inset-bottom)); font: 500 12px var(--sans); letter-spacing: .3em; }
.intro-open {
  position: absolute; z-index: 3; left: 50%; right: auto; transform: translateX(-50%); bottom: calc(3.4vh + env(safe-area-inset-bottom));
  border: 1px solid var(--lake); background: var(--lake); min-height: 48px;
  padding: 0 24px; border-radius: 999px; font: 500 16px var(--sans); color: var(--jasmine); cursor: pointer;
}
.intro-progress { position: absolute; z-index: 4; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--zari); transform-origin: left; transform: scaleX(0); }

@media (max-width: 899px) { .intro-date { display: none; } }
@media (min-width: 900px) {
  .intro-copy { text-align: left; right: auto; max-width: 560px; top: 9vh; }
  .intro-art { left: auto; right: 6vw; width: 50vw; height: 88vh; bottom: 0; }
  .intro-sun { width: min(34vw, 470px); top: 12%; }
  .intro-date { bottom: calc(9vh + env(safe-area-inset-bottom)); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--jasmine); overflow: hidden; background: var(--lake); }
.hero-img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 60% 40%; }
.hero-shade { background: linear-gradient(180deg, rgba(10, 20, 18, .5), rgba(10, 20, 18, 0) 30%, rgba(10, 20, 18, .05) 55%, rgba(10, 20, 18, .85)); }
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.mono { font: 500 26px/1 var(--serif); text-decoration: none; }
.mono span { font-style: italic; color: var(--zari-lt); margin: 0 2px; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-rsvp) { display: none; }
.nav-rsvp { border: 1px solid rgba(255, 253, 248, .6); padding: 8px 16px; border-radius: 999px; }
@media (min-width: 640px) { .nav-links a:not(.nav-rsvp) { display: inline; } }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -35% -25% -15% -15%; background: radial-gradient(closest-side, rgba(12, 22, 16, .5), transparent); pointer-events: none; }
.hero-copy { isolation: isolate; position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 7vh; }
.hero-dear { font: 400 clamp(44px, 5.8vw, 80px)/1.1 var(--script); color: #fff4dc; text-shadow: 0 2px 4px rgba(0, 0, 0, .7), 0 4px 14px rgba(0, 0, 0, .5), 0 0 40px rgba(0, 0, 0, .45); margin-bottom: 8px; }
.hero-names { font: 500 clamp(64px, 11vw, 150px)/.86 var(--serif); letter-spacing: -.015em; }
.hero-names .amp { color: var(--zari-lt); }
.hero-meta { margin-top: 18px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; opacity: .92; }

/* ---------- Scratch card ---------- */
.reveal { padding: clamp(64px, 10vw, 120px) var(--gutter); text-align: center; background: var(--ivory); }
.reveal-title { font: 500 clamp(32px, 4.6vw, 52px)/1.05 var(--serif); max-width: 16ch; margin: 0 auto; }
.reveal-hint { margin-top: 10px; color: var(--muted); }
.scratch {
  position: relative; width: min(100%, 420px); aspect-ratio: 7 / 4; margin: 32px auto 0; border-radius: 6px; overflow: hidden;
  background: var(--jasmine); box-shadow: inset 0 0 0 10px var(--jasmine), inset 0 0 0 11px var(--zari), inset 0 0 0 14px var(--jasmine), inset 0 0 0 18px var(--zari), 0 18px 40px -18px rgba(60, 40, 10, .35);
  touch-action: none;
}
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.scratch-day { font: italic 500 22px/1 var(--serif); color: var(--muted); }
.scratch-date { display: flex; align-items: center; gap: 12px; font: 500 clamp(52px, 13vw, 78px)/1 var(--serif); color: var(--lake); }
.scratch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blush-dk); }
.scratch-place { font-size: 14px; color: var(--muted); }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; transition: opacity .8s var(--ease-out), scale .8s var(--ease-out); }
.scratch.is-done .scratch-foil { scale: 1.04; }
.scratch.is-done .scratch-foil { opacity: 0; pointer-events: none; }
.scratch-petals { position: absolute; inset: 0; pointer-events: none; }
.scratch-petals i { position: absolute; left: 50%; top: 50%; width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--blush); }
.scratch-petals i:nth-child(3n) { background: var(--jasmine); box-shadow: 0 0 0 1px rgba(168, 130, 58, .3); }
.scratch-petals i:nth-child(4n) { background: var(--sage); }
.reveal-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.link-btn { background: none; border: 1px solid rgba(35, 32, 27, .35); border-radius: 999px; padding: 12px 20px; text-decoration: none; color: var(--ink); cursor: pointer; font-size: 15px; }

/* ---------- Families + countdown ---------- */
.families { padding: 0 var(--gutter) clamp(64px, 9vw, 110px); text-align: center; background: var(--ivory); }
.families-lead { font: italic 400 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); max-width: 30ch; margin: 0 auto; }
.families-grid { margin: 40px auto 0; max-width: 940px; display: grid; gap: 22px; align-items: center; }
.fam-role { font-size: 15px; color: var(--muted); }
.fam-names { margin-top: 4px; font: 500 clamp(22px, 2.4vw, 27px)/1.3 var(--serif); }
.fam-sib { margin-top: 6px; font: italic 400 clamp(17px, 1.8vw, 20px)/1.3 var(--serif); color: var(--muted); }
.fam-amp { font: italic 400 34px/1 var(--serif); color: var(--zari); }
@media (min-width: 720px) { .families-grid { grid-template-columns: 1fr auto 1fr; } }
.count { margin: 48px auto 0; display: flex; justify-content: center; gap: clamp(28px, 6vw, 64px); }
.count div { display: flex; flex-direction: column; align-items: center; }
.count b { font: 500 clamp(44px, 6vw, 64px)/1 var(--serif); color: var(--blush-dk); font-variant-numeric: lining-nums tabular-nums; }
.count span { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Story ---------- */
.story { background: var(--jasmine); padding: clamp(56px, 8vw, 100px) 0; }
.story-tabs { position: relative; display: flex; justify-content: center; gap: 4px; margin: 0 auto 36px; width: max-content; border-bottom: 1px solid var(--line); }
.story-tabs button { transition: color .35s var(--ease-out); }
.story-tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; font: 500 clamp(19px, 2.2vw, 24px)/1 var(--serif); color: var(--muted); }
.story-tabs button[aria-selected="true"] { color: var(--ink); }
.story-tab-bar { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--zari); width: 50%; transition: transform .6s var(--ease-in-out), width .6s var(--ease-in-out); }
.story-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.story-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; padding: 0 max(var(--gutter), calc((100% - 1080px) / 2)); display: grid; gap: 28px; align-items: center; }
.slide-photo { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; justify-self: center; border-radius: 3px; }
.slide h3 { font: 500 clamp(36px, 4.8vw, 58px)/1.02 var(--serif); }
.slide-text p { margin-top: 16px; max-width: 58ch; font-size: 16px; line-height: 1.7; }
.slide-text .slide-by { margin-top: 18px; max-width: none; line-height: 1.1; font: 400 clamp(54px, 6vw, 72px)/1.1 var(--sign); color: var(--lake); padding: 0 24px 0 2px; width: max-content; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.6s cubic-bezier(.6, 0, .3, 1) .2s; }
.slide-text .slide-by.is-signed { clip-path: inset(-20% -30% -20% 0); }
@media (min-width: 860px) {
  .slide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
}
.story-swipe { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }
.story-swipe.is-read { visibility: hidden; }

.journey { margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 var(--gutter); max-width: 680px; text-align: center; }
.journey-svg { width: 100%; height: auto; overflow: visible; }
.journey-svg path { fill: none; stroke: var(--zari); stroke-width: 2.2; stroke-linecap: round; }
.journey-svg .journey-heart { fill: var(--blush-dk); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.journey-pin { fill: var(--lake); }
.journey-svg .j-arsha { stroke: var(--blush-dk); }
.journey-svg .j-vishnu1, .journey-svg .j-vishnu2 { stroke: var(--zari); }
.journey-svg .j-home-a { stroke: var(--blush-dk); opacity: .8; }
.journey-svg .j-home-v { stroke: var(--zari); opacity: .8; }
.journey-pin.is-home { fill: var(--blush-dk); }
.journey-svg .journey-plane path { fill: #8a6a2c; stroke: none; }
.journey-svg .journey-plane-a path { fill: var(--blush-dk); }
.journey-key { display: flex; justify-content: center; gap: 22px; margin-top: 6px; font-size: 15px; color: var(--muted); }
.journey-key span::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.journey-key .k-arsha::before { background: var(--blush-dk); }
.journey-key .k-vishnu::before { background: var(--zari); }
.journey-by { margin-top: 8px; font: 500 15px var(--sans); letter-spacing: .04em; color: var(--zari); }
.journey-plane { fill: var(--lake); opacity: 0; transform-box: view-box; transform-origin: 0 0; }
.journey-svg text { font: 500 21px var(--sans); fill: var(--muted); }
.journey-line { margin: 28px auto 0; max-width: 32ch; font: italic 400 clamp(22px, 2.6vw, 28px)/1.4 var(--serif); color: var(--lake-dk); }

.photos { margin-top: 48px; display: flex; gap: 18px; overflow-x: auto; padding: 18px var(--gutter) 30px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--zari-lt) transparent; }
.polaroid { flex: 0 0 auto; width: clamp(170px, 46vw, 230px); padding: 10px 10px 0; background: #fff; box-shadow: 0 10px 24px -14px rgba(40, 30, 10, .45); scroll-snap-align: center; transform: rotate(var(--r, 0deg)); margin: 0; }
.polaroid { transition: translate .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.polaroid:hover { translate: 0 -10px; box-shadow: 0 22px 34px -18px rgba(40, 30, 10, .5); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid.is-wide { width: clamp(230px, 62vw, 310px); }
.polaroid.is-wide img { aspect-ratio: 4 / 3; }
.photos { align-items: flex-end; }
.polaroid figcaption { min-height: 42px; display: flex; align-items: center; justify-content: center; font: italic 500 17px/1.2 var(--serif); color: var(--muted); text-align: center; padding: 6px 0; }

/* ---------- Hands: an empty portrait on the wall fills with pixels; a little audience watches ---------- */
.hands { height: 200vh; background: var(--jasmine); position: relative; }
.hands-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(circle at 70% 75%, rgba(255, 255, 255, .95), rgba(255, 253, 240, .6) 40%, rgba(255, 255, 255, 0) 75%); opacity: 0; }
.gallery { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; padding-top: max(3vh, 12px); }
.hanger { width: 110px; height: 40px; margin-bottom: -2px; fill: none; stroke: #8a6a2c; stroke-width: 1.4; }
.hanger circle { fill: #8a6a2c; stroke: none; }
.portrait {
  --pw: min(74vw, 46svh, 540px);
  position: relative; width: var(--pw); padding: calc(var(--pw) * .055); border-radius: 3px;
  background: linear-gradient(135deg, #9c7631 0%, #efd48f 20%, #b08939 42%, #f2d995 62%, #a47c33 82%, #e3c47c 100%);
  box-shadow: 0 34px 50px -28px rgba(40, 28, 8, .55), inset 0 0 0 1.5px #6b4e1b, inset 0 0 0 4.5px #f4de9f, inset 0 0 0 6px #6b4e1b;
}
.portrait::before { /* corner rosettes */
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  background:
    radial-gradient(circle, #fff3c9 0 2px, #8f6a2c 2.5px 4px, transparent 4.5px) 0 0 / 14px 14px no-repeat,
    radial-gradient(circle, #fff3c9 0 2px, #8f6a2c 2.5px 4px, transparent 4.5px) 100% 0 / 14px 14px no-repeat,
    radial-gradient(circle, #fff3c9 0 2px, #8f6a2c 2.5px 4px, transparent 4.5px) 0 100% / 14px 14px no-repeat,
    radial-gradient(circle, #fff3c9 0 2px, #8f6a2c 2.5px 4px, transparent 4.5px) 100% 100% / 14px 14px no-repeat;
}
.portrait-mat { padding: calc(var(--pw) * .065); background: #fbf6ec; box-shadow: inset 0 2px 9px rgba(60, 40, 10, .28); }
.hands-frame { overflow: hidden; position: relative; width: 100%; aspect-ratio: 1; background: #f4eee2; box-shadow: inset 0 0 0 1px rgba(168, 130, 58, .35), inset 0 1px 6px rgba(60, 40, 10, .12); }
.hands-full { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.hands-glint { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 242, 205, .55) 50%, transparent 60%) 160% 0 / 300% 100% no-repeat; }
.hands-under { position: relative; margin-top: 46px; min-height: 64px; width: 100%; display: flex; justify-content: center; }
.hands-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.hands-hint span { width: 1px; height: 30px; background: linear-gradient(var(--zari), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hands-line { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(92vw, 640px); text-align: center; font: italic 500 clamp(22px, 2.8vw, 32px)/1.3 var(--serif); color: var(--lake); }
.hands-line-k { display: block; margin-bottom: 6px; font: 500 15px/1.3 var(--sans); font-style: normal; letter-spacing: .02em; color: var(--zari); }
html:not(.no-motion) .hands-line { opacity: 0; }

/* the audience, seen from behind, in the cupid's gold line style */
.audience { position: absolute; z-index: 6; left: 50%; bottom: -2px; translate: -50% 0; width: min(100%, 860px, 92svh); height: auto; overflow: visible; pointer-events: none;
  fill: none; stroke: #9a7432; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.audience .cloth { fill: #fffaf0; }
.audience .towel { fill: #f6ead0; }
.audience .pallu { fill: #fdf3df; }
.audience .shirt-kid { fill: #f7dfe2; }
.audience .frock { fill: #f8e1e4; }
.audience .skin { fill: #f2d9bf; }
.audience .hair { fill: #4a3a2c; stroke: #3a2c20; }
.audience .hair-white { stroke: #e9e3d6; stroke-width: 7; }
.audience .kasavu-line { stroke: #c9a24f; stroke-width: 2.2; }
.audience .kasavu-line.thick { stroke-width: 5; }
.audience .jasmine { stroke: #fffdf6; stroke-width: 4.5; stroke-dasharray: .1 6.5; }
.audience .phone { fill: #2e2a26; stroke: #2e2a26; }
.audience .phone-heart { fill: #f0b9c2; stroke: none; }
.audience .cheer path { fill: #e48a9a; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fig { transform-box: fill-box; transform-origin: 50% 100%; }
html:not(.no-motion) .fig-grandpa { animation: sway 5s ease-in-out infinite; }
html:not(.no-motion) .fig-grandma { animation: sway 5.6s ease-in-out -1.4s infinite; }
html:not(.no-motion) .fig-dad { animation: sway 4.4s ease-in-out -.6s infinite; }
html:not(.no-motion) .fig-photo { animation: sway 6s ease-in-out -2s infinite; }
html:not(.no-motion) .fig-girl { animation: sway 3.8s ease-in-out -1s infinite; }
@keyframes sway { 0%, 100% { rotate: -.8deg; } 50% { rotate: .8deg; } }
.kid-arm, .wave-arm { transform-box: fill-box; transform-origin: 0 100%; }
.grandpa-stick { transform-box: fill-box; transform-origin: 0 0; transition: rotate .7s cubic-bezier(.34, 1.56, .64, 1); }
.hands-stick.is-done .grandpa-stick { rotate: -32deg; }
.audience .clap { stroke: #c9a24f; stroke-width: 2.4; opacity: 0; }
.hands-stick.is-done .clap { animation: clap .45s ease-out 4 alternate; }
@keyframes clap { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
.audience .phone-flash { fill: url(#flashGlow); stroke: none; opacity: 0; }
@keyframes point { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
.hands-stick.is-done .wave-arm { animation: wave .5s ease-in-out infinite alternate; }
@keyframes wave { from { rotate: -10deg; } to { rotate: 14deg; } }
.hands-stick.is-done .fig-girl { animation: hop .6s cubic-bezier(.3, 0, .3, 1) 3; }
@keyframes hop { 0%, 100% { translate: 0 0; } 45% { translate: 0 -14px; } }
.hands-stick.is-done .cheer path { animation: rise 1.6s cubic-bezier(.22, 1, .36, 1) forwards; }
.hands-stick.is-done .cheer path:nth-child(2) { animation-delay: .2s; }
.hands-stick.is-done .cheer path:nth-child(3) { animation-delay: .4s; }
@keyframes rise { 0% { opacity: 0; translate: 0 20px; scale: .4; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 -50px; scale: 1.2; } }
.no-motion .hands { height: auto; padding: 48px 0 0; }
.no-motion .hands-stick { position: relative; height: auto; padding-bottom: 32vw; }
.no-motion .hands-full { opacity: 1; }
.no-motion .flash, .no-motion .hands-hint { display: none; }

/* ---------- Events: arched cards, one theme per event ---------- */
.events { background: var(--lake); color: var(--jasmine); padding: clamp(64px, 9vw, 120px) var(--gutter); text-align: center; }
.events-sub { margin: 12px auto 0; max-width: 46ch; color: rgba(255, 253, 248, .75); }
.day { max-width: 1120px; margin: 64px auto 0; }
.day-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 28px; font-weight: 400; }
.day-head::before, .day-head::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: rgba(217, 181, 106, .45); }
.day-num { font: 500 58px/.8 var(--serif); color: var(--zari-lt); }
.day-name { font: italic 400 22px/1.2 var(--serif); text-align: left; }
.arches { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 330px)); justify-content: center; }
.arch {
  --bg: var(--jasmine); --fg: var(--lake); --accent: var(--zari); --rule: rgba(168, 130, 58, .55);
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 70px 28px 26px;
  border-radius: 180px 180px 16px 16px; background: var(--bg); color: var(--fg); text-align: center;
  box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .55);
}
.arch::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--rule); border-radius: 171px 171px 10px 10px; pointer-events: none; }
.arch-haldi { --bg: #f1cd63; --fg: #3a290b; --accent: #8a4a0c; --rule: rgba(58, 41, 11, .3); }
.arch-sangeet { --bg: #161412; --fg: #f6ecd6; --accent: #d9b56a; --rule: rgba(217, 181, 106, .45); }
.arch-wedding { --bg: #f8e4e6; --fg: var(--lake-dk); --accent: #7a5c20; --rule: rgba(52, 80, 63, .4); }
.arch-wedding::after { content: ""; position: absolute; inset: 14px; border: 2.5px solid rgba(122, 156, 116, .75); border-radius: 166px 166px 6px 6px; pointer-events: none; }
.arch-groom { --bg: #2c4c5e; --fg: #f6ecd6; --accent: #e3c27c; --rule: rgba(227, 194, 124, .4); }
.arch-bride { --bg: #7b2a2b; --fg: #fbeedd; --accent: #efc98a; --rule: rgba(239, 201, 138, .4); }
.arch-icon svg { width: 58px; height: 58px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arch-icon .beads { stroke-width: 3.6; stroke-dasharray: 0 5.5; }
.arch-time { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.arch-title { margin-top: 6px; font: 500 36px/1.02 var(--serif); }
.arch.is-main .arch-title { font-size: 42px; }
.arch-venue { margin-top: 12px; font-size: 16px; font-weight: 500; }
.arch-place { margin-top: 2px; font-size: 15px; line-height: 1.45; opacity: .9; max-width: 26ch; }
.arch-dress { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; opacity: 1; }
.sw { display: inline-flex; gap: 6px; }
.sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--rule); }
.arch-haldi .sw i, .arch-wedding .sw i { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px rgba(40, 30, 10, .55); }
.arch-distance { margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 248, .1); font-size: 15px; line-height: 1.4; max-width: 30ch; }
.arch-place, .arch-dress, .arch-distance { margin-bottom: 22px; }
.arch-place:has(+ .arch-distance) { margin-bottom: 0; }
.events-note { margin-top: 18px; font-size: 15px; color: rgba(255, 253, 248, .65); }
.arch-links { margin-top: auto; padding-top: 16px; width: 100%; display: flex; justify-content: center; gap: 22px; border-top: 1px solid var(--rule); }
.arch-link { transition: text-underline-offset .35s var(--ease-out), text-decoration-color .35s var(--ease-out); }
.arch-link:hover { text-underline-offset: 8px; }
.arch-link { background: none; border: 0; padding: 12px 10px; font: 500 15px var(--sans); color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; cursor: pointer; }
.arch .cal-menu { left: 50%; transform: translateX(-50%); top: calc(100% + 8px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--lake); background: var(--lake); color: var(--jasmine); text-decoration: none; font: 500 14px var(--sans); cursor: pointer; }
.btn-light { background: transparent; border-color: rgba(255, 253, 248, .55); color: var(--jasmine); }
.btn-gold { background: var(--zari-lt); border-color: var(--zari-lt); color: var(--lake-dk); }
.btn { transition: transform .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0); transition-duration: .1s; }

/* calendar menu (details/summary) */
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal-menu { max-width: calc(100vw - 24px); position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 210px; background: var(--jasmine); color: var(--ink); border-radius: 10px; padding: 6px; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .4); text-align: left; }
.cal-menu a, .cal-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; text-decoration: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.cal-menu a:hover, .cal-menu button:hover { background: var(--ivory); }
.cal[open] .cal-menu { animation: menu-in .38s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; translate: 0 -8px; scale: .97; } }
.cal-menu a, .cal-menu button { transition: background-color .25s var(--ease-out); }
.reveal .cal summary.btn { background: var(--lake); }
.cal-all { max-width: 1080px; margin: 48px auto 0; display: flex; justify-content: center; }
.cal-all .cal-menu { left: 50%; transform: translateX(-50%); }

/* ---------- RSVP ---------- */
.rsvp { padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; gap: 36px; max-width: 1080px; margin: 0 auto; }
.rsvp-intro p { margin-top: 12px; color: var(--muted); }
@media (min-width: 860px) { .rsvp { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
#rsvp-form { display: grid; gap: 8px; }
#rsvp-form label:not(.choice), legend { font-size: 14px; color: var(--muted); margin-top: 14px; }
#rsvp-form input[type="text"], #rsvp-form select, #rsvp-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(35, 32, 27, .35); background: transparent; padding: 10px 0; font: 400 20px/1.3 var(--serif); color: var(--ink); border-radius: 0;
}
#rsvp-form textarea { resize: vertical; font-size: 18px; }
#rsvp-form .is-invalid { border-bottom-color: var(--kumkum); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 8px 0; font: 400 20px/1.3 var(--serif); cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--lake); }
.hands-line, .rsvp-done h3 { color: var(--lake); }
.ev-choices { display: grid; gap: 0; }
.if-yes[hidden] { display: none; }
.opt { color: var(--muted); }
.form-error { color: var(--kumkum); font-size: 14px; }
#rsvp-send { margin-top: 18px; justify-self: start; }
.rsvp-done { align-self: center; }
.rsvp-done h3 { font: 500 40px/1.1 var(--serif); }
.rsvp-done p { margin-top: 10px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--lake-dk); color: rgba(255, 253, 248, .8); text-align: center; padding: 0 0 48px; font-size: 14px; }
.foot .kasavu { background-color: var(--lake-dk); margin-bottom: 40px; }
.foot-mono { font-size: 40px; color: var(--jasmine); margin-bottom: 10px; }

.music { position: fixed; z-index: 50; left: 14px; bottom: 14px; border: 1px solid var(--line); background: rgba(255, 253, 248, .9); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .intro-page, .story-tab-bar, .scratch-foil { transition-duration: .01ms; }
}


/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }

/* Phones: the landscape hero photo needs a shorter hero so both faces fit */
@media (max-aspect-ratio: 4/5) {
  .hero { height: 60svh; min-height: 440px; }
  .hero-img { object-position: 56% 35%; }
  .hero-names { font-size: clamp(52px, 15vw, 72px); }
}

/* colour names on hover / focus / tap */
.sw i { position: relative; cursor: default; transition: transform .25s var(--ease-out); }
.sw i:hover, .sw i:focus-visible, .sw i:focus { transform: scale(1.25); outline: none; }
.sw i::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 9px); translate: -50% 4px; white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #23201b; color: #fffdf8; font: 500 12px/1 var(--sans); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out); z-index: 5; }
.sw i:hover::after, .sw i:focus::after { opacity: 1; translate: -50% 0; }
