:root {
  --paper: #f6f1e8;
  --paper-soft: #eee5d8;
  --ivory: #fbf8ef;
  --latte: #c8b49f;
  --mocha: #7b6658;
  --ink: #5e5149;
  --muted: #8f8076;
  --line: rgba(106, 89, 76, 0.18);
  --shadow: 0 26px 80px rgba(68, 52, 41, 0.12);
  --text-strong: #544338;
  --card-wash: rgba(255,255,255,.92);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #6d584b; }
body {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(90deg, #6c5648, #7b6454 50%, #6c5648);
  min-height: 100vh;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(91,75,64,.12) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
}

/* ---------- Opening envelope ---------- */
.envelope-scene {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.96), rgba(244,235,225,.92) 32%, rgba(212,194,177,.84) 100%),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  transition: opacity .9s ease, visibility .9s ease, transform .9s ease;
}

.envelope-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 30%, rgba(144, 112, 88, .08) 72%, rgba(98, 72, 53, .12) 100%);
  pointer-events: none;
}

.envelope-scene.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18vh) scale(1.02);
}

.envelope-wrap.custom-envelope {
  position: relative;
  width: min(458px, 90vw);
  aspect-ratio: 960 / 1600;
  display: grid;
  place-items: center;
  cursor: pointer;
  perspective: 1800px;
}

.envelope-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 80px rgba(82, 61, 45, .22));
  animation: envelopeFloat 3.6s ease-in-out infinite;
}

.envelope-base-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .7s ease, filter .9s ease;
}

.invitation-peek {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 72%;
  height: 62%;
  transform: translate(-50%, -8%) scale(.92);
  opacity: 0;
  transition: transform 1s cubic-bezier(.2,.9,.2,1), opacity .7s ease;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.peek-card {
  width: 100%;
  min-height: 100%;
  padding: 46px 28px 30px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,252,247,.98), rgba(248,242,233,.98)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  box-shadow: 0 14px 40px rgba(91, 72, 58, .16);
  border: 1px solid rgba(122, 100, 80, .12);
  text-align: center;
}

.peek-logo {
  width: 96px;
  opacity: .68;
  margin: 0 auto 20px;
  display: block;
}

.peek-card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(92, 73, 60, .78);
}

.flap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1), opacity .9s ease, filter .9s ease;
}

.flap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flap-top {
  clip-path: polygon(0 0, 100% 0, 50% 54%);
  transform-origin: 50% 0%;
}

.flap-bottom {
  clip-path: polygon(0 100%, 100% 100%, 50% 54%);
  transform-origin: 50% 100%;
}

.seal-pulse {
  position: absolute;
  left: 50%;
  top: 50.6%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,171,144,.22) 0, rgba(201,171,144,.08) 45%, transparent 70%);
  filter: blur(6px);
  animation: pulseGlow 2.5s ease-in-out infinite;
  pointer-events: none;
}

.tap-hotspot {
  position: absolute;
  left: 50%;
  bottom: 13.5%;
  transform: translateX(-50%);
  color: rgba(171,145,119,.92);
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: .08em;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
  opacity: 0;
  transition: opacity .25s ease;
}

.tap-hotspot span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,251,245,.26);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(194,168,141,.32);
}

.tap-hotspot span::before {
  content: '⌃';
  font-size: 15px;
  opacity: .9;
}

.envelope-wrap.custom-envelope:hover .envelope-stage,
.envelope-wrap.custom-envelope:focus-visible .envelope-stage {
  transform: translateY(-6px) rotateX(3deg) rotateY(-2deg);
}

.envelope-wrap.custom-envelope:hover .tap-hotspot,
.envelope-wrap.custom-envelope:focus-visible .tap-hotspot {
  opacity: 1;
}

.envelope-wrap.custom-envelope.open .envelope-stage {
  animation: none;
}

.envelope-wrap.custom-envelope.open .seal-pulse,
.envelope-wrap.custom-envelope.open .tap-hotspot {
  opacity: 0;
  animation: none;
}

.envelope-wrap.custom-envelope.open .flap-top {
  transform: rotateX(-165deg) translateY(-1%);
  filter: brightness(1.02);
}

.envelope-wrap.custom-envelope.open .flap-bottom {
  transform: rotateX(58deg) translateY(34%);
  opacity: .84;
}

.envelope-wrap.custom-envelope.open .envelope-base-img {
  transform: scale(.985);
  opacity: .42;
  filter: blur(1.8px);
}

.envelope-wrap.custom-envelope.open .invitation-peek {
  opacity: 1;
  transform: translate(-50%, -20%) scale(1.04);
}

@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); opacity: .56; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: .95; }
}

@media (max-width: 520px) {
  .tap-hotspot { opacity: .96; font-size: 16px; }
  .tap-hotspot span { padding: 8px 13px; }
  .seal-pulse { width: 100px; height: 100px; }
  .peek-card { padding-top: 38px; }
}

/* ---------- Phone-like invitation ---------- */
.phone-shell {
  position: relative;
  width: min(100%, 540px);
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.78)),
    url('assets/paper-texture-lite.jpg');
  background-attachment: fixed;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 80px rgba(33,22,16,.38);
  transition: transform 1.25s cubic-bezier(.2,.9,.2,1), opacity 1.1s ease, filter 1.1s ease;
  will-change: transform, opacity;
}

.phone-shell.pre-open {
  opacity: 0;
  transform: translateY(20vh) scale(.985);
  filter: blur(3px);
  pointer-events: none;
}

