/* ==========================================================================
   GERAÇÃO 2007 — AS LINHAS FINAS
   Hero harmonizado + cortina e trilha + leitura leve (Outfit + Birthstone)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SEÇÃO 1 · CENA DE ABERTURA — AS LINHAS FINAS
   -------------------------------------------------------------------------- */
.g07-hero {
  color: #1d1112;
}

.g07-hero__paper {
  background:
    radial-gradient(120% 95% at 74% 24%, #fffdf9 0%, #f7f4f0 54%, #e9e1d8 100%);
}

.g07-hero__script {
  color: #b81118;
}

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

.g07-hero__year {
  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(184, 17, 24, 0.09);
  user-select: none;
  pointer-events: none;
  transform: translate3d(0, calc((0.5 - var(--p-year, 0.5)) * 6svh), 0);
  will-change: transform;
}

.g07-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
}

.g07-line {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p-line-1, 1));
}

.g07-line:nth-child(1) { stroke: #d3181f; stroke-width: 2.2; stroke-dashoffset: calc(1 - var(--p-line-1, 1)); }
.g07-line:nth-child(2) { stroke: #6d070e; stroke-width: 1.5; stroke-dashoffset: calc(1 - var(--p-line-2, 1)); }
.g07-line:nth-child(3) { stroke: #d3181f; stroke-width: 2.2; stroke-dashoffset: calc(1 - var(--p-line-3, 1)); }
.g07-line:nth-child(4) { stroke: #6d070e; stroke-width: 1.5; stroke-dashoffset: calc(1 - var(--p-line-4, 1)); }
.g07-line:nth-child(5) { stroke: #d3181f; stroke-width: 2.2; stroke-dashoffset: calc(1 - var(--p-line-5, 1)); }
.g07-line:nth-child(6) { stroke: #6d070e; stroke-width: 1.5; stroke-dashoffset: calc(1 - var(--p-line-6, 1)); }

.g07-hero__jersey {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 34px rgba(64, 12, 16, 0.24));
}

/* --------------------------------------------------------------------------
   SEÇÃO 2 · MANIFESTO — LINHAS FINAS, UMA LEMBRANÇA
   -------------------------------------------------------------------------- */
.g07-manifesto__title {
  margin-top: 20px;
}

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

.g07-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 58ch);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 60px);
}

.g07-pigments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.g07-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.g07-swatch__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.g07-swatch__dot--vivo {
  background: #d3181f;
}

.g07-swatch__dot--grena {
  background: #6d070e;
}

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

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

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

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

/* --------------------------------------------------------------------------
   SEÇÃO 3 · CORTINA FRENTE ↔ COSTAS
   -------------------------------------------------------------------------- */
.g07-morph-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .g07-morph-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}

.g07-h2 {
  margin: 16px 0 18px;
}

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

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

.g07-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.g07-pill {
  appearance: none;
  border: 1px solid rgba(249, 246, 242, 0.42);
  background: transparent;
  color: #f9f6f2;
  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;
}

.g07-pill.is-active,
.g07-pill:hover {
  background-color: #f9f6f2;
  color: #9e0d14;
  border-color: #f9f6f2;
}

.g07-curtain {
  position: relative;
  width: 100%;
  height: clamp(400px, 64svh, 600px);
  border-radius: 16px;
  overflow: hidden;
  background: #f5f2ed;
  border: 1px solid rgba(249, 246, 242, 0.25);
  user-select: none;
}

.g07-curtain__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.g07-curtain__layer img {
  height: 100%;
  max-height: 92%;
  width: auto;
  object-fit: contain;
}

.g07-curtain__layer--back {
  background: #efeae4;
}

.g07-curtain__layer--front {
  background: #faf8f5;
  clip-path: inset(0 48% 0 0);
}

.g07-curtain__badge {
  position: absolute;
  top: 16px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
}

.g07-curtain__badge--left {
  left: 16px;
  background: #b81118;
  color: #fff;
}

.g07-curtain__badge--right {
  right: 16px;
  background: #59070c;
  color: #fff;
}

.g07-curtain__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: #b81118;
  transform: translateX(-50%);
  pointer-events: none;
}

.g07-curtain__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #b81118;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(24, 6, 7, 0.35);
}

.g07-curtain__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.g07-curtain:focus-within .g07-curtain__handle {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   SEÇÃO 4 · TRILHA HORIZONTAL DE DETALHES
   -------------------------------------------------------------------------- */
.g07-rail-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.g07-rail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.g07-rail-head .g07-h2 {
  margin-bottom: 0;
}

.g07-rail-nav {
  display: inline-flex;
  gap: 10px;
}

.g07-arrow {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(249, 246, 242, 0.34);
  background: transparent;
  color: #f9f6f2;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.g07-arrow:hover {
  background-color: #f9f6f2;
  color: #59070c;
}

.g07-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.g07-frame {
  flex: 0 0 min(86vw, 540px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.g07-frame__media {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f2ed;
  border: 1px solid rgba(249, 246, 242, 0.16);
}

.g07-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g07-frame__media--collar {
  aspect-ratio: 2 / 1;
}

.g07-frame__media--collar img {
  object-fit: contain;
}

.g07-frame__cap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g07-frame__cap strong {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.g07-frame__cap span {
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--page-muted);
  line-height: 1.6;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   SEÇÃO 5 · PAUSA EDITORIAL
   -------------------------------------------------------------------------- */
.g07-pause__wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 52px);
}

.g07-cinema {
  overflow: hidden;
  border-radius: 14px;
}

.g07-cinema__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: translate3d(0, calc((var(--p-cinema, 0.5) - 0.5) * -5%), 0) scale(1.04);
  transform-origin: center;
  will-change: transform;
}

.g07-pause__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

/* --------------------------------------------------------------------------
   SEÇÃO 6 · ANATOMIA — COSTAS E A NUCA DA LISTRADA
   -------------------------------------------------------------------------- */
.g07-anatomy__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.g07-anatomy__ghost {
  position: absolute;
  top: -0.22em;
  left: -0.04em;
  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(249, 246, 242, 0.08);
  user-select: none;
  pointer-events: none;
  transform: translate3d(0, calc((0.5 - var(--p-anatomy, 0.5)) * 4svh), 0);
  will-change: transform;
}

.g07-anatomy__back {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.g07-anatomy__back img {
  width: min(80vw, 450px);
  max-height: 66svh;
  object-fit: contain;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.5));
}

.g07-collar-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
}

.g07-collar-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--page-border);
}

.g07-collar-card__img {
  width: 100%;
  height: auto;
}

.g07-collar__title {
  margin: 14px 0 16px;
}

.g07-collar__title em {
  color: var(--page-accent);
}

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

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

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

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

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

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

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

  .g07-pigments {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .g07-facts {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .g07-curtain {
    height: clamp(350px, 56svh, 500px);
  }

  .g07-anatomy__ghost {
    font-size: clamp(7rem, 36vw, 12rem);
    top: -0.15em;
  }

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

@media (max-width: 430px) {
  .g07-frame {
    flex-basis: 88vw;
  }
}

/* --------------------------------------------------------------------------
   MOVIMENTO REDUZIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .g07-hero__figure,
  .g07-hero__year,
  .g07-cinema__img,
  .g07-anatomy__ghost {
    transform: none !important;
  }

  .g07-line {
    stroke-dashoffset: 0 !important;
  }
}
