/* =========================================================================
   opcao-b.css - variante de layout "papel técnico"
   Mesma marca, mesma tipografia, mesmo acento (o tema claro vive em
   tema-claro.css, no escopo .paper) e a estrutura própria: trilho de índice
   fixo na lateral, herói 100% tipográfico, projetos em destaque + linha,
   stack em texto corrido.
   Porta para o Astro: <style> de cada componente da opção B.
   ========================================================================= */

/* ---------- Topbar: sem menu de seções, o índice vive no trilho ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(245, 245, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar .nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.2s ease, transform 0.15s ease;
}

.topbar .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.topbar .nav-cta:active {
  transform: translateY(1px);
}

/* ---------- Documento: trilho + corpo ---------- */

.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.rail {
  position: sticky;
  top: 88px;
  align-self: start;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 40px;
}

.rail-photo {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}

.rail-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.rail-role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.rail-index {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rail-index a {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.rail-index a span {
  color: rgba(20, 22, 26, 0.55);
}

.rail-index a:hover {
  color: var(--text);
}

.rail-index a:hover span {
  color: #8a5b00;
}

/* estado ativo: quem marca é o número em âmbar, o rótulo só escurece */
.rail-index a.is-ativo {
  color: var(--text);
}

.rail-index a.is-ativo span {
  color: var(--accent-ink);
  background: var(--accent);
}

.rail-meta {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.6;
}

.rail-meta strong {
  color: var(--text);
  font-weight: 600;
}

.doc-body > section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
}

.doc-body > section:first-child {
  border-top: 0;
  padding-top: clamp(48px, 7vw, 84px);
}

.bloco-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.bloco-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.bloco-head .marca {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.texto {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 66ch;
}

/* linha de apoio logo abaixo do título da seção */
.bloco-lead {
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* ---------- Herói (só tipografia, sem foto: a foto vive no trilho) ---------- */

.hero-b {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow-b {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a5b00;
  margin-bottom: 22px;
}

.hero-b h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 26px;
}

.hero-b .hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-b:active {
  transform: translateY(1px);
}

.btn-b-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-b-primary:hover {
  background: var(--accent-hover);
}

.btn-b-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-b-secondary:hover {
  border-color: var(--text);
}

/* números do herói em linha, sem caixa */
.hero-numeros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.hero-numeros div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.hero-numeros .n {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.hero-numeros .d {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 22ch;
}

/* ---------- O que eu faço: lista em duas colunas, sem cartão ---------- */

.faz-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 64px);
}

.faz-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.faz-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.faz-item p {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 40ch;
}

.faz-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #8a5b00;
  font-weight: 600;
}

/* ---------- Trajetória: sem borda entre itens, só ritmo ---------- */

.trajeto {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.5vw, 40px);
}

.trajeto-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
}

.trajeto-quando {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--text-faint);
  padding-top: 5px;
}

.trajeto-quando .agora {
  display: block;
  color: #8a5b00;
  font-weight: 600;
}

.trajeto-cargo {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.trajeto-empresa {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.trajeto-item p {
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 10px;
}

.trajeto-stack {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ---------- Projetos: um destaque grande + linha de índice ---------- */

.destaque {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  padding-bottom: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.destaque h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.destaque p {
  color: var(--text-muted);
  max-width: 46ch;
}

.destaque .stack {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 16px;
}

.slot-b {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-strong);
  background: linear-gradient(155deg, rgba(255, 178, 36, 0.16), rgba(255, 178, 36, 0.04) 60%, rgba(255, 178, 36, 0.1));
  padding: 14px;
}

.slot-b span {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #6b4a06;
  line-height: 1.5;
}

.slot-b strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.indice-projetos {
  display: flex;
  flex-direction: column;
}

.projeto-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.projeto-linha h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.projeto-linha .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
}

.projeto-linha p {
  grid-column: 1 / -1;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 66ch;
}

/* ---------- Stack: texto corrido, sem chip ---------- */

.stack-grupo {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.stack-grupo h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stack-grupo .itens {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.stack-grupo .pratica {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 70ch;
}

/* ---------- Credenciais ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}

.cred-bloco + .cred-bloco {
  margin-top: 32px;
}

.cred-bloco h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.cred-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text);
}

.cred-lista .sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  display: block;
  margin-top: 2px;
}

.cred-lista .andamento {
  color: #8a5b00;
  font-weight: 600;
}

/* ---------- Faixa da mentoria: o momento âmbar da página ---------- */

.faixa-mentoria {
  background: var(--accent);
  color: var(--accent-ink);
  margin-top: clamp(56px, 8vw, 96px);
  border-radius: 0;
}

.faixa-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(36px, 5vw, 56px) 0;
}

.faixa-mentoria h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  max-width: 32ch;
}

.faixa-mentoria p {
  font-size: 1rem;
  max-width: 58ch;
}

.btn-ink {
  background: var(--accent-ink);
  color: var(--accent);
  font-weight: 700;
  padding: 14px 26px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.btn-ink:active {
  transform: translateY(1px);
}

/* ---------- Contato ---------- */

.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contato-grid p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 26px;
}

.canais {
  border-top: 1px solid var(--border);
}

.canal {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.canal-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.canal-valor {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.canal-seta {
  font-family: var(--font-mono);
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.canal:hover .canal-valor,
.canal:hover .canal-seta {
  color: #8a5b00;
}

.canal:hover .canal-seta {
  transform: translateX(3px);
}

/* ---------- Rodapé ---------- */

.paper .site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(56px, 8vw, 88px);
}

.paper .footer-note,
.paper .footer-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

.paper .footer-links a:hover {
  color: var(--text);
}

/* ---------- Entrada discreta, como na opção A ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-b > * {
    animation: subir-b 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .hero-b > *:nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-b > *:nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-b > *:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes subir-b {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar {
    backdrop-filter: none;
    background: var(--bg);
  }
}

/* ---------- Mobile: colapso explícito ---------- */

@media (max-width: 1000px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .doc-body > section:first-child {
    padding-top: 32px;
  }

  /* trilho compacto no mobile: identidade em uma linha, índice em faixa rolável */
  .rail {
    position: static;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 4px 16px;
    padding-top: 16px;
    padding-bottom: 0;
  }

  .rail-photo {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    grid-row: span 2;
  }

  .rail-name {
    font-size: 1rem;
    align-self: end;
  }

  .rail-role {
    font-size: 0.72rem;
    margin-top: 0;
    align-self: start;
  }

  .rail-index {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 4px;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 90%, transparent);
  }

  .rail-index::-webkit-scrollbar {
    display: none;
  }

  .rail-index a {
    white-space: nowrap;
  }

  .rail-meta {
    display: none;
  }

  .faz-lista,
  .cred-grid,
  .contato-grid,
  .destaque {
    grid-template-columns: 1fr;
  }

  .trajeto-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trajeto-quando {
    padding-top: 0;
  }

  .projeto-linha {
    grid-template-columns: 1fr;
  }

  .projeto-linha .meta {
    text-align: left;
  }

  .faixa-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .hero-numeros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
}

@media (max-width: 560px) {
  .hero-eyebrow-b {
    margin-bottom: 14px;
  }

  .hero-b h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .hero-b .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-ctas .btn-b,
  .btn-ink {
    width: 100%;
  }

  .canal {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .canal-label {
    grid-column: 1 / -1;
  }

  .hero-numeros {
    gap: 16px 20px;
  }
}

/* contato com formulário: texto e canais à esquerda, formulário à direita */
.contato-com-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 1000px) {
  .contato-com-form {
    grid-template-columns: 1fr;
  }
}
