/* ==========================================================
   Thirumanam by Lollipop — premium edition
   Brand palette (sampled from the logo) + gold foil
   ========================================================== */
:root {
  --pw: 480px; /* invitation panel width (design px); envelope = --pw + 40 */
  --yellow: #F7B901;
  --red: #B11D1D;
  --red-deep: #7A1010;
  --maroon: #4E0A0A;
  --green: #26732E;
  --green-deep: #174A1D;
  --ivory: #FBF4E2;
  --ivory-2: #F3E6C4;
  --cream: #FBEFCB;
  --ink: #3A1A0E;
  --night: #120505;

  --gold-1: #8C6A1E;
  --gold-2: #E9C46A;
  --gold-3: #FFF2C2;
  --gold-4: #CFA346;
  --gold-solid: #D9B25A;
  --gold: linear-gradient(100deg, #8C6A1E 0%, #D9AE4F 14%, #FFF2C2 26%, #E9C46A 36%, #9C7425 50%, #E9C46A 64%, #FFF4C8 76%, #CFA346 88%, #8C6A1E 100%);

  --f-display: "Rozha One", Georgia, serif;
  --f-caps: "Cinzel", Georgia, serif;
  --f-script: "Cormorant Garamond", Georgia, serif;
  --f-calli: "Pinyon Script", cursive;
  --f-tamil: "Arima", "Latha", sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.1'%3E%3Cpath d='M28 6c6 8 6 14 0 22-6-8-6-14 0-22zM28 50c6-8 6-14 0-22-6 8-6 14 0 22zM6 28c8-6 14-6 22 0-8 6-14 6-22 0zM50 28c-8-6-14-6-22 0 8 6 14 6 22 0z'/%3E%3Ccircle cx='28' cy='28' r='3'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.06'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='56' cy='0' r='2'/%3E%3Ccircle cx='0' cy='56' r='2'/%3E%3Ccircle cx='56' cy='56' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --lining: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Crect width='44' height='44' fill='%239E1818'/%3E%3Cg fill='none' stroke='%23E9C46A' stroke-opacity='.55'%3E%3Cpath d='M22 6c5 6 5 11 0 16-5-5-5-10 0-16zM22 38c5-6 5-11 0-16-5 5-5 10 0 16zM6 22c6-5 11-5 16 0-5 5-10 5-16 0zM38 22c-6-5-11-5-16 0 5 5 10 5 16 0z'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='1.6' fill='%23F3D27E'/%3E%3C/svg%3E");

  --edge: 0 1px 0 #E6D6AC, 0 2px 0 #D8C394, 0 3px 0 #C8B07C;
  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 10px 20px -8px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--f-script);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }

/* ---------- gold foil ---------- */
@keyframes foil { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.foil {
  background: var(--gold);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: foil 7s ease-in-out infinite alternate;
}
.gold-logo-wrap { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 14px rgba(233, 196, 106, .18)); }
.gold-logo {
  display: block;
  aspect-ratio: 1361 / 460;
  background: var(--gold);
  background-size: 300% 100%;
  animation: foil 7s ease-in-out infinite alternate;
  -webkit-mask: url("assets/logo-white.png") center / contain no-repeat;
          mask: url("assets/logo-white.png") center / contain no-repeat;
}