.phone-shell.reveal-up {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.language-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 9px 16px;
  background: rgba(111, 89, 75, .96);
  color: #fff8ef;
  box-shadow: 0 6px 24px rgba(48,34,25,.12);
}
.language-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}
.language-buttons { display: flex; gap: 8px; }
.lang-btn {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff8ef;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: .25s ease;
}
.lang-btn.active,
.lang-btn:hover { background: #fff8ef; color: #6d5648; }

.panel {
  position: relative;
  min-height: calc(100vh - 52px);
  padding: 62px 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-panel {
  min-height: calc(100vh - 52px);
  padding: 0;
  color: #5d5048;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url('assets/hero-watercolor.svg');
  background-size: cover;
  background-position: center;
  opacity: .14;
  filter: saturate(.58) brightness(1.08);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(251,249,246,.93), rgba(248,242,236,.97)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  background-blend-mode: screen;
  opacity: .985;
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 74px 34px 62px;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.eyebrow,
.date-line,
.venue-line,
.meal-line {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  color: rgba(84,67,56,.92);
}
.main-logo {
  width: 152px;
  max-width: 45vw;
  margin: 26px 0 26px;
  opacity: .68;
  mix-blend-mode: multiply;
}
h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .11em;
  font-size: clamp(48px, 11vw, 68px);
  line-height: .98;
  text-transform: uppercase;
  color: var(--text-strong);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
h1 span { display: block; }
h1 em {
  display: block;
  font-size: .72em;
  line-height: .9;
  font-style: italic;
  letter-spacing: 0;
}
.script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: .08em;
  margin: 28px 0 22px;
  color: rgba(84,67,56,.86);
}
.thin-line {
  width: 92px;
  height: 1px;
  background: rgba(92,76,65,.34);
  margin: 4px 0 28px;
}
.venue-line { letter-spacing: .18em; line-height: 1.7; margin-bottom: 7px; color: rgba(82,68,59,.88); }
.meal-line {
  margin: 0 0 32px;
  font-size: 10.5px;
  letter-spacing: .18em;
  line-height: 1.7;
  color: rgba(128, 91, 29, .86);
}
.scroll-cue { color: rgba(88,70,59,.58); text-decoration: none; font-size: 26px; animation: float 1.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px); } }

.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.corner-frame::before {
  inset: 34px 24px;
  border: 1px solid rgba(112, 91, 77, .18);
  border-radius: 42px;
  opacity: .95;
}
.corner-frame::after {
  inset: 46px 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, transparent 0 20px, rgba(122,99,84,.24) 20px 21px, transparent 22px) top left/78px 78px no-repeat,
    radial-gradient(circle at top right, transparent 0 20px, rgba(122,99,84,.24) 20px 21px, transparent 22px) top right/78px 78px no-repeat,
    radial-gradient(circle at bottom left, transparent 0 20px, rgba(122,99,84,.24) 20px 21px, transparent 22px) bottom left/78px 78px no-repeat,
    radial-gradient(circle at bottom right, transparent 0 20px, rgba(122,99,84,.24) 20px 21px, transparent 22px) bottom right/78px 78px no-repeat,
    linear-gradient(rgba(122,99,84,.20), rgba(122,99,84,.20)) top 22px center/calc(100% - 120px) 1px no-repeat,
    linear-gradient(rgba(122,99,84,.20), rgba(122,99,84,.20)) bottom 22px center/calc(100% - 120px) 1px no-repeat,
    linear-gradient(90deg, rgba(122,99,84,.20), rgba(122,99,84,.20)) left center/1px calc(100% - 120px) no-repeat,
    linear-gradient(90deg, rgba(122,99,84,.20), rgba(122,99,84,.20)) right center/1px calc(100% - 120px) no-repeat;
  opacity: .58;
}

.paper-section,
.countdown-panel,
.final-panel {
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.84)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
}

.paper-section::before,
.countdown-panel::before,
.final-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.78), transparent 52%);
  pointer-events: none;
}

.paper-card {
  position: relative;
  width: min(100%, 406px);
  padding: 54px 44px;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(249,244,237,.92)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  border: 1px solid rgba(98,78,64,.16);
  box-shadow: 0 22px 60px rgba(68, 52, 41, 0.11);
  color: var(--text-strong);
}
.deckled {
  clip-path: polygon(1% 2%, 98% 0, 99% 7%, 98% 16%, 100% 28%, 98% 42%, 99% 55%, 97% 70%, 99% 88%, 97% 99%, 80% 98%, 60% 100%, 44% 98%, 28% 100%, 10% 98%, 2% 99%, 0 88%, 2% 72%, 0 58%, 1% 43%, 0 30%, 2% 16%);
}
.paper-card::before,
.paper-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.paper-card::before {
  inset: 10px;
  background:
    url('assets/frame-corner-tl.svg') top left/72px 72px no-repeat,
    url('assets/frame-corner-tr.svg') top right/72px 72px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/72px 72px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/72px 72px no-repeat,
    url('assets/frame-flourish.svg') top center/150px 24px no-repeat,
    url('assets/frame-flourish.svg') bottom center/150px 24px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) top 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) bottom 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) left center/1px calc(100% - 138px) no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) right center/1px calc(100% - 138px) no-repeat;
  opacity: .42;
}
.paper-card::after {
  inset: 28px;
  border: 1px solid rgba(118,96,81,.10);
  border-radius: 16px;
}
.ornament-line,
.ornament-wide {
  width: 200px;
  height: 34px;
  margin: 0 auto 28px;
  opacity: .42;
  background:
    radial-gradient(circle at 50% 50%, var(--mocha) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 12%, var(--line) 12% 46%, transparent 46% 54%, var(--line) 54% 88%, transparent 88%),
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, var(--line) 43% 44%, transparent 45%);
}
.ornament-wide { width: min(310px, 72vw); margin-bottom: 42px; }
.ornament-wide.bottom { margin: 48px auto 0; transform: scaleY(-1); }

