/* =========================================================
   Febin & Jithina — Wedding Invitation
   Layout + motion. All colours come from the tokens in
   themes.css (Emerald, with a Noir overlay on the ring photo).
   ========================================================= */
:root {
  --gold: #e0a060;            /* decorative gold (lines, rings, borders) */
  --gold-light: #f3c88a;

  --font-script: "Allura", "Great Vibes", cursive;
  --font-caps: "Cinzel", "Trajan Pro", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
#main:focus { outline: none; }

/* ---------- type helpers ---------- */
.script { font-family: var(--font-script); font-weight: 400; line-height: 1.05; }
.caps {
  font-family: var(--font-caps);
  font-variant: small-caps;
  letter-spacing: .04em;
  font-weight: 500;
}
.caps-light {
  font-family: var(--font-caps);
  font-variant: small-caps;
  letter-spacing: .05em;
  color: var(--ink-soft);
  font-size: 1rem;
}
.eyebrow {
  font-family: var(--font-caps);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .78rem;
}
.gold { color: var(--title); }
.small { font-size: .95rem; }
.on-dark { color: var(--on-surface-soft); }
.center { text-align: center; }

.container { width: min(1080px, 100% - 3rem); margin-inline: auto; position: relative; z-index: 2; }
.narrow { width: min(680px, 100% - 3rem); }

section { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 8.5rem) 0; }
section.slim { padding: clamp(4rem, 8vw, 6rem) 0; }

/* ---------- watercolor surfaces ---------- */
.dark { background: var(--surface); color: var(--on-surface); }
.watercolor {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 35% at 20% 25%, var(--wc-1), transparent 70%),
    radial-gradient(35% 30% at 78% 18%, var(--wc-2), transparent 70%),
    radial-gradient(45% 40% at 70% 75%, var(--wc-3), transparent 70%),
    radial-gradient(38% 32% at 15% 85%, var(--wc-4), transparent 70%),
    radial-gradient(60% 50% at 50% 50%, var(--wc-5), transparent 80%),
    var(--surface);
  animation: drift 28s var(--ease-in-out) infinite alternate;
}
.watercolor::after {
  /* paper grain */
  content: ""; position: absolute; inset: 0; opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

.paper { background: var(--paper); }
.paper.tint { background: var(--paper-tint); }

/* ---------- leaf corners ---------- */
.corner {
  position: absolute; z-index: 1; pointer-events: none;
  width: clamp(190px, 28vw, 360px); height: clamp(190px, 28vw, 360px);
  overflow: visible;
  will-change: transform, rotate;
  animation: sway 10s var(--ease-in-out) infinite alternate;
}
/* stem base sits in the corner, leaves fan inward */
.corner.tl { top: -3%; left: -3%; transform: scaleY(-1); }
.corner.br { bottom: -3%; right: -3%; transform: scaleX(-1); animation-delay: -5s; }
.corner.big { width: clamp(250px, 40vw, 560px); height: clamp(250px, 40vw, 560px); }
.corner.tl.big { top: -5%; left: -5%; }
.corner.br.big { bottom: -5%; right: -5%; }
.corner.sprig {
  width: clamp(120px, 14vw, 200px); height: clamp(120px, 14vw, 200px);
  right: -3%; top: 16%; transform: rotate(-150deg); opacity: .45 !important;
  animation-duration: 12s;
}
@media (max-width: 760px) { .corner.sprig { display: none; } }
.dark .corner, .gate .corner { opacity: var(--corner-op); }
.paper .corner { opacity: .95; }
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }

/* leaves falling across the whole site (generated in script.js) */
.leaf-rain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden;
  transition: opacity .9s ease;
}
/* only on the opening screen + front page: hidden once the hero scrolls away */
.leaf-rain.off { opacity: 0; }
.leaf-rain.off .lr, .leaf-rain.off .lr svg { animation-play-state: paused; }
.lr {
  position: absolute; top: -6vh; left: var(--x);
  width: var(--w); height: calc(var(--w) / 2);
  opacity: 0; will-change: transform, opacity;
  animation: lrFall var(--dur) linear var(--delay) infinite;
}
.lr svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  animation: lrTumble var(--spin) ease-in-out var(--delay) infinite alternate;
}
@keyframes lrFall {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  6%   { opacity: var(--op); }
  50%  { transform: translate3d(var(--drift), 55vh, 0); }
  92%  { opacity: var(--op); }
  100% { transform: translate3d(calc(var(--drift) * -.5), 116vh, 0); opacity: 0; }
}
@keyframes lrTumble {
  from { transform: rotate(var(--r0)) rotateX(0deg); }
  to   { transform: rotate(var(--r1)) rotateX(70deg); }
}

/* =========================================================
   RINGS
   ========================================================= */
.rings-svg { width: 100%; height: auto; overflow: visible; display: block; }
.rings-svg .ring-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: center; transform-box: fill-box;
}
.rings-svg .gem,
.rings-svg .spark,
.rings-svg .ring-shadow,
.rings-svg .ring-glint { opacity: 0; }
.rings-svg .gem { transform-box: fill-box; transform-origin: center; }
.rings-svg .ring { transform-box: view-box; }

