/* =========================================================
   OPTIMO — Cinematic homepage layer (.cx-*)
   Full-screen promo video hero, gold stats band,
   giant gold marquee, film lightbox, confetti.
   ========================================================= */
.cx-hero { --p: 0; background: var(--ivory, #FBF8F2); }
.cx-stage {
  position: relative; overflow: hidden; isolation: isolate;
  height: min(90svh, 920px); min-height: 620px; background: #0d0b08;
  clip-path: inset(calc(var(--p) * 22px) calc(var(--p) * 28px) round calc(var(--p) * 36px));
  will-change: clip-path;
}
.cx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.04 + var(--p) * .08)); filter: saturate(1.08) contrast(1.04); }
.cx-shade { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,10,6,.82) 0%, rgba(12,10,6,.55) 38%, rgba(12,10,6,.12) 72%, rgba(12,10,6,.05) 100%),
    linear-gradient(0deg, rgba(12,10,6,.7) 0%, rgba(12,10,6,0) 40%); }
.cx-sweep { position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(110deg, transparent 44%, rgba(241,217,143,.28) 49%, rgba(255,246,214,.45) 50%, rgba(241,217,143,.28) 51%, transparent 56%);
  animation: cxSweep 7.5s ease-in-out 1.6s infinite; transform: translateX(-60%); }
@keyframes cxSweep { 0% { transform: translateX(-60%); } 45%, 100% { transform: translateX(60%); } }
.cx-spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(241,217,143,.3), transparent 60%); }
.cx-stage:hover .cx-spot { opacity: 1; }

/* Letterbox curtain that opens on load */
.cx-bars span { position: absolute; left: 0; right: 0; height: 50%; z-index: 5; background: #0d0b08; animation: cxCurtain 1.4s cubic-bezier(.77,0,.18,1) .2s forwards; }
.cx-bars span:first-child { top: 0; }
.cx-bars span:last-child { bottom: 0; animation-name: cxCurtainB; }
.cx-bars span::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold-line); }
.cx-bars span:first-child::after { bottom: 0; }
.cx-bars span:last-child::after { top: 0; }
@keyframes cxCurtain  { to { transform: translateY(-100%); } }
@keyframes cxCurtainB { to { transform: translateY(100%); } }

