/* ==========================================================
   Reunião Secreta | Erick Couto
   Identidade: marinho + ouro do brasão. Conceito: dossiê
   confidencial de um ex-fiscal, com tarjas que se recolhem.
   ========================================================== */

:root {
  --abismo: #0E1626;
  --marinho: #141E33;
  --marinho-marca: #263450;
  --marinho-claro: #33436A;
  --ouro-1: #E6C98A;
  --ouro-2: #C79C5A;
  --ouro-3: #A97F43;
  --ouro: linear-gradient(115deg, var(--ouro-1) 0%, var(--ouro-2) 48%, var(--ouro-3) 100%);
  --marfim: #EEE7D7;
  --marfim-2: #E2D8C2;
  --nevoa: #9AA4B8;
  --lacre: #B4473C;
  --tinta: #070B14;

  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 1320px;
  --ease: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--marinho);
  color: var(--marfim);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão fino de papel sobre tudo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
b { font-weight: inherit; color: var(--ouro-2); }

:focus-visible {
  outline: 2px solid var(--ouro-1);
  outline-offset: 4px;
}

/* ---------- Marca ---------- */
.marca {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.marca__brasao { width: 38px; height: 51px; flex: none; }
.marca__nome { display: grid; line-height: 1; }
.marca__nome strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: .005em;
  background: var(--ouro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marca__nome span {
  margin-top: .3rem;
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--ouro-2);
  font-variation-settings: "wdth" 110;
}

/* ---------- Botões ---------- */
.botao {
  --brilho: -120%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.6rem;
  padding: 1rem 2.1rem;
  border: 0;
  border-radius: 2px;
  background: var(--ouro);
  color: var(--abismo);
  font: 650 1.02rem/1.2 var(--sans);
  font-variation-settings: "wdth" 105;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 240, 205, .55) inset, 0 18px 40px -18px rgba(199, 156, 90, .65);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.botao::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 235, .65) 50%, transparent 70%);
  transform: translateX(var(--brilho));
  transition: transform .8s var(--ease);
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 240, 205, .55) inset, 0 24px 48px -18px rgba(199, 156, 90, .8); }
.botao:hover::after { --brilho: 120%; }
.botao:active { transform: translateY(0); }

.botao--contorno {
  background: transparent;
  color: var(--ouro-1);
  box-shadow: inset 0 0 0 1px rgba(199, 156, 90, .6);
}
.botao--contorno:hover { box-shadow: inset 0 0 0 1px var(--ouro-1); background: rgba(199, 156, 90, .08); }
.botao--largo { width: 100%; }

.cta__micro {
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--nevoa);
}

/* ==========================================================
   TOPO
   ========================================================== */
.hero {
  position: relative;
  min-height: clamp(680px, 100svh, 1000px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__foto {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  margin-right: calc(var(--gutter) * -1);
  background: var(--marinho);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 85%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 85%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  /* preto da foto vira o marinho da página */
  mix-blend-mode: screen;
  filter: contrast(1.08) brightness(1.02);
  opacity: 0;
  transform: scale(1.06);
  animation: foto-entra 1.8s var(--ease-out) .1s forwards;
}
.hero__varredura {
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 12%;
  background: linear-gradient(180deg, transparent, rgba(230, 201, 138, .16) 60%, rgba(230, 201, 138, .5) 98%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  animation: varre 2.2s var(--ease) 1s forwards;
}

.hero__conteudo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  margin-right: clamp(-9rem, -8vw, 0rem);
}

.hero .marca { margin-bottom: clamp(3rem, 8vh, 6rem); }

/* faixa de data: só aparece no celular */
.faixa-data { display: none; }

.manchete {
  max-width: 23ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
  font-feature-settings: "lnum" 1, "kern" 1;
}

.sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--marfim-2);
}

.agenda {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.2rem;
  padding: 1rem 1.3rem 1rem 1.1rem;
  border-left: 2px solid var(--ouro-2);
  background: linear-gradient(90deg, rgba(38, 52, 80, .85), rgba(38, 52, 80, 0));
}
.agenda__icone {
  width: 26px; height: 26px; flex: none; margin-top: .1rem;
  fill: none; stroke: var(--ouro-1); stroke-width: 1.4;
}
.agenda__data {
  font-weight: 600;
  font-size: 1.05rem;
  font-variation-settings: "wdth" 104;
}
.agenda__contagem {
  margin-top: .2rem;
  font-size: .92rem;
  color: var(--nevoa);
  font-variant-numeric: tabular-nums;
}
.agenda__contagem:empty { display: none; }
.agenda__contagem strong { color: var(--ouro-1); font-weight: 600; }

.apoio {
  margin-top: 1.6rem;
  max-width: 50ch;
  color: var(--nevoa);
  font-size: 1rem;
}

.cta { margin-top: 2.2rem; }