/* silk surfaces */
.silk--maroon {
  background-color: var(--maroon);
  background-image:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .06) 38%, transparent 52%, rgba(255, 255, 255, .04) 70%, transparent 85%),
    var(--damask),
    radial-gradient(ellipse at 50% 35%, #8E1717, #5E0C0C 60%, #3A0606);
}
.silk--emerald {
  background-color: var(--green-deep);
  background-image:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .07) 38%, transparent 52%, rgba(255, 255, 255, .04) 70%, transparent 85%),
    var(--damask),
    radial-gradient(ellipse at 50% 35%, #2E8738, #1D5D24 60%, #0F3714);
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--red);
  line-height: 1.02;
  font-size: 34px;
  /* letterpress */
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(90, 10, 10, .18);
}
.display--md { font-size: 32px; }
.display--lg { font-size: clamp(42px, 6vw, 66px); }
.display--xl { font-size: clamp(40px, 6.5vw, 80px); }
.display--light { color: var(--ivory); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.caps {
  font-family: var(--f-caps);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  color: var(--green);
}
.caps--gold { color: var(--gold-2); }
.script { font-family: var(--f-script); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--ink); }
.script--sm { font-size: 15px; }
.calli { font-family: var(--f-calli); font-size: 26px; line-height: 1.15; color: var(--gold-2); }
.calli--lg { font-size: 32px; }
.ta { font-family: var(--f-tamil); font-weight: 700; color: var(--gold-4); font-size: 15px; line-height: 1.5; }
.ta--big { font-size: 44px; line-height: 1.2; }

.divider { display: flex; align-items: center; gap: 10px; width: 70%; margin: 10px auto; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-4) 30%, var(--gold-3) 50%, var(--gold-4) 70%, transparent); }
.divider span { width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-3), var(--gold-4) 50%, var(--gold-1)); box-shadow: 0 0 0 3px transparent, 0 0 0 4px var(--gold-4); }
.divider--wide { width: min(360px, 70%); }

.btn {
  display: inline-block;
  position: relative;
  font-family: var(--f-caps);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: linear-gradient(180deg, #C42626, var(--red) 50%, #8E1515);
  border: 0;
  padding: 14px 26px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--gold-4), 0 0 0 3px var(--red-deep), 0 0 0 4px var(--gold-2), 0 10px 22px -8px rgba(122, 16, 16, .7);
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 242, 194, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 6px; }
.btn--small { padding: 10px 16px; font-size: 10.5px; }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(0, 0, 0, .15); color: var(--gold-3); box-shadow: 0 0 0 1px var(--gold-4); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-4);
  background: transparent; color: var(--gold-3);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .3s, color .3s;
}
.round-btn:hover { background: var(--gold-2); color: var(--maroon); }
.round-btn:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 28px;
  background: radial-gradient(ellipse at 50% 50%, #2A0B08, var(--night) 70%);
}
.loader .gold-logo { width: min(360px, 70vw); }
.loader__bar { width: 140px; height: 1px; background: rgba(233, 196, 106, .2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--gold-2); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 3vw, 32px);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .5s, transform .5s;
  pointer-events: none;
}
.topbar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(46, 7, 7, .78);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(217, 178, 90, .5);
}
.topbar__logo .gold-logo { height: 36px; width: auto; }

/* ==========================================================
   THE INVITATION STAGE  (design px: envelope 440×600, panel 400×560)
   ========================================================== */
.invite {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(255, 170, 70, .16), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 115%, #4A120A, transparent 60%),
    linear-gradient(180deg, #0B0303, #190606 55%, #260A07);
}
.invite::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55));
}
.invite__glow {
  position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: radial-gradient(circle, rgba(255, 196, 90, .22), transparent 60%);
  pointer-events: none;
}
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx--back { z-index: 1; }
.fx--front { z-index: 7; }

