/* ==========================================================================
   NOSSA BAIXADA — A PINTURA DO ESTÁDIO
   Hero harmonizado + câmera arquitetônica + leitura leve (Outfit + Birthstone)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SEÇÃO 1 · CENA DE ABERTURA — A PINTURA DO ESTÁDIO
   -------------------------------------------------------------------------- */
.bx-hero {
  color: #f4f2ee;
}

.bx-hero__wall {
  background:
    radial-gradient(110% 85% at 72% 45%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #3c3c41 0%, #2b2b2f 48%, #1e1e21 100%);
}

.bx-hero__paint {
  position: absolute;
  top: 50%;
  left: -4%;
  right: -4%;
  height: clamp(64px, 9svh, 88px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: translateY(-50%);
  opacity: calc(var(--p-paint-a, 0) * 0.72);
  pointer-events: none;
  z-index: 0;
  border-radius: 6px;
  overflow: hidden;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

.bx-paint-half {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
  will-change: transform;
}

.bx-paint-half--left {
  transform: scaleX(calc(0.14 + var(--p-paint-a, 0) * 0.86));
  transform-origin: right center;
}

.bx-paint-half--right {
  transform: scaleX(calc(0.14 + var(--p-paint-b, 0) * 0.86));
  transform-origin: left center;
}

.bx-paint-band {
  display: block;
}

.bx-paint-band--white {
  background: #f2efea;
}

.bx-paint-band--red {
  background: #b8121a;
}

.bx-hero__figure {
  position: relative;
}

.bx-hero__jersey {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.58));
}

/* --------------------------------------------------------------------------
   SEÇÃO 2 · MANIFESTO & FATOS
   -------------------------------------------------------------------------- */
.bx-manifesto__title {
  margin-top: 20px;
}

.bx-manifesto__title em {
  color: var(--page-accent);
}

.bx-manifesto__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 54ch));
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 60px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--page-border);
}

.bx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 92px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--page-border);
}

.bx-fact__year {
  display: block;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--page-accent);
}

.bx-fact h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.bx-fact p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--page-muted);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   SEÇÃO 3 · CÂMERA ARQUITETÔNICA
   -------------------------------------------------------------------------- */
.bx-blueprint__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .bx-blueprint__grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 56px;
  }
}

.bx-viewport {
  position: relative;
  aspect-ratio: 4 / 4.4;
  max-height: 70svh;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--page-border);
  background: #1b1b1e;
  display: grid;
  place-items: center;
  padding: 20px;
}

.bx-viewport__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.75s var(--ease-expo), opacity 0.25s ease;
}

.bx-viewport__img.is-swapping {
  opacity: 0.25;
}

.bx-viewport__coord {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.85);
  color: #f4f2ee;
  border: 1px solid rgba(244, 242, 238, 0.18);
}

.bx-h2 {
  margin: 16px 0 14px;
}

.bx-h2 em {
  color: var(--page-accent);
}

.bx-text {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.68;
  color: var(--page-muted);
  max-width: 46ch;
}

.bx-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 24px 0;
}

@media (min-width: 560px) {
  .bx-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bx-tab {
  appearance: none;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: rgba(18, 18, 20, 0.24);
  color: #f4f2ee;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-expo);
}

.bx-tab strong {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.bx-tab span {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--page-muted);
}

.bx-tab.is-active,
.bx-tab:hover {
  background: #f4f2ee;
  color: #1c1c1f;
  border-color: #f4f2ee;
}

.bx-tab.is-active span,
.bx-tab:hover span {
  color: #4f4b48;
}

.bx-active-detail {
  padding-top: 16px;
  border-top: 1px solid var(--page-border);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: #f4f2ee;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   SEÇÃO 4 · PAUSA EDITORIAL — CONCRETO, TINTA E OITENTA ANOS
   -------------------------------------------------------------------------- */
.bx-stadium-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bx-stadium-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 66svh;
  overflow: hidden;
  border-radius: 14px;
}

.bx-stadium-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: translate3d(0, calc((var(--p-scene, 0.5) - 0.5) * -6%), 0) scale(1.07);
  transform-origin: center;
  will-change: transform;
}

.bx-stadium-caption {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

@media (min-width: 900px) {
  .bx-stadium-caption {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
  }
}

.bx-stadium-quote em {
  color: var(--page-accent);
}

/* --------------------------------------------------------------------------
   SEÇÃO 5 · MONUMENTO — SELO DOS 80 ANOS E GUARDIÃO DA META
   -------------------------------------------------------------------------- */
.bx-shrine__layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.bx-shrine__ghost {
  position: absolute;
  top: -0.2em;
  right: -0.02em;
  z-index: 0;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(248, 245, 240, 0.1);
  user-select: none;
  pointer-events: none;
  transform: translate3d(0, calc((0.5 - var(--p-shrine, 0.5)) * 4svh), 0);
  will-change: transform;
}

.bx-shrine__emblem {
  position: relative;
  z-index: 1;
  max-width: 840px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 240, 0.22);
}

.bx-shrine__emblem img {
  width: 100%;
  height: auto;
}

.bx-shrine__lower {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .bx-shrine__lower {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }
}

.bx-shrine__back {
  display: grid;
  place-items: center;
}

.bx-shrine__back img {
  width: min(80vw, 420px);
  max-height: 60svh;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(24, 4, 5, 0.45));
}

.bx-shrine__title {
  margin: 16px 0;
}

.bx-shrine__title em {
  color: var(--page-accent);
}

/* --------------------------------------------------------------------------
   SEÇÃO 6 · ENCERRAMENTO
   -------------------------------------------------------------------------- */
.bx-finale__wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 60px);
}

.bx-finale__line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--page-border);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--page-muted);
}

.bx-finale__statement em {
  color: var(--page-accent);
}

.bx-finale__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.bx-finale__place {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.22;
  padding-block: 0.08em;
}

.bx-finale__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--page-border);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.bx-finale__link:hover {
  border-color: var(--page-fg);
  background: var(--page-surface);
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bx-manifesto__grid,
  .bx-facts,
  .bx-stadium-caption {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .bx-hero__paint {
    top: 32%;
    height: clamp(56px, 8svh, 74px);
    opacity: 0.62;
  }
}

@media (max-width: 720px) {
  .bx-facts {
    gap: 28px;
  }

  .bx-viewport {
    max-height: 58svh;
  }

  .bx-shrine__ghost {
    font-size: clamp(7rem, 36vw, 12rem);
    top: -0.14em;
  }

  .bx-finale__line {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .bx-tabs {
    gap: 8px;
  }

  .bx-tab {
    padding: 12px 13px;
  }
}

/* --------------------------------------------------------------------------
   MOVIMENTO REDUZIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bx-paint-half {
    transform: none !important;
  }

  .bx-stadium-photo__img,
  .bx-shrine__ghost {
    transform: none !important;
  }
}
