/* Ricardo Palamartchuk — portfólio
   Papel branco, tinta preta e um vermelho de prova. Marcas de corte como na arte-final. */

:root {
  --papel: #ffffff;
  --tinta: #000000;
  --cinza: #5f5f5f;
  --linha: #d9d9d9;
  --fundo-foto: #eeeeec;
  --prova: #d7261e;

  --fonte: "Archivo", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --largura: 90rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--fonte); font-size: 1.0625rem; line-height: 1.6;
  font-stretch: 100%;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--prova); }
:focus-visible { outline: 3px solid var(--prova); outline-offset: 3px; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 1rem; top: -4rem; background: var(--tinta); color: #fff; padding: .6rem 1rem; z-index: 50; }
.pular:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--largura); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Topo ---------- */
.topo { border-bottom: 1px solid var(--linha); background: var(--papel); position: sticky; top: 0; z-index: 20; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.assinatura { font-weight: 800; font-stretch: 112%; text-decoration: none; letter-spacing: .01em; font-size: 1rem; }
.topo nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 2.5vw, 2rem); }
.topo nav a { text-decoration: none; font-size: .95rem; }
.topo nav a:hover, .topo nav a[aria-current] { color: var(--prova); }
@media (max-width: 34rem) {
  .topo .wrap { flex-wrap: wrap; padding-block: .6rem; min-height: 0; row-gap: .3rem; }
  .topo nav ul { gap: 1rem; }
}

