/* =========================
   RESET
========================= */
/* ==================================================
   FONTS
================================================== */

@font-face {
  font-family: "CormorantCustom";

  src:
    url("fonts/Cormorant-VariableFont_wght.ttf")
    format("truetype");

  font-weight: 300 700;

  font-style: normal;
}

@font-face {
  font-family: "CormorantCustom";

  src:
    url("fonts/Cormorant-Italic-VariableFont_wght.ttf")
    format("truetype");

  font-weight: 300 700;

  font-style: bold-italic;
}

@font-face {
  font-family: "CormorantInfantCustom";

  src:
    url("fonts/CormorantInfant-VariableFont_wght.ttf")
    format("truetype");

  font-weight: 300 700;

  font-style: bold;
}

@font-face {
  font-family: "CormorantInfantCustom";

  src:
    url("fonts/CormorantInfant-Italic-VariableFont_wght.ttf")
    format("truetype");

  font-weight: 300 700;

  font-style: italic;
}

@font-face {
  font-family: "Cherolina";

  src:
    url("fonts/Cherolina.ttf")
    format("truetype");

  font-weight: normal;

  font-style: normal;
}

/* ==================================================
   TYPOGRAPHY
================================================== */

body {
  font-family:
    "CormorantInfantCustom",
    serif;

  color:
    #2f2f2f;
}

/* names */

.couple-names {
  font-family:
    "CormorantCustom",
    serif;

  font-weight: 400;

  letter-spacing:
    -0.03em;

  line-height:
    0.88;
}

/* accents */
/* ==================================================
   FAMILY PREFIX
================================================== */

.family-prefix {
  font-size: 1rem;

  font-weight: 400;

  opacity: 0.9;
}
/* ==================================================
   CONNECTIVE WORDS
================================================== */

.connective-word {
  display: block;

  margin:
    1rem 0;

  font-family:
    "Cherolina",
    cursive;

  font-size: 6rem;

  line-height: 1;

  color: #a68a63;

  font-weight: normal;

  letter-spacing: 0;

  text-transform: none;
}
.event-date,
.event-time,
.thankyou {
  font-style: italic;
}

/* detail copy */

.family-line,
.intro-copy,
.groom-family,
.venue {
  font-family:
    "CormorantInfantCustom",
    serif;

  font-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #FFFFFF;
  --paper-light: #fffaf2;
  --ink: #2b1d12;
  --muted: #7d6b55;
  --gold: #b88a44;
  --shadow: rgba(43, 28, 12, 0.18);

  --base-scale: 1;
--flap-scale: 1;

 --base-shift-y: -8vh;
--flap-shift-y: -8vh;
  --figma-first-fold-height: 844px;
}

html,
body {
  width: 100%;
  min-height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  scroll-behavior: smooth;
}

/* =========================
   HERO
========================= */

.hero-envelope {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;

  overflow: hidden;

  background: #dfe6d6;

  z-index: 20;
}

/* =========================
   ENVELOPE IMAGES
========================= */

.envelope-base,
.envelope-flap {
  position: absolute;

  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
  object-position: 50% 56%;

  max-width: none;

  display: block;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .envelope-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .envelope-base,
  .envelope-flap {
    width: 100%;
    height: 100%;
  }
  
  .envelope-base {
    transform: none;
  }

  .envelope-flap {
    transform: translate3d(0, -8dvh, 0);
  }
}

/* =========================
   BASE
========================= */

.envelope-base {
  z-index: 1;
  transform: none;

  filter:
    drop-shadow(0 40px 60px rgba(0,0,0,0.18));

  transition:
    opacity 3.2s cubic-bezier(0.16, 1, 0.3, 1) 2s,
    filter 3.2s cubic-bezier(0.16, 1, 0.3, 1) 2s;
}

/* =========================
   BASE OPENING STATE
========================= */

.envelope-open .envelope-base {
  opacity: 0;

  transition:
    opacity 0.16s ease 1.38s;
}
/* =========================
   FLAP
========================= */

.envelope-flap {
  z-index: 3;

  transform-origin: top center;

  backface-visibility: hidden;

  transform-style: preserve-3d;

  will-change:
    transform,
    opacity;

  contain: paint;

  cursor: pointer;

  image-rendering: auto;

  -webkit-font-smoothing: antialiased;

  animation-fill-mode: forwards;

  transform:
    translateY(-18dvh)
    translateZ(0);
}
/* =========================
   OPEN STATE
========================= */

