:root {
  --ink: #000;
  --rose: #bd4b4b;
  --blush: #efb7b7;
  --paper: #eee;
  --white: #fff;
  --display: 'Playfair Display', Georgia, serif;
  --body: Manrope, Arial, sans-serif;
  --container: 1200px;
  --section-space: 96px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body,
button {
  font-size: 16px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--blush);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}
.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
}
.skip-link:focus {
  top: 16px;
}
.announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  background: var(--rose);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.announcement a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  padding-bottom: 2px;
}
.announcement a:hover {
  border-bottom-color: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: block;
  width: 192px;
  height: 65px;
  overflow: hidden;
  flex: none;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.desktop-nav a,
.header-action {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.desktop-nav a {
  transition: color 0.2s ease;
}
.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--rose);
}
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 20px;
  transition:
    background 0.2s,
    color 0.2s;
}
.header-action:hover {
  background: var(--ink);
  color: var(--white);
}
.menu-toggle,
.mobile-nav {
  display: none;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 32px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 16px;
  padding-bottom: 40px;
}
.eyebrow,
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow-line {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--rose);
}
.hero h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
}
.hero h1 {
  max-width: 600px;
  margin: 24px 0 24px;
  font-size: clamp(66px, 6.7vw, 102px);
  line-height: 1.06;
}
h1 em,
h2 em {
  color: var(--rose);
  font-weight: 400;
}
.hero-lede {
  max-width: 450px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: var(--rose);
  color: var(--white);
}
.button-primary:hover {
  background: var(--ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.text-link:hover {
  color: var(--rose);
  border-color: var(--rose);
}
.hero-footnote {
  display: flex;
  align-items: center;
  margin-top: 48px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art:before {
  content: '';
  position: absolute;
  width: 590px;
  height: 590px;
  border-radius: 50%;
  background: var(--blush);
  filter: opacity(0.62);
  right: -105px;
  top: 4px;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one {
  width: 630px;
  height: 630px;
  right: -122px;
  top: -15px;
}
.hero-orbit-two {
  width: 520px;
  height: 520px;
  right: -67px;
  top: 40px;
}
.hero-invitation {
  position: relative;
  z-index: 2;
  width: 337px;
  height: 474px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 8px solid var(--white);
  outline: 1px solid rgba(189, 75, 75, 0.28);
  outline-offset: -20px;
  box-shadow:
    14px 22px 42px rgba(65, 25, 25, 0.22),
    0 3px 8px rgba(65, 25, 25, 0.1);
  transform: rotate(-7deg);
  text-align: center;
}
.hero-invitation:before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(189, 75, 75, 0.34);
  pointer-events: none;
}
.invite-ornament {
  position: absolute;
  color: var(--rose);
  font-size: 17px;
}
.invite-ornament-top {
  top: 34px;
}
.invite-ornament-bottom {
  bottom: 28px;
}
.invite-small,
.invite-date,
.invite-place {
  font-family: var(--body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.invite-small {
  margin-bottom: 24px;
}
.invite-bottom {
  position: absolute;
  bottom: 60px;
  margin: 0;
  font-size: 7px;
}
.invite-names {
  font-family: var(--display);
  font-size: 55px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--rose);
}
.invite-names i {
  font-size: 30px;
  font-weight: 400;
  color: var(--rose);
}
.invite-rule {
  width: 62px;
  height: 1px;
  background: var(--rose);
  margin: 30px 0 20px;
}
.invite-sentence {
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--rose);
}
.invite-date {
  margin-top: 27px;
  color: var(--rose);
}
.invite-place {
  margin-top: 11px;
  font-size: 7px;
  color: var(--rose);
}
.hero-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}
.hero-label-top {
  top: 73px;
  left: 15px;
  padding: 16px 20px;
  transform: rotate(-4deg);
}

.hero-label-bottom {
  right: -3px;
  bottom: 88px;
  padding: 16px 20px;
  transform: rotate(5deg);
}
.label-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
}
.hero-spark {
  position: absolute;
  z-index: 2;
  color: var(--rose);
  font-family: Georgia, serif;
}
.hero-spark-one {
  left: 9%;
  bottom: 18%;
  font-size: 45px;
}
.hero-spark-two {
  right: 6%;
  top: 14%;
  font-size: 24px;
}
.hero-bottom {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.intro-section {
  padding: var(--section-space) 0;
  background: var(--white);
}
.intro-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  gap: 32px;
}
.section-index {
  color: var(--rose);
}
.intro-grid h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.16;
}
.intro-grid p {
  max-width: 550px;
  margin: 24px 0 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

.styles-section {
  padding: var(--section-space) 0;
  background: var(--paper);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}
.section-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(43px, 4.7vw, 66px);
  line-height: 1.16;
}
.section-heading p {
  max-width: 325px;
  margin: 0 0 5px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
  line-height: 1.85;
}
.tabs {
  display: flex;
  gap: 32px;
  margin: 48px 0 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 112px;
  min-height: 48px;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.5);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tab:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}
