/* ==========================================================================
   BHIMA GOLDEN FAMILY GIVEAWAY 2027 — styles (mobile-first)
   ========================================================================== */

:root {
  --wine-950: #22050b;
  --wine-900: #330912;
  --wine-850: #3f0c18;
  --wine-800: #4c0f1d;
  --wine-700: #651426;
  --wine-600: #7e1a2f;
  --wine-500: #9a2239;

  --gold-100: #fcf3d9;
  --gold-200: #f4dfa6;
  --gold-300: #e9c982;
  --gold-400: #dcb062;
  --gold-500: #c79744;
  --gold-600: #a7792d;
  --gold-700: #7c5a1f;

  --ivory: #fdf9f1;
  --cream: #f8f0e2;
  --champagne: #f0e2c9;
  --ink: #2b1815;
  --ink-soft: #5e4842;
  --ink-mute: #8a736b;
  --line: rgba(167, 121, 45, .26);
  --line-strong: rgba(167, 121, 45, .5);

  --grad-gold: linear-gradient(120deg, #fbe9b2 0%, #e4bd6a 22%, #b9873a 48%, #f2d68f 72%, #c99843 100%);
  --grad-gold-text: linear-gradient(100deg, #f9e3a1 0%, #e7bf6c 30%, #c8923c 55%, #f6dc96 80%, #d9a952 100%);
  --grad-wine: linear-gradient(135deg, #8e1f35 0%, #6a1527 55%, #4a0e1b 100%);

  --font-display: "Cormorant Garamond", "Noto Serif Malayalam", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  --gutter: 20px;

  /* Language-tunable type scale */
  --track-caps: .2em;
  --h1: clamp(2.45rem, 9.4vw, 4.75rem);
  --h1-lh: 1.02;
  --h2: clamp(2rem, 6.6vw, 3.25rem);
  --h2-lh: 1.06;
  --body-lh: 1.7;
}

html[lang="ml"] {
  --font-display: "Noto Serif Malayalam", "Cormorant Garamond", Georgia, serif;
  --font-body: "Noto Sans Malayalam", "Manrope", system-ui, sans-serif;
  --track-caps: 0;
  --h1: clamp(1.85rem, 7vw, 3.1rem);
  --h1-lh: 1.38;
  --h2: clamp(1.5rem, 5vw, 2.3rem);
  --h2-lh: 1.45;
  --body-lh: 1.85;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold-300); color: var(--wine-900); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-600);
  line-height: 1.6;
}
html[lang="ml"] .eyebrow { font-size: .86rem; font-weight: 600; }
.eyebrow--light { color: var(--gold-200); }
.eyebrow .sep { opacity: .55; margin-inline: .35em; }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--h2);
  line-height: var(--h2-lh);
  color: var(--wine-700);
  letter-spacing: -.005em;
  text-wrap: balance;
}
html[lang="en"] .h2 { text-transform: uppercase; letter-spacing: .005em; }
.h2 em { font-style: normal; color: var(--gold-600); }
html[lang="en"] .h2 em { font-style: italic; text-transform: none; font-weight: 500; font-size: 1.04em; letter-spacing: 0; }
.h2--light { color: var(--ivory); }
.h2--light em {
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.body-lg { font-size: 1.06rem; color: var(--ink-soft); margin-top: 1.1rem; max-width: 34em; }
.body { font-size: .98rem; color: var(--ink-soft); margin-top: .9rem; max-width: 36em; }
html[lang="ml"] .body-lg { font-size: 1rem; }
html[lang="ml"] .body { font-size: .95rem; }

.rule { display: block; width: 56px; height: 1px; margin: 1.1rem 0 1.2rem; background: linear-gradient(90deg, var(--gold-300), transparent); }
.rule--gold { height: 2px; width: 46px; background: var(--grad-gold); border-radius: 2px; margin: 1.25rem 0 .25rem; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 1.02rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 54px;
  padding: var(--pad-y) 1.7rem var(--pad-y) 1.9rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-position .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
html[lang="ml"] .btn { letter-spacing: 0; font-size: .95rem; font-weight: 600; text-transform: none; }
.btn .ico { width: 1.15em; height: 1.15em; stroke-width: 2; transition: transform .35s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--gold {
  color: var(--wine-900);
  background: var(--grad-gold);
  background-size: 180% 100%;
  box-shadow: 0 14px 34px -14px rgba(220, 176, 98, .75), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(124, 90, 31, .25);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(220, 176, 98, .9), inset 0 1px 0 rgba(255,255,255,.65); }

.btn--wine {
  color: var(--ivory);
  background: var(--grad-wine);
  box-shadow: 0 12px 26px -12px rgba(101, 20, 38, .7), inset 0 1px 0 rgba(255,255,255,.15);
  min-height: 50px; padding: .8rem 1.45rem .8rem 1.6rem;
  letter-spacing: .06em; text-transform: none; font-size: .95rem;
}
.btn--wine:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(101, 20, 38, .8); }
.btn--wine[disabled] { opacity: .7; cursor: progress; }
.btn--ghost {
  background: transparent; color: var(--wine-700); border: 1px solid var(--line-strong);
  min-height: 46px; padding: .6rem 1.2rem; letter-spacing: .04em; text-transform: none; font-size: .92rem; font-weight: 600;
}
.btn--ghost:hover { border-color: var(--gold-500); background: rgba(240, 226, 201, .4); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), height .35s var(--ease);
}
.nav::before { /* top scrim for legibility over hero */
  content: ""; position: absolute; inset: 0 0 -30px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(34,5,11,.6), rgba(34,5,11,0));
  transition: opacity .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(51, 9, 18, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(233, 201, 130, .22), 0 14px 30px -20px rgba(0,0,0,.6);
}
.nav.is-scrolled::before { opacity: 0; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: .55rem; }

.lang { display: inline-flex; align-items: center; gap: .1rem; padding: 3px; border-radius: 999px; background: rgba(34,5,11,.35); border: 1px solid rgba(233, 201, 130, .28); }
.lang__btn {
  border: 0; background: transparent; color: rgba(253, 249, 241, .75);
  font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  padding: .42rem .7rem; border-radius: 999px; min-height: 34px;
  transition: color .25s, background .25s;
}
.lang__btn--ml { font-family: "Noto Sans Malayalam", sans-serif; letter-spacing: 0; font-size: .8rem; font-weight: 600; }
.lang__btn[aria-pressed="true"] { color: var(--wine-900); background: var(--grad-gold); }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--gold-200); }
.lang__sep { display: none; color: rgba(233, 201, 130, .5); font-size: .8rem; }

