/* ==========================================================================
   components.css — every reusable piece. Sections compose these; they do not
   restyle them. Layout-by-breakpoint lives in responsive.css.
   ========================================================================== */

/* ==========================================================================
   Pill button — nav CTA, section CTA, ticket CTA
   ========================================================================== */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  background: var(--color-text);
  color: var(--color-on-light);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-weight: 800;
  font-size: var(--text-nav-cta);
  line-height: 1.15;
  padding: 0.46em 1.15em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  isolation: isolate;
  transition: box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}

/* A wash that sweeps in from the leading edge on hover. Painting a pseudo
   element beats animating background-position: no repaint of the label. */
.btn-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-pill:hover::before,
.btn-pill:focus-visible::before { transform: scaleX(1); }
.btn-pill:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* The arrow only exists to acknowledge the pointer, so it is decorative. */
.btn-pill__arrow {
  width: .62em;
  height: .62em;
  flex: 0 0 auto;
  transform: translateX(-3px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.btn-pill:hover .btn-pill__arrow,
.btn-pill:focus-visible .btn-pill__arrow { transform: translateX(0); opacity: 1; }

.btn-pill--lg {
  font-size: var(--text-cta-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32em 0.79em;
}

.btn-pill--sm {
  background: var(--color-text-pass);
  color: var(--color-on-pass);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-size: var(--text-ticket-bt);
  letter-spacing: -0.38px;
  padding: 0.59em 1.82em;
  border-radius: 50px;
}

/* ==========================================================================
   Navigation — 3300:14033 (y 45, w 1618, h 100.75)
   Overlays the hero backdrop at every width, as in Figma.
   ========================================================================== */
.nav {
  position: absolute;
  inset: clamp(14px, 2.604vw, 45px) 0 auto 0;
  z-index: var(--z-nav);
  width: var(--w-nav);
  margin: 0 auto;
  padding: clamp(10px, 1.157vw, 20px) clamp(14px, 1.736vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-pill);
  /* One transition list for every state this bar moves between. Declaring it
     again inside .is-pinned would replace this list rather than extend it,
     silently dropping whatever the second list left out. */
  transition: background-color var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out),
              padding var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

/* Past the hero the bar detaches from the artwork and condenses. */
.nav.is-pinned {
  position: fixed;
  inset-block-start: clamp(8px, 1.2vw, 16px);
  padding-block: clamp(6px, 0.75vw, 13px);
  background: rgba(4, 13, 45, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.nav.is-pinned .nav__logo img { width: clamp(52px, 4.2vw, 72px); }

/* Hidden while scrolling down, back on the way up. */
.nav.is-hidden { transform: translateY(calc(-100% - clamp(8px, 1.2vw, 16px))); }

.nav__logo img {
  width: clamp(58px, 5.274vw, 91.13px);
  height: auto;
  transition: width var(--dur-slow) var(--ease-out);
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(20px, 4.63vw, 80px);
  padding-left: clamp(0px, 3.472vw, 60px);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-text);
  white-space: nowrap;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: currentColor;
  transition: right var(--dur-base) var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current="true"]::after { right: 0; }

.nav__cta { display: none; }

.nav__burger {
  display: grid;
  gap: 5px;
  width: 44px;
  padding: 10px 8px;
}
.nav__burger span {
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer. Links are staggered in by JS, so they start hidden here. */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  inset: 100% 0 auto 0;
  margin: 8px clamp(14px, 1.736vw, 30px) 0;
  padding: 14px 18px;
  background: rgba(3, 14, 46, .97);
  border: 1px solid rgba(241, 245, 255, .18);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}
.nav__links.is-open a { padding: 10px 2px; font-size: 17px; }

/* ==========================================================================
   Scroll progress — a hairline, deliberately not dominant
   ========================================================================== */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: 2px;
  pointer-events: none;
  background: rgba(241, 245, 255, .08);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.progress.is-visible { opacity: 1; }
.progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(241, 245, 255, .35), var(--color-accent));
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(18px, 2vw, 28px);
  background: var(--color-bg);
}
.loader__mark { width: clamp(96px, 10vw, 150px); height: auto; opacity: .9; }
.loader__track {
  width: clamp(160px, 20vw, 280px);
  height: 2px;
  background: rgba(241, 245, 255, .14);
  overflow: hidden;
}
.loader__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--color-accent);
}
.loader__pct {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .22em;
  color: var(--color-text);
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
/* Nothing may scroll behind the loader, or behind an open drawer. Both go
   through the reference-counted lock in js/smooth-scroll.js, which owns this
   class. */
html.is-scroll-locked,
html.is-scroll-locked body { overflow: hidden; }

/* ==========================================================================
   Custom cursor — pointer:fine only, enabled by JS (see responsive.css)
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  display: none;
  will-change: transform;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
}
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(241, 245, 255, .55);
  transition: width var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.cursor.is-hover .cursor__ring {
  width: 62px; height: 62px;
  background: rgba(241, 245, 255, .10);
  border-color: rgba(241, 245, 255, .8);
}
.cursor.is-down .cursor__ring { width: 26px; height: 26px; }

/* ==========================================================================
   Ticket / pass card — 397.3 x 629.2 in Figma
   ========================================================================== */
.ticket {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
}
/* Transform and opacity are owned by js/passes.js (the reveal), so nothing is
   transitioned here. */
.ticket__frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* A soft bloom behind the card, brought up on hover. */
.ticket__glow {
  position: absolute;
  inset: -6% -4%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(120, 160, 255, .28), transparent 70%);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.ticket:hover .ticket__glow,
.ticket:focus-within .ticket__glow { opacity: 1; }

.ticket__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1vw, 11px);
  padding: 9% 14% 8%;
}
/* No transform transition here: js/passes.js owns this element's transform
   (pointer parallax plus the hover scale), and a CSS transition on top would
   smooth every scrub frame into lag. */
