/* Scroll Expand Hero — companion styles for public/js/scroll-expand-hero.js
   Vanilla port of a React "scroll-jacking" hero: the media box grows as the
   user scrolls/swipes, then releases the page scroll once fully expanded. */
.sxh-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: color 0.7s ease;
}

.sxh-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  transition: opacity 0.1s linear;
}

.sxh-bg-img {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.sxh-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.sxh-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sxh-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
}

.sxh-media {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.sxh-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sxh-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.sxh-media-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s linear;
}

.sxh-media-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.sxh-date {
  font-size: 20px;
  color: #bfdbfe;
  margin: 0;
}

.sxh-hint {
  color: #bfdbfe;
  font-weight: 500;
  text-align: center;
  margin: 4px 0 0;
}

.sxh-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.sxh-title-row.sxh-blend {
  mix-blend-mode: difference;
}

.sxh-title-word {
  font-size: 40px;
  font-weight: 700;
  color: #bfdbfe;
  margin: 0;
  letter-spacing: -0.5px;
}

@media screen and (min-width: 768px) {
  .sxh-title-word {
    font-size: 56px;
  }
}

.sxh-content {
  width: 100%;
  padding: 40px 32px;
  opacity: 0;
  transition: opacity 0.7s ease;
}

@media screen and (min-width: 768px) {
  .sxh-content {
    padding: 56px 64px;
  }
}

.sxh-content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.sxh-content-inner h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1d1d1f;
}

.sxh-content-inner p {
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3c;
  margin: 0 0 20px;
}