.paper-card h2,
.section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: #6a5548;
}
.paper-card h2, .section-heading h2, .section-heading p, .section-heading span, .paper-card p, .info-cards p, .info-cards em, .location-card h3, .venue-box em, .venue-box strong, .final-panel h2, .quote {
  position: relative;
  z-index: 1;
}
.paper-card p {
  margin: 0 auto;
  max-width: 280px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(83,68,58,.94);
}
.section-heading {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.section-heading p,
.section-heading span {
  display: block;
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 25px;
  color: #745d4f;
}
.section-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: .34em;
  font-style: normal;
  text-transform: uppercase;
}
.section-heading span {
  max-width: 360px;
  margin: 22px auto 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted);
}

.hand-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 11vw, 64px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(86,70,60,.88);
  transform: rotate(-2deg);
}
.counter {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  width: min(100%, 440px);
  margin: 44px auto 0;
  text-align: center;
}
.counter strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 8vw, 50px);
  font-weight: 400;
  letter-spacing: .16em;
  color: #4e3f35;
}
.counter span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--muted);
  font-weight: 600;
}
.counter i {
  color: rgba(99,82,69,.35);
  font-size: 28px;
  font-style: normal;
  margin-bottom: 34px;
}

.calendar-card { padding: 38px 31px 30px; }
.calendar-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.calendar-head strong,
.calendar-note {
  letter-spacing: .16em;
  font-size: 14px;
  color: rgba(91,77,67,.82);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.week span {
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(113,96,82,.58);
  font-weight: 600;
  padding: 8px 0;
}
.dates span {
  min-height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: rgba(82,67,58,.86);
}
.dates .selected {
  width: 38px;
  height: 38px;
  min-height: 38px;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  border: 1px solid rgba(93,77,65,.36);
  background: rgba(124, 105, 90, .08);
  font-weight: 600;
}
.calendar-note { margin: 25px 0 0 !important; font-family: var(--font-sans) !important; font-style: normal !important; font-size: 12px !important; max-width: none !important; }

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(100%, 460px);
  margin-top: 34px;
}
.info-cards article {
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(246,239,229,.25)),
    url('assets/paper-texture-lite.jpg');
  border: 1px solid rgba(97,80,68,.12);
  padding: 26px 12px 22px;
  text-align: center;
  box-shadow: 0 15px 36px rgba(72,51,37,.08);
}
.info-cards .meal-card {
  grid-column: 1 / -1;
}
.info-cards .icon { display: block; font-size: 24px; margin-bottom: 11px; color: var(--mocha); }
.info-cards strong { display: block; font-size: 12px; letter-spacing: .20em; margin-bottom: 14px; color: var(--mocha); }
.info-cards p { margin: 0; font-family: var(--font-serif); font-size: 17px; }
.info-cards em { display: block; margin-top: 5px; font-family: var(--font-serif); color: var(--muted); }

.location-card h3 {
  margin: 7px 0 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: .16em;
}
.pin { font-size: 35px; color: var(--mocha); margin-bottom: 8px; }
.venue-box {
  margin: 26px auto;
  min-height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(97,80,68,.12);
  background: rgba(255,255,255,.22);
}
.venue-box em { font-family: var(--font-serif); color: var(--muted); }
.venue-box strong { display: block; margin-top: 7px; letter-spacing: .16em; font-size: 12px; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 4px;
  background: #6f5849;
  color: #fff8ef;
  text-decoration: none;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(83,62,47,.15);
}

