body.sobre-page {
  background: #020202;
}

body.sobre-page main {
  padding: 0;
}

.sobre-section {
  position: relative;
  isolation: isolate;
  min-height: var(--full-viewport-height);
  padding: var(--header-height) 0 0;
}

.sobre-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: var(--full-viewport-height);
  z-index: -2;
  pointer-events: none;
}

.sobre-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.sobre-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: var(--full-viewport-height);
  min-width: 100vw;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9);
  animation: sobreSlideShow 16s infinite;
  will-change: opacity;
}

.sobre-slide:nth-child(1) {
  animation-delay: 0s;
}

.sobre-slide:nth-child(2) {
  animation-delay: 4s;
}

.sobre-slide:nth-child(3) {
  animation-delay: 8s;
}

.sobre-slide:nth-child(4) {
  animation-delay: 12s;
}

.sobre-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.sobre-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4rem;
  max-width: min(95vw, 1600px);
  margin: 0 auto;
  justify-items: center;
  align-items: center;
  padding: 2rem 4vw 5rem;
  text-align: center;
}

.sobre-block {
  width: 100%;
  max-width: min(95vw, 1600px);
  min-height: var(--full-viewport-height);
  display: grid;
  place-items: center;
  gap: 1.35rem;
  text-align: center;
  padding: 1.5rem 0 3.5rem;
}

.sobre-block:first-child {
  min-height: calc(var(--full-viewport-height) - var(--header-height));
  padding: clamp(2.5rem, 10vh, 4.5rem) 4vw 3.5rem;
  align-items: center;
  justify-items: center;
  transform: translateY(-120px);
}

.sobre-page main {
  padding-top: 0;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-height, 96px);
  scroll-behavior: smooth;
}

.sobre-page .sobre-block {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.sobre-block h2,
.sobre-block h3 {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  margin: 0 auto;
}

.sobre-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.sobre-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 1100px;
}

.sobre-container-right {
  flex-direction: row;
}

.sobre-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-right: -40px;
}

.sobre-vertical-right {
  justify-content: center;
  margin-left: -40px;
}

.sobre-word {
  font-family: inherit;
  font-weight: 700;
  font-size: 64px;
  letter-spacing: 0.12em;
  color: #f4f2ee;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.sobre-vertical-right .sobre-word {
  writing-mode: vertical-lr;
  transform: none;
}

.sobre-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  align-items: flex-start;
  max-width: 820px;
}

.sobre-copy-right {
  text-align: right;
  align-items: flex-end;
}

.sobre-block p {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(2rem, 2.6vw, 1.12rem);
  line-height: 1.7;
}

.sobre-block .eyebrow {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(0.2rem, 2.6vw, 1.12rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
}

.sobre-block.is-active h2,
.sobre-block.is-active h3,
.sobre-block.is-active p {
  color: #fff;
}

@media (max-width: 960px) {
  .sobre-section {
    padding: 4rem 5vw;
  }

  .sobre-block {
    min-height: 80vh;
    padding: 1.2rem 0 3rem;
  }

  .sobre-block p {
    font-size: 1rem;
  }

  .sobre-container,
  .sobre-container-right {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }
  

  

  .sobre-word {
    font-size: clamp(4rem, 6vw, 3.2rem)
  }
  
  .sobre-vertical-right {
    margin-left: -20px;
    gap: 0.25rem;
  }
  .sobre-vertical{
    margin-right: -20px;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .sobre-block {
    min-height: 72vh;
    padding: 0.5rem 0 2rem;
  }

  .sobre-stack {
    gap: 2.4rem;
  }

  .sobre-block:first-child {
    transform: translateY(-50px);
    padding: clamp(2rem, 8vh, 3rem) 5vw 2.5rem;
  }

  .sobre-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 95%;
  }

  .sobre-container,
  .sobre-container-right {
    gap: 0.9rem;
  }

  .sobre-word {
    font-size: clamp(4rem, 6vw, 3.2rem);
    letter-spacing: 0.08em;
  }

  
}

@keyframes sobreStageDrift {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sobreSlideShow {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes sobreActivePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(232, 146, 60, 0.12));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(232, 146, 60, 0.3));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sobre-page .sobre-stage {
    animation: sobreStageDrift 18s ease-in-out infinite;
  }

  .sobre-page .sobre-block.is-active {
    animation: sobreActivePulse 10s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobre-slide {
    animation: none;
  }

  .sobre-slide:not(:first-child) {
    opacity: 0;
  }

  .sobre-slide:first-child {
    opacity: 1;
  }
}
