/* Diógenes Lemes — portfólio editorial no tipo da Zara Home.
   Papel off-white quente, tinta quase preta, serifa Didone (Bodoni Moda), rótulos sans
   em caixa-alta espaçada (Hanken Grotesk) e um toque de assinatura (Pinyon Script). */

:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --ink: #171511;
  --ink-soft: #6a6356;
  --line: rgba(23, 21, 17, .18);
  --line-forte: rgba(23, 21, 17, .4);
  --serif: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Bodoni Moda", cursive;
  --gut: clamp(18px, 5vw, 64px);
  --borda: clamp(90px, 14vh, 150px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html.travado { overflow: hidden; scrollbar-gutter: stable; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.pular { position: fixed; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.pular:focus { left: 8px; }

/* ── átomos ── */
.kicker {
  font-family: var(--sans);
  font-size: clamp(10px, 1vw, 11.5px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--ink-soft);
}
.kicker--claro { color: rgba(255, 255, 255, .82); }
.script { font-family: var(--script); font-weight: 400; font-style: normal; letter-spacing: .01em; text-transform: none; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
h2 .script { font-size: 1.15em; line-height: .8; }

.corpo { font-family: var(--serif); font-weight: 400; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.62; color: #2a2720; }
.corpo p + p { margin-top: .9em; }

.botao {
  --c: var(--ink);
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--c);
  padding: 14px 26px 12px;
  border: 1px solid var(--c);
  background: transparent;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
}
.botao:hover { background: var(--c); color: var(--paper); }
.botao--cheio { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.botao--cheio:hover { background: transparent; color: var(--ink); }

/* ── topo ── */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--gut);
  color: #fff;
  transition: background .4s ease, color .4s ease, padding .4s ease, box-shadow .4s ease;
}
.topo.solido {
  background: var(--paper); color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.topo__marca { display: flex; gap: .3em; font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 1.7vw, 21px); letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.topo__marca span:last-child { font-style: italic; font-weight: 400; }
.topo__nav { grid-column: 2; display: flex; gap: clamp(14px, 2vw, 30px); }
.topo__nav a, .topo__ig { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; position: relative; }
.topo__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .3s ease; }
.topo__nav a:hover::after { right: 0; }
.topo__ig { grid-column: 3; justify-self: end; }
@media (max-width: 820px) { .topo__nav { display: none; } .topo { grid-template-columns: 1fr auto; } .topo__ig { grid-column: 2; } }

/* ── hero ── */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; overflow: hidden; }
.hero__midia, .hero__midia video, .hero__veu { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__midia video { object-fit: cover; }
.hero__veu { background: linear-gradient(180deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,.14) 32%, rgba(10,8,6,.2) 62%, rgba(10,8,6,.66) 100%); }
.hero__centro { position: relative; z-index: 2; padding: 0 var(--gut); }
.hero__nome { font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -.015em; margin: 18px 0 10px; display: flex; flex-direction: column; }
.hero__nome span { font-size: clamp(52px, 13vw, 168px); }
.hero__nome span:last-child { font-style: italic; }
.hero__assina { font-family: var(--script); font-size: clamp(26px, 5vw, 56px); line-height: 1; color: rgba(255,255,255,.92); }
.hero__assina span { font-style: italic; }
.hero__rodape { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gut); flex-wrap: wrap; }
.hero__leg { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.9); }
.hero__areas { display: flex; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.hero__areas a { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.82); }
.hero__areas a:hover { color: #fff; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #d8402f; animation: pisca 1.6s steps(1) infinite; }
@keyframes pisca { 50% { opacity: .25; } }
@media (max-width: 560px) { .hero__areas { display: none; } .hero__rodape { justify-content: center; } }

/* ── editorial dividido ── */
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); padding: var(--borda) var(--gut); }
.editorial--inverso .editorial__foto { order: 2; }
.editorial__foto { overflow: hidden; }
.editorial__foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.editorial__foto:hover img { transform: scale(1.03); }
.editorial__texto { max-width: 30em; }
.editorial__texto .kicker { margin-bottom: 20px; }
.editorial__texto h2 { margin-bottom: 26px; }
.editorial__texto .corpo { max-width: 26em; }
.indice { margin-top: 30px; font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--ink-soft); }
blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: var(--ink); margin-bottom: 22px; }
.numeros { display: flex; gap: clamp(22px, 4vw, 48px); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.numeros div dd { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.numeros div dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-top: 7px; max-width: 11em; }
@media (max-width: 760px) { .editorial { grid-template-columns: 1fr; gap: 30px; } .editorial--inverso .editorial__foto { order: 0; } .editorial__foto img { aspect-ratio: 3/4; max-height: 76vh; } }

/* ── seções ── */
.secao { padding: var(--borda) var(--gut); border-top: 1px solid var(--line); }
.secao__cab { max-width: 46em; margin-bottom: clamp(36px, 6vh, 70px); }
.secao__cab .kicker { margin-bottom: 18px; }
.secao__sub { font-family: var(--serif); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }

/* ── destaques (Audi + Direção) ── */
#destaques { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-bottom: clamp(44px, 7vh, 84px); }
.destaque { display: flex; flex-direction: column; }
.destaque .cartao--destaque { width: 100%; }
.destaque__texto { padding-top: 24px; }
.destaque__marca { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }
.destaque__texto h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; margin: 10px 0 14px; }
.destaque__texto p { font-family: var(--serif); font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.6; color: #2c2922; max-width: 34em; }
.destaque__texto blockquote { margin: 16px 0; font-size: clamp(16px, 1.6vw, 20px); }
.destaque__texto ul { list-style: none; margin: 14px 0; }
.destaque__texto ul li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.destaque__texto ul li::before { content: "—"; position: absolute; left: 0; }
.destaque__texto .botao { margin-top: 20px; }
@media (max-width: 760px) { #destaques { grid-template-columns: 1fr; } }

/* ── filtros ── */
.filtros { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 34px; }
.filtros button { font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 8px; cursor: pointer; transition: all .3s ease; display: inline-flex; gap: 7px; align-items: center; }
.filtros button small { font-feature-settings: "tnum"; opacity: .6; }
.filtros button:hover { border-color: var(--line-forte); color: var(--ink); }
.filtros button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filtros button[aria-selected="true"] small { opacity: .7; }

/* ── grade de cartões ── */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2vw, 30px) clamp(14px, 1.6vw, 22px); }
.cartao { font: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.cartao.some { display: none; }
.cartao__midia { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 9/16; }
.cartao--destaque .cartao__midia { aspect-ratio: 4/5; }
.cartao__midia img, .cartao__midia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cartao__midia video { opacity: 0; transition: opacity .5s ease; }
.cartao.tocando .cartao__midia video { opacity: 1; }
.cartao__midia img { transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.cartao:hover .cartao__midia img { transform: scale(1.04); }
.cartao__dur { position: absolute; right: 10px; bottom: 10px; z-index: 3; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: #fff; background: rgba(12,10,8,.5); backdrop-filter: blur(4px); padding: 4px 8px; }
.cartao__play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 54px; height: 54px; translate: -50% -50%; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; opacity: 0; transition: opacity .4s ease, scale .4s ease; scale: .8; }
.cartao__play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cartao:hover .cartao__play, .cartao.tocando .cartao__play { opacity: 1; scale: 1; }
.cartao__leg { display: flex; flex-direction: column; gap: 5px; }
.cartao__marca { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.cartao__titulo { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.15; }

/* ── marcas (índice) ── */
.marcas { background: var(--paper-2); }
.marcas__lista { list-style: none; border-top: 1px solid var(--line); }
.marcas__lista li { display: grid; grid-template-columns: 2.5em 1fr auto; align-items: baseline; gap: 18px; padding: clamp(14px, 2.2vh, 26px) 0; border-bottom: 1px solid var(--line); transition: padding-left .4s cubic-bezier(.2,.8,.2,1); }
.marcas__lista li:hover { padding-left: 14px; }
.marcas__n { font-size: 11px; letter-spacing: .1em; color: var(--ink-soft); font-feature-settings: "tnum"; }
.marcas__nome { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.6vw, 58px); line-height: .98; letter-spacing: -.01em; }
.marcas__lista li:nth-child(odd) .marcas__nome { font-style: italic; }
.marcas__qtd { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 560px) { .marcas__lista li { grid-template-columns: 2em 1fr; } .marcas__qtd { display: none; } }

/* ── mosaico de fotos ── */
.mosaico { columns: 3 260px; column-gap: clamp(14px, 1.6vw, 22px); }
.mosaico figure { break-inside: avoid; margin-bottom: clamp(14px, 1.6vw, 22px); overflow: hidden; }
.mosaico img { width: 100%; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.mosaico figure:hover img { transform: scale(1.04); }
.mosaico figcaption { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-top: 9px; }

/* ── contato ── */
.contato { text-align: center; border-top: 1px solid var(--line); }
.contato__titulo { margin: 16px auto 0; }
.contato .secao__sub { margin-left: auto; margin-right: auto; }
.proposta { max-width: 540px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.proposta label { display: flex; flex-direction: column; gap: 9px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }
.proposta input, .proposta textarea { font-family: var(--serif); font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-forte); padding: 10px 0; resize: vertical; }
.proposta input::placeholder, .proposta textarea::placeholder { color: rgba(23,21,17,.32); }
.proposta input:focus, .proposta textarea:focus { outline: none; border-color: var(--ink); }
.proposta fieldset { border: 0; }
.proposta legend { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { flex-direction: row; }
.chips input { position: absolute; opacity: 0; width: 0; }
.chips span { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px 8px; cursor: pointer; transition: all .25s ease; }
.chips label:hover span { border-color: var(--line-forte); color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.proposta .botao { align-self: start; }
.contato__direto { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.contato__direto a { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--line-forte); padding-bottom: 3px; }
.contato__direto a:hover { border-color: var(--ink); }

/* ── rodapé ── */
.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 34px var(--gut); border-top: 1px solid var(--line); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.rodape__marca { font-family: var(--serif); text-transform: none; letter-spacing: .02em; font-size: 15px; color: var(--ink); }
.rodape a { border-bottom: 1px solid var(--line-forte); }

/* ── sala de exibição ── */
.sala { margin: auto; width: min(1120px, 94vw); max-height: 92vh; padding: 0; border: 0; background: #100e0c; color: #f3efe7; }
.sala::backdrop { background: rgba(8,7,5,.9); backdrop-filter: blur(6px); }
.sala[open] { display: grid; grid-template-columns: 1fr 340px; }
.sala__tela { background: #000; display: flex; align-items: center; justify-content: center; }
.sala__tela video { width: 100%; max-height: 92vh; object-fit: contain; }
.sala__info { padding: 34px 30px; overflow-y: auto; }
.sala__info .destaque__marca { color: rgba(243,239,231,.6); }
.sala__info h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.08; margin: 10px 0 14px; }
.sala__info p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: rgba(243,239,231,.82); margin-bottom: 12px; }
.sala__meta { font-family: var(--sans) !important; font-size: 10.5px !important; text-transform: uppercase; letter-spacing: .14em; color: rgba(243,239,231,.5) !important; }
.sala__info .botao { --c: #f3efe7; margin-top: 10px; }
.sala__info .botao:hover { color: #100e0c; }
.sala__fechar { position: absolute; top: 12px; right: 14px; z-index: 5; width: 42px; height: 42px; font-size: 26px; line-height: 1; color: #f3efe7; background: rgba(0,0,0,.35); border: 0; cursor: pointer; border-radius: 50%; }
.sala__fechar:hover { background: rgba(0,0,0,.6); }
.sala__seta { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 46px; height: 46px; font-size: 26px; color: #f3efe7; background: rgba(0,0,0,.3); border: 0; cursor: pointer; border-radius: 50%; }
.sala__seta--ant { left: 12px; } .sala__seta--prox { left: auto; right: 360px; }
.sala__seta:hover { background: rgba(0,0,0,.55); }
.creditos { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0; font-size: 12.5px; }
.creditos dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; padding-top: 2px; }
.creditos dd { font-family: var(--serif); }
.sala__info .creditos dt { color: rgba(243,239,231,.55); }
@media (max-width: 820px) {
  .sala { margin: 0; width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; }
  .sala[open] { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sala__tela { max-height: 56svh; }
  .sala__seta { display: none; }
}

/* ── animação de entrada ── */
.revela { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.revela.visto { opacity: 1; transform: none; }
.desloca { }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .revela { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