.envelope-flap.open {
  animation:
  flapOpen 1.38s
  cubic-bezier(0.22, 1, 0.36, 1)
  forwards;
}

/* =========================
   FLAP KEYFRAMES
========================= */

@keyframes flapOpen {

  0% {
    transform:
      rotateX(0deg)
      translate3d(0, -18dvh, 0);
  }

  18% {
    transform:
      rotateX(8deg)
      translate3d(0, -20dvh, 6px);
  }

  100% {
    transform:
      rotateX(24deg)
      translate3d(0, -30dvh, 24px);
  }
}
/* =========================
   SEAL AREA
========================= */

.seal-hit-area {
  position: absolute;

  left: 50%;
top: 42%;

  width: clamp(6rem, 10vw, 8rem);

  aspect-ratio: 1;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  z-index: 10;

  pointer-events: none;
}

/* pulse */

.seal-ring {
  position: absolute;
  inset: -0.4rem;

  border-radius: 50%;

  border: 1px solid rgba(255,245,215,0.7);

  opacity: 0;

  animation: pulse 2s ease-in-out infinite;

  box-shadow:
    0 0 1.4rem rgba(184,138,68,0.38);
}

/* open note */

.open-note {
  position: absolute;

  left: 50%;
  bottom: 2.2rem;
  top: auto;

  transform: translateX(-50%);

  z-index: 10;

  color: rgba(58,39,23,0.82);

  font-size: 1.08rem;
  font-weight: 500;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;

  pointer-events: none;
  animation: openNoteFloat 1.7s ease-in-out infinite;
}

/* hide helpers during open */

.envelope-scene.opening ~ .open-note {
  opacity: 0;
  transform: translate(-50%, 10px);
}

@keyframes openNoteFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.72;
  }

  50% {
    transform: translate(-50%, -6px);
    opacity: 1;
  }
}

/* =========================
   FADE OUT
========================= */

.hero-envelope.fade-out {
  opacity: 0;
  filter: blur(8px);
  min-height: 0;
  height: 0;

  transition:
    opacity 1.4s ease,
    filter 1.4s ease,
    min-height 0s linear 1.4s,
    height 0s linear 1.4s;

  pointer-events: none;
}

/* ==================================================
   WEBSITE RESET
================================================== */

html,
body {
  width: 100%;
  min-height: 100%;

  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-y: auto;

  scroll-behavior: smooth;

  background: #f3ede2;
}

/* =========================
   INVITE EMERGENCE
========================= */

.invite-site {
  opacity: 0;

  transform:
    translateY(18px);

  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

.invite-site.show {
  opacity: 1;

  transform:
    translateY(0);
}

/* ==================================================
   GLOBAL SECTION
================================================== */

.section {
  position: relative;

  width: 100%;

  overflow: hidden;

  background-image:
    url("paper-texture.png");

  background-size:
    cover;

  background-position:
    center;

  background-repeat:
    no-repeat;
}

/* =========================================
HERO SECTION
========================================= */

.hero-section {

  min-height: var(--figma-first-fold-height);
  height: var(--figma-first-fold-height);
  background-image: none;
  background: #dfe6d6;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding:
    6rem 2rem 0;

}


/* =========================================
CINEMATIC BACKGROUND
========================================= */

.cinematic-bg{
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: var(--figma-first-fold-height);

  overflow: hidden;

  z-index: 1;
}
/* =========================================
LAYERS
========================================= */

.scene-layer{

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: var(--figma-first-fold-height);

  object-fit: cover;

  z-index: 10;

  opacity: 0;

}

@media (min-width: 769px) {
  .hero-section {
    min-height: 100dvh;
    height: 100dvh;
  }

  .cinematic-bg,
  .scene-layer {
    height: 100%;
  }
}

.bg1{
  z-index: 1;
}

.bg2{
  z-index: 2;
  transform: translateY(68px);
  object-position: center bottom;
}

.bg3{
  z-index: 3;
  transform: translateY(84px);
  object-position: center bottom;
}

.bg4{
  z-index: 4;
  transform: translateY(-20px);
  object-position: center top;
}

.hero-birds {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.bird {
  position: absolute;
  top: 8.5rem;
  width: 68px;
  height: 44px;
  opacity: 0;
  filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.28));
  animation: birdDrift 17s ease-in-out infinite;
}