/* play state */
.rings-on .ring-a .ring-stroke { animation: draw 1.6s var(--ease-out) .1s forwards; }
.rings-on .ring-b .ring-stroke { animation: draw 1.6s var(--ease-out) .55s forwards; }
.rings-on .ring-a { animation: slideA 1.4s var(--ease-out) .1s both; }
.rings-on .ring-b { animation: slideB 1.4s var(--ease-out) .55s both; }
.rings-on .ring-shadow { animation: shadowIn 1.2s ease 1s forwards; }
.rings-on .ring-glint { animation: fadeIn .6s ease 2.1s forwards, glint 4.5s ease-in-out 2.7s infinite; }
.rings-on .ring-b .ring-glint { animation-delay: 2.3s, 3.6s; }
.rings-on .gem { animation: gemPop .7s var(--ease-out) 1.9s forwards, gemGlint 3.2s ease-in-out 2.6s infinite; }
.rings-on .spark { animation: twinkle 2.4s ease-in-out infinite; }
.rings-on .s1 { animation-delay: 2.2s; }
.rings-on .s2 { animation-delay: 2.9s; }
.rings-on .s3 { animation-delay: 3.5s; }
.rings-on.float { animation: tilt3d 7s var(--ease-in-out) 2.4s infinite alternate; transform-origin: 50% 60%; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slideA { from { transform: translateX(-26px); } to { transform: translateX(0); } }
@keyframes slideB { from { transform: translateX(26px); } to { transform: translateX(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes gemPop {
  0% { opacity: 0; transform: translateY(-10px) scale(.3); }
  70% { opacity: 1; transform: translateY(1px) scale(1.15); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gemGlint {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 240, 210, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(255, 236, 200, .95)); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  45% { opacity: 1; transform: scale(1) rotate(45deg); }
  70% { opacity: 0; transform: scale(.5) rotate(90deg); }
}
.spark { transform-box: fill-box; transform-origin: center; }
@keyframes tilt3d {
  0%   { transform: perspective(700px) rotateY(0deg) rotateX(0deg) translateY(0); }
  35%  { transform: perspective(700px) rotateY(-22deg) rotateX(8deg) translateY(-4px); }
  100% { transform: perspective(700px) rotateY(20deg) rotateX(-6deg) translateY(3px); }
}
@keyframes shadowIn { from { opacity: 0; } to { opacity: .22; } }
@keyframes glint { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =========================================================
   GATE
   ========================================================= */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  color: var(--on-surface);
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(70% 60% at 30% 30%, var(--door-1), transparent 70%),
    radial-gradient(60% 60% at 80% 80%, var(--door-2), transparent 70%),
    var(--door-base);
  transition: transform 1.5s var(--ease-in-out);
  box-shadow: inset 0 0 120px rgba(var(--shadow), .2);
}
.door-left { left: 0; border-right: 1px solid var(--hairline); }
.door-right { right: 0; border-left: 1px solid var(--hairline); }
.gate-content {
  position: relative; z-index: 2; text-align: center;
  display: grid; justify-items: center; gap: 1rem;
  padding: 2rem; width: 100%; height: 100%; align-content: center;
  transition: opacity .6s ease, transform .9s var(--ease-out);
}
.gate-names { font-size: clamp(3.4rem, 11vw, 6.5rem); color: var(--title); text-shadow: 0 2px 24px var(--title-glow); }
.gate-names span { font-size: .6em; padding-inline: .1em; }
.seal {
  margin-top: 1.25rem;
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; padding: 22px;
  background: radial-gradient(circle at 35% 30%, var(--seal-1), var(--seal-2) 70%);
  border: 1px solid var(--hairline);
  box-shadow: 0 0 0 8px rgba(224, 160, 96, .12), 0 18px 40px rgba(var(--shadow), .3);
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
  animation: pulse 2.8s ease-in-out 2.5s infinite;
}
.seal:hover { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(224, 160, 96, .18), 0 22px 50px rgba(var(--shadow), .35); }
.seal:active { transform: scale(.97); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(224, 160, 96, .12), 0 18px 40px rgba(var(--shadow), .3); }
  50% { box-shadow: 0 0 0 18px rgba(224, 160, 96, 0), 0 18px 40px rgba(var(--shadow), .3); }
}
.tap-hint { font-family: var(--font-caps); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; color: var(--on-surface-soft); }

.gate.opening .seal { animation: sealSpin 1s var(--ease-in-out) forwards; }
@keyframes sealSpin { to { transform: scale(1.25) rotate(360deg); opacity: 0; } }
.gate.opening .gate-content { opacity: 0; transition-delay: .55s; }
.gate.open .door-left { transform: translateX(-101%); }
.gate.open .door-right { transform: translateX(101%); }
.gate.gone { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh; display: grid; place-items: center; padding: 6rem 0 7rem;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding-inline: 1.5rem; }
.join { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--title); }
.hero-rings { width: clamp(130px, 22vw, 190px); margin: .6rem auto .4rem; }
.hero-rings.small { width: 120px; margin-bottom: 1.8rem; }
.hero-names { display: grid; justify-items: center; font-weight: 400; }
.hero-names .name { font-size: clamp(5rem, 17vw, 9.5rem); color: var(--title); text-shadow: 0 2px 28px var(--title-glow); }
.hero-names .and { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--title-alt); margin: -.25em 0 -.15em; }
.hero-occasion { margin-top: 1.4rem; font-size: clamp(.85rem, 2.2vw, 1rem); letter-spacing: .32em; text-transform: uppercase; font-variant: normal; }

.scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: .2rem; min-width: 44px; min-height: 44px;
  text-decoration: none; color: var(--on-surface-soft);
  font-family: var(--font-caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* =========================================================
   VERSE / COUPLE
   ========================================================= */
.verse {
  font-family: var(--font-caps); font-variant: small-caps; font-weight: 600;
  color: var(--ink); font-size: clamp(1.05rem, 2.4vw, 1.3rem); letter-spacing: .03em;
}
.verse cite, .closing-verse cite {
  display: block; font-style: normal; font-weight: 400; font-size: .85em; margin-top: .4rem; opacity: .8;
}
.person { margin-top: 3.2rem; }
.person-name { font-size: clamp(3.4rem, 9vw, 4.6rem); color: var(--heading); }
.parents { color: var(--ink); font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 600; margin-top: .3rem; }
.amp { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.amp .line { height: 1px; width: min(110px, 22vw); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mini-rings { width: 74px; }
.invite-text {
  margin-top: 3.2rem; font-family: var(--font-caps); font-variant: small-caps;
  font-size: clamp(1rem, 2.3vw, 1.15rem); color: var(--ink-soft); letter-spacing: .04em; line-height: 1.75;
}
.gold-stroke {
  height: 14px; width: min(420px, 80%); margin: 2.6rem auto 0; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 1.5px) 0 0 / 6px 6px,
    linear-gradient(90deg, transparent, rgba(224,160,96,.3) 10%, var(--gold) 55%, #c07a3e 85%, transparent);
  transform: skewX(-12deg) scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) .2s;
}
.gold-stroke.in { transform: skewX(-12deg) scaleX(1); }

/* =========================================================
   SCRATCH CARD
   ========================================================= */
.section-script { font-size: clamp(3rem, 8vw, 4.4rem); color: var(--heading); margin-bottom: .6rem; }
.dark .section-script, .photo-bg .section-script { color: var(--title); text-shadow: 0 2px 22px var(--title-glow); }
.scratch {
  position: relative; margin: 2.2rem auto 1rem; width: min(440px, 100%); aspect-ratio: 2.1 / 1;
  border-radius: 16px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(var(--shadow), .28), 0 0 0 1px rgba(224, 160, 96, .5);
  touch-action: none;
}
.scratch-under {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: .2rem .8rem; color: var(--ink);
}
.sd-day { font-family: var(--font-caps); font-weight: 600; font-size: clamp(2rem, 7vw, 3rem); }
.sd-sep { font-family: var(--font-caps); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold-text); }
.sd-sub { flex-basis: 100%; text-align: center; font-family: var(--font-caps); letter-spacing: .14em; font-size: .95rem; color: var(--ink-soft); }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .8s ease; }
#scratchCanvas.done { opacity: 0; pointer-events: none; }
.link-btn {
  background: none; border: 0; cursor: pointer; padding: .7rem 1rem; min-height: 44px;
  font-family: var(--font-caps); letter-spacing: .12em; font-size: .8rem; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(224,160,96,.6);
}
.link-btn:hover { color: var(--title); }
.link-btn[hidden] { display: none; }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.4rem);
  max-width: 640px; margin: 2rem auto 2.4rem;
}
.cd {
  padding: 1.3rem .4rem 1.1rem; border-radius: 14px;
  background: linear-gradient(160deg, var(--cd-1), var(--cd-2));
  box-shadow: 0 14px 30px rgba(var(--shadow), .16), inset 0 0 0 1px rgba(224, 160, 96, .5);
  display: grid; gap: .2rem;
}
.cd-num { font-family: var(--font-caps); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.8rem); color: var(--cd-num); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-lbl { font-family: var(--font-caps); font-size: clamp(.62rem, 1.8vw, .75rem); letter-spacing: .2em; text-transform: uppercase; color: var(--cd-lbl); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px;
  padding: .75rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: var(--font-caps); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
  transition: background .25s ease, color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--shadow), .28); }
