/*
Theme Name: buehne47
Theme URI: https://buehne47.de
Author: buehne47
Description: Custom WordPress theme migrated from the original Next.js website.
Version: 0.4.6
Text Domain: buehne47
*/

:root {
  --background: #ffffff;
  --text: #000000;
  --primary: #0e4194;
  --surface: #ffffff;
  --border: #e2e8f0;
  --foreground: #000000;
  --card: #ffffff;
  --muted: #4b5563;
}

html[data-theme="dark"] {
  --background: #0a1428;
  --text: #f0f4f8;
  --surface: #121e36;
  --border: #1e2d4a;
  --foreground: #f0f4f8;
  --card: #121e36;
  --muted: #8ba2c0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.brand-subtitle {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 2rem);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger span {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 60;
  display: grid;
  min-width: 13rem;
  gap: 0.25rem;
  padding: 1rem 0.5rem 0.5rem;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(to bottom, transparent 0.5rem, var(--primary) 0.5rem);
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.24));
  transform: translateY(-0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown-menu a {
  padding: 0.75rem 0.8rem;
  border-radius: 0.2rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-trigger span,
.nav-dropdown:focus-within .nav-dropdown-trigger span {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--primary);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mobile-nav-group,
.mobile-subnav {
  display: grid;
  gap: 0.75rem;
}

.mobile-subnav {
  margin-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding-left: 1rem;
  font-size: 0.75rem;
}

.page-main {
  min-height: 70vh;
}

.section-stack {
  display: grid;
  gap: 6rem;
  padding-bottom: 6rem;
}

.page-header {
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lede {
  max-width: 46rem;
  color: color-mix(in srgb, var(--foreground) 72%, transparent);
  line-height: 1.7;
}

.hero {
  position: relative;
  height: min(75vh, 46rem);
  min-height: 26rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero:hover img {
  transform: scale(1.04);
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 5rem;
  max-width: 36rem;
  padding: 1.75rem 2rem;
  color: #fff;
  text-align: right;
  background: var(--primary);
}

.hero-caption h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-caption p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 1.7rem;
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.125rem;
  padding: 0.85rem 1.35rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(14, 65, 148, 0.5);
}

.button:hover {
  background: color-mix(in srgb, var(--primary) 90%, white);
  color: #fff;
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.production-card,
.news-card,
.member-card,
.archive-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .production-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .member-card,
html[data-theme="dark"] .archive-card {
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.45);
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.poster-image {
  aspect-ratio: 2 / 3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.production-card:hover .card-image img,
.news-card:hover .card-image img,
.member-card:hover .card-image img,
.archive-card:hover .card-image img {
  transform: scale(1.06);
}

.member-card-link {
  display: block;
  height: 100%;
}

.card-gradient {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.4), transparent);
  color: #fff;
}

.card-gradient-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-gradient-subtitle {
  color: #58a2ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.84);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.production-card:hover .card-hover-text,
.member-card-link:hover .card-hover-text {
  opacity: 1;
}

.mini-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-top: 0.25rem;
}

.mini-tag-list span {
  border-radius: 0.125rem;
  background: rgba(14, 65, 148, 0.45);
  padding: 0.2rem 0.38rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.card-title {
  color: var(--foreground);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 0.125rem;
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag-primary {
  border-color: transparent;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.22);
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1.7fr 1.3fr minmax(10.5rem, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: color-mix(in srgb, var(--foreground) 86%, transparent);
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.button-compact {
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

.production-performance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row.schedule-head {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: #000;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.72), #000);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  padding: 5rem 2rem;
}

.detail-hero h1 {
  color: #fff;
}

.detail-hero .tag {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 1.5rem;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.14);
}

.rich-text {
  color: color-mix(in srgb, var(--foreground) 76%, transparent);
  line-height: 1.8;
  white-space: pre-wrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.production-gallery-heading {
  margin-bottom: 1.5rem;
}

.production-gallery {
  outline: none;
}

.production-gallery:focus-visible {
  border-radius: 0.5rem;
  outline: 3px solid color-mix(in srgb, var(--primary) 65%, transparent);
  outline-offset: 0.35rem;
}

.production-gallery-stage {
  position: relative;
  height: min(75vh, 46rem);
  min-height: 26rem;
  overflow: hidden;
  background: #080808;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.production-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.production-gallery-slide[hidden] {
  display: none;
}

.production-gallery-background {
  position: absolute;
  inset: -2rem;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  object-fit: cover;
  filter: blur(24px);
  opacity: 0.52;
  transform: scale(1.04);
}

.production-gallery-slide::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  content: "";
  pointer-events: none;
}

.production-gallery-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.production-gallery-image[data-gallery-next] {
  cursor: pointer;
}

.production-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.production-gallery-slide .hero-caption {
  z-index: 2;
  max-width: min(36rem, calc(100% - 6rem));
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
}

.production-gallery .hero-arrow {
  font-size: 2rem;
  line-height: 1;
}

.split-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details,
.contact-copy {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.contact-item {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.contact-item > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--primary);
  font-weight: 700;
}

.contact-item address {
  color: var(--foreground);
  font-style: normal;
  line-height: 1.7;
}

.contact-copy .button {
  justify-self: start;
}

.contact-form .wpcf7-form {
  display: grid;
  gap: 1rem;
}

.contact-form .wpcf7-form p {
  margin: 0;
}

.contact-form .wpcf7-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-form input:not([type="submit"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--background);
  padding: 0.8rem;
  color: var(--foreground);
  font: inherit;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form .wpcf7-submit {
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 0.125rem;
  padding: 0.85rem 1.35rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form .wpcf7-spinner {
  margin: 0 0.5rem;
}

.membership-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  padding: clamp(2rem, 5vw, 4rem);
}

.membership-cta p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.membership-page {
  padding-bottom: 6rem;
}

.membership-header {
  max-width: 70rem;
}

.membership-editor-content {
  display: grid;
  gap: 3rem;
}

.membership-intro {
  margin: 0;
}

.membership-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.membership-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
}

.membership-option-support {
  scroll-margin-top: 6rem;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.membership-option > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.membership-option > .wp-block-buttons {
  margin-top: auto;
  padding-top: 2rem;
}

.membership-postal-address {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.site-footer {
  background: var(--primary);
  color: #fff;
}

.b47-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.b47-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-history {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

.home-history-inner {
  display: grid;
  gap: 5rem;
  text-align: center;
}

.home-year {
  color: color-mix(in srgb, var(--foreground) 6%, transparent);
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 900;
  line-height: 0.8;
  transform: scale(0.72);
  transition: transform 0.2s linear, opacity 0.2s linear;
}

.home-history-copy {
  max-width: 46rem;
  margin: -6rem auto 0;
}

.home-history-copy p:not(.eyebrow) {
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  font-size: 1.1rem;
  line-height: 1.8;
}

.history-image-fan {
  position: relative;
  width: min(28rem, 90vw);
  height: 22rem;
  margin: 0 auto;
}

.history-fan-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.125rem;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(26px) rotate(0deg);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.8,.2,1);
}

.history-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35);
}

.history-image-fan.is-visible .history-fan-card {
  opacity: 1;
}

.history-image-fan.is-visible .history-fan-card-1 {
  transform: translate(-2.5rem, 0.75rem) rotate(-15deg);
}

.history-image-fan.is-visible .history-fan-card-2 {
  z-index: 2;
  transform: translateY(-1.25rem) rotate(0deg);
}

.history-image-fan.is-visible .history-fan-card-3 {
  transform: translate(2.5rem, 0.75rem) rotate(15deg);
}

.donation-panel {
  max-width: 54rem;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  padding: clamp(2rem, 5vw, 4rem);
}

.donation-panel h3 {
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.donation-panel p {
  color: var(--muted);
}

.donation-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  color: var(--primary);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

.donation-counter span:last-child {
  font-size: 0.62em;
}

.donation-caption {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-page {
  min-height: 100vh;
  padding: 5rem 0 6rem;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}

.history-copy {
  position: sticky;
  top: 8rem;
  display: grid;
  max-height: calc(100vh - 10rem);
  gap: 2rem;
}

.history-copy h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
}

.history-copy h1 span {
  color: var(--primary);
}

.history-rule {
  width: 6rem;
  height: 0.25rem;
  margin-top: 1.5rem;
  background: var(--primary);
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.history-stat {
  border: 1px solid var(--border);
  border-radius: 0.125rem;
  background: var(--surface);
  padding: 1rem;
  text-align: left;
}

.history-stat strong {
  display: block;
  color: var(--primary);
  font-size: 1.5rem;
}

.history-stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-intro {
  font-size: 0.95rem;
}

.history-quote {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--muted);
  font-style: italic;
}

.history-timeline-title {
  margin-bottom: 4rem;
}

.history-timeline-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.history-timeline-title span {
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: 1rem;
  background: color-mix(in srgb, var(--primary) 55%, transparent);
}

.history-timeline {
  position: relative;
  height: min(720px, calc(100vh - 12rem));
  min-height: 36rem;
  overflow-y: auto;
  padding: 5rem 0 8rem;
  scrollbar-width: none;
}

.history-timeline::-webkit-scrollbar {
  display: none;
}

.merch-page {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  padding: clamp(5rem, 9vw, 8rem) 0 6rem;
}

.merch-hero {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.merch-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
}

.merch-hero p {
  max-width: 46rem;
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 82%, transparent);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.75;
}

.merch-shop-button {
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  box-shadow: none;
}

.merch-shop-button:hover {
  transform: scale(1.04);
  background: var(--foreground);
  color: var(--background);
}

.merch-shop-button span:first-child,
.merch-shop-button span:last-child {
  color: color-mix(in srgb, var(--background) 65%, transparent);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 2rem;
}

.merch-card {
  display: grid;
  gap: 1rem;
}

.merch-image {
  display: flex;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 1rem;
  transition: background 0.3s ease;
}

.merch-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.merch-card:hover .merch-image {
  background: color-mix(in srgb, var(--surface) 86%, var(--primary));
}

.merch-card:hover .merch-image img {
  transform: scale(1.06);
}

.merch-info {
  display: grid;
  gap: 0.3rem;
}

.merch-info strong {
  color: var(--foreground);
  font-size: 1.15rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.merch-info span {
  color: color-mix(in srgb, var(--foreground) 62%, transparent);
  font-size: 1.05rem;
  font-weight: 300;
}

.merch-card:hover .merch-info strong {
  color: var(--primary);
}

.merch-empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: color-mix(in srgb, var(--foreground) 62%, transparent);
  text-align: center;
}

.merch-empty a {
  text-decoration: underline;
}

.timeline-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), color-mix(in srgb, var(--primary) 38%, transparent), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 10rem;
  margin-bottom: -1.5rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--primary) 46%, transparent);
  transform: translate(-50%, -50%);
}

.timeline-year {
  color: color-mix(in srgb, var(--primary) 30%, transparent);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  transition: color 0.3s ease;
}

.timeline-left .timeline-year {
  padding-right: 5rem;
  text-align: right;
}

.timeline-right .timeline-year {
  grid-column: 2;
  padding-left: 5rem;
}

.timeline-poster {
  position: relative;
  display: block;
  width: min(11rem, 34vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.125rem;
  background: #111;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, border-color 0.5s ease;
}

.timeline-left .timeline-poster {
  grid-column: 2;
  margin-left: 5rem;
}

.timeline-right .timeline-poster {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 5rem;
}

.timeline-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.timeline-poster span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-poster strong {
  color: #fff;
  font-size: 0.95rem;
}

.timeline-poster em {
  color: #58a2ff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item:hover .timeline-year {
  color: var(--primary);
}

.timeline-item:hover .timeline-poster {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  transform: translateY(-0.5rem);
}

.timeline-item:hover .timeline-poster img {
  filter: grayscale(0);
  transform: scale(1.06);
}

.timeline-item:hover .timeline-poster span {
  opacity: 1;
}

.timeline-fade {
  position: sticky;
  left: 0;
  right: 0;
  z-index: 5;
  height: 6rem;
  pointer-events: none;
}

.timeline-fade-top {
  top: -5rem;
  margin-top: -5rem;
  background: linear-gradient(to bottom, var(--background), transparent);
}

.timeline-fade-bottom {
  bottom: -8rem;
  background: linear-gradient(to top, var(--background), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.social-list {
  display: flex;
  gap: 0.75rem;
}

.social-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.125rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .split-page,
  .footer-grid,
  .history-layout,
  .membership-options,
  .membership-cta {
    grid-template-columns: 1fr;
  }

  .membership-cta {
    align-items: start;
  }

  .history-copy {
    position: relative;
    top: auto;
    max-height: none;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-actions {
    justify-content: flex-start;
  }

  .production-performance {
    align-items: flex-start;
    flex-direction: column;
  }

  .merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-head {
    display: none;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    height: 60vh;
  }

  .hero-caption {
    right: 0;
    bottom: 3.75rem;
    max-width: calc(100% - 2rem);
    padding: 1.25rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .gallery {
    grid-template-columns: 1fr;
  }

  .production-gallery-stage {
    height: min(65vh, 36rem);
    min-height: 22rem;
  }

  .production-gallery-slide .hero-caption {
    right: 0;
    bottom: 3.75rem;
    max-width: calc(100% - 2rem);
    padding: 1.25rem;
  }

  .merch-grid {
    grid-template-columns: 1fr;
  }

  .home-year {
    font-size: 7rem;
  }

  .home-history-copy {
    margin-top: -3rem;
  }

  .history-image-fan {
    height: 18rem;
  }

  .history-stats {
    grid-template-columns: 1fr;
  }

  .history-timeline {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 2rem 0;
  }

  .timeline-axis {
    left: 1rem;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    left: 1rem;
  }

  .timeline-left .timeline-year,
  .timeline-right .timeline-year {
    grid-column: 2;
    padding: 0;
    text-align: left;
  }

  .timeline-left .timeline-poster,
  .timeline-right .timeline-poster {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: min(12rem, 70vw);
    margin: 0;
  }

  .footer-bottom .container {
    flex-direction: column;
  }
}
