/*
Theme Name: Studio STA Custom Theme
Theme URI: https://studiosta.pl/
Author: Emil Owczarek
Author URI: https://1r.agency/
Description: Custom WordPress theme for Studio STA - theatrical arts education center in Poznan, Poland. Features custom post types for courses and instructors, Tailwind CSS integration, and modern responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sta-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, education, entertainment
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
  background-color: #000;
  color: #fff;
}

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 999999;
  text-decoration: none;
  border-radius: 0 0 0.25rem 0.25rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Hero image positioning for desktop only */
@media (min-width: 1024px) {
  .hero-image {
    object-position: 50% -11vh;
  }
  .hero-image--contain {
    object-position: center;
  }
}

/* Hero image with mobile cover override */
.hero-image--mobile-cover {
  object-fit: cover;
  object-position: center; /* Reset position for course pages */
}

@media (min-width: 768px) {
  .hero-image--mobile-cover {
    object-fit: contain;
    object-position: center;
  }
}

/* ==========================================================================
   Slider Rich Text Styles
   ========================================================================== */

.slider-rich-text {
  line-height: 1.6;
}

.slider-rich-text p {
  margin-bottom: 0.75em;
}

.slider-rich-text p:last-child {
  margin-bottom: 0;
}

.slider-rich-text strong,
.slider-rich-text b {
  font-weight: 700;
}

.slider-rich-text em,
.slider-rich-text i {
  font-style: italic;
}

.slider-rich-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.slider-rich-text a:hover {
  opacity: 0.7;
}

.slider-rich-text ul,
.slider-rich-text ol {
  margin: 0.75em 0;
  padding-left: 1.5em;
}

.slider-rich-text ul {
  list-style-type: disc;
}

.slider-rich-text ol {
  list-style-type: decimal;
}

.slider-rich-text li {
  margin-bottom: 0.25em;
}

.slider-rich-text li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Smart Header (show on scroll up)
   ========================================================================== */

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background-color: #000 !important;
}

/* Uwzględnij pasek admina WordPress */
.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px !important;
  }
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

/* Desktop navigation - visible by default */
.desktop-nav {
  display: flex;
}

/* Mobile toggle - hidden by default */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

/* Breakpoint: below 1024px show burger menu, hide desktop nav */
@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  .mobile-toggle { display: flex !important; }
}

/* Burger button */
.burger {
  position: relative;
  width: 30px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.burger:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

.burger__line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  left: 0;
  transition: transform .25s ease, opacity .25s ease, top .25s ease, bottom .25s ease;
}

.burger__line--top { top: 0; }
.burger__line--mid { top: 50%; transform: translateY(-50%); }
.burger__line--bot { bottom: 0; }

