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

/* ══════════════════════════════════════
   COLOUR TOKENS — TUSCAN ROMANTIC
══════════════════════════════════════ */
:root {
  --white:  #FAFAF7;
  --off:    #F7F3EC;
  --off2:   #F2EDE4;
  --off3:   #E8E0D0;
  --black:  #2C2820;
  --ink:    #3A342C;
  --gray:   #8A8075;
  --mid:    #B0A898;
  --pale:   #D8D0C0;
  --gold:   #B8A06A;
  --gold2:  #C8B080;
  --sage:   #7A8C6E;
  --sage2:  #9AAE8A;
  --red:    #B8A06A; /* alias — keep for any legacy refs */
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
html, body {
  background: transparent;
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ── FIXED SCENIC BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  z-index: -3;
  background-image: url('Background.jpg');
  background-size: cover;
  background-position: center;
}
body::after {
  content: '';
  position: fixed;  
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  z-index: -1;
  background-image: url('Tuscanhills.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.5;
}

/* ── TOWER LAYER ── */
#towerLayer {
  position: fixed;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  z-index: 2;
  background-image: url('Tower.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* ── MAIN WRAPPER ── */
#main { opacity: 0; transition: opacity 1.2s ease; }
#main.visible { opacity: 1; }
.wrap {
  max-width: 480px;
  margin: 0 auto;
  background: transparent;
  min-height: 100dvh;
  position: relative;
}

/* ══════════════════════════════════════
   ENTRANCE
══════════════════════════════════════ */
#entrance {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #ede8dc;  /* tweak this to match Background.jpg tone */
  overflow: hidden;
  transition: opacity 0.8s ease;
}
#entranceExit {
  position: absolute;
  inset: 0;
  background: #f0ebe0;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
#goldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.el-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
  pointer-events: none;
  
}
.el-coded {
  object-fit: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-zoomable {
  position: fixed;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: scale(0.926);
  transform-origin: center center;
  transition: opacity 1s ease, transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.el-zoomable.zoomed { transform: scale(1.0); }

.el-birds-video {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 75%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  overflow: hidden;  /* ← add this */
  mix-blend-mode: multiply;
}

/* Entrance text elements */
.en-savedate {
  position: absolute;
  top: min(15%, 120px);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #3d3525;
  font-weight: 500;
}
.en-names {
  position: absolute;
  top: min(62%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.en-fullnames {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: #3d3525;
  letter-spacing: 0.05em;
}
.en-wedding-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-style: italic;
  font-weight: 300;
  color: #6b5e48;
  letter-spacing: 0.15em;
}
.en-divider {
  position: absolute;
  top: min(75%, 630px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.en-div-line {
  display: block;
  width: 45px;
  height: 0.5px;
  background: #8a7a5a;
}
.en-div-diamond {
  display: block;
  width: 5px;
  height: 5px;
  background: #8a7a5a;
  transform: rotate(45deg);
}
.en-enter-btn {
  position: absolute;
  top: min(72%, 610px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.en-btn-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #3d3525;
  white-space: nowrap;
  animation: floatUpDown 2.5s ease-in-out infinite;
}

/* ── Entrance layers with ID overrides ── */
#el-wreath    { top: 5%; height: 85%; object-position: center top; }
#el-weddingday{ top: 5%; height: 80%; object-position: center top; }
#el-monogram  { top: 5%; height: 82%; object-position: center top; }
#el-bg        { object-position: center center; }
#el-hills     { object-position: center bottom; }

/* ══════════════════════════════════════
   BOTANICAL DIVIDER
══════════════════════════════════════ */
.botanical-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  width: 100%;
}
.botanical-divider .bd-line {
  flex: 1;
  height: 0.5px;
  background: var(--gold);
  opacity: 0.4;
}
.botanical-divider svg { flex-shrink: 0; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-big-names {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  text-align: center;
  z-index: 10;
}
.hero-big-names::before,
.hero-big-names::after {
  content: '';
  display: block;
  height: 0.5px;
  background: #B8A06A;
  opacity: 0;
  transition: opacity 0.6s ease;
  margin: 0 auto 10px;
  width: 100%;
}
.hero-big-names::after {
  margin: 10px auto 0;
}
.hero-names-inner {
  background: rgba(240,235,224,0.78);
  padding: 14px 18px;
  overflow: hidden;
}
.hero-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 50px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-big-amp { font-style: italic; color: var(--gold);font-size:65px; }
.hero-big-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 4px;
}
.hero-big-day {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 200;
  letter-spacing: 4px;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 5px;
}


.hero-photo {
  margin: 0 -28px;
  position: relative;
  overflow: hidden;
  width: calc(100% + 56px);
}
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100vh;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 85%);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; width: 100%; height: 100%; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; animation: none !important; transform: scale(1); }
.slide img.zoom-active { animation: zoomIn 5s ease-out forwards !important; }
@keyframes zoomIn { 0%{transform:scale(1)} 100%{transform:scale(1.10)} }
.hero-cal {
  position: absolute;
  bottom: 20px; right: 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 19px 1px;
  background: transparent;
}
.hero-cal-day-name { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 8px; color: var(--black); text-transform: uppercase; }
.hero-cal-row { display: flex; align-items: center; gap: 20px; }
.hero-cal-month { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; letter-spacing: 5px; color: var(--black); text-transform: uppercase; }
.hero-cal-num { font-family: 'Cormorant Garamond', serif; font-size: 72px; font-weight: 400; color: var(--gold); line-height: 1; letter-spacing: -2px; }
.hero-cal-year { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; letter-spacing: 5px; color: var(--black); }
.hero-cal-time { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 5px; color: var(--balac); }

/* ══════════════════════════════════════
   MUSIC PLAYER
══════════════════════════════════════ */
.hero-player {
  display: flex; align-items: center; gap: 14px;
  background: rgba(247,243,236,0.92);
  border: 0.5px solid rgba(184,160,106,0.35);
  border-radius: 2px;
  padding: 14px 16px;
  width: 100%; max-width: 360px;
  margin: 20px auto 0;
}
.hp-playbtn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--black); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  color: var(--white); transition: background .3s;
}
.hp-playbtn:hover { background: var(--gold); }
.hp-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hp-title { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-style: italic; color: var(--black); line-height: 1.2; }
.hp-artist { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 2px; color: var(--gray); }
.hp-bar { height: 2px; background: var(--off3); position: relative; border-radius: 2px; margin-bottom: 4px; cursor: pointer; }
.hp-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; width: 0%; transition: width .5s linear; }
.hp-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); position: absolute; top: 50%; left: 0%; transform: translate(-50%,-50%); transition: left .5s linear; }
.hp-times { display: flex; justify-content: space-between; font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 200; color: var(--gray); letter-spacing: 1px; }
.hp-vol { color: var(--gray); flex-shrink: 0; }

