/* ==========================================================================
   ESTILO 4 — REVISTA
   Editorial em serifa (Bodoni Moda + Newsreader), papel branco, vermelho de
   impressão. Assinaturas: capa que vira, canto que descola, folheto que
   desdobra, perfis em flip-book. Sem JS / movimento reduzido: tudo em fluxo.
   ========================================================================== */
:root {
  --paper: #FBF9F4; --paper-2: #F1EDE4; --ink: #141210; --ink-2: #5B5650; --mute: #77716A;
  --rule: rgba(20, 18, 16, .18); --red: #E73243; --red-ink: #B3202E; --back: #9E1B2A;
  --teal: #179894; --lime: #CDD204; --orange: #F18E0F; --purple: #5F4495;
  --f-d: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-t: 'Newsreader', Georgia, 'Times New Roman', serif;
  --gut: clamp(16px, 4vw, 56px); --run: 48px; --max: 1440px;
  --e-out: cubic-bezier(.2, .9, .25, 1); --e-io: cubic-bezier(.7, 0, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--run); scrollbar-gutter: stable; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font: 400 19px/1.55 var(--f-t); font-optical-sizing: auto; color: var(--ink); background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: inherit; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); translate: 0 -160%; transition: translate .3s var(--e-out); }
.skip:focus { translate: 0 0; }
[hidden] { display: none !important; }
.sc { font-family: var(--f-t); font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 15px; line-height: 1.3; font-weight: 500; }
.pg { font-family: var(--f-d); font-style: italic; font-variant-caps: normal; letter-spacing: 0; color: var(--red-ink); font-weight: 500; }

/* ── Links: fio duplo; o de baixo se completa ─────────────────────── */
.ln { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 0% 1px no-repeat; padding-bottom: 5px; transition: background-size .45s var(--e-out); }
.ln:focus-visible { background-size: 100% 1px, 100% 1px; }
@media (hover: hover) and (pointer: fine) { .ln:hover { background-size: 100% 1px, 100% 1px; } }
.ln--go::after { content: '→'; display: inline-block; margin-left: .35em; font-family: var(--f-t); transition: translate .45s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .ln--go:hover::after { translate: 5px 0; } }
.ln--paper { color: var(--paper); }

/* ── Botão: a tinta abre do centro e a caixa-alta fecha o espacejamento ── */
.btn { --b: var(--ink); --bt: var(--paper); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid var(--b); color: var(--b); overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--b); scale: 0 1; transition: scale .55s var(--e-out); }
.btn__t { font-variant-caps: all-small-caps; font-size: 17px; letter-spacing: .14em; font-weight: 600; transition: letter-spacing .55s var(--e-out), color .35s; }
.btn:focus-visible::before { scale: 1 1; }
.btn:focus-visible .btn__t { color: var(--bt); letter-spacing: .06em; }
.btn:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { scale: 1 1; }
  .btn:hover .btn__t { color: var(--bt); letter-spacing: .06em; }
}
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--ghost { --b: var(--ink); }
.btn--paper { --b: var(--paper); --bt: var(--back); }

/* ── Cabeçalho corrido ─────────────────────────────────────────────── */
.run { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--run); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 0 var(--gut); background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid var(--rule); }
.run__brand { font: 700 italic 22px/1 var(--f-d); letter-spacing: -.01em; min-height: 44px; display: inline-flex; align-items: center; }
.run__mid { text-align: center; color: var(--ink-2); }
.run__folio { white-space: nowrap; color: var(--ink-2); }
.run__num { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; height: 1.3em; min-width: 1.4em; }
.run__num span { display: inline-block; font-family: var(--f-d); font-style: italic; font-variant-caps: normal; color: var(--red-ink); letter-spacing: 0; }
.run__toc { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 600; font-size: 16px; }
.run__toc-ico { display: grid; gap: 3px; width: 16px; }
.run__toc-ico i { height: 1.5px; background: currentColor; transition: rotate .45s var(--e-out), translate .45s var(--e-out), opacity .3s; }
.run__toc-ico i:nth-child(2) { width: 70%; }
[aria-expanded="true"] .run__toc-ico i:nth-child(1) { translate: 0 4.5px; rotate: 45deg; }
[aria-expanded="true"] .run__toc-ico i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .run__toc-ico i:nth-child(3) { translate: 0 -4.5px; rotate: -45deg; }
@media (max-width: 760px) { .run__mid { display: none; } .run { grid-template-columns: 1fr auto auto; } }