/* Burger animation to X when expanded */
.burger[aria-expanded="true"] .burger__line--top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line--mid {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line--bot {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
  top: var(--header-offset, 0px);
}

.offcanvas-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Offcanvas panel - hidden on desktop */
.offcanvas {
  position: fixed;
  top: var(--header-offset, 0px);
  right: 0;
  height: calc(100dvh - var(--header-offset, 0px));
  width: min(80vw, 340px);
  max-width: 95vw;
  background: #0b0b0b;
  border-left: 1px solid rgba(255, 255, 255, .15);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

/* Hide offcanvas completely on desktop */
@media (min-width: 1025px) {
  .offcanvas,
  .offcanvas-backdrop {
    display: none !important;
  }
}

.offcanvas.is-open {
  transform: translateX(0);
}

.offcanvas__body {
  padding: .5rem 1rem 1.5rem;
  overflow-y: auto;
}

/* Mobile menu list */
.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
}

.mobile-menu li a {
  display: block;
  padding: .9rem .25rem;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mobile-menu li a:hover {
  background: rgba(255, 255, 255, .06);
}

/* Lock scroll when offcanvas is open */
body.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   Hero Animations
   ========================================================================== */

@keyframes reveal-clip {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes blur-up {
  from { filter: blur(12px); opacity: 0; }
  to   { filter: blur(0);   opacity: 1; }
}

@keyframes slide-left {
  from { transform: translateX(-12px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

.course-card__media img,
.pedagogy-card__media img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.course-card__body,
.pedagogy-card__body {
  padding: 1rem;
  max-width: 300px;
}
.course-card__title,
.pedagogy-card__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.course-card__tags,
.pedagogy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.625rem;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3125rem 0.625rem;
  border: 1px solid #eee;
}
@media (max-width: 900px) {
  .course-grid__list,
  .pedagogy-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .course-grid__list,
  .pedagogy-grid__list {
    grid-template-columns: 1fr;
  }
}

/* TikTok Grid - responsive behavior similar to course-grid */
@media (max-width: 900px) {
  .tiktok-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tiktok-grid__list {
    grid-template-columns: 1fr;
  }
}

.circles {
  display: flex;
  gap: 0;
  min-width: 0;
  justify-content: space-between;
  align-items: flex-start;
}

.circle,
.splide__pagination li {
  flex-basis: 26%;
  aspect-ratio: 1 / 1;
  border: 1px solid black;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  &.active {
    background: black;
    z-index: 1;
  }

  &:has(button.is-active) {
    z-index: 1;
  }
}

.circle.active {
  background: black;
}

.splide__pagination__page {
  width: 100% !important;
  height: auto !important;
  opacity: unset !important;
  display: block !important;
  border: unset !important;
  margin: unset !important;
  background-color: unset !important;

  &.is-active {
    background-color: black !important;
  }
}

.splide__pagination li {
  button {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0;
  }

  &:nth-child(1) {
    transform: translateX(0);

    button {
      background-image: url('assets/circle-1.svg');

      &.is-active {
        background-size: 55%;
      }
    }
  }
  &:nth-child(2) {
    transform: translateX(-29%);

    button {
      background-image: url('assets/circle-2.svg');

      &.is-active {
        background-size: 70%;
      }
    }
  }
  &:nth-child(3) {
    transform: translateX(-58%);

    button {
      background-image: url('assets/circle-3.svg');

      &.is-active {
        background-size: 70%;
      }
    }
  }
  &:nth-child(4) {
    transform: translateX(-87%);

    button {
      background-image: url('assets/circle-4.svg');

      &.is-active {
        background-size: 70%;
      }
    }
  }
  &:nth-child(5) {
    transform: translateX(-116%);

    button {
      background-image: url('assets/circle-5.svg');

      &.is-active {
        background-size: 70%;
      }
    }
  }
}

.splide__pagination {
  flex-wrap: nowrap !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  justify-content: unset !important;
  align-items: unset !important;
  padding: 0 !important;
}

@keyframes rotate-background {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splide__pagination li button {
  transition: transform 0.3s ease, background-size 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 50%;
}

.splide__pagination li button.is-active {
  position: relative;
  z-index: 1;
  transform: scale(1.15);
  animation: rotate-background 10s linear infinite;
}

.course-card__inner,
.pedagogy-card__inner {
  opacity: 0;
  transform: rotateY(-90deg);
  transition:
    opacity 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  will-change: opacity, transform;
}
.course-card__inner.visible,
.pedagogy-card__inner.visible {
  opacity: 1;
  transform: rotateY(0deg);
}
.course-grid__list,
.pedagogy-grid__list {
  perspective: 1000px; /* dla efektu 3D */
}

.course-card,
.pedagogy-card {
  border: 1px solid #eee;
}

/* Modal animacja fadeIn/fadeOut */
#tiktok-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#tiktok-modal.visible {
  opacity: 1;
  pointer-events: all;
}
#tiktok-modal.hidden {
  display: block;
  opacity: 0;
  pointer-events: none;
}

#modal-close {
  top: -35px;
}

/* TikTok iframe responsywny */
#tiktok-embed-container {
  max-width: 100vw;
  overflow: hidden;
}
.tiktok-iframe {
  width: 280px;
  height: 500px;
  max-width: calc(100vw - 32px);
}
@media (min-width: 768px) {
  .tiktok-iframe {
    width: 325px;
    height: 580px;
  }
}

/* --- MOBILE: poziomy scroll z ~1.5 kafelka, w obrębie 18/20 kolumn --- */
@media (max-width: 600px) {
  :root { --course-gap: 16px; }

  /* kontener listy kursów -> poziomy scroll + snap
     UWAGA: zostaje w 18/20 kolumn (ul już ma col-span-18 col-start-2 w HTML)
     Dodajemy grid-column jako fallback, gdyby utilsy nie były aktywne. */
  .course-grid__list {
    display: flex !important;            /* nadpisuje grid */
    gap: var(--course-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;           /* allow both horizontal and vertical scroll */
    overscroll-behavior-x: contain;

    /* brak “full-bleed”: ZERO ujemnych marginesów, trzymamy się 18/20 */
    padding-inline: 0;
    margin-inline: 0;

    /* schowanie paska przewijania */
    scrollbar-width: none;               /* Firefox */

    /* fallback gdyby klasy col-span-18/col-start-2 nie zadziałały */
    grid-column: 2 / span 18;
  }

  /* pojedynczy kafelek: ~2/3 szerokości kontenera => widoczne ~1.5 */
  .course-grid__list > .course-card {
    flex: 0 0 90%;
    scroll-snap-align: start;
  }

  /* dopasowanie zawartości kafelka do nowej szerokości */
  .course-card__inner { height: 100%; }
  .course-card__body  { max-width: none; }        /* usuwa limit 300px na mobile */
  
  /* --- WYŁĄCZENIE ANIMACJI KAFELKÓW: karty od razu widoczne --- */
.course-card__inner,
.pedagogy-card__inner {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.course-card__inner.visible,
.pedagogy-card__inner.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
}

/* Kolor strzałki – dopasuj do tła sekcji */
:root {
  --scroll-hint-text: rgba(255,255,255,.9);
}
@media (prefers-color-scheme: light) {
  :root { --scroll-hint-text: rgba(0,0,0,.7); }
}

@media (max-width: 600px) {
  .course-grid__list {
    position: relative; /* kotwica dla pseudo-elementu */
    /* jeśli nie masz jeszcze, upewnij się, że są oba bordery: */
    border-left: 1px solid var(--grid-border-color, #D1D5DB);
    border-right: 1px solid var(--grid-border-color, #D1D5DB);
  }

  /* Pulsująca strzałka po prawej */
  .course-grid__list::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 5%;                 /* 6px, by prawy border był widoczny */
    transform: translateY(-50%);
    font-size: 35px;
    line-height: 1;
    color: white;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
    pointer-events: none;
    z-index: 1;

    animation: pulse-arrow 1.2s ease-in-out infinite;
  }

  /* ukryj po interakcji / przewinięciu */
  .course-grid__list.is-scrolled::after {
    opacity: 0;
    animation: none;
    transition: opacity .25s ease;
  }
}

/* animacja pulsu */
@keyframes pulse-arrow {
  0%, 100% { transform: translateY(-50%) scale(1);   opacity: .7; }
  50%      { transform: translateY(-50%) scale(1.35); opacity: 1;  }
}

/* === TIKTOK GRID: horizontal scroll + pulsing arrow (mobile) === */
@media (max-width: 900px) {
  .tiktok-grid__list {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scroll-behavior: smooth;
    
    /* ukryj scrollbar ale pozwól scrollować */
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    /* dodaj padding dla lepszego UX */
    padding: 0 1rem;
    border-left: 1px solid var(--grid-border-color, #D1D5DB);
    border-right: 1px solid var(--grid-border-color, #D1D5DB);
  }
  
  .tiktok-grid__list::-webkit-scrollbar {
    display: none;
  }

  /* Każda tiktok karta na mobile */
  .tiktok-grid__list .tiktok-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
  }

  /* Pulsująca strzałka po prawej */
  .tiktok-grid__list::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 35px;
    line-height: 1;
    color: white;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
    pointer-events: none;
    z-index: 1;

    animation: pulse-arrow 1.2s ease-in-out infinite;
  }

  /* ukryj po interakcji / przewinięciu */
  .tiktok-grid__list.is-scrolled::after {
    opacity: 0;
    animation: none;
    transition: opacity .25s ease;
  }
}

.footer-title {
  color: var(--Light-2, #FFF);
text-align: center;
font-family: "DM Sans";
font-size: 24.514px;
font-style: normal;
font-weight: 400;
line-height: 24.514px; /* 100% */
letter-spacing: -0.981px;
}

.month.focused.active {
  background-color: #000!important;
  color: #fff!important;
  border-radius: 0!important;
}

.tribe-common-c-svgicon.tribe-common-c-svgicon--messages-not-found.tribe-events-c-messages__message-icon-svg {
  color: #000!important;
}

.month.current {
  background-color: rgba(0, 0, 0, 0.1)!important;
  /* opacity: 0.2!important; */
  color: black!important;
}

/* ==========================================================================
   Accessibility Widget
   ========================================================================== */

/* Panel visibility states */
.a11y-widget #a11y-panel.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Remove focus ring from accessibility buttons */
.a11y-option:focus,
.a11y-option:focus-visible,
#a11y-toggle:focus,
#a11y-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Cursor pointer for accessibility buttons */
.a11y-option,
#a11y-toggle {
  cursor: pointer !important;
}

/* ==========================================================================
   Accessibility Overrides
   ========================================================================== */

/* High Contrast Mode */
body.a11y-contrast {
  filter: contrast(1.25);
}

body.a11y-contrast img,
body.a11y-contrast video,
body.a11y-contrast iframe {
  filter: contrast(0.8); /* Compensate for images */
}

/* Grayscale Mode */
body.a11y-grayscale {
  filter: grayscale(1);
}

/* Reading Guide - simple rectangle that follows cursor */
#a11y-reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 32px;
  top: 50%;
  z-index: 99999;
  pointer-events: none;
  display: none;
  border-top: 2px solid #FFD700;
  border-bottom: 2px solid #FFD700;
  background: #FFE066;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

#a11y-reading-guide.active {
  display: block;
}

/* Big Cursor */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5.5 3.21V20.8l4.86-4.86h6.1L5.5 3.21z'/%3E%3C/svg%3E") 0 0, auto !important;
}

/* Links Underline */
body.a11y-links-underline a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

body.a11y-links-underline a:hover,
body.a11y-links-underline a:focus {
  text-decoration-style: double !important;
}

/* No Animations */
body.a11y-no-animations,
body.a11y-no-animations *,
body.a11y-no-animations *::before,
body.a11y-no-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Reset animated elements to their final state when animations disabled */
body.a11y-no-animations .will-change-clip-path {
  clip-path: none !important;
}

body.a11y-no-animations .will-change-transform {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ==========================================================================
   SVG Quote Icon - SMIL animation in SVG, CSS only for accessibility
   ========================================================================== */

/* Pause SMIL animations when user prefers no animations */
body.a11y-no-animations .quote-left,
body.a11y-no-animations .quote-right {
  animation-play-state: paused !important;
}

body.a11y-no-animations .quote-left *,
body.a11y-no-animations .quote-right * {
  animation-play-state: paused !important;
}

/* Also pause SMIL via SVG attribute selector workaround */
body.a11y-no-animations svg animateTransform {
  display: none;
}

/* Combined filters handling */
body.a11y-contrast.a11y-grayscale {
  filter: contrast(1.25) grayscale(1);
}

/* Focus indicator enhancement for accessibility modes */
body.a11y-contrast :focus {
  outline: 3px solid #000 !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   404 Page - Background Animations
   ========================================================================== */

/* Pulsujące 404 */
.animate-pulse-slow {
  animation: pulse404 8s ease-in-out infinite;
}

@keyframes pulse404 {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.03);
  }
}

/* Safari fix dla 404 - użycie -webkit-fill-available zamiast vh */
@supports (-webkit-touch-callout: none) {
  .sta-hero--single {
    min-height: 88vh;
    min-height: -webkit-fill-available;
  }
}

/* Szukające reflektory */
.spotlight {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 35%, transparent 65%);
  filter: blur(50px);
}

.spotlight--1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: searchLight1 24s ease-in-out infinite;
}

.spotlight--2 {
  top: 50%;
  right: 10%;
  width: 250px;
  height: 250px;
  animation: searchLight2 10s ease-in-out infinite;
  animation-delay: -3s;
}

.spotlight--3 {
  bottom: 20%;
  left: 30%;
  width: 200px;
  height: 200px;
  animation: searchLight3 14s ease-in-out infinite;
  animation-delay: -7s;
}

@keyframes searchLight1 {
  /* Przejście 1 */
  0% { transform: translate(-50%, -50%) translate(-30%, -30%) scale(1); opacity: 1; }
  12% { transform: translate(-50%, -50%) translate(25%, -20%) scale(1); opacity: 0.9; }
  24% { transform: translate(-50%, -50%) translate(35%, 20%) scale(1); opacity: 1; }
  36% { transform: translate(-50%, -50%) translate(-10%, 30%) scale(1); opacity: 0.9; }
  /* Przejście 1.5 (połowa) */
  48% { transform: translate(-50%, -50%) translate(-30%, -30%) scale(1); opacity: 1; }
  60% { transform: translate(-50%, -50%) translate(25%, -20%) scale(1); opacity: 0.9; }
  /* Reflektor rozszerza się i znika */
  66% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  75% { transform: translate(-50%, -50%) scale(2.5); opacity: 0.4; }
  83% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
  92%, 100% { transform: translate(-50%, -50%) translate(-30%, -30%) scale(1); opacity: 1; }
}

@keyframes searchLight2 {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.9;
  }
  33% {
    transform: translate(-50vw, 30vh);
    opacity: 1;
  }
  66% {
    transform: translate(-30vw, -20vh);
    opacity: 0.8;
  }
}