.thoranam { position: absolute; top: 0; left: 0; right: 0; height: 96px; z-index: 8; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.thoranam svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* diyas */
.diyas {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: 0 4vw; pointer-events: none;
}
.diya { position: relative; width: 46px; height: 46px; }
.diya::before { /* clay lamp */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  border-radius: 4px 4px 50% 50% / 4px 4px 100% 100%;
  background: linear-gradient(180deg, #E9C46A 0 2px, #A9481C 2px, #7A2E10 70%, #4E1A08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .6);
}
.diya::after { /* glow */
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 120px; height: 120px; margin-left: -60px;
  background: radial-gradient(circle, rgba(255, 190, 80, .35), transparent 65%);
  opacity: var(--lit, 0);
  transition: opacity .6s;
}
.diya i {
  position: absolute; left: 50%; bottom: 16px; width: 10px; height: 22px; margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 18%, #FFE27A 35%, #FF9A1F 70%, rgba(255, 80, 20, 0) 100%);
  box-shadow: 0 0 12px 3px rgba(255, 170, 60, .55);
  transform-origin: 50% 100%;
  transform: scale(var(--lit, 0));
  animation: flicker var(--d, 1.4s) ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { rotate: -3deg; scale: 1 1; }
  40% { rotate: 2deg; scale: .94 1.06; }
  100% { rotate: -1deg; scale: 1.04 .95; }
}

.intro { position: absolute; inset: 0; z-index: 3; }
.scene {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--pw) + 40px); height: 600px;
  margin: -300px 0 0 calc((var(--pw) + 40px) / -2);
  transform-origin: 50% 50%;
}

/* --- envelope --- */
.env-back, .env-pocket, .env-flap { position: absolute; inset: 0; }
.env-back {
  z-index: 1;
  border-radius: 4px;
  background: var(--lining);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(233, 196, 106, .4), inset 0 20px 40px rgba(0, 0, 0, .45);
}
.env-pocket { z-index: 3; filter: drop-shadow(0 -3px 4px rgba(0, 0, 0, .35)); }
.env-pocket svg, .env-flap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.env-address {
  position: absolute; left: 0; right: 0; bottom: 70px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.calli--env { font-size: 40px; color: transparent; background: var(--gold); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: foil 7s ease-in-out infinite alternate; padding: 0 8px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }

.env-flap {
  z-index: 4;
  height: 340px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4));
}
.env-flap__lining { opacity: 0; }

.env-seal {
  position: absolute; z-index: 5;
  left: 50%; top: 340px;
  width: 104px; height: 104px;
  margin: -52px 0 0 -52px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
}
.seal-half { position: absolute; inset: 0; }
.seal-half svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal-half--l { clip-path: polygon(0 0, 54% 0, 47% 22%, 55% 41%, 46% 60%, 54% 80%, 48% 100%, 0 100%); }
.seal-half--r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 48% 100%, 54% 80%, 46% 60%, 55% 41%, 47% 22%); }