/* Fita marcadora */
.ribbon { position: fixed; top: var(--run); right: clamp(10px, 1.6vw, 26px); z-index: 55; width: 12px; height: calc(100svh - var(--run) - 24px); pointer-events: none; }
.ribbon i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); transform-origin: 50% 0; transform: scaleY(0); }
html:not(.js) .ribbon { display: none; }
@media (max-width: 760px) { .ribbon { width: 8px; right: 6px; } }

/* ── Sumário (sobreposição) ────────────────────────────────────────── */
.toc-sheet { position: fixed; inset: var(--run) 0 0; z-index: 70; background: rgba(20, 18, 16, .28); perspective: 1800px; overflow: hidden; }
.toc-sheet__page { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--paper); border-left: 1px solid var(--rule); padding: 32px var(--gut) 28px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; transform-origin: 100% 50%; box-shadow: -30px 0 60px -30px rgba(20, 18, 16, .35); }
.toc-sheet__k { color: var(--ink-2); margin-bottom: 18px; }
.toc-sheet__list a { display: grid; grid-template-columns: 3.2ch 1fr; align-items: baseline; gap: 18px; padding: 10px 0; border-top: 1px solid var(--rule); }
.toc-sheet__list .pg { font-size: clamp(26px, 3vw, 36px); }
.toc-sheet__list b { font: 500 clamp(30px, 4.4vw, 52px)/1.05 var(--f-d); letter-spacing: -.01em; transition: font-style .2s; }
@media (hover: hover) and (pointer: fine) { .toc-sheet__list a:hover b { font-style: italic; } }
.toc-sheet__list a:focus-visible b { font-style: italic; }
.toc-sheet__foot { margin-top: auto; padding-top: 24px; color: var(--ink-2); }

