/* ============================================================
   Thiago Pelaes — site (fundo claro, títulos em serifa)
   ============================================================ */

:root {
  --papel: #f4f1ea;
  --papel-2: #e7e2d6;
  --tinta: #161411;
  --cinza: #5d574d;
  --linha: #d9d4c8;
  --borda: #8a8478;
  --lado: clamp(20px, 5.5vw, 80px);
  --topo: clamp(64px, 7.5vw, 108px);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--tinta); }
button { font-family: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* ── tipografia ───────────────────────────────────────── */
.d1, .d2, .d3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.d1 { font-size: clamp(40px, 4.8vw, 70px); line-height: 1.08; }
.d2 { font-size: clamp(33px, 3.5vw, 51px); line-height: 1.14; }
.d3 { font-size: clamp(26px, 2.3vw, 33px); line-height: 1.15; }
.d1 em, .d2 em, .d3 em { font-style: italic; font-weight: 400; }
.rotulo { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinza); }
.corpo { font-size: 16px; line-height: 1.6; color: var(--cinza); }
.mini { font-size: 14px; line-height: 1.6; color: var(--cinza); }
.legenda { margin-top: 12px; font-size: 12px; letter-spacing: 0.08em; color: var(--cinza); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border: 1px solid var(--tinta); background: var(--tinta); color: var(--papel);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn--fino { min-height: 44px; padding: 0 20px; border-color: var(--borda); background: transparent; color: var(--tinta); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; box-shadow: inset 0 -1px 0 var(--tinta);
}

/* ── menu ─────────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 4px 40px; padding: 12px var(--lado);
  background: rgba(244, 241, 234, 0.94); border-bottom: 1px solid var(--linha);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.marca { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; text-decoration: none; color: inherit; }
.marca b { font-weight: 700; margin-left: 0.28em; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cinza); text-decoration: none; }
.menu a:hover { color: var(--tinta); }
.menu a[aria-current="page"] { color: var(--tinta); box-shadow: inset 0 -1px 0 var(--tinta); }
.menu-btn {
  display: none; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}

/* na home o menu fica por cima da foto até a rolagem passar da abertura */
.topo--foto { position: fixed; left: 0; right: 0; }
.topo--foto:not(.rolou):not(.aberto) {
  background: transparent; border-bottom-color: transparent; color: var(--papel);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.topo--foto:not(.rolou):not(.aberto) .menu a { color: var(--papel); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 0 12px; }
  .topo.aberto .menu { display: flex; }
  .menu a[aria-current="page"] { box-shadow: none; }
}

.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px;
  padding: 28px var(--lado); border-top: 1px solid var(--linha);
}

/* ── estrutura comum ──────────────────────────────────── */
.bloco { padding: var(--topo) var(--lado) 0; }
.bloco--fim { padding-bottom: var(--topo); }
.grade { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 80px; max-width: 1200px; margin: 0 auto; }
.col-e { flex: 2 1 300px; min-width: 0; }
.col-l { flex: 3 1 420px; min-width: 0; }
.texto { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.texto .corpo { max-width: 380px; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.titulo-pagina {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 60px;
  padding: clamp(40px, 5vw, 72px) var(--lado) clamp(28px, 2.8vw, 40px);
}
.titulo-pagina .corpo { flex: 0 1 440px; }
.trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px var(--lado) 0; font-size: 13px; color: var(--cinza); }
.trilha a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cinza); text-decoration: none; }
.trilha span:last-child { color: var(--tinta); }

.seta {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; color: var(--tinta); cursor: pointer;
}
.seta svg { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }

@keyframes entra { from { opacity: 0; } to { opacity: 1; } }
.entra { animation: entra 0.9s ease both; }

/* ── home: abertura ───────────────────────────────────── */
.abertura { position: relative; height: min(100svh, 62vw); min-height: 420px; overflow: hidden; background: var(--tinta); }
.abertura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.abertura img.on { opacity: 1; }
.abertura::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none;
  background: linear-gradient(rgba(8, 12, 14, 0.5) 0%, rgba(8, 12, 14, 0.18) 55%, rgba(8, 12, 14, 0) 100%);
}