/* ══════════════════════════════════════
   LOVE STORY / WEDDING INVITATION
══════════════════════════════════════ */
.love-section { background: transparent; padding: 0; }
.love-top { display: flex; flex-direction: column; align-items: center; padding: 36px 28px 24px; gap: 12px; }
.love-heart { color: var(--gold); opacity: 0.7; }
.love-heading { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--black); letter-spacing: 8px; line-height: 1; text-align: center; }
.love-subtitle { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 10px; color: var(--gray); text-align: center; text-transform: uppercase; }
.love-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; border-top: 0.5px solid rgba(184,160,106,0.3); border-bottom: 0.5px solid rgba(184,160,106,0.3); }
.love-nav-word { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 4px; color: var(--gray); text-transform: uppercase; }
.love-nav-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0.5; }
.love-photo { position: relative; width: 100%; overflow: hidden; }
.love-photo-img { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.love-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(44,40,32,0.75) 100%); }
.love-quote { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; }
.love-quote-line { width: 24px; height: 0.5px; background: rgba(255,255,255,0.5); margin-bottom: 10px; }
.love-quote-text { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; color: rgba(255,255,255,0.92); letter-spacing: 0.5px; line-height: 1.6; }

/* ══════════════════════════════════════
   FORMAL INVITATION
══════════════════════════════════════ */
.formal-section {
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 44px 28px 30px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}
.formal-families { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; padding-top: 28px; border-top: 0.5px solid rgba(184,160,106,0.3); width: 100%; }
.formal-family { display: flex; flex-direction: column; gap: 3px; }
.formal-family-en { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 2px; color: var(--black); }
.formal-family-cn { font-family: 'Noto Serif SC', serif; font-size: 12px; font-weight: 200; letter-spacing: 5px; color: var(--gray); }
.formal-amp { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: var(--gold); opacity: 0.6; margin: 4px 0; }
.formal-request { margin-top: 24px; display: flex; flex-direction: column; gap: 5px; }
.formal-request-en { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-style: italic; color: var(--gray); letter-spacing: 1px; }
.formal-request-cn { font-family: 'Noto Serif SC', serif; font-size: 12px; font-weight: 200; color: var(--gray); letter-spacing: 4px; }
.formal-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.formal-bigname { font-family: 'Cormorant Garamond', serif; font-size:57px; font-weight: 300; color: var(--black); letter-spacing: 8px; line-height: 1; }
.formal-fullname-en { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 200; letter-spacing: 5px; color: var(--gray); text-transform: uppercase; }
.formal-fullname-cn { font-family: 'Noto Serif SC', serif; font-size: 11px; font-weight: 200; letter-spacing: 5px; color: var(--gray); }
.formal-divider { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 0; }
.formal-divider-line { flex: 1; height: 0.5px; background: rgba(184,160,106,0.3); }
.formal-divider-amp { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-style: italic; font-weight: 300; color: var(--gold); line-height: 1; }
.formal-bottom-line { width: 100%; height: 0.5px; background: rgba(184,160,106,0.3); margin-top: 30px; }

