/* ── PRELOADER ─────────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #1a0d00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity .75s ease;
}

#preloader.pl-done {
  opacity: 0;
  pointer-events: none;
}

.pl-logo {
  width: clamp(96px, 24vw, 150px);
  object-fit: contain;
  margin-bottom: 20px;
  animation: plLogoPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(201, 169, 110, .5));
}

@keyframes plLogoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(201, 169, 110, .35));
  }

  50% {
    filter: drop-shadow(0 0 28px rgba(201, 169, 110, .80));
  }
}

.pl-track {
  width: clamp(180px, 55vw, 280px);
  height: 2px;
  background: rgba(201, 169, 110, .15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

#pl-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7A5410, #E8CC82, #C9A96E, #E8CC82, #7A5410);
  background-size: 300% 100%;
  border-radius: 2px;
  transition: width .3s ease;
  animation: plShimmer 2.2s linear infinite;
}

@keyframes plShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0% 0;
  }
}

.pl-hint {
  font-family: "scrivano", serif;
  font-size: 11px;
  letter-spacing: 3.5px;
  font-style: italic;
  color: rgba(201, 169, 110, .50);
  animation: breathe 2.4s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────── */

/* ── TYPEKIT FONTS ─────────────────────────────
   --font-names   : "scrivano", serif   (italic 400) — names & event headings
   --font-details : "novantique-script", sans-serif  (regular 400) — all other details
   Both loaded from https://use.typekit.net/ily1byg.css
────────────────────────────────────────────── */

/* ── TOKENS ───────────────────────────────────── */
:root {
  /* Text — single colour used for all text throughout */
  --text: #8a0808;

  /* Palette — used only for backgrounds, borders, shadows */
  --wine: #8B1A2F;
  --wine-lt: #B03050;
  --wine-dk: #5A0B1E;
  --wine-rose: #C4637A;
  --wine-glow: rgba(139, 26, 47, .3);

  --gold: #C9A96E;
  --gold-lt: #E8CC82;
  --gold-dk: #7A5410;

  --cream: #F7EDD0;
  --warm: #FAF5E8;
  --brown-dk: #2C1810;
  --sg: rgba(201, 169, 110, .35);

  --card-bg: rgba(255, 252, 248, .52);
  --glass-border: rgba(255, 255, 255, .50);
  --glass-blur: blur(26px) saturate(1.7) brightness(1.04);

  /* Font variables — edit here to change fonts globally */

  --font-details: "scrivano", serif;
  /* names & event headings — italic */
  --font-names: "novantique-script", sans-serif;
  /* all other details — regular */
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  background: #0d0600;
  font-family: var(--font-details);
  color: var(--text);
  line-height: 1.2;
}

/* ── WRAPPER — clipping container for translateY slides ── */
.wrap {
  width: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #1a0d00;
}

/* ── COVER (unused element — CSS kept as no-op) ──── */
.cover-tap-lbl {
  position: absolute;
  bottom: 7%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  animation: introFadeIn .9s ease both;
  animation-delay: 1.2s;
}

.cover-tap-lbl .cover-tap-circle,
.cover-tap-lbl .cover-tap-txt {
  position: relative;
  z-index: 1;
}

.cover-tap-lbl::before {
  content: '';
  position: absolute;
  inset: -10px -24px;
  background: rgba(20, 8, 0, .45);
  border-radius: 30px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cover-tap-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: tapPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(201, 169, 110, .5);
}

.cover-tap-txt {
  font-family: var(--font-details);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 4px;
  color: var(--gold-lt);
  text-shadow: 0 0 20px rgba(201, 169, 110, .9), 0 2px 6px rgba(0, 0, 0, .9);
  animation: breathe 2.6s ease-in-out infinite;
}

/* ── INTRO ──────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #1a0d00;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

#intro.hidden-initial {
  opacity: 0;
  pointer-events: none;
}

#intro.gone {
  opacity: 0;
  pointer-events: none;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.door-ripples {
  position: absolute;
  left: 49%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  pointer-events: none;
}

.ripple {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(139, 26, 47, .8);
  border-radius: 50%;
  animation: ripOut 2.4s ease-out infinite;
}

.ripple:nth-child(2) {
  animation-delay: .8s;
}

.ripple:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ripOut {
  0% {
    transform: scale(.5);
    opacity: .9
  }

  100% {
    transform: scale(3);
    opacity: 0
  }
}

/* ── INTRO NAMES OVERLAY ────────────────────── */
.intro-names-overlay {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 5;
  width: 82%;
}

.intro-monogram {
  font-family: var(--font-details);
  font-size: clamp(24px, 7vw, 38px);
  color: var(--text);
  letter-spacing: 5px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 24px rgba(201, 169, 110, .8)) drop-shadow(0 2px 12px rgba(0, 0, 0, .95));
}

.intro-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.intro-divider .dl {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt));
}

.intro-divider .dl:last-child {
  background: linear-gradient(90deg, var(--gold-lt), transparent);
}

.intro-divider .dg {
  width: 5px;
  height: 5px;
  background: var(--gold-lt);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.intro-fullnames {
  font-family: var(--font-names);
  font-style: italic;
  font-size: clamp(28px, 8vw, 44px);
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .2), 0 0 36px rgba(0, 0, 0, .15);
}

.intro-date {
  font-family: var(--font-details);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 1px;
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .15);
}

.intro-location {
  font-family: var(--font-details);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .15);
}

/* ── INTRO LOTUS ────────────────────────────────── */
#intro-lotus {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 5;
}

#intro-lotus .sc-row {
  gap: 14px;
}

/* Door locked until all lotus bloomed */
.door-locked {
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}

.door-locked.door-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── INTRO LOGO ─────────────────────────────────── */
.intro-logo {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  /* Scale with viewport height so it's proportional on every phone size */
  width: clamp(90px, 17vh, 140px);
  object-fit: contain;
  pointer-events: none;
  z-index: 6;
}

/* ── INTRO CONTENT DELAY ──────────────────────────
   Starts hidden and stays hidden until JS adds .cascade-in — timed from
   revealIntro() (the actual gate tap) in script.js, NOT from page load.
   A plain CSS animation-delay starts counting at parse time, so if the
   guest spent any time at all on the preloader/gate screen first (the
   normal case), the cascade would already be sitting at its end state
   the moment #intro becomes visible — collapsing the staggered logo →
   names → scratcher reveal into everything popping in at once. */
.intro-delayed {
  opacity: 0;
  transform: translateY(10px) translateX(var(--tx-offset, 0));
}
.intro-delayed.cascade-in {
  animation: introFadeIn 1.1s ease both;
}
#intro-scratcher.intro-delayed.cascade-in {
  animation-duration: 1.2s;
}

