/* =========================================================
   BFF 2026 — CINEMATIC PROTOTYPE styles
   Builds on the brand tokens in styles.css (:root).
   ========================================================= */

/* styles.css sets body{overflow-x:hidden}, which promotes <body> to a scroll
   container and breaks window scroll / ScrollTrigger / sticky. Use `clip`
   (not a scroll value) so the window stays the single scroller. */
html { overflow-x: clip; }
body.proto { overflow-x: clip; overflow-y: visible; background: var(--bff-cream); }
.proto section { position: relative; }
.eyebrow--ink { color: var(--bff-charcoal); background: rgba(74,192,176,.24); }

/* ---------------- NAV ---------------- */
.pnav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .8rem clamp(16px,4vw,48px);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.pnav.is-stuck {
  background: rgba(249,236,210,.82);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.4);
}
.pnav__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--bff-cream); transition: color .35s; }
.pnav.is-stuck .pnav__brand { color: var(--bff-charcoal); }
.pnav__brand img { height: 30px; width: auto; }
.pnav__word { display: none; }   /* desktop shows icon + wordmark text; wordmark image is mobile-only */
.pnav__brand span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.pnav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.pnav__links a { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--bff-cream); opacity: .9; transition: color .35s; }
.pnav.is-stuck .pnav__links a { color: var(--bff-charcoal); }
.pnav__links a:hover { color: var(--bff-pink); }
.pnav__cta { padding: .6rem 1.1rem; font-size: .92rem; }
@media (max-width: 820px){
  .pnav__links{ display:none; }
  .pnav__brand span{ display:none; }
  .pnav__mark{ display:none; }                 /* hide the small icon on mobile… */
  .pnav__word{ display:block; height:34px; }    /* …show the full BFF wordmark instead */
  .pnav__cta{ margin-left:auto; }
}

/* ---------------- CINEMATIC HERO ---------------- */
.cine { background: var(--bff-charcoal); }
.cine__stage {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: var(--bff-cream);
  /* Live-page proportions. Content runs a touch past the fold so a small scroll
     reveals the partner logos; GSAP then pins the stage and runs the zoom-out. */
  padding: clamp(84px,12vh,120px) 1rem clamp(30px,6vh,54px);
}
.cine__bg { position: absolute; inset: 0; z-index: 0; }
.cine__bg-grad {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 55% at 22% 30%, rgba(74,192,176,.55), transparent 60%),
    radial-gradient(45% 55% at 80% 35%, rgba(230,89,149,.5), transparent 60%),
    radial-gradient(50% 60% at 55% 90%, rgba(242,190,92,.5), transparent 60%),
    linear-gradient(160deg, #3c3e40, #2b2c2e);
  opacity: .38; transform: scale(1.15); transform-origin: center;
  will-change: opacity, transform;
}
.cine__bg-noise { position:absolute; inset:0; opacity:.05; mix-blend-mode:overlay;
  background-image: radial-gradient(rgba(255,255,255,.7) .5px, transparent .5px); background-size: 4px 4px; }