/* Name animations */
.formal-bigname { opacity: 0; transform: scale(0.85); }
.formal-bigname.animate { transition: opacity 1s ease, transform 1s cubic-bezier(0.34,1.2,0.64,1); }
.formal-bigname.animate-1 { opacity: 1; transform: scale(1); }
.formal-bigname.animate-2 { transition: opacity 1s ease .9s, transform 1s cubic-bezier(0.34,1.2,0.64,1) .9s; opacity: 1; transform: scale(1); }
.formal-fullname-en { opacity: 0; transition: opacity .6s ease .5s; }
.formal-fullname-en.animate { opacity: 1; }
.formal-fullname-cn { opacity: 0; transition: opacity .6s ease .6s; }
.formal-fullname-cn.animate { opacity: 1; }
.formal-divider-amp { opacity: 0; transition: opacity .6s ease .7s; }
.formal-divider-amp.animate { opacity: 1; }

/* ══════════════════════════════════════
   COUPLE POEM
══════════════════════════════════════ */
.couple-split { background: transparent; overflow: hidden; }
.split-poem { padding: 28px 28px 20px; text-align: center; background: transparent; }
.split-poem p { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; font-weight: 300; color: var(--gray); line-height: 2.2; letter-spacing: .5px; }

/* ══════════════════════════════════════
   3 STACK COLLAGE
══════════════════════════════════════ */
.stack3-section { background: transparent; display: flex; flex-direction: column; gap: 0px; padding: 0; overflow: hidden; width: 100%; }
.stack3-item { width: 100%; overflow: hidden; }
.stack3-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .6s ease; opacity: 0.93; }
.stack3-item:hover img { transform: scale(1.03); }