@keyframes introFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) translateX(var(--tx-offset, 0));
  }

  to {
    opacity: 1;
    transform: translateY(0) translateX(var(--tx-offset, 0));
  }
}

.intro-logo.intro-delayed,
.intro-names-overlay.intro-delayed,
#intro-scratcher.intro-delayed {
  --tx-offset: -50%;
}

/* ── INTRO CONTENT FADE-OUT — after the date is scratched into view, let
   logo/names/scratcher dissolve away on their own (not just on tap). This
   is purely a pacing device: it reads as a natural reveal-then-settle
   moment, and quietly buys the background video queue a few more seconds. */
.intro-fade-out {
  transition: opacity 1.6s ease, transform 1.6s ease;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Instant fallback if the guest taps through before the slow fade finishes */
#intro.intro-content-gone .intro-logo,
#intro.intro-content-gone .intro-names-overlay,
#intro.intro-content-gone #intro-scratcher {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tap-lbl {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* frosted-glass pill wrapping circle + text */
.tap-lbl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 14px;
  background: rgba(20, 8, 0, .52);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(201, 169, 110, .30);
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tap-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: tapPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(201, 169, 110, .5);
}

@keyframes tapPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .7
  }

  50% {
    transform: scale(1.15);
    opacity: 1
  }
}

.tap-txt {
  font-size: 13px;
  font-style: italic;
  letter-spacing: 4px;
  color: var(--gold-lt);
  text-shadow: 0 0 18px rgba(201, 169, 110, .8), 0 2px 6px rgba(0, 0, 0, .7);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {

  0%,
  100% {
    opacity: .60
  }

  50% {
    opacity: 1
  }
}

/* ── DOOR BUTTON — video loading state ──────────── */
/* Shows while Intro.mp4 is still buffering. Spinner on the circle,
   dimmed text. Removed automatically once canplay fires. */
.tap-lbl.vid-loading .tap-circle {
  border-color: rgba(201, 169, 110, .25);
  border-top-color: var(--gold-lt);
  animation: vidLoadSpin .9s linear infinite;
  box-shadow: none;
}

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

.tap-lbl.vid-loading .tap-txt {
  opacity: .45;
  animation: none;
  letter-spacing: 3px;
}

.tap-lbl.vid-loading .tap-txt::after {
  content: '…';
}

.petal {
  position: absolute;
  border-radius: 50% 0;
  animation: petalFall linear infinite;
  pointer-events: none;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── VIDEO — fills full screen, no black bars ── */
#vid-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.6s ease;
}

#vid-wrap.show {
  opacity: 1;
  pointer-events: auto;
}

#vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MAIN ────────────────────────────────────── */
#main {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#main.show {
  opacity: 1;
  pointer-events: auto;
}

/* ── SECTIONS ─────────────────────────────────── */
.sec {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--i) * 100%));
  will-change: transform;
}

.sec-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

video.sec-bg {
  display: block;
}

.wm-cover {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 56px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 30%, rgba(0, 0, 0, .72) 100%);
}

.sec-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sec-cnt {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px 44px;
  flex: 1;
}

/* Hero section layout */
#sec-hero .sec-overlay {
  background: transparent;
}

#sec-hero .sec-cnt {
  /* 7% top keeps text below the arch/roof.
     11% sides keeps text between the two door frames.
     These are width-percentages so they scale on every phone. */
  /* padding: 7% 11% 40px; */
  gap: 0;
  align-items: center;
}

/* couple-name inside hero — well-spread script names */
#sec-hero .couple-name {
  color: var(--text);
  text-shadow: 0 1px 8px rgba(255, 252, 240, .55);
  font-size: clamp(20px, 11vw, 25px);
  line-height: 1.15;
  padding: 8px 0;
}

/* ── INVITE COPY BLOCK ───────────────────────── */
.invite-copy {
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding-top: 6%;
}

/* Shared column constraint — all prose lines wrap at the same width */
.invite-blessing,
.invite-parent-name,
.invite-request,
.invite-grandparent,
.invite-with,
.invite-parent-line,
.invite-closing {
  display: block;
  width: 99%;
  margin-left: auto;
  margin-right: auto;
}

.invite-blessing {
  font-family: var(--font-details);
  font-weight: 300;
  font-size: clamp(11px, 3.2vw, 13px);
  font-style: italic;
  color: var(--text);
  /* line-height: 1.7;
  margin-bottom: 4px; */
  text-shadow: 0 1px 6px rgba(255, 252, 240, .6);
}

.invite-parent-name {
  font-family: var(--font-details);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(12px, 4vw, 13px);
  color: var(--text);
  letter-spacing: .4px;
  /* line-height: 1.4;
  margin-bottom: 6px; */
  text-shadow: 0 1px 6px rgba(255, 252, 240, .6);
}

.invite-request {
  font-family: var(--font-details);
  font-weight: 400;
  font-size: clamp(11px, 3.3vw, 12px);
  font-style: normal;
  color: var(--text);
  /* line-height: 1.7;
  margin-bottom: 4px; */
  text-shadow: 0 1px 5px rgba(255, 252, 240, .6);
}

.invite-grandparent {
  font-family: var(--font-details);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(10px, 2.6vw, 11.5px);
  color: var(--text);
  line-height: 1.6;
  width: 84% !important;
  max-width: 290px;
  /* margin-top: 4px;
  margin-bottom: 8px; */
  text-shadow: 0 1px 5px rgba(255, 252, 240, .6);
}

.invite-with {
  font-family: var(--font-details);
  font-weight: 400;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 5px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 6px;
  margin-bottom: 0px;
  text-shadow: 0 1px 5px rgba(255, 252, 240, .6);
}

.invite-parent-line {
  font-family: var(--font-details);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(12px, 3.4vw, 13px);
  color: var(--text);
  /* line-height: 1.5; */
  /* margin-top: 2px;
  margin-bottom: 4px; */
  text-shadow: 0 1px 5px rgba(255, 252, 240, .6);
}

.invite-closing {
  font-family: var(--font-details);
  font-weight: 300;
  font-size: clamp(10px, 3vw, 11px);
  font-style: italic;
  color: var(--text);
  /* line-height: 1.7;
  margin-top: 10px; */
  text-shadow: 0 1px 5px rgba(255, 252, 240, .6);
}

/* ══════════════════════════════════════════════════════════════════
   HERO PAGE 2 — ALL RESPONSIVE BREAKPOINTS
   Largest → smallest. Edit values here; nowhere else for hero text.
══════════════════════════════════════════════════════════════════ */