.nav__contact {
  display: none;
  border: 1px solid rgba(233, 201, 130, .6); background: transparent; color: var(--gold-100);
  font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .62rem 1.15rem; border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
html[lang="ml"] .nav__contact { letter-spacing: 0; text-transform: none; font-size: .86rem; font-weight: 600; }
.nav__contact:hover { background: var(--grad-gold); color: var(--wine-900); border-color: transparent; }

.nav__burger {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(233, 201, 130, .35); background: rgba(34,5,11,.3);
  display: grid; place-content: center; gap: 5px; padding: 0;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--gold-200); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__burger span:nth-child(3) { width: 12px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { width: 18px; transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55;
  background: radial-gradient(120% 70% at 80% 0%, #6a1628 0%, var(--wine-900) 55%, var(--wine-950) 100%);
  padding: calc(var(--nav-h) + 28px) 28px 40px;
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
  overflow: hidden;
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--ivory);
  text-decoration: none; padding: .7rem 0; border-bottom: 1px solid rgba(233, 201, 130, .16);
  display: flex; justify-content: space-between; align-items: center;
}
html[lang="ml"] .drawer__links a { font-size: 1.3rem; }
.drawer__links a::after { content: "→"; font-family: var(--font-body); color: var(--gold-300); font-size: 1rem; opacity: .7; }
.nav__contact--drawer { display: inline-flex; align-self: flex-start; padding: .9rem 1.6rem; font-size: .8rem; }
.drawer__pine { position: absolute; right: -40px; bottom: -20px; width: 300px; opacity: .9; pointer-events: none; }
.drawer__glow { position: absolute; inset: auto -30% -30% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(220,176,98,.25), transparent 65%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--ivory);
  background:
    radial-gradient(90% 60% at 10% 100%, rgba(126, 26, 47, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 20%, rgba(101, 20, 38, .6), transparent 70%),
    var(--wine-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: relative; overflow: hidden; height: 64svh; min-height: 380px; max-height: 620px; }
.hero__media { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 62%; animation: heroZoom 18s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(51,9,18,.55) 0%, rgba(51,9,18,0) 26%, rgba(51,9,18,0) 52%, rgba(51,9,18,.82) 82%, var(--wine-900) 100%),
    radial-gradient(80% 60% at 50% 40%, transparent 50%, rgba(51,9,18,.35) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__content { position: relative; z-index: 3; margin-top: -84px; padding-bottom: 92px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--h1);
  line-height: var(--h1-lh);
  letter-spacing: -.01em;
  color: var(--ivory);
  text-shadow: 0 2px 30px rgba(34,5,11,.45);
}
html[lang="en"] .hero__title { text-transform: uppercase; }
.hero__title em {
  font-style: normal;
  display: inline-block;
  font-size: 1.18em;
  line-height: 1;
  background: var(--grad-gold-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShift 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 14px rgba(220,176,98,.25));
  padding-right: .05em;
}
html[lang="ml"] .hero__title em { font-size: 1.08em; line-height: 1.3; }
@keyframes goldShift { to { background-position: 100% 0; } }
.hero__lead { margin-top: 1.25rem; font-size: 1.02rem; color: rgba(253, 249, 241, .86); max-width: 33em; }
html[lang="ml"] .hero__lead { font-size: .97rem; }
.hero__cta { margin-top: 1.8rem; }
.hero__cta .btn { width: 100%; }
.hero__note {
  margin-top: 1.1rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--gold-200); opacity: .92;
  display: flex; align-items: center; gap: .6rem;
}
html[lang="ml"] .hero__note { font-style: normal; font-size: .9rem; }
.hero__note::before { content: ""; width: 22px; height: 1px; background: var(--gold-300); flex: none; }

.hero__pine { position: absolute; z-index: 2; left: -50px; bottom: -36px; width: 230px; pointer-events: none; transform: rotate(8deg); }
.ribbon { position: absolute; pointer-events: none; z-index: 2; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.ribbon path:first-child { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawRibbon 2.6s .4s var(--ease-out) forwards; }
@keyframes drawRibbon { to { stroke-dashoffset: 0; } }
.ribbon--hero { left: -2%; bottom: 8px; width: 70%; height: 90px; opacity: .85; }

.scrollcue { display: none; }

/* Hanging baubles */
.baubles { position: absolute; z-index: 2; top: 0; right: 6%; height: 0; pointer-events: none; }
.bauble {
  position: absolute; top: 0; width: 2px; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(233,201,130,.15), rgba(233,201,130,.9));
  animation: swing 6s ease-in-out infinite alternate;
}
.bauble::before { /* cap */
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 7px; margin-left: -5px; border-radius: 2px;
  background: linear-gradient(90deg, #a7792d, #f4dfa6, #a7792d);
}
.bauble::after { /* ball */
  content: ""; position: absolute; left: 50%; top: 100%; margin-top: 1px;
  width: var(--s, 34px); height: var(--s, 34px); margin-left: calc(var(--s, 34px) / -2); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6d6 0%, #f0cd7c 18%, #c08a33 52%, #6f4710 100%);
  box-shadow: 0 10px 22px -6px rgba(0,0,0,.55), inset -4px -6px 12px rgba(60,30,0,.35), 0 0 26px rgba(240,205,124,.25);
}
.bauble.is-red::after {
  background: radial-gradient(circle at 34% 30%, #ffd9d9 0%, #c63a52 20%, #7d1428 58%, #3d0611 100%);
  box-shadow: 0 10px 22px -6px rgba(0,0,0,.6), inset -4px -6px 12px rgba(30,0,5,.4), 0 0 22px rgba(198,58,82,.25);
}
.baubles { right: 92px; }
.bauble--1 { left: 0; height: 128px; --s: 24px; animation-duration: 5.5s; }
.bauble--2 { left: 30px; height: 168px; --s: 32px; animation-duration: 6.8s; animation-delay: -2s; }
.bauble--3 { left: 60px; height: 112px; --s: 20px; animation-duration: 5s; animation-delay: -1s; }
@keyframes swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 12vw, 132px); overflow: hidden; isolation: isolate; }
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.glow--champagne { width: 720px; aspect-ratio: 1; right: -260px; top: -220px; background: radial-gradient(circle, rgba(240, 214, 160, .55), transparent 62%); }
.glow--gold { width: 900px; aspect-ratio: 1; left: 50%; top: 30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(244, 223, 166, .5), transparent 60%); }

/* Celebration */
.celebration { background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%); }
.celebration__grid { display: grid; gap: 3.2rem; align-items: center; }
.arch { position: relative; width: min(82%, 400px); margin-inline: auto; }
.arch__frame {
  position: relative; border-radius: 999px 999px 22px 22px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 70px -40px rgba(76, 15, 29, .55);
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 36% 40%; transition: transform 1.4s var(--ease-out); }
.arch:hover .arch__frame img { transform: scale(1.04); }
.arch::before { /* offset gold frame */
  content: ""; position: absolute; inset: -12px; border-radius: 999px 999px 30px 30px; border: 1px solid var(--line-strong); z-index: -1;
}
.arch__sprig { position: absolute; left: -58px; bottom: 54px; width: 150px; transform: rotate(-28deg); pointer-events: none; }
.arch__quote {
  position: relative; margin: -34px 12px 0 auto; width: max-content; max-width: 88%;
  background: var(--wine-800); color: var(--gold-100);
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.35;
  padding: .9rem 1.2rem; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(51,9,18,.7);
  border: 1px solid rgba(233, 201, 130, .3);
}
html[lang="ml"] .arch__quote { font-style: normal; font-size: .92rem; line-height: 1.6; }

