/* 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'); }
/* White Floral Doors: the white doors with roses swing open (left and right) onto a sunlit
   floral aisle, white petals drift down and the card rises into the light. */
:root { --wine: #8a6a2c; --gold: #c9a05d; --ivory: #fffcf6; }
body { background: #f3eee6; color: #4a3f33; }
h1, h2, .names, .card-names { font-family: 'Cormorant Garamond', Georgia, serif; }
#opening { background: #ece5da; --seam-x: 50%; --seam-y: 50%; }
.stage { perspective: 1800px; }
.envelope-flap, .envelope-pocket { filter: drop-shadow(0 0 10px #6b5a4033); backface-visibility: visible; }
.envelope-flap { transform-origin: 0% 50%; }
.envelope-pocket { transform-origin: 100% 50%; z-index: 5; }
.stage.is-opening .envelope-flap { transform: rotateY(-104deg); transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
.stage.is-opening .envelope-pocket { transform: rotateY(104deg); transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
.inner-light { background: radial-gradient(ellipse 45% 30% at 50% 45%, #ffffff 0%, #fff8ecee 22%, #f6ead7a0 48%, 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;
}
.stage::after { content: ""; position: absolute; inset: -10% 0 0; pointer-events: none; z-index: 8; opacity: 0;
  background-image: radial-gradient(ellipse 5px 3px, #ffffffee 60%, transparent 70%), radial-gradient(ellipse 4px 3px, #f7dfe0dd 60%, transparent 70%);
  background-size: 90px 120px, 130px 160px; background-position: 10px 0, 50px 40px; }
.stage.is-emerging::after, .stage.is-emerged::after { opacity: 1; animation: wfd-petals 7s linear infinite; transition: opacity 1s ease; }
@keyframes wfd-petals { to { background-position: 40px 240px, 20px 320px; } }
.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; }
  .stage::after { animation: none !important; }
}

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