:root {
  --mzaC-fg: #e7ecf2;
  --mzaC-accent: #ffd000;
  --mzaC-accent2: #fff0ad;
  --mzaC-glass: rgba(255, 255, 255, 0.06);
  --mzaC-glow: rgba(255, 208, 0, 0.35);
  --mzaC-slideW: min(880px, 90vw);
  --mzaC-peek: 0.15;
  --mzaPagH: 64px;
  --mzaCardH: clamp(360px, 62vh, 600px);
}
.mzaCarousel {
  position: relative;
  height: min(82vh, 780px);
  min-height: 620px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  overflow: hidden;
  contain: layout paint;
  touch-action: none;
}
.mzaCarousel-viewport {
  position: relative;
  outline: none;
  overflow: hidden;
  height: 100%;
}
.mzaCarousel-track {
  position: relative;
  height: calc(100% - var(--mzaPagH) - max(env(safe-area-inset-bottom), 12px));
  transform-style: preserve-3d;
  perspective: 1200px;
  overflow: hidden;
}
.mzaCarousel-slide {
  position: absolute;
  top: calc(50% + 5px);
  left: 50%;
  width: var(--mzaC-slideW);
  height: min(var(--mzaCardH), calc(100% - 50px));
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  will-change: transform, filter;
}
.mzaCard {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--mzaC-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: saturate(120%) blur(4px);
  transform: translateZ(0);
  cursor: grab;
}
.mzaCard::before {
  content: "";
  position: absolute;
  inset: -2%;
  background-image: var(--mzaCard-bg);
  background-size: cover;
  background-position: center;
  filter: contrast(1.02) saturate(1.08) brightness(0.9);
  transform: translateZ(-60px) scale(1.18)
    translate3d(var(--mzaParBgX, 0px), var(--mzaParBgY, 0px), 0);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0, 1),
    filter 800ms cubic-bezier(0.2, 0.7, 0, 1);
}
.mzaCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.mzaCard-head {
  position: absolute;
  inset: 20px auto auto 20px;
  z-index: 2;
}
.mzaCard-title {
  max-width: min(70vw, 620px);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(22px, 3.1vw, 38px);
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
  line-height: 110%;
  cursor: text;
}
.mzaCard-kicker {
  margin: 0.5rem 0;
  color: var(--mzaC-accent);
  font-size: clamp(12px, 1.7vw, 14px);
  font-weight: 600;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
  cursor: text;
}
.mzaCard-text {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: absolute;
  inset: auto 20px 85px 20px;
  z-index: 2;
  max-width: 60ch;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  text-wrap: balance;
  cursor: text;
  color: #ddd;
  overflow: hidden;
}
.mzaCard-actions {
  position: absolute;
  inset: auto auto 18px 18px;
  z-index: 2;
}
.mzaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid #ffd000;
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 700;
  color: #141414;
  text-decoration: none;
  background-image: linear-gradient(
    180deg,
    #fff0ad,
    #ffdf68,
    #ffd000,
    #e4b800
  );
  box-shadow: 0 3px 15px var(--mzaC-glow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mzaBtn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(255, 208, 0, 0.25);
}
.mzaBtn:focus-visible,
.mzaCarousel-prev:focus-visible,
.mzaCarousel-next:focus-visible,
.mzaCarousel-dot:focus-visible { outline: 2px solid var(--mzaC-accent); outline-offset: 4px; }

.mzaCarousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.mzaCarousel-prev,
.mzaCarousel-next {
  pointer-events: auto;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: var(--mzaC-fg);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mzaCarousel-prev {
  margin-left: 6px;
}
.mzaCarousel-next {
  margin-right: 6px;
}
.mzaCarousel-prev:hover,
.mzaCarousel-next:hover {
  background: rgba(255, 255, 255, 0.14);
}
.mzaCarousel-prev:active,
.mzaCarousel-next:active {
  transform: scale(0.98);
}

.mzaCarousel-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(27px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.mzaCarousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.mzaCarousel-dot[aria-selected="true"] {
  background: linear-gradient(180deg, var(--mzaC-accent2), var(--mzaC-accent));
  transform: scale(1.35);
}

.mzaCarousel-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 9999;
  overflow: hidden;
}
.mzaCarousel-progressBar {
  display: block;
  height: 100%;
  width: 100vw;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, var(--mzaC-accent), var(--mzaC-accent2));
}

.mzaCarousel-slide[data-state="active"] .mzaCard::before {
  filter: contrast(1.06) saturate(1.12) brightness(1.02);
}
.mzaCarousel-slide[data-state="active"] .mzaCard {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.mzaPar-1,
.mzaPar-2,
.mzaPar-3 {
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0, 1);
}
.mzaPar-1 {
  transform: translate3d(
    calc(var(--mzaParX, 0px) * 0.35),
    calc(var(--mzaParY, 0px) * 0.35),
    0
  );
}
.mzaPar-2 {
  transform: translate3d(
    calc(var(--mzaParX, 0px) * 0.25),
    calc(var(--mzaParY, 0px) * 0.25),
    0
  );
}
.mzaPar-3 {
  transform: translate3d(
    calc(var(--mzaParX, 0px) * 0.18),
    calc(var(--mzaParY, 0px) * 0.18),
    0
  );
}

