/* ===== Hero bottom bar: Scroll (left) | stage title with flanking rules (centre) | play/pause + stage dots (right) ===== */
.hbar {
  --barh: 84px;
  position: relative; z-index: 6;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(0.75rem, 2.4vw, 2.25rem);
  min-height: var(--barh);
  padding: 0 clamp(1.25rem, 5vw, 6rem);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.9), var(--black) 40%);
  border-top: 1px solid rgba(201, 164, 92, 0.55);
  box-shadow: 0 -1px 14px rgba(212, 175, 55, 0.28);
}
.hbar::before, .hbar::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; }
.hbar::before { top: -1px; background: linear-gradient(90deg, transparent, #f2d88b 50%, transparent); opacity: 0.85; }
.hbar::after { bottom: 0; background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.3) 20%, rgba(201, 164, 92, 0.3) 80%, transparent); }

/* left: Scroll */
.hbar__cue { display: inline-flex; align-items: center; gap: 1rem; justify-self: start; text-decoration: none; color: var(--ivory); }
.hbar__cuelabel { font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.hbar__circle { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(201, 164, 92, 0.8); border-radius: 50%; background: none; color: var(--gold); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.hbar__cue .hbar__circle svg { animation: hbarbob 2.2s var(--ease-io) infinite; }
.hbar__cue:hover .hbar__circle, .hbar__pause:hover { background: var(--gold); color: var(--black); box-shadow: 0 0 14px rgba(212, 175, 55, 0.45); }
.hbar__cue:focus-visible, .hbar__pause:focus-visible { outline-offset: 4px; }

/* centre: rule + pill + rule */
.hbar__mid { display: flex; align-items: center; justify-content: center; gap: clamp(0.75rem, 2vw, 1.5rem); min-width: 0; }
.hbar__line { flex: 1; height: 1px; min-width: 0; }
.hbar__line--l { background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.75)); }
.hbar__line--r { background: linear-gradient(90deg, rgba(201, 164, 92, 0.75), transparent); }
.hbar__title { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; flex: none; max-width: 100%; padding: 0.62rem 1.35rem; border: 1px solid rgba(201, 164, 92, 0.85); border-radius: 999px; background: rgba(8, 8, 8, 0.6); color: var(--ivory); font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; white-space: nowrap; animation: hbartitle 0.6s var(--ease); }
.hbar__title svg { flex: none; color: var(--gold); }

/* right: pause + dots */
.hbar__end { display: inline-flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.5rem); justify-self: end; }
.hbar__pause { cursor: pointer; }
.hbar__dots { display: flex; align-items: center; gap: 0.7rem; }
.hbar__dots i { width: 14px; height: 14px; border: 1.5px solid var(--gold); border-radius: 50%; transition: background-color 0.5s, box-shadow 0.5s; }
.hbar__dots i.is-on { background: #f2d88b; border-color: #f2d88b; box-shadow: 0 0 10px rgba(242, 216, 139, 0.8); }

@keyframes hbarbob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@keyframes hbartitle { from { opacity: 0.35; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* desktop: bar docks to the bottom of the full-height hero; the stage scene sits above it */
@media (min-width: 1000px) {
  .hbar { position: absolute; left: 0; right: 0; bottom: 0; }
  .hero__grid { padding-bottom: calc(84px + clamp(1rem, 3vh, 2rem)); }
}

/* phones */
@media (max-width: 699px) {
  .hbar { --barh: 72px; padding: 0 1.1rem; column-gap: 0.6rem; }
  .hbar__cuelabel { display: none; }
  .hbar__line { display: none; }
  .hbar__title { padding: 0.5rem 0.85rem; gap: 0.45rem; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .hbar__circle { width: 34px; height: 34px; }
  .hbar__end { gap: 0.6rem; }
  .hbar__dots { gap: 0.4rem; }
  .hbar__dots i { width: 10px; height: 10px; }
}
@media (max-width: 359px) { .hbar__dots { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hbar__cue .hbar__circle svg, .hbar__title { animation: none; }
}
/* the title fade is a one-shot, so it must run even before the off-screen pause class is applied */
.live:not(.is-live) .hbar__title { animation-play-state: running !important; }

/* bar background and top glow removed per client review */
.hbar { background: transparent !important; border-top: none !important; box-shadow: none !important; }
.hbar::before { top: 0; background: transparent !important; opacity: 0 !important; }

/* Crown fix: it used to start fully masked and rely on an animation that is paused while the hero is not flagged on-screen, so it sometimes never appeared. Now it is visible by default; the sweep only plays as an entrance and always runs. */
.hero__logo { -webkit-mask-position: 0 0; mask-position: 0 0; }
.hero.in .hero__logo { animation: crownreveal 1.1s cubic-bezier(0.5, 0, 0.2, 1) 0.25s backwards; }
.live:not(.is-live) .hero__logo { animation-play-state: running !important; }
@keyframes crownreveal { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* even package cards: reserve two lines for the name so prices and lists line up across all three */
@media (min-width: 900px) { .card__name { display: grid; align-content: center; min-height: 2.4em; } }