.cine__fg { position: relative; z-index: 2; padding: 0 1.2rem; will-change: transform, opacity; }
.cine__logo { width: min(215px, 42vw); height: auto; margin: 0 auto .65rem; filter: drop-shadow(0 16px 34px rgba(0,0,0,.45)); }
.cine__fg .eyebrow { margin-bottom: .6rem; }
.cine__dates {
  font-family: var(--font-display); font-weight: 700; line-height: .9;
  display: flex; align-items: baseline; justify-content: center; gap: .1em; flex-wrap: wrap; margin: 0;
}
.cine__dates span { font-size: clamp(3.6rem, 15vw, 9rem); background: linear-gradient(180deg,var(--bff-yellow),var(--bff-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cine__dates i { font-style: normal; font-size: clamp(3rem,11vw,7rem); color: var(--bff-teal); }
.cine__dates em { flex-basis: 100%; font-style: normal; font-weight: 600; font-size: clamp(1.4rem,5.2vw,3rem); color: var(--bff-cream); letter-spacing: .02em; }
.cine__place { font-family: var(--font-display); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bff-teal); margin: .3rem 0 .55rem; font-size: clamp(.8rem,1.9vw,1.02rem); }
/* Hero lede — pulled from the live save-the-date page */
.cine__lede { max-width: 42ch; margin: .3rem auto 1rem; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.5; color: rgba(249,236,210,.88); transition: font-size .5s ease; }
.cine__lede strong { color: var(--bff-cream); font-weight: 700; }
.cine__fg .countdown { margin-top: .35rem; padding: .7rem 1.25rem; }
.cine__fg .cd__num { font-size: clamp(1.6rem, 5vw, 2.6rem); }
.cine__fg .cd__label { font-size: .62rem; margin-top: .25rem; }
.cine__fg .cd__sep { font-size: clamp(1.2rem, 3.5vw, 1.9rem); }
.cine__fg .hero__cta { margin-top: .55rem; }
.cine__fg .partners { margin-top: 1.1rem; }
.cine__fg .partner__label { color: rgba(249,236,210,.82); font-size: .74rem; }
.cine__fg .partner__tile img { height: 52px; }
/* Mobile: keep logo · PRESENTED BY | CURATED BY · logo on a single line */
@media (max-width: 600px){
  .cine__fg .partners{ flex-wrap: nowrap; gap: .45rem; }
  .cine__fg .partner__tile{ padding: .3rem .45rem; }
  .cine__fg .partner__tile img{ height: 30px; }
  .cine__fg .partner__label{ font-size: .55rem; letter-spacing: .05em; gap: .4em; }
  .cine__fg .partner__pipe{ height: 22px; width: 2px; }
}
.proto-countdown { background: rgba(249,236,210,.06); border: 1px solid rgba(249,236,210,.16); }
/* Once the countdown ends: it's removed (JS) and the lede grows a little; nothing else changes. */
.countdown-over .cine__lede { max-width: 30ch; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; color: var(--bff-cream); margin-bottom: 1.2rem; }

/* big kinetic words revealed as the hero zooms out */
.cine__reveal {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(.1rem,1vw,.6rem); pointer-events: none;
}
.cine__reveal span {
  font-family: var(--font-display); font-weight: 700; line-height: .92;
  font-size: clamp(2.6rem, 12vw, 9rem); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(249,236,210,.85);
  opacity: 0; transform: translateY(40px);
}
.cine__reveal span:nth-child(2){ color: var(--bff-cream); -webkit-text-stroke: 0; }

/* ---------------- MANIFESTO ---------------- */
.mani { max-width: 1100px; margin: 0 auto; padding: clamp(6rem,16vh,12rem) clamp(20px,5vw,60px); }
.mani__line { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 7vw, 6rem); margin: 0; color: var(--bff-charcoal); }
.mani__line .w { display: inline-block; opacity: .12; transition: opacity .1s; }
.mani__line .hl { color: var(--bff-pink); }
.mani__sub { max-width: 60ch; margin: 2rem 0 0; font-size: clamp(1rem,1.4vw,1.25rem); color: rgba(72,74,76,.75); line-height: 1.6; }

/* ---------------- PILLARS ---------------- */
.pill { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px,5vw,60px) clamp(4rem,10vh,8rem); }
.pill__card { background: #fffdf8; border-radius: 24px; padding: 2rem 1.6rem; box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.pill__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 20%, transparent); margin-bottom: 1rem; }
.pill__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 .5rem; }
.pill__card p { margin: 0; color: rgba(72,74,76,.72); }
@media (max-width: 780px){ .pill{ grid-template-columns:1fr; } }

/* ---------------- HORIZONTAL GALLERY ---------------- */
.gal { background: var(--bff-charcoal); color: var(--bff-cream); }
.gal__pin { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.gal__head { padding: 0 clamp(20px,5vw,60px); }
.gal__head .eyebrow { background: rgba(230,89,149,.9); }
.gal__track { display: flex; gap: clamp(14px,2vw,26px); padding: 0 clamp(20px,5vw,60px); width: max-content; will-change: transform; }
.gal__item { position: relative; flex: 0 0 auto; width: clamp(260px, 34vw, 460px); height: min(62vh, 560px);
  border-radius: 26px; overflow: hidden; margin: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g1), var(--g2)); }