.ticket__icon {
  width: 58.4%;
  height: auto;
  margin-bottom: 2.2%;
}

.ticket__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-weight: 800;
  font-size: var(--text-ticket);
  line-height: 1.5;
  letter-spacing: -0.4px;
  color: var(--color-text-pass);
}
.ticket__desc {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 400;
  font-size: var(--text-ticket-dc);
  line-height: 1.272;
  letter-spacing: -0.4px;
  color: var(--color-text-pass);
}
.ticket .btn-pill--sm { margin-top: auto; }

/* ==========================================================================
   Artist card — medallion 411.223 x 420.84
   ========================================================================== */
.artist {
  flex: 0 0 auto;
  width: clamp(215px, 23.80vw, 411.2px);
  scroll-snap-align: center;
  text-align: center;
}

.artist__medallion {
  position: relative;
  aspect-ratio: 411.223 / 420.84;
}
/* Transform is owned by js/artists.js: the rail parallax and the hover both
   write to it, so there is one owner and no transition to fight. */
.artist__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Portrait clipped to the medallion ellipse, fading into the navy — mirrors
   the Figma mask group (mask 362.033 x 340.994 at 23.5, 14.56). */
.artist__oval {
  position: absolute;
  left: 5.715%;
  top: 3.46%;
  width: 88.038%;
  height: 81.027%;
  border-radius: 50%;
  overflow: hidden;
}
.artist__oval img {
  position: absolute;
  left: var(--pl);
  top: var(--pt);
  width: var(--pw);
  height: var(--ph);
  max-width: none;
  object-fit: cover;
}
.artist__oval::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 12, 41, 0) 48%, rgba(4, 12, 42, .85) 75%, var(--color-bg-artist) 88.6%);
}

.artist__name {
  margin-top: clamp(10px, 1.273vw, 22px);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 700;
  font-size: var(--text-artist);
  letter-spacing: -0.4px;
  line-height: 1.21;
  color: var(--color-text);
}
.artist__date {
  margin-top: 5px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 400;
  font-size: var(--text-artist-dt);
  letter-spacing: -0.4px;
  color: var(--color-text);
}

/* ==========================================================================
   FAQ accordion item
   ========================================================================== */
.qa { border-bottom: 2px solid var(--color-hairline); }
.qa:last-child { border-bottom: 0; }