.btn.ghost { background: rgba(255, 255, 255, .6); color: var(--ghost-ink); border-color: var(--ghost-border); }
.btn.ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* =========================================================
   COUNTDOWN PHOTO BACKGROUND (ring photo)
   ========================================================= */
.photo-bg { background: var(--surface); color: var(--on-surface); padding: clamp(5rem, 10vw, 7.5rem) 0; }
.photo-bg-img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: 42% 55%;
  will-change: transform;
}
.photo-bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(var(--fade), .95) 0%, rgba(var(--fade), .68) 24%,
      rgba(var(--fade), .1) 46%, rgba(var(--fade), .15) 58%,
      rgba(var(--fade), .8) 76%, rgba(var(--fade), .97) 100%);
}
.photo-bg-inner { position: relative; z-index: 2; }
.photo-bg-gap { height: clamp(220px, 40vh, 420px); }
.photo-bg .countdown { margin-top: 0; }
.photo-bg .cd {
  background: var(--photo-cd);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(var(--shadow), .2), inset 0 0 0 1px rgba(224, 160, 96, .55);
}
.photo-bg .btn.ghost { background: var(--photo-cd); color: var(--title); border-color: var(--hairline); }
.photo-bg .btn.ghost:hover { background: var(--title); color: var(--surface); border-color: var(--title); }

