/* ---------- DETAIL SCREENS (per wing / per fest) ---------- */
html.dlock,html.dlock body{overflow:hidden}
/* the panel IS the rounded rectangle that zooms: it starts rounded (like the card) and its
   corners smoothly square off as it fills the screen, then re-round on close — no second rectangle */
.detail{position:fixed;inset:0;z-index:800;background:var(--bg);color:var(--ink);opacity:0;visibility:hidden;transform:scale(.92);border-radius:26px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;transition:opacity .8s ease,transform 1.1s cubic-bezier(.33,1,.68,1),border-radius 1.1s cubic-bezier(.33,1,.68,1),visibility 0s 1.1s}
.detail.open{opacity:1;visibility:visible;transform:scale(1);border-radius:0;transition:opacity .8s ease,transform 1.1s cubic-bezier(.33,1,.68,1),border-radius 1.1s cubic-bezier(.33,1,.68,1),visibility 0s 0s}
/* detail screens share the living background: the overlay goes transparent and the
   page content underneath hides while a detail is open, so the nebula shows through */
html.bgfx .detail{background:transparent}
/* fest detail opens over a solid dark backdrop instead of the living nebula: the panel fades in via
   opacity, so while it's semi-transparent the purple/blue nebula behind would flash through it.
   Hide the nebula and paint the root dark so the open reads as dark-on-dark. */