/* How it works */
.how {
  color: var(--ivory);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(154, 34, 57, .45), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(101, 20, 38, .7), transparent 70%),
    var(--wine-850);
  padding-top: clamp(96px, 13vw, 150px);
}
.how__head { text-align: center; max-width: 760px; margin-inline: auto; }
.how__head .h2 { margin-top: .6rem; }
.steps { margin-top: 3rem; display: grid; gap: 1.1rem; counter-reset: s; }
.step {
  position: relative;
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(233, 201, 130, .2);
  transition: transform .5s var(--ease-out), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(233, 201, 130, .5); background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.step__icon {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-200);
  background: radial-gradient(circle at 30% 25%, rgba(244,223,166,.28), rgba(124,90,31,.15) 70%);
  border: 1px solid rgba(233, 201, 130, .55);
  box-shadow: inset 0 0 0 4px rgba(51,9,18,.5), 0 10px 24px -10px rgba(0,0,0,.6);
}
.step__icon .ico { width: 26px; height: 26px; stroke-width: 1.4; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--gold-100); line-height: 1.2; }
html[lang="en"] .step__title { text-transform: uppercase; letter-spacing: .04em; }
html[lang="ml"] .step__title { font-size: 1.12rem; }
.step__num {
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: "Cormorant Garamond", serif; font-weight: 700; margin-right: .2rem;
}
.step p { margin-top: .3rem; font-size: .95rem; color: rgba(253, 249, 241, .78); line-height: 1.6; }