/* LANDSCAPE PHONES — sideways with height ≤ 500px */
@media (orientation:landscape) and (max-height:500px) {
  #sec-hero .sec-cnt {
    padding: 4% 14% 24px;
  }

  #sec-hero .couple-name {
    font-size: clamp(26px, 7vh, 38px);
  }
}

/* ≤ 430px portrait — iPhone 15 / 15 Pro / 15 Pro Max */
@media (max-width:430px) and (max-height:960px) and (orientation:portrait) {
  #sec-hero .sec-cnt {
    padding: 20px 16px 16px;
  }

  #sec-hero .couple-name {
    font-size: clamp(17px, 6.5vw, 23px);
    padding: 4px 0;
  }

  .invite-copy {
    padding-top: 11%;
  }

  .invite-request {
    font-size: clamp(11px, 2.3vw, 11.5px);
    line-height: 1.25;
  }

  .invite-grandparent {
    font-size: clamp(11px, 2.3vw, 11.5px);
    line-height: 1.25;
    margin-top: 1%;
  }

  .invite-with {
    margin-top: 2%;
    margin-bottom: 0;
  }

  .invite-closing {
    font-size: clamp(11px, 2.5vw, 11.5px);
    line-height: 1.25;
  }
}

/* iPhone 15 Pro Max — extra top room for Dynamic Island */
@media (min-width:425px) and (max-width:430px) and (min-height:900px) and (orientation:portrait) {
  #sec-hero .sec-cnt {
    /* padding-top: 55px; */
    margin-top: 2px;
  }
}

@media (max-width: 460px) {
  #sec-hero .sec-cnt {
    /* padding-top: 55px; */
    margin-top: 2px;
  }

  #sec-hero .sec-cnt {
    padding: 5% 5% 16px;
  }

  #sec-hero .couple-name {
    font-size: clamp(17px, 6.5vw, 23px);
    padding: 4px 0;
  }

  .invite-copy {
    padding-top: 10%;
  }

  .invite-grandparent {
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.25;
    margin-top: 1%;
  }

  .invite-closing {
    font-size: clamp(12px, 2.3vw, 15px);
    line-height: 1.5;
  }

  .invite-with {
    margin-top: 2%;
    margin-bottom: 0;
  }
}

/* ≤ 390px — iPhone SE 2/3, iPhone 6/7/8 */
@media (max-width:390px) {
  #sec-hero .sec-cnt {
    padding: 5% 5% 16px;
  }

  #sec-hero .couple-name {
    font-size: clamp(17px, 6.5vw, 20px);
    padding: 4px 0;
  }

  .invite-copy {
    padding-top: 9%;
  }

  .invite-grandparent {
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.25;
    margin-top: 1%;
  }

  .invite-closing {
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.25;
  }

  .invite-with {
    margin-top: 2%;
    margin-bottom: 0;
  }
}

/* ≤ 389px — just below 390px, zoom staircase begins */
@media (max-width:389px) {
  .invite-copy {
    zoom: 0.96;
  }
}

/* ≤ 375px — iPhone SE 1/2/3, iPhone 6/7/8 */
@media (max-width:375px) {
  .invite-copy {
    zoom: 0.92;
  }

  .invite-grandparent {
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.25;
    margin-top: 1%;
  }

  .invite-closing {
    font-size: clamp(11px, 2.3vw, 12px);
    line-height: 1.25;
  }

  .invite-with {
    margin-top: 2%;
    margin-bottom: 0;
  }
}

/* ≤ 360px — small Android phones */
@media (max-width:360px) {
  #sec-hero .sec-cnt {
    padding: 5% 4% 14px;
  }

  #sec-hero .couple-name {
    font-size: clamp(15px, 5.5vw, 20px);
    padding: 4px 0;
  }

  .invite-with {
    letter-spacing: 3px;
  }

  .invite-copy {
    zoom: 0.88;
  }
}

/* ≤ 330px — very small / old phones */
@media (max-width:330px) {
  .invite-copy {
    zoom: 0.82;
  }
}

/* ── EVENT PAGES — no overlay ─────────────────── */
#sec-mehendi .sec-overlay {
  background: transparent;
}

#sec-sangeet .sec-overlay {
  background: transparent;
}

#sec-ceremony .sec-overlay {
  background: transparent;
}

#sec-reception .sec-overlay {
  background: transparent;
}

#sec-thankyou .sec-overlay {
  background: transparent;
}

/* ── EVENT PAGES layout ─────────────────────── */
.ev-sec .sec-cnt {
  justify-content: flex-start;
  align-items: center;
  padding: 10% 22px 40px;
  gap: 0;
  min-height: 100dvh;
}

.ev-top {
  display: none;
}

.ev-event-label {
  display: none;
}

.ev-middle {
  display: contents;
}

.ev-bottom {
  display: contents;
}

.ev-detail-card {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

/* ── ALL EVENT TEXT — no card, direct on image ─ */
.ev-main-title {
  font-family: var(--font-names);
  font-style: italic;
  font-size: clamp(38px, 11.5vw, 62px);
  line-height: 1.0;
  text-align: center;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  padding: 12px 8px;
  margin-bottom: 2px;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .22);
  background: none;
  animation: none;
  filter: none;
}

.ev-subtitle {
  font-family: var(--font-details);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  margin-bottom: 4px;
  text-align: center;
}

.ev-tagline {
  font-family: var(--font-details);
  font-size: 12.5px;
  font-style: italic;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
  max-width: 300px;
  width: 80%;
}

.ev-dt-main {
  font-family: var(--font-details);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  margin-bottom: 1px;
  text-align: center;
}

.ev-dt-time {
  font-family: var(--font-details);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.ev-venue-block {
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.ev-venue-name {
  font-family: var(--font-details);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  margin-bottom: 2px;
}

.ev-venue-addr {
  font-family: var(--font-details);
  font-size: 12px;
  font-style: italic;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(255, 248, 235, .85);
  line-height: 1.3;
  /* margin-bottom:12px; */
}

/* ── THANK YOU PAGE — golden text on dark bg ── */
#sec-thankyou {
  --text: #ffd480;
}

#sec-thankyou .sec-cnt {
  padding-top: 30%;
}


#sec-ceremony .ev-main-title {
  font-size: clamp(28px, 8vw, 46px);
  line-height: 0.9;
}