/* ==========================================================
   DOSSIÊ: O QUE VOCÊ VAI VER
   ========================================================== */
.dossie {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  border-top: 1px solid rgba(199, 156, 90, .18);
}
.dossie__lateral {
  position: sticky;
  top: 3rem;
  align-self: start;
}
.dossie__brasao { width: 46px; height: 62px; opacity: .9; }
.dossie__titulo {
  margin: 1.6rem 0 2.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 12ch;
}

.riscos {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.risco {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.3rem 0 2.4rem;
  border-bottom: 1px solid rgba(199, 156, 90, .18);
}
.risco:first-child { padding-top: .4rem; }
.risco__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.4rem;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--ouro-2);
  transition: color .5s var(--ease-out);
}
.risco:hover .risco__num { color: var(--ouro-2); }
.risco h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.1;
  color: var(--ouro-1);
}
.risco p {
  margin-top: .7rem;
  max-width: 52ch;
  color: var(--marfim-2);
  font-size: 1.06rem;
}

/* ==========================================================
   RAIO-X (painel claro, contraste de papel)
   ========================================================== */
.raiox {
  position: relative;
  width: min(calc(100% - var(--gutter) * 2), calc(var(--max) - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  background: var(--marfim);
  color: var(--marinho);
  border-radius: 3px;
}
.raiox::before {
  /* aba de pasta de arquivo */
  content: "";
  position: absolute;
  left: clamp(2.5rem, 5vw, 4.5rem);
  top: -14px;
  width: 140px;
  height: 15px;
  background: var(--marfim);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
.raiox h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.raiox__texto p {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--marinho-marca);
}

.painel {
  display: flex;
  gap: clamp(.45rem, 1vw, .8rem);
  padding: 1.4rem 1.5rem 1.1rem;
  background: var(--marinho);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(199, 156, 90, .3), 0 30px 60px -30px rgba(14, 22, 38, .6);
}
.luz {
  display: grid;
  justify-items: center;
  gap: .55rem;
}
.luz i {
  display: block;
  width: clamp(1.4rem, 2.4vw, 2rem);
  height: clamp(4.5rem, 8vw, 6.5rem);
  border-radius: 2px;
  background: var(--marinho-marca);
  transition: background .4s, box-shadow .4s;
}
.luz small {
  font-size: .78rem;
  color: var(--nevoa);
  font-variant-numeric: tabular-nums;
}
.painel.acende .luz i {
  animation: luz-acende .5s var(--ease-out) forwards;
}
.painel.acende .luz--apaga i {
  animation: luz-acende .5s var(--ease-out) forwards, luz-apaga .6s var(--ease) forwards;
}
.painel.acende .luz:nth-child(1) i { animation-delay: .05s; }
.painel.acende .luz:nth-child(2) i { animation-delay: .17s; }
.painel.acende .luz:nth-child(3) i { animation-delay: .29s; }
.painel.acende .luz:nth-child(4) i { animation-delay: .41s; }
.painel.acende .luz:nth-child(5) i { animation-delay: .53s, 1.5s; }
.painel.acende .luz:nth-child(6) i { animation-delay: .65s, 1.7s; }
.painel.acende .luz:nth-child(7) i { animation-delay: .77s, 1.9s; }
.painel.acende .luz--apaga small { animation: numero-lacre .3s 2s forwards; }

/* ==========================================================
   CHAMADA FINAL
   ========================================================== */
.final {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.final__foto {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--marinho);
  overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 90% at 55% 35%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 55% 35%, #000 55%, transparent 100%);
}
.final__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  mix-blend-mode: screen;
}
.final__texto h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -.01em;
  max-width: 17ch;
  text-wrap: balance;
}
.final__data {
  margin: 1.4rem 0 2rem;
  font-weight: 600;
  color: var(--marfim-2);
}

