/* VIP Weddings Films · motion effects (optional layer). Remove fx.css + fx.js to roll back. */

/* 1. Hero video shrinks to the centre while scrolling */
html.fx-on .hero.full{height:175vh;height:175svh;background:var(--ivory)}
html.fx-on .hero.full .frame{position:sticky;top:0;height:100vh;height:100svh;background:var(--ivory);overflow:hidden}
html.fx-on .hero.full .fx-stage{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform,border-radius;overflow:hidden;background:#111 url(hero-poster.webp) center/cover no-repeat}
@media (max-aspect-ratio:1/1) and (max-width:900px){html.fx-on .hero.full .fx-stage{background-image:url(hero-poster-mobile.webp)}}
html.fx-on .hero.full .fx-stage video{width:100%;height:100%;object-fit:cover}
html.fx-on .hero.full .scroll{transition:opacity .3s}
html.fx-on .hero.full+.hero .title{padding-top:clamp(40px,6vw,72px)}

/* 3. Numbers count up: no style needed beyond tabular figures */
.stats b,.vfacts b{font-variant-numeric:tabular-nums}

/* 4. Photos reveal like a curtain */
html.fx-on .fx-reveal{clip-path:inset(100% 0 0 0);transition:clip-path 1.3s cubic-bezier(.65,0,.25,1)}
html.fx-on .fx-reveal img{transform:scale(1.08);transition:transform 1.8s cubic-bezier(.2,.7,.2,1)}
html.fx-on .fx-reveal.fx-in{clip-path:inset(0 0 0 0)}
html.fx-on .fx-reveal.fx-in img{transform:scale(1)}

/* 5. Reading progress line (new element, fixed, transform only) */
.fx-progress{position:fixed;left:0;right:0;top:0;height:2px;z-index:130;pointer-events:none;background:#fff;mix-blend-mode:difference;transform:scaleX(0);transform-origin:0 50%;will-change:transform}

/* 6. Headline lines rise out of a mask (h1 only; content is visible until JS prepares it) */
html.fx-on .fx-ln{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
html.fx-on .fx-ln>span{display:block;transform:translate3d(0,112%,0);transition:transform 1.25s cubic-bezier(.16,1,.3,1);will-change:transform}
html.fx-on .fx-ln:nth-child(2)>span{transition-delay:.1s}
html.fx-on .fx-ln:nth-child(3)>span{transition-delay:.2s}
html.fx-on .fx-lines-in .fx-ln>span{transform:none}

/* 7. Thin rules draw themselves (separate element from the text that fades in) */
html.fx-on .fx-rule{transform:scaleX(0);transform-origin:50% 50%;transition:transform 1.2s cubic-bezier(.65,0,.25,1) .25s}
html.fx-on .split .txt .fx-rule{transform-origin:0 50%}
html.fx-on .fx-rule.fx-in{transform:scaleX(1)}

/* 8. Staggered entrance for sibling cards that already use .rv (delay only, same fade) */

/* 9. Cursor label over films (mouse only) */
.fx-cursor{position:fixed;left:0;top:0;z-index:140;pointer-events:none;width:84px;height:84px;margin:-42px 0 0 -42px;will-change:transform}
.fx-cursor span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:var(--ivory);color:var(--ink);font-size:10px;font-weight:500;letter-spacing:.28em;text-transform:uppercase;box-shadow:0 10px 40px rgba(0,0,0,.18);opacity:0;transform:scale(.4);transition:opacity .25s,transform .45s cubic-bezier(.2,.7,.2,1)}
.fx-cursor.on span{opacity:1;transform:scale(1)}
html.fx-cur [data-vimeo]{cursor:none}
@media (hover:none),(pointer:coarse){.fx-cursor{display:none}}

/* ============ 10. Smooth scroll (Lenis) ============ */
html.lenis,html.lenis body{height:auto}
html.lenis.lenis-smooth{scroll-behavior:auto!important}
html.lenis.lenis-stopped{overflow:hidden}

/* ============ 11. Footer is uncovered by the page (only when the footer fits one screen) ============ */
html.fx-foot .foot{position:fixed;left:0;right:0;bottom:0;z-index:0}
html.fx-foot main{position:relative;z-index:1;background:var(--ivory);box-shadow:0 30px 80px rgba(0,0,0,.12)}

/* ============ 12. Home: Selected Work becomes a horizontal film strip driven by the vertical scroll ============ */
html.fx-on #films.fx-h{padding:0;height:100vh;height:100svh;overflow:hidden;display:flex;align-items:center}
html.fx-on #films.fx-h>.wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(28px,5vw,80px);width:max-content;max-width:none;margin:0;padding-inline:var(--gut);will-change:transform}
html.fx-on #films.fx-h .shead{flex:none;width:min(82vw,440px);text-align:left;margin:0}
html.fx-on #films.fx-h .shead h2{font-size:clamp(46px,7vw,110px);line-height:.95}
html.fx-on #films.fx-h .feature{flex:none;width:min(80vw,calc(100svh * 1.05));margin:0}
html.fx-on #films.fx-h .trio.duo{display:flex;flex:none;flex-wrap:nowrap;gap:inherit;margin:0}
html.fx-on #films.fx-h .fcard{flex:none;width:min(74vw,calc(100svh * .8));margin:0}
html.fx-on #films.fx-h .trio.duo .ph,html.fx-on #films.fx-h .feature .ph{aspect-ratio:16/9}
html.fx-on #films.fx-h .ctas{flex:none;width:min(80vw,380px);flex-direction:column;align-items:flex-start;gap:26px;margin:0}
html.fx-on #films.fx-h .ph{overflow:hidden}
html.fx-on #films.fx-h .ph img{scale:1.14}

/* legibility of the transparent menu over a bright hero video (white text on white tent) */
.nav.over:not(.solid)::before{content:"";position:absolute;left:0;right:0;top:0;height:170%;background:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,.22) 55%,rgba(0,0,0,0));pointer-events:none;z-index:-1}
.nav.over:not(.solid) .l a,.nav.over:not(.solid) .r a,.nav.over:not(.solid) .menu{text-shadow:0 1px 8px rgba(0,0,0,.55)}

