@font-face {
  font-family: "Bickham Script Pro 3";
  src: url("../assets/fonts/bickham-script-pro-3-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Bickham Script MM Swash Capitals";
  src: url("../public/fonts/bickham-script-mm-swash-capitals.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Cinzel Digits";
  src: url("../assets/fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../public/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maristella";
  src: url("../public/fonts/Maristella.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Biscuiterie";
  src: url("../public/fonts/Biscuiterie.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KZ Sign Painter";
  src: url("../public/fonts/KZ_Sign_Painter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KZ Mon Amour One";
  src: url("../public/fonts/KZ_Mon_Amour_One.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KZ Rapier LET";
  src: url("../public/fonts/KZ_Rapier_LET.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ALS Finlandia Script";
  src: url("../public/fonts/ALSFinlandiaScript.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ALS Finlandia Script Frost";
  src: url("../public/fonts/ALSFinlandiaScript-Frost.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ALS Finlandia Script";
  src: url("../public/fonts/ALSFinlandiaScript-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  color-scheme: light;
  --paper: #fbf7f2;
  --paper-soft: #fffaf5;
  --ink: #716b55;
  --ink-soft: #968f79;
  --olive: #92977b;
  --olive-dark: #798068;
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.25, 1);
  /* Bickham Script font stacks */
  --digits: "Cinzel Digits";
  --script-display: var(--digits), "Bickham Script Pro 3", "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --script-capitals: var(--digits), "Bickham Script Pro 3", "Great Vibes", cursive;
  font-family: "Cormorant Garamond", Georgia, serif;
  background: #d9d3c7;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scrollbar-width: none;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.site-shell::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100vw, 620px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 42px rgba(55, 49, 41, 0.2);
}

.site-shell.is-cover {
  background: #17130f;
}

.cover-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.cover-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

.closed-envelope-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.closed-envelope-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 7px;
}

.closed-envelope-image {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(96%, 560px);
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 18px 22px rgba(53, 46, 36, 0.24));
  transform: translate(-50%, -50%);
  animation: coverEnvelopeIntro 900ms 180ms ease both;
}

.envelope-image-wrapper {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.closed-envelope-button img {
  display: block;
  height: auto;
  user-select: none;
}

.closed-envelope-copy {
  position: absolute;
  top: 20%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #6b6244;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  white-space: nowrap;
  animation: coverTextIntro 1.25s 0.78s ease both;
  z-index: 4;
}

.cover-pretitle {
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c7d60;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.closed-envelope-copy strong {
  display: block;
  margin-left: 7%;
  font-family: var(--script-display);
  font-size: clamp(36px, 9.5vw, 62px);
  font-weight: 400;
  line-height: 0.82;
  color: #5e5438;
}

.ampersand {
  display: inline-block;
  font-family: "Biscuiterie", "Maristella", cursive;
  font-weight: 400;
  line-height: 0.8;
  transform: translateY(0.04em);
}

.closed-envelope-copy .ampersand {
  font-size: clamp(20px, 8vw, 40px);
}

.footer-copy .ampersand {
  font-size: clamp(22px, 9vw, 32px);
}

.open-label {
  position: absolute;
  left: 50%;
  bottom: 30%;
  color: black;
  font-size: clamp(9px, 2.15vw, 12px);
  font-weight: 600;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  letter-spacing: 0.16em;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 4;
  animation: coverTextIntro 1.15s 1.02s ease both;
}

.paper-panel {
  position: relative;
  min-height: 100svh;
  padding: 28px 0 0;
  background: var(--paper-soft, #fffaf5);
}

.open-stationery {
  position: relative;
  width: min(100%, 590px);
  height: clamp(500px, 104vw, 680px);
  margin: 0 auto;
  overflow: visible;
}

.petal-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.petal-field span {
  position: absolute;
  top: -12%;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * 0.62);
  border-radius: 72% 28% 70% 30%;
  box-shadow: 0 3px 10px rgba(105, 96, 76, 0.1);
  opacity: 0;
  transform: translate3d(0, -20%, 0) rotate(var(--petal-rotate));
  animation: petalFall var(--petal-duration) var(--petal-delay) linear infinite;
}



.open-layer,
.floral-layer,
.oval-frame,
.oval-photo,
.save-date-card,
.save-under-photo,
.asset-heart-card img,
.image-slot img {
  display: block;
  user-select: none;
  pointer-events: none;
}

.open-layer {
  position: absolute;
  left: 50%;
  width: 100%;
  max-width: 690px;
  height: auto;
  transform: translateX(-50%);
}

.open-back-layer {
  top: 0;
  z-index: 1;
  filter: drop-shadow(0 18px 22px rgba(62, 54, 43, 0.18));
  animation: centeredLayerReveal 720ms 0s var(--reveal-ease) both;
}

.open-fore-layer {
  z-index: 8;
  filter: drop-shadow(0 22px 24px rgba(62, 54, 43, 0.26));
  animation: frontEnvelopeReveal 720ms 0.9s var(--reveal-ease) both;
}

.oval-photo-card {
  position: absolute;
  top: -5%;
  left: 0;
  z-index: 4;
  width: 65%;
  aspect-ratio: 384 / 467;
  filter: drop-shadow(0 16px 18px rgba(53, 49, 39, 0.22));
}

.oval-photo {
  position: absolute;
  top: 15.8%;
  left: 23.5%;
  width: 53%;
  height: 67%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 8px 10px rgba(45, 40, 32, 0.22));
  animation: itemReveal 680ms 0.3s var(--reveal-ease) both;
}

.oval-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(58, 54, 43, 0.18));
  animation: itemReveal 680ms 0.3s var(--reveal-ease) both;
}

.save-date-stack {
  position: absolute;
  top: -20%;
  right: -4%;

  width: 80%;
  aspect-ratio: 384 / 467;
}

.save-date-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 97%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(10px 16px 13px rgba(61, 55, 45, 0.23));
  animation: itemReveal 680ms 0.5s var(--reveal-ease) both;
}

.save-under-photo {
  position: absolute;
  top: 42%;
  left: 33%;
  z-index: 6;
  width: 40%;
  aspect-ratio: 1.05;
  padding: 4px 4px 14px;
  object-fit: cover;
  box-shadow: 0 14px 18px rgba(55, 48, 38, 0.24);
  transform: rotate(4deg);
  animation: photoReveal 660ms 0.7s var(--reveal-ease) both;
}

.asset-heart-card {
  position: absolute;
  top: 27%;
  left: 50%;
  z-index: 7;
  width: 47%;
  max-width: 226px;
  transform: translateX(-50%);
  filter: drop-shadow(0 15px 16px rgba(69, 61, 48, 0.24));
  animation: heartReveal 850ms 1.1s cubic-bezier(0.18, 0.85, 0.22, 1.12) both;
}

.asset-heart-card img {
  width: 100%;
  height: auto;
}

.asset-heart-card span {
  position: absolute;
  top: 50.5%;
  left: 50%;
  color: #746d56;
  font-size: clamp(18px, 4.9vw, 30px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  font-family: "Cormorant Garamond";
}

.floral-layer {
  position: absolute;
  top: 21%;
  right: -8%;
  z-index: 10;
  width: 85%;
  max-width: 225px;
  height: auto;
  filter: drop-shadow(12px 18px 16px rgba(59, 54, 43, 0.26));
  animation: flowerReveal 740ms 0.6s var(--reveal-ease) both;
}

.details {
  position: relative;
  z-index: 12;
  display: grid;
  justify-items: center;
  margin: -18px auto 70px;
  padding: 0 28px 64px;
  overflow: visible;
  /* Changed to visible to prevent clipping the decoration branches */
  text-align: center;
  opacity: 0;
}

.details-flower-branch {
  position: absolute;
  right: -96px;
  bottom: -105;
  z-index: 100;
  display: block;
  width: min(72%, 330px);
  height: auto;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.small-caps {
  margin: 0;
  color: black;
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
}

.small-caps-var-2 {
  margin: 0;
  color: black;
  font-size: 52px;
  font-weight: 200;
  line-height: 1.45;
  font-family: "Bickham Script Pro 3";
}

.details h2 {
  margin: 18px 0 30px;
  color: #000;
  font-family: "Maristella", "Brush Script MT", cursive;
  font-size: clamp(39px, 10.4vw, 58px);
  font-weight: 400;
  line-height: 0.95;
  white-space: nowrap;
}

.stacked {
  margin-bottom: 24px;
}

.address-button {
  display: inline-grid;
  min-width: min(100%, 258px);
  min-height: 58px;
  margin: 32px 0 36px;
  padding: 0 24px;
  place-items: center;
  border-radius: 19px;
  color: #fbf7ee;
  box-shadow: 0 10px 18px rgba(91, 98, 75, 0.16);
  font-size: clamp(11px, 2.6vw, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.address-button:hover,
.address-button:focus-visible {
  transform: translateY(-1px);
}

.address-button:focus-visible {
  outline: 2px solid rgba(121, 128, 104, 0.36);
  outline-offset: 4px;
}

.closing {
  margin-top: 0;
}

.wide-photo-section {
  width: 100%;
  height: clamp(138px, 34vw, 220px);
  overflow: hidden;
}

.wide-photo-section img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

/* ─── Calendar section (minimal screenshot design) ─────────── */
.calendar-section {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 42px 40px 52px;
  color: #5c4a3d;
  overflow: visible;
  text-align: center;
  display: flex;
  justify-content: center;
}

.calendar-block {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  /* Restrict width to keep it centered and safe from screen edges */
  margin: 0 auto;
  padding: 0;
}

.calendar-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 0 0 18px;
}

.calendar-weekday-row span {
  display: grid;
  min-height: 32px;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 600;
  color: #5c4a3d;
  letter-spacing: 0.06em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 16px;
  column-gap: 0;
  align-items: center;
}

.calendar-grid i,
.calendar-grid b {
  display: grid;
  min-height: 32px;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1;
  font-weight: 500;
  font-style: normal;
  color: #5c4a3d;
}

.calendar-grid b {
  position: relative;
}

.script-split {
  font-family: var(--script-display);
  font-weight: 400;
  letter-spacing: 0;
}

.script-split .name-capital {
  display: inline-block;
  font-family: "Bickham Script MM Swash Capitals";
  font-weight: 400;
  line-height: 0.72;
  transform: translateY(0.02em);
}

.script-split .name-rest {
  font-family: var(--script-display);
  font-weight: 400;
}

/* Event day with heart balloon */
.calendar-grid .event-day {
  z-index: 1;
  position: relative;
  color: #7b3040;
  font-weight: 700;
}

.heart-balloon-wrap {
  position: absolute;
  left: 50%;
  top: 65%;
  width: 60px;
  height: 90px;
  transform: translate(-50%, -36%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: -1;
}

.heart-balloon-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Filter to color the gold heart outline to burgundy/maroon (#7b3040) */
  filter: invert(21%) sepia(37%) saturate(2371%) hue-rotate(314deg) brightness(92%) contrast(89%);
}

/* Script month label below calendar */
.calendar-script-label {
  margin: 28px 0 0;
  text-align: right;
  font-family: "Bickham Script Pro 3", "ALS Finlandia Script", "Maristella", cursive;
  font-size: clamp(36px, 9vw, 50px);
  font-weight: 400;
  line-height: 1;
  color: #000;
}

.rose-transition {
  position: relative;
  width: min(100%, 464px);
  height: clamp(116px, 28vw, 156px);
  margin: -10px auto 0;
  overflow: hidden;
  isolation: isolate;
}

.rose-transition img {
  position: absolute;
  top: 50%;
  left: -15%;
  z-index: 2;
  display: block;
  width: min(48%, 210px);
  height: auto;
  filter: brightness(1.16) contrast(1.02) drop-shadow(0 0 18px rgba(255, 255, 255, 0.34));
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  transform: translateY(-50%);
}

.rose-transition-line {
  position: absolute;
  top: 49%;
  left: 17%;
  right: 5%;
  z-index: 1;
  height: 14px;
  background: #fffaf5;
  border-radius: 999px;
  clip-path: polygon(0 42%, 5% 22%, 10% 48%, 15% 30%, 21% 56%, 27% 35%, 34% 62%, 42% 37%, 50% 55%, 59% 31%, 67% 50%, 75% 28%, 84% 54%, 92% 32%, 100% 48%, 100% 70%, 92% 58%, 84% 75%, 75% 55%, 67% 74%, 59% 52%, 50% 71%, 42% 54%, 34% 77%, 27% 55%, 21% 76%, 15% 52%, 10% 72%, 5% 54%, 0 68%);
  filter: drop-shadow(0 2px 7px rgba(255, 255, 255, 0.25));
}

.rectangle-back {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 44px 26px 34px;
  overflow: hidden;
}

.rectangle-back::after {
  position: absolute;
  right: -16px;
  bottom: 38px;
  width: 172px;
  height: 70px;
  content: "";
  border-bottom: 2px solid rgba(255, 250, 245, 0.24);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.venue-section {
  width: min(100%, 464px);
  margin: 0 auto;
  padding: 32px 22px 38px;
  background: transparent;
  color: #000;
  text-align: center;
}

.venue-building {
  display: block;
  width: min(86%, 360px);
  height: auto;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
}

.venue-script {
  margin: 0 0 24px;
  color: #000;
  font-family: "Bickham Script Pro 3";
  font-size: 55px;
  font-weight: 200;
  line-height: 0.95;
}

.venue-address {
  margin-bottom: 1px;
  color: #000;
  font-size: clamp(15px, 3.9vw, 21px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.32;
  text-transform: uppercase;
}

.venue-floral-row {
  position: relative;
  z-index: 3;
  width: min(100%, 356px);
  height: 92px;
  margin: 10px auto -14px;
  pointer-events: none;
}

.venue-floral {
  position: absolute;
  display: block;
  height: auto;
  opacity: 0.94;
  mix-blend-mode: screen;
  user-select: none;
}

.venue-floral-left {
  left: -84px;
  top: -30%;
  z-index: 4;
  width: min(78%, 300px);
  transform: rotate(68deg);
}

.venue-floral-right {
  right: -42px;
  top: -2px;
  width: min(38%, 142px);
  transform: rotate(8deg);
}

.venue-photo-card {
  position: relative;
  z-index: 2;
  width: min(100%, 356px);
  margin: 34px auto 34px;
  padding: 12px 12px 34px;
  background: #ffffff;
  box-shadow: 0 16px 24px rgba(63, 56, 44, 0.18);
}

.venue-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.venue-photo-card::after {
  position: absolute;
  right: 20px;
  bottom: 2px;
  content: "Samir 2";
  color: #000;
  font-family: "ALS Finlandia Script", "Maristella", cursive;
  font-size: clamp(24px, 6.8vw, 36px);
  line-height: 1;
}

.venue-map-button {
  display: inline-grid;
  position: relative;
  z-index: 1;
  width: min(100%, 356px);
  min-height: 54px;
  padding: 0 24px;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: #968f79;
  color: #ffffff;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.venue-map-button:hover,
.venue-map-button:focus-visible {
  background: #968f79;
  transform: translateY(-1px);
}

.venue-map-button:focus-visible {
  outline: 2px solid #968f79;
  outline-offset: 4px;
}

.hosts-section {
  position: relative;
  width: min(100%, 464px);
  height: 80vh;
  margin: 0 auto;
  background: url("../public/images/photo_2026-07-13_21-12-38.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 46px 30px 58px;
  background: transparent;
  overflow: visible;
  text-align: center;

}

.hosts-flower-branch {
  display: block;
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
  bottom: -10%;
  left: 0;
}

.paper-section {
  min-height: auto;
  place-items: start center;
  padding-top: 28px;
  padding-bottom: 0;

  z-index: 2;
  overflow: visible;

}

.paper-card {
  position: relative;
  z-index: 2;
  width: min(calc(100vw - 24px), 400px);
  margin-top: 22px;
  background: #fffdf5;
}

.paper-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 34px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(71, 58, 35, 0.24);
  filter: blur(16px);
  pointer-events: none;
}

.paper-image {
  width: 100%;
  /* filter: drop-shadow(0 24px 36px rgba(65, 54, 36, 0.18)); */
}

.paper-copy {
  position: absolute;
  inset: 15.8% 6.4% 6.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
  font-family: var(--serif-display);
  color: #4c4036;
}

.paper-copy .script-name {
  width: 142%;
  margin: 46px 0 38px;
  font-size: 6.55rem;
  line-height: 0.78;
  color: #adac55;
  text-transform: none;
  font-family: var(--script-display);
  /* text-shadow: 0 12px 20px rgba(143, 155, 91, 0.14); */
}
.paper-name{
  font-family: var(--script-display);
}



.paper-copy h2 {
  margin: 0;
  font-size: 1.76rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.paper-copy p {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.02;
  font-weight: 400;
  text-transform: uppercase;
}

.paper-subtitle {
  margin-top: 34px !important;
  letter-spacing: 0.07em;
}

.paper-copy .script-name {
  width: 142%;
  margin: 0;
  font-size: 6.55rem;
  line-height: 0.58;
  color: #75754c;
  text-transform: none;
  /* text-shadow: 0 12px 20px rgba(143, 155, 91, 0.14); */
}

.paper-body {
  font-size: 1.38rem !important;
  line-height: 1.42 !important;
  letter-spacing: 0.04em;
}

.decor-oyu {
  position: absolute;
  width: 210px;
  opacity: 0.14;
  filter: sepia(0.8) hue-rotate(332deg) saturate(1.2);
}

.hosts-corner {
  position: absolute;
  z-index: 1;
  display: block;
  width: min(48%, 210px);
  height: auto;
  opacity: 0.92;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.hosts-corner-right {
  top: 18px;
  right: 0;
  transform: rotate(5deg);
}

.hosts-corner-left {
  bottom: 34px;
  left: 0;
  transform: rotate(240deg);
}

.hosts-script {
  color: #000;
  font-family: "Bickham Script Pro 3";
  font-size: 50px;
  font-weight: 200;
  line-height: 0.95;
  margin: 0;
}

.hosts-namess {
  color: #000;
  font-size: 55px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-family: "Bickham Script Pro 3";
  margin: 0;
}

.hosts-names {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  opacity: 0;
}

.hosts-monogram {
  display: block;
  width: min(58%, 250px);
  height: auto;
  margin: -30px auto;
  user-select: none;
  pointer-events: none;
}


@keyframes coverEnvelopeIntro {
  from {
    opacity: 0;
    filter: drop-shadow(0 10px 14px rgba(30, 25, 18, 0.1));
    transform: translate(-50%, -44%) scale(0.94);
  }

  to {
    opacity: 1;
    filter: drop-shadow(0 18px 22px rgba(30, 25, 18, 0.28));
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes coverTextIntro {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20%, 0) rotate(var(--petal-rotate));
  }

  12% {
    opacity: 0.86;
  }

  50% {
    opacity: 0.72;
    transform: translate3d(calc(var(--petal-drift) * 0.45), 58vh, 0) rotate(calc(var(--petal-rotate) + 150deg));
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--petal-drift), 116vh, 0) rotate(calc(var(--petal-rotate) + 330deg));
  }
}

@keyframes centeredLayerReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes itemReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes frontEnvelopeReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(32px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(8deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(4deg) scale(1);
  }
}

@keyframes heartReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(26px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes flowerReveal {
  from {
    opacity: 0;
    transform: translate(24px, 26px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@media (max-width: 370px) {
  .paper-copy .script-name {
    font-size: 3.58rem;
  }
}

@media (max-width: 430px) {
  .site-shell {
    width: 100vw;
  }

  .paper-panel {
    padding-top: 26px;
  }

  .details {
    margin-top: -24px;
  }

  .details-flower-branch {
    right: -18%;
    bottom: -39%;
    width: min(80%, 300px);
    opacity: 0.44;
    z-index: 100;
  }

  .calendar-section {
    padding: 44px 35px 48px;
  }

  .calendar-block {
    width: 100%;
    max-width: 340px;
  }

  .calendar-grid {
    row-gap: 12px;
  }

  .rose-transition {
    height: 118px;
  }

  .rose-transition img {
    left: -20%;
    width: min(56%, 205px);
  }

  .rose-transition-line {
    left: 18%;
    right: 4%;
    height: 12px;
  }

  .venue-section {
    padding: 28px 18px 34px;
  }

  .rectangle-back {
    padding: 40px 20px 30px;
  }

  .venue-floral-row {
    height: 78px;
    margin-top: 8px;
    margin-bottom: -8px;
  }

  .venue-floral-left {
    left: -70px;
    top: -125px;
    width: min(78%, 260px);
    z-index: 100;
  }

  .venue-floral-right {
    right: -38px;
    top: -270px;
    width: min(38%, 124px);
    z-index: 100;
  }

  .venue-building {
    width: min(92%, 340px);
    margin-bottom: 34px;
  }

  .hosts-section {
    padding: 42px 24px 52px;
  }

  .hosts-corner {
    width: min(80%, 245px);
    opacity: 0.5;
  }

  .hosts-corner-right {
    top: -5%;
    right: -10%;
  }

  .hosts-corner-left {
    bottom: -5%;
    left: -15%;
  }

  .hosts-names {
    margin-bottom: 46px;
  }

  .hosts-monogram {
    width: min(64%, 230px);
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .site-shell {
    width: min(100vw, 700px);
  }

  .details {
    margin-top: -12px;
  }


  .venue-section {
    width: min(100%, 700px);
  }

  .rose-transition {
    width: min(100%, 700px);
  }
}

@media (min-width: 901px) {
  .site-shell {
    width: 464px;
  }
}

@media (max-width: 480px) {
  .paper-copy .script-name {
    width: 146%;
    margin: 42px 0 32px;
    font-size: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Final local overrides: keep Kazakh script text on regular Bickham, never MM Swash. */
:root {
  --script-display: var(--digits), "Bickham Script Pro 3", "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --script-capitals: var(--digits), "Bickham Script Pro 3", "Great Vibes", cursive;
}

.script-split,
.script-split .name-capital,
.script-split .name-rest,
.paper-copy .paper-name,
.final-script,
.final-script .final-script-line,
.final-script .name-capital,
.final-script .name-rest {
  font-family: "Bickham Script Pro 3", "Great Vibes", cursive !important;
  font-weight: 400 !important;
}



.final-script .name-capital,
.final-script .name-rest {
  line-height: inherit !important;
  transform: none !important;
}

.location-section,
.rsvp-section {
  background: #ffffff !important;
  box-shadow: none !important;
}

.rsvp-section::before,
.rsvp-section::after {
  content: none !important;
}

/* Final local overrides: use one Kazakh-capable Bickham font, no MM swash capitals. */
:root {
  --script-display: var(--digits), "Bickham Script Pro 3", "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --script-capitals: var(--digits), "Bickham Script Pro 3", "Great Vibes", cursive;
}

.script-split,
.script-split .name-capital,
.script-split .name-rest,
.paper-copy .paper-name,
.final-script,
.final-script .final-script-line,
.final-script .name-capital,
.final-script .name-rest {
  font-family: "Bickham Script Pro 3", "Great Vibes", cursive !important;
  font-weight: 400 !important;
}

.paper-copy .paper-name {
  width: 100%;
  font-size: 1.2rem;
  line-height: 0.82;
}

.paper-copy .paper-name + .paper-name {
  margin-top: -30px;
}

.final-script .name-capital,
.final-script .name-rest {
  line-height: inherit;
  transform: none;
}

.location-section,
.rsvp-section {
  background: #ffffff !important;
  box-shadow: none;
}

.rsvp-section::before,
.rsvp-section::after {
  content: none !important;
}

/* Local overrides for Olzhas & Aizhan version. */
.paper-copy .paper-name,
.paper-copy .paper-name .name-capital,
.paper-copy .paper-name .name-rest {
  font-family: "Bickham Script Pro 3", "Great Vibes", cursive !important;
}

.location-section,
.rsvp-section {
  background: #ffffff !important;
  box-shadow: none;
}

.rsvp-section::before,
.rsvp-section::after {
  content: none !important;
}

/* === Reference sections from qyz-uzatu-invitation (2).zip === */
@font-face {
  font-family: "Bickham Script Pro 3";
  src: url("../assets/fonts/bickham-script-pro-3-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Bickham Script MM Swash Capitals";
  src: url("../assets/fonts/bickham-script-mm-swash-capitals.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("../assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel Digits";
  src: url("../assets/fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "Noto Serif Display Local Normal";
  src: url("../assets/fonts/NotoSerifDisplay-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #ed88b6;
  --soft-pink: #f8bfd4;
  --rose: #c95f8b;
  --ivory: #fffaf1;
  --cream: #f5ecd8;
  --white: #ffffff;
  --gold: #d7b66b;
  --sage: #8f9b5b;
  --deep-sage: #596236;
  --ink: #47382d;
  --muted: #7d6b5f;
  --shadow: 0 18px 46px rgba(77, 58, 38, 0.16);
  --digits: "Cinzel Digits";
  --serif-display: var(--digits), "Cormorant Garamond Local", Georgia, serif;
  --serif-previous: var(--digits), "Noto Serif Display Local Normal", Georgia, serif;
  --script-display: var(--digits), "Bickham Script Pro 3", "Great Vibes", var(--serif-display);
  --script-capitals: var(--digits), "Bickham Script Pro 3", "Great Vibes", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #c7c9a8;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--serif-display);
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body.is-locked {
  height: 100svh;
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
  font-style: normal;
  letter-spacing: 0;
}

input,
textarea,
select {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

body :where(p, h1, h2, h3, h4, span, a, button, input, label, legend, time, strong, b, li) {
  font-style: normal;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.desktop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;

  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}

.desktop-overlay.is-ready {
  opacity: 1;
  visibility: visible;
}

.desktop-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 40px;
  max-width: 520px;
  text-align: center;
}

.desktop-overlay-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.85;
  animation: envelopeBreath 2800ms ease-in-out infinite;
}

.desktop-overlay-text {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.03em;
}

@media (min-width: 769px) {
  .desktop-overlay {
    display: flex;
  }

  .page-shell {
    display: none !important;
  }
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--ivory);
}

.content-section,
.intro-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 56px 20px;
}

.intro-section {
  isolation: isolate;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fae8ef 52%, #f7eedc 100%);
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 30px;
  transition:
    opacity 2000ms ease,
    transform 2000ms ease;
}

.closed-stage {
  --closed-visual-shift: 22px;
  z-index: 2;
}

.open-stage {
  margin-top: 80px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  justify-content: flex-start;
  padding-top: 100px;
  padding-bottom: 90px;
  transform: translateY(22px) scale(0.97);
}

.intro-section.is-open .closed-stage {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.98);
}

.intro-section.is-open .open-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.petals-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: var(--size, 12px);
  height: calc(var(--size, 12px) * 0.62);
  border-radius: 90% 18% 88% 22%;
  opacity: 0;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(255, 236, 242, 0.96), rgb(255, 232, 205));
  box-shadow: 0 4px 12px rgba(215, 116, 150, 0.18);
  transform: translate3d(0, -24px, 0) rotate(var(--r, 0deg));
  animation: petalFall var(--d, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.open-petals .petal {
  animation-play-state: paused;
}

.intro-section.is-open .open-petals .petal {
  animation-play-state: running;
}

.burst-petals {
  z-index: 3;
}

.burst-petals .petal {
  top: -14%;
  animation: none;
}

.intro-section.is-open .burst-petals .petal {
  animation: petalBurst calc(var(--d, 3s) + 0.8s) cubic-bezier(0.2, 0.72, 0.2, 1) var(--delay, 0s) both;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -32px, 0) rotate(var(--r, 0deg));
  }

  12% {
    opacity: 0.86;
  }

  52% {
    opacity: 0.78;
    transform: translate3d(calc(var(--drift, 40px) * 0.45), 54svh, 0) rotate(calc(var(--r, 0deg) + 126deg));
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 40px), 112svh, 0) rotate(calc(var(--r, 0deg) + 320deg));
  }
}

@keyframes petalBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, -38px, 0) rotate(var(--r, 0deg)) scale(0.92);
  }

  8% {
    opacity: 0.95;
  }

  58% {
    opacity: 0.86;
    transform: translate3d(calc(var(--drift, 54px) * 0.52), 58svh, 0) rotate(calc(var(--r, 0deg) + 150deg)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 54px), 118svh, 0) rotate(calc(var(--r, 0deg) + 390deg)) scale(0.96);
  }
}

.intro-title {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
}

.closed-stage .intro-title {
  transform: translateY(var(--closed-visual-shift));
}

.intro-title h1,
.script-name {
  margin: 0;
  font-family: var(--script-display);
  font-weight: 400;
  line-height: 0.95;
  color: var(--rose);
  text-shadow: 0 8px 22px rgba(237, 136, 182, 0.22);
}

.intro-title h1 {
  font-family: var(--script-display);
  margin-left: 0;
  font-size: 9rem;
  line-height: 0.84;
  color: #adac55;
  text-shadow: 0 8px 22px rgba(89, 98, 54, 0.18);
}

.intro-name .name-capital {
  display: inline-block;
  font-family: var(--script-capitals);
  line-height: 0.72;
  transform: translateY(0.02em);
}

.intro-name .name-rest {
  font-family: var(--script-display);
}

.intro-name {
  transition: opacity 180ms ease;
}

body:not(.fonts-ready) .intro-name {
  opacity: 0;
}

.script-split {
  font-family: var(--script-display);
  font-weight: 400;
  letter-spacing: 0;
}

.script-split .name-capital {
  display: inline-block;
  font-family: var(--script-capitals);
  font-weight: 400;
  line-height: 0.72;
  transform: translateY(0.02em);
}

.script-split .name-rest {
  font-family: var(--script-display);
  font-weight: 400;
}

.intro-title p {
  margin: clamp(-18px, -2.7svh, -8px) 0 0;
  font-family: var(--serif-display);
  font-size: clamp(1.08rem, 3.9vw, 1.58rem);
  line-height: 1;
  font-weight: 400;
  color: var(--deep-sage);
}

.intro-title .intro-subtitle {
  margin: clamp(8px, 1.2svh, 16px) 0 0;
  font-size: clamp(1.02rem, 3.2vw, 1.32rem);
  transform: translateX(clamp(70px, 18vw, 150px));
  white-space: nowrap;
}

.envelope-button {
  position: relative;
  z-index: 3;
  width: min(110vw, 455px);
  aspect-ratio: 1 / 1;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  animation: envelopeBreath 2800ms ease-in-out infinite;
}

.envelope-button:focus-visible,
.music-button:focus-visible,
.map-button:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.closed-envelope {
  width: 100%;
  /* filter: drop-shadow(0 22px 32px rgba(69, 56, 34, 0.22)); */
}

.closed-seal {
  position: absolute;
  width: 29%;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  /* filter: drop-shadow(0 10px 22px rgba(195, 95, 139, 0.28)); */
}

.tap-hint,
.scroll-hint {
  position: relative;
  z-index: 3;
  margin: 12px 0 0;
  font-family: var(--serif-display);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--deep-sage);
  text-align: center;
}

.tap-hint::after,
.scroll-hint::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--gold);
}

.intro-flowers {
  position: absolute;
  z-index: 100;
  right: 25px;
  bottom: calc(17% - var(--closed-visual-shift));
  width: min(54vw, 220px);
  opacity: 0.9;
  /* filter: drop-shadow(0 18px 28px rgba(87, 94, 57, 0.18)); */
  pointer-events: none;
  transform: rotate(30deg);
  transform-origin: 50% 50%;
}

.open-envelope-wrap {
  position: relative;
  z-index: 3;
  width: min(92vw, 420px);
  opacity: 0;
  transform: translateY(100svh) scale(0.94);
  /* filter: drop-shadow(0 24px 34px rgba(63, 52, 31, 0.2)); */
  transition:
    opacity 3300ms cubic-bezier(0.19, 1, 0.22, 1) 350ms,
    transform 3300ms cubic-bezier(0.19, 1, 0.22, 1) 350ms;
  will-change: opacity, transform;
}

.intro-section.is-open .open-envelope-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.open-envelope {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
}

.open-seal {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 65%;
  width: 30%;
  transform: translate(-50%, -50%);
  /* filter: drop-shadow(0 10px 28px rgba(211, 90, 138, 0.24)); */
}

.open-rose {
  position: absolute;
  z-index: 6;
  width: min(90vw, 350px);
  opacity: 0;
  /* filter: drop-shadow(0 22px 30px rgba(76, 59, 39, 0.16)); */
  pointer-events: none;
  transition:
    opacity 1450ms ease 520ms,
    transform 1450ms ease 520ms;
}

.open-rose-left {
  z-index: 1;
  left: -42px;
  top: -5px;
  transform: translateX(-42px) rotate(47deg);
}

.open-rose-right {
  right: -156px;
  bottom: -46px;
  z-index: 7;
  transform: translateX(42px) rotate(-45deg);
}

.intro-section.is-open .open-rose {
  opacity: 1;
}

.intro-section.is-open .open-rose-left {
  transform: translateX(0) rotate(44deg);
}

.intro-section.is-open .open-rose-right {
  transform: translateX(0) rotate(-45deg);
}

.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px));
  margin: 0 auto;
  color: black;
  z-index: 12;
  line-height: 1.35;
  pointer-events: none;
}

.music-button {
  position: absolute;
  right: max(5px, calc((100vw - 520px) / 2 + 5px));
  z-index: 50;
  width: 136px;
  height: 136px;
  padding: 0;
  top: 42px;
  margin-right: 0px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  /* filter: drop-shadow(0 12px 20px rgba(91, 56, 67, 0.18)); */
}

.music-ring {
  width: 100%;
  height: 100%;
  animation: spinSlow 10s linear infinite;
}

.music-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.music-button.is-playing .music-ring {
  animation-duration: 6s;
}

.paper-section {
  min-height: auto;
  place-items: start center;
  padding-top: 28px;
  padding-bottom: 0;

  z-index: 2;
  overflow: visible;
  background:
    linear-gradient(180deg, #fffaf5 0%, #fffaf5 46%, #fffaf5 84%, rgb(142, 151, 122) 84%, rgb(142, 151, 122) 100%);
}

.paper-card {
  position: relative;
  z-index: 2;
  width: min(calc(100vw - 24px), 400px);
  margin-top: 22px;
  background: #fffdf5;
}

.paper-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 34px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(71, 58, 35, 0.24);
  filter: blur(16px);
  pointer-events: none;
}

.paper-image {
  width: 100%;
  /* filter: drop-shadow(0 24px 36px rgba(65, 54, 36, 0.18)); */
}

.paper-copy {
  position: absolute;
  inset: 15.8% 6.4% 6.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
  font-family: var(--serif-display);
  color: #4c4036;
}

.paper-copy h2 {
  margin: 0;
  font-size: 1.86rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.paper-copy p {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.02;
  font-weight: 400;
  text-transform: uppercase;
}

.paper-subtitle {
  margin-top: 44px !important;
  letter-spacing: 0.07em;
}

.paper-copy .script-name {
  width: 142%;
  margin: 26px 0 28px;
  font-size: 5.55rem;
  line-height: 0.58;
  color: rgb(142, 151, 122);
  text-transform: none;
  /* text-shadow: 0 12px 20px rgba(143, 155, 91, 0.14); */
}

.paper-body {
  font-size: 1.38rem !important;
  line-height: 1.42 !important;
  letter-spacing: 0.04em;
}

.decor-oyu {
  position: absolute;
  width: 210px;
  opacity: 0.14;
  filter: sepia(0.8) hue-rotate(332deg) saturate(1.2);
}

.decor-oyu-left {
  left: -98px;
  top: 8%;
  transform: rotate(-28deg);
}

.decor-oyu-right {
  right: -105px;
  bottom: 4%;
  transform: rotate(152deg);
}

.calendar-section {
  place-items: start center;
  padding-top: 60px;
  margin-top: -50px;

  background: rgb(142, 151, 122);
  color: var(--ivory);
}

.calendar-section::before,
.calendar-section::after {
  content: none;
}

.calendar-oyu-glow-right {
  position: absolute;
  right: -124px;
  top: 78px;
  z-index: 0;
  width: min(58vw, 290px);
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.04);
  pointer-events: none;
}

.calendar-oyu-glow-left {
  position: absolute;
  left: -104px;
  bottom: -15px;
  z-index: 0;
  width: min(58vw, 290px);
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.04);
  pointer-events: none;
  transform: rotate(200deg);
}

.calendar-block {
  position: relative;
  margin-top: 158px;
  z-index: 2;
  width: min(92vw, 390px);
  padding: 0 0 20px;
  color: #fffdf1;
  font-family: var(--serif-display);
  font-weight: 400;
  text-align: left;
  text-shadow: 0 1px 8px rgba(71, 78, 20, 0.22);
}

.section-kicker {
  margin: 0 0 14px;
  margin-top: -15px;
  font-family: var(--serif-display);
  font-size: 1.28rem;
  font-weight: 400;
  color: white;
  text-align: center;
}

.calendar-block h2 {
  max-width: 100%;
  margin: 0 auto 22px;
  overflow-wrap: anywhere;
  font-family: var(--serif-display);
  font-size: 1.34rem;
  line-height: 1.1;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-transform: uppercase;
}

.calendar-widget {
  position: relative;
  width: min(100%, 364px);
  margin: 0 auto;
  padding: 0;
  color: #ffffff;
}

.calendar-widget::before {
  content: none;
}

.calendar-topline {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.calendar-month {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(2.45rem, 10.4vw, 3rem);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.calendar-year {
  padding-bottom: 6px;
  font-family: var(--serif-display);
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1;
  font-weight: 400;
  color: #ffffff;
}

.weekday-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  min-height: 38px;
  align-items: center;
  margin: 8px 0 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.weekday-row span {
  display: grid;
  min-height: 34px;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 400;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 16px;
  column-gap: 0;
  align-items: center;
  padding-left: 0;
}

.calendar-grid i,
.calendar-grid b {
  display: grid;
  min-height: 35px;
  place-items: center;
  font-family: var(--serif-display);
  font-size: 1.52rem;
  line-height: 1;
  font-weight: 400;
}

.calendar-grid b {
  position: relative;
  color: #ffffff;
  border-radius: 50%;
}

.calendar-grid .event-day {
  z-index: 1;
  isolation: isolate;
  color: #ffffff;
  font-size: 1.54rem;
  text-shadow: 0 2px 8px rgba(71, 78, 20, 0.28);
}

.calendar-grid .event-day::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 104px;
  height: 108px;
  background: url("../assets/calendar-heart-original.png?v=original") center / contain no-repeat;
  opacity: 1;
  transform-origin: center;
  transform: translate(-50%, -50%);
  animation: calendarHeartBreath 4200ms ease-in-out infinite;
}

.time-text {
  margin-bottom: 30px;
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
}

.time-textp {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  margin: 20px 0 30px 0;
}

.bird {
  position: absolute;
  z-index: 1;
  width: min(48vw, 196px);
  opacity: 0.6;
  filter: drop-shadow(0 16px 28px rgba(255, 243, 177, 0.22));
}

.bird-left {
  left: -38px;
  top: 7%;

}

.bird-right {
  right: -50px;
  bottom: 0;
  transform: scaleX(-1) rotate(4deg);
}

.bird-right[data-float] {
  animation-name: floatSoftReverse;
}

.location-section {
  position: relative;
  overflow: hidden;
  align-content: center;
  /* padding-top: 58px;
  padding-bottom: 30px; */
  /* background:
    linear-gradient(180deg, #fffaf1 0%, #f9edf1 48%, #f3ead8 100%); */
  text-align: center;
}

.watercolor-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.watercolor-decor {
  position: absolute;
  width: var(--w, 64px);
  opacity: var(--o, 0.72);
  filter: drop-shadow(0 9px 12px rgba(108, 88, 68, 0.1));
  transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)) scaleX(var(--sx, 1));
}

.location-section .address-petals {
  z-index: 1;
}

.location-copy {
  position: relative;
  z-index: 4;
  width: min(88vw, 380px);
  margin: 0 auto;

}

.location-copy h2,
.timing-inner h2,
.rsvp-panel h2,
.final-copy h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 5.72rem;
  line-height: 1;
  font-weight: 400;
}

.location-copy h2 {
  color: rgb(142, 151, 122);
}

.location-copy h2.script-split {
  font-size: clamp(4.65rem, 18vw, 5.85rem);
  line-height: 0.82;
  font-weight: 400;
  margin-bottom: 30px;
}

.address {
  margin: 18px auto 18px;
  max-width: 340px;
  overflow-wrap: anywhere;
  font-size: 1.36rem;
  line-height: 1.38;
  font-weight: 400;
  color: var(--muted);
}

.map-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  margin-top: 14px;
  border: 0;
  border-radius: 100px;
  color: var(--white);
  font-family: var(--serif-display);
  font-size: 0.94rem;
  font-weight: 400;
  text-decoration: none;
  background: rgb(142, 151, 122);
  box-shadow: 0 12px 22px rgba(89, 98, 54, 0.22);
}

.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--serif-display);
  font-size: 0.94rem;
  font-weight: 400;
  text-decoration: none;
  background: white;
  box-shadow: 0 12px 22px rgba(89, 98, 54, 0.22);
}

.location-copy .map-button {
  min-height: 58px;
  padding: 0 62px;
  font-size: 1.08rem;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 700ms ease 360ms,
    transform 820ms cubic-bezier(0.19, 1, 0.22, 1) 360ms,
    box-shadow 260ms ease,
    background-color 260ms ease;
}

.location-copy.is-visible .map-button {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dastarkhan {
  position: relative;
  z-index: 3;
  width: min(110vw, 532px);
  margin: 30px auto 0;
  filter: drop-shadow(0 22px 36px rgba(89, 75, 42, 0.2));
}

.location-leaf {
  --w: min(15vw, 60px);
  --o: 0.66;
  --r: -46deg;
  right: 10%;
  top: 1%;
}

.location-coral {
  --w: min(16vw, 54px);
  --o: 0.76;
  --r: 28deg;
  left: 8%;
  top: 40%;
}

.location-orange {
  --w: min(13vw, 54px);
  --o: 0.78;
  --r: -8deg;
  right: 14%;
  top: 47%;
}

.location-small-pink {
  --w: min(12vw, 48px);
  --o: 0.7;
  --r: 32deg;
  left: 25%;
  top: 3%;
}

.timing-section {
  min-height: 100svh;
  place-items: stretch;
  padding: 0;
  background: #ffffff;
}

.timing-line-flower {
  position: absolute;
  z-index: 100;
  width: 154px;
  height: 154px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(72, 70, 61, 0.12));
  pointer-events: none;
}

.timing-line-flower-start {
  left: -30px;
  top: calc(6.2% - 57px);
  transform: rotate(-325deg);
}

.timing-line-flower-end {
  right: -32px;
  top: calc(66.7% - 65px);
  transform: rotate(20deg);
}

.timing-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.timing-inner h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.timing-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.timing-line path {
  fill: none;
  stroke: rgba(92, 96, 84, 0.58);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: timingTrace 2400ms ease forwards;
}

.timeline {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: none;
}

.timeline li {
  position: absolute;
  display: block;
  width: 42%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

.timeline li:nth-child(1) {
  left: 40px;
  top: 138px;
  width: 42%;
  text-align: left;
}

.timeline li:nth-child(2) {
  right: 34px;
  top: 290px;
  width: 36%;
  text-align: center;
}

.timeline li:nth-child(3) {
  left: 40px;
  bottom: 76px;
  width: calc(100% - 80px);
  text-align: left;
}

.timeline li::before {
  content: none;
}

.timeline time {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif-display);
  font-size: 1.72rem;
  line-height: 1;
  font-weight: 400;
  color: #40382f;
}

.timeline span {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.32rem;
  line-height: 1.16;
  font-weight: 400;
  color: #6b6258;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.color-dot {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(72, 55, 36, 0.12);
}



.field-label {
  display: block;
  margin-bottom: 6px;
  text-align: left;
  font-family: var(--serif-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.rsvp-panel input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  padding: 0 0 8px;
  color: #ffffff;
  font-family: var(--serif-display);
  font-size: 1.24rem;
  background: transparent;
  box-shadow: none;
}

.open-rose {
  position: absolute;
  opacity: 1;
  z-index: 6;
  width: min(90vw, 350px);
  opacity: 1;
  /* filter: drop-shadow(0 22px 30px rgba(76, 59, 39, 0.16)); */
  pointer-events: none;
  transition:
    opacity 1450ms ease 520ms,
    transform 1450ms ease 520ms;
}

.open-rose-left {
  z-index: 15;
  left: -42px;
  top: -15px;
  transform: translateX(-42px) rotate(47deg);
}

.open-rose-right {
  right: -156px;
  bottom: -46px;
  z-index: 7;
  transform: translateX(42px) rotate(-45deg);
}

.radio-group {
  display: grid;
  gap: 17px;
  margin: 32px 0 36px;
  padding: 0;
  border: 0;
  text-align: left;
}

.radio-group legend {
  margin-bottom: 14px;
  font-family: var(--serif-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.radio-group label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif-display);
  font-size: 1.34rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.radio-group input {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin: 0;
  appearance: none;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 10px rgba(177, 61, 113, 0.08);
}

.radio-group input:checked {
  background: radial-gradient(circle, #ffffff 0 32%, transparent 36%);
}

.radio-group input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.submit-button {
  width: 100%;
  min-height: 72px;
  border-radius: 2px;
  color: rgba(146, 104, 116, 0.68);
  font-size: 1.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 22px rgba(176, 61, 112, 0.08);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-weight: 400;
}

.form-message.is-error {
  color: #fff1be;
}

.form-message.is-success {
  color: #f8ffe1;
}

.final-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  background: #ffffff;
  text-align: center;
  padding: 40px 0 0 0;
  box-sizing: border-box;
}

.final-watercolors {
  z-index: 2;
}

.final-copy {
  position: relative;
  z-index: 4;
  width: min(96vw, 520px);
}

.final-rose {
  position: absolute;
  left: 50%;
  top: 50%; /* Mathematically centers the monogram perfectly inside the container */
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(32%, 140px); /* Larger size so it is highly visible */
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: none; /* Keep it white to stand out against the brown brush strokes */
}

.final-leaf {
  --w: min(15vw, 58px);
  --o: 0.82;
  --r: -42deg;
  right: 8%;
  top: 25%;
}

.final-center-flower {
  --w: min(14vw, 56px);
  --o: 0.78;
  --r: -26deg;
  left: 0%;
  top: 3%;
}



.final-pink-stem {
  --w: min(16vw, 38px);
  --o: 0.62;
  --r: -36deg;
  left: 5%;
  top: -60%;
}



.final-copy h2>span,
.final-copy p>span {
  display: block;
}

.final-copy p {
  margin: -20px 0 46px 0;
  color: rgb(142, 151, 122);
  font-family: "Bickham Script Pro 3", "Great Vibes", var(--serif-display);
  font-size: clamp(6rem, 19vw, 7.5rem);
  font-style: normal;
  line-height: 0.82;
  font-weight: 400;
  text-shadow: 0 9px 18px rgba(135, 145, 92, 0.12);
}



.final-sprig {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(108, 88, 68, 0.12));
}

.final-sprig-rose {
  right: 0;
  top: -30px;
  width: 42px;
  transform: translateX(-50%) rotate(297deg);
}

.countdown {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(94vw, 430px);
  padding: 0 10px;

}

.count-card {
  position: relative;
  min-width: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.count-card::after {
  content: ":";
  position: absolute;
  right: -4px;
  top: -3px;
  color: rgb(142, 151, 122);
  font-family: var(--serif-display);
  font-size: clamp(2.28rem, 12vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
}

.count-card:last-child::after {
  content: none;
}

.count-card strong {
  display: block;
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 12.8vw, 4.35rem);
  line-height: 0.96;
  font-weight: 400;
  color: rgb(142, 151, 122);
  text-shadow: 0 8px 18px rgba(150, 143, 121, 0.08);
}

.count-card span {
  display: block;
  margin-top: 6px;
  font-family: var(--serif-display);
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 400;
  color: rgb(142, 151, 122);
  text-transform: uppercase;
}

.final-footer-graphic {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(136vw, 680px);
  max-width: none;
  margin: 32px 0 0 0;
  z-index: 1;
  filter: drop-shadow(0 -8px 28px rgba(100, 104, 62, 0.12));
}

.bunchflowers {
  display: block;
  width: 100%;
  height: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-float] {
  animation: floatSoft 5200ms ease-in-out infinite;
}

@keyframes envelopeBreath {

  0%,
  100% {
    transform: translateY(var(--closed-visual-shift, 0)) scale(1);
  }

  50% {
    transform: translateY(calc(var(--closed-visual-shift, 0) - 5px)) scale(1.012);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatSoftReverse {

  0%,
  100% {
    transform: scaleX(-1) rotate(4deg) translateY(0);
  }

  50% {
    transform: scaleX(-1) rotate(4deg) translateY(-10px);
  }
}

@keyframes waveMotion {
  0% {
    transform: translateY(0) scaleX(1.01);
  }

  100% {
    transform: translateY(6px) scaleX(1.03);
  }
}

@keyframes waveMotionTop {
  0% {
    transform: translateY(0) scaleX(1.01);
  }

  100% {
    transform: translateY(0) scaleX(1.03);
  }
}

@keyframes timingTrace {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes calendarHeartBreath {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 370px) {

  .content-section,
  .intro-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-title h1 {
    font-size: 4.4rem;
  }

  .paper-copy {
    gap: 9px;
  }

  .paper-copy h2 {
    font-size: 1.5rem;
  }

  .paper-copy p {
    font-size: 1.08rem;
  }

  .paper-body {
    font-size: 1.08rem !important;
  }

  .paper-copy .script-name {
    font-size: 3.58rem;
  }

  .timeline li {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

}

@media (max-width: 480px) {

  .content-section,
  .intro-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stage {
    padding-left: 12px;
    padding-right: 12px;
  }

  .intro-title h1 {
    margin-left: 0;
    font-size: clamp(5.8rem, 23vw, 7.1rem);
  }

  .intro-title p {
    margin-top: clamp(-16px, -2.4svh, -7px);
    margin-left: 0;
    font-size: clamp(1rem, 4vw, 1.34rem);
  }

  .envelope-button {
    width: min(calc(100vw - 18px), 430px);
  }

  .music-button {
    top: 30px;
    right: 10px;
    width: 92px;
    height: 92px;
  }

  .music-icon {
    width: 56px;
  }

  .open-stage {
    margin-top: 60px;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .open-envelope-wrap {
    width: min(88vw, 400px);
  }

  .open-seal {
    width: 31%;
  }

  .open-rose {
    width: min(56vw, 228px);
  }

  .open-rose-left {
    left: -60px;
    top: 7%;
    width: min(52vw, 206px);
  }

  .open-rose-right {
    right: -130px;
    bottom: -65px;
    width: min(58vw, 228px);
  }

  .scroll-hint {
    margin-top: 0;
  }

  .paper-card {
    width: min(calc(100vw - 24px), 400px);
  }

  .paper-copy {
    inset: 15.5% 6.2% 6%;
    gap: 0;
  }

  .paper-copy h2 {
    font-size: clamp(1.58rem, 6vw, 1.9rem);
  }

  .paper-copy p {
    font-size: clamp(1.22rem, 5.1vw, 1.42rem);
  }

  .paper-copy .script-name {
    width: 146%;
    margin: 22px 0 28px;
    font-size: 5.5rem;
  }

  .paper-subtitle {
    margin-top: 40px !important;
  }

  .paper-body {
    font-size: clamp(1.22rem, 5.1vw, 1.42rem) !important;
    line-height: 1.34 !important;
  }

  .calendar-block {
    width: min(calc(100vw - 32px), 390px);
  }

  .rsvp-section {
    min-height: max(112svh, 940px);
    padding: 184px 20px 132px;
  }

  .rsvp-section::before {
    height: 118px;
    background-size: 100% 118px;
    top: -14px;
  }

  .rsvp-section::after {
    height: 116px;
    background-size: 100% 116px;
    bottom: -16px;
  }

  .rsvp-panel {
    width: min(calc(100vw - 40px), 430px);
  }

  .rsvp-panel h2 {
    margin-bottom: 54px;
    font-size: clamp(6.25rem, 24vw, 8rem);
    line-height: 0.86;
  }

  .radio-group {
    gap: 24px;
    margin: 40px 0 48px;
  }

  .radio-group label {
    min-height: 62px;
    gap: 20px;
    font-size: clamp(1.26rem, 5.2vw, 1.48rem);
  }

  .radio-group input {
    width: 50px;
    height: 50px;
  }

  .submit-button {
    min-height: 82px;
    font-size: clamp(1.36rem, 5.6vw, 1.74rem);
  }

  .location-leaf {
    right: 7%;
    top: 1%;
  }

  .location-coral {
    left: 4%;
    top: 39%;
  }

  .location-orange {
    right: 2%;
    top: 50%;
  }

  .location-small-pink {
    left: 8%;
    top: 3%;
    bottom: auto;
  }

  .final-leaf {
    right: 7%;
    top: calc(28% + 15px);
  }

  .final-center-flower {
    left: 0%;
    top: calc(30% - 90px);
  }

  .final-purple {
    right: 5%;
    top: 61%;
  }

  .final-pink-stem {
    left: 4%;
    top: calc(56% - 40px);
  }

  .radio-group label {
    gap: 16px;
    font-size: clamp(1.08rem, 4.5vw, 1.28rem);
  }

  .radio-group input {
    width: 40px;
    height: 40px;
  }

  .final-copy h2 {
    font-size: clamp(3.2rem, 13vw, 5.1rem);
  }

  .final-copy p {
    font-size: clamp(5rem, 20vw, 7rem);
  }

  .countdown {
    width: min(calc(100vw - 16px), 430px);
    margin-top: clamp(30px, 5.8svh, 56px);
    padding: 0 6px;
  }
}

@media (max-width: 480px) and (max-height: 720px) {

  .content-section,
  .intro-section {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .stage {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .closed-stage {
    --closed-visual-shift: 16px;
  }

  .intro-title {
    margin-bottom: 4px;
  }

  .intro-title h1 {
    font-size: clamp(4.95rem, 21vw, 6.2rem);
  }

  .intro-title p {
    margin-top: -6px;
    font-size: clamp(0.92rem, 3.7vw, 1.12rem);
  }

  .envelope-button {
    width: min(calc(100vw - 28px), 390px);
    margin-top: 0;
  }

  .tap-hint,
  .scroll-hint {
    margin-top: 8px;
  }

  .scroll-hint {
    margin-top: 0;
  }

  .open-stage {
    margin-top: 40px;
    padding-top: 100px;
    padding-bottom: 70px;
  }

  .open-envelope-wrap {
    width: min(86vw, 380px);
  }

  .open-rose {
    width: min(50vw, 205px);
  }

  .open-rose-left {
    left: -70px;
    top: -50px;
    width: min(60vw, 248px);
  }

  .open-rose-right {
    right: -124px;
    bottom: -58px;
    width: min(54vw, 210px);
  }

  .location-copy {
    margin-top: 22px;
  }

  .location-leaf {
    top: 1%;
  }

  .location-small-pink {
    top: 3%;
  }

  .address {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 1.38rem;
    line-height: 1.28;
  }

  .dastarkhan {
    width: min(104vw, 480px);
    margin-top: 22px;
  }

  .rsvp-section {
    min-height: max(124svh, 890px);
    padding-top: 154px;
    padding-bottom: 116px;
  }

  .rsvp-panel h2 {
    margin-bottom: 42px;
    font-size: clamp(5.8rem, 23vw, 7.3rem);
  }

  .radio-group {
    gap: 18px;
    margin: 30px 0 40px;
  }

  .radio-group label {
    min-height: 56px;
  }

  .submit-button {
    min-height: 76px;
  }

  .final-section {
    padding-top: 42px;
  }

  .final-copy {
    width: min(92vw, 460px);
  }

  .final-copy p {
    margin-top: 26px;
  }

  .countdown {
    margin-top: 22px;
    transform: translateY(-18px);
  }

  .final-footer-graphic {
    bottom: -22px;
    width: min(128vw, 610px);
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .final-section {
    padding-top: 28px;
  }

  .final-copy {
    transform: translateY(-24px);
  }

  .countdown {
    margin-top: 26px;
    transform: translateY(-18px);
  }

  .final-footer-graphic {
    bottom: -64px;
    width: min(122vw, 580px);
  }
}

@media (max-width: 480px) and (min-height: 850px) {
  .intro-section {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .stage {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .closed-stage {
    --closed-visual-shift: 26px;
  }

  .intro-title {
    margin-bottom: clamp(14px, 3svh, 28px);
  }

  .envelope-button {
    width: min(calc(100vw - 18px), 440px);
  }

  .open-stage {
    margin-top: 72px;
    padding-top: 140px;
    padding-bottom: 90px;
  }

  .open-rose-left {
    left: -90px;
    top: -4px;
    width: min(54vw, 220px);
  }

  .open-rose-right {
    right: -148px;
    bottom: -28px;
  }

  .location-copy {
    margin-top: 24px;
  }

  .location-leaf {
    top: 1%;
  }

  .location-small-pink {
    top: 3%;
  }

  .countdown {
    margin-top: 38px;
    transform: translateY(-24px);
  }

  .final-footer-graphic {
    bottom: -26px;
  }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .music-button {
    top: 34px;
    width: 112px;
    height: 112px;
  }

  .music-icon {
    width: 66px;
  }

  .open-rose {
    width: min(48vw, 250px);
  }

  .open-rose-left {
    left: -70px;
    top: -4px;
  }

  .open-rose-right {
    right: -132px;
    bottom: -22px;
  }
}

@media (min-width: 700px) {
  body {
    padding: 0;
  }

  .page-shell {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 22px 60px rgba(40, 38, 27, 0.24);
  }
}

body :where(p, h1, h2, h3, h4, span, a, button, input, label, legend, time, strong, b, li) {
  font-weight: 400 !important;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Final local overrides. */
:root {
  --script-display: var(--digits), "Bickham Script Pro 3", "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --script-capitals: var(--digits), "Bickham Script Pro 3", "Great Vibes", cursive;
}

.cover-panel {
  background: #d8d0c1;
}

.cover-panel::after {
  content: none !important;
}

.cover-bg {
  z-index: 0;
  object-position: center center;
}

.closed-envelope-button {
  overflow: hidden;
}

.closed-envelope-image {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(96%, 560px) !important;
  height: auto;
  margin: 0 !important;
  border-radius: 8px;
  clip-path: inset(6px round 8px);
  filter: drop-shadow(0 18px 22px rgba(53, 46, 36, 0.24));
  opacity: 1 !important;
  transform: translate(-50%, -50%);
  animation: none !important;
}

.closed-envelope-copy {
  top: calc(42% - min(11vw, 58px));
  z-index: 5;
  color: #5c5648;
  opacity: 1 !important;
  text-shadow: none;
  animation: none !important;
}

.cover-pretitle {
  color: #5c5648;
  font-size: clamp(10px, 2.6vw, 14px);
  letter-spacing: 0.12em;
}

.closed-envelope-copy strong {
  color: #676052;
  font-family: "Bickham Script Pro 3", "Great Vibes", cursive;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 0.8;
}

.open-label {
  bottom: calc(50% - min(25vw, 145px));
  z-index: 5;
  color: #5e5749;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(10px, 2.55vw, 14px);
  letter-spacing: 0.12em;
  opacity: 1 !important;
  animation: none !important;
}

.script-split,
.script-split .name-capital,
.script-split .name-rest,
.paper-copy .paper-name,
.final-script,
.final-script .final-script-line,
.final-script .name-capital,
.final-script .name-rest {
  font-family: "Bickham Script Pro 3", "Great Vibes", cursive !important;
  font-weight: 400 !important;
}

.paper-copy .paper-name {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 4.5rem!important;
  line-height: 0.82 !important;
}

.paper-copy .paper-name + .paper-name {
  margin-top: -30px !important;
}

.final-script .name-capital,
.final-script .name-rest {
  line-height: inherit !important;
  transform: none !important;
}

.location-section,
.rsvp-section {
  background: #ffffff !important;
  box-shadow: none !important;
}

.rsvp-section::before,
.rsvp-section::after {
  content: none !important;
}


.final-copy {
  width: min(94vw, 440px) !important;
  margin: 0 auto 34px !important;
  transform: none !important;
}

/* ─── Desktop blockout overlay ───────────────────────────── */
.desktop-only-overlay {
  display: none;
}

@media (min-width: 621px) {
  .desktop-only-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #fbf8f2 0%, #ede6d8 100%);
    padding: 24px;
    box-sizing: border-box;
  }

  .desktop-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInSoft 0.8s ease-out both;
  }

  .desktop-seal {
    width: clamp(130px, 12vw, 180px);
    height: auto;
    margin-bottom: 28px;
    user-select: none;
    pointer-events: none;
    animation: pulseSoft 3s ease-in-out infinite;
  }

  .desktop-message {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 500;
    color: #5c4a3d;
    line-height: 1.5;
    letter-spacing: 0.05em;
    max-width: 520px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  }
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(92, 74, 61, 0.1));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 16px rgba(92, 74, 61, 0.18));
  }
}
