/* Cada bloco da página, na ordem em que aparece. */

/* ---------- 1. topo / link da bio ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "photo"
    "links"
    "intro";
  gap: 22px;
  padding-top: 0;
}
.portrait {
  grid-area: photo;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  height: min(46vh, 430px);
  min-height: 270px;
  margin-top: -12px; /* foto sobe, ficando logo abaixo do menu */
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 99%);
  mask-image: linear-gradient(#000 70%, transparent 99%);
}

.who {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: max-content;
  max-width: 100%;
  padding: 10px 22px;
  text-align: center;
  line-height: 1.3;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-button);
  transform: translateX(-50%);
}
.who strong {
  display: block;
  font-size: 18px;
  font-weight: 400;
}
.who span {
  font-size: 12px;
  color: var(--muted);
}

.hero .links {
  grid-area: links;
}

.intro {
  grid-area: intro;
  display: grid;
  gap: 14px;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  margin-top: 26px;
}
.intro p {
  font-size: 17px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      ". photo"
      "intro photo"
      "links photo"
      ". photo";
    grid-template-rows: 1fr auto auto 1fr;
    gap: 24px 64px;
    padding-top: 48px;
  }
  .intro,
  .hero .links {
    justify-self: start;
  }
  .intro {
    margin-top: 0;
  }
  .portrait {
    align-self: stretch;
    height: 100%;
    min-height: 660px;
    max-width: 540px;
    margin-top: 0;
  }
  .portrait img {
    position: absolute;
    inset: 0;
  }
  .who {
    bottom: 30px;
  }
}

/* ---------- 2. faixa de temas ---------- */
.ticker {
  overflow: hidden;
  margin-top: var(--gap);
  padding-block: 20px;
  border-block: 0.5px solid var(--line-strong);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker + section {
  padding-top: calc(var(--gap) * 0.8);
}
.track {
  display: flex;
  width: max-content;
}
.track ul {
  display: flex;
}
.track li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -0.03em;
}
.track li::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-inline: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

/* ---------- foto do grupo ---------- */
.gallery img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--radius-card);
}
.gallery + section {
  padding-top: calc(var(--gap) * 0.75);
}

/* ---------- 3. mentoria: a trilha ---------- */
.mentor {
  display: grid;
  gap: 12px;
}

.trail {
  display: grid;
}
.stop {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0 0 34px 38px;
}
.stop::before {
  /* ponto da trilha */
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition:
    box-shadow 0.45s,
    transform 0.45s;
}
.stop::after {
  /* linha até o próximo ponto */
  content: "";
  position: absolute;
  top: 22px;
  bottom: 3px;
  left: 7px;
  border-left: 1px solid var(--accent);
  transform: scaleY(var(--p, 1));
  transform-origin: top;
}
.stop:last-child {
  padding-bottom: 0;
}
.stop:last-child::after {
  display: none;
}
.stop p {
  font-size: 15px;
  color: var(--muted);
}
.stop h3,
.stop > p,
.stop .chips {
  transition:
    opacity 0.5s,
    translate 0.5s;
}

/* estados controlados por js/animations.js */
.trail.live .stop:not(.on) > * {
  opacity: 0.35;
  translate: 8px 0;
}
.trail.live .stop.on::before {
  box-shadow:
    inset 0 0 0 3px var(--panel),
    inset 0 0 0 8px var(--accent);
  transform: scale(1.15);
}

.facts {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 5vw, 60px);
  color: var(--panel);
  background: var(--ink);
  border-radius: var(--radius-card);
}
.facts h3 {
  font-size: clamp(22px, 3vw, 27px);
}
.facts p {
  font-size: 15px;
  color: var(--on-dark-muted);
}
.facts .btn {
  justify-self: start;
  min-height: 52px;
  color: var(--ink);
  background: var(--panel);
}
.facts .btn .arrow {
  color: var(--muted);
}
.extra {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .mentor {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
  }
  .facts {
    align-content: space-between;
  }
}

/* ---------- 4. frase ---------- */
.quote {
  max-width: 820px;
  margin: 0;
}
.quote p {
  font-size: clamp(27px, 4.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.quote em {
  font-style: normal;
  color: var(--accent-text);
}
.quote footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.quote .w {
  transition: opacity 0.35s;
}

/* ---------- 5. história ---------- */
.story {
  display: grid;
  gap: 30px;
}
.story .head {
  align-content: start;
  margin: 0;
}
.chapters {
  display: grid;
}
.chapter {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-top: 0.5px solid var(--line-strong);
}
.chapter:first-child {
  padding-top: 0;
  border-top: 0;
}
.chapter p {
  max-width: 62ch;
  color: var(--muted);
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 64px;
  }
  .story .head {
    position: sticky;
    top: 40px;
    align-self: start;
  }
}

/* ---------- 6. dúvidas ---------- */
.faq {
  display: grid;
  gap: 8px;
  max-width: 820px;
}
.faq details {
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-button);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-button);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent-text);
  font-size: 20px;
  line-height: 1;
  transition: rotate 0.3s;
}
.faq details[open] summary::after {
  content: "–";
  rotate: 180deg;
}
.faq details p {
  max-width: 62ch;
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 7. contato ---------- */
.contact {
  display: grid;
  gap: 26px;
}
.contact .head {
  margin: 0;
}
.contact .links {
  justify-self: stretch;
  max-width: none;
}
.contact .btn {
  background: var(--canvas);
}
.contact .btn.main {
  background: var(--ink);
}

.number {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 15px;
}
.number b {
  font-weight: 400;
  user-select: all;
}
.copy {
  padding: 4px 14px;
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  letter-spacing: inherit;
  background: none;
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
}

/* ---------- 8. rodapé ---------- */
.site {
  margin-top: var(--gap);
  color: var(--panel);
  background: var(--ink);
}
.site .wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: 50px 110px;
  text-align: center;
}
.site img {
  width: 190px;
}
.site p {
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* botão dentro do cartão da trilha */
.stop .btn {
  justify-self: start;
  min-height: 52px;
  margin-top: 6px;
}