/* ---------- Abertura com marcas de corte ---------- */
.abertura { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); }
.abertura .wrap { position: relative; }
.nome {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.2rem, 10.4vw, 9.6rem); white-space: nowrap;
  line-height: .86; letter-spacing: -.02em; margin: 0 0 .35em;
  text-transform: uppercase;
}
.nome span { display: block; }
.cargo { font-weight: 800; font-stretch: 112%; font-size: clamp(1.3rem, 2.6vw, 2rem); margin: 0 0 .4rem; }
.linha-abertura { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cinza); max-width: 38rem; margin: 0 0 2rem; }
.botao {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem;
  padding: .7rem 1.3rem; border: 2px solid var(--tinta); background: var(--tinta); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.botao:hover { background: var(--prova); border-color: var(--prova); color: #fff; }
.botao.vazado { background: transparent; color: var(--tinta); }
.botao.vazado:hover { background: var(--tinta); color: #fff; border-color: var(--tinta); }

.marcas { position: absolute; inset: clamp(-2.25rem, -3vw, -1.6rem) calc(var(--gutter) * .25); pointer-events: none; }
.marcas svg { position: absolute; width: 30px; height: 30px; overflow: visible; }
.marcas .tl { left: 0; top: 0; }
.marcas .tr { right: 0; top: 0; transform: scaleX(-1); }
.marcas .bl { left: 0; bottom: 0; transform: scaleY(-1); }
.marcas .br { right: 0; bottom: 0; transform: scale(-1, -1); }
.marcas .alvo { right: 3.5rem; top: -6px; width: 26px; height: 26px; }
@media (max-width: 40rem) { .marcas .alvo { display: none; } }
.marcas .corte { stroke: var(--tinta); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.marcas .registro { stroke: var(--prova); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.js .marcas .corte, .js .marcas .registro { stroke-dasharray: 60; stroke-dashoffset: 60; animation: desenha .9s ease-out forwards; }
.js .marcas .registro { animation-delay: .5s; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .marcas .corte, .js .marcas .registro { animation: none; stroke-dashoffset: 0; } }

/* ---------- Seções ---------- */
.secao { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--linha); }
.titulo-secao { font-weight: 900; font-stretch: 125%; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; margin: 0 0 2rem; text-transform: uppercase; letter-spacing: -.01em; }

/* Grade de trabalhos */
.grade { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.cartao { text-decoration: none; display: block; }
.cartao .quadro { aspect-ratio: 4 / 3; background: var(--fundo-foto); overflow: hidden; }
.cartao img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cartao:hover img { transform: scale(1.03); }
.cartao h3 { font-weight: 800; font-stretch: 112%; font-size: 1.2rem; line-height: 1.2; margin: .9rem 0 .2rem; }
.cartao p { color: var(--cinza); font-size: .95rem; margin: 0; }
.cartao:hover h3 { color: var(--prova); }
.cartao .vazio { width: 100%; height: 100%; display: grid; place-items: center; color: var(--cinza); font-size: .95rem; text-align: center; padding: 1rem; border: 1px dashed #b5b5b5; }
@media (prefers-reduced-motion: reduce) { .cartao img { transition: none; } .cartao:hover img { transform: none; } }

/* Mais trabalhos */
.mais { display: grid; gap: 1.25rem .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .mais { gap: 1.25rem 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
.mais figure { margin: 0; }
.mais a, .mais .video { display: block; aspect-ratio: 1 / 1; background: var(--fundo-foto); overflow: hidden; }
.mais img, .mais video { width: 100%; height: 100%; object-fit: cover; }
.mais .conter img { object-fit: contain; padding: .75rem; }
.mais figcaption { font-size: .95rem; margin-top: .55rem; line-height: 1.35; }
.mais figcaption strong { font-weight: 700; display: block; }
.mais figcaption span { color: var(--cinza); }

/* Sobre */
.sobre { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .sobre { grid-template-columns: minmax(0, 18rem) minmax(0, 40rem); } }
.sobre img { width: min(16rem, 70%); }
.sobre .texto p { font-size: 1.15rem; line-height: 1.65; }
.sobre .texto p:first-child { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; }

/* Clientes */
.clientes { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
@media (min-width: 44rem) { .clientes { columns: 3; } }
.clientes li { font-weight: 800; font-stretch: 112%; font-size: clamp(1.15rem, 2vw, 1.5rem); padding: .55rem 0; border-bottom: 1px solid var(--linha); break-inside: avoid; }

/* Contato */
.contato .email { font-weight: 900; font-stretch: 112%; font-size: clamp(1.4rem, 5vw, 3.6rem); line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; display: inline-block; margin-bottom: 1.5rem; }
.contato .email:hover { color: var(--prova); }
.contato ul { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: 1.1rem; }
.rodape { border-top: 1px solid var(--linha); padding-block: 1.5rem; color: var(--cinza); font-size: .9rem; }
.rodape .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Página de projeto ---------- */
.projeto-topo { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.voltar { display: inline-block; font-size: .95rem; text-decoration: none; margin-bottom: 1.5rem; color: var(--cinza); }
.voltar:hover { color: var(--prova); }
.projeto-topo h1 { font-weight: 900; font-stretch: 112%; font-size: clamp(1.9rem, 6.5vw, 5.5rem); hyphens: auto; overflow-wrap: break-word; line-height: .92; margin: 0 0 1.75rem; text-transform: uppercase; letter-spacing: -.02em; }
.ficha { display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), max-content)); margin: 0 0 2rem; padding: 1rem 0; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha); }
.ficha div { min-width: 0; }
.ficha dt { font-size: .85rem; color: var(--cinza); }
.ficha dd { margin: 0; font-weight: 700; }
.projeto-texto { max-width: 42rem; font-size: 1.15rem; line-height: 1.65; }
.galeria-projeto { display: grid; gap: clamp(.75rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 48rem) {
  .galeria-projeto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria-projeto .inteira { grid-column: 1 / -1; }
}
.galeria-projeto figure { margin: 0; }
.galeria-projeto a { display: block; background: var(--fundo-foto); }
.galeria-projeto img { width: 100%; height: auto; }
.galeria-projeto figcaption { font-size: .9rem; color: var(--cinza); margin-top: .45rem; }
.aviso-vazio { border: 1px dashed #b5b5b5; padding: 2rem; color: var(--cinza); text-align: center; grid-column: 1 / -1; }
.proximo { border-top: 1px solid var(--linha); padding-block: 2.5rem; }
.proximo a { text-decoration: none; display: inline-block; }
.proximo span { display: block; color: var(--cinza); font-size: .95rem; }
.proximo strong { font-weight: 900; font-stretch: 125%; font-size: clamp(1.6rem, 4vw, 3rem); text-transform: uppercase; line-height: 1; }
.proximo a:hover strong { color: var(--prova); }

/* Ampliar fotos */
.ampliar { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.ampliar::backdrop { background: rgba(255,255,255,.97); }
.ampliar .caixa { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 1rem 1rem; }
.ampliar img { max-width: min(100%, 90rem); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ampliar p { margin: .75rem 0 0; color: var(--cinza); text-align: center; }
.ampliar button { position: absolute; width: 3rem; height: 3rem; border: 1px solid var(--tinta); background: #fff; color: var(--tinta); cursor: pointer; display: grid; place-items: center; font: inherit; font-size: 1.3rem; line-height: 1; }
.ampliar button:hover { background: var(--tinta); color: #fff; }
.ampliar .fechar { top: .75rem; right: .75rem; }
.ampliar .ant { left: .75rem; top: 50%; transform: translateY(-50%); }
.ampliar .prox { right: .75rem; top: 50%; transform: translateY(-50%); }
