/* ==========================================================================
   HERANÇA 1928 · PRETA · TERCEIRA 2027
   Hero harmonizado + leitura leve (Outfit + Birthstone)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SEÇÃO 1 · CENA DE ABERTURA — A FAIXA DOURADA
   -------------------------------------------------------------------------- */
.gold-hero {
  color: #f5f1e8;
}

.gold-hero__void {
  background:
    radial-gradient(95% 75% at 72% 38%, rgba(218, 174, 105, 0.14), transparent 62%),
    radial-gradient(135% 108% at 50% 28%, #191510 0%, #100f0d 55%, #070605 100%);
}

.gold-hero__spot {
  z-index: 1;
  background:
    radial-gradient(circle 48svh at 72% 48%, rgba(226, 186, 120, 0.2), rgba(226, 186, 120, 0.05) 44%, transparent 70%),
    radial-gradient(140% 110% at 50% 30%, transparent 36%, rgba(5, 4, 4, 0.85) 100%);
  opacity: calc(0.35 + var(--p-spot, 0) * 0.65);
  will-change: opacity;
}

.gold-hero__script {
  color: #e3bc7e;
}

.gold-hero__figure {
  position: relative;
  transform: translate3d(0, calc((1 - var(--p-jersey, 0)) * 2.5svh), 0) scale(calc(1.03 - var(--p-jersey, 0) * 0.03));
  will-change: transform;
}

.gold-hero__year-bg {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(6rem, 15vw, 13.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgba(222, 182, 115, 0.1);
  user-select: none;
  pointer-events: none;
  opacity: calc(0.35 + var(--p-years, 0) * 0.65);
}

.gold-hero__jersey {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.78));
}

.gold-hero__beam {
  position: absolute;
  inset: -10% 26%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(218, 174, 105, 0) 0%,
    rgba(218, 174, 105, 0.24) 30%,
    rgba(234, 198, 140, 0.42) 50%,
    rgba(218, 174, 105, 0.24) 70%,
    rgba(218, 174, 105, 0) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate3d(0, calc((var(--p-band, 0) - 0.5) * 44%), 0);
  opacity: 0.7;
  will-change: transform;
}

.gold-hero__monoglow {
  position: absolute;
  left: 60%;
  top: 26%;
  width: clamp(56px, 7vw, 100px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  background: radial-gradient(circle, rgba(234, 198, 140, 0.45), transparent 70%);
  pointer-events: none;
  opacity: var(--p-glow, 0);
  will-change: opacity;
}

/* --------------------------------------------------------------------------
   SEÇÃO 2 · MANIFESTO — AS PRIMEIRAS CORES DO CLUBE
   -------------------------------------------------------------------------- */
.gold-manifesto__title {
  margin-top: 20px;
}

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

.gold-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 60px);
}

.gold-manifesto__body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.18rem, 1.75vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--page-fg);
  max-width: 38ch;
}

.gold-manifesto__note {
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--page-border);
}

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

.gold-fact__year {
  display: block;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--page-accent);
}

.gold-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;
}

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

/* --------------------------------------------------------------------------
   SEÇÃO 3 · LUZ DE MUSEU
   -------------------------------------------------------------------------- */
.gold-museum__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4.5vw, 68px);
  align-items: center;
}

@media (min-width: 960px) {
  .gold-museum__grid {
    grid-template-columns: 1.04fr 0.96fr;
  }
}

.gold-spotlight-box {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(218, 174, 105, 0.24);
  background: #0a0907;
  padding: clamp(22px, 3vw, 42px);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: crosshair;
  touch-action: manipulation;
}

.gold-spotlight-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 210px at var(--spot-x, 50%) var(--spot-y, 44%),
    rgba(227, 188, 126, 0.34),
    rgba(227, 188, 126, 0.06) 48%,
    rgba(8, 8, 9, 0.72) 82%
  );
  mix-blend-mode: screen;
  z-index: 2;
}

.gold-spotlight-box__img {
  position: relative;
  z-index: 1;
  width: min(100%, 450px);
  max-height: 64svh;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.8));
}

.gold-spotlight-reticle {
  position: absolute;
  left: var(--spot-x, 50%);
  top: var(--spot-y, 44%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #e3bc7e;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  transition: left 0.4s var(--ease-expo), top 0.4s var(--ease-expo);
}

.gold-spotlight-box.is-moving .gold-spotlight-reticle {
  transition: none;
}

.gold-museum__notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gold-museum__title {
  margin: 18px 0 20px;
}

.gold-museum__title em {
  color: var(--page-accent);
}

.gold-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 22px;
}

.gold-preset {
  appearance: none;
  border: 1px solid rgba(218, 174, 105, 0.38);
  background: transparent;
  color: var(--page-fg);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--ease-expo);
}

.gold-preset:hover {
  transform: translateY(-2px);
  border-color: var(--page-accent);
}

.gold-preset.is-active,
.gold-preset[aria-pressed='true'] {
  background-color: var(--page-accent);
  color: #100d08;
  border-color: var(--page-accent);
}

.gold-plaque {
  padding-top: 18px;
  border-top: 1px solid rgba(218, 174, 105, 0.28);
  min-height: 7em;
}

.gold-plaque__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--page-accent);
  margin-bottom: 8px;
}