#sec-thankyou .ev-main-title {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-subtitle {
  color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-tagline {
  color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-dt-main {
  color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-dt-time {
  color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-venue-name {
  color: var(--text);
  text-shadow: none;
}

#sec-thankyou .ev-venue-addr {
  color: var(--text);
  text-shadow: none;
}

.ev-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ev-actions .btn {
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 1.5px;
  border-radius: 6px;
  flex: 0 1 auto;
}

.ev-dress-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
}

.ev-dress-label {
  font-family: var(--font-details);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text);
  font-weight: 700;
}

.ev-dress-val {
  font-family: var(--font-details);
  font-size: 13px;
  font-style: italic;
  color: var(--text);
  font-weight: 600;
}

/* ── GLASSMORPHISM CARDS ─────────────────────── */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 390px;
  box-shadow:
    0 10px 48px rgba(0, 0, 0, .24),
    inset 0 1.5px 0 rgba(255, 255, 255, .60),
    inset 0 -1px 0 rgba(139, 26, 47, .05);
}

.card+.card {
  margin-top: 12px;
}

.card-title {
  font-family: var(--font-details);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.card-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
}

.card-big {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13.5px;
  color: var(--text);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ───────────────────────────────── */
.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text);
  text-align: center;
  margin: 4px 0 14px;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .9);
}

.sec-heading {
  font-family: var(--font-details);
  font-size: 20px;
  color: var(--text);
  text-align: center;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.couple-name {
  font-family: var(--font-names);
  font-style: italic;
  font-size: clamp(40px, 12vw, 64px);
  line-height: 1.05;
  text-align: center;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .95), 0 0 40px rgba(0, 0, 0, .85);
  padding: 0 6px;
}

.couple-and {
  font-family: var(--font-details);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--text);
  text-align: center;
  margin: 2px 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
}

@keyframes shimmer {
  0% {
    background-position: 0 center
  }

  100% {
    background-position: 250% center
  }
}

.divider {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 290px;
  margin: 12px auto;
}

.dl {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.dll {
  background: linear-gradient(90deg, transparent, var(--wine-lt), transparent);
}

.dg {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.dgl {
  background: var(--wine-lt);
}

/* ── ORNAMENTAL DIVIDER ──────────────────────── */
.orn-div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  margin: 8px auto;
}

.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 26, 47, .50), transparent);
}

.orn-sym {
  color: var(--text);
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(139, 26, 47, .4);
}

/* ── LOTUS BLOOM ───────────────────────────────── */
.lotus-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.lotus-wrap {
  position: relative;
  width: 118px;
  height: 118px;
}

.lotus-svg {
  width: 118px;
  height: 118px;
  display: block;
  overflow: visible;
}

/* Petal groups — translate-rotate-translate around (60,60)
   Organic ease-out: starts fast, settles naturally (no bounce)            */
.pg {
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Bud: all petals pointing up, compressed to look like a closed bud */
.op-1,
.op-2,
.op-3,
.op-4,
.op-5,
.op-6 {
  transform: translate(60px, 60px) rotate(0deg) scaleX(0.42) translate(-60px, -60px);
}

.ip-1,
.ip-2,
.ip-3,
.ip-4,
.ip-5,
.ip-6 {
  transform: translate(60px, 60px) rotate(0deg) scaleX(0.28) translate(-60px, -60px);
}

/* ── PHASE 1: outer petals open first (0 – 0.45s stagger) */
.lotus-item.bloomed .op-1 {
  transform: translate(60px, 60px) rotate(0deg) scaleX(1) translate(-60px, -60px);
  transition-delay: 0s;
}

.lotus-item.bloomed .op-2 {
  transform: translate(60px, 60px) rotate(60deg) scaleX(1) translate(-60px, -60px);
  transition-delay: .06s;
}

.lotus-item.bloomed .op-3 {
  transform: translate(60px, 60px) rotate(120deg) scaleX(1) translate(-60px, -60px);
  transition-delay: .12s;
}

.lotus-item.bloomed .op-4 {
  transform: translate(60px, 60px) rotate(180deg) scaleX(1) translate(-60px, -60px);
  transition-delay: .18s;
}

.lotus-item.bloomed .op-5 {
  transform: translate(60px, 60px) rotate(240deg) scaleX(1) translate(-60px, -60px);
  transition-delay: .24s;
}

.lotus-item.bloomed .op-6 {
  transform: translate(60px, 60px) rotate(300deg) scaleX(1) translate(-60px, -60px);
  transition-delay: .30s;
}

/* ── PHASE 2: inner petals open after outer (0.4s offset, stay slightly cupped) */
.lotus-item.bloomed .ip-1 {
  transform: translate(60px, 60px) rotate(30deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .40s;
}

.lotus-item.bloomed .ip-2 {
  transform: translate(60px, 60px) rotate(90deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .46s;
}

.lotus-item.bloomed .ip-3 {
  transform: translate(60px, 60px) rotate(150deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .52s;
}

.lotus-item.bloomed .ip-4 {
  transform: translate(60px, 60px) rotate(210deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .58s;
}

.lotus-item.bloomed .ip-5 {
  transform: translate(60px, 60px) rotate(270deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .64s;
}

.lotus-item.bloomed .ip-6 {
  transform: translate(60px, 60px) rotate(330deg) scaleX(0.76) translate(-60px, -60px);
  transition-delay: .70s;
}

/* Pink-rose glow on full bloom */
.lotus-item.bloomed .lotus-svg {
  filter: drop-shadow(0 0 8px rgba(220, 130, 160, .6)) drop-shadow(0 0 18px rgba(201, 169, 110, .4));
  transition: filter 0.5s ease 0.8s;
}

/* Gentle pink pulse on bud (invite tap) */
.lotus-item:not(.bloomed) .lotus-svg {
  animation: lotusBudGlow 2.4s ease-in-out infinite;
}

@keyframes lotusBudGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(212, 132, 158, .35));
  }

  50% {
    filter: drop-shadow(0 0 13px rgba(212, 132, 158, .75));
  }
}

/* Date text appears in gold center after bloom */
.lotus-date-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-details);
  font-size: 16px;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(255, 255, 255, .7);
  opacity: 0;
  transition: opacity 0.55s ease 0.6s;
  pointer-events: none;
  z-index: 2;
}

.lotus-item.bloomed .lotus-date-text {
  opacity: 1;
}

.lotus-label {
  font-family: var(--font-details);
  font-size: 11px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .5);
  text-align: center;
}

/* ── TRIPLE ROUND SCRATCHERS ───────────────────── */
#date-card {
  width: 100%;
  max-width: 390px;
  margin-top: 80%;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 16px 22px;
  text-align: center;
}

.sc-row {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  justify-content: center;
  align-items: flex-start;
}

.sc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 118px;
}