.rsvp-card { text-align: left; padding: 38px 28px; }
.rsvp-card label span,
.rsvp-card legend {
  display: block;
  margin: 0 0 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(92,77,67,.88);
}
.rsvp-card input[type='text'],
.rsvp-card textarea,
.rsvp-card select {
  width: 100%;
  border: 1px solid rgba(105,86,72,.18);
  border-radius: 4px;
  background: rgba(255,255,255,.28);
  padding: 17px 15px;
  font: 500 14px var(--font-sans);
  color: var(--text-strong);
  outline: none;
  margin-bottom: 28px;
}
.rsvp-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(105,86,72,.72) 50%),
    linear-gradient(135deg, rgba(105,86,72,.72) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.rsvp-card textarea { resize: vertical; min-height: 100px; }
.rsvp-card input::placeholder,
.rsvp-card textarea::placeholder { color: rgba(116,101,91,.55); }
.rsvp-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label {
  border: 1px solid rgba(105,86,72,.18);
  border-radius: 4px;
  min-height: 54px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(81,67,57,.82);
  background: rgba(255,255,255,.22);
  cursor: pointer;
}
.choice-row input:checked + label {
  background: #6f5849;
  color: #fff8ef;
  border-color: #735c4d;
}
.form-note {
  margin: 16px 0 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  color: rgba(112,96,84,.68) !important;
  text-align: center;
  max-width: none !important;
}

.final-panel { text-align: center; }
.footer-logo { width: 148px; opacity: .65; mix-blend-mode: multiply; }
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(112,95,83,.78);
  margin: 42px auto 28px;
}
.final-panel h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .32em;
  font-size: 28px;
}
.final-panel small {
  display: block;
  margin-top: 48px;
  letter-spacing: .22em;
  font-size: 11px;
  color: rgba(110,93,80,.7);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 560px) {
  .phone-shell { width: 100%; box-shadow: none; }
  .panel { padding: 54px 24px; }
  .language-bar { padding-left: 12px; padding-right: 12px; }
  .language-title { font-size: 10px; letter-spacing: .16em; }
  .lang-btn { padding: 7px 10px; font-size: 10px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .info-cards { gap: 12px; }
  .info-cards article { padding-left: 8px; padding-right: 8px; }
  .paper-card { padding-left: 30px; padding-right: 30px; }
  .counter { gap: 6px; }
  .counter i { font-size: 20px; }
}

.info-cards article, .venue-box, .rsvp-card input[type='text'], .rsvp-card textarea, .choice-row label {
  background-color: rgba(255,255,255,.42);
}
.info-cards article, .venue-box {
  position: relative;
}
.info-cards article::after, .venue-box::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(117,97,82,.10);
  pointer-events: none;
}
.hero-content::before {
  content: '';
  position: absolute;
  inset: 34px 22px 26px;
  background:
    url('assets/frame-corner-tl.svg') top left/78px 78px no-repeat,
    url('assets/frame-corner-tr.svg') top right/78px 78px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/78px 78px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/78px 78px no-repeat,
    url('assets/frame-flourish.svg') top center/180px 28px no-repeat,
    url('assets/frame-flourish.svg') bottom center/180px 28px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) top 14px center/calc(100% - 160px) 1px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) bottom 14px center/calc(100% - 160px) 1px no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) left center/1px calc(100% - 160px) no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) right center/1px calc(100% - 160px) no-repeat;
  opacity: .80;
  pointer-events: none;
}
.hero-content > * { position: relative; z-index: 1; }


.countdown-panel .reveal {
  position: relative;
  width: min(100%, 430px);
  padding: 78px 34px;
  background:
    linear-gradient(rgba(255,255,255,.90), rgba(249,244,237,.94)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  box-shadow: 0 22px 60px rgba(68, 52, 41, 0.11);
}
.countdown-panel .reveal::before {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    url('assets/frame-corner-tl.svg') top left/72px 72px no-repeat,
    url('assets/frame-corner-tr.svg') top right/72px 72px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/72px 72px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/72px 72px no-repeat,
    url('assets/frame-flourish.svg') top center/150px 24px no-repeat,
    url('assets/frame-flourish.svg') bottom center/150px 24px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) top 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) bottom 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) left center/1px calc(100% - 138px) no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) right center/1px calc(100% - 138px) no-repeat;
  opacity: .40;
  pointer-events: none;
}
.countdown-panel .reveal > * { position: relative; z-index: 1; }
.calendar-card,
.location-card,
.rsvp-card,
.paper-section .paper-card,
.final-panel .reveal {
  backdrop-filter: blur(0px);
}
.info-cards article {
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(249,244,237,.90)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  border: 1px solid rgba(97,80,68,.13);
}
.info-cards article::before {
  content: '';
  position: absolute;
  inset: 6px;
  background:
    url('assets/frame-corner-tl.svg') top left/46px 46px no-repeat,
    url('assets/frame-corner-tr.svg') top right/46px 46px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/46px 46px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/46px 46px no-repeat,
    url('assets/frame-flourish.svg') top center/94px 18px no-repeat,
    url('assets/frame-flourish.svg') bottom center/94px 18px no-repeat,
    linear-gradient(rgba(128,108,93,.16), rgba(128,108,93,.16)) top 9px center/calc(100% - 92px) 1px no-repeat,
    linear-gradient(rgba(128,108,93,.16), rgba(128,108,93,.16)) bottom 9px center/calc(100% - 92px) 1px no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.16), rgba(128,108,93,.16)) left center/1px calc(100% - 92px) no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.16), rgba(128,108,93,.16)) right center/1px calc(100% - 92px) no-repeat;
  opacity: .18;
  pointer-events: none;
}
.location-card,
.rsvp-card,
.calendar-card {
  box-shadow: 0 22px 56px rgba(72,51,37,.10);
}
.location-card h3,
.rsvp-card label span,
.rsvp-card legend,
.info-cards strong,
.calendar-head strong,
.calendar-note,
.week span,
.section-heading h2,
.date-line,
.venue-line,
.eyebrow {
  color: var(--text-strong);
}
.rsvp-card input[type='text'],
.rsvp-card textarea,
.rsvp-card select,
.choice-row label {
  background-color: rgba(255,255,255,.60);
}
.final-panel .reveal {
  position: relative;
  width: min(100%, 406px);
  padding: 52px 34px 58px;
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(249,244,237,.92)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  box-shadow: 0 22px 60px rgba(68, 52, 41, 0.11);
}
.final-panel .reveal::before {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    url('assets/frame-corner-tl.svg') top left/72px 72px no-repeat,
    url('assets/frame-corner-tr.svg') top right/72px 72px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/72px 72px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/72px 72px no-repeat,
    url('assets/frame-flourish.svg') top center/150px 24px no-repeat,
    url('assets/frame-flourish.svg') bottom center/150px 24px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) top 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(rgba(128,108,93,.20), rgba(128,108,93,.20)) bottom 12px center/calc(100% - 138px) 1px no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) left center/1px calc(100% - 138px) no-repeat,
    linear-gradient(90deg, rgba(128,108,93,.20), rgba(128,108,93,.20)) right center/1px calc(100% - 138px) no-repeat;
  opacity: .38;
  pointer-events: none;
}
.final-panel .reveal > * { position: relative; z-index: 1; }