@keyframes searchLight3 {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: translate(40vw, -30vh);
    opacity: 1;
  }
}

body.a11y-no-animations .animate-pulse-slow,
body.a11y-no-animations .spotlight {
  animation: none !important;
}

/* ==========================================================================
   Theater Masks Animation (Pedagogy Page)
   ========================================================================== */

.theater-mask {
  position: absolute;
  width: 250px;
  height: 250px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* CSS Houdini - animowalne custom properties dla maski */
@property --mask-x {
  syntax: '<percentage>';
  initial-value: 20%;
  inherits: false;
}

@property --mask-y {
  syntax: '<percentage>';
  initial-value: 20%;
  inherits: false;
}

.theater-mask--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  color: rgba(255, 255, 255, 0.55);
  /* Maska widoczna tylko pod reflektorem */
  -webkit-mask-image: radial-gradient(circle var(--mask-size) at var(--mask-x) var(--mask-y), white 0%, transparent 80%);
  mask-image: radial-gradient(circle var(--mask-size) at var(--mask-x) var(--mask-y), white 0%, transparent 80%);
  animation: maskSpotSync 24s ease-in-out infinite;
}

@property --mask-size {
  syntax: '<length>';
  initial-value: 250px;
  inherits: false;
}

/* 1.5 przejścia po kwadracie + pełne odsłonięcie (bez reflektora) */
@keyframes maskSpotSync {
  /* Przejście 1 */
  0% { --mask-x: 20%; --mask-y: 20%; --mask-size: 250px; }
  12% { --mask-x: 75%; --mask-y: 30%; --mask-size: 250px; }
  24% { --mask-x: 85%; --mask-y: 70%; --mask-size: 250px; }
  36% { --mask-x: 40%; --mask-y: 80%; --mask-size: 250px; }
  /* Przejście 1.5 (połowa) */
  48% { --mask-x: 20%; --mask-y: 20%; --mask-size: 250px; }
  60% { --mask-x: 75%; --mask-y: 30%; --mask-size: 250px; }
  /* Pełne odsłonięcie */
  68% { --mask-x: 50%; --mask-y: 50%; --mask-size: 250px; }
  75%, 83% { --mask-x: 50%; --mask-y: 50%; --mask-size: 600px; }
  92%, 100% { --mask-x: 20%; --mask-y: 20%; --mask-size: 250px; }
}