.sc-revealed {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(24px) saturate(0.6) brightness(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(0.6) brightness(1.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .15),
    0 2px 8px rgba(0, 0, 0, .08),
    inset 0 2px 0 rgba(255, 255, 255, .80),
    inset 0 -1px 0 rgba(255, 255, 255, .15),
    inset 2px 0 12px rgba(255, 255, 255, .10);
  position: relative;
}

/* liquid glass top-glare */
.sc-revealed::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 15%;
  width: 70%;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.sc-revealed-text {
  font-family: var(--font-details);
  font-size: 19px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  letter-spacing: .5px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .6);
  position: relative;
  z-index: 1;
}

.sc-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  clip-path: circle(50%);
  cursor: crosshair;
  touch-action: none;
  z-index: 5;
}

.sc-canvas.fading {
  transition: opacity .7s ease;
  opacity: 0 !important;
  pointer-events: none;
}

.sc-label {
  font-family: var(--font-details);
  font-size: 11px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .5);
  text-align: center;
}

.sc-item.done .sc-revealed {
  animation: circleGlow 1.2s ease;
}

@keyframes circleGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 26, 47, .0);
    border-color: rgba(176, 48, 80, .9);
  }

  40% {
    box-shadow: 0 0 28px 8px rgba(139, 26, 47, .50);
    border-color: rgba(176, 48, 80, 1);
  }

  100% {
    box-shadow: none;
    border-color: rgba(139, 26, 47, .55);
  }
}

/* ── GET DIRECTIONS ──────────────────────────── */
.btn-directions {
  display: inline-block;
  /* margin-top:12px; */
  padding: 3px 10px;
  font-family: var(--font-details);
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 252, 248, .55);
  border: 1px solid rgba(139, 26, 47, .40);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.btn-directions:active {
  background: rgba(255, 252, 248, .75);
}

#sec-thankyou .btn-directions {
  color: #5A0B1E;
  background: rgba(255, 255, 255, .75);
  border-color: rgba(90, 11, 30, .45);
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--wine-dk), var(--wine));
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 13px 22px;
  font-family: var(--font-details);
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px var(--wine-glow);
  transition: transform .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.btn:active {
  transform: scale(.97);
}

.btn-ghost {
  background: rgba(255, 252, 248, .45);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(139, 26, 47, .45);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .50);
}

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s ease, transform .85s ease;
}

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

/* ── SCROLL CUE ──────────────────────────────── */
#scroll-cue {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: opacity .5s;
}

#scroll-cue.show {
  opacity: 1;
}

#scroll-cue.hide {
  opacity: 0;
}

.sc-cue-txt {
  font-size: 11px;
  letter-spacing: 3px;
  font-style: italic;
  color: var(--gold-lt);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  animation: breathe 2s infinite;
  margin-bottom: 2px;
}


.bubble {
  position: absolute;
  z-index: 30;
  background: rgba(255, 248, 240, .95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 26, 47, .35);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-details);
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) scale(.85) translateY(6px);
  transition: opacity .3s, transform .3s;
  transform-origin: bottom center;
}

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

.bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(139, 26, 47, .5);
}

.bell-spot.ring {
  animation: bellShake .7s ease;
}

@keyframes bellShake {

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

  20% {
    transform: translate(-50%, -50%) rotate(20deg);
  }

  40% {
    transform: translate(-50%, -50%) rotate(-20deg);
  }

  60% {
    transform: translate(-50%, -50%) rotate(13deg);
  }

  80% {
    transform: translate(-50%, -50%) rotate(-13deg);
  }
}

.note {
  position: absolute;
  font-size: 17px;
  color: var(--text);
  pointer-events: none;
  z-index: 25;
  animation: noteFloat 1.9s ease-out forwards;
  font-style: italic;
  text-shadow: 0 0 8px rgba(139, 26, 47, .4);
}

@keyframes noteFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-75px) scale(.5);
    opacity: 0;
  }
}


.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--wine-rose);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkFly var(--dur) ease-out forwards;
}

@keyframes sparkFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ── FIREFLIES & STARS ───────────────────────── */
#ff-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#stars-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffeea0;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 238, 160, .8);
  animation: ffloat linear infinite;
  pointer-events: none;
}

@keyframes ffloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(.4);
  }
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: .12;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.6)
  }
}

/* ── INTRO GATE IMAGE ────────────────────────── */
.intro-gate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 65%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 18%, black 36%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 18%, black 36%);
}

/* ── INTRO SCRATCHER ─────────────────────────── */
#intro-scratcher {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  max-width: 265px;
  text-align: center;
  z-index: 5;
}

.scratch-hint {
  font-family: var(--font-details);
  font-size: 12px;
  letter-spacing: 3px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 7px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .25);
  animation: breathe 2.4s ease-in-out infinite;
}

.scratch-board-wrap {
  position: relative;
  width: 100%;
  height: 60px;
  user-select: none;
  -webkit-user-select: none;
}

/* Date text fills the whole scratch area. Force-hidden until JS confirms
   (via .date-ready, see initScratcher() in script.js) that the card's own
   fade-in has actually finished and the foil has just been freshly
   repainted on top — guards against canvas content not compositing in
   time the instant an animated ancestor reveals it. */
.scratch-date-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scratch-date-reveal.date-ready {
  opacity: 1;
}

.scratch-dt {
  font-family: var(--font-details);
  font-size: clamp(14px, 4.5vw, 18px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}

.scratch-place {
  font-family: var(--font-details);
  font-size: clamp(12px, 4vw, 16px);
  font-style: italic;
  color: var(--text);
  text-align: center;
  margin-top: 3px;
}

/* Canvas floats directly over the sky background — no board/frame */
#scratch-cnv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
  border-radius: 6px;
}

#scratch-cnv.fading {
  transition: opacity 0.85s ease;
  opacity: 0 !important;
  pointer-events: none;
}

/* ── MUTE BUTTON ─────────────────────────────── */
#mute-btn {
  position: fixed;
  bottom: 22px;
  right: 16px;
  z-index: 9500;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
#mute-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
#mute-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
#mute-btn:active { background: rgba(0,0,0,0.65); }

/* ── TOAST ───────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(255, 248, 240, .97);
  color: var(--text);
  font-family: var(--font-details);
  font-size: 15px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--wine-lt);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: transform .4s, opacity .4s;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── THANK YOU PAGE QUOTE ────────────────────── */
.ty-quote {
  font-family: var(--font-details);
  font-size: clamp(15px, 4.2vw, 18px);
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
}

.ty-names {
  font-family: var(--font-names);
  font-style: italic;
  font-size: clamp(16px, 5vw, 22px);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  text-align: center;
  margin: 6px 0;
  filter: drop-shadow(0 2px 10px rgba(139, 26, 47, .3));
}

