/* Scroll Story Section — sticky text + rotating arrow */
.srs-section {
  --srs-bg: #ffffff;
  --srs-text: #000000;
  --srs-text-muted: #9a9a9a;
  --srs-accent: #e10600;
  --srs-font: "Bebas Neue", Sans-serif;
  --srs-label-font: "News Cycle", Sans-serif;
  --srs-track-height: 300vh;

  position: relative;
  height: var(--srs-track-height);
  background: var(--srs-bg);
  color: var(--srs-text);
}

.srs-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  box-sizing: border-box;
  overflow: hidden;
}

.srs-slides {
  position: relative;
  width: min(1100px, 94vw);
  min-height: 3.5em;
  display: grid;
  place-items: center;
  text-align: center;
}

.srs-slide-block {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}

.srs-slide-block.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Inside blocks, only the block controls show/hide */
.srs-slide-block .srs-slide,
.srs-slide-block .srs-label {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  grid-area: auto !important;
  position: relative !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* Legacy markup support */
.srs-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}

.srs-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Beat Elementor kit h2 rules (.elementor-kit-* h2) */
.srs-section .srs-slides h2.srs-headline,
.srs-section h2.srs-headline {
  font-family: "Bebas Neue", Sans-serif !important;
  font-weight: 700 !important;
  font-size: 110px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  margin: 0 !important;
}

.srs-arrow-wrap {
  margin-top: 2.25rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  will-change: transform;
}

.srs-arrow {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--srs-text);
  transform-origin: 50% 50%;
}

.srs-labels {
  position: relative;
  margin-top: 0.85rem;
  min-height: 1.25rem;
  width: 10rem;
  display: grid;
  place-items: center;
}

.srs-section .srs-label {
  margin: 0.85rem 0 0;
  font-family: "News Cycle", Sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #000000 !important;
}

.srs-labels .srs-label {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  margin: 0;
}

.srs-labels .srs-label.is-active {
  opacity: 1;
  visibility: visible;
}

/* —— Mobile: both headings visible, no scroll animation —— */
@media (max-width: 767px) {
  .srs-section,
  .srs-section.srs-no-anim {
    height: auto !important;
    min-height: 0 !important;
  }

  .srs-pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 3.5rem 1rem 3.5rem !important;
    gap: 0;
  }

  .srs-slides {
    display: flex !important;
    flex-direction: column;
    gap: 3.25rem;
    min-height: 0 !important;
    place-items: stretch;
  }

  .srs-slide-block,
  .srs-slide-block.is-active,
  .srs-slide,
  .srs-slide.is-active {
    grid-area: auto !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }

  .srs-section .srs-slides h2.srs-headline,
  .srs-section h2.srs-headline {
    font-size: 42px !important;
    line-height: 1.05 !important;
  }

  .srs-arrow-wrap {
    display: none !important;
  }

  .srs-labels {
    display: none !important;
  }

  .srs-section .srs-label {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Demo page chrome (not needed inside WP) */
.srs-demo-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: var(--srs-label-font);
}

.srs-demo-logo {
  color: var(--srs-accent);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.srs-demo-logo span {
  display: block;
  color: #222;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.srs-demo-spacer {
  height: 45vh;
  display: grid;
  place-items: center;
  font-family: var(--srs-label-font);
  color: #888;
  font-size: 0.9rem;
}

.srs-demo-spacer.bottom {
  height: 60vh;
}