@media (max-width: 560px) {
  .hero-content::before { inset: 24px 10px 18px; opacity: .38; }
  .hero-content::after { inset: 82px 26px 74px; }
  .countdown-panel .reveal, .final-panel .reveal { width: 100%; padding-left: 24px; padding-right: 24px; }
}

.countdown-card { padding-top: 52px; padding-bottom: 52px; }
.countdown-card .ornament-wide { margin-bottom: 24px; }
.countdown-card .ornament-wide.bottom { margin-top: 34px; }
.countdown-card .counter { margin-top: 34px; }
.section-heading p { letter-spacing: .03em; }
.section-heading h2 { color: #665246; }
.info-cards article, .venue-box { background: linear-gradient(rgba(255,255,255,.72), rgba(252,248,242,.78)), url('assets/paper-texture-lite.jpg'); background-size: cover; }
.primary-btn { background: #7f6655; box-shadow: 0 12px 24px rgba(83,62,47,.12); }
.location-card h3 { color: #695446; }
.hand-title { text-shadow: 0 1px 0 rgba(255,255,255,.52); }
@media (max-width: 560px) {
  .hero-content::before { inset: 28px 18px 22px; background-size: 64px 64px,64px 64px,64px 64px,64px 64px,150px 24px,150px 24px,calc(100% - 140px) 1px,calc(100% - 140px) 1px,1px calc(100% - 140px),1px calc(100% - 140px); }
  .paper-card::before { background-size: 58px 58px,58px 58px,58px 58px,58px 58px,126px 22px,126px 22px,calc(100% - 120px) 1px,calc(100% - 120px) 1px,1px calc(100% - 120px),1px calc(100% - 120px); }
}

@media (max-width: 560px) {
  .countdown-panel .reveal::before, .final-panel .reveal::before { background-size: 58px 58px,58px 58px,58px 58px,58px 58px,126px 22px,126px 22px,calc(100% - 118px) 1px,calc(100% - 118px) 1px,1px calc(100% - 118px),1px calc(100% - 118px); }
  .info-cards article::before { background-size: 38px 38px,38px 38px,38px 38px,38px 38px,78px 14px,78px 14px,calc(100% - 76px) 1px,calc(100% - 76px) 1px,1px calc(100% - 76px),1px calc(100% - 76px); }
}

body.opening .envelope-scene {
  animation: envelopeLiftAway 1.55s cubic-bezier(.2,.88,.2,1) forwards;
}

body.opening .phone-shell {
  animation: invitationRise 1.45s cubic-bezier(.2,.88,.2,1) forwards;
}

@keyframes envelopeLiftAway {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  58% { transform: translateY(-8vh) scale(1.01); opacity: 1; }
  100% { transform: translateY(-18vh) scale(1.02); opacity: 0; }
}

@keyframes invitationRise {
  0% { transform: translateY(20vh) scale(.985); opacity: 0; filter: blur(3px); }
  55% { transform: translateY(5vh) scale(.995); opacity: .82; filter: blur(1px); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

@media (max-width: 560px) {
  .phone-shell.pre-open { transform: translateY(16vh) scale(.99); }
  .envelope-wrap.custom-envelope { width: min(460px, 92vw); }
}

/* ---------- Sacred garden refinement ---------- */
:root {
  --paper: #fff6e8;
  --paper-soft: #f4e7d5;
  --ivory: #fffaf0;
  --latte: #d2b687;
  --mocha: #735842;
  --ink: #5e4a3d;
  --muted: #887364;
  --line: rgba(156, 116, 40, 0.22);
  --shadow: 0 28px 80px rgba(89, 61, 35, 0.17);
  --text-strong: #59453a;
  --card-wash: rgba(255, 248, 236, .90);
  --gold: #a07824;
  --gold-soft: #cfad66;
  --sage: #778267;
  --rose: #d8a894;
  --wine: #761934;
  --font-script: 'Great Vibes', cursive;
}

html { background: #eee3d2; }

body {
  background:
    linear-gradient(90deg, #eee3d2 0, #f6edde 50%, #eee3d2 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.62), transparent 34%),
    linear-gradient(90deg, rgba(108, 80, 55, .12), transparent 25% 75%, rgba(108, 80, 55, .12));
  pointer-events: none;
}

.grain {
  opacity: .085;
  mix-blend-mode: multiply;
}

.music-toggle {
  position: fixed;
  right: max(18px, calc((100vw - 448px) / 2 - 72px));
  bottom: 22px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 244, 222, .36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.24), transparent 31%),
    linear-gradient(145deg, #8e1d3d, #5f1028);
  color: #fff8ed;
  box-shadow: 0 18px 34px rgba(92, 18, 40, .28);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease;
}

body.locked .music-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(92, 18, 40, .34);
}

.music-toggle span {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}

.music-toggle span::before {
  content: '♪';
  position: absolute;
  inset: -3px 0 0;
  font: 700 25px/1 var(--font-serif);
}

.music-toggle.is-playing span::before,
.music-toggle.is-playing span::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
}

.music-toggle.is-playing span::before { left: 5px; }
.music-toggle.is-playing span::after { right: 5px; }

.envelope-scene {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.95), rgba(248,238,224,.94) 42%, rgba(219,201,180,.86) 100%),
    url('assets/paper-texture-lite.jpg');
}

.envelope-wrap.custom-envelope {
  width: min(442px, 91vw);
}

.envelope-stage {
  filter: drop-shadow(0 42px 78px rgba(73, 48, 30, .24));
}

.envelope-stage::before {
  content: '';
  position: absolute;
  inset: 19% 14% 16%;
  z-index: 3;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 184, 81, .58) 45%, transparent 58%),
    linear-gradient(245deg, transparent 0 36%, rgba(255, 184, 81, .54) 45%, transparent 58%),
    radial-gradient(circle at 50% 46%, rgba(255, 230, 176, .82), transparent 36%);
  filter: blur(9px);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: scale(.82);
  transition: opacity .8s ease, transform 1s cubic-bezier(.2,.9,.2,1);
}