/* ── Estruturas comuns ─────────────────────────────────────────────── */
main { display: block; }
.sec { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 11vw, 168px) var(--gut) clamp(56px, 6vw, 88px); }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }
.kicker { color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.kicker .pg { font-size: 20px; }
.h2 { font: 500 clamp(44px, 6.8vw, 104px)/.98 var(--f-d); letter-spacing: -.02em; text-wrap: balance; }
.h2 em { color: var(--red-ink); }
.deck { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; color: var(--ink-2); max-width: 46ch; font-style: italic; }
.folio { margin-top: clamp(48px, 6vw, 80px); text-align: center; color: var(--mute); font-size: 13px; }

/* ── CAPA + EDITORIAL (virada de página) ───────────────────────────── */
.turn { position: relative; }
.turn__stage { position: relative; }
.cover { position: relative; min-height: 100svh; padding-top: var(--run); background: var(--ink); color: var(--paper); }
.cover__front { position: relative; height: calc(100svh - var(--run)); min-height: 560px; overflow: hidden; }
.cover__img, .cover__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 9, 8, .55), rgba(10, 9, 8, .05) 34%, rgba(10, 9, 8, 0) 50%, rgba(10, 9, 8, .62)), linear-gradient(to right, rgba(10, 9, 8, .45), transparent 55%); }
.cover__mast { position: absolute; left: var(--gut); right: var(--gut); top: clamp(10px, 2vh, 24px); font: 900 clamp(76px, 17.5vw, 290px)/.86 var(--f-d); letter-spacing: -.035em; text-align: center; color: var(--paper); }
.cover__issue { position: absolute; left: var(--gut); right: var(--gut); top: calc(clamp(10px, 2vh, 24px) + clamp(70px, 15.2vw, 252px)); display: flex; justify-content: space-between; border-top: 1px solid rgba(251, 249, 244, .6); padding-top: 8px; font-size: 14px; }
.cover__lines { position: absolute; left: var(--gut); bottom: clamp(24px, 5vh, 56px); width: min(520px, calc(100% - 2 * var(--gut))); display: grid; gap: 14px; }
.cl a { display: grid; gap: 2px; }
.cl__big { font: 600 clamp(38px, 4.6vw, 70px)/.95 var(--f-d); letter-spacing: -.02em; text-shadow: 0 1px 24px rgba(0, 0, 0, .3); }
.cl__big em { color: var(--lime); }
.cover :focus-visible { outline-color: var(--paper); }
.cl__sub, .cl__t { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.3; }
.cl__k { color: var(--lime); font-size: 14px; }
.cl .pg { color: var(--lime); margin-left: 6px; }
.cl--lead { padding-bottom: 10px; border-bottom: 1px solid rgba(251, 249, 244, .45); }
@media (hover: hover) and (pointer: fine) { .cl a:hover .cl__t, .cl a:hover .cl__sub { text-decoration: underline 1px; text-underline-offset: 4px; } }
.cover__bar { position: absolute; right: var(--gut); bottom: clamp(24px, 5vh, 56px); width: 168px; padding: 10px 10px 6px; background: var(--paper); color: var(--ink); display: grid; gap: 4px; justify-items: center; }
.barcode { width: 100%; height: 46px; fill: var(--ink); }
.cover__bar .sc { font-size: 11px; letter-spacing: .06em; }
html:not(.js) .cover__bar { display: none; }
.cover__hint { position: absolute; right: var(--gut); top: 50%; writing-mode: vertical-rl; color: rgba(251, 249, 244, .85); font-size: 13px; display: none; }
.cover__back, .cover__shade { display: none; }
@media (max-width: 760px) {
  .cover__mast { font-size: clamp(56px, 18.5vw, 120px); }
  .cover__issue { top: calc(clamp(10px, 2vh, 24px) + 16.8vw); font-size: 12px; }
  .cover__bar { display: none; }
  .cover__lines { gap: 10px; }
}

.ed { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 9vw, 120px) var(--gut) clamp(40px, 5vw, 64px); background: var(--paper); }
.spread { display: grid; gap: clamp(32px, 5vw, 72px); }
.ed__title { font: 500 clamp(38px, 4.6vw, 74px)/1.02 var(--f-d); letter-spacing: -.02em; margin-top: 16px; text-wrap: balance; }
.ed__title em { color: var(--red-ink); }
.cols { column-gap: 32px; }
.cols p + p { margin-top: .8em; }
.drop__cap { float: left; font: 700 5.3em/.8 var(--f-d); margin: .05em .08em 0 0; color: var(--red-ink); }
.box { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 600; font-size: 17px; }
.box li::before { content: '§ '; color: var(--red-ink); font-variant-caps: normal; }
@media (min-width: 900px) {
  .spread { grid-template-columns: 1fr 1fr; background: linear-gradient(to right, transparent calc(50% - 30px), rgba(20, 18, 16, .07) 50%, transparent calc(50% + 30px)); }
  .cols { columns: 2; }
}

/* modo virada (JS, desktop alto, com movimento) */
.turn.is-on { height: 230vh; }
.turn.is-on .turn__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 2200px; perspective-origin: 12% 50%; }
.turn.is-on .cover { position: absolute; inset: 0; z-index: 3; min-height: 0; background: transparent; transform-origin: 0 50%; transform-style: preserve-3d; }
.turn.is-on .cover__front { position: absolute; inset: var(--run) 0 0; height: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.turn.is-on .cover__back { display: grid; place-items: center; position: absolute; inset: var(--run) 0 0; background: var(--paper-2); backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(180deg); }
.cover__back p { font: 900 18vw/1 var(--f-d); color: rgba(20, 18, 16, .05); transform: scaleX(-1); }
.turn.is-on .cover__shade { display: block; position: absolute; inset: var(--run) 0 0; background: linear-gradient(to right, rgba(0, 0, 0, .15), rgba(0, 0, 0, .85)); opacity: 0; pointer-events: none; backface-visibility: hidden; }
.turn.is-on .cover__hint { display: block; }
.turn.is-on .ed { position: absolute; inset: var(--run) 0 0; max-width: none; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
.turn.is-on .ed .spread { max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; width: 100%; }
.turn.is-on .ed .folio { margin-top: 28px; }
.turn.is-on .ed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, .3), transparent 70%); opacity: var(--cast, 0); pointer-events: none; }