.gal__emoji { font-size: clamp(4rem,10vw,7rem); filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.gal__item figcaption { position: absolute; left: 20px; bottom: 18px; right: 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ---------------- LINEUP ---------------- */
.line { padding: clamp(4rem,10vh,8rem) clamp(20px,5vw,60px) clamp(3rem,8vh,6rem); max-width: 1240px; margin: 0 auto; }
.line__intro { margin-bottom: clamp(2rem,5vh,4rem); }
.line__intro h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,6vw,4rem); line-height: 1.02; margin: .4rem 0 0; }
.day { display: grid; grid-template-columns: 120px 1fr; gap: clamp(1rem,3vw,2.4rem); padding: 1.4rem 0; align-items: start; }
.day__rail { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: flex-start; }
.day__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem,6vw,4rem); line-height: .9; color: var(--bff-charcoal); }
.day__wd { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--bff-pink); }
.day__mon { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(72,74,76,.5); }
.day__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }

.ecard { background: #fffdf8; border-radius: 22px; overflow: hidden; box-shadow: 0 26px 54px -38px rgba(0,0,0,.45); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.ecard:hover { transform: translateY(-6px); box-shadow: 0 34px 64px -34px rgba(0,0,0,.5); }
.ecard__media { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(150deg,var(--g1),var(--g2)); overflow: hidden; }
.ecard__emoji { font-size: clamp(2.6rem,7vw,3.6rem); filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); transition: transform .5s; }
.ecard:hover .ecard__emoji { transform: scale(1.12) rotate(-4deg); }
.ecard__tag { position: absolute; top: 10px; right: 10px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.28); padding: .28rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.ecard__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.ecard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; margin: 0; }
.ecard__meta { font-size: .82rem; color: rgba(72,74,76,.6); margin: 0; }
.ecard__when { font-size: .82rem; color: rgba(72,74,76,.7); margin: .15rem 0 0; }
/* Bottom row: Register (left) + price (right), pinned to the card bottom so
   the buttons line up across every card in a row. */
.ecard__foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: auto; padding-top: .9rem; }
.ecard__btn { align-self: center; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--bff-charcoal); background: var(--bff-yellow); padding: .5rem 1.05rem; border-radius: 999px; transition: transform .2s, box-shadow .2s; white-space: nowrap; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ecard__btn:hover { transform: translateX(3px); box-shadow: 0 10px 22px -12px rgba(242,190,92,.9); }
@media (max-width: 680px){ .day{ grid-template-columns:1fr; } .day__rail{ position: sticky; top: 64px; flex-direction: row; align-items: baseline; gap: .6rem; background: var(--bff-cream); padding: .4rem 0; z-index: 5; } }

/* ---------------- HOW ---------------- */
.how { background: var(--bff-charcoal); color: var(--bff-cream); padding: clamp(4rem,10vh,7rem) clamp(20px,5vw,60px); text-align: center; }
.how .eyebrow { background: rgba(74,192,176,.9); color: var(--bff-charcoal); }
.how__steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; max-width: 1080px; margin: 2rem auto 0; }
.how__step { padding: 1.4rem; }
.how__n { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--bff-pink); }
.how__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: .3rem 0 .4rem; }
.how__step p { margin: 0; color: rgba(249,236,210,.72); }
@media (max-width: 780px){ .how__steps{ grid-template-columns:1fr; } }