.envelope-wrap.custom-envelope.open .envelope-stage::before {
  opacity: 1;
  transform: scale(1);
}

.envelope-base-img,
.flap img {
  filter: saturate(.92) contrast(1.03) brightness(1.02);
}

.seal-pulse {
  background: radial-gradient(circle, rgba(123, 25, 52, .20) 0, rgba(204, 167, 99, .16) 48%, transparent 72%);
}

.tap-hotspot {
  bottom: 14.8%;
  color: rgba(139, 105, 35, .92);
  opacity: .98;
}

.tap-hotspot span {
  background: rgba(255, 249, 236, .34);
  border-color: rgba(170, 130, 57, .30);
}

.phone-shell {
  width: min(100%, 448px);
  background:
    linear-gradient(rgba(255,250,241,.94), rgba(255,247,234,.90)),
    url('assets/paper-texture-lite.jpg');
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 90px rgba(79, 51, 31, .24);
}

.language-bar {
  min-height: 48px;
  padding: 8px 13px;
  background: rgba(88, 63, 47, .76);
  color: #fff8ed;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(58, 36, 24, .12);
}

.language-title {
  font-size: 10px;
  letter-spacing: .22em;
}

.language-buttons {
  gap: 6px;
}

.lang-btn {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff8ed;
  padding: 7px 11px;
  font-size: 10px;
}

.lang-btn.active,
.lang-btn:hover {
  background: #fff8ed;
  color: #6f4b36;
}

.panel {
  min-height: auto;
  padding: 66px 30px;
}

.hero-panel {
  min-height: calc(100vh - 48px);
  color: var(--text-strong);
}

.hero-bg {
  background-image: url('assets/hero-garden-lite.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 1;
  filter: saturate(.92) contrast(.98) brightness(1.02);
  transform: scale(1.006);
}

.hero-overlay {
  background:
    linear-gradient(to bottom, rgba(255, 250, 236, .08), rgba(255, 247, 231, .14) 45%, rgba(255, 243, 222, .42) 100%),
    radial-gradient(circle at 50% 43%, rgba(255, 248, 228, .50), transparent 31%),
    linear-gradient(90deg, rgba(91, 58, 35, .12), transparent 24% 76%, rgba(91, 58, 35, .12));
  opacity: 1;
}

.hero-content {
  min-height: calc(100vh - 48px);
  justify-content: center;
  padding: 46px 23px 42px;
}

.hero-content::before,
.corner-frame::before,
.corner-frame::after {
  opacity: 0;
}

.eyebrow {
  margin: 0 0 16px;
  padding: 7px 10px;
  border-top: 1px solid rgba(160, 120, 36, .32);
  border-bottom: 1px solid rgba(160, 120, 36, .24);
  background: rgba(255, 250, 236, .28);
  color: rgba(89, 67, 42, .88);
  font-size: 10.5px;
  letter-spacing: .24em;
}

.main-logo {
  width: 82px;
  margin: 0 0 17px;
  opacity: .56;
  filter: sepia(.34) saturate(.72) contrast(.92);
}

h1 {
  font-family: var(--font-script);
  font-size: clamp(56px, 13.8vw, 74px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .88;
  text-transform: none;
  color: var(--gold);
  text-shadow:
    0 2px 0 rgba(255,255,255,.64),
    0 15px 34px rgba(87, 56, 27, .20);
}

h1 span {
  white-space: nowrap;
}

h1 em {
  margin: 5px 0 3px;
  font-family: var(--font-serif);
  font-size: .37em;
  line-height: 1;
  color: #866628;
}

.hero-blessing {
  max-width: 310px;
  margin: 15px auto 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: rgba(93, 73, 59, .86);
  text-shadow: 0 1px 0 rgba(255,255,255,.58);
}

.script {
  margin: 8px 0 13px;
  font-size: 22px;
  letter-spacing: .03em;
  color: rgba(91, 71, 57, .82);
}

.thin-line {
  width: 138px;
  background: linear-gradient(90deg, transparent, rgba(160, 120, 36, .72), transparent);
  margin: 3px 0 17px;
}

.date-line,
.venue-line,
.meal-line {
  max-width: 350px;
  color: rgba(75, 56, 45, .90);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.date-line {
  font-size: 11px;
  letter-spacing: .22em;
  line-height: 1.8;
}

.venue-line {
  margin: 4px 0 5px;
  font-size: 10.5px;
  letter-spacing: .13em;
  line-height: 1.8;
}

.meal-line {
  margin-bottom: 25px;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(128, 91, 29, .88);
}

.scroll-cue {
  color: rgba(128, 91, 29, .72);
  font-size: 30px;
}

.paper-section,
.countdown-panel,
.final-panel {
  background:
    linear-gradient(rgba(255,248,236,.94), rgba(250,238,219,.90)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
}

.paper-section::before,
.countdown-panel::before,
.final-panel::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.74), transparent 44%),
    linear-gradient(to bottom, rgba(216, 168, 148, .10), transparent 34%);
}

.paper-card,
.countdown-panel .reveal,
.final-panel .reveal {
  width: min(100%, 382px);
  background:
    linear-gradient(rgba(255, 250, 240, .88), rgba(248, 234, 211, .86)),
    url('assets/paper-texture-lite.jpg');
  background-size: cover;
  border: 1px solid rgba(160, 120, 36, .16);
  box-shadow: var(--shadow);
}

.paper-card {
  padding: 58px 36px;
}

.paper-card::before,
.countdown-panel .reveal::before,
.final-panel .reveal::before {
  opacity: .25;
}

.paper-card::after {
  inset: 20px;
  border-color: rgba(160, 120, 36, .10);
  border-radius: 10px;
}

.paper-card h2,
.section-heading h2 {
  color: #896725;
}

.paper-card h2 {
  font-size: 36px;
  line-height: 1.35;
}

.paper-card p {
  color: rgba(83, 64, 51, .90);
  font-size: 19px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading p,
.section-heading span {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold);
}

.section-heading p {
  font-size: 35px;
  line-height: 1;
}

.section-heading h2 {
  font-size: 19px;
  letter-spacing: .25em;
}

.section-heading span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(87, 70, 58, .72);
}

