/* =========================================================
   SECTION 5 - VENUE  (all selectors prefixed .s5-)
   Normal flowing section. js/s5-venue.js gives it two scroll states
   (direct functions of scroll, no easing):
     entering : map blurred, pin/garlands/button hidden
     in view  : map sharp, garlands drop in, pin drops, button + notes appear
   Sized in cqw (1cqw = 1% of the stage width). Positions follow the owner's reference.
   ========================================================= */
.s5-venue{
  --s5-blue:#1d3f9b;--s5-red:#cd1f24;--s5-gold:#c9892c;
  --s5-serif:"Cormorant Garamond","EB Garamond",Garamond,"Palatino Linotype",Palatino,Georgia,serif;
  position:relative;
  height:182cqw;
  container-type:inline-size;
  overflow:hidden;
  isolation:isolate;
  background:#fdf3de;
}
.s5-frame{position:absolute;inset:0;z-index:0;pointer-events:none}
.s5-frame-tile{position:absolute;inset:0;background:url(../assets/img/s4-frame-tile.webp) 0 41.18cqw / 100cqw auto repeat-y}
.s5-frame-cap{position:absolute;left:0;top:0;width:100%;height:auto}
.s5-mount{position:absolute;left:0;bottom:0;width:100%;height:auto;z-index:1;opacity:.55;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 38%);mask-image:linear-gradient(180deg,transparent 0,#000 38%)}

/* ---- header ---- */
.s5-head{position:absolute;left:0;right:0;top:0;z-index:4;text-align:center;pointer-events:none}
.s5-head>*{position:absolute;left:0;right:0;transform:translateY(-50%);white-space:nowrap}
.s5-head span{display:inline-block}
.s5-shubh{top:7.4cqw;color:var(--s5-red);font-family:var(--s5-serif);font-weight:600;font-size:4.6cqw}
.s5-title{top:16.6cqw;font-family:var(--s5-serif);font-weight:600;font-size:10cqw;line-height:1}
.s5-title span{color:#d9a441;background:linear-gradient(180deg,#e9bd63,#c9892c);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.s5-orn{top:25cqw;height:0}
.s5-orn svg{position:absolute;left:50%;top:0;width:6.8cqw;height:4.3cqw;transform:translate(-50%,-50%)}
.s5-rule{position:absolute;top:0;width:24cqw;height:.3cqw;transform:translateY(-50%)}
.s5-rule-l{left:21cqw;background:linear-gradient(90deg,rgba(201,137,44,0),#c9892c 40%,#c9892c)}
.s5-rule-r{right:21cqw;background:linear-gradient(270deg,rgba(201,137,44,0),#c9892c 40%,#c9892c)}
.s5-name{top:32.4cqw;color:var(--s5-blue);font-family:var(--s5-serif);font-weight:700;font-size:5.6cqw;letter-spacing:.02em;line-height:1}
.s5-addr{top:38.4cqw;color:var(--s5-blue);font-family:var(--s5-serif);font-size:3.6cqw;line-height:1}
.s5-addr span{display:inline-flex;align-items:center;gap:1.6cqw}
.s5-addr svg{width:2.2cqw;height:3cqw;fill:#d4202a;flex:none}
.s5-addr em{font-style:italic;font-weight:600}

/* ---- arch + map ---- */
.s5-arch{position:absolute;left:14cqw;top:41.5cqw;width:72cqw;aspect-ratio:800/992;z-index:2}
.s5-arch-img{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.s5-map{position:absolute;inset:0;z-index:1;display:block;clip-path:url(#s5-clip);will-change:filter,transform,opacity}
.s5-map img{width:100%;height:100%;object-fit:cover}
.s5-pin{position:absolute;left:50%;top:61%;width:0;height:0;z-index:2;pointer-events:none;will-change:transform,opacity}
.s5-pin svg{position:absolute;left:-3.4cqw;top:-10.2cqw;width:6.8cqw;height:9.5cqw;filter:drop-shadow(0 .5cqw .5cqw rgba(90,40,20,.35))}
.s5-ring{position:absolute;left:-5.5cqw;top:-2.1cqw;width:11cqw;height:4.2cqw;border:.3cqw solid rgba(214,50,50,.55);border-radius:50%;animation:s5-pulse 2.4s ease-out infinite}
.s5-ring-2{animation-delay:1.2s}
@keyframes s5-pulse{0%{transform:scale(.3);opacity:.9}100%{transform:scale(1.5);opacity:0}}

/* ---- garlands (origin = hang point so they can swing in) ---- */
.s5-garl{position:absolute;z-index:5;pointer-events:none;will-change:transform,opacity}
.s5-garl img{display:block;width:100%;height:auto}
.s5-garl-l,.s5-garl-r{top:.8cqw;width:25cqw;height:12.5cqw;overflow:hidden}
.s5-garl-l{left:7.5cqw}.s5-garl-l img{width:50cqw;max-width:none}
.s5-garl-r{right:7.5cqw}.s5-garl-r img{width:50cqw;max-width:none;margin-left:-25cqw}
.s5-garl-arch{left:-3cqw;top:12.5cqw;width:78cqw}

/* ---- bells ---- */
.s5-bell{position:absolute;top:43.5cqw;width:8.6cqw;z-index:5;transform-origin:50% 1.2cqw;pointer-events:none;will-change:transform}
.s5-bell img{width:100%;height:auto;transform-origin:50% 1.2cqw;animation:s5-sway 3.4s ease-in-out infinite alternate}
.s5-bell-l{left:15.4cqw}.s5-bell-r{left:76cqw}
.s5-bell-r img{animation-delay:-1.7s}
@keyframes s5-sway{from{transform:rotate(-1.6deg)}to{transform:rotate(1.6deg)}}

/* ---- call to action ---- */
.s5-cta{position:absolute;left:0;right:0;top:136cqw;z-index:4;text-align:center;will-change:transform,opacity}
.s5-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:2.4cqw;
  width:55cqw;height:8.6cqw;border-radius:5cqw;text-decoration:none;color:#fff9e6;
  background:linear-gradient(180deg,#f0bf55 0,#d99a2b 48%,#c4801a 100%);
  border:.35cqw solid #e6b550;
  box-shadow:0 .9cqw 1.8cqw rgba(150,95,20,.35),inset 0 .3cqw .4cqw rgba(255,240,190,.7),inset 0 -.4cqw .6cqw rgba(140,80,10,.35);
  font-family:var(--s5-serif);font-weight:700;font-size:4.5cqw;letter-spacing:.06em;text-shadow:0 .2cqw .3cqw rgba(120,70,10,.5);
}
.s5-btn svg{width:6cqw;height:6cqw;flex:none;filter:drop-shadow(0 .2cqw .3cqw rgba(120,70,10,.4))}
.s5-open{display:flex;align-items:center;justify-content:center;gap:2.4cqw;margin-top:3.4cqw;color:var(--s5-blue);font-family:var(--s5-serif);font-weight:600;font-size:4cqw}
.s5-open i{display:block;width:12cqw;height:.28cqw;background:var(--s5-gold);opacity:.8}
.s5-land{margin-top:2.6cqw;color:var(--s5-blue);font-family:var(--s5-serif);font-style:italic;font-weight:600;font-size:3.3cqw}
@media (prefers-reduced-motion:reduce){.s5-bell img,.s5-ring{animation:none}}
