/* ==========================================================================
   Receita: Defesa Criminal — amber-diagonal
   Escrita a partir da referência 04 e dos tokens da família (R29).
   Branco é a página; preto em blocos; âmbar no topo do card e no acento de cor;
   diagonais só no hero; Source Serif 4 nos títulos, Lexend no hero e no corpo.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ad-white); color: var(--ad-ink); font-family: var(--ad-font-sans); font-weight: 300; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ad-amber-text); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--ad-ink); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 16px; }
.wrap { width: min(var(--ad-container), calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
h2, h3 { font-family: var(--ad-font-serif); font-weight: 700; color: var(--ad-ink); }
/* acento por cor, nunca por itálico (regra da família) */
.acc { color: var(--ad-amber-text); }
.section-title { font-size: var(--ad-section-heading); max-width: 24ch; margin: 0 0 16px; }
.section-title.center { margin-inline: auto; }
.section-lead { color: var(--ad-muted); max-width: 64ch; margin: 0 0 40px; }
.section-lead.center { margin-inline: auto; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-muted); margin: 0 0 10px; }

/* Ação ------------------------------------------------------------------------ */
.action { display: inline-flex; align-items: center; gap: 10px; background: var(--ad-amber); color: var(--ad-ink); border: 0; border-radius: var(--ad-radius-button);
  font: 500 14px/1 var(--ad-font-sans); padding: 15px 22px; transition: background .2s ease; }
.action:hover { background: #E3AA66; }
.more { position: relative; display: inline-block; font-size: 13px; font-weight: 500; color: var(--ad-amber); padding-bottom: 6px; }
/* assinatura: o filete âmbar cresce no ponteiro */
.more::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--ad-amber); transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.more:hover::after, .more:focus-visible::after { width: 100%; }