/* Safari fallback - Safari nie obsługuje dobrze @property */
@supports not (font-variation-settings: normal) {
  .theater-mask--center {
    color: rgba(255, 255, 255, 0.4);
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }
  .sta-hero--pedagogy .spotlight {
    display: none;
  }
}

/* Dodatkowy fallback dla Safari przez media query */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .theater-mask--center {
      color: rgba(255, 255, 255, 0.4);
      -webkit-mask-image: none;
      mask-image: none;
      animation: none;
    }
    .sta-hero--pedagogy .spotlight {
      display: none;
    }
  }
}

/* Reduced motion - maska widoczna bez animacji i reflektora */
@media (prefers-reduced-motion: reduce) {
  .theater-mask--center {
    color: rgba(255, 255, 255, 0.4);
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }

  .sta-hero--pedagogy .spotlight {
    display: none;
  }
}

body.a11y-no-animations .theater-mask--center {
  color: rgba(255, 255, 255, 0.4);
  -webkit-mask-image: none;
  mask-image: none;
  animation: none;
}

body.a11y-no-animations .sta-hero--pedagogy .spotlight {
  display: none;
}

/* Responsywność masek */
@media (max-width: 768px) {
  .theater-mask {
    width: 150px;
    height: 150px;
  }

  .theater-mask--center {
    width: 200px;
    height: 200px;
  }
}