.ornament-line,
.ornament-wide {
  opacity: .52;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 12%, rgba(160,120,36,.30) 12% 46%, transparent 46% 54%, rgba(160,120,36,.30) 54% 88%, transparent 88%),
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(160,120,36,.24) 43% 44%, transparent 45%);
}

.hand-title {
  font-family: var(--font-script);
  font-size: clamp(52px, 14vw, 72px);
  font-weight: 400;
  color: var(--gold);
  transform: none;
  letter-spacing: 0;
}

.counter {
  gap: 8px;
  margin-top: 34px;
}

.counter strong {
  color: #936f26;
  letter-spacing: .07em;
}

.counter span {
  color: rgba(95, 77, 64, .68);
  letter-spacing: .20em;
}

.counter i {
  color: rgba(147, 111, 38, .38);
}

.calendar-head strong,
.calendar-note,
.week span,
.section-heading h2,
.date-line,
.venue-line,
.eyebrow {
  color: rgba(82, 62, 49, .90);
}

.dates .selected {
  border-color: rgba(160, 120, 36, .58);
  background: rgba(207, 173, 102, .18);
  color: #7b5d22;
}

.info-cards article,
.venue-box {
  background:
    linear-gradient(rgba(255,250,240,.86), rgba(247,234,213,.82)),
    url('assets/paper-texture-lite.jpg');
  border-color: rgba(160, 120, 36, .14);
  box-shadow: 0 18px 44px rgba(89, 61, 35, .10);
}

.info-cards .icon,
.pin,
.info-cards strong,
.location-card h3,
.venue-box strong {
  color: #886826;
}