@media (max-width: 1000px) {
  :root {
    --mzaC-slideW: min(92vw, 620px);
  }
  .mzaCard-head {
    inset: 16px auto auto 16px;
  }
  .mzaCard-title {
    font-size: clamp(20px, 5.4vw, 30px);
  }
  .mzaCard-kicker {
    font-size: clamp(12px, 3.6vw, 13px);
  }
  .mzaCard-text {
    inset: auto 16px 62px 16px;
  }
}
@media (max-width: 768px) {
  :root {
    --mzaC-slideW: min(94vw, 560px);
  }
  .mzaCard-text,
  .mzaCard-title,
  .mzaCard-kicker {
    max-width: 45%;
  }
  .mzaCard-text::after {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 2%,
      rgba(0, 0, 0, 0) 25%
    );
    content: "";
    z-index: 1;
  }
}
@media (max-width: 768px) {
  .mzaCard-head { right: 14px; }
  .mzaCard-title,
  .mzaCard-kicker,
  .mzaCard-text { max-width: none; }
  .mzaCard-text { inset-inline: 14px; }
}
@media (max-width: 560px) {
  :root {
    --mzaC-slideW: min(96vw, 520px);
  }
}
@media (max-height: 400px) {
  .mzaCard-text {
    display: none;
  }
}
@media (max-height: 280px) {
  .mzaCard-kicker {
    display: none;
  }
}
@media (max-height: 240px) {
  .mzaBtn {
    display: none;
  }
}

/* ---- Card proportion: the JS sizes cards at the cover images' ratio (1.83:1) and sets the carousel height ---- */
.mzaCarousel{height:auto;min-height:0}
.mzaCarousel-slide{height:var(--mzaCardH)}
/* Less zoom on the artwork so its edges (and the text drawn into it) aren't cropped */
.mzaCard::before{
  inset:0;
  transform:translateZ(-60px) scale(1.06) translate3d(var(--mzaParBgX,0px),var(--mzaParBgY,0px),0);
}

/* ---- Navigation arrows: bigger and in the brand yellow so they stand out ---- */
.mzaCarousel-prev,
.mzaCarousel-next{
  width:58px;
  height:58px;
  z-index:1001;
  background:#ffd000;
  color:#141414;
  box-shadow:0 6px 0 #a88900,0 10px 22px rgba(0,0,0,.45);
  backdrop-filter:none;
  transition:background .2s ease,transform .18s cubic-bezier(.2,.7,.3,1),box-shadow .18s cubic-bezier(.2,.7,.3,1);
}
.mzaCarousel-prev svg,
.mzaCarousel-next svg{display:block;width:28px;height:28px}
.mzaCarousel-prev{margin-left:14px}
.mzaCarousel-next{margin-right:14px}
.mzaCarousel-prev:hover,
.mzaCarousel-next:hover{
  background:#ffe27a;
  transform:translateY(-2px);
  box-shadow:0 8px 0 #a88900,0 13px 24px rgba(0,0,0,.45);
}
.mzaCarousel-prev:active,
.mzaCarousel-next:active{
  transform:translateY(2px);
  box-shadow:0 3px 0 #a88900,0 6px 12px rgba(0,0,0,.4);
}
.mzaCarousel-prev:focus-visible,
.mzaCarousel-next:focus-visible{outline:2px solid #fff0ad;outline-offset:5px}
@media(max-width:560px){
  .mzaCarousel-prev,.mzaCarousel-next{width:46px;height:46px}
  .mzaCarousel-prev svg,.mzaCarousel-next svg{width:22px;height:22px}
  .mzaCarousel-prev{margin-left:4px}
  .mzaCarousel-next{margin-right:4px}
}
@media(prefers-reduced-motion:reduce){
  .mzaCarousel-prev:hover,.mzaCarousel-next:hover,
  .mzaCarousel-prev:active,.mzaCarousel-next:active{transform:none}
}
/* Phones: arrows below the card (centered) instead of covering its text */
@media(max-width:560px){
  .mzaCarousel-slide{top:calc(50% - 30px)}
  .mzaCarousel-controls{inset:auto 0 10px 0;justify-content:center;gap:22px}
  .mzaCarousel-prev,.mzaCarousel-next{margin:0}
}

/* ---- Arrows in their own side gutters so they never cover a card (desktop/tablet).
   The JS sizes the cards from the viewport width, so a narrower viewport also makes the cards smaller. ---- */
@media(min-width:561px){
  .mzaCarousel-viewport{margin:0 88px}
}

/* ---- Card button: centered, same look as the navigation arrows ---- */
.mzaCard-actions{inset:auto 0 18px 0;display:flex;justify-content:center}
.mzaBtn{
  min-height:48px;
  padding:0 26px;
  border:0;
  border-radius:999px;
  background:#ffd000;
  background-image:none;
  color:#141414;
  box-shadow:0 6px 0 #a88900,0 10px 22px rgba(0,0,0,.45);
  transition:background .2s ease,transform .18s cubic-bezier(.2,.7,.3,1),box-shadow .18s cubic-bezier(.2,.7,.3,1);
}
.mzaBtn:hover{
  background:#ffe27a;
  transform:translateY(-2px);
  box-shadow:0 8px 0 #a88900,0 13px 24px rgba(0,0,0,.45);
}
.mzaBtn:active{
  transform:translateY(2px);
  box-shadow:0 3px 0 #a88900,0 6px 12px rgba(0,0,0,.4);
}
.mzaBtn:focus-visible{outline:2px solid #fff0ad;outline-offset:5px}
@media(prefers-reduced-motion:reduce){.mzaBtn:hover,.mzaBtn:active{transform:none}}

/* ---- Button below the carousel (one for all cards; the JS points it at the centered card) ---- */
.mzaCard-actions{display:none}
.mzaCarousel-cta{display:flex;justify-content:center;margin-top:6px}
/* The description box takes the space the in-card button used to have */
.mzaCard-text{inset:auto 20px 20px 20px}
@media(max-width:1000px){.mzaCard-text{inset:auto 16px 16px 16px}}
@media(max-width:768px){.mzaCard-text{inset-inline:14px}}