/* UtilityHeader · header-three-layers -------------------------------------------- */
.top-strip { background: var(--ad-sand); color: var(--ad-brown); font-size: 13.5px; font-weight: 500; }
.top-strip-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; }
.top-strip p { margin: 0; }
.pill { background: var(--ad-ink); color: #fff; border-radius: var(--ad-radius-button); padding: 7px 14px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 100; background: var(--ad-ink); color: #fff; }
.header.scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.header-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: stretch; min-height: 72px; padding-left: max(24px, calc((100% - var(--ad-container)) / 2)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ad-amber); }
.brand-mark { width: 22px; height: 28px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: var(--ad-font-serif); font-size: 18px; color: #fff; letter-spacing: .02em; }
.brand-copy small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ad-amber); }
.nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 28px); padding-right: 28px; }
.nav a { font-size: 14.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ad-amber); }
/* bloco utilitário: um tom acima, colado à direita */
.utility { display: flex; align-items: center; gap: 12px; background: var(--ad-panel-2); padding: 0 max(24px, calc((100vw - var(--ad-container)) / 2)) 0 24px; }
.utility-icon { width: 28px; height: 28px; color: #fff; }
.utility-icon svg { width: 100%; height: 100%; }
.utility small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.utility a { font-size: 15px; font-weight: 600; }
.menu-toggle { display: none; align-self: center; margin-right: 16px; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--ad-radius-button); padding: 10px 9px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; margin: 4px 0; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--ad-ink); color: #fff; padding: 6px 24px 16px; }
.nav-mobile a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* DiagonalHero · hero-diagonal-slides — o carrossel global move o trilho de slide em slide */
.hero { position: relative; background: var(--ad-paper); }
.hero-viewport { overflow: hidden; }
.hero-track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(78vh, 640px); overflow: hidden; }
.slide-bg { position: absolute; inset: 0; margin: 0; background: #C9C3B8; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: rgba(247, 245, 240, .18); }
/* diagonais decorativas: só no hero, nunca observadas pela revelação (R15) */
.geo { position: absolute; inset: 0; pointer-events: none; }
.tri { position: absolute; inset: 0; }
.tri-a { background: rgba(217, 190, 136, .9); clip-path: polygon(44% 100%, 100% 8%, 100% 100%); }
.tri-b { background: rgba(140, 122, 102, .85); clip-path: polygon(78% 0, 100% 0, 100% 34%); }
.tri-c { background: rgba(74, 58, 40, .8); clip-path: polygon(86% 100%, 100% 70%, 100% 100%); }
.hero-portrait { position: absolute; left: max(4%, calc((100% - var(--ad-container)) / 2)); bottom: 0; width: min(34%, 400px); height: 92%; margin: 0; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 14%); mask-image: linear-gradient(0deg, transparent 0, #000 14%); }
.slide-copy { position: relative; z-index: 1; margin-left: auto; width: min(52%, 640px); padding: clamp(56px, 9vw, 120px) max(4%, calc((100% - var(--ad-container)) / 2)) 80px 0; color: var(--ad-brown); }
.kicker { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.hero h1, .slide-title { font-family: var(--ad-font-sans); font-weight: 600; font-size: var(--ad-hero-heading); line-height: 1.05; color: var(--ad-brown); margin: 0 0 18px; }
.slide-lead { font-size: 17px; font-weight: 400; margin: 0; max-width: 36ch; }
.hero-slide-light .slide-bg::after { background: rgba(247, 245, 240, .62); }
/* slide 1: fundo preto, retrato em vinheta se dissolvendo no escuro, texto claro com contraste total.
   As diagonais ficam só na borda direita, como acento — nunca atrás do texto. */
.hero-slide-dark { background: var(--ad-ink); }
.hero-slide-dark .tri-a { background: rgba(217, 190, 136, .9); clip-path: polygon(88% 100%, 100% 62%, 100% 100%); }
.hero-slide-dark .tri-b { background: rgba(140, 122, 102, .55); clip-path: polygon(90% 0, 100% 0, 100% 22%); }
.hero-slide-dark .tri-c { background: rgba(217, 154, 82, .85); clip-path: polygon(96% 100%, 100% 88%, 100% 100%); }
.hero-slide-dark .hero-portrait { height: 100%; }
.hero-slide-dark .hero-portrait img {
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 48%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 48%, transparent 100%); }
.hero-slide-dark .slide-copy { color: rgba(255, 255, 255, .82); }
.hero-slide-dark .kicker { color: var(--ad-amber); }
.hero-slide-dark h1 { color: #fff; }
.hero-slide-dark .slide-lead { color: rgba(255, 255, 255, .78); }

.hero-slide-light .slide-copy { margin-left: max(4%, calc((100% - var(--ad-container)) / 2)); margin-right: auto; padding-left: 0; }
.slide-sub { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.slide-list { margin: 0; padding-left: 20px; font-size: 16.5px; font-weight: 400; }
.pin { position: absolute; right: 12%; top: 50%; width: min(26vw, 260px); transform: translateY(-50%); fill: rgba(140, 122, 102, .92); }
.hero-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55); color: var(--ad-ink); cursor: pointer; }
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(19, 21, 20, .3); cursor: pointer; }
.hero-dots button[aria-selected="true"], .hero-dots button[aria-current="true"] { background: var(--ad-amber); }
.hero-dots button { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }

/* Faixas ----------------------------------------------------------------------------- */
.band { position: relative; padding-block: var(--ad-band-y); overflow: hidden; }
.band-paper { background: var(--ad-paper); }
/* desenho de linha discreto nas margens brancas */
.lineart { position: absolute; top: 50%; width: 90px; color: var(--ad-ink); opacity: .07; transform: translateY(-50%); pointer-events: none; }
.lineart-left { left: 2vw; }
.lineart-right { right: 2vw; }

/* SplitCards · cards-bipartite-grid --------------------------------------------------- */
.split-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.split-card { display: flex; flex-direction: column; border-radius: var(--ad-radius); overflow: hidden; box-shadow: 0 10px 26px rgba(19, 21, 20, .1); }
.split-top { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 22px 24px 24px; background: var(--ad-amber); }
.line-icon { width: 34px; height: 34px; color: var(--ad-ink); }
.line-icon svg { width: 100%; height: 100%; }
.split-top .tag { justify-self: end; font-size: 12.5px; font-weight: 500; color: var(--ad-ink); }
.split-top h3 { grid-column: 1 / -1; font-size: 22px; margin-top: 6px; }
.split-bottom { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; background: var(--ad-panel); color: #fff; }
.split-bottom p { margin: 0; font-size: 15px; font-weight: 300; }
.split-bottom .more { margin-top: auto; align-self: flex-start; }

/* PhotoCards · photo-cards-veiled ----------------------------------------------------- */
.head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.head-split p { margin: 0; color: var(--ad-muted); max-width: 56ch; }
.photo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-card { position: relative; border-radius: var(--ad-radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--ad-panel); }
.photo-card figure { position: absolute; inset: 0; margin: 0; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-card:hover img { transform: scale(1.03); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 19, 17, .92) 8%, rgba(15, 19, 17, .2) 70%); }
.corner { position: absolute; top: 14px; right: 14px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; }
.corner svg { width: 16px; height: 16px; }
.photo-copy { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.photo-copy .tag { font-size: 12.5px; font-weight: 500; color: var(--ad-amber); }
.photo-copy h3 { color: #fff; font-size: 22px; margin-top: 2px; }

/* PortraitStack · portrait-offset-stack ------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.stack { position: relative; padding: 0 0 40px 40px; }
.stack-main { position: relative; z-index: 1; margin: 0; border-radius: var(--ad-radius-frame); background: var(--ad-panel); padding: 10px; }
/* moldura areia deslocada atrás do retrato: pseudo-elemento do bloco observado (sem recorte, R15),
   desliza até o deslocamento quando o bloco entra na tela */
.stack::before { content: ""; position: absolute; top: 0; right: 0; bottom: 40px; left: 40px; border-radius: var(--ad-radius-frame); background: var(--ad-sand);
  transform: translate(0, 0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s; }
.stack.in::before { transform: translate(-22px, -22px); }
.stack-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 6px; }
.stack-detail { position: absolute; z-index: 2; left: 0; bottom: 0; width: 42%; margin: 0; border: 6px solid var(--ad-white); border-radius: var(--ad-radius); overflow: hidden; background: var(--ad-paper); box-shadow: 0 12px 30px rgba(19, 21, 20, .18); }
.stack-detail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy > p { color: var(--ad-muted); }
.about-sub { font-size: 24px; margin: 26px 0 10px; }
.signature { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--ad-line); border-radius: 6px; }
.signature p { margin: 0; font-size: 15px; color: var(--ad-muted); }
.sig-name { margin-top: 14px !important; }
.sig-name strong { display: block; color: var(--ad-ink); }
.sig-name span { font-size: 13.5px; color: var(--ad-amber-text); }
#sobre[data-ws2-layout="single"] .about-grid { grid-template-columns: 1fr; }

/* AuthorArticles · articles-author-dark ------------------------------------------------- */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article { display: flex; flex-direction: column; border-radius: var(--ad-radius); overflow: hidden; background: var(--ad-panel); }
.article figure { margin: 0; background: var(--ad-panel-2); }
.article img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 15%; }
.article-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 22px; }
.article-copy .tag { font-size: 12.5px; font-weight: 500; color: var(--ad-amber); }
.article-copy h3 { color: #fff; font-size: 19px; line-height: 1.3; }
.article-copy .more { margin-top: auto; align-self: flex-start; }

/* Footer · footer-black-columns --------------------------------------------------------- */
.footer { background: var(--ad-ink); color: rgba(255, 255, 255, .72); padding: clamp(52px, 6vw, 80px) 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: 32px; }
.footer p { margin: 0 0 8px; }
.footer-brand { display: flex; flex-direction: column; margin-bottom: 14px !important; }
.footer-brand .brand-name { font-family: var(--ad-font-serif); font-size: 22px; font-weight: 700; color: #fff; }
.footer-brand small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ad-amber); }
.footer-title { font-family: var(--ad-font-serif); font-size: 18px; font-weight: 700; color: var(--ad-amber); margin: 18px 0 10px !important; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col .footer-title { margin-top: 0 !important; }
.footer-col a:hover { color: var(--ad-amber); }
.map-link { color: var(--ad-amber); border-bottom: 1px solid currentColor; }
.footer .ws2-social-row { width: auto; margin: 14px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 54px; height: 54px; border-radius: 50%; background: var(--ad-amber); color: var(--ad-ink); display: grid; place-items: center; }

/* Revelação --------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-media { opacity: 0; transition: opacity .8s ease; }
.reveal-media.in { opacity: 1; }
/* o recorte vive no primeiro filho, nunca no elemento observado (R15) */
.reveal-media > :first-child { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.22, 1, .36, 1); }
.reveal-media.in > :first-child { clip-path: inset(0 0 0 0); }