.gold-plaque__desc {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--page-fg);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   SEÇÃO 4 · CENA DE SCROLL — A FAIXA ATRAVESSA O PRETO
   -------------------------------------------------------------------------- */
.gold-glint {
  color: #f5f1e8;
}

.gold-glint__night {
  background:
    radial-gradient(120% 90% at 72% 24%, rgba(218, 174, 105, 0.12), transparent 55%),
    linear-gradient(180deg, #0c0b09, #151109 60%, #0a0908);
}

.gold-glint__grid {
  position: relative;
  z-index: 2;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: center;
}

.gold-glint__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gold-glint__line {
  display: block;
}

.gold-glint__line--a {
  opacity: calc(0.65 + var(--p-glint-a, 0) * 0.35);
  transform: translate3d(0, calc((1 - var(--p-glint-a, 0)) * 2.5svh), 0);
  will-change: transform, opacity;
}

.gold-glint__line--b {
  opacity: calc(0.65 + var(--p-glint-b, 0) * 0.35);
  transform: translate3d(0, calc((1 - var(--p-glint-b, 0)) * 2.5svh), 0);
  will-change: transform, opacity;
}

.gold-glint__line--b em {
  color: #dfb676;
}

.gold-glint__desc {
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.68;
  color: rgba(245, 241, 232, 0.8);
  max-width: 46ch;
}

.gold-glint__figure {
  position: relative;
  display: grid;
  place-items: center;
}

.gold-glint__jersey {
  height: min(62svh, 580px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.48));
}

.gold-glint__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0 47%,
    rgba(255, 232, 190, 0.56) 49%,
    rgba(255, 247, 214, 0.88) 50%,
    rgba(228, 186, 120, 0.38) 51%,
    transparent 54% 100%);
  background-size: 100% 360%;
  background-position: center calc(var(--p-sweep, 0) * 100%);
  -webkit-mask-image: url('../../img/jerseys/heranca-1928/front.webp');
  mask-image: url('../../img/jerseys/heranca-1928/front.webp');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: calc(1 - var(--p-resolve, 0) * 0.8);
}

.gold-glint__filament {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 43%, rgba(255, 234, 196, 0.42) 50%, transparent 57%);
  -webkit-mask-image: url('../../img/jerseys/heranca-1928/front.webp');
  mask-image: url('../../img/jerseys/heranca-1928/front.webp');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  opacity: calc(var(--p-resolve, 0) * 0.5);
}

.gold-glint__caption {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 174, 105, 0.2);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(245, 241, 232, 0.72);
}

/* --------------------------------------------------------------------------
   SEÇÃO 5 · PAUSA EM OURO PLENO — A GOLA
   -------------------------------------------------------------------------- */
.gold-pause {
  color: #14100a;
}

.gold-pause__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .gold-pause__layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.gold-pause__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gold-pause__copy .ed-kicker {
  color: #5A4424;
}

.gold-pause__statement {
  color: #14100a;
}

.gold-pause__statement em {
  color: #6f5530;
}

.gold-pause__note {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.72;
  color: #5A4424;
  max-width: 46ch;
}

.gold-pause__collar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gold-pause__collar img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(20, 16, 10, 0.22);
}

.gold-pause__cap {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
  color: #5A4424;
  max-width: 50ch;
}

/* --------------------------------------------------------------------------
   SEÇÃO 6 · DÍPTICO NOTURNO
   -------------------------------------------------------------------------- */
.gold-diptych__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4.5vw, 56px);
  align-items: stretch;
}

@media (min-width: 980px) {
  .gold-diptych__grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
  }
}

.gold-diptych__portrait {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.gold-diptych__portrait-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 980px) {
  .gold-diptych__portrait {
    height: 100%;
  }

  .gold-diptych__portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.gold-diptych__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

@media (min-width: 980px) {
  .gold-diptych__back {
    align-items: flex-start;
    text-align: left;
  }
}

.gold-diptych__back-img {
  width: min(76vw, 390px);
  max-height: 52svh;
  margin-top: 0;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.8));
}

.gold-diptych__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gold-diptych__meta .ed-body {
  margin-bottom: 0;
}

.gold-diptych__title em {
  color: var(--page-accent);
}

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

.gold-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);
}

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

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

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

.gold-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;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gold-manifesto__grid,
  .gold-facts {
    grid-template-columns: 1fr;
  }

  .gold-manifesto__note {
    padding-left: 0;
    border-left: 0;
    padding-top: 22px;
    border-top: 1px solid var(--page-border);
  }
}

@media (max-width: 860px) {
  .gold-glint__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gold-glint__figure {
    order: -1;
  }

  .gold-glint__jersey {
    height: clamp(150px, 24svh, 215px);
  }
}

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

  .gold-diptych__back-img {
    max-height: 44svh;
  }

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

/* --------------------------------------------------------------------------
   MOVIMENTO REDUZIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gold-hero__figure,
  .gold-diptych__portrait-img {
    transform: none !important;
  }

  .gold-hero__beam,
  .gold-glint__sweep {
    display: none;
  }

  .gold-hero__spot,
  .gold-hero__year-bg,
  .gold-hero__monoglow,
  .gold-glint__line--a,
  .gold-glint__line--b {
    opacity: 1 !important;
    transform: none !important;
  }
}