.lights { position: absolute; top: 0; left: 0; width: 100%; height: 70px; pointer-events: none; overflow: visible; }
.lights .bulb { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ribbon--how { right: -40px; top: 10%; width: 120px; height: 80%; opacity: .7; }

/* ---------- Entry & questionnaire ---------- */
.entry {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(240, 226, 201, .9), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--ivory) 60%, var(--cream));
}
.entry__grid { display: grid; gap: 2.4rem; align-items: start; }
.entry__intro { max-width: 520px; }
.ticks { margin-top: 1.4rem; display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .75rem; align-items: center; color: var(--ink); font-weight: 500; font-size: .96rem; }
.ticks .ico {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 2.2;
  color: var(--wine-700); background: rgba(220, 176, 98, .2); border: 1px solid var(--line-strong);
}
.entry__safe { margin-top: 1.4rem; display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-mute); line-height: 1.55; }
.entry__safe .ico { color: var(--gold-600); margin-top: .1rem; }
.entry__pine { position: absolute; pointer-events: none; z-index: 0; }
.entry__pine--tl { top: -30px; left: -70px; width: 260px; transform: rotate(160deg) scaleY(-1); }
.entry__pine--br { bottom: -30px; right: -70px; width: 280px; transform: rotate(-20deg); }

.qcard {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf8ee 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(76, 15, 29, .38), 0 2px 0 rgba(255,255,255,.8) inset, 0 0 0 6px rgba(255, 253, 248, .55);
  overflow: hidden;
}
.qcard::before { /* gold hairline */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-gold); z-index: 2;
}
.qcard__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 100% 0%, rgba(244, 223, 166, .35), transparent 70%); }
.qcard__stage { position: relative; transition: height .5s var(--ease-out); }
.qpanel { padding: 1.6rem 1.25rem 1.4rem; }
.qpanel.is-enter-fwd { animation: panelInFwd .55s var(--ease-out) both; }
.qpanel.is-enter-back { animation: panelInBack .55s var(--ease-out) both; }
.qpanel.is-leave-fwd { animation: panelOutFwd .22s var(--ease) both; }
.qpanel.is-leave-back { animation: panelOutBack .22s var(--ease) both; }
@keyframes panelInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes panelInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes panelOutFwd { to { opacity: 0; transform: translateX(-20px); } }
@keyframes panelOutBack { to { opacity: 0; transform: translateX(20px); } }
.qcard.is-shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Intro panel */
.qintro { text-align: center; padding: 2.4rem 1.4rem 2.2rem; }
.qintro__medal {
  width: 92px; height: 92px; margin: 0 auto 1.3rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--wine-800);
  background: var(--grad-gold);
  box-shadow: 0 18px 36px -16px rgba(167, 121, 45, .9), inset 0 2px 0 rgba(255,255,255,.6), 0 0 0 8px rgba(244, 223, 166, .35);
  animation: floaty 5s ease-in-out infinite;
}
.qintro__medal .ico { width: 40px; height: 40px; stroke-width: 1.3; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.qintro__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 5.6vw, 2.25rem); line-height: 1.15; color: var(--wine-700); margin-top: .5rem; text-wrap: balance; }
html[lang="ml"] .qintro__title { font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.5; }
.qintro__text { margin: .8rem auto 0; max-width: 30em; color: var(--ink-soft); font-size: .98rem; }
.qintro__meta { margin: 1.2rem auto 1.6rem; display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .95rem; border-radius: 999px; background: rgba(240, 226, 201, .6); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--gold-700); }
.qintro .btn { width: 100%; max-width: 360px; }

/* Progress */
.qprog { display: flex; align-items: center; gap: .9rem; font-size: .78rem; font-weight: 600; color: var(--ink-mute); }
.qprog__label { white-space: nowrap; color: var(--wine-700); letter-spacing: .02em; }
.qprog__pct { white-space: nowrap; margin-left: auto; color: var(--gold-700); }
.qbar { position: relative; height: 6px; border-radius: 6px; background: rgba(240, 226, 201, .9); overflow: hidden; margin-top: .7rem; }
.qbar__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--wine-700), var(--wine-500) 55%, var(--gold-400));
  transition: width .7s var(--ease-out);
}
.qbar__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: barShine 2.8s ease-in-out infinite; }
@keyframes barShine { 60%, 100% { transform: translateX(100%); } }
.qdots { display: flex; justify-content: space-between; margin-top: .55rem; padding-inline: 1px; }
.qdots span { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); transition: background .4s, transform .4s; }
.qdots span.is-done { background: var(--gold-500); }
.qdots span.is-current { background: var(--wine-600); transform: scale(1.35); }

