/* New opening: illustrated cover (hands) + illustrated hero (temple walk).
   Both artworks are tall 9:16 parchment paintings. Each is drawn at the full
   height of its screen, centred, and feathered into a matching parchment
   ground on wider screens, so text can be placed by percentage of height. */
:root{--opening-ground:#f8e2bd;--opening-ink:#5e2f2a;--opening-gold:#8f6a3c}

/* ---------- Opening film (replaces the tap-to-begin cover) ----------
   The film plays by itself, stops on its last frame, and only then can the
   guest tap anywhere to open the invitation. On phones it fills the screen;
   on wider screens it is drawn at full height, centred, and its sides are
   feathered into a matching parchment ground. */
#gate.film-gate{display:block;padding:0;overflow:hidden;background:#c3e1f6;container-type:size}
#gate.film-gate .petal-layer{display:none}
#opening-film{position:absolute;top:0;left:50%;height:100%;width:calc(100cqh * 9 / 16);transform:translateX(-50%);object-fit:cover;display:block;-webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent)}
@media(max-aspect-ratio:9/16){#opening-film{width:100%;-webkit-mask-image:none;mask-image:none}}
#gate #begin.gate-tap{position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;padding:0 0 calc(env(safe-area-inset-bottom,0px) + 7cqh);display:flex;align-items:flex-end;justify-content:center;background:transparent;border:0;border-radius:0;box-shadow:none;transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
#gate #begin.gate-tap:disabled{cursor:default;pointer-events:none}
#gate #begin.gate-tap:focus-visible{outline:2px solid #6c302d;outline-offset:-8px}
.tap-hint{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:2.6px;text-transform:uppercase;color:#fff4dc;background:#6c302dcc;border:1px solid #b49462;border-radius:999px;padding:11px 22px;opacity:0;transform:translateY(8px);transition:opacity .8s ease,transform .8s ease;pointer-events:none}
#gate #begin.gate-tap.ready .tap-hint{opacity:1;transform:none;animation:tapPulse 2.4s ease-in-out .8s infinite}
@keyframes tapPulse{50%{opacity:.6}}
@media(prefers-reduced-motion:reduce){#gate #begin.gate-tap.ready .tap-hint{animation:none}}
/* ---------- Hero: the hero film ----------
   Its first frame is the opening film's last frame, and both are laid out
   identically (full screen height, 9:16, centred, same feathered sides), so
   swapping one for the other on tap is invisible. It ends on the names. */
#gate.film-gate,#home .hero.film-hero{height:100vh;height:100dvh}
#gate.film-gate{bottom:auto;width:100%}
#home .hero.film-hero{min-height:0;max-height:none;padding:0;background:linear-gradient(to bottom,#c3e1f6 0%,#cfe3f1 60%,#e7d8ba 100%);container-type:size}
#home .hero.film-hero:before{display:none}
.film-hero .petal-layer{display:none}
#hero-film{position:absolute;top:0;left:50%;height:100%;width:calc(100cqh * 9 / 16);transform:translateX(-50%);object-fit:cover;display:block;-webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent)}
@media(max-aspect-ratio:9/16){#hero-film{width:100%;-webkit-mask-image:none;mask-image:none}}
/* Soft dissolve at the bottom of the hero into the colour Our Moments opens with (#e7d8ba), so there is no hard edge.
   The opening screen carries the identical dissolve, so the tap hand-off still matches frame for frame. */
#home .hero.film-hero:after{content:'';position:absolute;left:0;right:0;bottom:0;height:20%;pointer-events:none;z-index:1;background:linear-gradient(to bottom,rgba(231,216,186,0) 0%,rgba(231,216,186,.18) 25%,rgba(231,216,186,.5) 50%,rgba(231,216,186,.82) 75%,#e7d8ba 100%);opacity:0;transition:opacity 2.5s ease}
/* The fade appears once the hero film is playing, so the opening screen (sky blue) never shows it and the tap hand-off still matches frame for frame. */
#home .hero.film-hero.blend:after{opacity:1}
/* ---------- Footer: studio credit (The Creative Affair) under the family names ---------- */
footer .studio-credit{display:flex;flex-direction:column;align-items:center;gap:18px;margin:56px auto 54px;max-width:420px;color:#f3e2c0}
footer .studio-logo{display:block;width:min(270px,72vw);height:auto}
footer .studio-credit p{font-family:'EB Garamond',Georgia,serif;font-style:normal;font-size:22px;line-height:1.3;margin:4px 0 6px;color:inherit}
footer .studio-links{display:flex;gap:26px;justify-content:center}
footer .studio-links a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:inherit;transition:background .2s,transform .2s}
footer .studio-links a:hover{background:#f3e2c01a;transform:translateY(-1px)}
footer .studio-links a:focus-visible{outline:1px solid #f3e2c0;outline-offset:2px}
footer .studio-links svg{width:26px;height:26px}
footer .studio-credit small{font-family:'EB Garamond',Georgia,serif;font-size:16px;line-height:1.4;letter-spacing:0;color:inherit;opacity:.85;margin-top:6px}
@media(max-width:600px){footer .studio-credit{margin:44px auto 44px;gap:14px}footer .studio-credit p{font-size:20px}footer .studio-credit small{font-size:14px}}
/* The names are part of the film; the heading stays for screen readers only. */
.film-hero .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hero h1:focus,.hero h1:focus-visible{outline:none}
/* Hold the opening frame above the playing hero, then dissolve it away. */
#gate.film-gate {
  transition: opacity 420ms ease-in-out, visibility 0s linear 420ms;
}
@media (prefers-reduced-motion: reduce) {
  #gate.film-gate { transition: none; }
}
/* Reserve the desktop scrollbar's space from the start, so the film does not shift sideways when scrolling unlocks. */
html{scrollbar-gutter:stable}
html.film-lock,html.film-lock body{overflow:hidden;overscroll-behavior:none}
html.film-lock body{touch-action:none}
/* ---------- Our Moments: new square-cropped photos (faces pre-centred) ---------- */
.gallery .photo[data-photo] img{transform:none;object-fit:cover;object-position:center}
.gallery .photo span{height:auto;min-height:calc(2.7em + 20px);text-align:center}

.hero-note{text-shadow:0 0 6px #f8e2bd,0 0 2px #f8e2bd,0 0 12px #f8e2bd}

/* ---------- Celebrations: 9:16 looping wedding film ---------- */
.event-grid{max-width:440px;margin:0 auto}
.event.film-event{flex:0 1 440px;width:100%;max-width:440px;aspect-ratio:9/16;background:#2c1f19;border-radius:5px;box-shadow:0 10px 28px #4930202e;outline:1px solid #ae8c5270;outline-offset:7px}
.film-event .film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border:0;opacity:0;transition:opacity .9s ease-in-out}
.film-event .film.show{opacity:1}
@media(max-width:700px){.event.film-event{flex-basis:100%;width:100%;max-width:420px}}

/* ---------- The Venue: one address for all three celebrations ---------- */
.venue-card{position:relative;width:calc(100% - 4px);max-width:560px;margin:80px auto 0;padding:48px 28px 52px;text-align:center;color:#38291d;background:linear-gradient(115deg,#f5ead4,#e9dbbd);border:1px solid #b59661;border-radius:14px;box-shadow:0 8px 22px #4f362019;box-sizing:border-box}
.venue-card:before{content:'';position:absolute;inset:10px;border:1px solid #a98b574b;border-radius:9px;pointer-events:none}
.venue-card .eyebrow{display:block;font-size:10px;color:#8b6840;margin:0}
.venue-card h3{font-family:'Pinyon Script',cursive;font-weight:400;font-size:clamp(46px,8vw,62px);line-height:1.1;color:var(--wine);margin:12px 0 10px}
.venue-card h4{font-family:'Bodoni Moda',Georgia,serif;font-weight:500;font-size:clamp(25px,4.6vw,33px);line-height:1.2;letter-spacing:-.01em;margin:0 0 14px}
.venue-card address{font-family:'EB Garamond',Georgia,serif;font-style:italic;font-size:clamp(17px,2.6vw,20px);line-height:1.5;margin:0 auto 28px;max-width:30ch;text-wrap:balance}
.venue-card .venue-link{position:relative;width:auto;gap:14px;border-radius:999px;padding-left:30px;padding-right:30px}
@media(max-width:700px){.venue-card{margin-top:55px;padding:40px 22px 44px}}