@media (max-width:480px) {
  .ev-main-title {
    font-size: clamp(36px, 10vw, 64px);
    padding: 8px 8px;
  }

  .couple-name {
    font-size: clamp(38px, 11.5vw, 68px);
  }

  .intro-fullnames {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .ev-sec .sec-cnt {
    padding-top: 29%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .ev-tagline {
    max-width: calc(100% - 32px);
    width: 80%;
  }

  .ev-detail-card {
    max-width: 100%;
  }
}

/* ── ≤ 390px (iPhone SE / small phones) ────── */
@media (max-width:390px) {
  .ev-main-title {
    font-size: clamp(34px, 11.5vw, 62px);
    padding: 8px 8px;
  }

  .couple-name {
    font-size: clamp(36px, 12vw, 64px);
  }

  .intro-fullnames {
    font-size: clamp(26px, 7.5vw, 38px);
  }

  .ev-sec .sec-cnt {
    padding-top: 24%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .ev-tagline {
    max-width: calc(100% - 16px);
    width: 80%;
  }

  .ev-detail-card {
    max-width: 100%;
  }
}

/* Extra adjustment for 375 × 667 height specifically (short + narrow) */
@media (max-width:390px) and (max-height:680px) {
  .ev-sec .sec-cnt {
    padding-top: 22%;
    padding-bottom: 28px;
  }

  .ev-main-title {
    padding: 6px 8px;
    margin-bottom: 0;
  }

  .ev-tagline {
    margin-bottom: 6px;
    width: 80%;
  }

  .ev-dt-time {
    margin-bottom: 6px;
  }
}

/* ── VERY NARROW PHONES (< 360px) ─────────────── */
@media (max-width:360px) {
  .ev-main-title {
    font-size: clamp(28px, 10.5vw, 50px);
  }

  .couple-name {
    font-size: clamp(30px, 11vw, 52px);
  }

  .intro-fullnames {
    font-size: clamp(22px, 7vw, 32px);
  }

  #intro-scratcher {
    width: 74%;
    max-width: 250px;
  }

  .ev-sec .sec-cnt {
    padding-left: 22px;
    padding-right: 12px;
  }
}

/* ── LANDSCAPE PHONES ─────────────────────────── */
@media (orientation:landscape) and (max-height:500px) {

  /* Cover */
  .cover-tap-lbl {
    bottom: 4%;
  }

  #cover-seal {
    top: 45%;
  }

  /* Intro — compress vertical layout */
  .intro-logo {
    top: 3%;
    width: clamp(65px, 13vh, 115px);
  }

  .intro-names-overlay {
    top: 16%;
  }

  #intro-scratcher {
    top: 22%;
    width: 60%;
    max-width: 260px;
  }

  .door-ripples {
    top: 72%;
  }

  .tap-lbl {
    bottom: 3%;
  }

  /* Event sections — tighter top padding in landscape */
  .ev-sec .sec-cnt {
    padding-top: 18%;
    padding-bottom: 24px;
  }

  /* Slightly smaller titles in landscape */
  .ev-main-title {
    font-size: clamp(28px, 6vh, 52px);
    padding: 6px 8px;
  }

  .couple-name {
    font-size: clamp(30px, 7vh, 56px);
  }

  .ev-tagline {
    font-size: 12px;
    margin-bottom: 5px;
    width: 80%;
  }

  .ev-dt-main {
    font-size: 15px;
  }

  .ev-dt-time {
    font-size: 13px;
    margin-bottom: 5px;
  }
}

/* ── ENSURE .wrap FILLS NARROW SCREENS ─────────── */
.wrap {
  width: 100%;
}

/* ── INTRO: iPhone SE & short portrait phones (≤ 700px tall) ── */
/* iPhone SE is 375×667. The arch open-space is tighter,
   so push everything down a touch more from the top. */
@media (max-height:700px) and (orientation:portrait) {
  .intro-logo {
    top: 9%;
    width: clamp(78px, 14vh, 115px);
  }

  .intro-names-overlay {
    top: 26%;
  }

  .intro-fullnames {
    font-size: clamp(24px, 7.5vw, 36px);
  }

  #intro-scratcher {
    top: 32%;
    width: 74%;
    max-width: 265px;
  }

  .door-ripples {
    top: 67%;
  }

  .tap-lbl {
    bottom: 5%;
  }
}

/* ── INTRO: very short portrait phones (≤ 580px tall) ── */
@media (max-height:580px) and (orientation:portrait) {
  .intro-logo {
    top: 7%;
    width: clamp(62px, 12vh, 90px);
  }

  .intro-names-overlay {
    top: 23%;
  }

  .intro-fullnames {
    font-size: clamp(20px, 6.5vw, 30px);
  }

  #intro-scratcher {
    top: 31%;
    width: 65%;
    max-width: 240px;
  }

  .door-ripples {
    top: 64%;
  }

  .tap-lbl {
    bottom: 4%;
  }
}
/* ── LEAVING SECTION — graceful text fade ─────────── */
.sec.leaving .sec-cnt {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── TAP ZONE ──────────────────────────────────── */
#tap-zone {
  position: fixed;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  z-index: 590;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
#tap-zone.active {
  pointer-events: auto;
  cursor: pointer;
}

.tz-indicator {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

/* Position dots stay visible on every section, including the last one —
   they're a progress indicator, not a "there's more" affordance. */
.tz-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.tz-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.3);
  transition: background 0.35s ease, transform 0.35s ease;
}
.tz-dot.current {
  background: rgba(201, 169, 110, 0.95);
  transform: scale(1.5);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.6);
}

/* Forward affordance (chevron + label) — only shown when there's a next
   section to advance to; #tap-zone.active is toggled by updateTapZone(). */
.tz-fwd {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#tap-zone.active .tz-fwd {
  opacity: 1;
}

.tz-chevron {
  font-size: 26px;
  color: rgba(255, 230, 190, 0.95);
  line-height: 1;
  animation: tzPulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(201, 169, 110, 0.85);
  margin-top: 4px;
  /* Dark circular backdrop guarantees contrast no matter how bright the
     video frame behind it is — translucent gold alone washed out badly
     against light backgrounds. */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 0, 0.5);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 50%;
}
.tz-label {
  font-family: var(--font-details);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(201, 169, 110, 0.70);
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}
@keyframes tzPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(4px); }
}