/* ══════════════════════════════════════
   SAVE THE DATE
══════════════════════════════════════ */
.date-section {
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 40px 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.date-tag { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: serif; font-weight: 400; letter-spacing: 6px; color: var(--gray); text-transform: uppercase; margin-bottom: 32px; }
.date-main { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; width: 100%; }
.date-block { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.date-block-label { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 200; letter-spacing: 5px; color: var(--gray); text-transform: uppercase; }
.date-block-num { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; color: var(--black); line-height: 1; letter-spacing: -1px; }
.date-block-word { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 4px; color: var(--gray); text-transform: uppercase; }
.date-sep { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--gold); opacity: 0.5; padding: 0 8px; margin-bottom: 20px; }
.date-rule { width: 40px; height: 0.5px; background: var(--gold); opacity: 0.5; margin-bottom: 20px; }
.date-info-row { display: flex; align-items: center; gap: 20px; }
.date-info-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
.date-info-text { font-family: 'DM Sans', sans-serif; font-size: 11px; font-style: italic; color: var(--black); letter-spacing: 2px; }

/* ══════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════ */
.countdown-section {
  background: rgba(122,140,110,0.08);
  border: 0.5px solid rgba(122,140,110,0.2);
  margin: 0 20px;
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
}
.cd-heading { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 200; letter-spacing: 10px; color: var(--sage); text-transform: uppercase; margin-bottom: 4px; }
.cd-heading-cn { font-family: 'Noto Serif SC', serif; font-size: 11px; font-weight: 200; letter-spacing: 8px; color: var(--gray); margin-bottom: 32px; }
.cd-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.cd-unit { display: flex; flex-direction: column; align-items: center; padding: 0 12px; }
.cd-sep { font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 200; color: var(--gold); opacity: 0.4; margin-bottom: 20px; }
.cd-num { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--black); line-height: 1; display: block; letter-spacing: 2px; }
.cd-cn { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 200; color: var(--sage); display: block; margin-top: 8px; letter-spacing: 4px; text-transform: uppercase; }

/* ══════════════════════════════════════
   PROGRAMME / TIMELINE
══════════════════════════════════════ */
.prog-section { background: transparent; padding: 40px 28px 0; text-align: center; }
.section-tag { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 8px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--black); letter-spacing: 3px; margin-bottom: 4px; }
.section-title-cn { font-family: 'Noto Serif SC', serif; font-size: 11px; font-weight: 200; letter-spacing: 8px; color: var(--gray); margin-bottom: 48px; }
.timeline { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin: 0 8px 56px; }
.timeline::before { content: ''; position: absolute; top: 52px; left: 28px; right: 28px; height: 0.5px; background: rgba(184,160,106,0.2); }
.timeline-line { position: absolute; top: 52px; left: 28px; height: 0.5px; background: linear-gradient(to right, rgba(122,140,110,0.2), rgba(122,140,110,0.6)); width: 0; }
.timeline-line.animate { transition: width 2s cubic-bezier(0.4,0,0.2,1) 0.4s; width: calc(100% - 56px); }
.tl-item { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 0; position: relative; opacity: 0; transform: translateY(16px) scale(0.96); }
.tl-item.animate-1 { transition: opacity 1s cubic-bezier(0.4,0,0.2,1) 0.2s, transform 1s cubic-bezier(0.4,0,0.2,1) 0.2s; opacity: 1; transform: translateY(0) scale(1); }
.tl-item.animate-2 { transition: opacity 1s cubic-bezier(0.4,0,0.2,1) 0.7s, transform 1s cubic-bezier(0.4,0,0.2,1) 0.7s; opacity: 1; transform: translateY(0) scale(1); }
.tl-item.animate-3 { transition: opacity 1s cubic-bezier(0.4,0,0.2,1) 1.2s, transform 1s cubic-bezier(0.4,0,0.2,1) 1.2s; opacity: 1; transform: translateY(0) scale(1); }
.tl-dot { position: absolute; top: 49px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(0); }
.tl-dot.animate-1 { transition: opacity .6s ease 1s, transform .6s cubic-bezier(0.34,1.56,0.64,1) 1s; opacity: 1; transform: scale(1); }
.tl-dot.animate-2 { transition: opacity .6s ease 1.4s, transform .6s cubic-bezier(0.34,1.56,0.64,1) 1.4s; opacity: 1; transform: scale(1); }
.tl-dot.animate-3 { transition: opacity .6s ease 1.8s, transform .6s cubic-bezier(0.34,1.56,0.64,1) 1.8s; opacity: 1; transform: scale(1); }
.tl-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--sage); opacity: 0.85; }
.tl-icon svg { width: 52px; height: 52px; }
.tl-time { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: var(--black); letter-spacing: 1px; margin-bottom: 4px; }
.tl-label-en { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 200; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; margin-bottom: 2px; }
.tl-label-cn { font-family: 'Noto Serif SC', serif; font-size: 10px; font-weight: 200; letter-spacing: 3px; color: var(--gray); }
.section-divider { width: 100%; height: 0.5px; background: rgba(184,160,106,0.25); margin: 0 0 48px; }

