/* =========================================================================
   HOME — amarelo, preto e lima
   hero amarelo · mosaico escuro · projetos preto · contato amarelo · rodapé preto
   ========================================================================= */

/* ---------- HERO ---------- */
.hero { position: relative; z-index: 2; height: 100svh; min-height: 620px; overflow: hidden; background: var(--amarelo); color: var(--preto); isolation: isolate; }
/* com o rastro ligado o canvas pinta o amarelo; o fundo fica livre para o take aparecer por trás */
.hero.pronta { background: transparent; }
/* ao rolar, a borda de baixo do hero se desfaz (feather) em cima do take, levando junto o rastro */
.hero.saindo { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fe, 0px)), rgba(0, 0, 0, .55) calc(100% - var(--fe, 0px) * .45), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fe, 0px)), rgba(0, 0, 0, .55) calc(100% - var(--fe, 0px) * .45), transparent); }
.hero__palco { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.hero__render { position: absolute; inset: -3%; z-index: 0; background: #050507 center / cover no-repeat; will-change: transform; opacity: 0; transition: opacity .3s; }
.hero.pronta .hero__render { opacity: 1; }
.hero__tela, .hero .lente-tela { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero.sem-canvas .hero__render { display: none; }

.hero__miolo {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 2.4rem;
  padding: var(--header-h) var(--gutter) 40px; text-align: center; pointer-events: none;
}
.hero__miolo a { pointer-events: auto; }
.hero__titulo { display: flex; align-items: center; justify-content: center; gap: .14em; font-size: clamp(2.4rem, 7.4vw, 10.5rem); white-space: nowrap; }
.hero__palavra { display: inline-flex; }
.hero__palavra .l { display: inline-block; transition: font-variation-settings 1.1s var(--ease-saida), transform 1.1s var(--ease-saida), opacity .5s; }
.hero__palavra .l.antes { font-variation-settings: 'wdth' 62; opacity: 0; transform: translateY(.2em) scaleY(1.3); }
/* letras levemente desalinhadas, como tipos de carimbo */
.hero__palavra:first-child .l:nth-child(2) { transform: translateY(.03em) rotate(-2deg); }
.hero__palavra:last-child .l:nth-child(2) { transform: translateY(-.02em) rotate(1.5deg); }
.hero__palavra:last-child .l:nth-child(5) { transform: translateY(.04em) rotate(-2.5deg); }
.hero__palavra:last-child .l:nth-child(7) { transform: translateY(-.03em) rotate(2deg); }
.hero__emblema { display: inline-block; flex: none; width: 1.12em; height: 1.12em; margin: 0 -.06em; transition: transform 1.4s var(--ease-mola); }
.hero__emblema.antes { transform: rotate(-220deg) scale(.2); }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; align-items: center; }
@media (max-width: 560px) { .hero__acoes { gap: .6rem; } .hero__acoes .btn--grande { min-height: 50px; padding: .8rem 1.4rem; font-size: .98rem; } }

.hero__adesivo { right: clamp(18px, 4vw, 64px); bottom: clamp(86px, 15vh, 170px); width: clamp(96px, 10vw, 160px); height: clamp(96px, 10vw, 160px); animation: flutua 6s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translateY(-14px) rotate(8deg); } }
.hero__lema {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(34px, 6vh, 60px);
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55em .9em; max-width: calc(100% - var(--gutter) * 2 - 220px);
  font-family: var(--f-tc); font-weight: 400; font-size: clamp(.72rem, .9vw, .84rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  pointer-events: none;
}
.hero__lema::before { content: ''; flex: none; width: 2.6em; height: 2px; background: currentColor; }
.hero__lema b {
  font-family: var(--f); font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: .03em;
  padding: .42em .85em .38em; border-radius: 999px; background: var(--preto); color: var(--amarelo);
}
.hero__regua { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(34px, 6vh, 60px); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.hero__regua svg { width: 18px; height: 18px; }
.hero__regua span { width: 150px; height: 14px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 13px); -webkit-mask: linear-gradient(transparent 30%, #000 30%); mask: linear-gradient(transparent 30%, #000 30%); }
@media (prefers-reduced-motion: reduce) { .hero__adesivo { animation: none; } }
@media (max-width: 760px) {
  .hero__titulo { flex-direction: column; gap: .06em; font-size: 13.4vw; }
  .hero__emblema { order: -1; width: .8em; height: .8em; margin: 0 0 .04em; }
  .hero__regua { display: none; }
  .hero__adesivo { top: auto; bottom: 120px; }
  .hero__lema { left: 20px; bottom: 30px; max-width: calc(100% - 40px); font-size: .66rem; letter-spacing: .1em; gap: .5em .6em; }
  .hero__lema::before { display: none; }
}

/* ---------- TAKE DA HOME (vídeo controlado pelo scroll) ----------
   sobe por baixo do hero (mesma altura) e já anda desde o primeiro scroll */
.take-home { position: relative; z-index: 1; margin-top: calc(-1 * max(100svh, 620px)); height: calc(max(100svh, 620px) + 250vh); background: var(--preto); }
.take-home__palco { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--branco); background: var(--preto); }
.take-home__tela { position: absolute; inset: 0; width: 100%; height: 100%; }
.take-home__vinheta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45)); }
.take-home__sai { position: absolute; inset: 0; pointer-events: none; background: var(--preto); opacity: 0; }
.take-home__lema { position: absolute; left: var(--gutter); bottom: 34px; display: inline-flex; align-items: center; gap: .7em; font-size: clamp(.78rem, 1.1vw, 1rem); letter-spacing: .06em; opacity: 0; }
.take-home__lema::before { content: ''; width: 2.4em; height: 2px; background: currentColor; }
.take-home__regua { position: absolute; right: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 10px; font-size: .72rem; opacity: 0; }
.take-home__trilho { position: relative; width: 180px; height: 14px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 2px, transparent 2px 12px); -webkit-mask: linear-gradient(transparent 30%, #000 30%); mask: linear-gradient(transparent 30%, #000 30%); }
.take-home__trilho i { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--amarelo); }
@media (max-width: 760px) { .take-home { height: calc(max(100svh, 620px) + 210vh); } .take-home__regua { display: none; } .take-home__lema { left: 20px; bottom: 28px; } }