/* ── home: séries em destaque ─────────────────────────── */
.pager { display: flex; align-items: center; gap: 6px; margin: 6px 0 0 -16px; font-size: 13px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.serie-atual { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.serie-atual .mini { max-width: 340px; }
.serie-atual .btn { margin-top: 14px; }
.colagem { position: relative; display: flex; gap: 12px; height: clamp(380px, 40vw, 560px); overflow: hidden; text-decoration: none; }
.colagem > span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.colagem img { width: 100%; object-fit: cover; }
.colagem::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none;
  background: linear-gradient(rgba(244, 241, 234, 0), var(--papel));
}

/* ── home: carrossel de filmes ────────────────────────── */
.carrossel { display: flex; flex-direction: column; gap: 14px; }
.janela { overflow: hidden; }
.trilho { display: flex; gap: 2%; transition: transform 0.6s ease; }
.cartao {
  position: relative; flex: 0 0 78%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0;
  background: var(--tinta); color: var(--papel); cursor: pointer;
}
.cartao img { width: 100%; height: 100%; object-fit: cover; }
.cartao .por-cima {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; background: rgba(22, 20, 17, 0.36); text-align: center;
}
.cartao .papel { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.cartao .fio { width: 40px; height: 1px; background: var(--papel); }
.cartao .nome { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; }
.cartao .assistir {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--papel);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.controle { display: flex; align-items: center; gap: 12px; }
.progresso { position: relative; flex: 1 1 0; height: 1px; background: var(--linha); }
.progresso span { position: absolute; top: -1px; left: 0; height: 3px; background: var(--tinta); transition: left 0.6s ease; }

/* ── retrato + bio ────────────────────────────────────── */
.retrato img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 100%; }
.sobre-texto .corpo { max-width: 520px; }

/* ── filmes: mosaico e player ─────────────────────────── */
.mosaico-filmes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 6px; padding: 0 6px var(--topo); }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--tinta); color: var(--tinta); cursor: pointer; text-decoration: none; }
.tile img { width: 100%; transition: transform 0.6s ease; }
.mosaico-filmes .tile { aspect-ratio: 16 / 9; }
.mosaico-filmes .tile img { height: 100%; object-fit: cover; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); }
.chip {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 2px 12px; padding: 9px 14px; background: rgba(244, 241, 234, 0.86);
  font-size: 13px; line-height: 1.4; text-align: left; opacity: 0; transition: opacity 0.25s ease;
}
.chip span:first-child { letter-spacing: 0.06em; }
.chip span + span { color: var(--cinza); }
.tile:hover .chip, .tile:focus-visible .chip { opacity: 1; }
@media (hover: none) { .chip { opacity: 1; } }

.player {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px var(--lado); background: rgba(22, 20, 17, 0.96); color: var(--papel);
}
.player .quadro { width: min(100%, 1100px, 150vh); aspect-ratio: 16 / 9; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; }
.player .barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; width: min(100%, 1100px, 150vh); }
.player .nome { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.player .fechar {
  min-height: 44px; padding: 0 22px; border: 1px solid var(--papel); background: transparent; color: var(--papel);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}

/* ── séries: tiras, mosaico e foto ampliada ───────────── */
.tiras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 6px; padding: 0 6px; }
.tira { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; }
.tira .ft { overflow: hidden; aspect-ratio: 4 / 7; background: var(--papel-2); }
.tira img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tira:hover img, .tira:focus-visible img { transform: scale(1.03); }
.tira .nome { min-height: 44px; padding: 0 4px 4px; font-family: var(--serif); font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
@media (max-width: 900px) { .tiras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiras { grid-template-columns: minmax(0, 1fr); } .tira .ft { aspect-ratio: 4 / 3; } }

.mosaico-fotos { column-count: 3; column-gap: 6px; padding: 0 6px; }
.mosaico-fotos .tile { margin: 0 0 6px; break-inside: avoid; background: var(--papel-2); cursor: zoom-in; }
@media (max-width: 900px) { .mosaico-fotos { column-count: 2; } }
@media (max-width: 520px) { .mosaico-fotos { column-count: 1; } }

.vizinhas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px;
  margin: clamp(40px, 4.5vw, 64px) var(--lado) 0; padding-top: 14px; border-top: 1px solid var(--tinta);
}
.vizinhas a.vz { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; text-decoration: none; }

