/*
 * p-o-artista.css — componentes exclusivos da página /o-artista/.
 * Depende de style.css e pages.css (tokens, .eyebrow, .section-top, .gold-frame,
 * .works/.works-grid, .artist-quote, .signature, .empty-frame já carregados antes).
 */

/* ---------- Manifesto em duas colunas (.artista-manifesto), só no desktop ---------- */
/* Imagem fica escondida até o breakpoint de desktop: abaixo disso o manifesto continua só texto, como antes. */
.artista-manifesto-media { display: none }

@media (min-width: 1051px) {
  #trajetoria.artista-manifesto {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    grid-template-rows: repeat(6, auto);
    column-gap: 9%;
    align-items: center;
    align-content: center;
    text-align: left;
    padding: 100px 7%;
  }

  .artista-manifesto-media {
    display: block;
    position: relative;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }

  .artista-manifesto-media .artwork-window { height: 470px }
  /* Mesmo tratamento de cor da foto usada na home (.artist-image>img). */
  .artista-manifesto-media .artwork-window > img,
  .artista-manifesto-media .artwork-window > :where(picture) > img { filter: saturate(.78) }

  /* Todo o texto (eyebrow, título, parágrafos, link) forma a segunda coluna. */
  #trajetoria.artista-manifesto > :not(.artista-manifesto-media) { grid-column: 2 }

  #trajetoria.artista-manifesto .eyebrow { text-align: left }

  /* Substitui a largura fixa de 640px centralizada por ~60ch alinhado à esquerda. */
  #trajetoria.artista-manifesto > p:not(.eyebrow):not(.pull-quote) {
    max-width: 60ch;
    margin-left: 0;
    margin-right: 0;
  }

  #trajetoria.artista-manifesto .link-arrow { margin-top: 4px }
}

/* ---------- Faixa de capítulos (.artista-chapters) ---------- */
.artista-chapters { padding: 96px 7% 100px; background: #faf8f1 }

/* Cor do em do título mais viva que o padrão pálido de .section-top h2 em. */
.artista-chapters .section-top h2 em { color: #758365 }

.artista-chapters-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.artista-chapters-list li {
  position: relative;
  padding: 0 26px;
  border-left: 1px solid #dcd6c2;
}

.artista-chapters-list li:first-child { border-left: none; padding-left: 0 }

.artista-chapter-num {
  display: block;
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

/* Traço fino dourado sob o numeral, reforçando a linha do tempo dos 5 capítulos. */
.artista-chapter-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--gold);
}

/* Traço "desenhado" sob cada numeral, em cascata: reaproveita o gatilho global
   fx-reveal (.js .fx-reveal-target / .fx-visible aplicados por js/fx-reveal.js
   na própria section), sem observer, sem duplicar o fade/translate que o
   fx-reveal já faz na section inteira. Sem JS, a linha já aparece pronta. */
.js .fx-reveal-target .artista-chapter-num::after {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s ease .12s;
}

.js .fx-reveal-target.fx-visible .artista-chapter-num::after { transform: scaleX(1) }

.js .fx-reveal-target .artista-chapters-list li:nth-child(2) .artista-chapter-num::after { transition-delay: .2s }
.js .fx-reveal-target .artista-chapters-list li:nth-child(3) .artista-chapter-num::after { transition-delay: .28s }
.js .fx-reveal-target .artista-chapters-list li:nth-child(4) .artista-chapter-num::after { transition-delay: .36s }
.js .fx-reveal-target .artista-chapters-list li:nth-child(5) .artista-chapter-num::after { transition-delay: .44s }

@media (prefers-reduced-motion: reduce) {
  .js .fx-reveal-target .artista-chapter-num::after { transition: none; transform: scaleX(1) }
}

/* ---------- Divisor dourado entre "capítulos" e "compromisso" (.artista-chapters .brush-divider) ---------- */
/* Variante larga do divisor de pincel (design.md 6.15), em tom dourado — reaproveita
   .brush-divider (só a marcação), com cores próprias desta página. */
.artista-chapters .brush-divider {
  position: relative;
  width: min(560px, 82%);
  height: 1px;
  margin: 56px auto 0;
  background: linear-gradient(90deg, transparent, rgba(168, 140, 88, .5) 15%, rgba(168, 140, 88, .5) 85%, transparent);
  opacity: 1;
  clip-path: none;
  transform: none;
}

.artista-chapters .brush-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 6px;
  background: var(--gold);
  opacity: .8;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  clip-path: polygon(0 34%, 12% 18%, 70% 4%, 100% 27%, 92% 58%, 100% 77%, 63% 88%, 4% 100%, 9% 68%, 0 58%);
}