/* ── SERVIÇOS ──────────────────────────────────────────────────────── */
.arts { display: grid; gap: 40px 32px; }
.art { position: relative; display: grid; align-content: start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--ink); }
.art__k { color: var(--ink-2); }
.art__t { font: 600 clamp(30px, 2.6vw, 40px)/1.02 var(--f-d); letter-spacing: -.015em; }
.art__d { color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.art .ln { justify-self: start; margin-top: 6px; font-weight: 600; }
.art__fig { overflow: hidden; background: var(--paper-2); }
.art__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sw { position: relative; display: inline-block; }
.sw__i { position: absolute; left: 0; top: 0; font-style: italic; color: var(--red-ink); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--e-out); white-space: nowrap; }
.sw__r { display: inline-block; clip-path: inset(0 0 0 0); transition: clip-path .55s var(--e-out); }
.art:focus-within .sw__i { clip-path: inset(0 0 0 0); }
.art:focus-within .sw__r { clip-path: inset(0 0 0 100%); }
@media (hover: hover) and (pointer: fine) {
  .art:hover .sw__i { clip-path: inset(0 0 0 0); }
  .art:hover .sw__r { clip-path: inset(0 0 0 100%); }
}
.also { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; font-style: italic; max-width: 90ch; }
@media (min-width: 760px) { .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .art--feature { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .arts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .art--feature { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 48px; }
  .art--feature .art__fig { grid-column: 1; grid-row: 1 / 5; }
  .art--feature .art__t { font-size: clamp(44px, 4vw, 64px); }
  .art:not(.art--feature)::before { content: ''; position: absolute; left: -24px; top: 16px; bottom: 0; width: 1px; background: var(--rule); transform-origin: 50% 0; }
  .art:nth-child(3n + 2)::before { display: none; }
  html.motion-ok .arts:not(.is-in) .art::before { transform: scaleY(0); }
  .arts .art::before { transition: transform 1.1s var(--e-io); }
}

/* foto que "revela" (sai do preto e branco) */
.dev img { transition: filter 1.6s var(--e-out); }
html.motion-ok .dev:not(.is-in) img { filter: grayscale(1) contrast(1.35) brightness(1.08); }

/* ── OBRA: canto que descola ───────────────────────────────────────── */
.peel { margin: 0; }
.peel__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.peel__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.peel__under { order: 2; }
.peel__top { order: 1; }
.peel__flap, .peel__grip, .peel__hint, .peel__tag { display: none; }
.peel__cap { margin-top: 12px; color: var(--ink-2); font-style: italic; font-size: 17px; }
.peel__cap .sc { font-style: normal; color: var(--ink); margin-right: 8px; }
.peel__btn { margin-top: 16px; }
.peel.is-live .peel__stage { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); touch-action: pan-y; }
.peel.is-live .peel__stage img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.peel.is-live .peel__top { position: absolute; inset: 0; }
.peel.is-live .peel__fw { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(-6px 6px 12px rgba(0, 0, 0, .3)); }
.peel.is-live .peel__flap { display: block; position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, 0 0); }
.peel.is-live .peel__tag { display: block; position: absolute; top: 16px; padding: 4px 10px; background: var(--paper); color: var(--ink); font-size: 14px; }
.peel__tag--a { left: 16px; }
.peel__tag--d { right: 16px; }
.peel.is-live .peel__grip { display: block; position: absolute; right: 0; bottom: 0; width: 88px; height: 88px; cursor: grab; touch-action: none; z-index: 3; }
.peel.is-live .peel__hint { display: block; position: absolute; right: 18px; bottom: 96px; padding: 4px 10px; background: var(--ink); color: var(--paper); font-size: 14px; transition: opacity .4s; }
.peel.is-done .peel__hint { opacity: 0; }
.peel.is-live .peel__stage { cursor: pointer; }
@media (max-width: 760px) { .peel.is-live .peel__stage { aspect-ratio: 4 / 3; } }