.qhead { margin-top: 1.5rem; }
.qtitle { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.55rem, 5vw, 1.95rem); line-height: 1.18; color: var(--wine-800); text-wrap: balance; }
html[lang="ml"] .qtitle { font-size: clamp(1.15rem, 4.2vw, 1.4rem); line-height: 1.6; }
.qhint { margin-top: .35rem; font-size: .88rem; color: var(--ink-mute); }
.qbody { margin-top: 1.3rem; }

/* Option tiles */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  min-height: 60px; padding: .75rem .85rem;
  border-radius: 14px; border: 1px solid var(--line); background: #fffefa;
  text-align: left; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3;
  transition: border-color .25s, background .25s, transform .35s var(--ease-out), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
html[lang="ml"] .opt { font-size: .86rem; font-weight: 500; line-height: 1.5; }
.opt .ico { width: 24px; height: 24px; color: var(--gold-600); stroke-width: 1.5; transition: color .25s, transform .4s var(--ease-out); }
.opt:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(124, 90, 31, .7); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] {
  border-color: var(--wine-600); background: linear-gradient(160deg, #fdf1ee, #fbeee6);
  box-shadow: 0 0 0 1px var(--wine-600), 0 12px 26px -18px rgba(101, 20, 38, .8);
}
.opt[aria-pressed="true"] .ico, .opt[aria-checked="true"] .ico { color: var(--wine-600); transform: scale(1.08); }
.opt__check {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine-600); color: #fff;
  box-shadow: 0 0 0 2px #fffdf8; transform: scale(0); transition: transform .35s var(--ease-out);
}
.opt__check .ico { width: 13px; height: 13px; color: #fff; stroke-width: 3; }
.opt[aria-pressed="true"] .opt__check, .opt[aria-checked="true"] .opt__check { transform: scale(1); }
.opts--single { grid-template-columns: 1fr; }
.opt > span:not(.opt__check) { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 599px) {
  html[lang="ml"] .opts:not(.opts--single) .opt { flex-direction: column; justify-content: center; text-align: center; gap: .45rem; min-height: 92px; padding: .85rem .5rem; font-size: .84rem; }
}

/* Fields */
.fields { display: grid; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .4rem; }
html[lang="ml"] .field label { font-weight: 600; }
.field label small { font-weight: 500; color: var(--ink-mute); margin-left: .25rem; }
.input { position: relative; }
.input .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--gold-600); pointer-events: none; }
.input input, .input select {
  width: 100%; height: 52px; padding: 0 14px 0 44px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffefb; border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.input select { padding-right: 40px; cursor: pointer; }
.input .chev { left: auto; right: 14px; width: 16px; height: 16px; color: var(--ink-mute); }
.input input::placeholder { color: #b3a198; }
.input input:focus, .input select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(220, 176, 98, .22); background: #fff; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--wine-500); box-shadow: 0 0 0 3px rgba(154, 34, 57, .12); }
.ferr { display: none; margin-top: .4rem; font-size: .8rem; font-weight: 600; color: var(--wine-500); }
.field.is-invalid .ferr, .ferr.is-shown { display: block; animation: fadeUp .3s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }
.qerror { margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--wine-500); display: flex; gap: .4rem; align-items: center; }

/* Family */
.family { display: grid; gap: .8rem; }
.member { border: 1px solid var(--line); border-radius: 16px; background: #fffefa; padding: .9rem .95rem 1rem; }
.member.is-new { animation: memberIn .45s var(--ease-out) both; }
.member.is-leaving { animation: memberOut .3s var(--ease) both; }
@keyframes memberIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes memberOut { to { opacity: 0; transform: scale(.96); } }
.member__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.member__label, .member__remove { white-space: nowrap; }
.member__label { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--wine-700); }
html[lang="ml"] .member__label { font-size: .98rem; }
.member__label i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--wine-800); background: var(--grad-gold); }
.member__remove { border: 0; background: transparent; color: var(--ink-mute); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .5rem; border-radius: 8px; min-height: 36px; }
.member__remove:hover { color: var(--wine-600); background: rgba(154, 34, 57, .06); }
.member__remove .ico { width: 15px; height: 15px; }
.member__fields { display: grid; gap: .75rem; }
.member .field label { font-size: .76rem; }
.addmember {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 54px;
  border: 1.5px dashed var(--gold-400); border-radius: 14px; background: rgba(244, 223, 166, .12);
  font-weight: 700; font-size: .92rem; color: var(--wine-700);
  transition: background .25s, border-color .25s, transform .3s var(--ease-out);
}
.addmember:hover { background: rgba(244, 223, 166, .3); border-color: var(--gold-500); }
.addmember:active { transform: scale(.98); }
.addmember .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--wine-700); color: #fff; stroke-width: 2.6; }
.addmember[disabled] { opacity: .5; cursor: not-allowed; }
.family__count { text-align: center; font-size: .78rem; color: var(--ink-mute); }