/* ---------- Rodapé ---------- */
.rodape {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  border-top: 1px solid rgba(199, 156, 90, .18);
  font-size: .9rem;
  color: var(--nevoa);
}
.marca--pequena .marca__brasao { width: 28px; height: 38px; }
.marca--pequena .marca__nome strong { font-size: 1.2rem; }
.marca--pequena .marca__nome span { font-size: .62rem; }
.rodape__contato { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.rodape a { color: var(--marfim-2); text-decoration: none; border-bottom: 1px solid rgba(199, 156, 90, .35); }
.rodape a:hover { color: var(--ouro-1); border-color: var(--ouro-1); }
.rodape__legal { width: 100%; font-size: .8rem; opacity: .7; }

/* ---------- Barra fixa (celular) ---------- */
.barra-fixa { display: none; }

/* ==========================================================
   ANIMAÇÕES
   ========================================================== */
@keyframes foto-entra { to { opacity: 1; transform: scale(1); } }
@keyframes varre {
  0% { opacity: 0; top: -12%; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: 100%; }
}
@keyframes luz-acende {
  to { background: var(--ouro-1); box-shadow: 0 0 18px rgba(230, 201, 138, .55); }
}
@keyframes luz-apaga {
  to { background: #3A1E24; box-shadow: inset 0 0 0 1px var(--lacre); }
}
@keyframes numero-lacre { to { color: #E07A6E; } }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1080px) {
  .hero__conteudo { margin-right: -4rem; }
  .manchete { font-size: clamp(1.9rem, 4vw, 2.9rem); }
}

@media (max-width: 860px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 1rem;
  }
  /* no celular a página inteira é centralizada */
  .local { display: block; }
  .local b { display: none; }

  .hero__foto {
    position: absolute;
    top: 6rem; right: 0; left: 0;
    height: min(72vw, 420px);
    margin: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 50%, transparent 100%);
  }
  .hero__foto img { object-position: 60% 8%; }
  .hero__conteudo {
    margin: 0;
    padding: 0 0 3.5rem;
    align-items: center;
    text-align: center;
  }
  .faixa-data {
    display: block;
    width: calc(100% + 2rem);
    margin: 0 -1rem 1rem;
    padding: .6rem 1rem;
    background: var(--ouro);
    color: var(--abismo);
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: .01em;
  }
  .faixa-data b { color: inherit; opacity: .55; }
  .hero__varredura { display: none; }
  .hero .marca { margin-bottom: calc(min(72vw, 420px) * .8); }
  .marca__nome { text-align: left; }
  .marca__brasao { width: 32px; height: 43px; }
  .marca__nome strong { font-size: 1.35rem; }
  .manchete { font-size: clamp(1.6rem, 6.6vw, 2.2rem); max-width: 22ch; }
  .sub { margin-top: 1.25rem; font-size: 1.05rem; }
  .agenda {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-top: 1.75rem;
    padding: 1.1rem 1rem;
    border-left: 0;
    border-block: 1px solid rgba(199, 156, 90, .35);
    background: radial-gradient(80% 120% at 50% 50%, rgba(38, 52, 80, .9), rgba(38, 52, 80, .25));
  }
  .agenda__icone { margin: 0; }
  .apoio { margin-top: 1.5rem; font-size: .98rem; }
  /* botão logo abaixo do título, para aparecer na primeira tela */
  .cta { order: 1; margin-top: 1.5rem; }
  .sub, .agenda, .apoio { order: 2; }
  .sub { margin-top: 2rem; }
  .cta, .cta .botao { width: 100%; }

  .dossie { grid-template-columns: 1fr; padding: 4rem 1rem 3.5rem; gap: 1.5rem; }
  .dossie__lateral { position: static; text-align: center; }
  .dossie__brasao { display: block; margin: 0 auto; width: 40px; height: 54px; }
  .dossie__lateral .botao { display: none; }
  .dossie__titulo { margin: 1.25rem auto 0; max-width: 16ch; font-size: clamp(2rem, 8.6vw, 2.6rem); text-wrap: balance; }
  .risco {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .7rem;
    padding: 1.9rem 0;
    text-align: center;
  }
  .risco:first-child { padding-top: 1.2rem; }
  .risco:last-child { border-bottom: 0; padding-bottom: 0; }
  .risco__num { font-size: 2.6rem; }
  .risco p { margin-inline: auto; max-width: 34ch; }

  .raiox {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.75rem;
    width: calc(100% - 2rem);
    padding: 2.4rem 1.25rem 1.5rem;
    text-align: center;
  }
  .raiox::before { left: 50%; transform: translateX(-50%); }
  .raiox__texto p { margin-inline: auto; }
  .painel { width: 100%; justify-content: space-between; padding: 1.1rem .9rem .8rem; }
  .luz i { width: 100%; min-width: 1.2rem; }
  .luz { flex: 1; }

  .final {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    padding: 4rem 1rem 3rem;
    text-align: center;
  }
  .final__foto { width: 100%; aspect-ratio: 1 / 1; max-width: 360px; }
  .final__texto { width: 100%; }
  .final__texto h2 { margin-inline: auto; font-size: clamp(1.8rem, 7.6vw, 2.4rem); }
  .final__data { margin: 1rem 0 1.5rem; }
  .final__texto .botao { width: 100%; }

  .rodape {
    flex-direction: column;
    gap: 1.25rem;
    padding-inline: 1rem;
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
    text-align: center;
  }
  .rodape__contato { justify-content: center; }

  .barra-fixa {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(14, 22, 38, 0), rgba(14, 22, 38, .92) 35%);
    transform: translateY(110%);
    transition: transform .45s var(--ease-out);
  }
  .barra-fixa .botao { width: 100%; }
  .barra-fixa.visivel { transform: translateY(0); }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .hero__varredura { display: none; }
  html { scroll-behavior: auto; }
}