/* =========================================================
   EVENTS
   ========================================================= */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2.6rem; }
.event {
  position: relative; background: var(--paper); border-radius: 20px; padding: 2.6rem 1.8rem 2.4rem;
  box-shadow: 0 20px 50px rgba(var(--shadow), .1), 0 0 0 1px rgba(var(--shadow), .08);
  display: grid; justify-items: center; gap: .35rem;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.event::before {
  content: ""; position: absolute; inset: 10px; border-radius: 14px; pointer-events: none;
  border: 1px solid rgba(224, 160, 96, .35);
}
.event:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(var(--shadow), .16), 0 0 0 1px rgba(var(--shadow), .1); }
.event-icon { width: 84px; height: 64px; display: grid; place-items: center; margin-bottom: .4rem; }
.event-icon svg { width: 100%; height: 100%; overflow: visible; }
.event-title { font-size: clamp(2.6rem, 6vw, 3.2rem); color: var(--heading); }
.event-date { font-family: var(--font-caps); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.3rem); color: var(--ink); letter-spacing: .06em; margin-top: .2rem; }
.event-date span { color: var(--gold-text); font-weight: 400; padding-inline: .15em; }
.event-time { font-size: 1.15rem; font-weight: 600; }
.venue { font-weight: 600; font-size: 1.15rem; margin-top: .6rem; color: var(--ink); }
.event .btn { margin-top: 1.4rem; }

/* ---------- QR codes on the event cards ---------- */
.qr {
  display: grid; justify-items: center; gap: .45rem; margin-top: 1.2rem;
  text-decoration: none; color: var(--ink-soft);
}
.qr img {
  width: 132px; height: 132px; padding: 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(224, 160, 96, .55), 0 10px 24px rgba(var(--shadow), .12);
  transition: transform .3s var(--ease-out);
}
.qr:hover img { transform: scale(1.04); }
.qr span { font-family: var(--font-caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }

/* =========================================================
   CLOSING
   ========================================================= */
.closing { padding-bottom: clamp(6rem, 12vw, 9rem); }
.closing-verse { font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.7; }
.closing .caps-light { margin-top: 1.8rem; font-size: 1.05rem; }
.closing-names { font-size: clamp(3.6rem, 10vw, 5.5rem); margin-top: 2.6rem; text-shadow: 0 2px 22px var(--title-glow); }

/* =========================================================
   BLESSINGS FROM SISTERS (card inside the families page)
   ========================================================= */
.blessings-card {
  position: relative; margin: 3.6rem auto 0; max-width: 600px;
  padding: clamp(2rem, 5vw, 2.8rem) clamp(1.2rem, 5vw, 2.6rem) clamp(2rem, 5vw, 2.6rem);
  background: var(--paper-tint); border-radius: 20px;
  box-shadow: 0 18px 40px rgba(var(--shadow), .08), 0 0 0 1px rgba(224, 160, 96, .45);
}
.blessings-card::before {               /* inner gold frame */
  content: ""; position: absolute; inset: 9px; border-radius: 14px; pointer-events: none;
  border: 1px solid rgba(224, 160, 96, .35);
}
.blessing-title { font-size: clamp(2.5rem, 7vw, 3.2rem); color: var(--heading); line-height: 1.1; }
.blessing-sub {
  margin-top: .35rem; font-family: var(--font-body); font-style: italic;
  font-size: 1.15rem; color: var(--ink-soft);
}
.sisters {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  gap: clamp(1rem, 4vw, 2.2rem); margin-top: 1.8rem;
}
.sister-group { display: grid; justify-items: center; gap: .25rem; }
.sister-role {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem;
  font-family: var(--font-caps); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text);
}
.sister-role::before, .sister-role::after {
  content: ""; width: 18px; height: 1px; background: rgba(224, 160, 96, .7);
}
.sister-name {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 1.6rem); line-height: 1.3; letter-spacing: .01em;
  color: var(--heading); white-space: nowrap;
}
.sister-divider { width: 1px; align-self: stretch; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
@media (max-width: 560px) {
  .sisters { grid-template-columns: 1fr; gap: 1.4rem; }
  .sister-divider { width: 110px; height: 1px; justify-self: center; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
}

/* =========================================================
   PHOTOS — gold arch frames
   ========================================================= */
.arch {
  position: relative; display: block; margin: 0; padding: 0; border: 0;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(var(--shadow), .25);
}
.arch::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border-radius: 999px 999px 12px 12px;
  border: 1.5px solid rgba(243, 200, 138, .85);
}
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }

.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.4rem, 6vw, 5rem); align-items: center;
}
.arch-lg { aspect-ratio: 4 / 5; width: min(420px, 100%); justify-self: end; }
.arch-lg.in img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.feature-text { text-align: left; }
.feature-quote {
  font-family: var(--font-body); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  line-height: 1.5; color: var(--on-surface); margin: .6rem 0 1.4rem;
}
.feature-quote cite { display: block; font-style: normal; font-family: var(--font-caps); font-size: .62em; letter-spacing: .14em; color: var(--title); margin-top: .6rem; }

.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: 2.6rem; align-items: start;
}
.shot { aspect-ratio: 2 / 3; cursor: zoom-in; }
.shot:nth-child(even) { margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.shot:hover img { transform: scale(1.05); }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; display: none; place-items: center;
}
.lightbox[open] { display: grid; animation: fadeIn .3s ease forwards; opacity: 0; }
.lightbox::backdrop { background: var(--backdrop); }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 88vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); outline: 1px solid rgba(243,200,138,.5); outline-offset: 6px;
}

/* ---------- floating buttons (music, lightbox close) ---------- */
.lb-close, .music {
  background: var(--float-bg); color: var(--float-ink);
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 30px rgba(var(--shadow), .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer;
}
.lb-close:hover, .music:hover { background: var(--float-hover); }
.lb-close {
  position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
}

/* "Play our song" — start / stop */
.music {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1.1rem .6rem .9rem;
  border-radius: 999px;
  font-family: var(--font-caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .25s var(--ease-out), background .25s ease;
  animation: fadeIn .6s ease 1.6s both; opacity: 0;
}
.music[hidden] { display: none; }
.music:hover { transform: translateY(-2px); }
.eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 100%; background: var(--title); border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.music[aria-pressed="true"] .eq { display: inline-flex; }
.music[aria-pressed="true"] .music-note { display: none; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.hero-names .reveal:nth-child(2) { transition-delay: .15s; }
.hero-names .reveal:nth-child(3) { transition-delay: .3s; }
.events .reveal:nth-child(2) { transition-delay: .15s; }
.gallery .reveal:nth-child(2) { transition-delay: .15s; }
.gallery .reveal:nth-child(3) { transition-delay: .3s; }
.gallery .reveal:nth-child(4) { transition-delay: .45s; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .arch-lg { justify-self: center; width: min(340px, 100%); }
  .feature-text { text-align: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot:nth-child(even) { margin-top: 2rem; }
  .shot:nth-child(n+3) { margin-top: -1rem; }
  .shot:nth-child(4) { margin-top: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .seal { width: 128px; height: 128px; padding: 18px; }
  .event { padding: 2.2rem 1.2rem 2rem; }
  .corner.big { width: 210px; height: 210px; }
  .hero .corner, .gate .corner { opacity: calc(var(--corner-op) * .75); }
  .music-label { display: none; }
  .music { padding: .6rem .9rem; }
}

/* ---------- 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; }
  .reveal { opacity: 1; transform: none; }
  .rings-svg .ring-stroke { stroke-dashoffset: 0; }
  .rings-svg .gem, .rings-svg .ring-glint { opacity: 1; }
  .rings-svg .ring-shadow { opacity: .22; }
  .gold-stroke { transform: skewX(-12deg); }
  .eq i { transform: scaleY(.6); }
  .leaf-rain { display: none; }
  .photo-bg-img { transform: none !important; }
}