body.a11y-no-animations .theater-mask {
  animation: none !important;
}

/* ==========================================================================
   Falling Curtain Animation (Contact Page)
   ========================================================================== */

.curtain-fall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130%;
  background: linear-gradient(
    180deg,
    rgba(139, 0, 0, 0.7) 0%,
    rgba(100, 0, 0, 0.5) 40%,
    rgba(60, 0, 0, 0.3) 70%,
    transparent 100%
  );
  transform-origin: top center;
  animation: curtainFall 14s ease-in-out infinite;
}

.curtain-fall--2 {
  background: linear-gradient(
    180deg,
    rgba(120, 0, 0, 0.5) 0%,
    rgba(80, 0, 0, 0.35) 50%,
    transparent 90%
  );
  animation-delay: -7s;
}

/* Fałdy kurtyny - pionowe linie */
.curtain-fold {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: curtainFoldWave 10s ease-in-out infinite;
}

.curtain-fold--1 {
  left: 30%;
  animation-delay: 0s;
}

.curtain-fold--2 {
  left: 50%;
  animation-delay: -3s;
}

.curtain-fold--3 {
  left: 70%;
  animation-delay: -6s;
}

@keyframes curtainFall {
  0%, 100% {
    transform: translateY(-20%) scaleY(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(10%) scaleY(1.15);
    opacity: 1;
  }
}

@keyframes curtainFoldWave {
  0%, 100% {
    transform: scaleY(1) translateY(-15%);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.15) translateY(5%);
    opacity: 0.8;
  }
}

