/* Tokaan Studio extras: styles for sections the approved style.css does not have. */
.photo .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin: 1rem 0; }
.fabrics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); display: block; }
.whatsapp { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: .4rem 0; }
.btn.whatsapp-btn { background: #128c4a; border-color: #0d6b38; color: #fff; }
.gift { border: 1px solid var(--gold); border-radius: 10px; padding: .8rem; margin: .8rem 0; background: #fffdf8cc; }
.gift h3, .gift p { margin: .2rem 0; }
.gift-number { font-size: 1.35rem; letter-spacing: .08em; font-weight: 600; }
.puzzle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(100%, 300px); margin: 1rem auto; }
.puzzle .piece { position: relative; overflow: hidden; padding: 0; border: 0; aspect-ratio: 1; min-width: 44px; cursor: pointer; background: #00000010; }
.puzzle .piece img { position: absolute; left: 0; top: 0; width: 300%; height: 300%; max-width: none; object-fit: cover; }
.puzzle .piece.picked { outline: 3px solid var(--gold); outline-offset: -3px; }
/* This design's opening layers */
.envelope-back { background-image: url('assets/back.webp'); }
.envelope-flap { background-image: url('assets/flap.webp'); }
.envelope-pocket { background-image: url('assets/pocket.webp'); }
/* Lace & Pearl: the lace veil (both halves together) lifts up and away like a bridal veil,
   the soft light blooms on the satin and the card rises. */
:root { --wine: #8a6a2c; --gold: #c9a05d; --ivory: #fffcf6; }
body { background: #efe8dc; color: #4a3f33; }
h1, h2, .names, .card-names { font-family: 'Cormorant Garamond', Georgia, serif; }
#opening { background: #e9e1d4; --seam-x: 50%; --seam-y: 49.5%; }
.envelope-flap, .envelope-pocket { z-index: 5; filter: drop-shadow(0 6px 10px #6b5a4033); transform-origin: 50% 0%; }
.stage.is-opening .envelope-flap, .stage.is-opening .envelope-pocket {
  transform: translateY(-78%) scaleY(.9); opacity: 0;
  transition: transform 1.9s cubic-bezier(.45,.05,.25,1), opacity 1.6s ease .3s;
}
.inner-light { background: radial-gradient(ellipse 45% 30% at 50% 48%, #ffffff 0%, #fff8ecee 20%, #f6ead7b3 45%, #efe2cc40 70%, transparent 100%); }
.physical-card { top: 25%; transform: translateY(18%) scale(.82); opacity: 0; transition: none; }
.stage.is-emerging .physical-card, .stage.is-emerged .physical-card {
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 1.8s cubic-bezier(.24,.54,.25,1), opacity 1.2s ease;
}
.card-inside { color: #4a3f33; text-shadow: none; }
#initials { color: #8a6a2c; text-shadow: 0 1px #ffffff; }
.tap { background: #4a3f33d9; color: #fffaf0; }
.btn { border-radius: 999px; border-color: #c9a05d; }
.share { background: #6b5a40; }
@media (prefers-reduced-motion: reduce) {
  .stage.is-opening .envelope-flap, .stage.is-opening .envelope-pocket, .stage.is-emerging .physical-card { transition: none !important; }
}

/* Order style choices (Tokaan Studio) */
#dressCode { white-space: pre-line; }
.hero-art:has(#portrait[hidden]) { display: none; }