/* ---------------- VENUES ---------------- */
.ven { max-width: 1000px; margin: 0 auto; padding: clamp(4rem,10vh,7rem) clamp(20px,5vw,60px); text-align: center; }
.ven__wrap { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.4rem; }
.ven__chip { font-family: var(--font-display); font-weight: 500; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; background: #fffdf8; color: var(--bff-charcoal); box-shadow: 0 10px 24px -18px rgba(0,0,0,.5); }

/* ---------------- CTA BAND ---------------- */
.cta { padding: clamp(4rem,10vh,7rem) clamp(20px,5vw,60px); text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, #55585a, var(--bff-charcoal)); color: var(--bff-cream); }
.cta__inner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,6vw,3.6rem); margin: 0 0 .4em; }
.cta__inner p { color: rgba(249,236,210,.8); margin: 0 auto 1.6rem; max-width: 44ch; }

/* ---------------- reveal base ---------------- */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }

/* ---------------- REAL IMAGES wired in ---------------- */
.cine__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .26; transform: scale(1.15); transform-origin: center; will-change: opacity, transform;
}
.gal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 48%, rgba(0,0,0,.66)); }
.gal__item figcaption { z-index: 1; }

.ecard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ecard:hover .ecard__img { transform: scale(1.06); }
.ecard__soldout { position: absolute; top: 10px; left: 10px; font-size: .62rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--bff-pink);
  padding: .28rem .6rem; border-radius: 999px; }
.ecard--soldout .ecard__img { filter: grayscale(.5) brightness(.72); }
.ecard__price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--bff-pink); line-height: 1; }
.ecard__price.is-tba { font-weight: 600; font-size: 1rem; letter-spacing: .04em; color: rgba(72,74,76,.5); }
.ecard__btn--disabled { background: rgba(72,74,76,.12); color: rgba(72,74,76,.5); cursor: not-allowed; }

/* Single-event day → one wide horizontal feature card (no empty grid space) */
.day--solo .day__cards { grid-template-columns: 1fr; }
.day--solo .ecard { flex-direction: row; align-items: stretch; }
.day--solo .ecard__media { width: 46%; flex: none; aspect-ratio: auto; min-height: 250px; }
.day--solo .ecard__body { flex: 1; justify-content: center; padding: 1.6rem clamp(1.4rem, 3vw, 2.6rem); }
.day--solo .ecard__title { font-size: 1.5rem; }
.day--solo .ecard__meta { font-size: .98rem; }
.day--solo .ecard__foot { margin-top: 1.4rem; }
.day--solo .ecard__price { font-size: 1.8rem; }
@media (max-width: 680px){
  .day--solo .ecard { flex-direction: column; }
  .day--solo .ecard__media { width: 100%; aspect-ratio: 4/3; min-height: 0; }
  .day--solo .ecard__body { justify-content: flex-start; padding: 1rem 1.1rem 1.2rem; }
  .day--solo .ecard__title { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce){
  .reveal, .mani__line .w { opacity: 1 !important; transform: none !important; }
}

/* FLAT mode (?flat) — static, no pinning/scrub, for review screenshots */
body.flat .cine__stage { min-height: 100vh; }
body.flat .cine__fg { opacity: 1 !important; transform: none !important; }
body.flat .cine__bg-grad { opacity: .5; transform: none; }
body.flat .cine__bg-img { opacity: .55; transform: none; }
body.flat .cine__reveal { display: none; }
body.flat .gal__pin { height: auto; padding: clamp(3rem,8vh,6rem) 0; }
body.flat .gal__track { flex-wrap: wrap; width: auto; justify-content: center; }
body.flat .gal__item { width: clamp(240px, 30vw, 360px); height: 320px; }
body.flat .reveal, body.flat .mani__line .w { opacity: 1 !important; transform: none !important; }
body.flat .day__rail { position: static; }

/* ?only=<id> — isolate one section at the top for review screenshots */
body[data-only] .pnav { position: static; }
body[data-only="lineup"] > main > section:not(.line),
body[data-only="gallery"] > main > section:not(.gal),
body[data-only="how"] > main > section:not(.how):not(.ven):not(.cta) { display: none; }
body[data-only="intro"] > main > section:not(.mani):not(.pill) { display: none; }
body[data-only="intro"] .mani { padding-top: clamp(3rem,8vh,5rem); }
body[data-only="gallery"] .gal { background: var(--bff-charcoal); }