.tab.is-active {
  color: var(--ink);
}
.tab.is-active:after {
  background: var(--rose);
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.style-stage {
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.garden-stage {
  background: var(--paper);
}
.evening-stage {
  background: var(--blush);
}
.confetti-stage {
  background: var(--paper);
}
.berry-stage {
  background: var(--paper);
}
.style-card {
  position: relative;
  width: 255px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow:
    0 12px 32px rgba(31, 20, 38, 0.16),
    0 2px 6px rgba(31, 20, 38, 0.08);
  transition: transform 0.35s ease;
}
.style-item:hover .style-card {
  transform: translateY(-9px) rotate(-2deg);
}
.style-card .card-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.style-card strong {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
}
.style-card strong i {
  font-weight: 400;
}
.style-card .card-detail {
  font-size: 8px;
  line-height: 2.1;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.garden-card {
  background: var(--white);
  color: var(--rose);
  border: 1px solid rgba(189, 75, 75, 0.25);
}
.garden-card:before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(189, 75, 75, 0.3);
}
.garden-card strong {
  font-size: 46px;
  line-height: 1.05;
  margin: 26px 0;
  color: var(--rose);
}
.garden-card strong i {
  font-size: 28px;
}
.card-flourish {
  position: absolute;
  top: 37px;
  font-family: Georgia, serif;
  font-size: 26px;
}
.card-flourish.bottom {
  top: auto;
  bottom: 26px;
}
.evening-card {
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.evening-card:before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(244, 183, 63, 0.6);
}
.evening-card strong {
  font-size: 44px;
  line-height: 1.1;
  margin: 26px 0;
  color: var(--blush);
}
.evening-card strong i {
  font-size: 27px;
}
.evening-stars {
  position: absolute;
  top: 42px;
  color: var(--blush);
  font-size: 14px;
}
.evening-stars.bottom {
  top: auto;
  bottom: 37px;
}
.confetti-card {
  background: var(--blush);
  color: var(--ink);
}
.confetti-card:before {
  content: '';
  position: absolute;
  inset: 13px;
  border: 2px dashed rgba(31, 20, 38, 0.48);
}
.confetti-card strong {
  font-size: 44px;
  line-height: 1.1;
  margin: 29px 0;
}
.confetti-card strong i {
  font-size: 39px;
}
.confetti-spark {
  position: absolute;
  top: 30px;
  right: 39px;
  font-size: 28px;
}
.confetti-dots {
  position: absolute;
  bottom: 23px;
  font-size: 12px;
}
.berry-card {
  background: var(--rose);
  color: #fff;
}
.berry-card:before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.berry-card strong {
  font-size: 54px;
  line-height: 1.02;
  margin: 24px 0;
}
.berry-card strong i {
  font-size: 49px;
}
.berry-star {
  position: absolute;
  top: 39px;
  color: var(--white);
  font-size: 23px;
}
.berry-star.bottom {
  top: auto;
  bottom: 32px;
}
.style-caption {
  padding: 16px 0 0;
}
.style-caption h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.style-caption span {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
}
.styles-note {
  margin: 32px 0 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 11px;
}
.how-section {
  padding: var(--section-space) 0;
  background: var(--white);
}
.how-heading {
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.step {
  position: relative;
  min-height: 190px;
  padding: 24px 24px 24px 0;
}
.step:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  margin-right: 24px;
}
.step-number {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rose);
}

.step h3 {
  margin: 40px 0 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.step p {
  max-width: 220px;
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  line-height: 1.75;
}
.sharing-section {
  padding: var(--section-space) 0;
  background: var(--paper);
  overflow: hidden;
}
.sharing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}
.sharing-visual {
  position: relative;
  min-height: 535px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
  overflow: visible;
}
.sharing-visual:before,
.sharing-visual:after {
  content: '';
  position: absolute;
  border: 1px solid rgba(189, 75, 75, 0.5);
  border-radius: 50%;
  width: 470px;
  height: 470px;
}
.sharing-visual:after {
  width: 570px;
  height: 570px;
}
.browser-frame {
  position: relative;
  z-index: 1;
  width: 365px;
  height: 408px;
  background: #fff;
  border: 7px solid #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.17);
  transform: rotate(-4deg);
}
.browser-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--paper);
}
.browser-bar > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}
.browser-address {
  width: 62%;
  margin-left: 18px;
  padding: 5px;
  background: #fff;
  border-radius: 3px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 7px;
  text-align: center;
}
.browser-content {
  height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  text-align: center;
  color: var(--rose);
}
.browser-flower {
  font-size: 35px;
  margin-bottom: 18px;
}
.browser-content small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.browser-content strong {
  margin: 20px 0;
  font-family: var(--display);
  font-size: 37px;
  font-weight: 400;
}
.browser-content span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.browser-line {
  width: 35px;
  height: 1px;
  background: var(--rose);
  margin: 27px 0 15px;
}
.browser-content p {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.image-slip {
  position: absolute;
  z-index: 2;
  right: -15px;
  bottom: 30px;
  width: 178px;
  height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 0 13px 27px rgba(0, 0, 0, 0.18);
  transform: rotate(8deg);
  text-align: center;
}
.image-slip span {
  font-size: 23px;
  color: var(--rose);
}
.image-slip strong {
  margin: 11px 0 5px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
}
.image-slip small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.sharing-copy h2 {
  margin: 16px 0 24px;
  font-size: clamp(43px, 4.6vw, 66px);
  line-height: 1.16;
}
.sharing-copy > p {
  max-width: 410px;
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  line-height: 1.85;
}
.sharing-points {
  margin-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}
.sharing-points > div {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.sharing-points h3 {
  margin: 0 0 8px;
  font-size: 13px;
}
.sharing-points p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  line-height: 1.7;
}
.closing-section {
  padding: var(--section-space) 0;
  background: var(--rose);
  color: var(--white);
  text-align: center;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing-section .section-index {
  color: var(--blush);
}
.closing-section h2 {
  margin: 16px 0 24px;
  font-size: clamp(50px, 6vw, 83px);
  line-height: 1.1;
}
.closing-section h2 em {
  color: var(--blush);
}
.closing-section p {
  max-width: 470px;
  margin: 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1.85;
}
.button-light {
  margin-top: 32px;
  background: var(--white);
  color: var(--rose);
}
.button-light:hover {
  background: var(--paper);
}
.site-footer {
  background: var(--white);
}
.footer-main {
  min-height: 190px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-brand {
  width: 190px;
}
.footer-main p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 11px;
  font-weight: 700;
}
.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.5);
  font-size: 10px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(60px, 7vw, 80px);
  }
  .hero-art {
    height: 570px;
  }
  .hero-art:before {
    width: 510px;
    height: 510px;
    right: -120px;
    top: 24px;
  }
  .hero-orbit-one {
    width: 540px;
    height: 540px;
    right: -135px;
    top: 8px;
  }
  .hero-orbit-two {
    width: 460px;
    height: 460px;
    right: -94px;
    top: 49px;
  }
  .hero-label-bottom {
    right: -20px;
  }
  .sharing-grid {
    gap: 55px;
  }
  .image-slip {
    right: -28px;
  }
}
@media (max-width: 800px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }
  .desktop-nav,
  .header-action {
    display: none;
  }
  .header-inner {
    height: 67px;
  }
  .brand {
    width: 155px;
    height: 56px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.16);
    cursor: pointer;
  }
  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--ink);
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 12px 20px 23px;
    border-top: 1px solid #eee;
    background: #fff;
  }
  .mobile-nav a {
    padding: 12px 3px;
    font-size: 13px;
    font-weight: 700;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .hero-copy {
    padding: 76px 0 0;
  }
  .hero h1 {
    max-width: 620px;
    font-size: clamp(62px, 11vw, 92px);
  }
  .hero-art {
    height: 600px;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-art:before {
    right: 0;
  }
  .hero-orbit-one {
    right: -16px;
  }
  .hero-orbit-two {
    right: 25px;
  }
  .hero-label-top {
    left: 5px;
  }
  .hero-label-bottom {
    right: 3px;
  }
  .hero-bottom {
    height: 54px;
  }
  .intro-section {
    padding: 80px 0;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro-grid > .section-index {
    grid-column: 1/-1;
  }
  .intro-section,
  .styles-section,
  .how-section,
  .sharing-section,
  .closing-section {
    padding: 80px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .section-heading p {
    max-width: 510px;
  }
  .style-stage {
    height: 400px;
  }
  .style-card {
    transform: scale(0.88);
  }
  .style-item:hover .style-card {
    transform: scale(0.88) translateY(-8px);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(2) {
    border-right: none;
    margin-right: 0;
  }
  .step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  }
  .sharing-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .sharing-visual {
    max-width: 610px;
    width: 100%;
    margin: auto;
  }
  .sharing-copy {
    max-width: 600px;
    margin: auto;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main p {
    grid-row: 2;
  }
  .footer-links {
    grid-row: 1/-1;
    grid-column: 2;
    justify-self: end;
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 34px), var(--container));
  }
  .announcement {
    font-size: 9px;
    gap: 5px;
  }
  .announcement a {
    margin-left: 1px;
  }
  .hero-copy {
    padding-top: 64px;
  }
  .hero h1 {
    font-size: clamp(57px, 14vw, 78px);
    margin-top: 19px;
  }
  .hero-lede {
    font-size: 14px;
    line-height: 1.8;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }
  .button {
    width: 100%;
  }
  .text-link {
    width: max-content;
  }
  .hero-footnote {
    margin-top: 32px;
  }
  .hero-art {
    height: 495px;
  }
  .hero-art:before {
    width: 390px;
    height: 390px;
    right: -65px;
    top: 43px;
  }
  .hero-orbit-one {
    width: 415px;
    height: 415px;
    right: -76px;
    top: 30px;
  }
  .hero-orbit-two {
    width: 340px;
    height: 340px;
    right: -38px;
    top: 68px;
  }
  .hero-invitation {
    width: 240px;
    height: 337px;
    transform: rotate(-7deg);
  }
  .hero-invitation:before {
    inset: 11px;
  }
  .invite-ornament-top {
    top: 20px;
  }
  .invite-ornament-bottom {
    bottom: 14px;
  }
  .invite-small {
    font-size: 6px;
    margin-bottom: 14px;
  }
  .invite-names {
    font-size: 40px;
  }
  .invite-names i {
    font-size: 21px;
  }
  .invite-rule {
    margin: 18px 0 12px;
  }
  .invite-sentence {
    font-size: 10px;
  }
  .invite-date {
    font-size: 6px;
    margin-top: 17px;
  }
  .invite-place {
    font-size: 5px;
    margin-top: 8px;
  }
  .invite-bottom {
    bottom: 35px;
    margin: 0;
  }
  .hero-label {
    font-size: 7px;
  }
  .hero-label-top {
    top: 35px;
    left: 0;
    padding: 11px;
  }
  .hero-label-bottom {
    bottom: 45px;
    right: 0;
    padding: 12px;
  }
  .hero-spark-one {
    left: 1%;
    bottom: 13%;
  }
  .hero-bottom {
    font-size: 8px;
  }
  .intro-section {
    padding: 64px 0;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid h2 {
    font-size: clamp(42px, 10vw, 56px);
  }
  .intro-grid p {
    font-size: 13px;
    margin-top: 18px;
  }
  .styles-section,
  .how-section {
    padding: 64px 0;
  }
  .section-heading h2,
  .sharing-copy h2 {
    font-size: clamp(44px, 10vw, 58px);
  }
  .section-heading p {
    font-size: 12px;
  }
  .tabs {
    margin-top: 32px;
  }
  .tab {
    min-width: 0;
    flex: 1;
    gap: 10px;
  }
  .style-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .style-stage {
    height: 420px;
  }
  .style-card {
    transform: scale(0.94);
  }
  .style-item:hover .style-card {
    transform: scale(0.94) translateY(-7px);
  }
  .style-caption {
    padding-top: 13px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step:not(:last-child) {
    min-height: 0;
    margin-right: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  }
  .step:last-child {
    border-bottom: 0;
  }
  .step h3 {
    font-size: 23px;
  }
  .sharing-section {
    padding: 64px 0;
  }
  .sharing-visual {
    min-height: 430px;
  }
  .sharing-visual:before {
    width: 340px;
    height: 340px;
  }
  .sharing-visual:after {
    width: 420px;
    height: 420px;
  }
  .browser-frame {
    width: 265px;
    height: 330px;
  }
  .browser-content strong {
    font-size: 27px;
  }
  .image-slip {
    right: -5px;
    bottom: 22px;
    width: 125px;
    height: 103px;
  }
  .image-slip span {
    font-size: 16px;
  }
  .image-slip strong {
    font-size: 11px;
    margin: 5px 0 3px;
  }
  .image-slip small {
    font-size: 6px;
  }
  .sharing-grid {
    gap: 48px;
  }
  .closing-section {
    padding: 64px 0;
  }
  .closing-section h2 {
    font-size: clamp(46px, 10vw, 64px);
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
  }
  .footer-brand {
    width: 165px;
  }
  .footer-main p {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-links {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 22px;
  }
  .footer-bottom {
    gap: 15px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding: 13px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Wedding previews unfold like a gatefold invitation. */
.invitation-stage {
  position: relative;
  isolation: isolate;
  perspective: 1200px;
  background: radial-gradient(ellipse at 50% 35%, #fffaf2 0%, #ece8df 75%);
}
.evening-stage.invitation-stage {
  background: radial-gradient(ellipse at 50% 35%, #eed4cf 0%, #d6aaa6 85%);
}
.invitation-book {
  position: relative;
  width: min(255px, 70%);
  aspect-ratio: 255/350;
  perspective: 1100px;
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: drop-shadow(0 18px 18px #392c2826);
}
.invitation-stage .style-card {
  width: 100%;
  height: 100%;
  transform: none;
  box-shadow: 0 1px 3px #392c2826;
  transition:
    filter 0.9s,
    box-shadow 0.9s;
  filter: brightness(0.88);
}
.invitation-stage .garden-card {
  background: linear-gradient(125deg, #fffef8, #f8f1e6);
  color: #8d514d;
  border-color: #d4b7a0;
}
.invitation-stage .garden-card strong {
  color: #8d514d;
}
.invitation-stage .garden-card:before {
  border-color: #c7aa83;
  border-radius: 100px 100px 0 0;
}
.invitation-stage .evening-card {
  background: linear-gradient(135deg, #292c2b, #101a18);
  border-color: #9d8a62;
}
.invitation-stage .evening-card:before {
  border-color: #aa9366;
}
.invitation-stage .evening-card strong,
.invitation-stage .evening-stars {
  color: #e4cba6;
}
.invitation-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform 1.15s cubic-bezier(0.22, 0.75, 0.22, 1),
    filter 1.15s;
  background: linear-gradient(120deg, #faf4e8, #e9ddc8);
  color: #8d514d;
  border: 1px solid #cbb594;
  z-index: 2;
}
.invitation-leaf:before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid #bea78380;
  border-radius: 70px 70px 0 0;
  pointer-events: none;
}
.leaf-left {
  left: 0;
  transform-origin: left center;
  border-right-color: #b39b7955;
}
.leaf-right {
  right: 0;
  transform-origin: right center;
  border-left-color: #fff8;
}
.evening-stage .invitation-leaf {
  background: linear-gradient(125deg, #293c35, #13271f);
  color: #e4cba6;
  border-color: #8c7d58;
}
.evening-stage .invitation-leaf:before {
  border-color: #c3a87380;
  border-radius: 0;
}
.cover-name {
  font-family: var(--display);
  font-size: 66px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
}
.cover-word {
  font-size: 7px;
  letter-spacing: 0.2em;
  margin-top: 24px;
}
.cover-ornament {
  position: absolute;
  top: 42px;
  font-size: 20px;
  opacity: 0.65;
}
.invitation-seal {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 62%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #9d6257;
  color: #f7e9d2;
  border: 3px double #dcb195;
  box-shadow: 0 3px 8px #32231c33;
  font-family: var(--display);
  font-style: italic;
  transition:
    opacity 0.25s,
    transform 0.5s;
}
.evening-stage .invitation-seal {
  background: #ad9261;
  color: #172b22;
  border-color: #e3cc9d;
}
.invitation-toggle {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.invitation-stage:has(.invitation-toggle:focus-visible) {
  outline: 2px solid var(--rose);
  outline-offset: 5px;
}
.invitation-hint {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #77665b;
  transition: opacity 0.3s;
}
.invitation-hint span {
  display: inline-block;
  margin-left: 8px;
}
.invitation-stage.is-open .leaf-left {
  transform: rotateY(-155deg);
  filter: brightness(0.92);
}
.invitation-stage.is-open .leaf-right {
  transform: rotateY(155deg);
  filter: brightness(0.92);
}
.invitation-stage.is-open .invitation-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}
.invitation-stage.is-open .invitation-book {
  transform: translateY(-7px);
}
.invitation-stage.is-open .style-card {
  filter: brightness(1);
  box-shadow: 0 16px 35px #392c281a;
}
.invitation-stage.is-open .invitation-hint {
  opacity: 0;
}
@media (min-width: 561px) and (max-width: 800px) {
  .invitation-stage .style-card strong {
    font-size: 38px;
  }
  .invitation-stage .card-kicker {
    font-size: 6px;
  }
  .invitation-stage .card-detail {
    font-size: 6px;
  }
  .invitation-stage .card-flourish {
    top: 26px;
  }
  .invitation-stage .card-flourish.bottom {
    top: auto;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-book,
  .invitation-leaf,
  .invitation-seal,
  .invitation-hint {
    transition: none;
  }
}

/* Paper folds, velvet drapes and birthday reveals. */
.garden-stage .invitation-leaf {
  background:
    repeating-linear-gradient(0deg, #fff9ee12 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #e2d2b7, #fff9ec 12%, #f1e6d2 87%, #cdbb9d);
  box-shadow:
    inset 2px 0 3px #fff9,
    inset -2px 0 4px #76634422;
  backface-visibility: visible;
}
.garden-stage .invitation-leaf:before {
  border-radius: 0;
  border-color: #bca17d70;
  inset: 9px;
}
.garden-stage .leaf-left {
  border-radius: 2px 0 0 2px;
}
.garden-stage .leaf-right {
  border-radius: 0 2px 2px 0;
}
.garden-stage .invitation-seal {
  background: radial-gradient(circle at 35% 25%, #c48876, #995c50 65%, #79473d);
  box-shadow:
    inset 1px 1px 2px #ffe2bbaa,
    inset -1px -2px 3px #57382a80,
    1px 3px 4px #39241655;
  border-radius: 47% 53% 45% 55%;
}
.garden-stage.is-open .invitation-book {
  transform: translateY(-6px) scale(0.88);
}
.garden-stage.is-open .leaf-left {
  transform: rotateY(-112deg);
  box-shadow: inset -8px 0 18px #70502d33;
}
.garden-stage.is-open .leaf-right {
  transform: rotateY(112deg);
  box-shadow: inset 8px 0 18px #70502d33;
}
.garden-stage .invitation-leaf > span {
  transition: opacity 0.3s 0.1s;
}
.garden-stage.is-open .invitation-leaf > span {
  opacity: 0;
}
.evening-stage .invitation-book {
  overflow: hidden;
  background: #14251e;
}
.evening-stage .invitation-leaf {
  width: 53%;
  border: 0;
  border-radius: 0 0 45% 8%;
  background: repeating-linear-gradient(90deg, #0c2019 0%, #355346 8%, #203c30 15%, #10291f 22%, #3a5545 28%);
  box-shadow: 3px 5px 8px #0008;
  backface-visibility: visible;
  transition:
    transform 1.4s cubic-bezier(0.2, 0.65, 0.2, 1),
    border-radius 1.4s;
  transform-origin: top left;
}
.evening-stage .leaf-right {
  transform-origin: top right;
  border-radius: 0 0 8% 45%;
  background: repeating-linear-gradient(90deg, #3a5545 0%, #10291f 8%, #203c30 15%, #355346 22%, #0c2019 28%);
}
.evening-stage .invitation-leaf:before {
  inset: 0 0 auto;
  height: 12px;
  border: 0;
  border-bottom: 2px solid #bb9d61;
  background: linear-gradient(#42594a, #152b21);
  border-radius: 0;
}
.evening-stage .cover-ornament,
.evening-stage .cover-word {
  display: none;
}
.evening-stage .cover-name {
  font-size: 48px;
  color: #ddc99d;
  text-shadow: 0 2px 3px #0006;
  opacity: 0.9;
}
.evening-stage.is-open .leaf-left {
  transform: scaleX(0.13);
  border-radius: 0 0 80% 0;
  filter: brightness(1.1);
}
.evening-stage.is-open .leaf-right {
  transform: scaleX(0.13);
  border-radius: 0 0 0 80%;
  filter: brightness(1.1);
}
.evening-stage.is-open .cover-name {
  opacity: 0;
}
.evening-stage .invitation-seal {
  top: 65%;
  width: 28px;
  height: 28px;
}
.confetti-stage.invitation-stage {
  background: radial-gradient(ellipse at 50% 35%, #fff6df, #eddfcb);
}
.confetti-stage .invitation-book {
  filter: drop-shadow(0 16px 14px #6e45452b);
  perspective: 1000px;
}
.confetti-stage .style-card {
  z-index: 1;
  transform: translateY(16%) scale(0.86);
  transition:
    transform 1s 0.15s,
    filter 0.8s;
}
.confetti-stage.is-open .style-card {
  transform: translateY(-12%) scale(0.92);
  transition:
    transform 1s 0.3s,
    filter 0.8s;
}
.envelope-back,
.envelope-pocket,
.envelope-flap {
  position: absolute;
  left: -4%;
  width: 108%;
  height: 59%;
  bottom: 0;
  border-radius: 3px;
  background: #c98e87;
}
.envelope-back {
  background: linear-gradient(#b97c76, #dcaaa0);
  z-index: 0;
}
.envelope-pocket {
  z-index: 3;
  background: linear-gradient(145deg, #f3c9bb, #dca397);
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -2px 2px #75403933);
}
.envelope-pocket:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(34deg, transparent 49.5%, #ac716b55 50%, transparent 50.5%),
    linear-gradient(-34deg, transparent 49.5%, #ac716b55 50%, transparent 50.5%);
}
.envelope-flap {
  z-index: 4;
  bottom: 0;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  background: linear-gradient(#e8b9a9, #f8d6c5);
  transition:
    transform 0.65s,
    z-index 0s 0.35s;
  backface-visibility: visible;
}
.envelope-flap span {
  display: block;
  text-align: center;
  margin-top: 24px;
  font: italic 24px var(--display);
  color: #9a625d;
}
.confetti-stage.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}
.confetti-stage .invitation-hint {
  bottom: 12px;
}
.berry-stage.invitation-stage {
  background: radial-gradient(ellipse at 50% 30%, #f3e5ea, #dfcbd5);
}
.berry-stage .invitation-book {
  overflow: hidden;
  background: #6e263e;
}
.berry-stage .berry-card {
  background: linear-gradient(135deg, #943c56, #62283f);
  border: 1px solid #d3ad99;
}
.berry-sleeve {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #ffffff03 0 1px, transparent 1px 5px),
    linear-gradient(140deg, #722d48, #492035);
  color: #f6d9bc;
  border: 1px solid #c69c82;
  box-shadow: 0 8px 15px #260e2066;
  transition: transform 1.1s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.berry-sleeve:before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid #d6b58d77;
}
.berry-sleeve > span {
  font-size: 28px;
  margin-bottom: 24px;
}
.berry-sleeve strong {
  font: 400 32px/1.2 var(--display);
  text-align: center;
}
.berry-sleeve small {
  font-size: 7px;
  letter-spacing: 0.2em;
  margin-top: 32px;
}
.berry-stage.is-open .berry-sleeve {
  transform: translateY(-105%);
}
.preview-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}
.preview-effect {
  position: absolute;
  left: var(--x);
  bottom: 8%;
  font-size: var(--size);
  animation: preview-float 4s ease-out both;
  will-change: transform, opacity;
}
.effect-heart {
  color: #bc5e6b;
  filter: drop-shadow(0 2px 2px #a6545d22);
}
.effect-heart i {
  display: block;
  font-style: normal;
  animation: heartbeat 1s ease-in-out infinite;
}
.effect-butterfly {
  width: 20px;
  height: 16px;
  animation: butterfly-flight 4.5s ease-in-out both;
}
.effect-butterfly i,
.effect-butterfly b {
  position: absolute;
  top: 0;
  width: 11px;
  height: 15px;
  background: linear-gradient(135deg, #f6dfae, #cd9f6c);
  border: 1px solid #ba8c5c;
  border-radius: 85% 20% 75% 35%;
  transform-origin: right center;
  animation: wing-flap 0.25s ease-in-out infinite alternate;
}
.effect-butterfly b {
  left: 11px;
  transform-origin: left center;
  border-radius: 20% 85% 35% 75%;
  animation-direction: alternate-reverse;
}
.effect-balloon {
  width: var(--size);
  height: calc(var(--size) * 1.25);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 30% 25%, #fff9, transparent 28%), hsl(calc(345 + var(--hue)) 65% 72%);
  box-shadow: inset -3px -4px 5px #a5524833;
  animation-duration: 4.8s;
}
.effect-balloon:before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 40%;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #c98e87;
}
.effect-balloon:after {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  height: 45px;
  width: 8px;
  border-left: 1px solid #9e7c6a88;
  border-radius: 50%;
}
.effect-particle {
  color: #f3ce91;
  text-shadow: 0 0 8px #fff7d9;
  animation: particle-rise 3.2s ease-out both;
}
@keyframes preview-float {
  0% {
    opacity: 0;
    transform: translate(0, 20px) scale(0.65);
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -340px) scale(1.1);
  }
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.25);
  }
  36% {
    transform: scale(1);
  }
  52% {
    transform: scale(1.15);
  }
}
@keyframes wing-flap {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(70deg);
  }
}
@keyframes butterfly-flight {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-15deg);
  }
  15% {
    opacity: 1;
  }
  45% {
    transform: translate(calc(var(--drift) + 20px), -140px) rotate(12deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -330px) rotate(-20deg);
  }
}
@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  20% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -300px) rotate(120deg) scale(0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-effects {
    display: none;
  }
  .invitation-stage * {
    transition: none !important;
    animation: none !important;
  }
}
.confetti-stage .envelope-pocket,
.confetti-stage .envelope-back {
  transition: transform 1s 0.25s;
}
.confetti-stage.is-open .envelope-pocket,
.confetti-stage.is-open .envelope-back {
  transform: translateY(80%);
}
.confetti-stage.is-open .envelope-flap {
  transform: translateY(80%) rotateX(180deg);
}

/* A single stationery cover replaces the paired door panels. */
.garden-stage .invitation-book {
  transform: rotate(-3deg);
  transition: transform 1.1s;
}
.garden-stage .invitation-leaf {
  width: 100%;
  border: 1px solid #d8c7ac;
  background:
    radial-gradient(ellipse at 10% 0%, #dfe4d6aa, transparent 40%),
    radial-gradient(ellipse at 100% 100%, #d4ddcaaa, transparent 40%),
    repeating-linear-gradient(0deg, #ae98720a 0 1px, transparent 1px 3px), #faf5e9;
  box-shadow:
    inset 5px 0 8px #95806422,
    2px 3px 6px #70502d22;
  border-radius: 2px;
  backface-visibility: hidden;
  transform-origin: 0 50%;
  transition:
    transform 1.2s cubic-bezier(0.25, 0.65, 0.25, 1),
    filter 1.2s;
}
.garden-stage .invitation-leaf:before {
  inset: 18px;
  border: 1px solid #ac937755;
  border-radius: 110px 110px 0 0;
}
.garden-stage .cover-ornament {
  top: 32px;
  font-size: 31px;
  color: #6d826b;
  opacity: 0.8;
}
.garden-stage .cover-name {
  font-size: 44px;
  line-height: 1.15;
  text-align: center;
  margin: 22px 0;
  color: #81534d;
  font-style: normal;
}
.garden-stage .cover-name i {
  font-size: 30px;
  font-weight: 400;
}
.garden-stage .cover-word {
  font-size: 6px;
  letter-spacing: 0.18em;
  margin-top: 0;
  color: #6e7864;
}
.cover-date {
  font-size: 8px;
  letter-spacing: 0.22em;
  margin-top: 18px;
}
.garden-stage .invitation-seal {
  top: auto;
  bottom: 13px;
  width: 25px;
  height: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
}
.garden-stage.is-open .invitation-book {
  transform: rotate(0deg);
}
.garden-stage.is-open .leaf-left {
  transform: rotateY(-174deg);
  filter: brightness(0.85);
  box-shadow: none;
}
.garden-stage.is-open .invitation-leaf > span {
  opacity: 1;
}
.garden-stage.is-open .invitation-seal {
  transform: translateX(-50%) scale(0.6);
}
/* Drawing the curtains changes their width, preserving the fabric folds. */
.evening-stage .invitation-leaf,
.evening-stage .leaf-right {
  width: 50.5%;
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    #0a1e18 0px,
    #1c3a2d 5px,
    #42604d 10px,
    #234331 15px,
    #10291f 22px
  );
  background-size: 22px 100%;
  box-shadow:
    inset -3px 0 5px #0007,
    3px 0 7px #0006;
  transform: none;
  transition:
    width 1.5s cubic-bezier(0.3, 0.02, 0.2, 1),
    border-radius 1.5s;
  filter: none;
}
.evening-stage .leaf-right {
  box-shadow:
    inset 3px 0 5px #0007,
    -3px 0 7px #0006;
  background-position: right top;
}
.evening-stage .cover-name {
  display: none;
}
.evening-stage .invitation-seal {
  display: none;
}
.evening-stage.is-open .leaf-left,
.evening-stage.is-open .leaf-right {
  width: 10%;
  transform: none;
  border-radius: 0;
  filter: none;
}
.evening-stage .invitation-book:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 3;
  background: linear-gradient(#89774c, #d2ba83 30%, #79643b 65%, #1b3025 70%);
  box-shadow: 0 3px 5px #0006;
}
/* The card sits inside a fixed pocket; only the flap and card move. */
.confetti-stage .invitation-book {
  transform: translateY(5px);
  isolation: isolate;
}
.confetti-stage .style-card {
  position: absolute;
  bottom: 6px;
  left: 0;
  transform-origin: center bottom;
  transform: scale(0.54);
  transition: transform 1.1s cubic-bezier(0.25, 0.7, 0.25, 1);
  filter: brightness(0.97);
}
.confetti-stage.is-open .style-card {
  transform: translateY(-34%) scale(0.74);
  transition-delay: 0.35s;
}
.envelope-back,
.envelope-pocket,
.envelope-flap {
  left: 0;
  width: 100%;
  height: 55%;
  bottom: 0;
}
.envelope-back {
  z-index: -1;
}
.envelope-pocket {
  clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 2px 2px #865e4833;
}
.envelope-flap {
  height: 55%;
  clip-path: polygon(0 0, 100% 0, 50% 66%);
  transform-origin: 50% 0;
  transition:
    transform 0.7s cubic-bezier(0.25, 0.6, 0.25, 1),
    z-index 0s 0.35s;
}
.confetti-stage.is-open .envelope-pocket,
.confetti-stage.is-open .envelope-back {
  transform: none;
}
.confetti-stage.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}
/* Upper and lower wings meet at an upright body. */
.effect-butterfly {
  width: 28px;
  height: 24px;
  perspective: 80px;
}
.effect-butterfly i,
.effect-butterfly b {
  top: 0;
  width: 13px;
  height: 21px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 80% 30%, #fff2cd 0%, #dba86c 55%, #926540 80%, transparent 82%) top/100% 65%
      no-repeat,
    radial-gradient(ellipse at 85% 25%, #eec68c 0%, #ac7b4a 65%, transparent 70%) bottom/80% 55% no-repeat;
  transform-origin: 100% 50%;
  animation: butterfly-left 0.3s ease-in-out infinite alternate;
}
.effect-butterfly b {
  left: 14px;
  background:
    radial-gradient(ellipse at 20% 30%, #fff2cd 0%, #dba86c 55%, #926540 80%, transparent 82%) top/100% 65%
      no-repeat,
    radial-gradient(ellipse at 15% 25%, #eec68c 0%, #ac7b4a 65%, transparent 70%) bottom left/80% 55%
      no-repeat;
  transform-origin: 0 50%;
  animation: butterfly-right 0.3s ease-in-out infinite alternate;
}
.effect-butterfly em {
  position: absolute;
  top: 5px;
  left: 13px;
  width: 2px;
  height: 15px;
  background: #745132;
  border-radius: 50%;
}
.effect-butterfly em:before,
.effect-butterfly em:after {
  content: '';
  position: absolute;
  top: -5px;
  width: 4px;
  height: 7px;
  border-top: 1px solid #745132;
  border-radius: 50%;
}
.effect-butterfly em:before {
  right: 0;
  transform: rotate(30deg);
}
.effect-butterfly em:after {
  left: 0;
  transform: rotate(-30deg);
}
@keyframes butterfly-left {
  from {
    transform: rotateY(5deg);
  }
  to {
    transform: rotateY(65deg);
  }
}
@keyframes butterfly-right {
  from {
    transform: rotateY(-5deg);
  }
  to {
    transform: rotateY(-65deg);
  }
}
.invitation-dialog {
  padding: 48px 40px 24px;
  border: 1px solid #d7c9b3;
  border-radius: 8px;
  background: #f5eee4;
  max-width: calc(100vw - 30px);
  max-height: 94dvh;
  overflow: auto;
  box-shadow: 0 24px 100px #0005;
}
.invitation-dialog[open] {
  animation: invitation-zoom 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.invitation-dialog::backdrop {
  background: #1b1923b3;
  backdrop-filter: blur(8px);
}
.preview-close {
  position: absolute;
  right: 12px;
  top: 7px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #795b50;
  cursor: pointer;
  border-radius: 50%;
}
.preview-close:focus-visible {
  outline: 2px solid #9c6259;
}
.enlarged-invitation .style-card {
  width: min(360px, calc(100vw - 110px));
  height: auto;
  aspect-ratio: 255/350;
  transform: none !important;
  filter: none;
  box-shadow: 0 12px 30px #38251833;
}
.enlarged-invitation .style-card strong {
  font-size: clamp(38px, 7vw, 60px);
}
.enlarged-invitation .card-kicker,
.enlarged-invitation .card-detail {
  font-size: 9px;
}
.invitation-dialog > p {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #806f65;
  text-align: center;
  margin: 22px 0 0;
}
@keyframes invitation-zoom {
  from {
    opacity: 0;
    transform: scale(0.75) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-dialog[open] {
    animation: none;
  }
  .invitation-stage * {
    transition: none !important;
    animation: none !important;
  }
}

/* Photographic paper and wax are reusable; all lettering is live HTML. */
.garden-stage .invitation-leaf {
  background: #eee3ce url('../assets/garden-paper-seal.png') center/100% 100% no-repeat;
  border: 0;
  box-shadow: 2px 4px 8px #70502d33;
  filter: none;
}
.garden-stage .invitation-leaf:before,
.garden-stage .cover-ornament,
.garden-stage .invitation-seal,
.garden-stage .cover-word,
.garden-stage .cover-date {
  display: none;
}
.garden-stage .cover-name {
  position: absolute;
  top: 23%;
  left: 10%;
  width: 80%;
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  color: #705747;
  text-shadow: 0 1px 0 #fff8;
}
.garden-stage .cover-name i {
  font-size: 22px;
}
.garden-stage .invitation-book {
  transform: rotate(-2deg);
}
.garden-stage.is-open .invitation-book {
  transform: rotate(0);
}
.garden-stage.is-open .leaf-left {
  transform: rotateY(-165deg);
  filter: brightness(0.95);
}
/* Drapes travel sideways as continuous fabric instead of collapsing to columns. */
.evening-stage .invitation-book:after,
.evening-stage .invitation-leaf:before {
  display: none;
}
.evening-stage .invitation-leaf,
.evening-stage .leaf-right {
  width: 54%;
  background: repeating-linear-gradient(
    90deg,
    #10281f 0px,
    #2c4936 9px,
    #49634c 15px,
    #294332 23px,
    #10271e 34px
  );
  background-size: 34px 100%;
  border-radius: 0 0 10px 0;
  transform: translateX(0) skewY(0);
  transition:
    transform 1.45s cubic-bezier(0.25, 0.1, 0.2, 1),
    border-radius 1.45s;
  box-shadow:
    inset -6px 0 12px #06160e66,
    5px 0 12px #0005;
  will-change: transform;
}
.evening-stage .leaf-right {
  background-position: right top;
  border-radius: 0 0 0 10px;
  box-shadow:
    inset 6px 0 12px #06160e66,
    -5px 0 12px #0005;
}
.evening-stage.is-open .leaf-left {
  width: 54%;
  transform: translateX(-87%) skewY(-5deg);
  border-radius: 0 0 70% 0;
}
.evening-stage.is-open .leaf-right {
  width: 54%;
  transform: translateX(87%) skewY(5deg);
  border-radius: 0 0 0 70%;
}
/* Closing reverses the sequence: card down, then flap folds over it. */
.confetti-stage .invitation-book {
  perspective: none;
  isolation: isolate;
}
.envelope-back {
  z-index: 0;
  transform: none !important;
}
.confetti-stage .style-card {
  z-index: 1;
  transform: scale(0.51);
  transition: transform 0.8s cubic-bezier(0.25, 0.65, 0.25, 1) 0s;
}
.envelope-pocket {
  z-index: 2;
  transform: none !important;
}
.envelope-flap {
  z-index: 3;
  transform: rotateX(0deg);
  transition:
    transform 0.65s cubic-bezier(0.3, 0.1, 0.3, 1) 0.85s,
    z-index 0s 0.85s;
  backface-visibility: hidden;
}
.confetti-stage.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
  transition:
    transform 0.65s cubic-bezier(0.3, 0.1, 0.3, 1),
    z-index 0s 0.34s;
}
.confetti-stage.is-open .style-card {
  transform: translateY(-34%) scale(0.74);
  transition: transform 0.95s cubic-bezier(0.25, 0.65, 0.25, 1) 0.55s;
}
.confetti-stage .envelope-pocket,
.confetti-stage .envelope-back {
  transition: none;
}
@media (min-width: 561px) and (max-width: 800px) {
  .garden-stage .cover-name {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-stage * {
    transition: none !important;
    animation: none !important;
  }
}
.garden-stage .cover-name {
  top: 17%;
  font-size: 32px;
  line-height: 1.08;
}
@media (min-width: 561px) and (max-width: 800px) {
  .garden-stage .cover-name {
    font-size: 27px;
  }
}

/* EventCard brand: black, rose, blush, light gray. */
.garden-stage .garden-half {
  width: 50%;
  background: #eee url('../assets/garden-paper-open.png') left center/200% 100% no-repeat;
  border: 0;
  backface-visibility: hidden;
  box-shadow: none;
  transition: transform 1.1s cubic-bezier(0.25, 0.65, 0.25, 1) 0.3s;
}
.garden-stage .garden-half.leaf-right {
  left: auto;
  right: 0;
  background-position: right center;
  transform-origin: 100% 50%;
}
.garden-stage .garden-half.leaf-left {
  transform-origin: 0 50%;
}
.garden-stage.is-open .garden-half.leaf-left {
  transform: rotateY(-160deg);
  filter: none;
}
.garden-stage.is-open .garden-half.leaf-right {
  transform: rotateY(160deg);
  filter: none;
}
.garden-cover-title {
  position: absolute;
  z-index: 3;
  top: 22%;
  left: 10%;
  width: 80%;
  font: 400 27px/1.2 var(--display);
  text-align: center;
  color: var(--rose);
  pointer-events: none;
  transition: opacity 0.2s 0.1s;
}
.garden-stage.is-open .garden-cover-title {
  opacity: 0;
}
.garden-stage .invitation-seal {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 65px;
  height: 65px;
  background: url('../assets/garden-wax-seal.png') center/contain no-repeat;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition:
    transform 0.55s ease-in,
    opacity 0.5s 0.15s;
  z-index: 4;
}
.garden-stage.is-open .invitation-seal {
  transform: translate(-35%, 200%) rotate(35deg);
  opacity: 0;
}
/* Keep an opaque back face on the flap so it remains visible when raised. */
.confetti-stage .invitation-book {
  perspective: 1000px;
}
.envelope-flap {
  backface-visibility: visible;
  transform-style: flat;
  background: linear-gradient(170deg, var(--blush), #d99d9d);
  box-shadow: none;
}
.envelope-flap span {
  backface-visibility: hidden;
}
.confetti-stage.is-open .envelope-flap {
  z-index: 0;
  transform: rotateX(178deg);
  filter: brightness(0.92);
}
/* Berry unwraps diagonally around its gold band. */
.berry-stage .berry-sleeve {
  transform-origin: 0 100%;
  transition:
    transform 1.25s cubic-bezier(0.3, 0.05, 0.2, 1),
    opacity 0.3s 0.85s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.berry-stage .berry-sleeve:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 67%;
  height: 18px;
  background: linear-gradient(90deg, var(--rose), var(--blush), var(--rose));
  box-shadow: 0 2px 5px #0002;
}
.berry-stage .invitation-book {
  perspective: 1000px;
  overflow: visible;
  background: none;
}
.berry-stage.is-open .berry-sleeve {
  transform: translate(-40%, 35%) rotate(-35deg) rotateY(-100deg);
  opacity: 0;
}
.berry-stage .style-card {
  transition:
    transform 1s 0.25s,
    filter 1s;
}
.berry-stage.is-open .style-card {
  transform: translateY(-4px) rotate(2deg);
}
/* Invitation-led editorial steps, using the existing brand colors. */
.steps {
  border: 0;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
}
.steps .step,
.steps .step:not(:last-child) {
  position: relative;
  padding: 24px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  min-height: 315px;
  overflow: hidden;
  transition: transform 0.3s;
}
.steps .step:nth-child(even) {
  background: color-mix(in srgb, var(--blush) 42%, var(--white));
}
.steps .step:hover {
  transform: translateY(-5px);
}
.steps .step-number {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--rose);
}
.steps .step h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 20px 0 12px;
  font-weight: 400;
}
.steps .step p {
  font-size: 12px;
  line-height: 1.75;
  max-width: 240px;
}
.step-art {
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}
.step-art-1 span {
  width: 47px;
  height: 66px;
  background: var(--white);
  border: 1px solid var(--blush);
  box-shadow: 0 4px 10px #0001;
  transform: rotate(-15deg);
  margin-right: -17px;
}
.step-art-1 span:nth-child(2) {
  background: var(--blush);
  transform: translateY(-8px);
}
.step-art-1 span:nth-child(3) {
  background: var(--rose);
  transform: rotate(15deg);
}
.step-art-2 span {
  font: italic 48px var(--display);
  color: var(--rose);
}
.step-art-2 i {
  width: 18px;
  height: 18px;
  background: var(--rose);
  border-radius: 50%;
  margin-left: 12px;
  border: 4px solid var(--white);
}
.step-art-2 i:last-child {
  background: var(--blush);
}
.step-art-3 span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 86px;
  border: 1px solid var(--blush);
  border-radius: 5px;
  background: var(--white);
  font-size: 28px;
  color: var(--rose);
  box-shadow: 6px 7px 0 var(--blush);
}
.step-art-4 span {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  background: var(--rose);
  color: var(--white);
  font-size: 35px;
  border-radius: 50%;
}
.step-art-4 i {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  opacity: 0.3;
}
.hero-invitation {
  transition: transform 0.7s;
  cursor: pointer;
}
.hero-invitation:hover {
  transform: rotate(-2deg) translateY(-8px);
}
.hero-template-trigger {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-invitation:has(.hero-template-trigger:focus-visible) {
  outline: 3px solid var(--rose);
  outline-offset: 6px;
}
.template-gallery {
  width: min(1000px, calc(100vw - 32px));
  max-height: 92dvh;
  overflow: auto;
  padding: 48px 32px 32px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.template-gallery::backdrop {
  background: #000a;
  backdrop-filter: blur(8px);
}
.template-gallery[open] {
  animation: invitation-zoom 0.45s ease both;
}
.template-gallery h2 {
  font: 400 clamp(32px, 5vw, 50px)/1.12 var(--display);
  letter-spacing: -0.03em;
  max-width: 680px;
  margin: 15px 0;
}
.template-gallery h2 em {
  color: var(--rose);
  font-weight: 400;
}
.template-gallery > p {
  font-size: 13px;
  color: #0009;
  line-height: 1.7;
  margin-bottom: 30px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery-template {
  padding: 16px 12px;
  border: 1px solid #0001;
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-template:hover {
  transform: translateY(-5px);
}
.gallery-template > .style-card {
  width: 100%;
  height: auto;
  aspect-ratio: 255/350;
  transform: none !important;
  box-shadow: 0 4px 10px #0001;
  pointer-events: none;
}
.gallery-template .style-card strong {
  font-size: 27px;
  margin: 17px 0;
}
.gallery-template .card-kicker,
.gallery-template .card-detail {
  font-size: 5px;
}
.gallery-template .card-flourish,
.gallery-template .evening-stars {
  top: 18px;
  font-size: 14px;
}
.gallery-template .bottom {
  top: auto;
  bottom: 15px;
}
.gallery-template > span {
  display: block;
  text-align: left;
  margin-top: 15px;
  font: 400 22px var(--display);
}
/* Slow coordinated movement, with separate depth for the image slip. */
.sharing-visual.is-visible .browser-frame {
  animation: sharing-page-float 7s ease-in-out infinite;
}
.sharing-visual.is-visible .image-slip {
  animation: sharing-image-float 6s ease-in-out infinite;
}
.sharing-visual.is-visible .browser-flower {
  animation: sharing-flower 14s linear infinite;
}
.sharing-visual.is-visible .browser-line {
  animation: sharing-rule 4s ease-in-out infinite;
}
.sharing-visual.is-visible:before,
.sharing-visual.is-visible:after {
  animation: sharing-orbit 8s ease-in-out infinite alternate;
}
.sharing-visual.is-visible:after {
  animation-delay: -4s;
}
@keyframes sharing-page-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}
@keyframes sharing-image-float {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-17px) rotate(3deg);
  }
}
@keyframes sharing-flower {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sharing-rule {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.6);
  }
}
@keyframes sharing-orbit {
  from {
    transform: scale(0.97);
    opacity: 0.4;
  }
  to {
    transform: scale(1.04);
    opacity: 0.8;
  }
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .steps {
    gap: 12px;
  }
  .steps .step,
  .steps .step:not(:last-child) {
    padding: 20px;
    min-height: 300px;
  }
  .steps .step h3 {
    font-size: 22px;
  }
  .step-art {
    height: 85px;
  }
  .template-gallery {
    padding: 45px 18px 22px;
  }
  .gallery-grid {
    gap: 10px;
  }
  .gallery-template {
    padding: 10px 8px;
  }
  .gallery-template .style-card strong {
    font-size: 22px;
  }
  .gallery-template .card-kicker,
  .gallery-template .card-detail {
    font-size: 4px;
  }
}
@media (max-width: 380px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sharing-visual *,
  .sharing-visual:before,
  .sharing-visual:after,
  .template-gallery[open] {
    animation: none !important;
  }
  .invitation-stage * {
    transition: none !important;
  }
}

/* Slower seal release and paper reveal, with quiet cover lettering. */
.garden-cover-title {
  top: 16%;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #705747;
  text-shadow: 0 1px 0 #fff6;
  transition: opacity 0.5s 0.45s;
}
.garden-cover-title small {
  display: block;
  font-family: var(--body);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
  color: #8b7765;
}
.garden-cover-title i {
  font-weight: 400;
}
.garden-stage .garden-half {
  transition: transform 1.9s cubic-bezier(0.25, 0.6, 0.25, 1) 0.7s;
}
.garden-stage .invitation-seal {
  transition:
    transform 1s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.75s 0.25s;
}
.garden-stage .invitation-book {
  transition: transform 2s;
}
/* A satin bow unties, then the loose ribbon drops before the cover opens. */
.berry-stage .berry-sleeve:after {
  display: none;
}
.berry-stage .berry-sleeve {
  transition:
    transform 1.3s cubic-bezier(0.3, 0.05, 0.2, 1) 0s,
    opacity 0.4s 0s;
}
.berry-stage.is-open .berry-sleeve {
  transition:
    transform 1.4s cubic-bezier(0.3, 0.05, 0.2, 1) 1.65s,
    opacity 0.5s 2.4s;
}
.silk-ribbon {
  position: absolute;
  z-index: 4;
  top: 68%;
  left: 0;
  width: 100%;
  height: 20px;
  pointer-events: none;
  transition:
    transform 0.8s 0.6s,
    opacity 0.5s 0.6s;
  filter: drop-shadow(0 3px 3px #270c2333);
}
.silk-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #ad666e, #d9949a 12%, #f7cdcf 46%, #e6a9af 60%, #bc7881 93%, #efb7b7);
  border-top: 1px solid #f7d5d6;
  border-bottom: 1px solid #a9617044;
}
.bow-loop {
  position: absolute;
  top: -15px;
  width: 44px;
  height: 31px;
  z-index: 2;
  border: 1px solid #e9b3b9;
  background: linear-gradient(150deg, #a96572 0%, #e6a9af 27%, #f9d3d5 43%, #d58f9c 60%, #a45d6d 95%);
  box-shadow: inset 0 -3px 5px #8d4e6055;
  transition:
    transform 0.85s ease,
    opacity 0.55s 0.25s;
}
.bow-left {
  right: 50%;
  border-radius: 60% 20% 30% 55%;
  transform: rotate(22deg);
  transform-origin: right bottom;
}
.bow-right {
  left: 50%;
  border-radius: 20% 60% 55% 30%;
  transform: rotate(-22deg);
  transform-origin: left bottom;
}
.bow-knot {
  position: absolute;
  left: calc(50% - 8px);
  top: -3px;
  width: 16px;
  height: 20px;
  z-index: 4;
  border-radius: 35%;
  background: linear-gradient(90deg, #ad6577, #f3c8cd 40%, #d18b99 75%, #99536b);
  box-shadow: 0 2px 3px #44172844;
  transition:
    transform 0.8s,
    opacity 0.6s 0.2s;
}
.bow-tail {
  position: absolute;
  top: 9px;
  width: 15px;
  height: 52px;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  background: linear-gradient(90deg, #b66c80, #f3c7ca 48%, #d89aa7 75%, #ac657a);
  transition: transform 0.85s ease;
  transform-origin: top center;
}
.tail-left {
  right: 50%;
  transform: rotate(23deg);
}
.tail-right {
  left: 50%;
  transform: rotate(-23deg);
}
.berry-stage.is-open .bow-left {
  transform: translateX(-35px) rotate(-12deg) scaleX(0.25);
  opacity: 0;
}
.berry-stage.is-open .bow-right {
  transform: translateX(35px) rotate(12deg) scaleX(0.25);
  opacity: 0;
}
.berry-stage.is-open .bow-knot {
  transform: scale(0.3);
  opacity: 0;
}
.berry-stage.is-open .tail-left {
  transform: translateX(-40px) rotate(65deg);
}
.berry-stage.is-open .tail-right {
  transform: translateX(40px) rotate(-65deg);
}
.berry-stage.is-open .silk-ribbon {
  transform: translate(8%, 240px) rotate(18deg);
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(0.4, 0.1, 0.8, 1) 0.85s,
    opacity 0.65s 1.3s;
}
@media (prefers-reduced-motion: reduce) {
  .invitation-stage * {
    transition: none !important;
    animation: none !important;
  }
}

/* Photographed blush cotton paper mapped consistently onto the envelope layers. */
.confetti-stage .envelope-back,
.confetti-stage .envelope-pocket,
.confetti-stage .envelope-flap {
  background: var(--blush) url('../assets/confetti-envelope-real.png') center/100% 100% no-repeat;
  border-radius: 3px;
}
.confetti-stage .envelope-pocket {
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
}
.confetti-stage .envelope-pocket:after {
  display: none;
}
.confetti-stage .envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  filter: drop-shadow(0 2px 1px #713c3c22);
}
.confetti-stage .envelope-flap span {
  display: none;
}
.confetti-stage.is-open .envelope-flap {
  filter: brightness(0.96);
}
.confetti-stage .envelope-back {
  background-size: 400% 400%;
  background-position: 20% 10%;
}
.confetti-stage .envelope-pocket {
  clip-path: polygon(0 0, 50% 72%, 100% 0, 100% 100%, 0 100%);
}
.confetti-stage .envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 72%);
}

/* Browse → preview → customize: the same invitation throughout. */
.browse-templates {
  border: 0;
  cursor: pointer;
}
.preview-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 24px;
}
.preview-back {
  background: none;
  border: 0;
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
}
.preview-actions .button {
  font-size: 12px;
  text-align: center;
  justify-content: center;
}
.editor-page {
  background: var(--paper);
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  border-bottom: 1px solid #0001;
  gap: 20px;
}
.editor-return {
  font-size: 12px;
  color: var(--rose);
  font-weight: 600;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding-block: 64px;
}
.editor-controls h1 {
  font: 400 clamp(44px, 5vw, 64px)/1.1 var(--display);
  letter-spacing: -0.04em;
  margin: 15px 0 20px;
}
.editor-controls h1 em {
  color: var(--rose);
  font-weight: 400;
}
.editor-controls > p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 400px;
  color: #0009;
  margin-bottom: 28px;
}
.editor-controls label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 22px 0 9px;
}
.editor-controls input,
.editor-controls textarea {
  display: block;
  width: 100%;
  background: var(--white);
  border: 1px solid #0002;
  border-radius: 6px;
  padding: 13px 14px;
  font: 400 14px/1.65 var(--body);
  color: var(--ink);
  resize: vertical;
}
.editor-controls small {
  display: block;
  font-size: 10px;
  color: #0008;
  margin-top: 6px;
}
.editor-form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.editor-form-actions .button {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.editor-preview-button {
  border: 0;
  border-bottom: 1px solid var(--rose);
  padding: 8px 0;
  background: none;
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
}
.editor-status {
  font-size: 11px;
  line-height: 1.7;
  color: #0009;
  min-height: 24px;
  margin-top: 18px;
}
.editor-preview {
  align-self: start;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  background: color-mix(in srgb, var(--blush) 40%, var(--white));
  border-radius: 12px;
  overflow: hidden;
}
.editor-card-mount {
  width: min(320px, 100%);
  margin: 28px 0 20px;
}
.editor-card-mount .style-card {
  width: 100%;
  height: auto;
  aspect-ratio: 255/350;
  transform: none !important;
  overflow: hidden;
}
.editor-card-mount strong {
  overflow-wrap: anywhere;
  max-width: 90%;
  font-size: clamp(32px, 4vw, 48px);
}
.editor-card-mount .card-kicker,
.editor-card-mount .card-detail {
  max-width: 85%;
  overflow-wrap: anywhere;
}
.editor-preview > p {
  font-size: 11px;
  color: #0008;
}
@media (max-width: 800px) {
  .editor-layout {
    gap: 24px;
    padding-block: 40px;
  }
  .editor-preview {
    padding: 22px 14px;
  }
  .editor-card-mount .style-card strong {
    font-size: 32px;
  }
  .editor-card-mount .card-kicker,
  .editor-card-mount .card-detail {
    font-size: 6px;
  }
  .editor-card-mount .card-flourish,
  .editor-card-mount .evening-stars {
    top: 20px;
  }
  .editor-card-mount .bottom {
    top: auto;
    bottom: 18px;
  }
}
@media (max-width: 560px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    position: static;
    grid-row: 1;
  }
  .editor-card-mount {
    max-width: 250px;
  }
  .editor-header .brand {
    width: 140px;
  }
  .editor-return {
    font-size: 10px;
  }
  .editor-preview .section-index {
    font-size: 9px;
  }
  .editor-controls h1 {
    font-size: 44px;
  }
}

/* Gallery thumbnails replay their own invitation's opening on hover or focus. */
.gallery-template {
  overflow: hidden;
}
.gallery-template .gallery-animation {
  width: 100%;
  height: auto;
  aspect-ratio: 255/350;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 3px;
}
.gallery-template .gallery-animation .invitation-book {
  width: 78%;
  flex: none;
  filter: drop-shadow(0 6px 7px #0002);
}
.gallery-template .gallery-animation .style-card {
  box-shadow: none;
}
.gallery-template .gallery-animation .style-card strong {
  font-size: clamp(20px, 3vw, 34px);
  margin: 17px 0;
}
.gallery-template .gallery-animation .card-kicker,
.gallery-template .gallery-animation .card-detail {
  font-size: 5px;
}
.gallery-template .gallery-animation .garden-cover-title {
  font-size: 18px;
}
.gallery-template .gallery-animation .garden-cover-title small {
  font-size: 4px;
  margin-bottom: 7px;
}
.gallery-template .gallery-animation .invitation-seal {
  width: 42px;
  height: 42px;
}
.gallery-template .gallery-animation .berry-sleeve strong {
  font-size: 22px;
}
.gallery-template .gallery-animation .berry-sleeve > span {
  font-size: 20px;
  margin-bottom: 16px;
}
.gallery-template .gallery-animation .berry-sleeve small {
  font-size: 5px;
  margin-top: 25px;
}
.gallery-template .gallery-animation .silk-ribbon {
  height: 13px;
}
.gallery-template .gallery-animation .bow-loop {
  width: 30px;
  height: 23px;
  top: -13px;
}
.gallery-template .gallery-animation .bow-tail {
  width: 11px;
  height: 36px;
}
.gallery-template .gallery-animation .bow-knot {
  width: 12px;
  height: 15px;
  left: calc(50% - 6px);
}
@media (max-width: 560px) {
  .gallery-template .gallery-animation .style-card strong {
    font-size: 18px;
  }
  .gallery-template .gallery-animation .card-kicker,
  .gallery-template .gallery-animation .card-detail {
    font-size: 3px;
  }
  .gallery-template .gallery-animation .garden-cover-title {
    font-size: 13px;
  }
  .gallery-template .gallery-animation .garden-cover-title small {
    font-size: 3px;
  }
  .gallery-template .gallery-animation .invitation-seal {
    width: 30px;
    height: 30px;
  }
  .gallery-template .gallery-animation .berry-sleeve strong {
    font-size: 17px;
  }
}
.start-blank-invitation {
  display: block;
  text-align: center;
  color: var(--rose);
  font-size: 12px;
  padding: 9px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Every template is a full, continuous invitation rather than a single card. */
.long-invitation {
  --invite-bg: #fbf7ef;
  --invite-text: #705747;
  --invite-accent: #a86560;
  --invite-soft: #e8dacc;
  background: var(--invite-bg);
  color: var(--invite-text);
  width: 100%;
  overflow: hidden;
  font-family: var(--body);
  text-align: center;
  isolation: isolate;
}
.long-invitation.theme-evening {
  --invite-bg: #15251f;
  --invite-text: #f3ead9;
  --invite-accent: #dec39b;
  --invite-soft: #375044;
}
.long-invitation.theme-confetti {
  --invite-bg: #fcecef;
  --invite-text: #603440;
  --invite-accent: var(--rose);
  --invite-soft: var(--blush);
}
.long-invitation.theme-berry {
  --invite-bg: #54283e;
  --invite-text: #f7e3d4;
  --invite-accent: #edb8b9;
  --invite-soft: #86485e;
}
.invitation-entrance {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 60px 28px;
  background: radial-gradient(ellipse at 50% 30%, var(--invite-soft), transparent 65%);
}
.long-cover {
  width: min(280px, 88%);
}
.long-cover > .style-card {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 255/350;
  transform: none !important;
  filter: none !important;
  margin: 0;
  box-shadow: 0 16px 38px #0002;
}
.long-eyebrow {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.8;
  color: var(--invite-accent);
}
.long-open {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--invite-accent);
  color: var(--invite-text);
  background: transparent;
  padding: 12px 4px;
  font: 400 12px var(--body);
  cursor: pointer;
}
.long-open span {
  color: var(--invite-accent);
}
.long-section {
  position: relative;
  padding: 68px 32px;
  scroll-margin-top: 15px;
}
.long-section:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 65%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--invite-soft), transparent);
}
.long-section h2 {
  font: 400 37px/1.18 var(--display);
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
  color: var(--invite-text);
  overflow-wrap: anywhere;
}
.long-section h3 {
  font: 400 24px/1.35 var(--display);
  margin: 20px 0 32px;
  color: var(--invite-text);
}
.long-section p {
  font-size: 12px;
  line-height: 2;
  max-width: 320px;
  margin: 18px auto;
  overflow-wrap: anywhere;
  color: var(--invite-text);
  opacity: 0.85;
}
.long-ornament {
  display: block;
  font:
    400 32px Georgia,
    serif;
  color: var(--invite-accent);
  margin-bottom: 28px;
}
.guest-section {
  padding-block: 90px;
}
.location-section,
.dress-section,
.rsvp-section {
  background: linear-gradient(135deg, transparent, var(--invite-soft) 220%);
}
.venue-illustration {
  width: 150px;
  height: 115px;
  margin: 32px auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--invite-soft);
  border-radius: 90px 90px 0 0;
  color: var(--invite-accent);
  background: linear-gradient(0deg, var(--invite-soft), transparent);
}
.venue-illustration span {
  font:
    400 85px/1 Georgia,
    serif;
}
.long-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 24px;
  border: 1px solid var(--invite-accent);
  border-radius: 30px;
  background: transparent;
  color: var(--invite-text);
  font: 500 11px var(--body);
  cursor: pointer;
  text-align: center;
}
.long-divider {
  display: block;
  color: var(--invite-accent);
  margin: 30px 0;
}
.long-schedule {
  list-style: none;
  padding: 0;
  max-width: 310px;
  margin: 0 auto;
  text-align: left;
}
.long-schedule li {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--invite-soft);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.long-schedule time {
  flex: 0 0 48px;
  font-size: 14px;
  color: var(--invite-accent);
  font-weight: 600;
}
.dress-swatches {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px auto;
}
.dress-swatches i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--invite-text);
  opacity: 0.75;
}
.dress-swatches i:nth-child(2) {
  background: var(--invite-accent);
}
.dress-swatches i:nth-child(3) {
  background: var(--invite-soft);
}
.dress-swatches i:nth-child(4) {
  background: var(--invite-bg);
  border: 1px solid var(--invite-soft);
}
.long-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 340px;
  margin: 32px auto;
}
.long-countdown > span {
  padding: 13px 4px;
  border: 1px solid var(--invite-soft);
  border-radius: 45px 45px 8px 8px;
}
.long-countdown strong {
  display: block;
  font: 400 32px var(--display);
  color: var(--invite-accent);
  margin: 0;
}
.long-countdown small {
  font-size: 7px;
  letter-spacing: 0.04em;
}
.long-rsvp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 300px;
  margin: 28px auto 0;
}
.long-rsvp label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 500 10px var(--body);
  margin: 0;
  color: var(--invite-text);
}
.long-rsvp input,
.long-rsvp select {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--invite-soft);
  border-radius: 5px;
  background: var(--invite-bg);
  color: var(--invite-text);
  font: 400 12px var(--body);
}
.long-rsvp .rsvp-preview-note {
  font: 400 9px/1.7 var(--body);
  color: var(--invite-text);
  opacity: 0.7;
  text-align: center;
}
.invitation-footer h2 {
  font-size: 30px;
}
.long-brand {
  display: block;
  width: 160px;
  height: 55px;
  overflow: hidden;
  margin: 30px auto 10px;
  border-radius: 3px;
  background: #fff;
}
.long-brand img {
  width: 100%;
}
.invitation-footer nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  font-size: 10px;
  margin-top: 25px;
  color: var(--invite-accent);
}
.long-preview-dialog {
  padding: 40px 0 0;
  width: min(480px, calc(100vw - 24px));
  max-height: 92dvh;
  background: var(--paper);
  border-radius: 12px;
}
.long-preview-dialog .preview-close {
  z-index: 10;
  top: 2px;
}
.long-preview-dialog .enlarged-invitation .long-cover .style-card {
  width: 100%;
  height: auto;
  aspect-ratio: 255/350;
}
.long-preview-dialog .preview-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 15px 20px;
  margin: 0;
  background: var(--paper);
  box-shadow: 0 -5px 15px #0001;
  gap: 8px;
}
.long-preview-dialog .preview-actions .preview-back {
  padding: 3px;
}
.long-preview-dialog .preview-actions .customize-template {
  min-height: 40px;
}
.editor-preview .editor-card-mount {
  width: 100%;
  max-width: 430px;
  max-height: 650px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  margin: 20px 0 12px;
  border-radius: 6px;
}
.editor-preview {
  padding: 24px 16px;
}
.editor-preview .long-section {
  padding: 50px 24px;
}
.editor-preview .long-section h2 {
  font-size: 29px;
}
.editor-preview .invitation-entrance {
  min-height: 540px;
  padding: 40px 20px;
}
.editor-section-fields {
  border-top: 1px solid #0002;
  padding: 20px 0 0;
  margin-top: 22px;
}
.editor-section-fields summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  padding-bottom: 5px;
}
@media (max-width: 800px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
  .editor-preview .long-section {
    padding: 40px 16px;
  }
  .editor-preview .long-section h2 {
    font-size: 25px;
  }
  .editor-preview .long-countdown {
    gap: 3px;
  }
  .editor-preview .long-countdown strong {
    font-size: 22px;
  }
  .editor-preview .long-section p {
    font-size: 10px;
  }
  .editor-preview .long-schedule li {
    font-size: 10px;
    gap: 10px;
  }
  .editor-preview .invitation-entrance {
    min-height: 400px;
    padding: 35px 12px;
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-preview .editor-card-mount {
    max-height: 520px;
  }
  .editor-preview .long-section {
    padding: 50px 24px;
  }
  .editor-preview .long-section h2 {
    font-size: 30px;
  }
  .editor-preview .long-section p {
    font-size: 12px;
  }
  .long-section {
    padding: 60px 25px;
  }
  .long-section h2 {
    font-size: 34px;
  }
}
.invitation-page {
  background: var(--paper);
}
.invitation-page #full-invitation {
  width: min(100%, 560px);
  margin: 0 auto;
  box-shadow: 0 0 60px #0001;
}
.invitation-preview-toolbar {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--paper);
  font-size: 10px;
  color: #0009;
}
.invitation-preview-toolbar a {
  color: var(--rose);
  font-weight: 600;
}

/* Transparent botanical artwork frames the long invitation without covering copy. */
.invitation-art {
  pointer-events: none;
  user-select: none;
}
.invitation-entrance {
  isolation: isolate;
}
.invitation-entrance > .long-eyebrow,
.invitation-entrance > .long-cover,
.invitation-entrance > .long-open {
  position: relative;
  z-index: 1;
}
.floral-corner {
  position: absolute;
  z-index: 0;
  width: 55%;
  max-width: 260px;
  height: auto;
  opacity: 0.86;
}
.corner-top-left {
  left: -15px;
  top: -12px;
}
.corner-bottom-right {
  right: -18px;
  bottom: -15px;
  transform: rotate(180deg);
  width: 43%;
}
.floral-divider {
  position: relative;
  display: block;
  width: min(210px, 75%);
  height: 66px;
  object-fit: contain;
  margin: 0 auto;
}
.long-section > .long-ornament,
.long-section > .long-divider {
  margin: 0 auto 26px;
  min-height: 66px;
}
.dress-section {
  isolation: isolate;
  padding-top: 88px;
}
.dress-floral {
  right: -24px;
  top: -15px;
  transform: scaleX(-1);
  width: 32%;
  opacity: 0.45;
  z-index: -1;
}
.invitation-footer {
  isolation: isolate;
  padding-bottom: 100px;
}
.footer-floral {
  left: -18px;
  bottom: -20px;
  transform: scaleY(-1);
  width: 48%;
  opacity: 0.65;
  z-index: -1;
}
.celebration-art {
  position: absolute;
  z-index: 0;
  width: 31%;
  max-width: 140px;
  height: auto;
  opacity: 0.75;
}
.balloons-left {
  left: -7%;
  top: 12%;
  transform: rotate(-12deg);
}
.balloons-right {
  right: -9%;
  top: 30%;
  transform: rotate(15deg) scaleX(-1);
  width: 28%;
}
.theme-evening .floral-corner,
.theme-evening .floral-divider {
  opacity: 0.7;
  filter: saturate(0.65) brightness(0.9);
}
.theme-berry .floral-divider,
.theme-berry .floral-corner {
  filter: saturate(0.7);
  opacity: 0.7;
}
@media (max-width: 560px) {
  .floral-corner {
    max-width: 210px;
  }
  .floral-divider {
    height: 56px;
  }
  .long-section > .long-ornament,
  .long-section > .long-divider {
    min-height: 56px;
  }
}

/* Ambient garden movement and restrained celebration sparkle. */
.long-invitation [data-section] {
  isolation: isolate;
}
.invitation-ambience {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.invitation-ambience i {
  position: absolute;
  left: var(--left);
  top: -10%;
  animation: invitation-drift var(--duration) linear var(--delay) infinite;
  animation-play-state: paused;
}
.is-in-view > .invitation-ambience i {
  animation-play-state: running;
}
.ambient-petal {
  width: 9px;
  height: 13px;
  background: linear-gradient(130deg, #efb7b7aa, #bd4b4b33);
  border-radius: 75% 12% 70% 30%;
  box-shadow: inset 1px 1px 2px #fff6;
}
.ambient-spark {
  width: 5px;
  height: 5px;
  background: var(--invite-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--invite-accent);
  opacity: 0.3;
}
.ambient-spark:nth-child(even) {
  width: 9px;
  height: 9px;
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.long-invitation .floral-corner {
  transform-origin: 15% 15%;
  animation: botanical-sway 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.long-invitation .is-in-view > .floral-corner {
  animation-play-state: running;
}
.long-invitation .corner-bottom-right {
  transform-origin: 85% 85%;
  animation-delay: -4s;
}
.long-invitation .celebration-art {
  animation: balloon-breathe 7s ease-in-out infinite;
  animation-play-state: paused;
}
.long-invitation .is-in-view > .celebration-art {
  animation-play-state: running;
}
.long-invitation .balloons-right {
  animation-delay: -3.5s;
}
.long-invitation .floral-divider {
  animation: divider-breathe 8s ease-in-out infinite;
  animation-play-state: paused;
}
.long-invitation .is-in-view .floral-divider {
  animation-play-state: running;
}
.location-floral {
  bottom: -15px;
  left: -24px;
  width: 31%;
  transform: scaleY(-1);
  opacity: 0.5;
}
.rsvp-floral {
  right: -25px;
  top: -10px;
  width: 30%;
  transform: scaleX(-1);
  opacity: 0.55;
}
.invitation-crest {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--invite-soft);
  outline: 1px solid var(--invite-soft);
  outline-offset: 5px;
  border-radius: 50%;
  margin: 0 auto 35px;
  color: var(--invite-accent);
  font-size: 22px;
  background: radial-gradient(circle, var(--invite-soft), transparent 75%);
}
.long-countdown > span {
  box-shadow:
    inset 0 0 0 3px var(--invite-bg),
    inset 0 0 0 4px var(--invite-soft);
}
.venue-illustration {
  position: relative;
  outline: 1px solid var(--invite-soft);
  outline-offset: 7px;
}
.venue-illustration:after {
  content: '✦';
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  background: var(--invite-bg);
  padding: 0 9px;
  font-size: 13px;
  color: var(--invite-accent);
}
.long-schedule li {
  position: relative;
  padding-left: 14px;
}
.long-schedule li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 28px;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--invite-accent);
}
.long-invitation.motion-ready .long-section > :not(.invitation-art):not(.invitation-ambience) {
  transition:
    opacity 1.1s ease,
    translate 1.1s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.long-invitation.motion-ready
  .long-section:not(.is-revealed)
  > :not(.invitation-art):not(.invitation-ambience) {
  opacity: 0;
  translate: 0 20px;
}
.long-invitation.motion-ready .long-section.is-revealed > h2 {
  transition-delay: 0.12s;
}
.long-invitation.motion-ready .long-section.is-revealed > p {
  transition-delay: 0.23s;
}
.long-open span {
  animation: invitation-cue 2.5s ease-in-out infinite;
}
.long-button {
  transition:
    background 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
@media (hover: hover) {
  .long-button:hover {
    background: var(--invite-soft);
    box-shadow: 0 4px 12px #0001;
    transform: translateY(-2px);
  }
}
@keyframes invitation-drift {
  0% {
    translate: 0 -10px;
    rotate: -25deg;
    opacity: 0;
  }
  12% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    translate: var(--drift) 700px;
    rotate: 180deg;
    opacity: 0;
  }
}
@keyframes botanical-sway {
  from {
    rotate: -1deg;
  }
  to {
    rotate: 1.5deg;
  }
}
@keyframes balloon-breathe {
  0%,
  100% {
    translate: 0 0;
    rotate: -1deg;
  }
  50% {
    translate: 0 -12px;
    rotate: 1deg;
  }
}
@keyframes divider-breathe {
  0%,
  100% {
    scale: 1;
    opacity: 0.8;
  }
  50% {
    scale: 1.035;
    opacity: 1;
  }
}
@keyframes invitation-cue {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.6;
  }
  50% {
    translate: 0 5px;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .long-invitation * {
    animation: none !important;
    transition: none !important;
  }
  .long-invitation.motion-ready .long-section > :not(.invitation-art):not(.invitation-ambience) {
    opacity: 1 !important;
    translate: none !important;
  }
  .invitation-ambience {
    display: none;
  }
}

/* A richer scene, with artwork and motion choices in the invitation editor. */
.long-invitation[data-artwork='scenic'] {
  background-image: linear-gradient(#fbf7ef33, #fbf7ef55), url('../assets/blossom-landscape.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.long-invitation[data-artwork='scenic'] .long-section {
  background-color: #fbf7efb8;
  --invite-text: #705747;
  --invite-accent: #a86560;
  --invite-soft: #e8dacc;
  --invite-bg: #fbf7ef;
}
.long-invitation[data-artwork='scenic'] .invitation-entrance {
  background: linear-gradient(#fbf7ef11, #fbf7ef66);
}
.venue-artwork {
  width: calc(100% + 36px);
  max-width: 430px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px 0 28px;
}
.venue-artwork img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 10px #0001);
}
.lantern-art {
  position: absolute;
  width: 78px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  animation: lantern-glow 5s ease-in-out infinite;
  animation-play-state: paused;
}
.guest-lantern {
  left: -12px;
  bottom: 10px;
  rotate: -4deg;
}
.countdown-lantern {
  right: -12px;
  top: 4px;
  width: 65px;
  rotate: 5deg;
  animation-delay: -2.5s;
}
.is-in-view > .lantern-art {
  animation-play-state: running;
}
.butterfly-art {
  position: absolute;
  width: 38px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  animation: butterfly-hover 8s ease-in-out infinite;
  animation-play-state: paused;
  filter: drop-shadow(0 2px 2px #0001);
}
.butterfly-one {
  right: 8%;
  top: 17%;
  rotate: -18deg;
}
.butterfly-two {
  left: 7%;
  bottom: 16%;
  width: 31px;
  rotate: 15deg;
  animation-delay: -4s;
}
.is-in-view > .butterfly-art {
  animation-play-state: running;
}
.invitation-calendar {
  max-width: 300px;
  margin: 32px auto 38px;
  padding: 22px 20px;
  border: 1px solid var(--invite-soft);
  border-radius: 90px 90px 10px 10px;
  background: linear-gradient(145deg, var(--invite-bg), transparent);
  box-shadow: 0 7px 22px #00000006;
}
.calendar-month {
  font: 400 20px var(--display);
  color: var(--invite-accent);
  padding: 14px 0 20px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px 2px;
  align-items: center;
}
.calendar-grid > span {
  font-size: 10px;
  line-height: 28px;
  height: 28px;
  text-align: center;
}
.calendar-grid .calendar-weekday {
  font-size: 8px;
  opacity: 0.55;
}
.calendar-grid .calendar-selected {
  border-radius: 50%;
  background: var(--invite-accent);
  color: var(--invite-bg);
  box-shadow:
    0 0 0 3px var(--invite-bg),
    0 0 0 4px var(--invite-accent);
  font-weight: 700;
}
.editor-controls select {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 12px;
  background: var(--white);
  border: 1px solid #0002;
  border-radius: 6px;
  font: 400 13px var(--body);
  color: var(--ink);
}
.long-invitation[data-artwork='minimal'] {
  background-image: none;
}
.long-invitation[data-artwork='minimal'] .invitation-art,
.long-invitation[data-artwork='minimal'] .invitation-ambience {
  display: none;
}
.long-invitation[data-motion='off'] * {
  animation: none !important;
  transition: none !important;
}
.long-invitation[data-motion='off'].motion-ready
  .long-section
  > :not(.invitation-art):not(.invitation-ambience) {
  opacity: 1 !important;
  translate: none !important;
}
@keyframes lantern-glow {
  0%,
  100% {
    opacity: 0.65;
    filter: drop-shadow(0 0 3px #edbd6d22);
  }
  50% {
    opacity: 0.9;
    filter: drop-shadow(0 0 10px #edbd6d55);
  }
}
@keyframes butterfly-hover {
  0%,
  100% {
    translate: 0 0;
    scale: 1 1;
  }
  25% {
    scale: 0.8 1;
  }
  50% {
    translate: -12px -16px;
    scale: 1 1;
  }
  75% {
    scale: 0.8 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .long-invitation * {
    animation: none !important;
    transition: none !important;
  }
}
.long-invitation[data-artwork='scenic'] {
  --invite-text: #705747;
  --invite-accent: #a86560;
  --invite-soft: #e8dacc;
  --invite-bg: #fbf7ef;
}

/* Preserve the backdrop's proportions in both full-page and modal previews. */
.long-invitation[data-artwork='scenic'] {
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-image: linear-gradient(#fbf7ef77, #fbf7ef77), url('../assets/blossom-landscape.png');
}
.long-invitation[data-artwork='scenic'] .invitation-entrance {
  background: linear-gradient(#fbf7ef77, #fbf7efa6);
}
.long-preview-dialog .invitation-entrance {
  padding: 54px 28px 44px;
  min-height: 590px;
  gap: 27px;
}
.long-preview-dialog .long-cover {
  width: min(255px, 78%);
}
.long-preview-dialog .theme-garden .long-cover > .style-card {
  background: linear-gradient(125deg, #fffef8, #f8f1e6);
  border-color: #d4b7a0;
}
.long-preview-dialog .theme-garden .long-cover > .style-card:before {
  border-color: #c7aa83;
  border-radius: 100px 100px 0 0;
}
.long-preview-dialog .long-cover > .style-card strong {
  font-size: 44px;
  margin: 26px 0;
}
.long-preview-dialog .long-cover > .style-card .card-kicker,
.long-preview-dialog .long-cover > .style-card .card-detail {
  font-size: 7px;
}
.long-preview-dialog .corner-top-left {
  width: 43%;
  opacity: 0.75;
}
.long-preview-dialog .corner-bottom-right {
  width: 33%;
  opacity: 0.65;
}
.long-schedule li > .timeline-event-icon {
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border: 1px solid var(--invite-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--invite-accent);
}
.timeline-event-icon svg {
  width: 17px;
  height: 17px;
}
.long-schedule li:has(.timeline-event-icon) {
  padding-left: 0;
  align-items: center;
  gap: 14px;
}
.long-schedule li:has(.timeline-event-icon):before {
  display: none;
}
.long-schedule li:has(.timeline-event-icon) time {
  flex-basis: 43px;
}

/* A round wax seal releases before the envelope opens. The pocket is unprinted paper. */
.confetti-stage .envelope-back,
.confetti-stage .envelope-pocket,
.confetti-stage .envelope-flap {
  background-image: url('../assets/confetti-envelope-real.png');
  background-size: 350% 350%;
  background-position: 25% 12%;
  border-radius: 2px;
}
.confetti-stage .envelope-back {
  box-shadow: inset 0 1px 4px #9e656655;
  background-position: 15% 15%;
  filter: brightness(0.91);
}
.confetti-stage .envelope-pocket {
  clip-path: polygon(0 0, 50% 35%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -1px 1px #a46b6b33);
}
.confetti-stage .envelope-pocket:after {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(34deg, transparent 49.6%, #9f65662b 50%, transparent 50.4%),
    linear-gradient(-34deg, transparent 49.6%, #fff5 50%, transparent 50.4%);
  pointer-events: none;
}
.confetti-stage .envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 65%);
  background-position: 35% 15%;
  transform-origin: center top;
  backface-visibility: visible;
  box-shadow: none;
  filter: brightness(1.04);
  transition:
    transform 0.85s cubic-bezier(0.3, 0.1, 0.3, 1) 0.95s,
    z-index 0s 0.95s;
}
.confetti-stage.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
  filter: brightness(0.94);
  transition:
    transform 0.85s cubic-bezier(0.3, 0.1, 0.3, 1) 0.35s,
    z-index 0s 0.8s;
}
.confetti-stage .envelope-seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 76%;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  background: url('../assets/garden-wax-seal.png') center/contain no-repeat;
  filter: drop-shadow(0 2px 2px #734b4b44);
  border-radius: 50%;
  opacity: 1;
  transition:
    transform 0.45s ease-in,
    opacity 0.3s 0.12s;
  pointer-events: none;
}
.confetti-stage.is-open .envelope-seal {
  transform: translate(-30%, 80%) rotate(22deg);
  opacity: 0;
}
.confetti-stage.is-open .style-card {
  transform: translateY(-34%) scale(0.74);
  transition: transform 1.05s cubic-bezier(0.25, 0.65, 0.25, 1) 0.95s;
}
.confetti-stage .style-card {
  transition: transform 0.85s cubic-bezier(0.25, 0.65, 0.25, 1);
}
/* The bow unties and the ribbon drops before the cover folds away like a book. */
.berry-stage .invitation-book {
  perspective: 1100px;
  transform-style: preserve-3d;
}
.berry-stage .berry-sleeve {
  transform-origin: left center;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  opacity: 1;
  clip-path: none;
  box-shadow: 2px 3px 8px #260e2033;
  transition: transform 1.35s cubic-bezier(0.25, 0.65, 0.25, 1) 0s;
}
.berry-stage.is-open .berry-sleeve {
  transform: rotateY(-170deg);
  opacity: 1;
  transition: transform 1.35s cubic-bezier(0.25, 0.65, 0.25, 1) 2.1s;
}
.berry-stage .style-card,
.berry-stage.is-open .style-card {
  transform: none;
  transition: filter 1.4s;
}
.berry-stage.is-open .silk-ribbon {
  transform: translate(4%, 260px) rotate(12deg);
  opacity: 0;
  transition:
    transform 1.25s cubic-bezier(0.4, 0.1, 0.8, 1) 0.75s,
    opacity 0.7s 1.2s;
}
.gallery-template .gallery-animation .envelope-seal {
  width: 26px;
  height: 26px;
}
@media (prefers-reduced-motion: reduce) {
  .invitation-stage * {
    transition: none !important;
    animation: none !important;
  }
}
/* Separate uncreased paper faces avoid baked-in seams crossing the moving folds. */
.confetti-stage .envelope-back,
.confetti-stage .envelope-pocket,
.confetti-stage .envelope-flap {
  background-image: linear-gradient(150deg, #ffffff16, #9955550d), url('../assets/blush-paper-texture.png');
  background-size: 100% 100%;
  background-position: center;
}
.confetti-stage .envelope-back {
  filter: brightness(0.87);
}
.confetti-stage .envelope-flap {
  filter: drop-shadow(0 2px 2px #73414144) brightness(1.06);
}
.confetti-stage.is-open .envelope-flap {
  filter: brightness(0.94);
}
.confetti-stage .envelope-seal {
  width: 42px;
  height: 42px;
}
.gallery-template .gallery-animation .envelope-seal {
  width: 27px;
  height: 27px;
}

/* Invitation polish: quiet framing, readable copy and consistent rhythm. */
.long-invitation {
  container-type: inline-size;
}
.long-invitation .invitation-entrance {
  padding: 76px 28px 56px;
  gap: 34px;
  min-height: 680px;
}
.long-invitation .long-cover {
  width: min(300px, 80%);
}
.long-cover > .style-card {
  box-shadow:
    0 24px 48px #39221e1c,
    0 2px 6px #39221e0a;
}
.long-invitation .long-cover .style-card strong {
  font-size: clamp(36px, 10cqi, 58px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.long-invitation .long-cover .confetti-card strong i,
.long-invitation .long-cover .berry-card strong i {
  font-size: 0.94em;
}
.long-invitation .long-cover .card-kicker {
  font-size: 8px;
  letter-spacing: 0.2em;
}
.long-invitation .long-cover .card-detail {
  font-size: 8px;
  line-height: 1.9;
  letter-spacing: 0.13em;
}
.long-invitation .corner-top-left {
  width: 38%;
  opacity: 0.74;
}
.long-invitation .corner-bottom-right {
  width: 30%;
  opacity: 0.58;
}
.long-invitation .long-section {
  padding: 80px 36px;
}
.long-invitation .long-eyebrow {
  font-size: 9px;
  letter-spacing: 0.23em;
}
.long-invitation .long-section h2 {
  font-size: clamp(32px, 8cqi, 44px);
  line-height: 1.16;
  margin: 20px auto 26px;
  max-width: 380px;
  text-wrap: balance;
}
.long-invitation .long-section h3 {
  font-size: 25px;
  text-wrap: balance;
}
.long-invitation .long-section p {
  font-size: 13px;
  line-height: 1.95;
  max-width: 330px;
  text-wrap: pretty;
}
.long-invitation .guest-section {
  padding-block: 100px;
}
.long-invitation .floral-divider {
  width: 170px;
  opacity: 0.8;
}
.long-invitation .long-countdown {
  gap: 0;
  border-block: 1px solid var(--invite-soft);
  padding: 22px 0;
}
.long-invitation .long-countdown > span {
  border: 0;
  border-radius: 0;
  padding: 6px;
  border-right: 1px solid var(--invite-soft);
}
.long-invitation .long-countdown > span:last-child {
  border-right: 0;
}
.long-invitation .long-countdown strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.long-invitation .long-countdown small {
  text-transform: uppercase;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.long-invitation .dress-swatches {
  gap: 14px;
  margin: 32px auto;
}
.long-invitation .dress-swatches i {
  width: 38px;
  height: 38px;
  box-shadow:
    0 0 0 4px var(--invite-bg),
    0 0 0 5px var(--invite-soft);
}
.long-invitation .long-rsvp {
  gap: 20px;
  margin-top: 32px;
}
.long-invitation .long-rsvp input,
.long-invitation .long-rsvp select {
  min-height: 48px;
  border-radius: 2px;
}
.long-invitation .long-rsvp .long-button {
  background: var(--invite-accent);
  color: var(--invite-bg);
  border-radius: 2px;
  min-height: 48px;
  letter-spacing: 0.04em;
}
.long-invitation .rsvp-preview-note {
  text-align: center;
  line-height: 1.7;
}
.confetti-stage .confetti-card:before {
  border: 1px solid #8e4e5759;
  inset: 14px;
}
.confetti-stage .confetti-card {
  background-image: linear-gradient(145deg, #ffffff15, #bd4b4b09);
}
.confetti-stage .confetti-dots {
  letter-spacing: 5px;
  font-size: 9px;
  opacity: 0.6;
}
@media (max-width: 480px) {
  .long-invitation .long-section {
    padding: 64px 26px;
  }
  .long-invitation .invitation-entrance {
    padding: 64px 22px 44px;
    min-height: 600px;
  }
  .long-invitation .guest-section {
    padding-block: 80px;
  }
}

/* Confetti: silk, luminous accents and a more generous celebration layout. */
.long-invitation.theme-confetti {
  --invite-bg: #fff6f4;
  --invite-text: #492d35;
  --invite-accent: #bd4b4b;
  --invite-soft: #efb7b7;
  background: #fff6f4;
}
.theme-confetti .invitation-entrance {
  min-height: 760px !important;
  background: radial-gradient(ellipse at 50% 42%, #fff9f2 10%, #efb7b74a 70%, #fff6f4) !important;
  padding-top: 70px !important;
}
.theme-confetti .long-cover {
  width: min(340px, 86%) !important;
}
.theme-confetti .long-cover .confetti-card {
  background: linear-gradient(145deg, #fff6ed, #efb7b7);
  color: #492d35;
  border: 1px solid #fff8;
  aspect-ratio: 0.76;
  box-shadow:
    0 30px 65px #89454b22,
    0 2px 4px #89454b12;
}
.theme-confetti .long-cover .confetti-card:before {
  inset: 18px;
  border: 1px solid #bd4b4b55;
  border-radius: 150px 150px 3px 3px;
}
.theme-confetti .long-cover .confetti-card:after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid #ffffff80;
  border-radius: 145px 145px 0 0;
  pointer-events: none;
}
.theme-confetti .long-cover .confetti-card strong {
  font-size: clamp(38px, 10cqi, 60px);
  line-height: 1.14;
  margin: 32px 24px;
  color: #923e48;
  max-width: 85%;
  text-wrap: balance;
}
.theme-confetti .long-cover .confetti-spark {
  position: static;
  margin: 0 0 26px;
  color: #bd4b4b;
  font-size: 25px;
}
.theme-confetti .long-cover .confetti-dots {
  bottom: 32px;
  color: #bd4b4b;
  letter-spacing: 7px;
  font-size: 8px;
}
.theme-confetti .long-cover .card-kicker {
  font-size: 8px;
  letter-spacing: 0.24em;
}
.theme-confetti .long-cover .card-detail {
  font-size: 8px;
  max-width: 75%;
  font-weight: 500;
}
.theme-confetti .long-open {
  border: 1px solid #bd4b4b55;
  border-radius: 30px;
  padding: 14px 24px;
  background: #fff8;
  box-shadow: 0 8px 24px #bd4b4b0b;
}
.theme-confetti .balloons-left {
  left: -9%;
  top: 10%;
  width: 34%;
  opacity: 0.85;
}
.theme-confetti .balloons-right {
  right: -10%;
  top: 49%;
  width: 30%;
  opacity: 0.75;
}
.theme-confetti .long-section {
  background-color: #fff7f3;
  background-image: linear-gradient(#fff8, #fff9), url('../assets/confetti-silk-background.png');
  background-size: cover;
  background-position: center;
  min-height: 510px;
}
.theme-confetti .guest-section {
  min-height: 580px;
  padding-block: 110px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.theme-confetti .guest-section h2 {
  font-size: clamp(42px, 10cqi, 58px);
}
.theme-confetti .guest-section p {
  font-size: 15px;
  max-width: 350px;
  line-height: 2;
}
.theme-confetti .guest-lantern {
  width: 125px;
  left: -22px;
  bottom: 8px;
  opacity: 1;
  filter: drop-shadow(0 0 18px #efb7b7);
  animation: confetti-lantern-glow 4s ease-in-out infinite;
}
.theme-confetti .location-section {
  background-image: linear-gradient(#fff9, #fff8), url('../assets/confetti-silk-background.png');
  padding-bottom: 110px !important;
}
.theme-confetti .location-floral {
  left: -18px;
  bottom: -8px;
  width: 48%;
  max-width: 270px;
  opacity: 0.85;
  transform: scaleY(-1);
}
.theme-confetti .venue-artwork {
  isolation: isolate;
}
.theme-confetti .venue-artwork:after {
  content: '';
  position: absolute;
  inset: 28% 12% 30%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 11% 58%, #fff1b9b0, transparent 10%),
    radial-gradient(ellipse at 31% 48%, #ffe8a4a0, transparent 12%),
    radial-gradient(ellipse at 50% 48%, #ffe8a4b0, transparent 12%),
    radial-gradient(ellipse at 69% 48%, #ffe8a4a0, transparent 12%),
    radial-gradient(ellipse at 89% 58%, #fff1b9b0, transparent 10%);
  mix-blend-mode: screen;
  animation: confetti-window-glow 5s ease-in-out infinite;
}
.theme-confetti .timing-section h3 {
  max-width: 280px;
  margin: 35px auto;
  font-size: 28px;
}
.theme-confetti .long-schedule {
  max-width: 340px;
  position: relative;
}
.theme-confetti .long-schedule li {
  padding: 22px 4px;
  align-items: center;
  border-bottom: 1px solid #bd4b4b25;
  font-size: 13px;
  gap: 16px;
}
.theme-confetti .timeline-event-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: #fff8;
  box-shadow: 0 5px 14px #bd4b4b0c;
  border-color: #bd4b4b44;
}
.theme-confetti .dress-section {
  padding-top: 150px !important;
  min-height: 570px;
}
.theme-confetti .dress-floral,
.theme-confetti .rsvp-floral {
  width: 62%;
  max-width: 350px;
  right: -30px;
  top: -22px;
  opacity: 0.8;
  z-index: 0;
  transform: scaleX(-1);
}
.theme-confetti .dress-section > :not(.invitation-art):not(.invitation-ambience),
.theme-confetti .rsvp-section > :not(.invitation-art):not(.invitation-ambience) {
  position: relative;
  z-index: 1;
}
.theme-confetti .butterfly-two {
  width: 60px;
  left: 8%;
  bottom: 10%;
  transform-origin: 50% 50%;
  animation: confetti-wing-flight 7s ease-in-out infinite;
}
.theme-confetti .countdown-section {
  padding-bottom: 150px !important;
  min-height: 580px;
}
.theme-confetti .countdown-lantern {
  top: auto;
  right: 4%;
  bottom: 0;
  width: 130px;
  opacity: 1;
  filter: drop-shadow(0 0 18px #efb7b7);
  animation: confetti-lantern-glow 4s ease-in-out infinite;
}
.theme-confetti .long-countdown {
  background: #fff9;
  padding: 24px 8px;
  border: 1px solid #efb7b780;
  border-radius: 16px;
  box-shadow: 0 16px 40px #bd4b4b0a;
}
.theme-confetti .long-countdown > span {
  box-shadow: none;
}
.theme-confetti .rsvp-section {
  padding-top: 140px !important;
  padding-bottom: 90px !important;
}
.theme-confetti .long-rsvp {
  max-width: 350px;
  background: #fff9;
  border: 1px solid #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 50px #8e475014;
  backdrop-filter: blur(8px);
}
.theme-confetti .long-rsvp label {
  font-size: 11px;
  letter-spacing: 0.02em;
  gap: 10px;
}
.theme-confetti .long-rsvp input,
.theme-confetti .long-rsvp select {
  background: #fffaf8;
  border: 1px solid #bd4b4b33;
  border-radius: 7px;
  font-size: 14px;
  min-height: 50px;
}
.theme-confetti .long-rsvp input:focus,
.theme-confetti .long-rsvp select:focus {
  outline: 2px solid #bd4b4b66;
  outline-offset: 3px;
}
.theme-confetti .long-rsvp .long-button {
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 6px 16px #bd4b4b20;
}
.theme-confetti .rsvp-preview-note {
  font-size: 9px;
  opacity: 0.7;
}
.theme-confetti .invitation-footer {
  padding-bottom: 140px !important;
  min-height: 560px;
}
.theme-confetti .footer-floral {
  left: -25px;
  bottom: -5px;
  top: auto;
  width: 58%;
  max-width: 330px;
  opacity: 0.85;
  transform: scaleY(-1);
}
.long-invitation .long-brand {
  background: transparent;
  overflow: visible;
  height: auto;
  border-radius: 0;
}
@keyframes confetti-lantern-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 9px #efb7b780);
  }
  50% {
    filter: drop-shadow(0 0 24px #efb7b7) brightness(1.12);
  }
}
@keyframes confetti-window-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes confetti-wing-flight {
  0%,
  100% {
    translate: 0 0;
    scale: 1 1;
    rotate: 8deg;
  }
  25% {
    scale: 0.65 1;
  }
  50% {
    translate: 18px -20px;
    scale: 1 1;
    rotate: -8deg;
  }
  75% {
    scale: 0.65 1;
  }
}
@media (max-width: 420px) {
  .theme-confetti .invitation-entrance {
    min-height: 680px !important;
  }
  .theme-confetti .long-rsvp {
    padding: 24px 18px;
  }
  .theme-confetti .long-cover {
    width: 88% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-confetti *,
  .theme-confetti .venue-artwork:after {
    animation: none !important;
  }
}
/* Keep oversized corner flowers clear of the invitation copy. */
.theme-confetti .dress-floral,
.theme-confetti .rsvp-floral {
  right: -82px;
  top: -65px;
  mask-image: linear-gradient(#000 40%, transparent 94%);
  opacity: 0.68;
}
.theme-confetti .dress-section,
.theme-confetti .rsvp-section {
  padding-top: 180px !important;
}

/* An open editorial entrance replaces the inset invitation card. */
.theme-confetti .invitation-entrance {
  background:
    linear-gradient(#fff6f333, #fff6f366),
    url('../assets/confetti-silk-background.png') center/cover !important;
  gap: 42px;
}
.theme-confetti .long-cover {
  width: 100% !important;
}
.theme-confetti .long-cover .confetti-card {
  width: 100% !important;
  height: auto !important;
  min-height: 370px;
  aspect-ratio: auto;
  background: none;
  border: 0;
  box-shadow: none !important;
  padding: 28px 8px;
}
.theme-confetti .long-cover .confetti-card:before,
.theme-confetti .long-cover .confetti-card:after,
.theme-confetti .long-cover .confetti-dots {
  display: none;
}
.theme-confetti .long-cover .confetti-card strong {
  font-size: clamp(44px, 12cqi, 72px);
  margin: 32px 0;
  max-width: 100%;
  line-height: 1.1;
}
.theme-confetti .long-cover .confetti-spark {
  font-size: 30px;
  margin-bottom: 30px;
}
.theme-confetti .long-open {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 12px 16px;
}
.theme-confetti .butterfly-one {
  animation: confetti-wing-flight 7s ease-in-out infinite;
  width: 46px;
}
.theme-confetti .guest-section,
.theme-confetti .location-section,
.theme-confetti .timing-section {
  background-size: 110% 110%;
  animation: confetti-silk-drift 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.theme-confetti .is-in-view.guest-section,
.theme-confetti .is-in-view.location-section,
.theme-confetti .is-in-view.timing-section {
  animation-play-state: running;
}
.theme-confetti .dress-floral,
.theme-confetti .rsvp-floral {
  left: auto !important;
  right: -125px !important;
  top: -80px;
  transform: scaleX(-1);
  width: 65%;
}
.theme-confetti .footer-floral {
  top: auto !important;
  bottom: -120px !important;
  left: -35px;
  transform: scaleY(-1);
  width: 65%;
}
.theme-confetti .invitation-crest {
  box-shadow:
    0 0 24px #bd4b4b33,
    0 0 60px #efb7b77a;
  animation: confetti-crest-glow 3s ease-in-out infinite;
}
.theme-confetti .long-schedule {
  padding: 10px 20px;
  background: #fff8;
  border: 1px solid #efb7b755;
  border-radius: 120px 120px 14px 14px;
  padding-top: 46px;
  box-shadow: 0 20px 50px #bd4b4b0b;
}
.theme-confetti .long-schedule li:last-child {
  border: 0;
}
.theme-confetti .long-schedule li {
  transition:
    background 0.3s,
    translate 0.6s;
  position: relative;
}
.theme-confetti .long-schedule li:hover {
  background: #efb7b71a;
  translate: 3px 0;
}
.theme-confetti .long-rsvp {
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow:
    0 22px 60px #8e475014,
    inset 0 1px #fff;
}
.theme-confetti .long-rsvp input,
.theme-confetti .long-rsvp select {
  border-radius: 3px;
  background: #fff8;
  border: 0;
  border-bottom: 1px solid #bd4b4b55;
}
.theme-confetti .long-rsvp .long-button {
  border-radius: 28px;
  margin-top: 5px;
}
.invitation-touch-heart {
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 7px #efb7b7aa);
  animation: invitation-heart-rise 2.4s ease-out forwards;
}
@keyframes invitation-heart-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  12% {
    opacity: 0.95;
    transform: translate(-50%, -70%) scale(1.15);
  }
  30% {
    transform: translate(-50%, -120%) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-drift)), -150px) scale(0.6);
  }
}
@keyframes confetti-silk-drift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}
@keyframes confetti-crest-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px #bd4b4b22,
      0 0 50px #efb7b755;
  }
  50% {
    box-shadow:
      0 0 32px #bd4b4b55,
      0 0 70px #efb7b799;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-confetti .guest-section,
  .theme-confetti .location-section,
  .theme-confetti .timing-section,
  .theme-confetti .invitation-crest {
    animation: none !important;
  }
  .invitation-touch-heart {
    animation: invitation-heart-fade 2.4s linear forwards;
  }
}
@keyframes invitation-heart-fade {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
  }
}

/* Reference-inspired celebration details; copy remains live and editable. */
.theme-confetti .invitation-entrance {
  padding-bottom: 185px !important;
  min-height: 890px !important;
  gap: 30px;
}
.theme-confetti .long-cover .confetti-card {
  min-height: 340px;
  padding: 8px 0;
}
.theme-confetti .long-cover .confetti-card strong {
  font-size: clamp(44px, 12.5cqi, 74px);
  color: #8b3541;
  margin: 30px 0;
}
.theme-confetti .long-cover .card-detail {
  font-family: Georgia, serif;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  line-height: 1.9 !important;
  max-width: 95%;
  font-weight: 400;
}
.theme-confetti .birthday-bow {
  display: block;
  width: 100px;
  height: 42px;
  background: url('../assets/library/silk-bow-v1.png') center/contain no-repeat;
  margin: 0 auto 22px !important;
}
.theme-confetti .birthday-scene {
  position: absolute !important;
  bottom: 0;
  right: -10px;
  width: 65%;
  max-width: 340px;
  z-index: 0;
  pointer-events: none;
}
.theme-confetti .invitation-entrance .long-open {
  z-index: 2;
  margin-bottom: 35px;
  font:
    italic 19px Georgia,
    serif;
  color: #8b3541;
}
.theme-confetti .balloons-right {
  display: none;
}
.theme-confetti .balloons-left {
  width: 38%;
  left: -12%;
  top: 1%;
}
.theme-confetti .celebration-flourish {
  position: relative;
  width: min(250px, 80%);
  margin: -8px auto 24px;
  color: #bd4b4b;
}
.celebration-flourish svg {
  display: block;
  width: 100%;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
}
.theme-confetti .guest-section p,
.theme-confetti .location-section > p,
.theme-confetti .rsvp-section > p,
.theme-confetti .invitation-footer > p {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
}
.theme-confetti .location-floral {
  position: absolute !important;
  left: auto !important;
  right: -30px !important;
  bottom: -18px !important;
  top: auto !important;
  width: 45%;
  transform: rotate(180deg);
  opacity: 0.85;
  animation: none !important;
}
.theme-confetti .dress-floral {
  position: absolute !important;
  left: auto !important;
  right: -90px !important;
  top: 0 !important;
  bottom: auto !important;
  width: 58%;
  animation: none !important;
  transform: scaleX(-1);
  mask-image: linear-gradient(#000 35%, transparent 100%);
}
.theme-confetti .rsvp-floral {
  position: absolute !important;
  left: auto !important;
  right: -90px !important;
  top: 0 !important;
  bottom: auto !important;
  animation: none !important;
  transform: scaleX(-1);
}
.theme-confetti .countdown-lantern {
  position: absolute !important;
  right: -18px !important;
  bottom: -15px !important;
  top: auto !important;
  width: 125px;
}
.theme-confetti .footer-floral {
  position: absolute !important;
  left: -24px !important;
  bottom: -12px !important;
  top: auto !important;
  width: 55%;
  animation: none !important;
  transform: scaleY(-1);
}
.theme-confetti .invitation-footer {
  padding-bottom: 200px !important;
}
.theme-confetti .long-schedule {
  border-color: #bd4b4b55;
  box-shadow:
    inset 0 0 0 4px #fff7,
    0 18px 40px #bd4b4b10;
  padding-bottom: 20px;
}
.theme-confetti .long-schedule time {
  font:
    600 19px Georgia,
    serif;
}
.theme-confetti .long-schedule li > span:last-child {
  font:
    16px/1.5 Georgia,
    serif;
}
.theme-confetti .long-rsvp {
  border: 1px solid #bd4b4b55;
  box-shadow:
    inset 0 0 0 4px #fff9,
    0 20px 50px #bd4b4b14;
}
.theme-confetti .long-rsvp label {
  font:
    15px Georgia,
    serif;
}
.theme-confetti .long-rsvp .long-button {
  background: linear-gradient(#bd4b4b, #9f3b49);
  font:
    italic 18px Georgia,
    serif;
}
.theme-confetti .long-countdown {
  border-color: #bd4b4b55;
  box-shadow:
    inset 0 0 0 4px #fff8,
    0 15px 35px #bd4b4b10;
}
.theme-confetti .long-brand img {
  mix-blend-mode: multiply;
}
@media (max-width: 420px) {
  .theme-confetti .invitation-entrance {
    min-height: 780px !important;
    padding-bottom: 140px !important;
  }
  .theme-confetti .birthday-scene {
    width: 68%;
  }
  .theme-confetti .long-schedule {
    padding-inline: 14px;
  }
  .theme-confetti .long-schedule li {
    gap: 10px;
  }
  .theme-confetti .long-schedule li > span:last-child {
    font-size: 14px;
  }
}
.theme-confetti .dress-floral {
  top: auto !important;
  bottom: -30px !important;
  right: -55px !important;
  transform: rotate(180deg) !important;
  mask-image: none;
  width: 45%;
  opacity: 0.6;
}
.theme-confetti .dress-section {
  padding-top: 90px !important;
  padding-bottom: 155px !important;
  overflow: hidden;
}
.theme-confetti .location-section,
.theme-confetti .countdown-section,
.theme-confetti .invitation-footer {
  overflow: hidden;
}
.theme-confetti .location-floral,
.theme-confetti .dress-floral,
.theme-confetti .rsvp-floral,
.theme-confetti .footer-floral {
  transform-origin: center center !important;
}

/* Faithful reference composition: photographic edges, live type and controls. */
.theme-confetti {
  --reference-wine: #751d2d;
  --reference-gold: #b78348;
}
.long-invitation.theme-confetti {
  --invite-text: #751d2d;
  --invite-accent: #a6474c;
  --invite-bg: #fff0e6;
}
.theme-confetti .invitation-entrance {
  background: url('../assets/confetti-reference-entrance.png') center/100% 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1096/1435;
  padding: 115px 48px 90px !important;
  justify-content: flex-start;
  gap: 24px;
}
.theme-confetti .invitation-entrance > .long-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  margin: 0;
}
.theme-confetti .long-cover {
  width: 100% !important;
}
.theme-confetti .long-cover .confetti-card {
  min-height: 0;
  padding: 0 !important;
}
.theme-confetti .long-cover .birthday-bow {
  height: 36px;
  width: 150px;
  margin: 0 auto 28px !important;
  background-size: contain;
  position: relative;
}
.theme-confetti .long-cover .birthday-bow:before,
.theme-confetti .long-cover .birthday-bow:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b78348);
}
.theme-confetti .long-cover .birthday-bow:before {
  left: 0;
}
.theme-confetti .long-cover .birthday-bow:after {
  right: 0;
  rotate: 180deg;
}
.theme-confetti .long-cover .card-kicker {
  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 0.22em;
}
.theme-confetti .long-cover .confetti-card strong {
  font-size: clamp(42px, 12.5cqi, 72px);
  line-height: 1.08;
  margin: 30px 0 35px;
  color: #751d2d;
  letter-spacing: -0.055em;
}
.theme-confetti .long-cover .confetti-card strong i {
  font-family: 'Snell Roundhand', 'Apple Chancery', 'Brush Script MT', cursive;
  font-size: 1.28em !important;
  line-height: 1.1;
  font-weight: 400;
}
.theme-confetti .long-cover .card-detail {
  font-size: 13px !important;
  letter-spacing: 0.12em;
  line-height: 1.85 !important;
  color: #751d2d;
}
.theme-confetti .invitation-entrance .long-open {
  margin: 4px auto 0;
  border: 1px solid #b78348;
  border-radius: 28px;
  padding: 9px 24px;
  font:
    italic 19px Georgia,
    serif;
  color: #751d2d;
}
.theme-confetti .invitation-entrance .balloons-left,
.theme-confetti .invitation-entrance .birthday-scene {
  display: none;
}
.theme-confetti .butterfly-one {
  right: 5%;
  top: 17%;
  width: 65px;
}
.theme-confetti .guest-section {
  background: url('../assets/confetti-reference-guest.png') center/100% 100% !important;
  min-height: 720px;
  padding: 115px 45px 235px !important;
  display: block;
  animation: none !important;
}
.theme-confetti .guest-lantern {
  display: none;
}
.theme-confetti .guest-section h2 {
  font-size: clamp(44px, 12cqi, 66px);
  margin: 25px auto 18px;
}
.theme-confetti .guest-section p {
  max-width: 440px;
  font-size: 19px;
  line-height: 1.75;
  margin-top: 22px;
}
.theme-confetti .floral-divider {
  width: 240px;
  height: 60px;
}
.theme-confetti .celebration-flourish {
  color: #8f3e37;
  width: min(290px, 85%);
  margin: 0 auto 26px;
}
.theme-confetti .long-section h2 {
  font-style: italic;
  font-size: clamp(36px, 10cqi, 58px);
  line-height: 1.12;
  color: #751d2d;
}
.theme-confetti .guest-section h2,
.theme-confetti .invitation-footer h2 {
  font-style: normal;
}
.theme-confetti .long-section > .long-eyebrow {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #751d2d;
  font-weight: 600;
}
.theme-confetti .location-section,
.theme-confetti .timing-section,
.theme-confetti .dress-section,
.theme-confetti .countdown-section,
.theme-confetti .rsvp-section,
.theme-confetti .invitation-footer {
  background-image: linear-gradient(#fff0e64a, #fff0e64a), url('../assets/confetti-silk-background.png');
  color: #751d2d;
}
.theme-confetti .location-section {
  padding: 65px 28px 120px !important;
}
.theme-confetti .location-section h2 {
  max-width: 440px;
}
.theme-confetti .venue-artwork {
  width: calc(100% + 40px);
  max-width: 520px;
}
.theme-confetti .long-section p {
  color: #751d2d;
}
.theme-confetti .long-schedule {
  border: 1px solid #b78348;
  padding: 40px 25px 35px;
  border-radius: 170px 170px 12px 12px;
  max-width: 420px;
  background: linear-gradient(135deg, #fff9, #efb7b722);
  box-shadow:
    inset 0 0 0 3px #fff9,
    0 8px 15px #9e633220;
}
.theme-confetti .long-schedule li {
  padding: 22px 0;
  border-color: #b7834855;
  gap: 16px;
}
.theme-confetti .timeline-event-icon {
  border-color: #b78348;
  color: #b78348;
  box-shadow: 0 3px 8px #9e633233;
}
.theme-confetti .long-schedule time {
  font-size: 22px;
  color: #751d2d;
}
.theme-confetti .long-schedule li > span:last-child {
  font-size: 18px;
  color: #331e1e;
}
.theme-confetti .long-countdown,
.theme-confetti .long-rsvp {
  border-color: #b78348;
  background: linear-gradient(145deg, #fff8, #efb7b71a);
  box-shadow:
    inset 0 0 0 3px #fff9,
    0 8px 14px #9e633222;
}
.theme-confetti .long-countdown {
  max-width: 430px;
  padding: 26px 8px;
  border-radius: 34px;
}
.theme-confetti .long-countdown strong {
  font:
    italic 48px Georgia,
    serif;
  color: #751d2d;
}
.theme-confetti .long-countdown small {
  font:
    11px Georgia,
    serif;
  letter-spacing: 0.06em;
}
.theme-confetti .long-countdown > span {
  border-color: #b7834866;
}
.theme-confetti .long-rsvp {
  max-width: 380px;
  border-radius: 35px;
  padding: 32px 28px;
}
.theme-confetti .long-rsvp label {
  font:
    18px Georgia,
    serif;
  color: #751d2d;
}
.theme-confetti .long-rsvp input,
.theme-confetti .long-rsvp select {
  border: 1px solid #b7834877;
  border-radius: 15px;
  background: #fff6;
  box-shadow: 0 3px 6px #9e633214;
  font-size: 14px;
}
.theme-confetti .long-rsvp .long-button {
  border: 1px solid #b78348;
  background: linear-gradient(155deg, #a43d49, #681528);
  box-shadow:
    inset 0 0 0 2px #ffffff66,
    0 6px 12px #751d2d22;
  color: #fff5e9;
  font-size: 21px;
}
.theme-confetti .invitation-footer {
  padding: 85px 35px 200px !important;
}
.theme-confetti .invitation-footer h2 {
  font-size: clamp(40px, 11cqi, 64px);
}
.theme-confetti .long-brand {
  width: 210px;
}
.theme-confetti .invitation-footer > p {
  font-style: italic;
  font-size: 20px;
}
@media (max-width: 460px) {
  .theme-confetti .invitation-entrance {
    padding: 85px 28px 65px !important;
    gap: 16px;
    min-height: 700px !important;
    aspect-ratio: auto;
  }
  .theme-confetti .long-cover .confetti-card strong {
    font-size: clamp(38px, 12cqi, 58px);
    margin: 26px 0;
  }
  .theme-confetti .long-cover .card-detail {
    font-size: 10px !important;
  }
  .theme-confetti .invitation-entrance > .long-eyebrow {
    font-size: 9px;
  }
  .theme-confetti .long-cover .card-kicker {
    font-size: 10px !important;
  }
  .theme-confetti .guest-section {
    min-height: 650px;
    padding: 100px 25px 220px !important;
  }
  .theme-confetti .guest-section p {
    font-size: 17px;
  }
  .theme-confetti .long-schedule {
    padding-inline: 16px;
  }
  .theme-confetti .long-schedule li {
    gap: 10px;
  }
  .theme-confetti .long-schedule time {
    font-size: 18px;
  }
  .theme-confetti .long-schedule li > span:last-child {
    font-size: 15px;
  }
  .theme-confetti .long-countdown strong {
    font-size: 36px;
  }
  .theme-confetti .long-countdown small {
    font-size: 9px;
  }
}
.theme-confetti .long-cover .birthday-bow {
  margin-bottom: 22px !important;
}
.theme-confetti .guest-section p {
  max-width: 420px;
}
.theme-confetti .long-schedule,
.theme-confetti .long-rsvp,
.theme-confetti .long-countdown {
  position: relative;
}
.theme-confetti .long-schedule:before,
.theme-confetti .long-rsvp:before,
.theme-confetti .long-countdown:before {
  content: '❦';
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font:
    30px Georgia,
    serif;
  color: #b78348;
  text-shadow: 0 1px #fff;
  background: #fff0e6;
  border-radius: 50%;
  padding: 0 12px;
}
.theme-confetti .long-schedule:after,
.theme-confetti .long-rsvp:after,
.theme-confetti .long-countdown:after {
  content: '✦';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  font:
    20px Georgia,
    serif;
  color: #b78348;
  background: #fff0e6;
  padding: 0 10px;
}
@media (max-width: 460px) {
  .theme-confetti .guest-section p {
    max-width: 290px;
  }
  .theme-confetti .guest-section {
    padding-bottom: 250px !important;
    min-height: 700px;
  }
}

/* Layered scene: all decorative motion is independent of editable content. */
.long-invitation.layered-confetti {
  position: relative;
  background: linear-gradient(110deg, #f9e5dc 0%, #fff4eb 36%, #f6ddd5 100%);
  overflow: hidden;
}
.layered-confetti .invitation-entrance,
.layered-confetti .long-section {
  background: transparent !important;
  border: 0;
  overflow: hidden;
  isolation: isolate;
}
.layered-confetti .long-section:before {
  display: none;
}
.layered-confetti .scene-layer {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 0;
}
.scene-layer > img {
  width: 100%;
  height: auto;
  display: block;
}
.layered-confetti .scene-silk {
  width: 115%;
  height: 100%;
  left: -5%;
  top: 0;
  opacity: 0.68;
  mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent);
}
.layered-confetti .scene-silk > img {
  position: absolute;
  right: -20%;
  top: -18%;
  width: 115%;
  height: 120%;
  object-fit: contain;
  animation: layered-silk-flow 16s ease-in-out infinite alternate;
  animation-delay: var(--silk-delay);
  animation-play-state: paused;
  transform-origin: 85% 10%;
}
.layered-confetti .scene-silk.silk-reverse {
  transform: rotate(180deg);
  opacity: 0.48;
}
.layered-confetti .is-in-view > .scene-silk > img {
  animation-play-state: running;
}
.layered-confetti .scene-cake {
  width: 62%;
  right: -2%;
  bottom: 0;
  max-width: 360px;
  z-index: 1;
}
.layered-confetti .scene-balloons {
  width: 35%;
  left: -12%;
  top: 0;
  max-width: 210px;
}
.layered-confetti .scene-balloons > img {
  animation: layered-balloon-float 7s ease-in-out infinite;
}
.layered-confetti .scene-entrance-flowers {
  width: 40%;
  left: -12%;
  bottom: -3%;
  max-width: 240px;
  transform: rotate(-15deg);
}
.layered-confetti .scene-entrance-flowers > img {
  animation: layered-flower-breathe 8s ease-in-out infinite alternate;
  transform-origin: 0 100%;
}
.layered-confetti .invitation-entrance {
  min-height: 850px !important;
  aspect-ratio: auto;
  padding-bottom: 235px !important;
}
.layered-confetti .invitation-entrance > .long-eyebrow,
.layered-confetti .long-cover,
.layered-confetti .long-open {
  z-index: 2;
}
.layered-confetti .birthday-scene,
.layered-confetti .balloons-left,
.layered-confetti .balloons-right {
  display: none !important;
}
.layered-confetti .guest-section {
  min-height: 650px !important;
  padding: 100px 40px 160px !important;
}
.layered-confetti .guest-lantern {
  display: block !important;
  width: 125px;
  z-index: 1;
  bottom: 0 !important;
  left: -15px !important;
}
.layered-confetti .long-section > .floral-corner {
  animation: layered-flower-breathe 9s ease-in-out infinite alternate !important;
  animation-play-state: paused !important;
}
.layered-confetti .long-section.is-in-view > .floral-corner {
  animation-play-state: running !important;
}
.layered-confetti .candle-light {
  position: absolute;
  top: 8%;
  width: 7px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 70% 30% 65% 35%;
  background: radial-gradient(ellipse at 50% 80%, #fff 10%, #fff4af 45%, #f8b96b99 72%, transparent 80%);
  box-shadow:
    0 0 10px #ffd99b,
    0 0 25px #ffcc7c88;
  animation: layered-candle-flicker 1.7s ease-in-out infinite alternate;
  animation-delay: var(--flicker-delay);
  transform-origin: center bottom;
}
.layered-confetti .lantern-light {
  position: absolute;
  width: 60px;
  height: 80px;
  background: radial-gradient(ellipse, #ffe5a38a, transparent 65%);
  filter: blur(7px);
  pointer-events: none;
  z-index: 2;
  animation: layered-lantern-pulse 3s ease-in-out infinite;
}
.layered-confetti .guest-light {
  left: 20px;
  bottom: 30px;
}
.layered-confetti .countdown-light {
  right: 12px;
  bottom: 20px;
}
@keyframes layered-silk-flow {
  0% {
    transform: translate3d(-10px, 0, 0) rotate(-3deg) scale(1.02, 1);
  }
  50% {
    transform: translate3d(10px, 10px, 0) rotate(1deg) scale(1.06, 0.96);
  }
  100% {
    transform: translate3d(-3px, 20px, 0) rotate(4deg) scale(1, 1.04);
  }
}
@keyframes layered-balloon-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}
@keyframes layered-flower-breathe {
  from {
    translate: 0 0;
    rotate: -1.5deg;
    scale: 1;
  }
  to {
    translate: 2px -3px;
    rotate: 1.5deg;
    scale: 1.025;
  }
}
@keyframes layered-candle-flicker {
  0% {
    scale: 0.8 1;
    opacity: 0.75;
    rotate: -4deg;
  }
  40% {
    scale: 1.1 0.9;
    opacity: 1;
    rotate: 3deg;
  }
  100% {
    scale: 0.85 1.12;
    opacity: 0.85;
    rotate: -2deg;
  }
}
@keyframes layered-lantern-pulse {
  0%,
  100% {
    opacity: 0.5;
    scale: 1;
  }
  50% {
    opacity: 1;
    scale: 1.15;
  }
}
@media (max-width: 460px) {
  .layered-confetti .invitation-entrance {
    min-height: 780px !important;
    padding-bottom: 240px !important;
  }
  .layered-confetti .scene-cake {
    width: 72%;
  }
  .layered-confetti .guest-section {
    padding-inline: 28px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .layered-confetti .scene-layer > img,
  .layered-confetti .long-section > .floral-corner,
  .layered-confetti .candle-light,
  .layered-confetti .lantern-light {
    animation: none !important;
  }
}
.layered-confetti[data-motion='off'] .scene-layer > img,
.layered-confetti[data-motion='off'] .long-section > .floral-corner,
.layered-confetti[data-motion='off'] .candle-light,
.layered-confetti[data-motion='off'] .lantern-light {
  animation: none !important;
}
/* Keep the moving fabric along the perimeter and away from the main copy. */
.layered-confetti .scene-silk > img {
  right: -42%;
  top: -42%;
  width: 140%;
  height: 125%;
  opacity: 0.8;
}
.layered-confetti .silk-reverse > img {
  right: -35%;
  top: -35%;
}
.layered-confetti .scene-entrance-flowers {
  width: 50%;
  left: -12%;
  bottom: -3%;
}
.layered-confetti .scene-layer > img,
.layered-confetti .candle-light,
.layered-confetti .lantern-light {
  animation-play-state: paused;
}
.layered-confetti .is-in-view > .scene-layer > img,
.layered-confetti .is-in-view .candle-light,
.layered-confetti .is-in-view > .lantern-light {
  animation-play-state: running;
}

/* Reference timeline: clear glass-free frame, gold medallions and full times. */
.layered-confetti .timing-section {
  padding: 80px 28px 185px !important;
}
.layered-confetti .timing-section h2 {
  max-width: 440px;
  margin-bottom: 20px;
}
.layered-confetti .timing-section h3 {
  max-width: 380px;
  font: italic 34px/1.2 var(--display);
  margin: 10px auto 35px;
}
.layered-confetti .timing-section .long-divider {
  margin: 12px auto 18px;
  min-height: 54px;
}
.layered-confetti .long-schedule {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid #b78348;
  border-radius: 180px 180px 12px 12px;
  padding: 46px 24px 35px;
  max-width: 450px;
}
.layered-confetti .long-schedule:before,
.layered-confetti .long-schedule:after {
  background: transparent;
  text-shadow: 0 1px #fff6;
}
.layered-confetti .long-schedule li {
  display: grid;
  grid-template-columns: 52px 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #b7834855;
}
.layered-confetti .long-schedule time {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font:
    600 24px/1.2 Georgia,
    serif;
  flex: none;
  border-right: 1px solid #b7834880;
  padding-right: 12px;
}
.layered-confetti .long-schedule .timeline-event-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  color: #a96c27;
  border: 1px solid #bd904c;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff9eccc, #f1d8b877);
  box-shadow:
    inset 0 0 0 3px #ffffff88,
    0 3px 8px #9e63322a;
}
.layered-confetti .timeline-event-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.35;
  filter: drop-shadow(0 1px #fff);
}
.layered-confetti .long-schedule li > span:last-child {
  font:
    18px/1.4 Georgia,
    serif;
}
.layered-confetti .scene-timing-flowers {
  right: -5%;
  bottom: -70px;
  width: 66%;
  max-width: 370px;
  transform: rotate(180deg);
}
.layered-confetti .scene-timing-flowers > img {
  animation: layered-flower-breathe 9s ease-in-out infinite alternate;
  transform-origin: center;
}
.layered-confetti .scene-timing-lantern {
  left: -18px;
  bottom: 10px;
  width: 125px;
}
.layered-confetti .scene-timing-lantern > img {
  animation: lantern-glow 4s ease-in-out infinite;
}
.layered-confetti .long-countdown,
.layered-confetti .long-rsvp {
  background: transparent;
  box-shadow: 0 8px 18px #9e633212;
}
.layered-confetti .long-countdown:before,
.layered-confetti .long-countdown:after,
.layered-confetti .long-rsvp:before,
.layered-confetti .long-rsvp:after {
  background: transparent;
}
@media (max-width: 460px) {
  .layered-confetti .timing-section {
    padding: 65px 18px 165px !important;
  }
  .layered-confetti .timing-section h3 {
    font-size: 28px;
  }
  .layered-confetti .long-schedule {
    padding: 42px 16px 25px;
    border-radius: 140px 140px 12px 12px;
  }
  .layered-confetti .long-schedule li {
    grid-template-columns: 44px 57px minmax(0, 1fr);
    gap: 10px;
    padding: 22px 0;
  }
  .layered-confetti .long-schedule .timeline-event-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .layered-confetti .timeline-event-icon svg {
    width: 28px;
    height: 28px;
  }
  .layered-confetti .long-schedule time {
    font-size: 20px;
    padding-right: 7px;
  }
  .layered-confetti .long-schedule li > span:last-child {
    font-size: 15px;
  }
  .layered-confetti .scene-timing-lantern {
    width: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .layered-confetti .scene-timing-flowers > img,
  .layered-confetti .scene-timing-lantern > img {
    animation: none !important;
  }
}

/* Five-moment reference: embossed gold arch and ornamental row separators. */
.layered-confetti .timing-section .long-schedule {
  border: 2px solid #bb7c28;
  border-radius: 220px 220px 30px 30px;
  padding: 62px 28px 58px;
  max-width: 465px;
  background: transparent !important;
  box-shadow:
    inset 0 0 0 2px #fff9,
    0 0 0 2px #fff5,
    0 0 0 3px #d7a45d,
    0 10px 18px #9b5c3225 !important;
}
.layered-confetti .long-schedule:before {
  content: '❦';
  top: -28px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #c38c39;
  background: radial-gradient(circle at 35% 25%, #fff9ed, #fce7d4);
  box-shadow:
    inset 0 0 0 3px #fff9,
    0 3px 4px #98602533;
  font-size: 34px;
  color: #b67b24;
}
.layered-confetti .long-schedule:after {
  content: '⌒ ✦ ⌒';
  bottom: 12px;
  width: 180px;
  text-align: center;
  font-size: 25px;
  letter-spacing: 3px;
  color: #b67b24;
  background: none;
  text-shadow: 0 1px #fff;
}
.layered-confetti .long-schedule li {
  grid-template-columns: 54px 72px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  position: relative;
  border: 0 !important;
}
.layered-confetti .long-schedule li:not(:last-child):after {
  content: '✦';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #b78348;
  font:
    17px/16px Georgia,
    serif;
  background: linear-gradient(
      90deg,
      #b7834833,
      #b7834877 46%,
      transparent 46%,
      transparent 54%,
      #b7834877 54%,
      #b7834833
    )
    center/100% 1px no-repeat;
}
.layered-confetti .long-schedule time {
  font-size: 25px;
  padding-right: 10px;
}
.layered-confetti .long-schedule .timeline-event-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: radial-gradient(circle at 40% 30%, #fffaf0, #fae7ce);
  box-shadow:
    inset 0 0 0 2px #fff9,
    0 3px 4px #9e633244;
  color: #b1731c;
  border-color: #c28a35;
}
.layered-confetti .long-schedule li > span:last-child {
  font-size: 19px;
  line-height: 1.3;
  color: #2d1818;
}
.layered-confetti .scene-timing-flowers {
  width: 58%;
  right: -3%;
  bottom: -8px;
  transform: rotate(180deg);
}
.layered-confetti .scene-timing-lantern {
  display: none;
}
.layered-confetti .timing-section {
  padding-bottom: 155px !important;
}
@media (max-width: 460px) {
  .layered-confetti .timing-section .long-schedule {
    border-radius: 160px 160px 22px 22px;
    padding: 48px 17px 48px;
  }
  .layered-confetti .long-schedule li {
    grid-template-columns: 43px 60px minmax(0, 1fr);
    gap: 10px;
    padding: 22px 0;
  }
  .layered-confetti .long-schedule .timeline-event-icon {
    width: 43px;
    height: 43px;
    min-width: 43px;
  }
  .layered-confetti .long-schedule time {
    font-size: 21px;
  }
  .layered-confetti .long-schedule li > span:last-child {
    font-size: 15px;
  }
  .layered-confetti .long-schedule:before {
    width: 48px;
    height: 48px;
    top: -24px;
    font-size: 28px;
  }
}
.long-rsvp .rsvp-response {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}
.long-rsvp .rsvp-response legend {
  font:
    16px Georgia,
    serif;
  margin-bottom: 12px;
  color: var(--invite-text);
}
.long-rsvp .rsvp-choice {
  display: block;
  position: relative;
  cursor: pointer;
}
.long-rsvp .rsvp-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
}
.long-rsvp .rsvp-choice span {
  display: block;
  padding: 14px 16px;
  border: 1px solid #b7834860;
  border-radius: 12px;
  font:
    15px Georgia,
    serif;
  background: #fff5;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.long-rsvp .rsvp-choice input:checked + span {
  background: #efb7b744;
  border-color: var(--invite-accent);
  box-shadow: inset 0 0 0 1px var(--invite-accent);
}
.long-rsvp .rsvp-choice input:focus-visible + span {
  outline: 2px solid var(--invite-accent);
  outline-offset: 3px;
}
.long-rsvp textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #b7834877;
  border-radius: 12px;
  padding: 14px;
  font: 13px/1.7 var(--body);
  color: var(--invite-text);
  background: #fff5;
}
.long-rsvp label small {
  display: inline;
  font: 10px var(--body);
  opacity: 0.65;
}
.timeline-picture-icon {
  display: block;
  width: 40px;
  height: 40px;
  background-image: url('../assets/timeline-illustrated-icons.webp');
  background-size: 300% 300%;
  background-repeat: no-repeat;
}
.custom-timeline-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.long-invitation .long-schedule li {
  transition:
    opacity 0.4s ease,
    translate 0.4s ease;
}

/* Empty schedule: the lone placeholder line spans the whole row instead of the narrow time column. */
.long-schedule li > span:only-child {
  grid-column: 1 / -1;
}
