  :root {
    --cream: #F7F3E9;
    --cream-2: #EFE7D5;
    --paper: #FBF8F0;
    --ink: #2E2456;
    --purple: #4B3B8F;      /* primary script/text purple */
    --purple-2: #6B57B5;
    --wisteria: #9B7BC8;
    --wisteria-2: #B8A0D9;
    --wisteria-3: #CDB8E5;
    --wisteria-deep: #5E3F8E;
    --leaf: #5C7A4F;
    --leaf-dark: #3E5A35;
    --leaf-2: #7A9663;
    --heart: #C2272D;
    --gold: #C9A86A;
    --gold-2: #E2C98E;
    --line: #C9BFAA;
  }

  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--ink);
    background: var(--cream);
    background-image:
      radial-gradient(ellipse at 20% 0%, #EDE0FB 0%, transparent 45%),
      radial-gradient(ellipse at 80% 100%, #E6F0DF 0%, transparent 50%),
      linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4;
    position: relative;
  }

  /* Floral wallpaper layer behind everything */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g opacity='0.85'><g transform='translate(30,30)'><ellipse cx='0' cy='0' rx='5' ry='6' fill='%23CDB8E5'/><ellipse cx='-5' cy='5' rx='4' ry='5' fill='%239B7BC8'/><ellipse cx='5' cy='7' rx='4' ry='5' fill='%23B8A0D9'/><ellipse cx='-2' cy='13' rx='3.5' ry='4.5' fill='%237A57C0'/><ellipse cx='3' cy='19' rx='3' ry='4' fill='%235E3F8E'/></g><g transform='translate(160,60)'><path d='M0 0 Q 5 -7 13 -4 Q 9 4 0 0 Z' fill='%237A9663' opacity='0.7'/><path d='M0 0 Q -7 -5 -14 0 Q -8 6 0 0 Z' fill='%235C7A4F' opacity='0.7'/></g><g transform='translate(110,140)'><ellipse cx='0' cy='0' rx='4' ry='5' fill='%23B8A0D9'/><ellipse cx='-4' cy='5' rx='3.5' ry='4.5' fill='%237A57C0'/><ellipse cx='3' cy='9' rx='3' ry='4' fill='%239B7BC8'/></g><g transform='translate(180,170)'><path d='M0 0 Q 4 -6 12 -3 Q 8 4 0 0 Z' fill='%237A9663' opacity='0.7'/></g><g transform='translate(50,170)'><ellipse cx='0' cy='0' rx='3.5' ry='4.5' fill='%23CDB8E5'/><ellipse cx='-3' cy='5' rx='3' ry='4' fill='%239B7BC8'/></g><g transform='translate(85,55)'><path d='M0 0 Q -5 -6 -13 -3 Q -9 4 0 0 Z' fill='%235C7A4F' opacity='0.6'/></g></g></svg>"),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'><g opacity='0.5'><path d='M40 320 Q 50 220 70 180 Q 90 130 130 100' stroke='%235C7A4F' stroke-width='1' fill='none' opacity='0.4'/><g transform='translate(70,180)'><ellipse cx='0' cy='0' rx='6' ry='8' fill='%239B7BC8' opacity='0.6'/><ellipse cx='-5' cy='8' rx='5' ry='7' fill='%23B8A0D9' opacity='0.6'/><ellipse cx='4' cy='14' rx='4' ry='6' fill='%237A57C0' opacity='0.6'/></g><path d='M280 30 Q 270 100 240 140 Q 210 180 180 220' stroke='%235C7A4F' stroke-width='1' fill='none' opacity='0.4'/><g transform='translate(240,140)'><ellipse cx='0' cy='0' rx='5' ry='7' fill='%23CDB8E5' opacity='0.55'/><ellipse cx='-4' cy='7' rx='4' ry='6' fill='%239B7BC8' opacity='0.55'/></g></g></svg>");
    background-size: 220px 220px, 340px 340px;
    background-position: 0 0, 110px 90px;
    background-repeat: repeat, repeat;
  }

  .invite, #envelope-scene { position: relative; z-index: 1; }
  /* Make the arch sit on near-opaque paper so text stays clean */
  .arch {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.locked { overflow: hidden; height: 100vh; }

  .ui-sans { font-family: 'Open Sans', system-ui, sans-serif; }
  .script { font-family: 'Pinyon Script', 'Great Vibes', cursive; font-weight: 400; }
  .vibes { font-family: 'Great Vibes', cursive; }
  .italic { font-style: italic; }

  /* =========================================================
     ENVELOPE COVER
     ========================================================= */
  #envelope-scene {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(ellipse at 30% 20%, #E4D5F4 0%, transparent 55%),
      radial-gradient(ellipse at 70% 80%, #D8E6CE 0%, transparent 55%),
      linear-gradient(160deg, #F4ECF9 0%, #FBF7EC 60%, #EAEEDB 100%);
    transition: opacity 1.1s ease 0.6s, transform 1.1s cubic-bezier(.7,.05,.4,1) 0.6s;
  }
  #envelope-scene.opened { opacity: 0; transform: scale(1.08); pointer-events: none; }

  .cover-stage {
    position: relative;
    width: min(92vw, 440px);
    cursor: pointer;
    outline: none;
  }
  .cover-card {
    position: relative;
    width: 100%;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(184,160,217,0.22) 0%, transparent 60%),
      linear-gradient(180deg, #FFFCF0 0%, #FBF4DE 100%);
    border-radius: 8px;
    box-shadow:
      0 30px 60px -20px rgba(46,36,86,0.5),
      0 12px 28px -10px rgba(0,0,0,0.25),
      inset 0 0 0 1px rgba(201,168,106,0.55),
      inset 0 0 0 8px rgba(201,168,106,0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: clamp(36px, 9vw, 56px) clamp(20px, 5vw, 28px);
    gap: clamp(18px, 4vw, 24px);
    transition: transform 1.1s cubic-bezier(.55,.05,.3,1), opacity 0.7s ease 0.25s;
  }
  .opening .cover-card {
    transform: translateY(-120vh) rotate(-3deg);
    opacity: 0;
  }
  .cover-corner {
    position: absolute; width: 28px; height: 28px;
    border: 1px solid rgba(201,168,106,0.7);
  }
  .cover-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
  .cover-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
  .cover-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
  .cover-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
  .cover-inner { width: 100%; }
  .cover-flourish { color: var(--wisteria); font-size: 22px; letter-spacing: 8px; margin-bottom: 18px; opacity: 0.75; }
  .cover-mono { font-family: 'Pinyon Script', cursive; font-size: clamp(40px, 9vw, 60px); color: var(--purple); line-height: 1; margin: 4px 0 14px; }
  .cover-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px; }
  .cover-divider .line { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .cover-divider .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--gold); }
  .cover-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; letter-spacing: 4px; text-transform: uppercase; color: var(--leaf-dark); margin-bottom: 12px; }
  .cover-date { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; letter-spacing: 5px; color: var(--purple); }

  /* Wax seal in the middle, clickable (no break, no stamp animation) */
  .cover-seal {
    position: relative;
    margin: 8px auto 0;
    width: 96px; height: 96px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 60% 40%, #B8A0D9 0%, #7E5BA8 55%, #4A2E7A 100%);
    box-shadow:
      0 6px 14px rgba(40,20,80,0.45),
      inset 0 -4px 6px rgba(0,0,0,0.3),
      inset 0 2px 4px rgba(220,200,240,0.25);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.6s ease;
  }
  .cover-seal::after {
    content: '';
    position: absolute; inset: 8%;
    border-radius: 50%;
    border: 1px dashed rgba(244, 224, 184, 0.45);
    pointer-events: none;
  }
  .cover-seal .seal-mono-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 32px;
    color: rgba(255,235,200,0.92);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
    letter-spacing: 1px;
  }
  .cover-stage:hover .cover-seal { transform: scale(1.04); }

  .seal-hint {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple);
    opacity: 0.65;
    margin-top: 10px;
    animation: hintPulse 2.6s ease-in-out infinite;
  }
  @keyframes hintPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.85; }
  }
  .opening .seal-hint { opacity: 0; transition: opacity 0.4s ease; }
  .seal-pulse {
    position: absolute; inset: -10px;
    border-radius: 999px;
    border: 2px solid rgba(126, 91, 168, 0.55);
    animation: sealPulse 1.8s ease-out infinite;
    pointer-events: none;
  }
  @keyframes sealPulse {
    0%   { transform: scale(0.85); opacity: 0; }
    25%  { opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
  }
  .opening .seal-pulse { animation: none; opacity: 0; }

  /* Stamp animation removed — seal just fades with the cover */
  .seal-flash { display: none; }

  /* Seal monogram as a single unified disc (no split halves) */
  .seal-half {
    position: absolute; top: 0; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    transition: opacity 0.5s ease;
  }
  .seal-half.left,
  .seal-half.right {
    width: 50%;
    clip-path: none;
    border-radius: 0;
  }
  .seal-half.left  { left: 0;  justify-content: flex-end;   padding-right: 1px; }
  .seal-half.right { right: 0; justify-content: flex-start; padding-left: 1px; }
  .seal-mono { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 32px; color: rgba(255,235,200,0.92); text-shadow: 0 -1px 0 rgba(0,0,0,0.35); }
  .seal-half.left  .seal-mono { transform: none; }
  .seal-half.right .seal-mono { transform: none; }
  .seal-crack { display: none; }
  .opening .cover-seal { opacity: 0; transition: opacity 0.6s ease; }

  .cover-hint {
    position: absolute; left: 0; right: 0; bottom: 56px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--purple);
    font-size: 15px;
    letter-spacing: 1px;
    animation: hintPulse 2.4s ease-in-out infinite;
    transition: opacity 0.4s ease;
  }
  .cover-hint .tap-dot { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--purple); margin: 0 4px 2px; vertical-align: middle; opacity: 0.6; }
  @keyframes hintPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
  .opening .cover-hint { opacity: 0; }

  /* legacy stage kept hidden if referenced */
  .env-stage-legacy {
    aspect-ratio: 1.55 / 1;
    perspective: 1600px;
    cursor: pointer;
  }

  .env-hint {
    position: absolute;
    bottom: -56px; left: 0; right: 0;
    text-align: center;
    color: var(--purple);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0.5px;
    animation: floatHint 2.4s ease-in-out infinite;
  }
  .env-hint .tap-dot {
    display: inline-block;
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--purple);
    margin: 0 4px 2px;
    vertical-align: middle;
    opacity: 0.5;
    animation: blink 1.4s ease infinite;
  }
  @keyframes floatHint {
    0%,100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(4px); opacity: 1; }
  }
  @keyframes blink { 50% { opacity: 1; } }

  /* Drop shadow under envelope */
  .env-shadow {
    position: absolute;
    left: 6%; right: 6%; bottom: -28px;
    height: 32px;
    background: radial-gradient(ellipse at center, rgba(46,36,86,0.45) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 0;
  }

  /* The envelope back face (rectangle visible behind everything) */
  .env-body {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.45) 0%, transparent 55%),
      radial-gradient(ellipse at 75% 90%, rgba(0,0,0,0.05) 0%, transparent 55%),
      linear-gradient(135deg, #FBF1D6 0%, #F3E3B6 55%, #E8D29C 100%);
    border-radius: 10px;
    box-shadow:
      0 36px 70px -22px rgba(75, 59, 143, 0.45),
      0 14px 28px -10px rgba(0,0,0,0.2),
      inset 0 0 0 1px rgba(201, 168, 106, 0.55),
      inset 0 -4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 1;
  }
  /* Diagonal seams of the envelope back (side flaps meeting at flap tip) */
  .env-seams {
    position: absolute; inset: 0;
    z-index: 2;
    pointer-events: none;
  }
  .env-seams svg { width: 100%; height: 100%; display: block; }

  /* Dark interior visible once the top flap is open */
  .env-inside {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #2A1F5F 0%, #4B3B8F 35%, #6B57B5 100%);
    clip-path: polygon(0 0, 100% 0, 50% 60%);
    z-index: 1;
    box-shadow: inset 0 -8px 14px rgba(0,0,0,0.4);
  }
  /* faint star pattern inside */
  .env-inside::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 25%, rgba(226,201,142,0.25) 0 1.5px, transparent 2px),
      radial-gradient(circle at 60% 18%, rgba(226,201,142,0.2) 0 1px, transparent 1.5px),
      radial-gradient(circle at 80% 35%, rgba(226,201,142,0.22) 0 1.2px, transparent 1.8px),
      radial-gradient(circle at 35% 40%, rgba(226,201,142,0.18) 0 1px, transparent 1.5px);
  }

  /* The card that slides up out of the envelope and rests ON it */
  .env-card {
    position: absolute;
    left: 6%; right: 6%;
    top: 6%;
    height: 88%;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(184,160,217,0.18) 0%, transparent 55%),
      linear-gradient(180deg, #FFFCF0 0%, #FBF4DE 100%);
    border-radius: 6px;
    box-shadow:
      0 10px 24px rgba(46,36,86,0.35),
      0 4px 10px rgba(0,0,0,0.15),
      inset 0 0 0 1px rgba(201,168,106,0.45),
      inset 0 0 0 7px rgba(201,168,106,0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 0 14px;
    z-index: 0;
    opacity: 0;
    transform: translateY(40%) scale(0.96);
    transition:
      opacity 0.4s ease 0.7s,
      transform 1.2s cubic-bezier(.4,.05,.2,1) 0.7s,
      box-shadow 0.6s ease 0.7s;
  }
  .card-up .env-card {
    z-index: 7;
    opacity: 1;
    transform: translateY(-14%) scale(1);
    box-shadow:
      0 22px 44px -12px rgba(46,36,86,0.45),
      0 10px 22px -8px rgba(0,0,0,0.25),
      inset 0 0 0 1px rgba(201,168,106,0.55),
      inset 0 0 0 7px rgba(201,168,106,0.4);
    cursor: pointer;
  }
  .card-up.card-ready .env-card {
    animation: cardFloat 4s ease-in-out infinite;
  }
  @keyframes cardFloat {
    0%,100% { transform: translateY(-14%) scale(1); }
    50%     { transform: translateY(calc(-14% - 4px)) scale(1); }
  }
  .card-dismiss .env-card {
    animation: none !important;
    transform: translateY(-140%) scale(1.05) !important;
    opacity: 0 !important;
    transition: transform 1s cubic-bezier(.6,.05,.3,1), opacity 0.8s ease 0.15s !important;
  }
  .env-card-tap {
    position: absolute;
    left: 0; right: 0; bottom: -42px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--purple);
    font-size: 15px;
    opacity: 0;
  }
  .env-card-tap .dot {
    display: inline-block;
    width: 5px; height: 5px; border-radius: 999px;
    background: var(--purple);
    margin: 0 4px 2px;
    vertical-align: middle;
    opacity: 0.6;
  }
  .card-ready .env-card-tap { opacity: 0.95; }
  .card-up .env-hint { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .env-card-inner {
    position: relative;
    width: 100%;
  }
  .env-card-flourish {
    color: var(--wisteria);
    font-size: 22px;
    line-height: 1;
    letter-spacing: 10px;
    margin-bottom: 6px;
    opacity: 0.75;
  }
  .env-card-mono {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(34px, 8.5vw, 52px);
    color: var(--purple);
    line-height: 1.05;
    letter-spacing: 1px;
    margin: 4px 0 10px;
  }
  .env-card-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    color: var(--gold);
    margin: 4px 0 12px;
  }
  .env-card-divider .line {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .env-card-divider .dot {
    width: 5px; height: 5px; border-radius: 999px;
    background: var(--gold);
  }
  .env-card-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--leaf-dark);
  }
  .env-card-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--purple);
    margin-top: 14px;
  }

  /* The triangular top flap (rotates open) */
  .env-flap {
    position: absolute; inset: 0;
    background:
      linear-gradient(170deg, #FBF1D2 0%, #EBD8A0 55%, #DCC384 100%);
    clip-path: polygon(0 0, 100% 0, 50% 60%);
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 1.3s cubic-bezier(.55,.05,.3,1);
    z-index: 5;
    backface-visibility: hidden;
  }
  /* fold highlight at the very top of the flap */
  .env-flap::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
    pointer-events: none;
  }
  /* gold trim along the diagonal edges */
  .env-flap-trim {
    position: absolute; inset: 0;
    z-index: 5;
    pointer-events: none;
    transform-origin: top center;
    transition: transform 1.3s cubic-bezier(.55,.05,.3,1);
  }
  .env-flap-trim svg { width: 100%; height: 100%; display: block; }
  .opening .env-flap { transform: rotateX(-170deg); }
  .opening .env-flap-trim { transform: rotateX(-170deg); opacity: 0; transition: transform 1.3s cubic-bezier(.55,.05,.3,1), opacity 0.6s ease 0.4s; }

  /* Wax seal */
  .env-seal {
    position: absolute;
    left: 50%; top: 56%;
    transform: translate(-50%, -50%);
    width: clamp(72px, 16%, 92px);
    aspect-ratio: 1 / 1;
    border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
    background:
      radial-gradient(circle at 28% 22%, rgba(255,255,255,0.45) 0%, transparent 30%),
      radial-gradient(circle at 70% 75%, rgba(0,0,0,0.3) 0%, transparent 45%),
      radial-gradient(circle at 50% 50%, #6B4DB0 0%, #4B3B8F 55%, #2A1F5F 100%);
    color: #E2C98E;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', 'Pinyon Script', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(22px, 4.8vw, 30px);
    line-height: 1;
    z-index: 8;
    box-shadow:
      0 10px 22px rgba(46, 36, 86, 0.55),
      0 2px 4px rgba(0,0,0,0.2),
      inset 0 2px 0 rgba(255,255,255,0.3),
      inset 0 -4px 8px rgba(0,0,0,0.35);
    transition: transform 0.6s cubic-bezier(.5,.05,.3,1), opacity 0.4s ease;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  }
  .env-seal .mono {
    display: inline-block;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
  }
  .env-seal::before {
    content: '';
    position: absolute; inset: -8%;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(46,36,86,0.4) 30%, transparent 65%);
    z-index: -1;
    filter: blur(4px);
  }
  .env-seal::after {
    content: '';
    position: absolute; inset: 8%;
    border: 1.5px dashed rgba(226, 201, 142, 0.6);
    border-radius: inherit;
    pointer-events: none;
  }
  .opening .env-seal {
    transform: translate(-50%, 120%) scale(0.55) rotate(-25deg);
    opacity: 0;
  }

  /* Wisteria garland framing the envelope scene */
  .env-garland-top, .env-garland-bot {
    position: absolute; left: 0; right: 0;
    height: clamp(140px, 28vw, 200px);
    pointer-events: none;
    z-index: 1;
  }
  .env-garland-top { top: 0; }
  .env-garland-bot { bottom: 0; transform: scaleY(-1); }

  /* =========================================================
     MAIN INVITATION CONTAINER
     ========================================================= */
  .invite {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    padding: 0 14px 100px;
  }

  .arch {
    position: relative;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(184,160,217,0.18) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 100%, rgba(124,162,99,0.14) 0%, transparent 55%),
      linear-gradient(180deg, #FBF7EC 0%, #F4EEDD 100%);
    border: 1px solid rgba(94, 122, 79, 0.35);
    border-radius: 24px 24px 14px 14px;
    margin: 28px 0 0;
    overflow: hidden;
    box-shadow:
      0 30px 60px -30px rgba(75, 59, 143, 0.25),
      0 10px 24px -12px rgba(0,0,0,0.1);
  }

  .scene {
    position: relative;
    padding: 36px 28px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  }
  .scene.in { opacity: 1; transform: translateY(0); }

  /* Floral arch top */
  .arch-top-florals {
    position: relative;
    height: 110px;
    margin: 0 -28px -10px;
    overflow: hidden;
  }
    margin: 0 -28px;
    overflow: hidden;
  }
  .arch-top-florals svg { width: 100%; height: 100%; display: block; }

  /* =========================================================
     SCENE: HEADER
     ========================================================= */
  .header-scene { text-align: center; padding-top: 8px; }
  .header-scene .pretitle {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: clamp(34px, 7vw, 46px);
    line-height: 1.1;
    margin: 4px 0 6px;
  }
  .header-scene .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 16px;
    letter-spacing: 1px;
  }
  .couple-figures {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 0;
    margin: 8px auto 4px;
    max-width: 420px;
    position: relative;
  }
  .couple-fig {
    display: flex; flex-direction: column; align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 13px;
    position: relative;
    z-index: 2;
  }
  .couple-fig.groom .chibi-wrap { transform-origin: 50% 95%; animation: tugLeanGroom 4s ease-in-out infinite; }
  .couple-fig.bride .chibi-wrap { transform-origin: 50% 95%; animation: tugLeanBride 4s ease-in-out infinite; }
  @keyframes tugLeanGroom {
    0%,100% { transform: rotate(-10deg) translateX(0); }
    50%     { transform: rotate(-4deg)  translateX(6px); }
  }
  @keyframes tugLeanBride {
    0%,100% { transform: rotate(10deg) translateX(0); }
    50%     { transform: rotate( 4deg) translateX(-6px); }
  }
  .couple-fig.arc { padding-bottom: 30px; flex: 1; position: relative; }
  .couple-fig .chibi-wrap { position: relative; width: 110px; height: 130px; }
  .couple-fig .district { display: none; }
  .couple-fig .chibi { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 78px; height: 92px; }
  /* Bride is now a real illustration (tall portrait) — stand her on the district silhouette */
  .couple-fig .chibi-img { width: auto; height: 170px; bottom: 4px; object-fit: contain; image-rendering: auto; }
  .couple-fig.bride .chibi-wrap { height: 180px; }
  .couple-fig.groom .chibi-wrap { height: 180px; }
  .couple-fig .city-label {
    position: absolute;
    left: 50%; bottom: 8px;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 11px;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    white-space: nowrap;
  }

  .dot-arc { stroke-dasharray: 2 6; stroke: var(--purple); }

  /* Marigold tug-of-war garland with hands */
  .tug-garland { width: 100%; height: 110px; display: block; overflow: visible; }
  .tug-hand-l { transform-origin: 30px 32px; animation: handPullL 4s ease-in-out infinite; }
  .tug-hand-r { transform-origin: 210px 32px; animation: handPullR 4s ease-in-out infinite; }
  @keyframes handPullL { 0%,100% { transform: translate(-4px, -2px) rotate(-6deg); } 50% { transform: translate(2px, 0)    rotate(-2deg); } }
  @keyframes handPullR { 0%,100% { transform: translate( 4px, -2px) rotate( 6deg); } 50% { transform: translate(-2px, 0)   rotate( 2deg); } }
  .tug-garland .rope { fill: none; stroke: #6B8A4A; stroke-width: 1.2; stroke-linecap: round; }
  .tug-marker { transform-origin: 50% 50%; animation: tugMarker 4s ease-in-out infinite; }
  @keyframes tugMarker {
    0%,100% { transform: translateX(-14px) rotate(-6deg); }
    50%     { transform: translateX( 14px) rotate( 6deg); }
  }
  .tug-rope-wrap { animation: tugRopeSway 4s ease-in-out infinite; }
  @keyframes tugRopeSway {
    0%,100% { transform: translateX(-3px); }
    50%     { transform: translateX( 3px); }
  }
  .tug-caption {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--purple);
    font-size: 13px;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-top: 6px;
  }

  /* =========================================================
     SCENE: PROSE
     ========================================================= */
  .prose-scene { text-align: center; padding: 20px 32px; }
  .prose-scene p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
  }

  /* =========================================================
     SCENE: NAMES
     ========================================================= */
  .names-scene { text-align: center; padding: 12px 12px 14px; }
  .name {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: clamp(36px, 7.2vw, 52px);
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin: 8px 0 2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.1s ease, transform 1.1s ease;
  }
  .name .initial { font-style: italic; }
  .deg {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(13px, 2.4vw, 15px);
    color: var(--leaf-dark);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    margin-bottom: 4px;
  }
  .scene.in .name { opacity: 1; transform: translateY(0); }
  .scene.in .deg { opacity: 1; transform: translateY(0); }
  .scene.in .name.n2 { transition-delay: 0.7s; }
  .scene.in .deg.d1 { transition-delay: 0.35s; }
  .scene.in .deg.d2 { transition-delay: 0.95s; }

  .twin-hearts {
    display: flex; justify-content: center;
    margin: 6px 0;
    opacity: 0;
    transition: opacity 0.6s ease 0.45s;
  }
  .twin-hearts svg { display: block; }
  .scene.in .twin-hearts { opacity: 1; }

  .blessing {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    margin-top: 10px;
    margin-bottom: 0;
  }

  /* =========================================================
     SCENE: PARENTS
     ========================================================= */
  .parents-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
    padding: 14px 12px;
    border-top: 1px dashed rgba(94, 122, 79, 0.35);
    border-bottom: 1px dashed rgba(94, 122, 79, 0.35);
    margin: 4px auto;
    max-width: 100%;
  }
  .parent-col {
    min-width: 0;
    max-width: 100%;
  }
  .parent-col .label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 14px;
    margin-bottom: 6px;
  }
  .parent-col .names {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    font-size: clamp(14px, 3.8vw, 17px);
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
  }
  .heart-line {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    margin: 10px 0 4px;
    font-size: 15px;
  }
  .heart-line .name-final {
    display: block;
    color: var(--purple);
    font-weight: 600;
    font-size: clamp(14px, 3.8vw, 17px);
    font-style: normal;
    margin-top: 4px;
  }

  /* =========================================================
     SCENE: COUNTDOWN
     ========================================================= */
  .countdown-scene { text-align: center; padding: 16px 16px 22px; }
  .countdown-title {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: 34px;
    margin: 0 0 4px;
  }
  .countdown-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 22px;
  }
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
  }
  .countdown .unit {
    background: linear-gradient(180deg, #FFFDF5 0%, #F5ECD8 100%);
    border: 1px solid rgba(201, 168, 106, 0.5);
    border-radius: 8px;
    padding: 12px 6px;
    box-shadow: 0 4px 14px -6px rgba(75, 59, 143, 0.25);
    position: relative;
    overflow: hidden;
  }
  .countdown .unit::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 50%;
    height: 1px;
    background: rgba(201, 168, 106, 0.35);
  }
  .countdown .num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--purple);
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .countdown .lbl {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--leaf-dark);
    margin-top: 6px;
  }
  .countdown-passed {
    grid-column: 1 / -1;
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: 26px;
    padding: 8px;
  }

  /* =========================================================
     SCENE: CALENDAR
     ========================================================= */
  .calendar-scene { padding: 22px 16px 28px; text-align: center; }
  .cal-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    color: var(--purple);
    font-size: 28px;
    margin: 4px 0 14px;
    letter-spacing: 1px;
  }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 2px;
    max-width: 360px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
  }
  .cal-grid .h {
    font-size: 11px;
    font-weight: 600;
    color: var(--leaf-dark);
    padding: 6px 0;
    letter-spacing: 0.5px;
  }
  .cal-cell {
    height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    border-radius: 6px;
    position: relative;
  }
  .cal-cell.dim { color: transparent; }
  .cal-cell.mark {
    color: #fff;
    font-weight: 700;
  }
  .cal-cell.mark::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--heart);
    clip-path: path('M16 28 C2 18, 2 6, 10 6 C13 6, 15 8, 16 10 C17 8, 19 6, 22 6 C30 6, 30 18, 16 28 Z');
    z-index: -1;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(.34,1.56,.64,1);
  }
  .cal-cell.mark { z-index: 1; }
  .cal-cell.mark span { position: relative; z-index: 2; transform: translateY(-2px); display: inline-block; }
  .scene.in .cal-cell.mark::before { transform: scale(1); }
  .scene.in .cal-cell.mark.d1::before { transition-delay: 0.4s; }
  .scene.in .cal-cell.mark.d2::before { transition-delay: 0.7s; }

  .cal-legend {
    margin-top: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 14px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  }
  .cal-legend span::before {
    content: '♥';
    color: var(--heart);
    margin-right: 4px;
  }

  /* =========================================================
     SCENE: VENUES
     ========================================================= */
  .venues-scene { padding: 22px 16px 26px; }
  .venue-card {
    background: linear-gradient(180deg, #FFFDF5 0%, #F8F2DF 100%);
    border: 1px solid rgba(201, 168, 106, 0.45);
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 8px 20px -10px rgba(75, 59, 143, 0.25);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
  }
  .venue-pin {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #E03A40 0%, var(--heart) 60%, #931C20 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 8px -2px rgba(194,39,45,0.5);
    color: #fff;
  }
  .venue-pin svg { width: 22px; height: 22px; }
  .venue-meta {
    font-family: 'Cormorant Garamond', serif;
  }
  .venue-meta .kicker {
    font-size: 13px;
    font-style: italic;
    color: var(--leaf-dark);
    letter-spacing: 0.5px;
  }
  .venue-meta .when {
    font-size: 14px;
    color: var(--ink);
    margin-top: 2px;
  }
  .venue-meta .where {
    font-size: 18px;
    color: var(--purple);
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.2;
  }
  .venue-meta .addr {
    font-size: 14px;
    color: var(--ink);
    margin-top: 2px;
    font-style: italic;
    opacity: 0.85;
  }
  .venue-actions {
    grid-column: 2;
    display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
  }
  .v-btn {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--purple);
    color: var(--purple);
    background: rgba(255,255,255,0.6);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }
  .v-btn:hover { background: var(--purple); color: #fff; }
  .v-btn:active { transform: translateY(1px); }
  .v-btn svg { width: 12px; height: 12px; }

  /* =========================================================
     SCENE: RSVP
     ========================================================= */
  .rsvp-scene {
    padding: 26px 22px 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(184,160,217,0.08) 100%);
  }
  .rsvp-scene h3 {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: 38px;
    margin: 0 0 4px;
    text-align: center;
    font-weight: 400;
  }
  .rsvp-scene .lead {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 15px;
    margin: 0 0 18px;
  }
  .rsvp-form { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
  .field {
    display: flex; flex-direction: column; gap: 4px;
  }
  .field label {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--leaf-dark);
  }
  .field input, .field select, .field textarea {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(75, 59, 143, 0.3);
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(75, 59, 143, 0.15);
  }
  .field textarea { resize: vertical; min-height: 60px; }

  .pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .pill {
    flex: 1; min-width: 90px;
    padding: 10px 8px;
    border-radius: 999px;
    border: 1px solid rgba(75, 59, 143, 0.3);
    background: rgba(255,255,255,0.65);
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
  }
  .pill:hover { background: rgba(184,160,217,0.18); }
  .pill.selected {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
  }

  .submit-row { margin-top: 6px; }
  .btn-primary {
    width: 100%;
    background: linear-gradient(180deg, #5D4AAB 0%, var(--purple) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(75, 59, 143, 0.5);
    transition: transform 0.12s ease, box-shadow 0.18s ease;
  }
  .btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(75, 59, 143, 0.55); }
  .btn-primary:active { transform: translateY(1px); }

  .rsvp-success {
    text-align: center;
    padding: 30px 16px;
    animation: fadeUp 0.6s ease both;
  }
  .rsvp-success .check {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #7A57C0 0%, var(--purple) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(75, 59, 143, 0.5);
  }
  .rsvp-success h4 {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: 36px;
    margin: 0 0 4px;
    font-weight: 400;
  }
  .rsvp-success p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 15px;
    margin: 4px 0;
  }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

  /* =========================================================
     SHARE / ACTIONS BAR
     ========================================================= */
  .actions-bar {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin: 18px 0 4px;
  }
  .actions-bar .v-btn { padding: 10px 14px; font-size: 12px; }

  /* =========================================================
     FOOTER
     ========================================================= */
  .footer {
    text-align: center;
    padding: 36px 16px 24px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--leaf-dark);
    font-size: 14px;
  }
  .footer .heart { color: var(--heart); }
  .footer .signoff {
    font-family: 'Pinyon Script', cursive;
    color: var(--purple);
    font-size: 32px;
    margin-bottom: 4px;
  }

  /* =========================================================
     BUTTERFLIES
     ========================================================= */
  .butterfly {
    position: fixed;
    pointer-events: none;
    z-index: 50;
    width: 36px; height: 30px;
    opacity: 0;
    will-change: transform, opacity;
  }
  .butterfly.flying { animation: flyAcross 12s cubic-bezier(.4,.1,.6,.9) forwards; }
  .butterfly.flutter { animation: flutterPath 16s ease-in-out forwards; }
  .butterfly .wing {
    transform-box: fill-box;
    transform-origin: center;
    animation: flap 0.22s ease-in-out infinite alternate;
  }
  .butterfly .wing.left { transform-origin: 100% 50%; }
  .butterfly .wing.right { transform-origin: 0% 50%; }
  @keyframes flap {
    from { transform: scaleX(1) skewY(-2deg); }
    to   { transform: scaleX(0.3) skewY(2deg); }
  }
  @keyframes flyAcross {
    0%   { opacity: 0; transform: translate(-10vw, 55vh) rotate(-8deg); }
    8%   { opacity: 1; }
    20%  { transform: translate(15vw, 30vh) rotate(12deg); }
    35%  { transform: translate(32vw, 55vh) rotate(-10deg); }
    50%  { transform: translate(50vw, 25vh) rotate(8deg); }
    65%  { transform: translate(68vw, 50vh) rotate(-6deg); }
    80%  { transform: translate(85vw, 30vh) rotate(10deg); }
    92%  { opacity: 1; }
    100% { opacity: 0; transform: translate(112vw, 40vh) rotate(-4deg); }
  }
  @keyframes flutterPath {
    0%   { opacity: 0; transform: translate(110vw, 70vh) rotate(170deg) scale(0.7); }
    8%   { opacity: 1; }
    25%  { transform: translate(75vw, 45vh) rotate(180deg) scale(0.85); }
    45%  { transform: translate(45vw, 60vh) rotate(200deg) scale(1); }
    65%  { transform: translate(25vw, 35vh) rotate(170deg) scale(0.9); }
    85%  { opacity: 1; transform: translate(5vw, 50vh) rotate(190deg) scale(0.8); }
    100% { opacity: 0; transform: translate(-12vw, 30vh) rotate(180deg) scale(0.7); }
  }
  .butterfly.rest {
    animation: butterflyRest 5s ease-in-out forwards;
  }
  @keyframes butterflyRest {
    0%   { opacity: 0; transform: translate(var(--rx, 20vw), var(--ry, 30vh)) scale(0.5) rotate(var(--rr, 0deg)); }
    20%  { opacity: 1; transform: translate(var(--rx, 20vw), var(--ry, 30vh)) scale(1) rotate(var(--rr, 0deg)); }
    50%  { transform: translate(calc(var(--rx, 20vw) + 8px), calc(var(--ry, 30vh) - 4px)) scale(1) rotate(var(--rr, 0deg)); }
    80%  { opacity: 1; transform: translate(var(--rx, 20vw), var(--ry, 30vh)) scale(1) rotate(var(--rr, 0deg)); }
    100% { opacity: 0; transform: translate(calc(var(--rx, 20vw) - 30px), calc(var(--ry, 30vh) - 60px)) scale(0.6) rotate(var(--rr, 0deg)); }
  }
  .butterfly.rest .wing {
    animation: flapSlow 0.6s ease-in-out infinite alternate;
  }
  @keyframes flapSlow {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0.7); }
  }

  /* Floating petals */
  .petal {
    position: fixed;
    top: -20px;
    width: 10px; height: 14px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(160deg, var(--wisteria-2), var(--wisteria));
    opacity: 0;
    pointer-events: none;
    z-index: 40;
  }

  @keyframes petalFall {
    0%   { opacity: 0; transform: translate(0, -10vh) rotate(0deg); }
    10%  { opacity: 0.85; }
    100% { opacity: 0; transform: translate(var(--drift, 30px), 110vh) rotate(360deg); }
  }

  /* =========================================================
     MUSIC TOGGLE
     ========================================================= */
  .music-toggle {
    position: fixed;
    bottom: 18px; right: 18px;
    z-index: 80;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(75, 59, 143, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    color: var(--purple);
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(75, 59, 143, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .music-toggle.show { display: flex; }
  .music-toggle:hover { transform: translateY(-2px); }
  .music-toggle svg { width: 20px; height: 20px; }

  /* =========================================================
     RESPONSIVE
     ========================================================= */
  @media (min-width: 720px) {
    .invite { max-width: 640px; padding: 0 32px 140px; }
    .arch { margin-top: 40px; }
    .scene { padding: 44px 36px; }
    .prose-scene p { font-size: 19px; }
  }

  /* Small phones — tighten chrome and figures */
  @media (max-width: 380px) {
    .cover-flourish { font-size: 18px; letter-spacing: 6px; margin-bottom: 12px; }
    .cover-sub { font-size: 15px; letter-spacing: 3px; }
    .cover-date { font-size: 20px; letter-spacing: 4px; }
    .cover-seal { width: 78px; height: 78px; }
    .cover-seal .seal-mono-wrap { font-size: 26px; }
    .cover-corner { width: 22px; height: 22px; }
    .couple-figures { gap: 4px; }
    .couple-fig .chibi-wrap { width: 100px; }
    .couple-fig .chibi-img { height: 140px; }
    .couple-fig.arc { padding-bottom: 22px; }
  }
  @media (max-width: 480px) {
    .scene { padding: 32px 12px; }
    .arch { padding: 24px 10px; border-radius: 18px 18px 10px 10px; }
    .name { font-size: clamp(26px, 7.4vw, 52px); white-space: nowrap; }
    .pretitle { font-size: 13px; }
    .subtitle { font-size: 16px; }
    .prose-scene p { font-size: 16px; line-height: 1.65; }
    .countdown-title { font-size: 22px; }
    .countdown-sub { font-size: 13px; }
    .cal-title { font-size: 22px; }
    .venue-card { padding: 18px 16px; }
    .venue-title { font-size: 20px; }
    .footer { padding-top: 32px; }
    /* Tug-of-war: keep visible but smaller on phones */
    .tug-rope-wrap { transform: scale(0.85); }
    /* Butterflies — slightly smaller on phones */
    .btf-w1, .btf-w3 { width: 22px; height: 18px; }
    .btf-w2 { width: 20px; height: 16px; }
    .btf-n1, .btf-n2, .btf-n3 { width: 18px; height: 15px; }
  }

  /* ===== Static placed butterflies (subtle accents on scenes) ===== */
  .btf {
    position: absolute;
    pointer-events: none;
    z-index: 0;
  }
  .btf svg { width: 100%; height: 100%; display: block; }
  .btf .wing {
    transform-box: fill-box;
    animation: flap 0.22s ease-in-out infinite alternate;
  }
  .btf .wing.left  { transform-origin: 100% 50%; }
  .btf .wing.right { transform-origin: 0% 50%; }
  .btf.slow .wing { animation-duration: 0.55s; }
  .btf.med  .wing { animation-duration: 0.35s; }

  /* Hold the placed transform stable while the wings flap by wrapping bob in inner span */
  .btf-bob { display: inline-block; animation: btfBob 3.6s ease-in-out infinite; }
  @keyframes btfBob {
    0%,100% { transform: translateY(0) rotate(0); }
    50%     { transform: translateY(-4px) rotate(2deg); }
  }

  /* --- #2 Wisteria visitors (header garland) --- */
  .header-scene { position: relative; }
  .btf-w1 { top: 14px; left: 18%; width: 28px; height: 24px; opacity: 0.85; transform: rotate(-8deg); }
  .btf-w2 { top: 8px;  left: 62%; width: 24px; height: 20px; opacity: 0.8;  transform: rotate(10deg); }
  .btf-w3 { top: 32px; left: 80%; width: 26px; height: 22px; opacity: 0.78; transform: rotate(-4deg); }

  /* --- #9 Marigold garland visitors (couple arc) --- */
  .couple-fig.arc { position: relative; }
  .btf-g1 { top: 16%; left: 18%; width: 22px; height: 18px; opacity: 0.9;  transform: rotate(10deg); }
  .btf-g2 { top: 4%;  left: 48%; width: 24px; height: 20px; opacity: 0.92; transform: rotate(-4deg); }
  .btf-g3 { top: 16%; left: 76%; width: 22px; height: 18px; opacity: 0.9;  transform: rotate(-10deg); }

  /* --- #8 Three near names --- */
  .names-scene { position: relative; }
  .btf-n1 { top: 4%;  left: 6%;   width: 20px; height: 16px; opacity: 0.75; transform: rotate(-10deg); }
  .btf-n2 { top: 78%; right: 6%;  width: 22px; height: 18px; opacity: 0.7;  transform: rotate(14deg); }
  .btf-n3 { top: 50%; right: 2%;  width: 16px; height: 14px; opacity: 0.55; transform: rotate(-4deg); }

  /* --- #6 One slow drifter across countdown --- */
  .countdown-scene { position: relative; overflow: hidden; }
  .btf-drift {
    width: 26px; height: 22px;
    top: 50%;
    animation: btfDrift 14s ease-in-out infinite;
    will-change: left, top, transform, opacity;
  }
  @keyframes btfDrift {
    0%   { left: -6%;  top: 70%; transform: scale(0.85) rotate(-6deg); opacity: 0; }
    10%  { opacity: 0.85; }
    25%  { left: 22%; top: 30%; transform: scale(1)    rotate( 10deg); }
    50%  { left: 50%; top: 60%; transform: scale(0.9)  rotate(-4deg); }
    75%  { left: 78%; top: 28%; transform: scale(0.95) rotate( 8deg); }
    92%  { opacity: 0.85; }
    100% { left: 106%; top: 48%; transform: scale(0.8) rotate(-2deg); opacity: 0; }
  }

  /* --- #7 Diagonal corner pair (prose scene) --- */
  .prose-scene { position: relative; }
  .btf-c-tl { top: 8%; left: 6%;  width: 22px; height: 18px; opacity: 0.55; transform: rotate(-18deg); }
  .btf-c-br { bottom: 8%; right: 6%; width: 22px; height: 18px; opacity: 0.5; transform: rotate(18deg); }

  @media (prefers-reduced-motion: reduce) {
    .scene { opacity: 1; transform: none; transition: none; }
    .butterfly { display: none; }
    .petal { display: none; }
    .btf .wing, .btf-drift, .btf-bob { animation: none !important; }
  }