.bird img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: birdFlap 1.1s steps(1, end) infinite;
}

.bird-one {
  left: 18%;
  animation-delay: 0s;
}

.bird-two {
  top: 6.75rem;
  left: 47%;
  transform: scale(0.84);
  animation-delay: -5s;
}

.bird-three {
  top: 9.25rem;
  left: 70%;
  transform: scale(1.08);
  animation-delay: -10s;
}

.bird-four {
  top: 4.6rem;
  left: 8%;
  transform: scale(1.38);
  animation-delay: -2.5s;
}

.bird-five {
  top: 3.8rem;
  left: 76%;
  transform: scale(1.52);
  animation-delay: -7.5s;
}

.bird img:nth-child(2) {
  animation-delay: -0.36s;
}

.bird img:nth-child(3) {
  animation-delay: -0.72s;
}

.bird-two img {
  animation-duration: 0.95s;
}

.bird-three img {
  animation-duration: 1.2s;
}

.bird-four img {
  animation-duration: 1s;
}

.bird-five img {
  animation-duration: 1.15s;
}

@keyframes birdDrift {
  0% {
    opacity: 0;
    transform: translate3d(-22px, 8px, 0) scale(0.96);
  }

  15% {
    opacity: 0.75;
  }

  50% {
    opacity: 0.92;
    transform: translate3d(12px, -8px, 0) scale(1);
  }

  85% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;
    transform: translate3d(30px, 10px, 0) scale(1.04);
  }
}

@keyframes birdFlap {
  0%,
  33.333% {
    opacity: 1;
  }

  33.334%,
  100% {
    opacity: 0;
  }
}


/* =========================================
HERO CONTENT RESET
========================================= */

.hero-content{

  position: relative;
  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  width: 100%;
  min-height: 100%;

  padding-top: 0;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 120px;

  transform: translateY(-32px);
  gap: 1.15rem;

}

/* =========================================
REMOVE DEFAULT SPACING
========================================= */

.hero-content h1,
.hero-content p,
.hero-content div{
  margin: 0;
  padding: 0;
}

/* =========================================
SPACING SYSTEM
========================================= */

.bismillah{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  margin-top: -26px;
  margin-bottom: 42px;
  position: relative;
  top: -18px;
}

.bismillah img {
  width: 200px;
  height: auto;
  display: block;
}

.bismillah-translation {
  margin-top: 0 !important;

  max-width: 184.617px;
  width: 184.617px;

  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: normal;

  color: #383837;

  text-align: center;
  text-wrap: pretty;
  letter-spacing: 0;
  text-shadow: 0 1px 2.9px rgba(255, 255, 255, 1);
}

.family-line{
  margin-bottom: 0;

  width: 342px;
  max-width: 342px;
  height: auto;

  font-family: "CormorantCustom", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: #383837;
}

.intro-copy{
  margin-bottom: 0;

  width: 249.853px;
  max-width: 249.853px;

  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #383837;
  text-shadow: 0 1px 2.9px rgba(255, 255, 255, 1);
}

.couple-names{

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  font-family: "CormorantCustom", serif;
  font-size: 88px !important;
  font-weight: 700;
  font-style: italic;

  line-height: 0.82 !important;
  color: #383837;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  gap: 0 !important;
  letter-spacing: 0;

}

.connective-word{

  font-family: "Cherolina", cursive;
  font-size: 64px !important;
  font-weight: 400;
  font-style: normal;
  color: #383837;

  line-height: normal !important;

  margin: 10px 0 6px !important;

}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 146px;
  z-index: 25;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  color: #383837;
  font-family: "CormorantCustom", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);

  opacity: 0.82;
  transform: translateX(-50%);
  pointer-events: none;
}

.scroll-hint-arrow {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollHintBounce 1.7s ease-in-out infinite;
}

@keyframes scrollHintBounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

.family-prefix {
  display: inline-block;
  margin-bottom: 0;
  font-family: "CormorantCustom", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: #383837;
  opacity: 1;
}


/* =========================================
FLOATING ANIMATION
========================================= */

@keyframes lotusFloat{

  from{
    transform: translateY(0px);
  }

  to{
    transform: translateY(-12px);
  }

}