.ampliada {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 18px;
  padding: 16px var(--lado) 28px; background: rgba(244, 241, 234, 0.985);
}
.ampliada .acima { display: flex; justify-content: flex-end; }
.ampliada .fechar {
  min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--tinta);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.ampliada .meio { flex: 1 1 0; min-height: 0; display: flex; align-items: center; gap: 12px; }
.ampliada .foto { position: relative; flex: 1 1 0; min-width: 0; align-self: stretch; }
.ampliada .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ampliada .abaixo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding: 0 56px; }
.ampliada .codigo { font-size: 12px; letter-spacing: 0.14em; color: var(--cinza); }
.ampliada .nome { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
@media (max-width: 620px) { .ampliada .abaixo { padding: 0; } .ampliada .seta { flex-basis: 32px; width: 32px; } }

/* ── fine art ─────────────────────────────────────────── */
.fa-abertura { position: relative; overflow: hidden; }
.fa-abertura img { width: 100%; aspect-ratio: 2 / 1; min-height: 340px; object-fit: cover; object-position: 70% 0%; }
.fa-abertura::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 22, 26, 0.4) 0%, rgba(10, 22, 26, 0.14) 40%, rgba(10, 22, 26, 0) 62%);
}
.fa-abertura h1 {
  position: absolute; z-index: 1; left: var(--lado); bottom: clamp(28px, 6vw, 88px); max-width: min(700px, 72%);
  color: var(--papel); font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(34px, 4.8vw, 70px); line-height: 1.06; text-shadow: 0 1px 28px rgba(0, 0, 0, 0.3);
}
.fa-abertura h1 em { font-style: italic; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fa-abertura h1 span { display: block; animation: sobe 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fa-abertura h1 span + span { animation-delay: 0.4s; }

.par { display: flex; flex-wrap: wrap-reverse; align-items: flex-end; gap: 32px 72px; }
.par .lado-texto { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 32px; }
.par .lado-texto .corpo { max-width: 380px; }
.par figure { flex: 2.2 1 480px; min-width: 0; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 80px; }
.cabeca > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.cabeca h2 { flex: 1 1 360px; max-width: 620px; }
.cabeca .corpo { flex: 0 1 420px; }
.cabeca--fio { padding-top: 28px; border-top: 1px solid var(--tinta); }
.faixa { width: 100%; aspect-ratio: 2 / 1; min-height: 280px; object-fit: cover; object-position: 50% 48%; margin-top: 32px; }
.dupla { display: flex; flex-wrap: wrap; gap: 24px; }
.dupla figure { flex: 1 1 300px; min-width: 0; }
.dupla img { width: 100%; }
.passos { display: flex; flex-wrap: wrap; gap: 40px; }
.passos > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--tinta); }
.passos .num { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--cinza); }
.passos p { font-size: 15px; color: var(--cinza); }
.valores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 80px; }
.valores > div { display: flex; flex-direction: column; gap: 12px; }
.valores > div:first-child { flex: 1.5 1 420px; }
.valores > div:last-child { flex: 1 1 300px; }
.valores table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.valores td { padding: 13px 0; border-top: 1px solid var(--linha); }
.valores td:last-child { text-align: right; }
.valores li { padding: 13px 0; border-top: 1px solid var(--linha); font-size: 15px; color: var(--cinza); }
.valores .nota { padding-top: 13px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--cinza); }
.pilha { display: flex; flex-direction: column; gap: 32px; }
.atendimento {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 80px;
  padding-top: 28px; border-top: 1px solid var(--tinta);
}
.atendimento h2 { flex: 1 1 360px; }
.atendimento > div { flex: 0 1 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* ── sobre ────────────────────────────────────────────── */
.sobre { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 80px; padding: clamp(48px, 6vw, 88px) var(--lado) var(--topo); }
.sobre figure { flex: 1 1 320px; max-width: 520px; min-width: 0; }
.sobre figure img { width: 100%; }
.sobre .lado { flex: 1.2 1 380px; max-width: 600px; display: flex; flex-direction: column; gap: 28px; }
.sobre .lado > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.sobre .bio { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.6; }
.sobre .bio p:last-child { font-size: 16px; color: var(--cinza); }
.contatos { display: flex; flex-direction: column; border-bottom: 1px solid var(--linha); }
.contatos a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  border-top: 1px solid var(--linha); text-decoration: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