.essay { margin-top: clamp(56px, 7vw, 104px); display: grid; gap: 32px; align-items: end; }
.essay figure { margin: 0; overflow: hidden; }
.essay img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.essay figcaption { margin-top: 10px; font-style: italic; color: var(--ink-2); font-size: 16px; }
.essay figcaption .sc { font-style: normal; color: var(--red-ink); margin-right: 6px; }
.pull { font: 500 italic clamp(30px, 3.2vw, 48px)/1.1 var(--f-d); letter-spacing: -.01em; padding: 18px 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.pull p::before { content: '“'; color: var(--red); }
.pull p::after { content: '”'; color: var(--red); }
.essay__cta { margin-top: 40px; }
@media (min-width: 900px) {
  .essay { grid-template-columns: 5fr 4fr 6fr; }
  .essay__a img { aspect-ratio: 3 / 4; }
}

/* ── NÚMEROS ───────────────────────────────────────────────────────── */
.figs { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.fig { display: grid; gap: 6px; padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.fig__l { order: 2; color: var(--ink-2); font-style: italic; font-size: 19px; max-width: 30ch; }
.fig__v { order: 1; font: 400 clamp(84px, 11vw, 176px)/.9 var(--f-d); letter-spacing: -.03em; font-variation-settings: 'opsz' 96; white-space: nowrap; }
.fig__v em { color: var(--red); font-weight: 400; }
html:not(.has-motion) .fig__v { font-weight: 800; }
@media (min-width: 900px) {
  .figs { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .fig:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 32px; }
}

/* ── MÉTODO: folheto sanfonado ─────────────────────────────────────── */
.leaf { display: grid; gap: 16px; counter-reset: none; }
.leaf__p { position: relative; padding: 24px 22px 28px; background: var(--paper-2); border: 1px solid var(--rule); }
.leaf__n { display: block; font: 400 italic 64px/1 var(--f-d); color: var(--red-ink); margin-bottom: 10px; }
.leaf__p h3 { font: 600 clamp(24px, 2vw, 30px)/1.05 var(--f-d); margin-bottom: 8px; }
.leaf__p p { color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.leaf__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .leaf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } .leaf__p + .leaf__p { border-left: 0; } }
.fold.is-on { height: 240vh; }
.fold.is-on .fold__stage { position: sticky; top: var(--run); height: calc(100vh - var(--run)); display: flex; flex-direction: column; justify-content: center; }
.fold.is-on .fold__head { margin-bottom: 40px; }
.fold.is-on .leaf { display: block; position: relative; height: 400px; perspective: 1700px; transform-style: preserve-3d; }
.fold.is-on .leaf__p { position: absolute; top: 0; left: 0; height: 100%; border-left: 1px solid var(--rule); transform-origin: 0 50%; backface-visibility: hidden; }

/* ── PERFIS: flip-book ─────────────────────────────────────────────── */
.book__spread { display: grid; gap: 48px; }
.prof { display: grid; gap: 24px; align-items: center; background: var(--paper); }
.prof__pic { margin: 0; }
.prof__pic img { width: min(420px, 100%); mix-blend-mode: multiply; }
.prof__k { color: var(--ink-2); }
.prof__name { font: 500 italic clamp(64px, 8vw, 128px)/.9 var(--f-d); letter-spacing: -.03em; margin: 8px 0 16px; }
.prof__bio { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; max-width: 34ch; }
.prof__pg { margin-top: 20px; color: var(--mute); }
@media (min-width: 900px) { .prof { grid-template-columns: 1fr 1fr; background: linear-gradient(to right, transparent calc(50% - 30px), rgba(20, 18, 16, .06) 50%, transparent calc(50% + 30px)), var(--paper); } .prof__pic { justify-self: center; } }
.book.is-live .book__spread { display: grid; gap: 0; perspective: 2200px; }
.book.is-live .prof { grid-area: 1 / 1; padding: 24px 0; transform-origin: 0 50%; backface-visibility: hidden; visibility: hidden; }
.book.is-live .prof.is-cur, .book.is-live .prof.is-turning, .book.is-live .prof.is-next { visibility: visible; }
.book.is-live .prof.is-cur { z-index: 2; }
.book.is-live .prof.is-turning { z-index: 3; }
.book.is-live .prof.is-next { z-index: 1; }
.prof__shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(0, 0, 0, .35), transparent 60%); opacity: 0; pointer-events: none; }
.book__nav { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.book__btn { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font: 400 22px/1 var(--f-d); transition: background-color .3s, color .3s; }
.book__btn:focus-visible { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .book__btn:hover { background: var(--ink); color: var(--paper); } }
.book.is-live .book__spread { touch-action: pan-y; cursor: grab; }

/* ── DOCUMENTOS: classificados ─────────────────────────────────────── */
.ads { display: grid; gap: 20px; }
.ad { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; border: 3px double var(--ink); }
.ad.has-frame { border-color: transparent; }
.ad__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1; pointer-events: none; display: none; }
.ad.has-frame .ad__frame { display: block; }
.ad__frame rect { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--e-io); }
html.motion-ok .ads:not(.is-in) .ad__frame rect { stroke-dashoffset: 1; }
.ad__frame .i { transition-delay: .25s; }
.ad__k { color: var(--ink-2); }
.ad__t { font: 600 clamp(26px, 2.2vw, 34px)/1.05 var(--f-d); }
.ad__s { font-style: italic; color: var(--ink-2); }
.ad .ln { justify-self: start; font-weight: 600; margin-top: 6px; }
.ad__big { font: 500 clamp(28px, 2.6vw, 40px)/1.1 var(--f-d); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.ad--cnpj .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 760px) { .ads { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ads { grid-template-columns: 1.4fr 1fr 1fr; } .ad--cnpj { grid-row: 1 / 3; } }

/* ── CONTRACAPA ────────────────────────────────────────────────────── */
.back { background: var(--back); color: var(--paper); }
.back__in { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 13vw, 200px) var(--gut) clamp(64px, 8vw, 110px); display: grid; gap: 28px; }
.back .kicker, .back .pg { color: rgba(251, 249, 244, .85); }
.back__t { font: 500 clamp(64px, 10.5vw, 176px)/.92 var(--f-d); letter-spacing: -.035em; max-width: 12ch; }
.back__lead { font-size: clamp(20px, 1.6vw, 24px); font-style: italic; max-width: 36ch; }
.back__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.back__code { margin-top: 24px; justify-self: end; width: 220px; padding: 12px 12px 6px; background: var(--paper); color: var(--ink); display: grid; gap: 4px; justify-items: center; }
.barcode--big { height: 64px; }
.back__code .sc { font-size: 12px; letter-spacing: .08em; }
html:not(.js) .back__code { display: none; }
.back :focus-visible { outline-color: var(--paper); }

/* ── EXPEDIENTE ────────────────────────────────────────────────────── */
.exp { border-top: 1px solid var(--ink); }
.exp__in { max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 28px; }
.exp__mast { font: 900 italic clamp(56px, 9vw, 140px)/.9 var(--f-d); letter-spacing: -.03em; }
.exp__cols { display: grid; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 3px double var(--ink); }
.exp__cols dt { color: var(--ink-2); margin-bottom: 6px; }
.exp__cols dd { font-size: 17px; line-height: 1.6; }
.exp__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); }
@media (min-width: 760px) { .exp__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .exp__cols { grid-template-columns: repeat(4, 1fr); } }

/* ── Movimento reduzido ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .run, .ribbon, .toc-sheet { display: none !important; } }