.cx-content { position: absolute; z-index: 3; left: 0; bottom: 0; width: 100%; max-width: 880px;
  padding: 0 clamp(20px, 6vw, 88px) clamp(56px, 9vh, 96px); color: #fff; }
.cx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(241,217,143,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .86rem; color: rgba(255,255,255,.92); opacity: 0; animation: cxUp .9s ease 1.2s forwards; }
.cx-kicker b { background: var(--gold-metal); background-size: 200% 100%; color: #17140F; border-radius: 999px; padding: 3px 11px; font-size: .76rem; font-weight: 650; }
.cx-title { font-family: var(--font-display, Georgia, serif); font-weight: 500; color: #fff !important;
  font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -.03em; margin: 22px 0; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.cx-title em { font-style: italic; background: var(--gold-metal); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lxGoldFlow 6s ease-in-out infinite alternate; text-shadow: none; filter: drop-shadow(0 2px 18px rgba(241,217,143,.35)); }
.cx-sub { color: rgba(255,255,255,.86) !important; font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 560px; line-height: 1.7;
  opacity: 0; animation: cxUp .9s ease 1.7s forwards; }
.cx-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; opacity: 0; animation: cxUp .9s ease 1.95s forwards; }
.cx-btns .btn { padding: 16px 30px; font-size: .95rem; }
.cx-film-btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff; font: 600 .95rem var(--font-b, sans-serif);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, border-color .3s; }
.cx-film-btn:hover { background: rgba(255,255,255,.18); border-color: #F1D98F; }
.cx-play { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-metal); background-size: 200% 100%; display: grid; place-items: center; animation: lxPulse 2.4s ease-out infinite; }
.cx-play::after { content: ''; border-left: 12px solid #17140F; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.cx-proof { display: flex; gap: 12px; align-items: center; margin-top: 28px; color: rgba(255,255,255,.8); font-size: .92rem;
  opacity: 0; animation: cxUp .9s ease 2.2s forwards; }
.cx-proof strong { color: #fff; }
@keyframes cxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cx-sound { position: absolute; z-index: 4; right: clamp(16px, 3vw, 40px); bottom: clamp(20px, 4vh, 40px);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(12,10,6,.45); border: 1px solid rgba(241,217,143,.5); color: #F1D98F; font: 600 .82rem var(--font-b, sans-serif);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cx-sound svg { width: 18px; height: 18px; }
.cx-sound .cx-wave { display: none; }
.cx-sound[aria-pressed="true"] .cx-wave { display: inline; }
.cx-sound[aria-pressed="true"] .cx-x { display: none; }
.cx-scroll { position: absolute; z-index: 4; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(241,217,143,.7); }
.cx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #F1D98F; animation: cxWheel 1.8s ease-in-out infinite; }
@keyframes cxWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Gold metallic stats band */
.cx-stats { position: relative; overflow: hidden; background: var(--gold-metal); background-size: 200% 100%; animation: lxGoldFlow 10s ease-in-out infinite alternate; }
.cx-stats::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-100%); animation: cxSheen 6s ease-in-out 2s infinite; pointer-events: none; }
@keyframes cxSheen { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
.cx-stats-inner { max-width: 1240px; margin: 0 auto; padding: 44px 28px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.cx-stat { text-align: center; padding: 0 12px; }
.cx-stat + .cx-stat { border-left: 1px solid rgba(23,20,15,.2); }
.cx-stat .stat-num { display: block; font-family: var(--font-display, Georgia, serif); font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: #17140F; }
.cx-stat-label { display: block; margin-top: 8px; font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: rgba(23,20,15,.75); }

/* Film lightbox */
.cx-film { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 24px; background: rgba(12,10,6,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cx-film[hidden] { display: none; }
.cx-film video { width: min(1100px, 100%); max-height: 80vh; border-radius: 18px; box-shadow: 0 0 0 1px rgba(241,217,143,.5), 0 30px 90px rgba(0,0,0,.6); background: #000; }
.cx-film-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(241,217,143,.6); background: transparent; color: #F1D98F; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Giant gold marquee of occasions */
.cx-marquee { padding: 56px 0; overflow: hidden; background: var(--paper, #fff); border-block: 1px solid var(--line, #E8E0D0); }
.cx-marquee-row { display: flex; width: max-content; gap: 44px; align-items: center; white-space: nowrap; animation: cxMarq 40s linear infinite; }
.cx-marquee-row + .cx-marquee-row { margin-top: 8px; animation-direction: reverse; animation-duration: 46s; }
.cx-marquee-row span { font-family: var(--font-display, Georgia, serif); font-size: clamp(3rem, 8vw, 7rem); line-height: 1.08; letter-spacing: -.02em; }
.cx-marquee-row span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1.2px #C99A2E; }
.cx-marquee-row span:nth-of-type(even) { font-style: italic; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cx-marquee-row i { font-style: normal; color: #D8B04F; font-size: clamp(1.4rem, 3vw, 2.4rem); }
@keyframes cxMarq { to { transform: translateX(-50%); } }

/* Gold confetti burst */
.cx-confetti { position: fixed; pointer-events: none; z-index: 11000; width: 8px; height: 14px; border-radius: 2px;
  background: var(--gold-metal); background-size: 200% 100%; animation: cxConf 1.6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes cxConf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

@media (max-width: 640px) {
  .cx-stage { height: 88svh; min-height: 560px; }
  .cx-shade { background: linear-gradient(0deg, rgba(12,10,6,.9) 0%, rgba(12,10,6,.6) 55%, rgba(12,10,6,.25) 100%); }
  .cx-content { padding-bottom: 84px; }
  .cx-btns .btn { width: 100%; text-align: center; }
  .cx-sound span { display: none; }
  .cx-scroll { display: none; }
  .cx-stats-inner { grid-template-columns: 1fr 1fr; row-gap: 28px; padding: 36px 18px; }
  .cx-stat:nth-child(3) { border-left: 0; }
  .cx-marquee { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-kicker, .cx-sub, .cx-btns, .cx-proof { opacity: 1; }
  .cx-bars { display: none; }
  .cx-stage { clip-path: none; }
}
.cx-stage .lx-sparkles { z-index: 2; }
@media (max-width: 640px) {
  .cx-stage { height: auto; min-height: 88svh; display: flex; align-items: flex-end; }
  .cx-content { position: relative; padding-top: 110px; }
  .cx-title { font-size: clamp(2.3rem, 10.5vw, 2.9rem); margin: 18px 0 16px; }
  .cx-sub { font-size: .98rem; }
  .cx-btns { margin-top: 22px; gap: 10px; }
}

/* ── Artist page cinematic hero (.ax-*) ── */
.ax-hero { isolation: isolate; }
.ax-hero .cx-sweep, .ax-hero .cx-spot, .ax-hero .lx-sparkles { z-index: 1; }
.ax-hero .ap2-hero-content { z-index: 3; }
.ax-hero:hover .cx-spot { opacity: 1; }
.ax-hero .cx-bars span { animation-duration: 1.1s; animation-delay: 1.2s; }
.ax-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-hero .ap2-title { text-shadow: 0 2px 30px rgba(0,0,0,.35), 0 0 40px rgba(241,217,143,.25); }
.ax-hero .ap2-title::after { content: ''; display: block; width: 90px; height: 2px; margin-top: 16px; background: var(--gold-metal); background-size: 200% 100%; animation: lxGoldFlow 5s ease-in-out infinite alternate; }
.ax-hero .ap2-tagline { color: #F1D98F !important; }
.ax-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; opacity: 0; animation: cxUp .9s ease 2.3s forwards; }
.ax-hero-cta .btn { padding: 15px 28px; font-size: .95rem; }
.ax-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff !important; font-weight: 600; font-size: .95rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, border-color .3s; }
.ax-ghost:hover { background: rgba(255,255,255,.18); border-color: #F1D98F; }
.ax-hero-meta { margin-top: 18px; color: rgba(255,255,255,.8) !important; font-size: .9rem; opacity: 0; animation: cxUp .9s ease 2.5s forwards; }
@media (max-width: 640px) { .ax-hero-cta .btn, .ax-ghost { width: 100%; justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .ax-hero-cta, .ax-hero-meta { opacity: 1; } }

/* ── "Check your date" bar floating over the bottom of the video ── */
.cx-datebar {
  position: relative; z-index: 6; max-width: 1180px; margin: -54px auto 36px; padding: 18px 18px 18px 26px;
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr auto; gap: 14px; align-items: end;
  background: rgba(255,255,255,.96); border-radius: 22px;
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--gold-metal) border-box;
  box-shadow: 0 24px 60px rgba(23,20,15,.18), 0 0 0 6px rgba(241,217,143,.18);
}
.cx-db-title { display: flex; flex-direction: column; justify-content: center; align-self: center; }
.cx-db-title strong { font-family: var(--font-display, Georgia, serif); font-weight: 500; font-size: 1.45rem; line-height: 1.1; color: #17140F; }
.cx-db-title span { font-size: .8rem; color: var(--stone, #6E675B); margin-top: 4px; }
.cx-db-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-db-field > span { font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink, #8A650C); }
.cx-db-field input, .cx-db-field select {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2, #D9CEB8);
  background: var(--ivory, #FBF8F2); font: 500 .95rem var(--font-b, sans-serif); color: #17140F;
}
.cx-db-field input:focus, .cx-db-field select:focus { outline: none; border-color: #C99A2E; box-shadow: 0 0 0 3px rgba(241,217,143,.4); }
.cx-db-go { height: 48px; padding: 0 24px !important; white-space: nowrap; }
@media (max-width: 1000px) {
  .cx-datebar { grid-template-columns: 1fr 1fr; margin: -40px 16px 28px; padding: 18px; }
  .cx-db-title { grid-column: 1 / -1; }
  .cx-db-go { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cx-datebar { grid-template-columns: 1fr; margin-top: -28px; }
}

/* Featured "Watch live" video on artist pages */
.ax-film .ax-film-frame { max-width: 1100px; margin: 0 auto; border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1.5px rgba(201,154,46,.6), 0 30px 80px rgba(23,20,15,.18); }
.ax-film .ax-film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ax-play { border: 0; padding: 0; width: 100%; height: 100%; position: absolute; inset: 0; cursor: pointer; font: inherit; background-size: cover; background-position: center; }
.ax-film .video-placeholder-play { background: var(--gold-metal) !important; }

/* Tighter vertical rhythm on artist pages: no oversized empty bands */
body .ap2-cta { padding: clamp(56px, 8vh, 96px) 0 !important; }
body .ap2-gallery { padding-top: clamp(56px, 8vh, 96px); padding-bottom: clamp(56px, 8vh, 96px); }
body .ap2-event-cards { padding: clamp(52px, 7vh, 84px) 0; }
body .ap2-band { padding: clamp(56px, 8vh, 90px) 0; }
body .ap2-reviews { padding: clamp(56px, 8vh, 90px) 0 48px; }

/* ── Speakeasy Blues Jam (events page + homepage strip) ── */
.jam { background: var(--ivory, #FBF8F2); }
.jam-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.jam-flyer { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(201,154,46,.6), 0 30px 80px rgba(23,20,15,.22); transition: transform .5s; }
.jam-flyer:hover { transform: translateY(-4px) rotate(-.4deg); }
.jam-flyer img { width: 100%; height: auto; display: block; }
.jam-facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.jam-facts li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #E8E0D0); font-size: .98rem; }
.jam-facts span { font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink, #8A650C); padding-top: 3px; }
.jam-facts b { font-weight: 600; color: #17140F; }
.jam-facts a { text-decoration: underline; text-underline-offset: 3px; }
.jam-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.jam-strip-wrap { padding: 24px 0 0; }
.jam-strip { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 14px 24px 14px 14px; border-radius: 22px; background: #17140F; color: #fff;
  box-shadow: 0 0 0 1.5px rgba(201,154,46,.6), 0 20px 50px rgba(23,20,15,.2); transition: transform .4s; }
.jam-strip:hover { transform: translateY(-3px); }
.jam-strip img { width: 220px; height: 130px; object-fit: cover; border-radius: 14px; }
.jam-strip-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jam-strip-text strong { font-family: var(--font-display, Georgia, serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #fff; line-height: 1.15; }
.jam-strip-text span:last-child { color: rgba(255,255,255,.75); font-size: .95rem; }
.jam-strip .lx-eyebrow { color: #E2BC5A; }
@media (max-width: 900px) { .jam-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .jam-strip { grid-template-columns: 1fr; padding: 14px; }
  .jam-strip img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .jam-strip .lx-occ-go { display: none; }
}