/* --- card / tri-fold --- */
.card-wrap {
  position: absolute; z-index: 2;
  left: 20px; top: 20px;
  width: var(--pw); height: 560px;
  perspective: 2600px;
}
.trifold { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flap { position: absolute; top: 0; width: var(--pw); height: 560px; transform-style: preserve-3d; }
.flap--left { right: 100%; transform-origin: 100% 50%; }
.flap--right { left: 100%; transform-origin: 0 50%; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face--out { transform: rotateY(180deg); }

.panel {
  position: absolute; inset: 0;
  padding: 36px 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    var(--noise),
    radial-gradient(ellipse at 30% 10%, rgba(255, 255, 255, .8), transparent 60%),
    linear-gradient(170deg, #FFFBEF, var(--ivory) 55%, #F2E4C0);
  box-shadow: var(--edge), var(--shadow-card);
  overflow: hidden;
}
.panel::before, .panel::after { content: ""; position: absolute; pointer-events: none; }
/* gold foil double frame */
.panel::before { inset: 12px; border: 1.5px solid var(--gold-4); box-shadow: inset 0 0 0 1px rgba(255, 242, 194, .6); }
.panel::after { inset: 18px; border: .75px solid rgba(207, 163, 70, .7); }
.panel--center { box-shadow: var(--edge), var(--shadow-card), inset 8px 0 12px -10px rgba(90, 40, 0, .45), inset -8px 0 12px -10px rgba(90, 40, 0, .45); }

.corner { position: absolute; width: 38px; height: 38px; z-index: 1; }
.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.corner.br { bottom: 8px; right: 8px; transform: scale(-1); }

.arch { position: absolute; top: 30px; left: calc((var(--pw) - 300px) / 2); width: 300px; height: 96px; }
.panel--center { gap: 3px; padding-top: 64px; }
.panel--center .ta--top { font-size: 14px; }
.panel__logo { width: 250px; margin: 14px 0 6px; }
.panel--center .display { font-size: 32px; margin: 4px 0 2px; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 2px; }
.details div { border-left: 1px solid rgba(207, 163, 70, .55); padding: 0 4px; }
.details div:first-child { border-left: 0; }
.details dt { font-family: var(--f-caps); font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.details dd { font-family: var(--f-script); font-style: italic; font-size: 14px; line-height: 1.2; margin-top: 2px; }
.caps--foot { margin-top: auto; font-size: 7.5px; letter-spacing: .14em; color: var(--green); }

.panel--left .display, .panel--right .display { margin-top: 2px; }
.services { display: grid; gap: 10px; width: 100%; text-align: left; margin-top: 4px; }
.services li { position: relative; padding-left: 20px; }
.services li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-3), var(--gold-4) 50%, var(--gold-1));
}
.services h3 { font-family: var(--f-caps); font-weight: 700; font-size: 12px; letter-spacing: .06em; line-height: 1.3; color: var(--green-deep); }
.services p, .steps p { font-size: 15px; line-height: 1.25; }

.steps { display: grid; gap: 12px; width: 100%; text-align: left; margin: 4px 0 auto; position: relative; }
.steps::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; border-left: 1px dashed var(--gold-4); }
.steps li { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.steps__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-caps); font-weight: 700; font-size: 12px;
  color: var(--gold-3);
  background: radial-gradient(circle at 35% 30%, #C42626, var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--gold-4), 0 3px 6px rgba(0, 0, 0, .2);
}
.steps h3 { font-family: var(--f-display); font-weight: 400; font-size: 19px; color: var(--red); }
.panel--right .btn { margin-top: 12px; }

/* covers */
.cover, .inner-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: var(--edge), var(--shadow-card);
}
.cover::before, .inner-cover::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid var(--gold-4); pointer-events: none; }
.cover::after, .inner-cover::after { content: ""; position: absolute; inset: 21px; border: .75px solid rgba(233, 196, 106, .55); pointer-events: none; }
.cover { gap: 14px; padding: 50px 40px 90px; }
.cover .ta { font-size: 17px; }
.cover__logo { width: calc(var(--pw) - 120px); }
.cover__logo .gold-logo { width: 100%; }
.mandala { width: 150px; height: 150px; }
.mandala--sm { width: 60px; height: 60px; opacity: .9; }
.inner-cover { gap: 16px; padding: 40px; }
.inner-cover .calli { font-size: 30px; color: var(--gold-3); }

/* belly band */
.belly {
  position: absolute; z-index: 3;
  left: -5px; right: -5px; top: 418px; height: 54px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%, rgba(0, 0, 0, .25)),
    linear-gradient(90deg, #174A1D, #2E8738 30%, #1F6A28 55%, #2E8738 75%, #174A1D);
  box-shadow: 0 0 0 1px var(--gold-4), inset 0 3px 0 -1px var(--gold-2), inset 0 -3px 0 -1px var(--gold-2), 0 6px 12px rgba(0, 0, 0, .4);
  border-radius: 2px;
}
.belly__medal {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFF2C2, #E9C46A 30%, #B88A2E 65%, #7A5A16);
  box-shadow: 0 0 0 3px #7A5A16, 0 0 0 5px #E9C46A, 0 8px 14px rgba(0, 0, 0, .45), inset 0 -4px 8px rgba(0, 0, 0, .25);
}
.belly__medal::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(90, 60, 10, .55); }
.belly__medal span { font-family: var(--f-tamil); font-weight: 700; font-size: 30px; color: #7A5A16; text-shadow: 0 1px 0 rgba(255, 242, 194, .8), 0 -1px 0 rgba(60, 40, 0, .4); }

/* petals */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 14px; height: 9px; border-radius: 70% 0 70% 0; opacity: .95; }

