/* ==========================================================
   yusoares · site
   Identidade: guia de marca yusoares (marca yusoares/guia-de-marca-yusoares)
   Ritmo de seções escuro · claro · escuro, como no portfólio
   ========================================================== */

:root {
  /* paleta do guia de marca */
  --preto: #0b0b0b;
  --grafite: #141414;
  --offwhite: #f1eee8;
  --areia: #f4f2ee;
  --laranja: #c4561a;
  --azul: #2c4f7f;
  --pessego: #fde7d8;
  --terracota: #8a3b12;
  --cinza: #6d6962;

  /* papéis */
  --escuro: var(--preto);
  --escuro-texto: var(--offwhite);
  --escuro-suave: rgba(241, 238, 232, 0.68);
  --escuro-linha: rgba(241, 238, 232, 0.14);
  --claro: var(--areia);
  --tinta: var(--grafite);
  --tinta-suave: var(--cinza);
  --linha: rgba(20, 20, 20, 0.12);

  /* tipografias de apoio */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  --raio: 24px;
  --margem: clamp(16px, 5vw, 80px);
  --topo-altura: 80px;
  --suave: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-altura); -webkit-text-size-adjust: 100%; background: var(--escuro); }
body {
  margin: 0;
  background: var(--escuro);
  color: var(--escuro-texto);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--laranja); color: var(--offwhite); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.moldura { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--margem); }

/* rótulo do guia: Inter caixa alta, laranja */
.rotulo {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--laranja);
}

/* títulos de impacto: Big Shoulders Display, sempre caixa alta */
.titulo-display {
  margin: 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: 0.92; letter-spacing: 0.002em;
}

/* o ponto final da marca: círculo laranja no lugar do ponto do texto */
.ponto {
  display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em;
  border-radius: 50%; background: var(--laranja);
  overflow: hidden; color: transparent; vertical-align: baseline;
  transform: translateY(-0.02em);
}

/* ---------------- TOPO ---------------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s, backdrop-filter .4s;
}
.topo.rolado {
  background: rgba(11, 11, 11, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topo-conteudo {
  height: var(--topo-altura);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--escuro-linha);
}
.marca { display: inline-flex; color: var(--offwhite); border-radius: 6px; }
.marca-logo { display: block; width: clamp(112px, 10vw, 136px); height: auto; overflow: visible; }
.marca-ponto { fill: var(--laranja); transition: transform .45s var(--suave); }
.marca:hover .marca-ponto, .marca:focus-visible .marca-ponto { transform: translateY(-700px); }

.topo-link {
  font-size: 18px;
  text-decoration: underline; text-decoration-style: dotted;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: opacity .2s;
}
.topo-link:hover { opacity: .6; }

/* ---------------- ABERTURA (escura) ---------------- */
.abertura { min-height: 100vh; min-height: 100svh; display: flex; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(40px, 7vw, 140px);
  padding-top: calc(var(--topo-altura) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(56px, 6vw, 96px);
}
.hero-titulo { font-size: clamp(64px, 9.4vw, 152px); }
.hero-titulo .linha { display: block; }
.hero-bio {
  margin: clamp(28px, 4vh, 44px) 0 0; max-width: 36ch;
  font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; color: var(--escuro-suave);
}

/* foto com cartões empilhados atrás, nas cores de apoio */
.hero-foto { position: relative; margin: 0; width: clamp(240px, 28vw, 420px); }
.foto-mascara { position: relative; z-index: 2; overflow: hidden; border-radius: var(--raio); background: var(--grafite); }
.hero-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pilha { position: absolute; inset: 0; z-index: 1; border-radius: var(--raio); transition: transform .7s var(--suave); }
.pilha-1 { background: var(--laranja); transform: rotate(-5deg) translate(-10px, 6px); }
.pilha-2 { background: var(--azul); transform: rotate(4deg) translate(12px, 4px); }
.hero-foto:hover .pilha-1 { transform: rotate(-9deg) translate(-26px, 10px); }
.hero-foto:hover .pilha-2 { transform: rotate(8deg) translate(28px, 6px); }

/* ---------------- SOBRE (clara) ---------------- */
.sobre { background: var(--claro); color: var(--tinta); padding-block: clamp(72px, 10vw, 160px); }
.sobre ::selection { background: var(--laranja); color: var(--offwhite); }
.sobre-grade {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(24px, 6vw, 120px); align-items: start;
}
.sobre-titulo {
  display: flex; align-items: center; gap: 8px; margin: 0; padding-top: .45em;
  font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: -0.01em;
}
.sobre-titulo svg { color: var(--laranja); }
.sobre-texto {
  margin: 0; max-width: 40ch;
  font-size: clamp(24px, 2.4vw, 36px); line-height: 1.32; letter-spacing: -0.005em;
}

/* ---------------- CONTATO (escuro) ---------------- */
.contato { padding-block: clamp(80px, 10vw, 160px) 40px; }
.contato-titulo { font-size: clamp(44px, 7.4vw, 120px); max-width: 15ch; }
.contato-botoes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: clamp(36px, 4.4vw, 56px);
}
.botao {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 17px; text-decoration: none;
  padding: 17px 30px; border-radius: 999px;
  background: var(--offwhite); color: var(--preto); border: 1px solid var(--offwhite);
  transition: transform .3s var(--suave), box-shadow .3s var(--suave);
}
.botao:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(196, 86, 26, 0.7); }
.botao-seta { width: 16px; height: 16px; transition: transform .3s var(--suave); }
.botao:hover .botao-seta { transform: translateX(4px); }