html.dfest-open{background:#0a0907}
html.dfest-open #bgfx{opacity:0}
html.dlock body>:not(.detail):not(.morph):not(#bgfx):not(.cur){visibility:hidden}
.d-close{position:fixed;top:22px;left:5vw;z-index:20;font-family:'Inter Tight',sans-serif;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#f4ecdb;background:rgba(10,10,12,.45);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35);border-radius:30px;padding:10px 18px;cursor:pointer;opacity:0;transition:opacity .3s,border-color .3s,color .3s}
.detail.open .d-close{opacity:1;transition:opacity .5s .4s,border-color .3s,color .3s}
.d-close:hover{border-color:var(--gold);color:#e4ac6d}
.dhero{position:relative;height:80vh;min-height:520px;overflow:hidden}
/* fest photos are near-fullscreen already, so a full-height hero lets the frame
   expand OUTWARD (grow/open) instead of translating up — which read as "sliding" */
.detail.dfest .dhero{height:100vh;min-height:0}
.dhero img{width:100%;height:100%;object-fit:cover;transform:scale(1.14);transition:transform 1.9s cubic-bezier(.33,1,.68,1)}
.detail.open .dhero img{transform:scale(1)}
.dhero::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,9,7,.92),rgba(10,9,7,.28) 48%,rgba(10,9,7,.22))}
.dhero-ov{position:absolute;left:6vw;right:6vw;bottom:7vh;z-index:2;max-width:980px}
.d-kicker{font-family:'Inter Tight',sans-serif;font-size:12px;letter-spacing:3px;text-transform:uppercase;color:#e7c98a;margin-bottom:16px;display:flex;align-items:center;gap:12px}
.d-kicker::before{content:'';width:28px;height:1px;background:#e7c98a}
.d-title{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:clamp(2.6rem,7vw,5.4rem);line-height:.98;letter-spacing:-.02em;background:var(--goldgrad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;width:max-content;max-width:100%;filter:drop-shadow(0 4px 22px rgba(0,0,0,.5))}
.d-tag{font-family:'Inter Tight',sans-serif;font-weight:300;font-size:clamp(1rem,1.6vw,1.25rem);line-height:1.6;color:#e9e1d2;margin-top:18px;max-width:52ch}
.dhero-ov>*{opacity:0;transition:opacity .8s ease}
.detail.open .dhero-ov>*{opacity:1}
.detail.open .dhero-ov>*:nth-child(1){transition-delay:.55s}
.detail.open .dhero-ov>*:nth-child(2){transition-delay:.7s}
.detail.open .dhero-ov>*:nth-child(3){transition-delay:.85s}
.d-body{max-width:1150px;margin:0 auto;padding:60px 6vw 90px}
.d-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:38px}
.d-chips span{font-family:'Inter Tight',sans-serif;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;border:1px solid var(--line);border-radius:30px;padding:9px 17px;color:var(--muted)}
.d-body p{color:var(--muted);font-weight:300;font-size:1.06rem;line-height:1.85;max-width:70ch;margin-bottom:18px}
.d-body p .em{font-family:'Playfair Display',serif;font-style:italic;background:var(--goldgrad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.d-galhead{font-family:'Inter Tight',sans-serif;font-weight:600;font-size:clamp(1.7rem,3.2vw,2.5rem);letter-spacing:-.01em;margin:46px 0 24px;background:var(--goldgrad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;width:max-content}
.d-gal{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.d-gal img{width:100%;height:100%;object-fit:cover;border-radius:12px;border:1px solid var(--line);aspect-ratio:4/3;display:block;transition:transform .6s cubic-bezier(.16,1,.3,1),filter .4s}
.d-gal img:hover{transform:scale(1.02);filter:brightness(1.08)}
.d-gal img:nth-child(1){grid-column:span 2;aspect-ratio:auto}
.d-note{margin-top:42px;font-family:'Inter Tight',sans-serif;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);border:1px dashed var(--line);border-radius:10px;padding:14px 18px;max-width:max-content}
@media(max-width:760px){.d-gal{grid-template-columns:repeat(2,1fr)}.d-gal img:nth-child(1){grid-column:span 2}.dhero{height:70vh;min-height:420px}}
.slide{cursor:pointer}

/* ---------- immersive fest detail: full-time video/photo bg + scroll-driven glass ---------- */
/* .fstage is a sticky, full-viewport stage (media + glass). Because .detail is BOTH the
   scroll container and a transformed containing block, position:fixed children scroll away —
   so we use position:sticky + margin-bottom:-100vh: the stage pins to the top of the viewport
   and the scenes scroll over it, keeping the video full-screen "full time" */
.fstage{position:sticky;top:0;height:100vh;z-index:0;margin-bottom:-100vh;overflow:hidden;pointer-events:none}
.fbg{position:absolute;inset:0;z-index:0;overflow:hidden;background:#0a0907}
/* seamless readability dim: one even veil over the WHOLE video (no edge, no split) so text
   reads everywhere — sits above the video, below the glass/trail/text */
.fbg::after{content:'';position:absolute;inset:0;z-index:1;background:rgba(8,6,4,.34);pointer-events:none}
.fbg video,.fbg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.1);transition:transform 2.4s cubic-bezier(.33,1,.68,1)}
.detail.open .fbg video,.detail.open .fbg img{transform:scale(1)}

/* veil = blur + dim, painted on a canvas so it's CLEAR at the top and eases on only once you scroll
   into the story. The whole layer is one canvas: the blurred+dimmed media is composited into it and
   the cursor "gas" trail punches soft holes back out, so the wake wipes BOTH the blur AND the dim at
   once — cheaply, with every touched area decaying on its own clock (see detail.js). Its opacity is
   eased in per frame from JS (no CSS transition — that would fight the per-frame updates). */
.dtrail{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none;opacity:0}

/* fest hero = a transparent full-height spacer holding scene 1's text (ref image 1) over the glass */
.dfest-hero{position:relative;z-index:5;background:transparent}
.dfest-hero::after{display:none}
/* scene 1 sits on the clear video, so lean on text-shadow (not a scrim) for legibility */
.dfest-hero .d-kicker,.dfest-hero .d-tag{text-shadow:0 1px 16px rgba(0,0,0,.6)}
.hero-chips{margin-top:26px;margin-bottom:0}
.hero-chips span{color:#e9ddc7;border-color:rgba(255,255,255,.22);background:rgba(10,10,12,.28);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}

/* scene 2 = a lead statement the body copy wraps around: the lead floats on the left, the
   paragraphs run beside it, then reflow to full width once they clear its bottom edge */
.d-textscene{position:relative;z-index:2;max-width:1250px;margin:0 auto;padding:14vh 6vw 5vh}
.d-textscene::after{content:'';display:block;clear:both}
.ts-lead{float:left;width:44%;margin:0 clamp(30px,5vw,80px) 8px 0;
  font-family:'Inter Tight',sans-serif;font-weight:400;color:#efe7d8;
  font-size:clamp(1.7rem,3.3vw,2.9rem);line-height:1.16;letter-spacing:-.01em;text-shadow:0 2px 30px rgba(0,0,0,.55)}
.ts-lead .ts-em{font-family:'Playfair Display',serif;font-style:italic;
  background:var(--goldgrad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.ts-body p{color:#d7d0c4;font-weight:300;font-size:clamp(1rem,1.35vw,1.18rem);line-height:1.8;margin-bottom:20px;text-shadow:0 1px 18px rgba(0,0,0,.5)}
.ts-body p:last-child{margin-bottom:0}
.ts-body p .em{font-family:'Playfair Display',serif;font-style:italic;background:var(--goldgrad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}

/* fest gallery also rides above the glass; the text scene already carries the bottom gap,
   so trim the block's own top padding to keep "Moments" close to the copy above it */
.d-body-fest{position:relative;z-index:2;padding-top:0}

@media(max-width:760px){
  .d-textscene{padding:11vh 6vw}
  .ts-lead{float:none;width:auto;margin:0 0 26px 0}
}

/* "open me" hints on tiles & slides */
.wcard .wopen{position:absolute;top:12px;right:14px;z-index:2;font-family:'Inter Tight',sans-serif;font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:#f4ecdb;background:rgba(10,10,12,.45);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.28);border-radius:20px;padding:5px 11px;opacity:.75;transition:opacity .3s,border-color .3s,color .3s}
.wcard:hover .wopen{opacity:1;border-color:var(--gold);color:#e7c98a}
.s-open{font-family:'Inter Tight',sans-serif;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#e7c98a;margin-top:14px;opacity:0;transition:opacity .5s;transition-delay:.65s}
.slide.active .s-open{opacity:1}