/* scroll hint */
.scroll-hint {
  position: absolute; left: 50%; bottom: 78px; z-index: 10;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-caps); font-weight: 600; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-2);
  white-space: nowrap;
}
.scroll-hint i { width: 22px; height: 34px; border: 1px solid var(--gold-4); border-radius: 12px; position: relative; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold-3);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================
   INSERTS
   ========================================================== */
.inserts { position: relative; z-index: 1; }
.band { position: relative; }
.band--ivory { background: var(--noise), linear-gradient(180deg, #F6EBD0, var(--ivory) 20%, var(--ivory) 80%, #F3E4BE); }
.band--yellow { background: var(--yellow) url("assets/paper.jpg") repeat; background-size: 900px; }
.band--ivory::before, .band--yellow::before { /* gold hairline join */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3), var(--gold-4), var(--gold-3), var(--gold-1));
}
.section { padding: clamp(90px, 12vw, 150px) 20px; max-width: 1180px; margin: 0 auto; }
.section__head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: clamp(44px, 6vw, 80px); }
.section__head .ta { font-size: 19px; }
.section__head .script { font-size: 22px; max-width: 30ch; }

/* gallery — gold framed prints */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.print { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.print:nth-child(3n+2) { margin-top: 70px; }
.print:hover { transform: translateY(-8px); }
.print__frame {
  padding: 8px;
  background: linear-gradient(135deg, #8C6A1E, #F3D27E 25%, #FFF2C2 40%, #B88A2E 60%, #F3D27E 80%, #8C6A1E);
  box-shadow: 0 30px 50px -24px rgba(60, 20, 0, .6), 0 6px 14px rgba(60, 20, 0, .2);
}
.print__img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border: 10px solid var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(184, 138, 46, .6);
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .07) 38%, transparent 52%),
    var(--damask),
    radial-gradient(ellipse at 50% 35%, #8E1717, #5E0C0C 60%, #3A0606);
}
.print:nth-child(even) .print__img {
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .07) 38%, transparent 52%),
    var(--damask),
    radial-gradient(ellipse at 50% 35%, #2E8738, #1D5D24 60%, #0F3714);
}
.print__img::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: 50%; aspect-ratio: 1361 / 460; transform: translateY(-50%);
  background: var(--gold); background-size: 300% 100%;
  -webkit-mask: url("assets/logo-white.png") center / contain no-repeat; mask: url("assets/logo-white.png") center / contain no-repeat;
  opacity: .9;
}
.print__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.print:hover .print__img img { transform: scale(1.06); }
.print figcaption { font-family: var(--f-calli); font-size: 32px; color: var(--red); text-align: center; padding: 16px 0 0; }