@keyframes topFloat{

  from{
    transform: translateY(0px);
  }

  to{
    transform: translateY(10px);
  }

}

/* =========================================
DETAILS SECTION RESET
========================================= */

.details-section{
  position: relative;
  background-image: linear-gradient(
    180deg,
    #f7f1e7 0%,
    #f4eee3 55%,
    #f1eadf 100%
  );
  min-height: 904px;
  padding: 5.5rem 2rem 22rem;
  text-align: center;
  overflow: hidden;
}

/* =========================================
DETAILS CONTENT
========================================= */

.details-content{
  max-width: 308px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* =========================================
INSHAA ALLAH
========================================= */

.details-heading{
  font-family:
    "CormorantCustom",
    serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: #7d8871;
  margin: 0;
}

/* =========================================
ON
========================================= */

.details-on{
  font-family:
    "Cherolina",
    cursive;
  font-size: 4rem;
  line-height: 0.95;
  color: #7d8871;
  margin: 0.1rem 0 0.2rem;
}

/* =========================================
DATE
========================================= */

.event-date{
  font-family:
    "CormorantInfantCustom",
    serif;
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: #383837;
  margin: 0.5rem 0 0;
}

/* =========================================
TIME
========================================= */

.event-time{
  font-family:
    "CormorantInfantCustom",
    serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: #383837;
  margin: 0;
}

/* =========================================
VENUE
========================================= */

.venue{
  max-width: 308px;
  margin: 1.4rem 0 1.8rem;
  color: #1b1b1b;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.venue strong{
  font-weight: 700;
}


/* =========================================
MAP BUTTON
========================================= */

.map-button{
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 308px;
  min-height: 54px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #617667;
  background: #f2f2f2;
  color: #383837;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s ease, background .3s ease;
}

/* =========================================
BUTTON HOVER
========================================= */

.map-button:hover{
  transform: translateY(-2px);
  background: #f7f7f7;
}


/* ==================================================
   RSVP SECTION RESET
================================================== */

.rsvp-section {
  position: relative;
  min-height: auto;
  margin-top: -2rem;
  padding: 5.5rem 2rem 0;

  text-align: center;

  background: #f4f4f4;

  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;

  z-index: 5;

  overflow: hidden;
}

/* content */

.rsvp-content {
  position: relative;

  z-index: 2;

  max-width: 28rem;

  margin: 0 auto;
}

/* no-gifts banner */

.no-gifts-banner {
  width: min(760px, 100%);
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.gift-ornament {
  width: clamp(30px, 7vw, 52px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.no-gifts {
  margin: 0;
  color: #3f4346;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
  max-width: 480px;
}

.no-gifts-note {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: #4c5550;
  letter-spacing: 0;
}

.no-gifts-emphasis {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 23px;
  font-weight: 700;
  font-style: normal;
  color: #3f4346;
}

/* heading */

.rsvp-content h2 {
  margin-bottom: 3rem;

  color: #8a9480;

  font-family: "CormorantCustom", serif;
  font-size: 3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

/* form */

.rsvp-form {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}

/* attendance */

.attendance-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;

  margin-bottom: 1.6rem;
}

.attendance-title {
  margin-bottom: 0.45rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;

  font-weight: 600;

  color: #383838;
  letter-spacing: 0.01em;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 0.7rem;

  margin: 0;

  color: #444;
  line-height: 1;
}

.radio-option input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 50%;
  accent-color: #6f846d;
  flex: 0 0 18px;
  cursor: pointer;
}

.radio-option span {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

/* inputs */

.rsvp-form input {
  width: 100%;

  height: 52px;

  padding: 0 1.4rem;

  border: 1.5px solid #adb4a6;

  border-radius: 12px;

  background: #f4f4f4;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;

  color: #3e3e3e;

  outline: none;
}

.rsvp-form input::placeholder {
  color: #4a4a4a;
  opacity: 1;
}

.rsvp-form input:disabled {
  background: #d3d3d3;
  border: 2px solid #a4ad9a;
  color: #7b866f;
  cursor: not-allowed;
  opacity: 1;
}

.rsvp-form input:disabled::placeholder {
  color: #7b866f;
  opacity: 1;
}

/* submit */

.submit-button {
  width: min(308px, 100%);
  min-height: 54px;

  margin-top: 1rem;
  padding: 1rem 1.5rem;

  border: none;

  border-radius: 999px;

  background: #6d806f;

  color: white;

  font-family: "CormorantInfantCustom", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.rsvp-form .submit-button {
  width: min(308px, 100%);
  max-width: 308px;
  margin-left: auto;
  margin-right: auto;
}

.submit-button:hover {
  transform: translateY(-2px);

  opacity: 0.92;
}

.rsvp-status {
  min-height: 1.4rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #5f6659;
  text-align: center;
}

.rsvp-status.is-error {
  color: #9d3b3b;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* thankyou */

.thankyou {
  margin-top: 5rem;

  color: #aeb2a4;

  font-size: clamp(2.1rem, 8vw, 3.4rem);

  font-style: italic;

  font-weight: 400;
}

.end-mg-flowers {
  width: calc(100% + 4rem);
  margin-top: 1.2rem;
  margin-left: -2rem;
  max-width: none;
}

.end-mg-flowers img {
  width: 100%;
  height: auto;
  display: block;
}

/* flowers */

.flowers-bottom {
  position: relative;

  width: 100vw;

  left: 50%;

  transform: translateX(-50%);

  margin-top: 3rem;
}

.flowers-bottom img {
  width: 100%;

  display: block;

  mix-blend-mode: multiply;
}

.details-flowers {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transform: none;
  margin-top: 0;
  pointer-events: none;
  z-index: 1;
}

.details-flowers img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.details-section.reveal-active .details-flowers img{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .details-flowers img{
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==================================================
   ORDER OF THE DAY SECTION
================================================== */

.order-fold-section {
  background-image: url("paper-texture.png");
  background-size: cover;
  background-position: center;
  padding: 2.8rem 1.4rem 3.1rem;
}

.order-fold-content {
  width: min(360px, 100%);
  margin: 0 auto;
}

.order-rings {
  width: 92px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.order-title {
  margin: 0;
  text-align: center;
  color: #7f8c76;
  font-family: "CormorantCustom", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 3.6rem);
  line-height: 0.95;
}

.order-subtitle {
  margin: 0.45rem 0 1.4rem;
  text-align: center;
  color: #7f8c76;
  font-family: "CormorantInfantCustom", serif;
  font-size: 1rem;
}

.order-timeline {
  position: relative;
  padding-left: 2.65rem;
}

.order-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 18px;
  width: 1px;
  background: #d6d6d6;
}

.order-item {
  position: relative;
  margin-bottom: 1.35rem;
}

.order-item:last-child {
  margin-bottom: 0;
}

.order-item::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.28rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d7d7d7;
}

.order-time {
  margin: 0;
  color: #3f4a3d;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.order-name {
  margin: 0.15rem 0 0.16rem;
  color: #3f4a3d;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.order-copy {
  margin: 0;
  color: #4f5a4d;
  font-size: 0.88rem;
  line-height: 1.25;
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==================================================
   INFO FOLD SECTION
================================================== */

.info-fold-section {
  background: #f4f4f4;
  padding: 3rem 0 3.6rem;
}

.info-fold-content {
  width: min(430px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dress-code-card {
  width: 76%;
  background: #dfe6d7;
  border-radius: 64px 64px 0 0;
  text-align: center;
  padding: 3rem 1.3rem 2.4rem;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.dress-code-card > * {
  position: relative;
  z-index: 2;
}

.dress-code-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 28px);
  height: 285px;
  background: #dfe6d7;
  z-index: 1;
}

.dress-code-card h3 {
  margin: 0;
  color: #4c5848;
  font-family: "CormorantCustom", serif;
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
}

.dress-code-subtitle {
  margin: 0.75rem 0 1.9rem;
  color: #7c886f;
  font-family: "CormorantInfantCustom", serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.25;
}

.dress-code-line {
  margin: 0 0 1.5rem;
  color: #495548;
}

.dress-code-line:last-of-type {
  margin-bottom: 0;
}

.dress-code-line strong {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.dress-code-line span {
  display: block;
  margin-top: 0.3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
}

.wardrobe-card {
  width: 104%;
  max-width: none;
  height: auto;
  display: block;
  margin-left: 3%;
  margin-top: -1.15rem;
  position: relative;
  z-index: 3;
}

/* ==================================================
   MUSIC TOGGLE
================================================== */

.music-toggle {
  position: fixed;

  right: 1.2rem;
  bottom: 1.2rem;

  width: 3.84rem;
  height: 3.84rem;

  border: none;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    rgba(255,255,255,0.22);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);

  cursor: pointer;

  z-index: 9999;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

/* hover */

.music-toggle:hover {
  transform: scale(1.05);

  background:
    rgba(255,255,255,0.3);
}

/* icon */

.music-toggle img {
  width: 1.74rem;
  height: 1.74rem;

  object-fit: contain;

  display: block;

  opacity: 0.9;

  pointer-events: none;
}
/* ==================================================
   CHEROLINA RESET
================================================== */

.hero-section .couple-names span {
  display: block !important;

  margin: 10px 0 6px !important;

  font-family: "Cherolina" !important;

  font-size: 64px !important;

  line-height: normal !important;

  color: #383837 !important;

  font-weight: normal !important;

  letter-spacing: 0 !important;

  text-transform: none !important;
}
/* ==================================================
   FAMILY NAMES
================================================== */

.family-line,
.groom-family {
  font-size: 18px !important;

  font-weight: 700 !important;

  line-height: normal !important;

  color: #383837 !important;
}

@media (max-width: 768px) {
  .hero-birds {
    transform: translateY(-6px);
  }

  .bird {
    top: 6rem;
    width: 54px;
    height: 36px;
  }

  .bird-one {
    left: 14%;
  }

  .bird-two {
    top: 5rem;
    left: 44%;
  }

  .bird-three {
    top: 6.75rem;
    left: 72%;
  }

  .bird-four {
    top: 3.9rem;
    left: 6%;
    transform: scale(1.2);
  }

  .bird-five {
    top: 3.25rem;
    left: 74%;
    transform: scale(1.3);
  }

  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 116px;
    transform: translateY(-10px);
    gap: 1rem;
  }

  .family-line {
    width: auto;
  }

  .intro-copy {
    width: auto;
    max-width: 16rem;
  }
}
/* ==================================================
   UNIFIED BUTTON SYSTEM
================================================== */

.map-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  max-width: 22rem;

  height: 40px;

  padding:
    0 1.8rem;

  border: none;

  border-radius: 999px;

  font-family:
    "CormorantInfantCustom",
    serif;

  font-size: 1.15rem;

  font-weight: 600;

  line-height: 1;

  letter-spacing: 0;

  text-transform: none;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* map button */

.map-button {
  background:
    rgba(255,255,255,0.55);

  backdrop-filter: blur(10px);

  color: #3a3a3a;

  border:
    1px solid #cfc6b8;
}

/* hover */

.map-button:hover,
.map-button:hover {
  transform:
    translateY(-2px);

  opacity: 0.92;
}

/* =========================
   ENVELOPE FADE
========================= */

.envelope-open .envelope-base,
.envelope-open .envelope-flap {
  opacity: 0;

  transition:
  opacity 0.16s ease 1.42s;
}
/* =========================
   ENVELOPE BASE FADE
========================= */

.envelope-open .envelope-base {
  opacity: 0;

  transition:
    opacity 0.42s ease,
    filter 0.42s ease;

  transition-delay: 1.32s;
}
/* =========================
   ENVELOPE CINEMATIC FADE
========================= */

.envelope-base,
.envelope-flap {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-open .envelope-base,
.envelope-open .envelope-flap {
  opacity: 0;

  transition-delay: 1.42s;
}

/* ==================================================
   GLOBAL: ALWAYS RENDER AS MOBILE CANVAS
================================================== */

body {
  background: #eef3e6;
}

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

.hero-envelope {
  width: min(430px, 100vw);
  margin: 0 auto;
  min-height: 100svh;
  min-height: 100dvh;
  box-shadow: 0 0 0 200vmax #eef3e6;
}

.envelope-scene {
  width: 100%;
  height: 100%;
}

.invite-site {
  width: min(430px, 100vw);
  margin: 0 auto;
  box-shadow: 0 0 0 200vmax #eef3e6;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 24px);
  background: #fff;
  text-align: center;
}

.invite-credit {
  display: inline-block;
  color: rgba(43, 29, 18, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.invite-credit:hover,
.invite-credit:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}
