/* ===== SECTION 6 : VENUE =====
   Cream paper with carved temple pillars either side, a marigold garland, and a map framed in a temple arch.
   Canvas = fixed box width:--W, height:1672u. --u = 1 reference pixel (the client's 941px-wide screenshot). */
.venue{
  --u:calc(var(--W)/941);
  --gold:#a97a1c; --maroon:#5b1a1f;
  position:relative;z-index:1;width:100%;height:calc(var(--u)*1590);margin-top:calc(var(--u)*-190);overflow:hidden;text-align:center;
  font-family:var(--font-serif);color:var(--gold);background:transparent}
.venue *{box-sizing:border-box}
/* Venue overlaps the end of Events (margin-top:-190u) and sits above it, so it must not catch clicks meant for the Reception MAP button underneath. Only its own button is clickable. */
.venue{pointer-events:none}
.venue__btn{pointer-events:auto}
.venue > *{position:absolute}
.venue img{max-width:none;height:auto}

.venue__mark{left:calc(var(--u)*361);top:calc(var(--u)*125);width:calc(var(--u)*220);opacity:.1;filter:grayscale(.5) sepia(.6);pointer-events:none;will-change:transform}

.venue__title{left:calc(var(--u)*215);top:calc(var(--u)*268);width:calc(var(--u)*520)}
.venue__div{left:calc(var(--u)*170);top:calc(var(--u)*402);width:calc(var(--u)*602)}

/* one text row: zero-height flex box centred on its reference y (--cy), so the text can grow either way */
.venue__row{margin:0;left:0;width:100%;top:calc(var(--u)*var(--cy));height:0;display:flex;align-items:center;justify-content:center}
.venue__row .fit{display:inline-block;white-space:nowrap;transform-origin:50% 50%;font-size:calc(var(--u)*var(--fs))}
.venue__name{font-weight:700;letter-spacing:.045em;text-transform:uppercase;color:var(--gold)}
.venue__addr{font-style:italic;color:var(--maroon);font-weight:500}

.venue__arch{left:calc(var(--u)*100);top:calc(var(--u)*608);width:calc(var(--u)*748);height:calc(var(--u)*744)}
.venue__map{position:absolute;left:0;top:0;width:100%;filter:drop-shadow(0 calc(var(--u)*7) calc(var(--u)*11) rgba(120,60,40,.28))}
.venue__glow{position:absolute;left:calc(var(--u)*283);top:calc(var(--u)*345);width:calc(var(--u)*170);height:calc(var(--u)*170);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,226,120,.75),rgba(255,226,120,0));animation:ven-glow 2.8s ease-in-out infinite;pointer-events:none}
/* ripples under the pin (pin tip = open centre of the new map, arch coords 368,474 → ripple centre 368,488) */
.venue__ripple{position:absolute;left:calc(var(--u)*(368 - 55));top:calc(var(--u)*(488 - 17));width:calc(var(--u)*110);height:calc(var(--u)*34);border-radius:50%;
  border:calc(var(--u)*2.5) solid rgba(214,163,40,.9);opacity:0;pointer-events:none}
.venue__pin{position:absolute;left:calc(var(--u)*323);top:calc(var(--u)*341);width:calc(var(--u)*90);transform-origin:50% 100%;will-change:transform;
  filter:drop-shadow(0 calc(var(--u)*4) calc(var(--u)*5) rgba(90,50,0,.35))}

.venue__btn{left:calc(var(--u)*165);top:calc(var(--u)*1398);width:calc(var(--u)*612);display:block;-webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 calc(var(--u)*5) calc(var(--u)*7) rgba(80,20,20,.3));animation:ven-btn 3s ease-in-out infinite;transition:transform .15s ease}
.venue__btn img{width:100%}
.venue__btn:active{transform:scale(.97)}

/* ---- motion (only when JS is on; content is visible without it) ---- */
.js .venue [data-r]{opacity:0;transform:translateY(calc(var(--u)*26));transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0)*.13s)}
.js .venue.is-in [data-r]{opacity:1;transform:none}
.js .venue .venue__div{clip-path:inset(0 50% 0 50%);opacity:1;transform:none;transition:clip-path 1.1s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0)*.13s)}
.js .venue.is-in .venue__div{clip-path:inset(0 0 0 0)}
.js .venue .venue__arch{opacity:0;transform:translateY(calc(var(--u)*60)) scale(.95);transition:opacity .9s ease .55s,transform 1.1s cubic-bezier(.2,.7,.2,1) .55s}
.js .venue.is-in .venue__arch{opacity:1;transform:none}
.js .venue .venue__pin{opacity:0}
.js .venue.is-in .venue__pin{animation:ven-drop 1s cubic-bezier(.3,0,.4,1) 1.25s both,ven-bob 2.6s ease-in-out 2.4s infinite}
.js .venue.is-in .venue__ripple{animation:ven-ripple 2.4s ease-out 2.1s infinite}
.js .venue.is-in .venue__ripple--b{animation-delay:3.3s}

@keyframes ven-glow{0%,100%{opacity:.55;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
@keyframes ven-ripple{0%{opacity:.95;transform:scale(.35)}100%{opacity:0;transform:scale(1.5)}}
@keyframes ven-drop{
  0%{opacity:0;transform:translateY(calc(var(--u)*-230))}
  15%{opacity:1}
  55%{transform:translateY(0)}
  72%{transform:translateY(calc(var(--u)*-26))}
  88%{transform:translateY(0)}
  95%{transform:translateY(calc(var(--u)*-7))}
  100%{opacity:1;transform:translateY(0)}}
@keyframes ven-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(var(--u)*-9))}}
@keyframes ven-btn{0%,100%{filter:drop-shadow(0 calc(var(--u)*5) calc(var(--u)*7) rgba(80,20,20,.3))}50%{filter:drop-shadow(0 0 calc(var(--u)*14) rgba(235,185,70,.85))}}
@media (prefers-reduced-motion:reduce){
  .js .venue [data-r],.js .venue .venue__arch,.js .venue .venue__pin{opacity:1;transform:none;clip-path:none;animation:none}
  .venue__glow,.venue__btn{animation:none}
}

/* ===== DOORWAY: Events + Venue share one pinned pillar/garland frame (the frame itself lives in css/events.css) ===== */
.doorway{--u:calc(var(--W)/941);position:relative;background:#fbeccd}
.doorway .events{background:radial-gradient(90% 30% at 50% 22%,#fff7e3 0%,rgba(255,247,227,0) 70%)}
/* the pinned frame keeps its real height here (instead of the zero-height trick), so it stops at the bottom of the doorway
   and scrolls away together with the Venue - its pillar bases land exactly at the end of the section */
.doorway > .events__frame{margin-bottom:0}
.doorway > .events{margin-top:-100vh;margin-top:-100lvh}   /* = the frame's height (largest phone viewport, so no blank gap when the browser bar hides) */