/* ══════════════════════════════════════
   DRESS CODE
══════════════════════════════════════ */
.dress-layout { display: flex; align-items: stretch; margin: 0 -28px 0; overflow: hidden; }
.dress-left { flex: 1; padding: 0 20px 40px 28px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.dress-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--black); letter-spacing: 3px; margin-bottom: 4px; line-height: 1.1; }
.dress-title-cn { font-family: 'Noto Serif SC', serif; font-size: 10px; font-weight: 200; letter-spacing: 6px; color: var(--gray); margin-bottom: 24px; }
.dress-grid { display: flex; flex-direction: column; gap: 0; }
.dress-row { padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.dress-row:first-child { border-top: 0.5px solid rgba(184,160,106,0.25); }
.dress-who { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 3px; color: var(--black); text-transform: uppercase; line-height: 1.5; }
.dress-cn { font-family: 'Noto Serif SC', serif; font-size: 9px; font-weight: 200; letter-spacing: 3px; color: var(--gray); }
.dress-avoid { color: var(--sage) !important; }
.dress-photo { width: 50%; flex-shrink: 0; overflow: hidden; align-self: stretch; }
.dress-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ══════════════════════════════════════
   TUSCANHILLS STRIP
══════════════════════════════════════ */
.hills-strip {
  width: 100%;
  height: 80px;
  background-image: url('Tuscanhills.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.55;
  margin: 8px 0;
}

/* ══════════════════════════════════════
   VENUE
══════════════════════════════════════ */
.venue-section {
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 48px 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.venue-tag { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 8px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.venue-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--black); letter-spacing: 3px; margin-bottom: 4px; white-space: nowrap; }
.venue-room { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; color: var(--gray); margin-bottom: 14px; }
.venue-rule { width: 32px; height: 0.5px; background: var(--gold); opacity: 0.6; margin: 0 auto 14px; }
.venue-addr { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 300; color: var(--black); line-height: 2; letter-spacing: 1px; margin-bottom: -30px; }
.venue-map-wrap { width: 100%; overflow: hidden; aspect-ratio: 16/9; }
.venue-nav-hint { font-family: 'Cormorant Garamond', serif; font-size: 11px; color: var(--black); letter-spacing: 2px; text-align: center; margin-top: 12px; opacity: 0.8; }
.venue-btns { display: flex; gap: 12px; justify-content: center; width: 100%; margin-top: 9px; }
.venue-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 4px; color: var(--black); text-transform: uppercase; border: 1px solid var(--black); padding: 12px 8px; transition: all .3s; }
.venue-btn:hover { background: var(--black); color: var(--white); }

/* ══════════════════════════════════════
   RSVP
══════════════════════════════════════ */
.rsvp-section { background: transparent; overflow: hidden; }
.rsvp-banner { position: relative; width: 100%; overflow: hidden; }
.rsvp-banner img { width: 100%; height: auto; object-fit: unset; display: block; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 30%, transparent 100%); }
.rsvp-banner-fade { display: none; }
.rsvp-content { padding: 8px 36px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; }
.rsvp-pre { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; color: var(--gray); letter-spacing: 3px; margin-bottom: 16px; }
.rsvp-title { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-style: italic; font-weight: 300; color: var(--black); letter-spacing: 1px; line-height: 1.05; margin-bottom: 20px; }
.rsvp-rule { width: 40px; height: 0.5px; background: var(--gold); opacity: 0.5; margin: 0 auto 24px; }
.rsvp-body { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 200; color: var(--gray); line-height: 1.9; letter-spacing: .5px; margin-bottom: 32px; max-width: 280px; }
.rsvp-date-block { margin-bottom: 32px; display: flex; flex-direction: column; gap: 5px; padding: 20px 32px; border: 0.5px solid rgba(184,160,106,0.35); }
.rsvp-date-label { font-family: 'DM Sans', sans-serif; font-size: 8px; font-weight: 200; letter-spacing: 6px; color: var(--gray); text-transform: uppercase; }
.rsvp-date-val { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: var(--black); letter-spacing: 2px; }
.rsvp-click-hint { font-family: 'Cormorant Garamond', serif; font-size: 9px; font-style: italic; color: var(--gray); letter-spacing: 1px; margin-bottom: 0px; margin-top:-10px; opacity: 0.8; animation: floatUpDown 3s ease-in-out infinite; }
.rsvp-img-btn { display: block; width: 110px; margin: -10px auto -8px; opacity:0.8;}
.rsvp-img-btn:hover { opacity: 0.85; }
.rsvp-img-btn img { width: 100%; display: block; }
.rsvp-kindly-text { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; margin-bottom: 20px; margin-top: 0px; }
.rsvp-kindly-text em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 12px; letter-spacing: 1px; color: var(--grey); text-transform: none; }
@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section { background: transparent; padding: 8px 28px 44px; }
.contact-photo-block { margin-bottom: 16px; width: calc(100% + 56px); margin-left: -28px; margin-right: -28px; }
.contact-photo-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 80%; display: block; margin-bottom: 16px; }
.contact-photo-tip { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; color: var(--gray); letter-spacing: .5px; line-height: 1.7; text-align: center; padding: 0 36px; margin-bottom: 0; }
.contact-label { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 6px; color: var(--gray); text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 8px; border: 1px solid var(--black); border-radius: 50px; text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 3px; color: var(--black); text-transform: uppercase; background: rgba(247,243,236,0.7); transition: all .3s; }
.contact-btn:hover { background: var(--black); color: var(--white); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: transparent; padding: 20px 28px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; }
.footer-line { width: 40px; height: 0.5px; background: var(--gold); opacity: 0.4; margin-bottom: 48px; }
.footer-thankyou { font-family: 'Pinyon Script', cursive; font-size: 72px; color: var(--black); line-height: 1; margin-bottom: 32px; }
.footer-hope { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 5px; color: var(--gray); text-transform: uppercase; margin-top: -20px; margin-bottom: 36px; }
.footer-names { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--black); letter-spacing: 6px; margin-bottom: 16px; }
.footer-date { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 200; letter-spacing: 5px; color: var(--gray); text-transform: uppercase; }