/* Responsywność */
@media (max-width: 768px) {
  .curtain-fold--1 { left: 25%; }
  .curtain-fold--3 { left: 75%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .curtain-fall,
  .curtain-fold {
    animation: none;
    transform: none;
  }
}

body.a11y-no-animations .curtain-fall,
body.a11y-no-animations .curtain-fold {
  animation: none;
  transform: none;
}

/* ==========================================================================
   Hero Animations - Shared Styles
   ========================================================================== */

.sta-hero {
  --line: rgba(156, 163, 175, .45);
}

.sta-anim {
  will-change: transform, opacity;
  pointer-events: none;
}

.sta-ring {
  border-color: var(--line);
  border-width: 0.5px;
}

/* ==========================================================================
   1. News/Blog Hero - Bouncing Circles (home.php)
   ========================================================================== */

@keyframes sta-bounce-left {
  0%   { transform: translateX(-150%) scale(1); }
  45%  { transform: translateX(0%) scale(1); }
  55%  { transform: translateX(0%) scale(1); }
  100% { transform: translateX(-150%) scale(1); }
}

@keyframes sta-bounce-right {
  0%   { transform: translateX(150%) scale(1); }
  45%  { transform: translateX(0%) scale(1); }
  55%  { transform: translateX(0%) scale(1); }
  100% { transform: translateX(150%) scale(1); }
}

.sta-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38vmin;
  height: 38vmin;
  max-width: 540px;
  max-height: 540px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(2px);
}

.sta-dot--left {
  animation: sta-bounce-left 50.2s ease-in-out infinite;
}

.sta-dot--right {
  animation: sta-bounce-right 50.2s ease-in-out infinite;
}

/* Mobile: mniejsze koła */
@media (max-width: 768px) {
  .sta-dot {
    width: 55vmin;
    height: 55vmin;
  }
}

/* ==========================================================================
   2. Contact Hero - Pulsing & Swaying Circles (page-contact.php)
   ========================================================================== */

@keyframes sta-pulse {
  0%   { transform: translateZ(0) scale(1);   opacity: .9; }
  50%  { transform: translateZ(0) scale(2.0); opacity: 1;  }
  100% { transform: translateZ(0) scale(1);   opacity: .9; }
}

@keyframes sta-sway-left {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-5.5%); }
  100% { transform: translateX(0); }
}

@keyframes sta-sway-right {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(5.5%); }
  100% { transform: translateX(0); }
}

.sta-pulse       { animation: sta-pulse 30s ease-in-out infinite; }
.sta-sway-left-1 { animation: sta-sway-left 12s ease-in-out infinite; }
.sta-sway-left-2 { animation: sta-sway-left 17s ease-in-out infinite; }
.sta-sway-right-1{ animation: sta-sway-right 19s ease-in-out infinite; }
.sta-sway-right-2{ animation: sta-sway-right 23s ease-in-out infinite; }

/* Mobile: ukryj boczne elementy na kontakcie */
@media (max-width: 640px) {
  .sta-hero--contact .sta-sway-left-2,
  .sta-hero--contact .sta-sway-right-2 {
    display: none;
  }
}

/* ==========================================================================
   3. Pedagogy Hero - Orbiting Circles (page-pedagogy.php)
   ========================================================================== */

@keyframes sta-orbit {
  0%   { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes sta-orbit-reverse {
  0%   { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
  100% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
}

@keyframes sta-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

.sta-orbit-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  max-width: 200px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 9999px;
  animation: sta-float 8s ease-in-out infinite;
}

.sta-orbit-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  max-width: 400px;
  aspect-ratio: 1;
  border: 0.5px solid var(--line);
  border-radius: 9999px;
}

.sta-orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: rgba(255, 255, 255, .6);
  border-radius: 9999px;
}

.sta-orbit-dot--1 { animation: sta-orbit 20s linear infinite; }
.sta-orbit-dot--2 { animation: sta-orbit 30s linear infinite reverse; }
.sta-orbit-dot--3 { animation: sta-orbit-reverse 25s linear infinite; }

/* Mobile: mniejsze orbity */
@media (max-width: 768px) {
  .sta-orbit-center {
    width: 40%;
  }
  .sta-orbit-ring {
    width: 80%;
  }
  @keyframes sta-orbit {
    0%   { transform: rotate(0deg) translateX(70px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
  }
  @keyframes sta-orbit-reverse {
    0%   { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
    100% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  }
}

/* ==========================================================================
   4. Single Post Hero - Expanding Rings (single.php)
   ========================================================================== */

@keyframes sta-expand {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes sta-pulse-soft {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.1); opacity: 0.9; }
}

.sta-expand-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  max-width: 250px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9999px;
}

.sta-expand-ring--1 { animation: sta-expand 4s ease-out infinite; }
.sta-expand-ring--2 { animation: sta-expand 4s ease-out infinite 1s; }
.sta-expand-ring--3 { animation: sta-expand 4s ease-out infinite 2s; }
.sta-expand-ring--4 { animation: sta-expand 4s ease-out infinite 3s; }

.sta-expand-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15%;
  max-width: 100px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 9999px;
  animation: sta-pulse-soft 3s ease-in-out infinite;
}