/* Review */
.review { display: grid; gap: .6rem; }
.review__row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .85rem 1rem; border-radius: 14px; background: #fffefa; border: 1px solid var(--line); }
.review__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
html[lang="ml"] .review__label { letter-spacing: 0; font-size: .8rem; text-transform: none; }
.review__value { grid-column: 1 / 2; font-size: .92rem; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.review__edit { grid-row: 1 / 3; grid-column: 2; align-self: center; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 700; color: var(--wine-700); min-height: 34px; }
.review__edit:hover { background: rgba(244, 223, 166, .3); }
.consent { margin-top: 1rem; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 14px; background: rgba(240, 226, 201, .45); border: 1px solid var(--line); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--gold-600); background: #fff; display: grid; place-items: center; transition: background .25s, border-color .25s; margin-top: .1rem; }
.consent__box .ico { width: 15px; height: 15px; color: #fff; stroke-width: 3; transform: scale(0); transition: transform .3s var(--ease-out); }
.consent input:checked + .consent__box { background: var(--wine-600); border-color: var(--wine-600); }
.consent input:checked + .consent__box .ico { transform: scale(1); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.consent__text { font-size: .86rem; line-height: 1.6; color: var(--ink-soft); }
.consent__text a { color: var(--wine-700); font-weight: 600; text-underline-offset: 2px; }
.consent.is-invalid { border-color: var(--wine-500); }

/* Footer of panel */
.qfoot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(167, 121, 45, .16); }
.qback { border: 0; background: transparent; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--ink-soft); padding: .6rem .3rem; min-height: 44px; border-radius: 10px; }
.qback:hover { color: var(--wine-700); }
.qback .ico { transition: transform .3s var(--ease-out); }
.qback:hover .ico { transform: translateX(-3px); }
.qback[hidden] { display: inline-flex; visibility: hidden; }
.qfoot .btn--wine { margin-left: auto; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.qdone { position: relative; text-align: center; padding: 2.6rem 1.4rem 2.4rem; overflow: hidden; }
.qdone canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.seal-ok { position: relative; width: 108px; height: 108px; margin: 0 auto 1.4rem; }
.seal-ok svg { width: 100%; height: 100%; overflow: visible; }
.seal-ok .ring { stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawRing 1s .1s var(--ease-out) forwards; }
.seal-ok .tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawRing .6s .8s var(--ease-out) forwards; }
.seal-ok .disc { transform-origin: 50% 50%; transform: scale(0); animation: popIn .6s .25s var(--ease-out) forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes popIn { to { transform: scale(1); } }
.qdone__kicker { font-size: .74rem; font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--gold-600); }
.qdone__title { margin-top: .4rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; color: var(--wine-700); }
html[lang="ml"] .qdone__title { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.5; }
.qdone__text { margin: .9rem auto 0; max-width: 30em; color: var(--ink-soft); font-size: .98rem; }
.qdone__wish { margin: 1rem auto 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-700); }
html[lang="ml"] .qdone__wish { font-style: normal; font-size: .98rem; }
.qdone__ref { margin: 1.4rem auto 0; display: inline-flex; flex-direction: column; gap: .15rem; padding: .7rem 1.4rem; border-radius: 14px; border: 1px dashed var(--gold-500); background: rgba(244, 223, 166, .18); }
.qdone__ref span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
html[lang="ml"] .qdone__ref span { letter-spacing: 0; font-size: .78rem; text-transform: none; }
.qdone__ref b { font-family: "Manrope", monospace; font-size: 1.05rem; letter-spacing: .12em; color: var(--wine-700); }
.qdone .btn--ghost { margin-top: 1.5rem; }

/* ---------- About ---------- */
.about { background: var(--ivory); padding-bottom: clamp(56px, 8vw, 96px); }
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 48% 40%; border-radius: var(--radius-lg); box-shadow: 0 40px 70px -40px rgba(76, 15, 29, .5); }
.seal { position: absolute; right: 14px; bottom: -36px; width: 104px; height: 104px; filter: drop-shadow(0 14px 22px rgba(51,9,18,.45)); }
.seal__ring { transform-box: view-box; transform-origin: 50% 50%; animation: slowSpin 40s linear infinite; }
.seal svg { width: 100%; height: 100%; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.about__since { margin-top: 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold-700); }
html[lang="ml"] .about__since { font-style: normal; font-size: 1rem; }
.about__since b { font-style: normal; font-weight: 700; color: var(--wine-700); }