/* ── TRANSITION LAYER ─────────────────────────────── */
#transition-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: block;
  background: #0d0600; /* dark fill prevents see-through while video renders */
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  /* No default transition — JS controls timing to prevent black-frame gaps */
}
#transition-layer.show {
  opacity: 1;
  pointer-events: auto;
}
#transition-layer.fading-out {
  transition: opacity 0.55s ease;
}
.t-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.45s ease-in-out;
}
.t-player.active {
  opacity: 1;
}

/* ── LEFT TAP ZONE ──────────────────────────────────── */
#tap-zone-left {
  position: fixed;
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
  z-index: 590;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
#tap-zone-left.active {
  pointer-events: auto;
  cursor: pointer;
}
.tz-indicator-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#tap-zone-left.active .tz-indicator-left {
  opacity: 1;
}
.tz-chevron-left {
  font-size: 26px;
  color: rgba(255, 230, 190, 0.95);
  line-height: 1;
  animation: tzPulseLeft 1.8s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(201, 169, 110, 0.85);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 0, 0.5);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 50%;
}
.tz-label-left {
  font-family: var(--font-details);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(201, 169, 110, 0.70);
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}
@keyframes tzPulseLeft {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(-4px); }
}

/* ── NAV HINT ───────────────────────────────────────── */
#nav-hint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 5, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 30px;
  padding: 8px 20px;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
#nav-hint.show {
  opacity: 1;
  pointer-events: auto;
}
.nh-left, .nh-right {
  font-family: var(--font-details);
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(201, 169, 110, 0.80);
  font-style: italic;
  cursor: pointer;
  padding: 6px 4px;
}
.nh-sep {
  color: rgba(201, 169, 110, 0.35);
  font-size: 14px;
}
.nh-left.hide, .nh-right.hide, .nh-sep.hide {
  display: none;
}

/* ── CAT ZONE (invisible easter egg) ───────────────── */
.cat-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 28%;
  z-index: 1005;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

/* ── BACK NAVIGATION FADE — light white flash, lighter touch than the
   full video transition used going forward. Goes fully opaque (not just
   translucent) because the section swap happens instantly behind it —
   see goBack() in script.js — so the guest only ever sees "white, then
   the new page", never the previous page sliding underneath the flash. */
#back-fade {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s ease;
}
#back-fade.show {
  opacity: 1;
}

/* ── MEOW BOX (speech bubble, Vivaham cat easter egg only) ──────────── */
/* Fixed at a spot just above the cat tap-zone (mid-bottom-left of the
   screen) rather than at the tap coordinates — reads as the cat's own
   speech bubble instead of a generic toast that could land anywhere. */
#meow-box {
  position: fixed;
  left: 8%;
  bottom: 38%;
  max-width: 180px;
  z-index: 9800;
  background: rgba(10, 5, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 16px;
  padding: 9px 16px;
  font-family: var(--font-details);
  font-size: 14px;
  letter-spacing: 0.5px;
  font-style: italic;
  text-align: center;
  color: rgba(255, 240, 210, 0.95);
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#meow-box::after {
  content: '';
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(10, 5, 0, 0.78);
}
#meow-box.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── PRELOADER REFRESH BUTTON ─────────────────────── */
.pl-refresh-btn {
  margin-top: 22px;
  padding: 9px 26px;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.40);
  border-radius: 24px;
  color: rgba(201, 169, 110, 0.75);
  font-family: var(--font-details);
  font-size: 12px;
  letter-spacing: 3px;
  font-style: italic;
  cursor: pointer;
  animation: breathe 2.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.pl-refresh-btn:active {
  background: rgba(201, 169, 110, 0.08);
}

/* ── GATE SCREEN ──────────────────────────────────── */
#gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #1a0d00;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
#gate.gone {
  opacity: 0;
  pointer-events: none;
}

.gate-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

#gate-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: none;
}

.gate-hint {
  position: absolute;
  bottom: 9%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: introFadeIn .9s ease both;
  animation-delay: 1.4s;
}

.gate-ripple {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(200, 160, 80, .7);
  border-radius: 50%;
  animation: coverRip 2.6s ease-out infinite;
}
.gate-ripple:nth-child(2) { animation-delay: .87s; }
.gate-ripple:nth-child(3) { animation-delay: 1.74s; }

.gate-tap-txt {
  font-family: 'adobe-garamond-pro', Georgia, serif;
  font-size: clamp(13px, 3.5vw, 16px);
  letter-spacing: .18em;
  color: rgba(240, 215, 150, .85);
  text-transform: uppercase;
}

/* ── AMBIENT FIREFLIES ──────────────────────────── */
#amb-ff-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.amb-ff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 245, 200, .95) 0%,
    rgba(201, 169, 110, .5)  45%,
    transparent              72%
  );
  animation: ambFloat linear forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes ambFloat {
  0%   { opacity: 0;              transform: translate(0, 0); }
  10%  { opacity: var(--peak-op); }
  88%  { opacity: var(--peak-op); }
  100% { opacity: 0;              transform: translate(var(--tx), var(--ty)); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — SAFE AREA + TABLETS
   Phone-first baseline lives above. We only add/override here.
═══════════════════════════════════════════════════════════════════ */

/* ── SAFE-AREA INSETS (iPhone notch / Dynamic Island / home bar) ── *
   Using max() so values only grow past the base if the safe area
   demands it — no change on devices without safe area.                */
#mute-btn {
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  right:  max(16px, calc(env(safe-area-inset-right)  +  8px));
}
#nav-hint {
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 18px));
}
#scroll-cue {
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px));
}
.tap-lbl {
  bottom: max(6%, calc(env(safe-area-inset-bottom) + 16px));
}
.gate-hint {
  bottom: max(9%, calc(env(safe-area-inset-bottom) + 24px));
}