/* Responsivo ---------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-row { grid-template-columns: 1fr auto auto; }
  .split-cards, .photo-cards, .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .stack { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top-strip p { font-size: 12px; }
  .utility { display: none; }
  .hero-slide { min-height: 0; display: flex; flex-direction: column; }
  .slide-copy, .hero-slide-light .slide-copy { width: auto; margin: 0; padding: 40px 20px 24px; }
  .hero-portrait { position: relative; left: auto; width: 64%; height: 300px; margin: 0 auto; }
  .tri-a { clip-path: polygon(0 62%, 100% 30%, 100% 100%, 0 100%); }
  .pin { right: 6%; top: auto; bottom: 18px; width: 120px; transform: none; }
  .hero-arrow { display: none; }
  .split-cards, .photo-cards, .articles, .footer-grid { grid-template-columns: 1fr; }
  .lineart { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Movimento reduzido — escopado para o preview da WS2 ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) { scroll-behavior: auto; }
  html:not([data-ws2-motion="full"]) .reveal, html:not([data-ws2-motion="full"]) .reveal-media { transform: none !important; transition: opacity .4s ease !important; }
  html:not([data-ws2-motion="full"]) .reveal.in, html:not([data-ws2-motion="full"]) .reveal-media.in { opacity: 1; }
  html:not([data-ws2-motion="full"]) .reveal-media > :first-child { clip-path: none; transition: none; }
  html:not([data-ws2-motion="full"]) .hero-track { transition: none; }
  html:not([data-ws2-motion="full"]) .stack::before { transition: none; transform: translate(-22px, -22px); }
  html:not([data-ws2-motion="full"]) .more::after { transition: none; }
  html:not([data-ws2-motion="full"]) .photo-card:hover img { transform: none; }
}