/* Mobile: większe elementy dla widoczności */
@media (max-width: 768px) {
  .sta-expand-ring {
    width: 50%;
  }
  .sta-expand-center {
    width: 25%;
  }
}

/* ==========================================================================
   4b. News/Single Post Hero - Flowing Lines (single.php)
   ========================================================================== */

@keyframes sta-line-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

.sta-news-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 80%, transparent 100%);
}

.sta-news-line--1 { top: 20%; animation: sta-line-pulse 6s ease-in-out infinite; }
.sta-news-line--2 { top: 40%; animation: sta-line-pulse 6s ease-in-out infinite 1.5s; }
.sta-news-line--3 { top: 60%; animation: sta-line-pulse 6s ease-in-out infinite 3s; }
.sta-news-line--4 { top: 80%; animation: sta-line-pulse 6s ease-in-out infinite 0.75s; }

.sta-news-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

.sta-news-dot--1 { top: 30%; left: 15%; animation: sta-line-pulse 5s ease-in-out infinite; }
.sta-news-dot--2 { top: 50%; right: 20%; animation: sta-line-pulse 5s ease-in-out infinite 1.5s; }
.sta-news-dot--3 { top: 70%; left: 25%; animation: sta-line-pulse 5s ease-in-out infinite 0.75s; }
.sta-news-dot--4 { top: 45%; right: 30%; animation: sta-line-pulse 5s ease-in-out infinite 2.5s; }

/* ==========================================================================
   5. Repertoire Hero - Theater Curtain (page-repertoire.php)
   ========================================================================== */

@keyframes sta-curtain-sway {
  0%, 100% { transform: skewY(0deg) translateX(0); }
  25%      { transform: skewY(1deg) translateX(2%); }
  75%      { transform: skewY(-1deg) translateX(-2%); }
}

@keyframes sta-curtain-sway-reverse {
  0%, 100% { transform: skewY(0deg) translateX(0); }
  25%      { transform: skewY(-1deg) translateX(-2%); }
  75%      { transform: skewY(1deg) translateX(2%); }
}

@keyframes sta-spotlight-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.1); }
}

@keyframes sta-line-wave {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.05); }
}

.sta-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(
    to bottom,
    rgba(178, 3, 3, 0.15) 0%,
    rgba(178, 0, 0, 0.08) 50%,
    rgba(178, 0, 0, 0.15) 100%
  );
  border: 0.5px solid var(--line);
}

.sta-curtain--left {
  left: 0;
  border-radius: 0 0 50% 0;
  transform-origin: top left;
  animation: sta-curtain-sway 12s ease-in-out infinite;
}

.sta-curtain--right {
  right: 0;
  border-radius: 0 0 0 50%;
  transform-origin: top right;
  animation: sta-curtain-sway-reverse 14s ease-in-out infinite;
}

.sta-curtain-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
  transform-origin: top center;
}

.sta-curtain-line--1 {
  left: 20%;
  animation: sta-line-wave 8s ease-in-out infinite;
}
.sta-curtain-line--2 {
  left: 50%;
  animation: sta-line-wave 10s ease-in-out infinite 1s;
}
.sta-curtain-line--3 {
  left: 80%;
  animation: sta-line-wave 9s ease-in-out infinite 2s;
}

.sta-spotlight {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60%;
  max-width: 400px;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 9999px;
  animation: sta-spotlight-pulse 6s ease-in-out infinite;
}

/* Mobile: węższe kurtyny */
@media (max-width: 768px) {
  .sta-curtain {
    width: 25%;
  }
  .sta-spotlight {
    width: 80%;
  }
  .sta-curtain-line--1 { left: 15%; }
  .sta-curtain-line--3 { left: 85%; }
}

/* ==========================================================================
   Reduced Motion - Respect User Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sta-dot--left,
  .sta-dot--right,
  .sta-pulse,
  .sta-sway-left-1,
  .sta-sway-left-2,
  .sta-sway-right-1,
  .sta-sway-right-2,
  .sta-orbit-center,
  .sta-orbit-dot--1,
  .sta-orbit-dot--2,
  .sta-orbit-dot--3,
  .sta-expand-ring--1,
  .sta-expand-ring--2,
  .sta-expand-ring--3,
  .sta-expand-ring--4,
  .sta-expand-center,
  .sta-curtain--left,
  .sta-curtain--right,
  .sta-curtain-line,
  .sta-spotlight {
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Custom Video Player Component
   ========================================================================== */

.custom-video {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.custom-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity .3s;
}

.custom-video__poster--canvas {
  background: #111;
}

.custom-video.has-started .custom-video__poster {
  opacity: 0;
  pointer-events: none;
}

