.event-category-hero {
  --hero-orange: #f36b16;
  --hero-white: #ffffff;
  --hero-radius: 28px;
  --hero-text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);

  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

/* --------------------------------
   Viewport
-------------------------------- */

.event-category-hero__viewport {
  position: relative;
  height: clamp(340px, 38vw, 390px);
  overflow: hidden;
  isolation: isolate;

  border-radius: var(--hero-radius);
  background: #17130f;

  box-shadow:
    0 20px 52px rgba(39, 24, 12, 0.14),
    0 4px 14px rgba(39, 24, 12, 0.06);
}

/* --------------------------------
   Slides
-------------------------------- */

.event-category-hero__slides,
.event-category-hero__slide,
.event-category-hero__slide > img,
.event-category-hero__shade,
.event-category-hero__link {
  position: absolute;
  inset: 0;
}

.event-category-hero__slide {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;

  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.7s;
}

.event-category-hero__slide.is-active {
  z-index: 1;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.event-category-hero__slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transform: scale(1.025);

  transition: transform 7s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.event-category-hero__slide.is-active > img {
  transform: scale(1);
}

/* --------------------------------
   Overlay
-------------------------------- */

.event-category-hero__shade {
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(12, 10, 8, 0.82) 0%,
      rgba(12, 10, 8, 0.6) 36%,
      rgba(12, 10, 8, 0.25) 64%,
      rgba(12, 10, 8, 0.04) 84%
    ),
    linear-gradient(
      0deg,
      rgba(12, 10, 8, 0.26) 0%,
      transparent 52%
    );
}

/* --------------------------------
   Accessibility
-------------------------------- */

.event-category-hero__screen-title,
.event-category-hero__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;
  border: 0;
}

/* --------------------------------
   Main link
-------------------------------- */

.event-category-hero__link {
  z-index: 2;
  color: var(--hero-white);
  text-decoration: none;
}

.event-category-hero__link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: -7px;
  border-radius: var(--hero-radius);
}

/* --------------------------------
   Copy
-------------------------------- */

.event-category-hero__copy {
  position: absolute;
  z-index: 3;

  top: 50%;
  left: clamp(30px, 5vw, 70px);

  display: flex;
  width: min(620px, calc(100% - 200px));
  flex-direction: column;
  align-items: flex-start;

  transform: translateY(-50%);
}

/* --------------------------------
   Category
-------------------------------- */

.event-category-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.88);

  font-family:
    Inter,
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-category-hero__category::before {
  width: 26px;
  height: 2px;
  flex: 0 0 auto;

  content: "";

  border-radius: 999px;
  background: var(--hero-orange);
}

/* --------------------------------
   Description
-------------------------------- */

.event-category-hero__description {
  max-width: 600px;
  margin: 0;

  color: var(--hero-white);

  font-family:
    Inter,
    "SF Pro Display",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 550;
  letter-spacing: -0.028em;
  line-height: 1.14;

  text-wrap: balance;
  text-shadow: var(--hero-text-shadow);

  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.event-category-hero__link:hover .event-category-hero__description {
  transform: translateY(-2px);

  text-shadow:
    0 6px 24px rgba(0, 0, 0, 0.32);
}

/* --------------------------------
   Navigation rail
-------------------------------- */

.event-category-hero__rail {
  position: absolute;
  z-index: 5;

  top: 50%;
  right: clamp(20px, 3vw, 40px);

  display: grid;
  gap: 8px;

  transform: translateY(-50%);
}

.event-category-hero__tab {
  display: block;

  width: 7px;
  height: 24px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  cursor: pointer;

  transition:
    height 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.event-category-hero__tab:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.28);
}

.event-category-hero__tab.is-active {
  height: 42px;
  border-color: var(--hero-orange);
  background: var(--hero-orange);
}

.event-category-hero__tab:focus-visible {
  outline: 2px solid var(--hero-white);
  outline-offset: 4px;
}

/* --------------------------------
   Controls
-------------------------------- */

.event-category-hero__controls {
  position: absolute;
  z-index: 6;

  right: clamp(20px, 3vw, 40px);
  bottom: 24px;

  display: flex;
  gap: 8px;
}