/* testimonials — single luxurious quote */
.band--maroon { color: var(--ivory); border-top: 1px solid var(--gold-4); border-bottom: 1px solid var(--gold-4); }
.band--maroon::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217, 178, 90, .35); pointer-events: none; }
.quotes { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.quotes__mark { display: block; font-family: var(--f-script); font-weight: 600; font-size: 160px; line-height: .8; height: 80px; }
.quotes__track { display: grid; }
.quote {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .9s ease, transform .9s ease, visibility .9s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote p { font-family: var(--f-script); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.35; color: var(--ivory); }
.quote footer { margin-top: 28px; display: grid; gap: 4px; justify-items: center; }
.quote .calli { font-size: 40px; color: var(--gold-2); }
.quotes__nav { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.quotes__dots { display: flex; gap: 10px; }
.quotes__dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--gold-4); background: transparent; transform: rotate(45deg); cursor: pointer; transition: background .3s; }
.quotes__dots button[aria-selected="true"] { background: var(--gold-2); }

/* RSVP */
.rsvp {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px);
  background:
    var(--noise),
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .85), transparent 55%),
    linear-gradient(170deg, #FFFBEF, var(--ivory) 55%, #F2E4C0);
  padding: clamp(46px, 6vw, 80px);
  box-shadow: var(--edge), 0 40px 80px -30px rgba(90, 40, 0, .6);
}
.rsvp::before, .rsvp::after { content: ""; position: absolute; pointer-events: none; }
.rsvp::before { inset: 14px; border: 1.5px solid var(--gold-4); }
.rsvp::after { inset: 21px; border: .75px solid rgba(207, 163, 70, .7); }
.rsvp .corner { width: 54px; height: 54px; }
.rsvp__intro { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.rsvp__intro .ta { font-size: 18px; }
.rsvp__intro .script { font-size: 23px; }
.contact { margin-top: 18px; display: grid; gap: 14px; }
.contact li { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; gap: 10px; font-size: 19px; border-bottom: 1px solid rgba(207, 163, 70, .4); padding-bottom: 10px; }
.contact a { text-decoration: none; color: var(--red); font-weight: 600; }
.contact a:hover { text-decoration: underline; text-decoration-color: var(--gold-4); }

.rsvp__form { display: grid; gap: 18px; position: relative; z-index: 1; }
.rsvp__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rsvp__form label {
  display: grid; gap: 4px;
  font-family: var(--f-caps); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--green);
}
.rsvp__form input, .rsvp__form select, .rsvp__form textarea {
  font: 500 19px/1.3 var(--f-script);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--gold-4);
  padding: 6px 2px;
  border-radius: 0;
  width: 100%;
  resize: vertical;
  appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.rsvp__form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B88A2E' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.rsvp__form input::placeholder, .rsvp__form textarea::placeholder { color: rgba(58, 26, 14, .38); font-style: italic; }
.rsvp__form :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.rsvp__form .btn { margin-top: 8px; }

/* footer */
.footer {
  position: relative;
  color: var(--ivory);
  text-align: center;
  padding: 80px 20px 50px;
  display: grid; gap: 16px; justify-items: center;
  border-top: 1px solid var(--gold-4);
}
.footer::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217, 178, 90, .35); pointer-events: none; }
.footer__logo { width: min(340px, 78vw); }
.footer__logo .gold-logo { width: 100%; }

/* reveal (JS adds .is-in) */
.reveal { opacity: 0; translate: 0 50px; transition: opacity 1.1s ease, translate 1.1s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px), (max-height: 520px) {
  :root { --pw: 400px; }
}
/* wider desktop panels: give the content more presence */
@media (min-width: 961px) and (min-height: 521px) {
  .panel { padding: 40px 44px; }
  .panel--center { padding-top: 66px; }
  .panel__logo { width: 290px; }
  .panel--center .display { font-size: 37px; }
  .panel--center .script { font-size: 19px; }
  .details dd { font-size: 15px; }
  .caps--foot { font-size: 8.5px; }
  .display--md { font-size: 36px; }
  .services { gap: 16px; margin-top: 10px; }
  .services h3 { font-size: 13.5px; }
  .services p, .steps p { font-size: 16.5px; }
  .steps { gap: 22px; margin-top: 10px; }
  .steps h3 { font-size: 21px; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .print:nth-child(n) { margin-top: 0; }
  .print:nth-child(even) { margin-top: 50px; }
  .rsvp { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gallery { gap: 18px; }
  .print__frame { padding: 5px; }
  .print__img { border-width: 6px; }
  .print figcaption { font-size: 24px; }
  .rsvp { padding: 50px 28px; }
  .rsvp .corner { width: 40px; height: 40px; }
  .rsvp__form .row { grid-template-columns: 1fr; }
  .contact li { grid-template-columns: 1fr; gap: 2px; font-size: 18px; }
  .topbar__logo .gold-logo { height: 28px; }
  .diya { transform: scale(.8); }
  .scroll-hint { bottom: 70px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  .foil, .gold-logo, .calli--env { animation: none; }
  .diya i { animation: none; }
}