.custom-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: opacity .3s;
  pointer-events: none;
}

.custom-video.is-playing .custom-video__overlay {
  opacity: 0;
}

.custom-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-video__play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: opacity .3s, transform .2s, background-color .2s;
  cursor: pointer;
}

.custom-video__play-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

.custom-video__play-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.custom-video.is-playing .custom-video__play-btn {
  opacity: 0;
  pointer-events: none;
}

.custom-video__controls {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: none;
  gap: .5rem;
  z-index: 10;
}

.custom-video.is-playing .custom-video__controls {
  display: flex;
}

.custom-video__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background-color .2s, transform .1s;
  cursor: pointer;
  border: none;
}

.custom-video__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.custom-video__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.custom-video__btn:active {
  transform: scale(0.98);
}

/* Video player icon states */
.custom-video__btn .icon-pause,
.custom-video__btn .icon-muted,
.custom-video__btn .icon-exitfs,
.custom-video__btn .icon-cc-on {
  display: none;
}

.custom-video.is-playing .custom-video__btn[data-action="playpause"] .icon-play {
  display: none;
}

.custom-video.is-playing .custom-video__btn[data-action="playpause"] .icon-pause {
  display: block;
}

.custom-video.is-muted .custom-video__btn[data-action="mute"] .icon-unmuted {
  display: none;
}

.custom-video.is-muted .custom-video__btn[data-action="mute"] .icon-muted {
  display: block;
}

.custom-video.is-fullscreen .custom-video__btn[data-action="fullscreen"] .icon-enterfs {
  display: none;
}

.custom-video.is-fullscreen .custom-video__btn[data-action="fullscreen"] .icon-exitfs {
  display: block;
}

.custom-video.has-captions .custom-video__btn[data-action="captions"] .icon-cc-off {
  display: none;
}

.custom-video.has-captions .custom-video__btn[data-action="captions"] .icon-cc-on {
  display: block;
}


/* ==========================================================================
   Reviews Mobile Slider (Splide)
   ========================================================================== */

#opinie-splide-mb .splide__track {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

#opinie-splide-mb .splide__arrows {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 1rem;
}

#opinie-splide-mb .splide__arrow {
  position: static;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

#opinie-splide-mb .splide__arrow svg {
  width: 29px;
  height: 28px;
}

#opinie-splide-mb .splide__pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.75rem;
  display: flex;
  gap: .5rem;
  z-index: 20;
}

#opinie-splide-mb .splide__pagination__page {
  width: .5rem;
  height: .5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, .25);
}

#opinie-splide-mb .splide__pagination__page.is-active {
  background: rgba(0, 0, 0, .9);
}

/* ==========================================================================
   6. Signup Hero - Rising Stage Steps (page-signup.php)
   ========================================================================== */

/* Central spotlight glow */
.stage-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 500px;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    transparent 70%
  );
  border-radius: 9999px;
  animation: stage-spotlight-breathe 6s ease-in-out infinite;
}

@keyframes stage-spotlight-breathe {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Stage steps - horizontal lines rising from bottom */
.stage-step {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 15%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 85%,
    transparent 100%
  );
  transform-origin: center bottom;
}

.stage-step--1 {
  bottom: 10%;
  animation: stage-step-rise 8s ease-in-out infinite;
}

.stage-step--2 {
  bottom: 25%;
  animation: stage-step-rise 8s ease-in-out infinite 0.8s;
}

.stage-step--3 {
  bottom: 40%;
  animation: stage-step-rise 8s ease-in-out infinite 1.6s;
}

.stage-step--4 {
  bottom: 55%;
  animation: stage-step-rise 8s ease-in-out infinite 2.4s;
}

.stage-step--5 {
  bottom: 70%;
  animation: stage-step-rise 8s ease-in-out infinite 3.2s;
}

@keyframes stage-step-rise {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(20px) scaleX(0.7);
  }
  40%, 60% {
    opacity: 0.7;
    transform: translateY(0) scaleX(1);
  }
}

/* Mobile: adjust spotlight */
@media (max-width: 768px) {
  .stage-spotlight {
    width: 90%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stage-spotlight,
  .stage-step {
    animation: none !important;
  }

  .stage-step {
    opacity: 0.4;
    transform: none;
  }

  .stage-spotlight {
    opacity: 0.8;
    transform: translate(-50%, -50%);
  }
}

body.a11y-no-animations .stage-spotlight,
body.a11y-no-animations .stage-step {
  animation: none !important;
}

body.a11y-no-animations .stage-step {
  opacity: 0.4;
  transform: none;
}

body.a11y-no-animations .stage-spotlight {
  opacity: 0.8;
  transform: translate(-50%, -50%);
}