.gallery { margin-top: clamp(64px, 9vw, 110px); }
.gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.gallery__title { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--wine-700); }
html[lang="ml"] .gallery__title { font-size: 1.25rem; }
.gallery__hint { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-mute); }
.gallery__hint .ico { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.gallery__track {
  margin-top: 1.2rem;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 72%; scroll-snap-align: start; border-radius: 18px; overflow: hidden; position: relative; box-shadow: 0 24px 40px -28px rgba(76, 15, 29, .6); }
.gallery__item--wide { flex-basis: 88%; }
.gallery__item img { width: 100%; height: 260px; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(233, 201, 130, .35); pointer-events: none; }

/* ---------- Trust ---------- */
.trust { background: linear-gradient(180deg, var(--cream), var(--champagne)); padding-block: 2.6rem 2.2rem; border-top: 1px solid var(--line); }
.trust__grid { display: grid; gap: 1.3rem; }
.trust__item { display: flex; gap: .9rem; align-items: flex-start; }
.trust__item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; color: var(--wine-700); background: #fffaf0; border: 1px solid var(--line-strong); stroke-width: 1.5; }
.trust__item h3 { font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.trust__item p { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }
.trust__item a { color: var(--wine-700); font-weight: 600; text-underline-offset: 2px; }
.trust__note { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-mute); line-height: 1.6; }

/* ---------- Final CTA ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ivory);
  padding-block: clamp(72px, 11vw, 120px);
  background:
    radial-gradient(70% 90% at 15% 60%, rgba(154, 34, 57, .55), transparent 65%),
    radial-gradient(60% 70% at 100% 0%, rgba(101, 20, 38, .9), transparent 70%),
    linear-gradient(135deg, #5a1222, var(--wine-900));
}
.final::before { /* velvet folds */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(100deg, rgba(0,0,0,.0) 0 60px, rgba(0,0,0,.22) 90px, rgba(255,255,255,.04) 120px, rgba(0,0,0,0) 160px);
}
.final__grid { display: grid; gap: 2rem; align-items: center; text-align: center; }
.final__gift { position: relative; width: min(74%, 320px); margin-inline: auto; }
.gift { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation: giftFloat 6s ease-in-out infinite; }
@keyframes giftFloat { 50% { transform: translateY(-8px) rotate(-.6deg); } }
.final__pine { position: absolute; left: -22%; right: -22%; bottom: -4%; z-index: 0; }
.final__text .h2 { margin-top: .6rem; }
.final__lead { margin-top: 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(253,249,241,.88); }
html[lang="ml"] .final__lead { font-style: normal; font-size: 1rem; }
.final__text .btn { margin-top: 1.8rem; width: 100%; max-width: 380px; }
.ribbon--final { right: -6%; bottom: 0; width: 60%; height: 140px; opacity: .65; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-950); color: rgba(253, 249, 241, .72); padding: 2.8rem 0 calc(1.6rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(233, 201, 130, .25); }
.footer__top { display: grid; gap: 1.8rem; }
.footer__brand { display: flex; align-items: center; gap: 1.1rem; }
.footer__brand img { height: 46px; width: auto; }
.footer__divider { width: 1px; height: 44px; background: rgba(233, 201, 130, .45); }
.footer__campaign { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.2; color: var(--gold-200); }
html[lang="ml"] .footer__campaign { font-style: normal; font-size: .95rem; line-height: 1.5; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer__links a, .footer__links button { background: none; border: 0; padding: .35rem 0; font-size: .88rem; color: rgba(253, 249, 241, .8); text-decoration: none; min-height: 40px; }
.footer__links a:hover, .footer__links button:hover { color: var(--gold-200); }
.footer__bottom { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(233, 201, 130, .14); display: grid; gap: .6rem; font-size: .78rem; }
.footer__wish { display: inline-flex; align-items: center; gap: .45rem; color: var(--gold-300); font-family: var(--font-display); font-style: italic; font-size: 1rem; }
html[lang="ml"] .footer__wish { font-style: normal; font-size: .86rem; }
.footer__wish .ico { width: 15px; height: 15px; fill: var(--gold-300); stroke: none; }

/* ---------- Mobile floating CTA ---------- */
.mcta {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px;
  border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine-900);
  background: var(--grad-gold); background-size: 180% 100%;
  box-shadow: 0 18px 34px -12px rgba(34,5,11,.7), inset 0 1px 0 rgba(255,255,255,.6);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s;
}
html[lang="ml"] .mcta { letter-spacing: 0; text-transform: none; font-size: .95rem; font-weight: 600; }
.mcta .ico { stroke-width: 2; }
.mcta.is-visible { transform: none; opacity: 1; }