@media (max-width: 700px) { .artista-chapters .brush-divider { margin-top: 44px } }

.artista-chapter-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.artista-chapter-text {
  font-size: 14px;
  line-height: 1.7;
  color: #57614e;
}

@media (max-width: 1050px) {
  .artista-chapters { padding: 74px 6% 78px }
  .artista-chapters-list { grid-template-columns: repeat(3, 1fr); gap: 34px 0 }
  .artista-chapters-list li:nth-child(3n+1) { border-left: none; padding-left: 0 }
  .artista-chapters-list li:nth-child(-n+3) { border-left: 1px solid #dcd6c2 }
  .artista-chapters-list li:nth-child(1) { border-left: none }
}

@media (max-width: 700px) {
  .artista-chapters { padding: 60px 6% 66px }
  .artista-chapters-list {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 480px;
  }
  .artista-chapters-list li {
    border-left: none !important;
    padding: 22px 0;
    border-top: 1px solid #dcd6c2;
  }
  .artista-chapters-list li:first-child { border-top: none; padding-top: 0 }
}

/* ---------- Compromisso, seção escura (.artista-creed) ---------- */
.artista-creed {
  padding: 100px 7%;
  text-align: center;
  background: radial-gradient(ellipse at 45% 10%, #334938 0, #1c3027 65%, #1b2d24 100%);
  color: #e9e8d9;
}

.artista-creed .eyebrow { color: #c6bc98; display: block; text-align: center }

.artista-creed .artist-quote {
  max-width: 780px;
  margin: 22px auto 0;
}

.artista-creed .artist-quote p {
  color: #f0e9ce;
  font-size: clamp(24px, 3vw, 34px);
}

.artista-creed .artist-quote cite { color: #b9bfaa }

.artista-creed .signature {
  margin: 28px auto 0;
  color: #8b9a80;
  text-align: center;
}

@media (max-width: 1050px) { .artista-creed { padding: 78px 6% } }
@media (max-width: 700px) { .artista-creed { padding: 62px 6% } }

/* ---------- Ajuste fino da grade de 3 obras (.artista-works-grid) ---------- */
.artista-works-grid { grid-template-columns: repeat(3, 1fr) }

@media (max-width: 1050px) { .artista-works-grid { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 700px) { .artista-works-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 550px) { .artista-works-grid { grid-template-columns: 1fr } }

/* ---------- Links de continuidade, incorporados como rodapé de #obras (.artista-links-inline) ---------- */
/* Fica dentro de .works (fundo escuro compartilhado) em vez de section própria com padding cheio. */
.works .artista-links-inline {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(233, 232, 217, .15);
  text-align: center;
}

.works .artista-links-inline .little-line { display: none }

.works .artista-links-inline .eyebrow { display: block; text-align: center; margin-bottom: 20px }

.works .artista-links-inline .artista-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
}

.works .artista-links-inline .link-arrow {
  display: inline-flex;
  align-items: center;
  padding-block: 12px;
  color: #d7dcc4;
}

.works .artista-links-inline .link-arrow:hover { color: #fff }

@media (max-width: 700px) {
  .works .artista-links-inline { margin-top: 40px; padding-top: 28px }
  .works .artista-links-inline .artista-links-list { flex-direction: column; align-items: center; gap: 16px }
}

/* Acabamento editorial no desktop: linha dourada e links espaçados com divisória. */
@media (min-width: 1051px) {
  .works .artista-links-inline { margin-top: 56px; padding-top: 40px }

  .works .artista-links-inline .little-line {
    display: block;
    width: 30px;
    height: 1px;
    margin: 0 auto 28px;
    background: var(--gold);
  }

  .works .artista-links-inline .eyebrow { margin-bottom: 30px }

  .works .artista-links-inline .artista-links-list { gap: 0 }

  .works .artista-links-inline .artista-links-list a.link-arrow { padding-inline: 44px; position: relative }

  .works .artista-links-inline .artista-links-list a.link-arrow + a.link-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(233, 232, 217, .3);
  }
}

/* ---------- Revisão do coordenador ---------- */
/* Parágrafos da trajetória com respiro. */
#trajetoria p + p { margin-top: 18px }
/* Citação clara: evita duas seções escuras seguidas (a de obras já é escura). */
.artista-creed { background: #f6f3e9; color: var(--ink) }
.artista-creed .eyebrow { color: #7b8a6c }
.artista-creed .artist-quote { border-left: 0; padding-left: 0 }
.artista-creed .artist-quote p { color: var(--ink) }
.artista-creed .artist-quote cite { display: none }
.artista-creed .signature { color: #758365 }