/* The rule under the open item brightens and wipes in from the left. */
.qa::after {
  content: "";
  display: block;
  height: 2px;
  margin-bottom: -2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.qa.is-open::after { transform: scaleX(1); }

.qa__q { margin: 0; }
.qa__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(12px, 1.493vw, 25.8px) 0;   /* lands the panel on Figma's 920 */
  text-align: left;
  font-family: var(--font-body);
  font-variation-settings: "opsz" 24;
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.25;
  color: var(--color-text-faq);
}
.qa__mark {
  flex: 0 0 auto;
  width: clamp(11px, 0.823vw, 14.23px);
  aspect-ratio: 1;
  background: url("../assets/icons/chevron.svg") center / contain no-repeat;
  transform: rotate(180deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.qa.is-open .qa__mark { transform: rotate(0deg); }

/* Height is animated by GSAP; overflow keeps the copy clipped while it moves. */
.qa__a { overflow: hidden; height: 0; }
.qa__a-inner { padding: 0 clamp(10px, 1.157vw, 20px) clamp(12px, 1.736vw, 30px); }
.qa__a p {
  font-family: var(--font-body);
  font-variation-settings: "opsz" 24;
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.25;
  color: var(--color-text-faq);
}

/* ==========================================================================
   Gallery figure
   ========================================================================== */
.grid figure {
  margin: 0;
  aspect-ratio: var(--ar);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.grid figure:hover img { transform: scale(1.04); }
.grid img.is-crop-y { object-position: center 24%; }   /* 3300:16435 */
.grid img.is-crop-x { object-position: 46% center; }   /* 3300:16432 */

/* ==========================================================================
   Social icons
   ========================================================================== */
.social { display: flex; gap: clamp(8px, 0.690vw, 12px); }
.social img { width: clamp(28px, 2.066vw, 35.7px); height: auto; }
.social a { display: block; transition: transform var(--dur-fast) var(--ease-out); }
.social a:hover { transform: translateY(-2px); }

/* ==========================================================================
   Decorative divider — the ornamental rule beside the section CTA
   ========================================================================== */
.rule-ornament {
  display: none;
  width: 19.92%;                        /* 344.179 / 1728 */
  aspect-ratio: 344.179 / 11.676;
  background: url("../assets/icons/divider.svg") center / 100% 100% no-repeat;
}
.rule-ornament--flip { transform: scaleX(-1); }

/* ==========================================================================
   Split text — wrappers the splitter injects. The mask is what makes a line
   rise out of nothing rather than simply fading.
   ========================================================================== */
.split__line { display: block; overflow: hidden; }
.split__inner { display: block; will-change: transform; }
.split__word { display: inline-block; white-space: pre; }

/* ==========================================================================
   Ticket price and unavailable state.

   Added with the MePass integration: the card now shows a real price from the
   API, or says plainly that there is none to show. It never shows a number
   this codebase chose.
   ========================================================================== */
.ticket__price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-weight: 800;
  font-size: clamp(20px, 1.85vw, 32px);
  letter-spacing: -0.4px;
  color: var(--color-text-pass);
  margin-top: 2px;
}
/* No price in the payload — sized down so it reads as a note, not a number. */
.ticket__price--tbd {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-ticket-dc);
  line-height: 1.3;
  color: rgba(239, 239, 243, .62);
}

.ticket.is-unavailable { opacity: .6; }
.ticket.is-unavailable .ticket__icon { filter: grayscale(1); }

.btn-pill.is-disabled {
  background: rgba(241, 245, 255, .16);
  color: rgba(239, 239, 243, .7);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-pill.is-disabled::before { display: none; }

.btn-pill.is-loading { opacity: .8; pointer-events: none; }
.btn-pill:disabled { cursor: wait; opacity: .8; }

/* Error/skeleton hosts inside the Figma pass panel, so a failed fetch never
   collapses the panel's height. */
.tickets .state,
.tickets .skeleton { grid-column: 1 / -1; }
.tickets .skeleton--ticket { min-height: clamp(220px, 26vw, 400px); }
.tickets .skeleton--ticket .skeleton__media { display: none; }

.passes__message { margin-top: 16px; }
.passes__message:empty { display: none; }