/* ---------- Contact dialog ---------- */
.contact {
  width: min(92vw, 440px); border: 0; padding: 2.2rem 1.6rem 1.8rem; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, #fffdf8, var(--cream)); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.contact::backdrop { background: rgba(34, 5, 11, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contact[open] { animation: dialogIn .45s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.contact__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-soft); }
.contact__icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--wine-800); }
.contact__icon .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.contact__title { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--wine-700); line-height: 1.2; }
html[lang="ml"] .contact__title { font-size: 1.3rem; line-height: 1.5; }
.contact__text { margin-top: .7rem; font-size: .94rem; color: var(--ink-soft); }
.contact__list { margin-top: 1.3rem; display: grid; gap: .6rem; text-align: left; }
.contact__list:empty { display: none; }
.contact__list a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .25s; }
.contact__list a:hover { border-color: var(--gold-500); }
.contact__list .ico { color: var(--wine-700); }
.contact__list small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
html[lang="ml"] .contact__list small { letter-spacing: 0; text-transform: none; font-size: .8rem; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .rule[data-reveal] { transform: scaleX(0); transform-origin: left; }
.js .rule[data-reveal].is-in { transform: none; }

/* Language swap fade */
body.is-swapping [data-i18n], body.is-swapping [data-i18n-html] { opacity: 0; }
[data-i18n], [data-i18n-html] { transition: opacity .25s var(--ease); }

/* ==========================================================================
   ≥ 600px
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__cta .btn { width: auto; }
  .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opts--single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr 1fr; }
  .member__fields { grid-template-columns: 1fr 1fr; }
  .qpanel { padding: 2rem 2rem 1.7rem; }
  .gallery__item { flex-basis: 46%; }
  .gallery__item--wide { flex-basis: 70%; }
  .gallery__item img { height: 340px; }
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
  .lang__sep { display: inline; }
}

/* ==========================================================================
   ≥ 960px — desktop
   ========================================================================== */
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav.is-scrolled { --nav-h: 70px; height: 70px; }
  .nav__logo img { height: 50px; }
  .nav.is-scrolled .nav__logo img { height: 44px; }
  .nav__links { display: flex; gap: 2rem; margin-left: auto; margin-right: 1.2rem; }
  .nav__links a {
    position: relative; text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .03em;
    color: rgba(253, 249, 241, .86); padding: .4rem 0; transition: color .25s;
  }
  html[lang="ml"] .nav__links a { font-size: .88rem; letter-spacing: 0; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-300); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
  .nav__links a:hover, .nav__links a.is-active { color: var(--gold-200); }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__right { gap: 1rem; }
  .lang { background: transparent; border-color: transparent; }
  .nav__contact { display: inline-flex; }
  .nav__burger { display: none; }
  .drawer { display: none !important; }

  .hero { display: flex; align-items: center; min-height: min(100vh, 920px); padding-top: var(--nav-h); }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; max-height: none; }
  .hero__media img { object-position: 44% 55%; }
  .hero__media {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%);
  }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(51,9,18,.55) 0%, rgba(51,9,18,.15) 40%, rgba(51,9,18,0) 60%),
      linear-gradient(180deg, rgba(51,9,18,.45) 0%, rgba(51,9,18,0) 22%, rgba(51,9,18,0) 72%, rgba(51,9,18,.75) 100%);
  }
  .hero__content { margin-top: 0; padding-block: 3rem 5rem; }
  .hero__content > * { max-width: 560px; }
  html[lang="ml"] .hero__content > * { max-width: 600px; }
  .hero__pine { width: 320px; left: -60px; bottom: -50px; }
  .ribbon--hero { width: 46%; bottom: 20px; }
  .baubles { right: auto; left: 41%; }
  .bauble--1 { height: 120px; --s: 34px; }
  .bauble--2 { left: 54px; height: 190px; --s: 46px; }
  .bauble--3 { left: 108px; height: 90px; --s: 28px; }
  .scrollcue {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-200); text-decoration: none; opacity: .8;
  }
  html[lang="ml"] .scrollcue { letter-spacing: 0; font-size: .75rem; }
  .scrollcue i { width: 1px; height: 36px; background: linear-gradient(var(--gold-300), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

  .celebration__grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .arch { width: 100%; max-width: 440px; }
  .arch__sprig { width: 190px; left: -90px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.6rem; }
  .step { flex-direction: column; padding: 2rem 1.8rem; gap: 1.2rem; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 58px; right: -1.2rem; width: .9rem; height: .9rem;
    border-top: 1px solid var(--gold-300); border-right: 1px solid var(--gold-300); transform: rotate(45deg); opacity: .7;
  }
  .step__icon { width: 70px; height: 70px; }
  .step__icon .ico { width: 30px; height: 30px; }

  .entry__grid { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .entry__intro { position: sticky; top: calc(var(--nav-h) + 40px); padding-top: 1.2rem; }
  .entry__pine--tl { width: 340px; }
  .entry__pine--br { width: 360px; }
  .qpanel { padding: 2.2rem 2.5rem 2rem; }
  .qintro { padding: 3.2rem 2.5rem 3rem; }

  .about__grid { grid-template-columns: 6fr 5fr; gap: 5rem; }
  .about__media img { aspect-ratio: 4 / 3.4; }
  .seal { width: 128px; height: 128px; right: -40px; bottom: 40px; }

  .gallery__track { padding-inline: max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter))); }
  .gallery__item { flex-basis: 30%; }
  .gallery__item--wide { flex-basis: 52%; }
  .gallery__item img { height: 400px; }

  .final__grid { grid-template-columns: 5fr 6fr; text-align: left; gap: 4rem; }
  .final__gift { width: 100%; max-width: 400px; }
  .final__text .btn { width: auto; }

  .footer__top { grid-template-columns: 1fr auto; align-items: center; }
  .mcta { display: none; }
}

@media (min-width: 1280px) {
  .hero__media { width: 62%; }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 959px) {
  .hero__media { height: 88svh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ribbon path:first-child { stroke-dashoffset: 0; }
}