/* ══════════════════════════════════════
   MUSIC DISC BUTTON (fixed)
══════════════════════════════════════ */
.music-btn { position: fixed; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.disc { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(#111 0deg,#444 30deg,#111 60deg,#333 90deg,#111 120deg,#444 150deg,#111 180deg,#333 210deg,#111 240deg,#444 270deg,#111 300deg,#333 330deg,#111 360deg); display: flex; align-items: center; justify-content: center; animation: spin 4s linear infinite; }
.disc.paused { animation-play-state: paused; }
.disc-inner { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1.5px solid #aaa; display: flex; align-items: center; justify-content: center; }
.disc-inner::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #888; display: block; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero.reveal { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   DESKTOP (480px+)
══════════════════════════════════════ */
@media(min-width:480px) {
  body { position: relative; min-height: 100vh; background: transparent; }
  .bg-blur-layer { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(70px) brightness(0.85) saturate(0.6); transform: scale(1.1); opacity: 0.6; }
  .page-wrapper, .wrap { position: relative; z-index: 1; }
  .wrap { max-width: 480px; margin: 0 auto; box-shadow: none; background: transparent; }
}

/* ══════════════════════════════════════
   CURSOR / UX GUARDS
══════════════════════════════════════ */
* { cursor: url('images/cursor.svg') 16 16, auto; }
a, button { cursor: url('images/cursor.svg') 16 16, pointer; }
* { -webkit-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }

.hero-content {
  position: relative;
  width: 100%;
}

/* ── HERO ENTRANCE ANIMATION ── */
.hero-photo { opacity: 0; transition: opacity 1.2s ease; }
.hero-photo.hero-entered { opacity: 1; }

.hero-names-inner { opacity: 0; transition: opacity 0.8s ease; }
.hero-names-inner.hero-entered { opacity: 1; }
.hero-big-names.hero-lines-entered::before,
.hero-big-names.hero-lines-entered::after { opacity: 0.7; }

@keyframes spacingExpand {
  from { opacity: 0; letter-spacing: -2px; }
  to   { opacity: 1; letter-spacing: 4px; }
}
@keyframes spacingExpandSub {
  from { opacity: 0; letter-spacing: -1px; }
  to   { opacity: 1; letter-spacing: 2px; }
}
@keyframes spacingExpandDay {
  from { opacity: 0; letter-spacing: -1px; }
  to   { opacity: 1; letter-spacing: 4px; }
}

.hero-big      { opacity: 0; }
.hero-big-date { opacity: 0; }
.hero-big-day  { opacity: 0; }

.hero-big.hero-entered      { animation: spacingExpand    0.9s cubic-bezier(0.4,0,0.2,1) 0.6s forwards; }
.hero-big-date.hero-entered { animation: spacingExpandSub 0.9s cubic-bezier(0.4,0,0.2,1) 1.1s forwards; }
.hero-big-day.hero-entered  { animation: spacingExpandDay 0.9s cubic-bezier(0.4,0,0.2,1) 1.6s forwards; }

body.main-visible::after {
  opacity: 0.5;
  transition: none;
}



/*--Hide Program section (delete to unhide)--*/
.prog-section { display: none; }


@media(min-width:480px) {
  body {
    display: flex;
    justify-content: center;
background: #EDECEA;
  }

  .wrap {
    width: 480px;
    min-width: 480px;
    max-width: 480px;
    position: relative;
    z-index: 1;
  }

  body::before,
  body::after,
  #towerLayer,
  #hills-bg,
  #hills-persistent,
  #entrance {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 480px !important;
  }

  /* This is the fix — anchor entrance to same position as .wrap */
  #entrance {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 480px !important;
    margin: 0 !important;
  }
}

html {
  overflow-y: scroll;
}

.bg-blur-layer {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(1.1) saturate(0.4);
  transform: scale(1.1);
  opacity: 0.5;
}

@media(min-width:480px) {
  body {
    display: flex;
    justify-content: center;
    background: transparent;  /* ← not #EDECEA */
  }
}

@media(min-width:480px) {
  .wrap,
  #entrance {
    box-shadow: 0 0 60px rgba(0,0,0,0.25);
  }
}


@media(min-width:480px) {
  #frame {
    width: 480px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 60px rgba(0,0,0,0.25);
  }

  .wrap,
  #entrance {
    box-shadow: none;
  }
}

/* CHANGE CURSOR */

* {
  cursor: url('images/cursor.svg') 16 16, auto;
}
a, button {
  cursor: url('images/cursor.svg') 16 16, pointer;
}


#hills-persistent {
  display: none;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0px;
  display: none;
}

body {
  overflow-y: hidden;
  height: 100%;
}

#frame {
  overflow-y: auto;
  height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#frame::-webkit-scrollbar {
  display: none;
}

#towerLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-image: url('Tower.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@media(min-width: 480px) {
  #towerLayer {
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
  }
}