/* ---------- MOSAICO ---------- */
.mosaico { position: relative; min-height: 115vh; overflow: hidden; background: var(--preto); display: grid; place-items: center; }
.mosaico__grade { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 4px; transform-origin: 50% 40%; will-change: transform; }
.mosaico__grade figure { margin: 0; overflow: hidden; background: var(--grafite); }
.mosaico__grade figure.largo { grid-column: span 2; }
.mosaico__grade img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: brightness(.78) saturate(1.05); transition: filter .5s, transform .9s var(--ease-saida); }
.mosaico__grade figure:hover img { filter: brightness(1); transform: scale(1.04); }
.mosaico__sombra { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 42% at 50% 50%, rgba(0, 0, 0, .55), transparent 75%); }
.mosaico__frase {
  position: relative; z-index: 2; text-align: center; color: var(--branco); pointer-events: none; padding: 0 var(--gutter);
  font-weight: 800; font-variation-settings: 'wdth' 100; font-size: clamp(2.4rem, 6vw, 6.8rem); letter-spacing: -.035em; line-height: .95;
}
.mosaico__frase span {
  display: block; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-variation-settings: normal;
  font-size: 2.3em; line-height: .9; letter-spacing: -.02em; color: var(--amarelo); margin-top: -.02em;
}
.mosaico__nota { position: absolute; z-index: 2; bottom: 34px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .55); font-family: var(--f-tc); font-weight: 400; letter-spacing: .3em; font-size: .62rem; }
@media (max-width: 760px) { .mosaico { min-height: 100svh; } .mosaico__grade { grid-template-columns: repeat(2, 1fr); } }

/* ---------- PROJETOS ---------- */
.projetos { position: relative; overflow: hidden; background: var(--preto); padding: clamp(110px, 12vw, 160px) 0 clamp(90px, 10vw, 140px); }
.projetos__cab { position: relative; z-index: 2; padding: 0 var(--gutter); margin-bottom: clamp(40px, 5vw, 70px); }
.projetos__marca { display: inline-grid; color: var(--amarelo); font-weight: 900; font-variation-settings: 'wdth' 112; font-size: 1.85rem; letter-spacing: -.06em; line-height: 1; margin-bottom: clamp(40px, 5vw, 70px); }
.projetos__marca small { font-size: .56rem; letter-spacing: .2em; color: var(--amarelo-escuro); padding-left: 1.6em; margin-top: .3rem; }
.projetos__cab h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 15ch; }
.projetos__cab h2 span { display: block; color: var(--amarelo); }
.projetos__cab h2 span + span { color: var(--vermelho); }
.projetos__texto { margin-top: 1.4rem; color: var(--vermelho); max-width: 40ch; font-weight: 600; }
.fita { position: relative; z-index: 2; padding: 6px 0; }
.fita__trilho { display: flex; gap: 12px; width: max-content; will-change: transform; }
.capa {
  position: relative; flex: none; width: clamp(150px, 15.5vw, 230px); aspect-ratio: 4 / 5;
  border: 0; padding: 0; border-radius: 4px; overflow: hidden; background: var(--grafite); text-align: left; color: var(--branco);
  transition: transform .5s var(--ease-mola);
}
.capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-saida); }
.capa:hover, .capa:focus-visible { transform: scale(1.05) rotate(-1.5deg); z-index: 3; }
.capa:hover img { transform: scale(1.06); }
.capa__info { position: absolute; inset: auto 0 0 0; padding: 2.4rem .8rem .75rem; background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent); display: grid; gap: .1rem; opacity: 0; transition: opacity .3s; }
.capa:hover .capa__info, .capa:focus-visible .capa__info { opacity: 1; }
.capa__info small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); }
.capa__info strong { font-size: .9rem; line-height: 1.15; font-weight: 800; }
.capa__cadeado { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); }
.capa__cadeado svg { width: 13px; height: 13px; }
.capa__gratis { position: absolute; top: 8px; left: 8px; padding: .2rem .55rem; border-radius: 999px; background: var(--lima); color: var(--preto); font-size: .68rem; font-weight: 800; }
.projetos__rodape { position: relative; z-index: 2; padding: clamp(40px, 5vw, 64px) var(--gutter) 0; }
@media (hover: none) { .capa__info { opacity: 1; } }