.redes { display: flex; gap: 10px; }
.botao-icone {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--escuro-linha); color: var(--escuro-suave);
  transition: color .3s, border-color .3s, transform .3s var(--suave);
}
.botao-icone svg { width: 22px; height: 22px; }
.botao-icone:hover { color: var(--laranja); border-color: var(--laranja); transform: translateY(-3px); }

.rodape {
  margin-top: clamp(88px, 11vw, 150px); padding-top: 22px; border-top: 1px solid var(--escuro-linha);
  font-family: var(--sans); font-size: 14px; color: var(--escuro-suave);
}

/* ---------------- REVELAÇÃO NA ROLAGEM ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--suave), transform 1.1s var(--suave); transition-delay: var(--atraso, 0s); }
.js [data-reveal].visivel { opacity: 1; transform: none; }
.js .abertura .rotulo { transition-delay: .05s; }
.js .abertura .hero-bio { transition-delay: .45s; }

/* foto: a máscara abre de baixo para cima e os cartões se abrem em leque */
.js [data-reveal="foto"] { opacity: 1; transform: translateY(48px); transition: transform 1.9s var(--suave) .3s; }
.js [data-reveal="foto"].visivel { transform: none; }
.js .hero-foto .foto-mascara { clip-path: inset(100% 0 0 0 round var(--raio)); transition: clip-path 1.7s cubic-bezier(.65, 0, .25, 1) .3s; }
.js .hero-foto img { transform: scale(1.3); transition: transform 2.4s var(--suave) .3s; }
.js .hero-foto.visivel .foto-mascara { clip-path: inset(0 0 0 0 round var(--raio)); }
.js .hero-foto.visivel img { transform: none; }
.js .hero-foto:not(.visivel) .pilha { opacity: 0; }
.js .hero-foto.visivel .pilha-1 { animation: leque-1 1.1s var(--suave) 1.5s backwards; }
.js .hero-foto.visivel .pilha-2 { animation: leque-2 1.1s var(--suave) 1.62s backwards; }
@keyframes leque-1 { from { transform: none; opacity: 0; } to { transform: rotate(-5deg) translate(-10px, 6px); opacity: 1; } }
@keyframes leque-2 { from { transform: none; opacity: 0; } to { transform: rotate(4deg) translate(12px, 4px); opacity: 1; } }

/* títulos entram palavra por palavra */
.palavra { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .16em .08em; margin-block: -.16em -.08em; }
.palavra > span { display: inline-block; transform: translateY(125%); transition: transform 1.1s var(--suave); transition-delay: calc(var(--i, 0) * 70ms); }
.abertura .palavra > span { transition-duration: .9s; transition-delay: calc(.1s + var(--i, 0) * 90ms); }
.visivel .palavra > span { transform: none; }

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 820px) {
  :root { --topo-altura: 68px; }
  body { font-size: 18px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 40px; }
  .hero-foto { order: -1; width: min(62vw, 300px); margin: 8px 0 0 12px; }
  .sobre-grade { grid-template-columns: 1fr; }
  .sobre-titulo { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-reveal], .js [data-reveal="foto"] { opacity: 1; transform: none; }
  .js .hero-foto .foto-mascara { clip-path: none; }
  .js .hero-foto .pilha { opacity: 1; }
  .js .hero-foto img, .palavra > span { transform: none; }
}