/* ---- manifesto: own word layer + pin ---- */
.manifesto .fw{color:#d3cdc4;transition:color .5s}
.manifesto .fw.on{color:var(--ink)}


/* ---- collections: stacked cards ---- */
html.fx-on .fx-cstack{display:block;border:0}
html.fx-on .fx-cstack>.fx-card{position:sticky;top:calc(88px + var(--i,0) * 16px);display:grid;grid-template-columns:1fr 1fr;min-height:min(66vh,600px);min-height:min(66svh,600px);margin:0 0 clamp(24px,5vw,56px);padding:0;text-align:left;background:var(--ivory);border:1px solid var(--rule);transform-origin:50% 0;will-change:transform}
html.fx-on .fx-cstack>.fx-card+.fx-card{border-left:1px solid var(--rule);border-top:1px solid var(--rule)}
html.fx-on .fx-cstack>.fx-card:nth-child(even){background:#fff}
html.fx-on .fx-card::after{content:"";position:absolute;inset:0;background:var(--ink);opacity:var(--dim,0);pointer-events:none;z-index:3}
html.fx-on .fx-card.fx-open{position:relative;top:auto}
html.fx-on .fx-tx{padding:clamp(26px,3.6vw,56px);display:flex;flex-direction:column;min-width:0}
html.fx-on .fx-no{font-family:var(--serif);font-style:italic;color:var(--muted);font-size:15px;letter-spacing:.14em}
html.fx-on .fx-card h3{font-family:var(--serif);font-weight:400;text-transform:none;letter-spacing:-.015em;font-size:clamp(28px,3.4vw,50px);line-height:1.04;margin-top:10px;min-height:0}
html.fx-on .fx-card q{min-height:0}
html.fx-on .fx-card details{margin-top:auto}
html.fx-on .fx-im{position:relative;overflow:hidden;min-height:260px}
html.fx-on .fx-im img{position:absolute;left:0;top:-8%;width:100%;height:116%;object-fit:cover;will-change:transform}
@media (max-width:820px){
  html.fx-on .fx-cstack>.fx-card{grid-template-columns:1fr;min-height:0;top:calc(72px + var(--i,0) * 12px)}
  html.fx-on .fx-im{order:-1;min-height:0;height:22vh;height:22svh}
  html.fx-on .fx-tx{padding:20px 20px 22px}
  html.fx-on .fx-card h3{font-size:26px}
}

/* ---- opening: ivory curtain with the name, then lifts (CSS only, never blocks without it) ---- */
@media (prefers-reduced-motion:no-preference){
  body:has(#hero.full)::before{content:"VIP Weddings Films";position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:#fbfaf7;color:#1b1a18;font:400 clamp(22px,3.4vw,34px)/1 'Playfair Display',Georgia,serif;letter-spacing:.02em;pointer-events:none;animation:fxboot 1.7s cubic-bezier(.65,0,.25,1) forwards}
}
@keyframes fxboot{0%,55%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}

/* ---- hero starts below the always-visible menu ---- */
html.fx-on .hero.full{padding-top:var(--fxnav,73px);box-sizing:border-box}
html.fx-on .hero.full .frame{top:var(--fxnav,73px);height:calc(100vh - var(--fxnav,73px));height:calc(100svh - var(--fxnav,73px))}

/* ---- chapters (Our approach, About us): full-height photo, edge to edge ---- */
html.fx-on .fx-ch{padding:0;height:100vh;height:100svh;overflow:hidden;position:relative}
html.fx-on .fx-ch>.wrap.split{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;max-width:var(--w);margin:0 auto;padding:0;display:block}
html.fx-on .fx-ch .media{position:absolute;top:0;bottom:0;right:var(--gut);left:auto;width:calc((100% - 2 * var(--gut)) * .52);margin:0;z-index:0}
html.fx-on .fx-ch .split.rev .media,html.fx-on .fx-ch .wrap.rev .media{right:auto;left:var(--gut)}
html.fx-on .fx-ch .media::after{display:none}
html.fx-on .fx-ch .media img{position:absolute;inset:-6% 0;width:100%;height:112%;aspect-ratio:auto;object-fit:cover;will-change:transform}
html.fx-on .fx-ch .media .venue-cap{position:absolute;left:18px;bottom:20px;margin:0;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.6);z-index:2}
html.fx-on .fx-ch .txt{position:absolute;top:0;bottom:0;left:var(--gut);width:calc((100% - 2 * var(--gut)) * .48);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:92px clamp(32px,5vw,80px) 72px 0;box-sizing:border-box}
html.fx-on .fx-ch .wrap.rev .txt,html.fx-on .fx-ch .split.rev .txt{left:auto;right:var(--gut);padding:92px 0 72px clamp(32px,5vw,80px)}

/* ---- tighter white space between home sections ---- */
html.fx-on body:has(#hero.full) .pad:not(.fx-ch):not(.fx-mpin):not(#films){padding-block:clamp(48px,6vw,84px)}
html.fx-on body:has(#hero.full) #intro{padding-bottom:clamp(24px,3vw,44px)}
html.fx-on .fx-cstack>.fx-card:last-child{margin-bottom:26vh;margin-bottom:26svh}
html.fx-on .fx-cstack~.sdebox,html.fx-on #collections .sdebox{margin-top:0}
@media (max-width:820px){html.fx-on .fx-cstack>.fx-card:last-child{margin-bottom:18svh}}

/* ---- menu: always present, white background ---- */
.nav,.nav.over,.nav.over.solid{background:#fff;color:var(--ink);border-bottom:1px solid var(--rule);backdrop-filter:none;-webkit-backdrop-filter:none}
.nav.over .logo img{filter:invert(1)}
.nav.over .r .enq{border-color:var(--ink)}
.nav.over .r .enq:hover{background:var(--ink);color:var(--ivory)}
.nav.over:not(.solid)::before{display:none}
.nav.over:not(.solid) .l a,.nav.over:not(.solid) .r a,.nav.over:not(.solid) .menu{text-shadow:none}

/* ---- Who we are: pinned full screen, content centred ---- */
html.fx-on #manifesto.fx-mpin{min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;padding-block:0}
html.fx-on #manifesto.fx-mpin>.wrap{width:100%}

/* looping film thumbnails follow the same photo effects as images */
html.fx-on .fx-reveal .tv{transform:scale(1.08);transition:transform 1.8s cubic-bezier(.2,.7,.2,1)}
html.fx-on .fx-reveal.fx-in .tv{transform:scale(1)}
html.fx-on #films.fx-h .ph .tv{scale:1.14}

/* the play symbol itself now appears on hover, so the cursor label is not needed */
.fx-cursor{display:none!important}
html.fx-cur [data-vimeo]{cursor:pointer}

/* Films appear with a slight zoom in (no sideways or curtain motion) */
html.fx-on .fx-zoom{opacity:0;transition:opacity 1.1s ease}
html.fx-on .fx-zoom.fx-in{opacity:1}
html.fx-on .fx-zoom img,html.fx-on .fx-zoom .tv{scale:1.12;transition:scale 1.8s cubic-bezier(.2,.7,.2,1)}
html.fx-on .fx-zoom.fx-in img,html.fx-on .fx-zoom.fx-in .tv{scale:1}
.vgrid .vslides{overflow:hidden}
@media (prefers-reduced-motion:reduce){html.fx-on .fx-zoom,html.fx-on .fx-zoom img,html.fx-on .fx-zoom .tv{opacity:1;scale:1;transition:none}}