/* ── SMALL TABLETS & LARGE PHONES (≥ 600 px) ────────────────────── */
@media (min-width: 600px) {

  /* Event sections */
  .ev-sec .sec-cnt {
    padding: 8% 40px 48px;
    gap: 4px;
  }

  .ev-main-title {
    font-size: clamp(48px, 8.5vw, 80px);
    padding: 12px 8px;
  }

  .ev-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .ev-tagline {
    font-size: 13.5px;
    max-width: 400px;
    width: 72%;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .ev-detail-card {
    max-width: 440px;
  }

  .ev-dt-main  { font-size: 19px; margin-bottom: 2px; }
  .ev-dt-time  { font-size: 16px; margin-bottom: 10px; }
  .ev-venue-name  { font-size: 15px; margin-bottom: 3px; }
  .ev-venue-addr  { font-size: 13px; line-height: 1.55; }

  .btn-directions {
    font-size: 9.5px;
    padding: 4px 12px;
    margin-top: 8px;
    display: inline-block;
  }

  /* Hero / invite copy */
  #sec-hero .sec-cnt {
    padding: 8% 8% 32px;
  }

  .invite-copy {
    padding-top: 2%;
    max-width: 500px;
    margin: 0 auto;
  }

  #sec-hero .couple-name {
    font-size: clamp(26px, 5.5vw, 40px);
    padding: 8px 0;
  }

  .invite-blessing    { font-size: clamp(12px, 2vw,   15px); }
  .invite-parent-name { font-size: clamp(13px, 2.2vw, 15px); }
  .invite-request     { font-size: clamp(12px, 1.9vw, 14px); line-height: 1.4; }
  .invite-grandparent { font-size: clamp(11px, 1.7vw, 13px); max-width: 360px; width: 86% !important; }
  .invite-with        { font-size: clamp(11px, 1.7vw, 13px); }
  .invite-parent-line { font-size: clamp(13px, 2.1vw, 15px); }

  /* Intro screen */
  .intro-logo {
    top: 7%;
    width: clamp(100px, 15vh, 150px);
  }

  .intro-names-overlay {
    top: 24%;
    width: 72%;
  }

  .intro-fullnames {
    font-size: clamp(32px, 5.5vw, 50px);
  }

  #intro-scratcher {
    top: 35%;
    width: 65%;
    max-width: 330px;
  }

  .door-ripples { top: 70%; }

  /* Thank-you section — cap runaway % padding on wider screens */
  #sec-thankyou .sec-cnt { padding-top: 20%; }
}

/* ── IPAD PORTRAIT (≥ 768 px) ────────────────────────────────────── */
@media (min-width: 768px) {

  /* Event sections */
  .ev-sec .sec-cnt {
    padding: 6% 56px 56px;
    gap: 8px;
    justify-content: center;
  }

  .ev-main-title {
    font-size: clamp(58px, 9vw, 96px);
    padding: 14px 12px;
  }

  .ev-subtitle {
    font-size: 16px;
    letter-spacing: .8px;
    margin-bottom: 8px;
  }

  .ev-tagline {
    font-size: 15px;
    max-width: 480px;
    width: 68%;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .ev-detail-card {
    max-width: 520px;
  }

  .ev-dt-main  { font-size: 22px; margin-bottom: 3px; }
  .ev-dt-time  { font-size: 18px; margin-bottom: 14px; }
  .ev-venue-name  { font-size: 17px; margin-bottom: 4px; }
  .ev-venue-addr  { font-size: 14.5px; line-height: 1.65; }

  .btn-directions {
    font-size: 10.5px;
    padding: 5px 15px;
    margin-top: 12px;
    display: inline-block;
  }

  /* Hero / invite copy */
  #sec-hero .sec-cnt {
    padding: 10% 10% 40px;
  }

  .invite-copy {
    padding-top: 2%;
    max-width: 580px;
    margin: 0 auto;
  }

  #sec-hero .couple-name {
    font-size: clamp(30px, 5vw, 48px);
    padding: 10px 0;
  }

  .invite-blessing    { font-size: clamp(13px, 1.9vw, 16px); }
  .invite-parent-name { font-size: clamp(14px, 2vw,   17px); }
  .invite-request     { font-size: clamp(13px, 1.8vw, 15px); line-height: 1.45; }
  .invite-grandparent { font-size: clamp(12px, 1.6vw, 14px); max-width: 440px; width: 82% !important; }
  .invite-with        { font-size: clamp(12px, 1.6vw, 14px); letter-spacing: 6px; }
  .invite-parent-line { font-size: clamp(14px, 1.9vw, 17px); }

  /* Intro screen */
  .intro-logo {
    top: 7%;
    width: clamp(110px, 14vh, 160px);
  }

  .intro-names-overlay {
    top: 23%;
    width: 65%;
  }

  .intro-fullnames {
    font-size: clamp(38px, 5.5vw, 60px);
  }

  #intro-scratcher {
    top: 36%;
    width: 55%;
    max-width: 380px;
  }

  .scratch-board-wrap { height: 80px; }
  .scratch-dt    { font-size: clamp(17px, 2.8vw, 22px); }
  .scratch-place { font-size: clamp(14px, 2.2vw, 18px); }

  .door-ripples {
    top: 69%;
    left: 49%;
  }

  /* Thank-you */
  #sec-thankyou .sec-cnt { padding-top: 16%; }

  /* Mute button — slightly larger touch target on tablet */
  #mute-btn        { width: 36px; height: 36px; }
  #mute-btn svg    { width: 20px; height: 20px; }

  /* Nav hint */
  .nh-left, .nh-right { font-size: 13px; }
}

/* ── IPAD LANDSCAPE / IPAD PRO (≥ 1024 px) ─────────────────────── */
@media (min-width: 1024px) {

  .ev-sec .sec-cnt {
    padding: 5% 80px 64px;
    gap: 10px;
  }

  .ev-main-title {
    font-size: clamp(68px, 8.5vw, 110px);
    padding: 16px 16px;
  }

  .ev-tagline {
    font-size: 16px;
    max-width: 560px;
    width: 62%;
    margin-bottom: 20px;
  }

  .ev-detail-card { max-width: 600px; }

  .ev-dt-main  { font-size: 25px; }
  .ev-dt-time  { font-size: 20px; }
  .ev-venue-name  { font-size: 19px; }
  .ev-venue-addr  { font-size: 16px; }

  .btn-directions {
    font-size: 11px;
    padding: 6px 18px;
  }

  /* Hero */
  #sec-hero .sec-cnt {
    padding: 12% 14% 48px;
  }

  .invite-copy {
    padding-top: 2%;
    max-width: 660px;
  }

  #sec-hero .couple-name {
    font-size: clamp(34px, 4.5vw, 56px);
    padding: 14px 0;
  }

  .invite-blessing    { font-size: clamp(14px, 1.6vw, 17px); }
  .invite-parent-name { font-size: clamp(15px, 1.7vw, 18px); }
  .invite-request     { font-size: clamp(14px, 1.5vw, 16px); }
  .invite-grandparent { font-size: clamp(12px, 1.4vw, 15px); max-width: 520px; width: 80% !important; }
  .invite-parent-line { font-size: clamp(15px, 1.6vw, 18px); }

  /* Intro */
  .intro-names-overlay  { width: 55%; }
  .intro-fullnames      { font-size: clamp(42px, 5vw, 68px); }

  #intro-scratcher {
    top: 37%;
    width: 46%;
    max-width: 420px;
  }

  .scratch-board-wrap { height: 90px; }

  /* Thank-you */
  #sec-thankyou .sec-cnt { padding-top: 12%; }
}