.event-category-hero__controls button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;

  background: rgba(15, 12, 9, 0.28);
  color: var(--hero-white);

  cursor: pointer;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.event-category-hero__controls button:hover {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.95);
  color: #16110d;

  transform: translateY(-2px);
}

.event-category-hero__controls button:focus-visible {
  outline: 2px solid var(--hero-white);
  outline-offset: 3px;
}

.event-category-hero__controls button:active {
  transform: scale(0.96);
}

.event-category-hero__controls svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* --------------------------------
   Dark theme
-------------------------------- */

[data-theme="dark"] .event-category-hero__viewport {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 4px 16px rgba(0, 0, 0, 0.18);
}

/* --------------------------------
   Tablet
-------------------------------- */

@media (max-width: 1024px) {
  .event-category-hero__viewport {
    height: 370px;
  }

  .event-category-hero__copy {
    left: clamp(28px, 5vw, 50px);
    width: min(560px, calc(100% - 150px));
  }

  .event-category-hero__description {
    max-width: 540px;
    font-size: clamp(23px, 3.5vw, 34px);
  }
}

/* --------------------------------
   Mobile
-------------------------------- */

@media (max-width: 820px) {
  .event-category-hero {
    padding: 10px 10px 0;
  }

  .event-category-hero__viewport {
    height: 350px;
    border-radius: 22px;
  }

  .event-category-hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(12, 10, 8, 0.1) 0%,
        rgba(12, 10, 8, 0.12) 28%,
        rgba(12, 10, 8, 0.52) 60%,
        rgba(12, 10, 8, 0.9) 100%
      );
  }

  .event-category-hero__link:focus-visible {
    border-radius: 22px;
  }

  .event-category-hero__copy {
    top: auto;
    right: 24px;
    bottom: 72px;
    left: 24px;

    width: auto;

    transform: none;
  }

  .event-category-hero__category {
    gap: 9px;
    margin-bottom: 11px;

    font-size: 10px;
  }

  .event-category-hero__category::before {
    width: 22px;
  }

  .event-category-hero__description {
    max-width: 520px;

    font-size: clamp(21px, 5.5vw, 29px);
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .event-category-hero__link:hover .event-category-hero__description {
    transform: none;
  }

  .event-category-hero__rail {
    top: auto;
    right: auto;
    bottom: 24px;
    left: 24px;

    display: flex;
    gap: 7px;

    transform: none;
  }

  .event-category-hero__tab,
  .event-category-hero__tab:hover,
  .event-category-hero__tab:focus-visible {
    width: 8px;
    height: 8px;

    transform: none;
  }

  .event-category-hero__tab.is-active {
    width: 26px;
    height: 8px;
  }

  .event-category-hero__controls {
    right: 20px;
    bottom: 15px;
  }

  .event-category-hero__controls button {
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------
   Small mobile
-------------------------------- */

@media (max-width: 480px) {
  .event-category-hero {
    padding: 8px 8px 0;
  }

  .event-category-hero__viewport {
    height: 330px;
    border-radius: 20px;
  }

  .event-category-hero__link:focus-visible {
    border-radius: 20px;
  }

  .event-category-hero__copy {
    right: 20px;
    bottom: 66px;
    left: 20px;
  }

  .event-category-hero__category {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .event-category-hero__description {
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.16;
  }

  .event-category-hero__rail {
    bottom: 22px;
    left: 20px;
  }

  .event-category-hero__controls {
    right: 17px;
    bottom: 13px;
  }

  .event-category-hero__controls button {
    width: 36px;
    height: 36px;
  }

  .event-category-hero__controls svg {
    width: 17px;
    height: 17px;
  }
}

/* --------------------------------
   Reduced motion
-------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .event-category-hero__slide,
  .event-category-hero__slide > img,
  .event-category-hero__description,
  .event-category-hero__tab,
  .event-category-hero__controls button {
    transition: none !important;
  }

  .event-category-hero__slide > img,
  .event-category-hero__slide.is-active > img {
    transform: none;
  }
}