/* ---------- CONTATO ---------- */
.contato { background: var(--amarelo); color: var(--preto); padding: clamp(130px, 14vw, 190px) var(--gutter) clamp(100px, 11vw, 150px); }
.contato__rotulo { color: var(--amarelo-escuro); margin-bottom: 2.2rem; }
.frase { max-width: 1100px; }
.frase__texto { font-weight: 800; font-variation-settings: 'wdth' 100; font-size: clamp(1.9rem, 4.2vw, 3.7rem); line-height: 1.42; letter-spacing: -.035em; }
.frase__texto input {
  font: inherit; letter-spacing: inherit; color: var(--preto); background: transparent;
  border: 0; border-bottom: 2px solid var(--preto); border-radius: 0; padding: 0 .12em; margin: 0 .06em; min-width: 4ch; max-width: 100%;
}
.frase__texto input::placeholder { color: var(--amarelo-escuro); opacity: .75; }
.frase__texto input:focus { outline: none; background-color: rgba(0, 0, 0, .06); }
.frase__texto input.invalido { border-bottom-color: var(--vermelho); }
.frase textarea { display: block; width: min(800px, 100%); margin-top: 2.4rem; padding: 1rem 1.1rem; resize: vertical; background: transparent; border: 1.5px solid var(--amarelo-escuro); border-radius: 10px; font-size: var(--t-s); color: var(--preto); }
.frase textarea::placeholder { color: var(--amarelo-escuro); }
.frase textarea:focus { outline: none; border-color: var(--preto); }
.frase__erro { min-height: 1.6em; margin-top: .8rem; font-weight: 700; }
.frase__acoes { display: flex; flex-wrap: wrap; gap: .8rem; }

/* escolha "Quero ...": botão no meio da frase + lista compacta */
.escolha { position: relative; display: inline-block; }
.escolha__botao {
  display: inline-flex; align-items: baseline; gap: .22em; padding: 0 .12em; margin: 0 .06em; border: 0; border-bottom: 2px solid var(--preto);
  background: transparent; font: inherit; letter-spacing: inherit; color: var(--preto); text-align: left; cursor: pointer;
}
.escolha__botao svg { width: .34em; height: .34em; flex: none; align-self: center; transition: transform .3s var(--ease-saida); }
.escolha.aberta .escolha__botao svg { transform: rotate(180deg); }
.escolha__botao:hover, .escolha__botao:focus-visible { background: rgba(0, 0, 0, .06); outline: none; }
.escolha__botao.vazia { color: var(--amarelo-escuro); }
.escolha__botao.vazia svg { color: var(--preto); animation: escolha-dica 1.8s var(--ease-saida) infinite; }
.escolha__botao.invalido { border-bottom-color: var(--vermelho); }
@keyframes escolha-dica { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(.12em); } }
@media (prefers-reduced-motion: reduce) { .escolha__botao.vazia svg { animation: none; } }
.escolha__lista {
  position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: max-content; min-width: 280px; max-width: calc(100vw - 32px);
  display: block; margin: 0; padding: 6px; border-radius: 18px; background: var(--preto); color: var(--branco);
  font-size: 1rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.25;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform-origin: 20px 0; animation: escolha-abre .28s var(--ease-saida);
}
.escolha__lista:focus { outline: none; }
@keyframes escolha-abre { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.escolha__item { display: flex; align-items: center; gap: .8rem; padding: .62rem .95rem .62rem .7rem; border-radius: 12px; cursor: pointer; transition: background-color .15s, color .15s; }
.escolha__item small { font-family: var(--f-tc); font-size: .68rem; font-weight: 400; color: var(--cinza); transition: color .15s; }
.escolha__item span { flex: 1; }
.escolha__item[aria-selected='true']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amarelo); }
.escolha__item.ativo { background: var(--amarelo); color: var(--preto); }
.escolha__item.ativo small { color: rgba(0, 0, 0, .55); }
.escolha__item.ativo[aria-selected='true']::after { background: var(--preto); }
@media (prefers-reduced-motion: reduce) { .escolha__lista { animation: none; } }

/* aula em breve nas fitas de projetos */
.capa__breve { z-index: 3; background: #15151b; color: var(--lima); box-shadow: inset 0 0 0 1px rgba(214, 255, 59, .55); }