.primary-btn {
  background:
    linear-gradient(145deg, #87203e, #631329);
  color: #fff8ed;
  box-shadow: 0 16px 28px rgba(99, 19, 41, .18);
}

.choice-row input:checked + label {
  background:
    linear-gradient(145deg, #87203e, #631329);
  color: #fff8ed;
  border-color: rgba(99, 19, 41, .38);
}

.rsvp-card input[type='text'],
.rsvp-card textarea,
.rsvp-card select,
.choice-row label {
  border-color: rgba(160, 120, 36, .18);
  background-color: rgba(255, 252, 246, .68);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(.985);
  transition: opacity 1.05s ease, transform 1.05s cubic-bezier(.18,.88,.22,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.final-panel h2 {
  color: var(--gold);
  letter-spacing: .20em;
}

.final-panel small {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  letter-spacing: .13em;
}

@media (max-width: 560px) {
  body {
    background: #f3e8d8;
  }

  .phone-shell {
    width: 100%;
  }

  .language-title {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .lang-btn {
    padding: 7px 9px;
    font-size: 9px;
  }

  .panel {
    padding: 64px 23px;
  }

  .hero-content {
    padding: 40px 18px 36px;
  }

  h1 {
    font-size: clamp(49px, 14.6vw, 62px);
  }

  .hero-blessing {
    font-size: 18px;
  }

  .date-line {
    letter-spacing: .17em;
  }

  .venue-line {
    letter-spacing: .09em;
  }

  .meal-line {
    letter-spacing: .08em;
  }

  .paper-card,
  .countdown-panel .reveal,
  .final-panel .reveal {
    width: 100%;
    padding-left: 27px;
    padding-right: 27px;
  }

  .counter {
    gap: 5px;
  }

  .counter span {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .music-toggle {
    right: 16px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
}

/* ---------- Frame and language polish ---------- */
.language-buttons {
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  justify-content: center;
  letter-spacing: .06em;
}

.flag {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 13px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.42), 0 0 0 1px rgba(66, 45, 31, .16) inset;
}

.flag-img {
  width: 21px;
  height: 12px;
  object-fit: contain;
  background: #fff;
}

.flag-tr {
  background: #e30a17;
}

.flag-tr::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: -2px 0 0 1px #fff;
}

.flag-tr::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 5px;
  width: 3px;
  height: 3px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.33%, #1c57a5 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag-tg {
  background: linear-gradient(to bottom, #d01c1f 0 28%, #fff 28% 72%, #078930 72% 100%);
}

.flag-tg::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  width: 5px;
  height: 3px;
  background: #d8a322;
  clip-path: polygon(50% 0, 63% 40%, 100% 40%, 69% 61%, 79% 100%, 50% 76%, 21% 100%, 31% 61%, 0 40%, 37% 40%);
}

.paper-card.deckled,
.countdown-card {
  clip-path: none;
  border-radius: 0;
  overflow: hidden;
  border-color: rgba(160, 120, 36, .20);
}

.paper-card.deckled::before,
.countdown-card::before,
.countdown-panel .countdown-card::before {
  content: '';
  position: absolute;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  opacity: .46;
  background:
    url('assets/frame-corner-tl.svg') top left/58px 58px no-repeat,
    url('assets/frame-corner-tr.svg') top right/58px 58px no-repeat,
    url('assets/frame-corner-bl.svg') bottom left/58px 58px no-repeat,
    url('assets/frame-corner-br.svg') bottom right/58px 58px no-repeat,
    linear-gradient(rgba(160,120,36,.24), rgba(160,120,36,.24)) top 10px center/calc(100% - 112px) 1px no-repeat,
    linear-gradient(rgba(160,120,36,.20), rgba(160,120,36,.20)) bottom 10px center/calc(100% - 112px) 1px no-repeat,
    linear-gradient(90deg, rgba(160,120,36,.16), rgba(160,120,36,.16)) left 10px center/1px calc(100% - 112px) no-repeat,
    linear-gradient(90deg, rgba(160,120,36,.16), rgba(160,120,36,.16)) right 10px center/1px calc(100% - 112px) no-repeat;
}

.paper-card.deckled::after,
.countdown-card::after,
.countdown-panel .countdown-card::after {
  content: '';
  position: absolute;
  inset: 34px;
  z-index: 0;
  border: 1px solid rgba(160, 120, 36, .075);
  border-radius: 0;
  pointer-events: none;
}

.paper-card.deckled > *,
.countdown-card > * {
  position: relative;
  z-index: 1;
}

.ornament-line,
.ornament-wide {
  position: relative;
  width: min(210px, 58vw);
  height: 20px;
  margin: 0 auto 30px;
  opacity: .74;
  background: none;
}

.ornament-wide {
  width: min(242px, 62vw);
  margin-bottom: 34px;
}

.ornament-wide.bottom {
  margin-top: 36px;
  transform: none;
}

.ornament-line::before,
.ornament-line::after,
.ornament-wide::before,
.ornament-wide::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 15px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,36,.38));
}

.ornament-line::before,
.ornament-wide::before {
  left: 0;
}

.ornament-line::after,
.ornament-wide::after {
  right: 0;
  transform: scaleX(-1);
}

.ornament-line {
  background:
    radial-gradient(circle at 50% 50%, rgba(160,120,36,.62) 0 2px, transparent 3px),
    radial-gradient(ellipse at 33% 50%, transparent 0 16px, rgba(160,120,36,.20) 17px 18px, transparent 19px),
    radial-gradient(ellipse at 67% 50%, transparent 0 16px, rgba(160,120,36,.20) 17px 18px, transparent 19px);
}

.ornament-wide {
  background:
    radial-gradient(circle at 50% 50%, rgba(160,120,36,.62) 0 2px, transparent 3px),
    radial-gradient(ellipse at 35% 50%, transparent 0 18px, rgba(160,120,36,.18) 19px 20px, transparent 21px),
    radial-gradient(ellipse at 65% 50%, transparent 0 18px, rgba(160,120,36,.18) 19px 20px, transparent 21px);
}

.location-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.location-photo {
  position: absolute;
  inset: 24px;
  z-index: 0;
  border: 1px solid rgba(160,120,36,.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,248,236,.52), rgba(255,248,236,.70)),
    url('assets/renex-hotel-lite.jpg') center/cover no-repeat;
  opacity: .68;
  filter: sepia(.18) saturate(.78) contrast(.95);
  pointer-events: none;
}

.location-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.06) 0 34%, rgba(255,248,236,.34) 76%, rgba(255,248,236,.66) 100%),
    linear-gradient(rgba(255,255,255,.12), rgba(255,250,240,.18));
}

.location-card::before,
.location-card::after {
  z-index: 1;
}

.location-card > :not(.location-photo) {
  position: relative;
  z-index: 2;
}

.location-card .pin,
.location-card h3,
.location-card p {
  text-shadow: 0 1px 0 rgba(255,255,255,.70);
}

.location-card .venue-box {
  background: rgba(255,250,240,.68);
  border-color: rgba(160,120,36,.20);
  box-shadow: 0 12px 28px rgba(89,61,35,.10);
  backdrop-filter: blur(1px);
}

@media (max-width: 560px) {
  .lang-btn {
    min-width: 54px;
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .flag {
    width: 17px;
    height: 12px;
  }

  .flag-img {
    width: 19px;
    height: 10px;
  }

  .location-photo {
    inset: 20px;
    background-position: center;
  }

  .paper-card.deckled::before,
  .countdown-card::before,
  .countdown-panel .countdown-card::before {
    inset: 16px;
    background-size:
      52px 52px,
      52px 52px,
      52px 52px,
      52px 52px,
      calc(100% - 102px) 1px,
      calc(100% - 102px) 1px,
      1px calc(100% - 102px),
      1px calc(100% - 102px);
  }

  .paper-card.deckled::after,
  .countdown-card::after,
  .countdown-panel .countdown-card::after {
    inset: 29px;
  }
}
