/* THE DEVO — estilos da revista.
   Linha editorial: estúdio claro, serifa de revista (Bodoni Moda) nos títulos, Archivo no texto,
   tinta preta, papel off-white e um único destaque azul-pó. Pensado para leitura confortável (16 a 60 anos).
   Computador: livro com páginas de 60em × 83,33em (o JS ajusta o font-size do .book).
   Celular: uma página por tela, rolagem vertical dentro de cada página. */

@property --bd1 { syntax: '<color>'; inherits: true; initial-value: #f4f2ee; }
@property --bd2 { syntax: '<color>'; inherits: true; initial-value: #e7e3dd; }
@property --bd3 { syntax: '<color>'; inherits: true; initial-value: #d6d0c7; }
:root {
  --ink: #111111; --ink2: #2b2b2b; --mut: #6d6a64; --line: rgba(17,17,17,.14);
  --paper: #faf8f4; --desk: #e9e6e1; --blue: #9db9db; --blue2: #6f93c0;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  /* tipografia de revista: Didone nos títulos (linha Vogue/Bazaar), Caslon no texto (linha New Yorker),
     geométrica estilo Futura nos rótulos e botões (linha Elle) */
  --sans: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  --text: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --mx: .5; --my: .5;
  color-scheme: light;
  transition: --bd1 1.2s ease, --bd2 1.2s ease, --bd3 1.2s ease;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bd1); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.loading .stage { visibility: hidden; }

/* ================= ESTÚDIO (fundo) ================= */
.desk { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.desk .sweep { position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at calc(40% + var(--mx) * 20%) 32%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(180deg, var(--bd1) 0%, var(--bd2) 62%, var(--bd3) 100%); }
.desk .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(120,110,95,.12)); }
.desk .spot { position: absolute; inset: 0; background: radial-gradient(80% 75% at 50% 45%, transparent 60%, rgba(90,80,70,.14)); }
.desk .beam, .desk .bokeh, .desk-props { display: none; }

/* ================= TOPO ================= */
.topbar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand b { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.brand span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.tools { display: flex; gap: 8px; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.tbtn:hover { background: #fff; border-color: rgba(17,17,17,.35); }
.tbtn svg { width: 17px; height: 17px; }
.tbtn .waves { display: none; }
.tbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tbtn[aria-pressed="true"] .waves { display: inline; }
.tbtn[aria-pressed="true"] .mute { display: none; }

/* ================= PAGINAÇÃO ================= */
.pager { position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 7px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(60,50,40,.12); }
.pbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .2s, opacity .2s; }
.pbtn:hover:not(:disabled) { transform: scale(1.06); }
.pbtn:disabled { opacity: .25; cursor: default; }
.pbtn svg { width: 18px; height: 18px; }
.pinfo { display: grid; justify-items: center; gap: 5px; min-width: 210px; }
.plabel { font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(17,17,17,.2); transition: background .2s, transform .2s; }
.dot[aria-selected="true"] { background: var(--ink); transform: scale(1.3); }
.prog { width: 100%; height: 2px; background: rgba(17,17,17,.1); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .45s ease; }

/* ================= PLAYER ================= */
.player { position: fixed; z-index: 30; left: max(16px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px; border-radius: 999px; max-width: 300px;
  background: rgba(255,255,255,.82); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.player[hidden] { display: none; }
.disc { width: 38px; height: 38px; border-radius: 50%; flex: none; background: radial-gradient(circle, #fff 0 14%, var(--ink) 15% 100%); animation: spin 2.4s linear infinite paused; }
.disc::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 2px, rgba(255,255,255,.08) 2px 3px); }
.player.playing .disc { animation-play-state: running; }
.mbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(17,17,17,.06); flex: none; }
.mbtn:hover { background: rgba(17,17,17,.12); }
.mbtn svg { width: 15px; height: 15px; }
.mbtn .i-pause { display: none; }
.player.playing .i-play { display: none; }
.player.playing .i-pause { display: inline; }
.meta { min-width: 0; }
.ttl { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred { font-size: 10.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred a { text-decoration: none; } .cred a:hover { text-decoration: underline; }

/* ================= AVISOS ================= */
.hint { position: fixed; z-index: 31; left: 50%; bottom: 90px; transform: translate(-50%, 10px); margin: 0; padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s; white-space: nowrap; }
.hint.on { opacity: 1; transform: translate(-50%, 0); }
.toast { position: fixed; z-index: 40; left: 50%; top: 74px; transform: translate(-50%, -20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.credits { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; }
.credits::backdrop { background: rgba(30,28,25,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cred-in { position: relative; background: var(--paper); color: var(--ink); padding: 36px 32px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.3); max-height: 80vh; overflow: auto; }
.cred-in .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; background: var(--ink); color: #fff; }
.cred-in .kick { margin: 0; }
.cred-in h2 { margin: 4px 0 16px; font-family: var(--serif); font-size: 42px; font-weight: 700; }
.cred-in h3 { margin: 20px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; }
.cr-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.cr-list li { margin-bottom: 10px; }
.cr-list pre { margin: 4px 0; white-space: pre-wrap; font: 12px/1.45 ui-monospace, monospace; background: rgba(0,0,0,.05); padding: 8px; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; pointer-events: none; }
.grain { position: fixed; inset: -40px; z-index: 34; pointer-events: none; background-image: var(--grain); opacity: .22; mix-blend-mode: multiply; animation: grain .9s steps(3) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-18px, 12px); } 66% { transform: translate(14px, -16px); } }
html.rm .grain { animation: none; }

/* ================= LIVRO (computador) ================= */
.stage { position: fixed; inset: 0; z-index: 10; outline: none; }
.book-wrap { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; perspective: 2200px; perspective-origin: 50% 30%; }
.book { position: relative; transform-origin: 50% 60%; }
.bshadow { position: absolute; top: 3%; bottom: -4%; left: 1%; right: 1%; border-radius: 2%; background: rgba(70,60,48,.38);
  filter: blur(calc(28px + var(--lift, 0) * 18px)); transform: translate(calc((var(--mx) - .5) * -24px), calc(20px + (var(--my) - .5) * -10px)); transition: left .5s, right .5s; }
.book:not(.has-l) .bshadow { left: 51%; } .book:not(.has-r) .bshadow { right: 51%; }
.face::before { content: ""; position: absolute; inset: 0; z-index: 49; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(calc(100deg + var(--mx) * 40deg), transparent 30%, rgba(255,255,255,.5) calc(30% + var(--mx) * 30%), transparent 75%); opacity: .5; }
.curl { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 80; pointer-events: none; }
.strip { position: absolute; top: 0; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.strip > .sf, .strip > .sb { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); color: var(--ink); }
.strip > .sb { transform: rotateY(180deg); }
.strip .page { position: absolute; top: 0; bottom: 0; right: auto; }
.ssh { position: absolute; inset: 0; z-index: 60; background: #2a241d; opacity: 0; pointer-events: none; }
.shl { position: absolute; inset: 0; z-index: 61; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 50%, transparent); }
.book.turning .cast { filter: blur(4px); }
.stack { position: absolute; top: 0; width: 50%; height: 100%; background: #efebe4; opacity: 0; transition: opacity .2s; }
.stack-l { left: 0; box-shadow: calc(var(--sl, 0) * -1.2px) calc(var(--sl, 0) * .8px) 0 #ddd6ca, calc(var(--sl, 0) * -2px) calc(var(--sl, 0) * 1.4px) 22px rgba(60,50,40,.3); }
.stack-r { right: 0; box-shadow: calc(var(--sr, 0) * 1.2px) calc(var(--sr, 0) * .8px) 0 #ddd6ca, calc(var(--sr, 0) * 2px) calc(var(--sr, 0) * 1.4px) 22px rgba(60,50,40,.3); }
.book.has-l .stack-l, .book.has-r .stack-r { opacity: 1; }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); color: var(--ink); }
.face.back { transform: rotateY(180deg); }
.face.blank { background: var(--paper); }
.face::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; pointer-events: none; z-index: 50; }
.face.front::after { left: 0; background: linear-gradient(90deg, rgba(60,45,30,.2), rgba(60,45,30,.04) 40%, transparent); }
.face.back::after { right: 0; background: linear-gradient(270deg, rgba(60,45,30,.2), rgba(60,45,30,.04) 40%, transparent); }
.face .shade { position: absolute; inset: 0; z-index: 51; pointer-events: none; opacity: 0; }
.face.front .shade { background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.4)); }
.face.back .shade { background: linear-gradient(270deg, rgba(0,0,0,.04), rgba(0,0,0,.4)); }
.cast { position: absolute; top: 0; height: 100%; z-index: 30; pointer-events: none; opacity: 0; width: max(0%, var(--cw, 0%)); max-width: 50%; }
.cast-r { left: 50%; background: linear-gradient(90deg, rgba(40,30,20,.32), transparent); }
.cast-l { right: 50%; background: linear-gradient(270deg, rgba(40,30,20,.32), transparent); }
.book .leaf.moving { filter: drop-shadow(0 10px 18px rgba(40,30,20,.25)); }
.edge { position: absolute; top: 0; bottom: 0; width: 6%; z-index: 60; cursor: pointer; }
.edge-l { left: 0; } .edge-r { right: 0; }
.book:not(.has-l) .edge-l, .book:not(.has-r) .edge-r { pointer-events: none; }
.peel { position: absolute; bottom: 0; width: 0; height: 0; z-index: 61; pointer-events: none; transition: width .25s, height .25s; }
.peel-r { right: 0; background: linear-gradient(315deg, var(--bd2) 50%, #fff 50%, #ece7df 70%, rgba(0,0,0,.18)); }
.peel-l { left: 0; background: linear-gradient(45deg, var(--bd2) 50%, #fff 50%, #ece7df 70%, rgba(0,0,0,.18)); }
.book.peek-r .peel-r, .book.peek-l .peel-l { width: 3.6em; height: 3.6em; }
.book.dragging { cursor: grabbing; }
.page { position: absolute; inset: 0; }
.pg { position: absolute; inset: 0; overflow: hidden; font-size: 1em; line-height: 1.4; }
.pg::after { content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none; mix-blend-mode: multiply; opacity: .3;
  background: var(--grain), radial-gradient(130% 110% at 40% 30%, transparent 62%, rgba(80,60,40,.12)); }
html.d .face .it { translate: calc((var(--mx) - .5) * var(--d, 1) * -.3em) calc((var(--my) - .5) * var(--d, 1) * -.24em); }
html.rm .face .it { translate: none; }

/* ================= CARROSSEL (celular) ================= */
.m-vp { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.m-track { position: relative; height: 100%; }
.m-slide { position: absolute; inset: 0; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; background: var(--paper); }
/* sombra e escurecimento da virada: camadas fixas que só mudam de opacidade (barato no celular) */
.m-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: 0 0 40px rgba(40,30,20,1); opacity: var(--sh, 0); will-change: opacity; }
.m-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; will-change: opacity;
  background: linear-gradient(90deg, rgba(40,30,20,.3), rgba(40,30,20,.8)); opacity: max(var(--sh, 0), calc(var(--dim, 0) * .56)); }
.m-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-scroll::-webkit-scrollbar { display: none; }
html.m .page { position: relative; min-height: 100%; color: var(--ink); }
html.m .pg { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 1.3em;
  padding: calc(4.8em + env(safe-area-inset-top)) 1.5em calc(7em + env(safe-area-inset-bottom)); overflow: hidden; }

/* ================= BLOCOS ================= */
.bg { position: absolute; inset: 0; z-index: 0; }
.art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.art .it { pointer-events: auto; }
.it { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: rotate(var(--r)); }
.blk { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 5; }
html.m .art { position: relative; inset: auto; order: 1; height: var(--mh); flex: none; margin: 0 -1.5em; }
html.m .it { left: var(--mx); top: var(--my); width: var(--mw); transform: rotate(var(--mr)); }
html.m .it.d-only, html.m .d-only { display: none; }
html.m .blk { position: relative; left: auto; top: auto; width: auto; order: var(--mo, 2); }
@keyframes spin { to { rotate: 360deg; } }

/* fundos */
.bg.paper { background: radial-gradient(90% 70% at 30% 20%, #ffffff, transparent 70%), var(--paper); }
.bg.paper.r { background: radial-gradient(90% 70% at 70% 80%, #ffffff, transparent 70%), var(--paper); }
.bg.studio { background: radial-gradient(70% 55% at 62% 36%, #ffffff, transparent 72%), linear-gradient(180deg, #f2f1ee 0%, #ebe9e5 72%, #e2dfd9 100%); }

/* tipografia */
.kick { margin: 0 0 .8em; font-family: var(--sans); font-size: .95em; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mut); }
.kick.accent { color: var(--fa, var(--blue2)); }
.h-xl { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 6.2em; line-height: .92; letter-spacing: -.025em; color: var(--ink); }
.h-xl i, .h-lg i { font-weight: 400; font-style: italic; }
.h-lg { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 4.6em; line-height: .96; letter-spacing: -.02em; }
.h-sm { margin: 0 0 .6em; font-family: var(--serif); font-size: 2.2em; font-weight: 700; }
.standfirst { margin: .7em 0 0; font-family: var(--serif); font-style: italic; font-size: 1.9em; line-height: 1.25; color: var(--ink2); max-width: 28em; }
.body { font-size: 1.22em; line-height: 1.62; color: #262626; }
.body p { margin: 0 0 .9em; }
.cols2 { column-count: 2; column-gap: 2.2em; }
.dropcap > p:first-child::first-letter { float: left; font-family: var(--serif); font-weight: 700; font-size: 4.4em; line-height: .82; margin: .06em .1em 0 0; color: var(--ink); }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.4em; }
.pull { margin: 0; font-family: var(--serif); font-style: italic; font-size: 2.3em; line-height: 1.15; color: var(--ink); border-left: .14em solid var(--fa, var(--blue)); padding-left: .7em; }
.fine { font-size: .95em; line-height: 1.5; color: var(--mut); margin: .8em 0 0; }
.folio { position: absolute; bottom: 2.4em; z-index: 8; display: flex; align-items: baseline; gap: .8em; font-size: 1em; color: var(--mut); }
.folio.l { left: 4.8em; } .folio.r { right: 4.8em; flex-direction: row-reverse; }
.folio b { font-family: var(--serif); font-size: 1.4em; color: var(--ink); font-weight: 700; }
.folio span { letter-spacing: .18em; text-transform: uppercase; font-size: .78em; }
html.m .folio { position: relative; order: 9; bottom: auto; left: auto; right: auto; margin-top: auto; }

/* botões */
.btn-site, .goto { display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 3.4em; padding: 0 1.6em; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1.15em;
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.btn-site .ar, .goto .ar { width: 1.15em; height: 1.15em; transition: translate .25s; }
.btn-site:hover .ar, .goto:hover .ar { translate: .25em 0; }
.btn-site.dark, .goto.dark { background: var(--ink); color: #fff; }
.btn-site.dark:hover, .goto.dark:hover { background: #333; }
.btn-site.light { background: #fff; color: var(--ink); }
.goto.line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.goto.line:hover { background: var(--ink); color: #fff; }
.btn-site.small, .goto.small { height: 3em; font-size: 1em; padding: 0 1.2em; }

/* fotos */
.photo { margin: 0; }
.photo img.shot, .photo .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #fff; box-shadow: 0 .2em .4em rgba(40,30,20,.08), 0 1.4em 2.6em rgba(40,30,20,.16); }
.photo figcaption { margin-top: .8em; font-size: .98em; line-height: 1.4; color: var(--mut); font-style: italic; }
.photo.cutout img.shot { aspect-ratio: auto; object-fit: contain; box-shadow: none; background: none; filter: drop-shadow(0 1.4em 1.4em rgba(40,30,20,.2)); }
.phone { background: #111; padding: .45em; border-radius: 2.4em; box-shadow: 0 1.6em 3em rgba(40,30,20,.3); }
.phone img, .phone .ph { width: 100%; aspect-ratio: 500 / 1084; object-fit: cover; object-position: top; border-radius: 2em; display: block; }
.ph .ph-svg, .ph svg { width: 100%; height: 100%; display: block; }
.it img.can, .it .can-fb { width: 100%; }
.dots-deco { position: absolute; z-index: 5; pointer-events: none; }
.dots-deco i { position: absolute; left: calc(50% + sin(var(--i) * 1.9rad) * 42%); top: calc(var(--i) * 11%); width: calc(1.1em + sin(var(--i) * 2.7rad) * .7em + .7em); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e4eefa, var(--blue) 55%, #86a6cf); opacity: .9; animation: bob 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.6s); }
@keyframes bob { from { translate: 0 -.4em; } to { translate: 0 .4em; } }
.dots-deco.c1 { right: 3%; top: 26%; width: 12%; height: 52%; }
.dots-deco.c2 { left: 84%; top: 12%; width: 8%; height: 26%; }
html.m .dots-deco { display: none; }
html.rm .dots-deco i { animation: none; }

/* ================= CAPA ================= */
.mast { margin: 0; font-family: var(--serif); font-weight: 900; color: var(--ink); line-height: .8; letter-spacing: -.035em; text-align: center; }
.mast span { display: block; font-size: 15em; white-space: nowrap; }
.cover-model { width: 100%; filter: drop-shadow(0 2.4em 2.4em rgba(40,30,20,.22)); }
.cv-issue b { display: block; font-family: var(--serif); font-size: 3.2em; font-weight: 700; line-height: 1; }
.cv-issue span { font-size: .95em; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.cv-q { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 3.7em; line-height: .95; letter-spacing: -.02em; }
.cv-q i { font-weight: 400; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { padding: .7em 0; border-top: 1px solid var(--line); }
.cv-list b { display: block; font-family: var(--serif); font-size: 1.7em; font-weight: 700; }
.cv-list span { font-size: 1.05em; color: var(--mut); }
.cv-bar { display: flex; align-items: flex-end; gap: .5em; }
.cv-bar .barcode { width: 100%; }
.cv-bar span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .8em; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
html.m .p-cover .art { flex: 1 0 auto; height: auto; min-height: calc(100dvh - 12em); }

html.m .cv-q { font-size: 2.3em; text-shadow: 0 0 .6em rgba(242,241,238,.9); }
html.m .cv-list b { font-size: 1.3em; }
html.m .cv-list span { display: none; }
html.m .cv-list li { padding: .4em 0; }

/* ================= SUMÁRIO ================= */
.toc { list-style: none; margin: 0; padding: 0; }
.toc-row { display: grid; grid-template-columns: 4.4em 1fr; grid-template-rows: auto auto; column-gap: 1em; width: 100%; text-align: left; padding: .9em .4em; border-top: 1px solid var(--line); transition: background .2s, padding .25s; }
.toc li:last-child .toc-row { border-bottom: 1px solid var(--line); }
.toc-row:hover { background: rgba(157,185,219,.18); padding-left: .9em; }
.toc-row .n { grid-row: span 2; font-family: var(--serif); font-size: 2.6em; font-weight: 400; line-height: 1; color: var(--ink); }
.toc-row .t { font-family: var(--serif); font-size: 1.9em; font-weight: 700; line-height: 1.1; }
.toc-row .d { font-size: 1.1em; color: var(--mut); }
.toc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.tt { text-align: left; }
.tt img, .tt .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 .8em 1.6em rgba(40,30,20,.14); transition: transform .3s; }
.tt:hover img { transform: translateY(-.3em); }
.tt span { display: block; margin-top: .5em; font-size: 1em; font-weight: 600; }

/* ================= MATÉRIAS ================= */
.ficha { display: grid; grid-template-columns: auto 1fr; gap: .4em 1.2em; margin: 0 0 1em; font-size: 1.05em; }
.ficha dt { font-size: .85em; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); font-weight: 600; padding-top: .15em; }
.ficha dd { margin: 0; font-weight: 600; }
.ficha small { font-weight: 400; color: var(--mut); }
.swatches { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; gap: .45em; }
.swatches li { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ================= COMO FUNCIONA ================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2em; }
.steps li { display: grid; grid-template-columns: 4.4em 1fr; gap: 1.2em; align-items: start; padding-top: 1.4em; border-top: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 3.4em; line-height: .9; font-weight: 400; }
.steps h3 { margin: 0 0 .3em; font-family: var(--serif); font-size: 2.1em; font-weight: 700; }
.steps p { margin: 0; font-size: 1.2em; line-height: 1.55; color: #333; }
.kpi { border: 1px solid var(--line); padding: 1.6em; background: #fff; }
.kpi b { display: block; font-family: var(--serif); font-size: 7em; line-height: 1; font-weight: 700; }
.kpi span:last-child { font-size: 1.1em; color: var(--mut); }
.checks { list-style: none; margin: 0; padding: 0; font-size: 1.2em; line-height: 1.5; }
.checks li { position: relative; padding: .45em 0 .45em 1.6em; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1em; width: .6em; height: .6em; border-radius: 50%; background: var(--blue); }
.faq { margin: 0 0 1.4em; font-size: 1.15em; line-height: 1.5; }
.faq dt { font-family: var(--serif); font-weight: 700; font-size: 1.25em; margin-top: .8em; }
.faq dd { margin: .2em 0 0; color: #333; }

/* ================= NA BANCA ================= */
.rack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2em 1.8em; }
.mc h3 { margin: .7em 0 .1em; font-family: var(--serif); font-size: 1.8em; font-weight: 700; }
.mc > p { margin: 0 0 .8em; color: var(--mut); font-size: 1.05em; }
.mc-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; box-shadow: 0 1em 2em rgba(40,30,20,.14); }
.mc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mc:hover .mc-cover img { transform: scale(1.04); }
.mc-m { position: absolute; left: .5em; top: .3em; margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.5em; color: var(--ink); background: rgba(255,255,255,.85); padding: 0 .3em; }
.mc-act { display: flex; gap: .6em; flex-wrap: wrap; }
.ph-slot .mc-cover { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #fff 0 1em, #f3f0ea 1em 2em); box-shadow: inset 0 0 0 1.5px var(--line); }
.mc-soon { margin: 0; font-family: var(--serif); font-style: italic; font-size: 2em; }

/* ================= PLANOS ================= */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.8em 1.4em 1.4em; background: #fff; border: 1px solid var(--line); }
.plan.hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan h3 { margin: 0; font-family: var(--serif); font-size: 2.4em; font-weight: 700; }
.pt { margin: .2em 0 1em; color: var(--mut); font-size: 1.05em; }
.plan.hl .pt, .plan.hl .pper { color: rgba(255,255,255,.7); }
.pp { margin: 0; font-family: var(--serif); font-size: 2.6em; font-weight: 700; line-height: 1; }
.pp sup { font-size: .4em; }
.pper { margin: .3em 0 1em; font-size: .9em; color: var(--mut); }
.plan ul { margin: 0 0 1.4em; padding-left: 1.1em; font-size: 1.05em; line-height: 1.55; flex: 1; }
.pbadge { position: absolute; top: -.9em; left: 1.4em; background: var(--blue); color: var(--ink); font-size: .85em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3em .7em; }

/* ================= CONTRACAPA ================= */
.contact { display: grid; gap: .8em; }
.ct { display: grid; padding: 1em 1.3em; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.ct:hover { border-color: var(--ink); transform: translateX(.2em); }
.ct small { font-size: .85em; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.ct b { font-family: var(--serif); font-size: 1.9em; font-weight: 700; }
.colophon { display: grid; grid-template-columns: 9em 1fr auto; gap: 1.4em; align-items: center; padding-top: 1.2em; border-top: 1px solid var(--line); }
.colophon .barcode { width: 100%; }
.colophon p { margin: 0; font-size: 1em; line-height: 1.45; color: var(--mut); }
.colophon b { color: var(--ink); }

/* ================= CELULAR ================= */
html.m .h-xl { font-size: 3.9em; }
html.m .h-lg { font-size: 3.2em; }
html.m .standfirst { font-size: 1.45em; }
html.m .body { font-size: 1.15em; }
html.m .cols2 { column-count: 1; }
html.m .pull { font-size: 1.8em; }
html.m .toc-thumbs { grid-template-columns: repeat(3, 1fr); gap: .6em; }
html.m .tt span { font-size: .85em; }
html.m .rack, html.m .plans { grid-template-columns: 1fr; }
html.m .colophon { grid-template-columns: 1fr; }
html.m .kpi b { font-size: 5em; }
html.m .pager { left: auto; right: max(10px, env(safe-area-inset-right)); transform: none; gap: 6px; padding: 6px; }
html.m .pinfo { min-width: 120px; }
html.m .plabel { max-width: 140px; font-size: 12px; }
html.m .dot { width: 5px; height: 5px; }
html.m .dots { gap: 4px; }
html.m .pbtn { width: 40px; height: 40px; }
html.m .player { left: max(10px, env(safe-area-inset-left)); padding: 5px; gap: 5px; }
html.m .player .meta, html.m .player .disc { display: none; }
html.m .topbar .tbtn { height: 36px; padding: 0 12px; font-size: 12px; }
html.m .brand b { font-size: 20px; }
html.m .brand span { display: none; }
html.m .hint { bottom: 80px; }
@media (max-width: 380px) { html.m #tocBtn { display: none; } }

/* ================= CAPA (celular flip) =================
   Fundo de estúdio cinza-claro com sombreamento leve nas bordas, como uma foto de capa. */
.p-cover .bg.studio { background:
  radial-gradient(60% 50% at 58% 42%, #ffffff 0%, rgba(255,255,255,0) 70%),
  radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(60,58,54,.16) 100%),
  linear-gradient(180deg, #efefed 0%, #e7e7e4 70%, #dcdcd8 100%); }
.cover-obj { width: 100%; filter: drop-shadow(-.6em 2em 1.6em rgba(40,40,45,.28)) drop-shadow(0 .3em .3em rgba(40,40,45,.18)); }
.cover-star::after { content: ""; position: absolute; left: 12%; right: 6%; bottom: -2%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,40,45,.28), transparent); z-index: -1; }
.smss { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sms { position: absolute; width: var(--w); fill: var(--blue); rotate: var(--r); filter: drop-shadow(0 .3em .4em rgba(70,100,150,.25)); animation: bob 5s ease-in-out infinite alternate; }
.sms circle { fill: #eef4fb; }
.sms:nth-child(2n) { animation-delay: -1.6s; fill: #b7cce6; } .sms:nth-child(3n) { animation-delay: -3s; }
html.rm .sms { animation: none; }
.cv-lines p { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.15; }
.cv-l1 { font-size: 2.3em; font-weight: 600; letter-spacing: -.01em; }
.cv-l2 { font-size: 1.75em; font-weight: 500; margin-top: .25em !important; }
.cv-l3 { font-size: 1.35em; font-weight: 400; color: var(--mut) !important; margin-top: .45em !important; }
.cv-head { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 4.6em; line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.cv-head em { display: block; font-weight: 400; font-style: italic; }
.cv-sub { margin: 0; font-size: 1.25em; line-height: 1.5; color: #333; }
.cv-go { display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans); font-weight: 600; font-size: 1.15em; color: var(--ink); padding-bottom: .3em; border-bottom: 1.5px solid var(--ink); }
.cv-go .ar { width: 1.1em; height: 1.1em; transition: translate .25s; }
.cv-go:hover .ar { translate: .3em 0; }
html.m .cv-l1 { font-size: 1.7em; } html.m .cv-l2 { font-size: 1.25em; } html.m .cv-l3 { font-size: 1.05em; }
html.m .cv-head { font-size: 2.7em; text-shadow: 0 0 .5em rgba(240,240,238,.95); }
html.m .cv-sub { display: none; }
html.m .smss { display: none; }

.kpi .kpi-txt { font-size: 3em; line-height: 1.05; margin: .2em 0 .3em; }

/* ================= TIPOGRAFIA DE REVISTA ================= */
.pg { font-family: var(--text); }
.mast, .h-xl, .h-lg, .h-sm, .cv-head, .cv-issue b, .toc-row .t, .toc-row .n, .steps h3, .steps .num, .plan h3, .pp, .ct b, .mc h3, .folio b, .kpi b, .faq dt, .dropcap > p:first-child::first-letter { font-optical-sizing: auto; }
.mast span { font-variation-settings: "opsz" 96; font-weight: 800; letter-spacing: -.02em; }
.h-xl, .h-lg, .cv-head { font-variation-settings: "opsz" 72; }
.body, .steps p, .faq dd, .checks, .plan ul, .toc-row .d, .mc > p, .cv-sub, .colophon p, .photo figcaption { font-family: var(--text); }
.body { font-size: 1.16em; line-height: 1.68; }
.ficha dt, .ct small, .folio span, .pbadge, .kick, .tt span, .cv-lines p, .pt, .pper, .fine { font-family: var(--sans); }
.ficha dd { font-family: var(--text); font-weight: 400; }
.ficha small { font-family: var(--text); }

/* título da capa: tamanho pela largura do próprio bloco ("THE DEVO" mede 5,26 × o tamanho da fonte),
   então ele cabe sempre, sem depender de a fonte já ter carregado */
.mast-wrap { container-type: inline-size; }
.mast span { font-size: 18.6cqw !important; text-align: center; }

/* ================= CELULAR: leitura sem sobreposição =================
   Fora da capa e da contracapa, fotos e celulares entram no fluxo, um embaixo do outro. */
html.m .pg:not(.p-cover):not(.p-back) .art { height: auto; margin: 0; display: flex; flex-direction: column; gap: 1.4em; }
html.m .pg:not(.p-cover):not(.p-back) .art .it { position: relative; left: auto; top: auto; width: 100%; transform: none; translate: none; }
html.m .pg:not(.p-cover):not(.p-back) .art .it:has(.phone) { width: 58%; align-self: center; }
html.m .pg:not(.p-cover):not(.p-back) .art .it:has(.cutout) { width: 62%; align-self: center; }
/* a barra flutuante do topo atrapalha a leitura no celular: sai (sumário pelos pontos da barra de baixo, créditos na contracapa) */
html.m .topbar { display: none; }
html.m .pg { padding-top: calc(1.8em + env(safe-area-inset-top)); }
/* deslizar para o lado: a rolagem de cada página só aceita o vertical; o lateral fica com a virada de página */
.m-scroll, .m-scroll * { touch-action: pan-y pinch-zoom; }
.m-scroll img { -webkit-user-drag: none; user-select: none; }

/* sumário: lista e miniaturas no mesmo bloco, em fluxo (cresce com novas demos sem sobrepor) */
.toc-blk .toc-thumbs { margin-top: 2.2em; }
html.d .toc-blk .toc { column-count: 2; column-gap: 2.4em; }
html.d .toc-blk .toc li { break-inside: avoid; }
html.d .toc-blk .toc li .toc-row { border-bottom: 0; }
html.d .toc-blk .toc-row { padding: .7em .4em; }
html.d .toc-blk .toc-row .n { font-size: 2.2em; }
html.d .toc-blk .toc-row .t { font-size: 1.6em; }

/* ================= iOS ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, [role=button], label, select { touch-action: manipulation; }
/* no celular a textura fica parada: a animação em tela cheia com mistura de cor pesa no Safari */
html.m .grain { animation: none; }
@media (hover: none) { .toc-row:hover { background: none; padding-left: .4em; } }

/* celular: textura de papel sem mistura de cor (cara durante a virada) e sem a textura animada em tela cheia */
html.m .grain { display: none; }
html.m .pg::after { mix-blend-mode: normal; opacity: .14; }

/* ================= contracapa no celular ================= */
.ct .ar { display: none; }
html.m .p-back .contact { gap: .7em; }
html.m .p-back .ct { grid-template-columns: 1fr auto; align-items: center; column-gap: 1em; padding: 1.05em 1.3em; border-radius: 1.1em; box-shadow: 0 .4em 1.4em rgba(40,30,20,.06); }
html.m .p-back .ct small, html.m .p-back .ct b { grid-column: 1; }
html.m .p-back .ct b { font-size: 1.55em; line-height: 1.15; overflow-wrap: anywhere; }
html.m .p-back .ct .ar { display: block; grid-column: 2; grid-row: 1 / span 2; width: 1.5em; height: 1.5em; }
html.m .p-back .ct:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
html.m .p-back .ct:first-child small { color: rgba(255,255,255,.6); }
html.m .p-back .ct:not(:first-child) b { font-size: 1.2em; font-family: var(--sans); font-weight: 600; }
html.m .p-back .fine { margin-top: .9em; }
html.m .p-back .colophon { grid-template-columns: 6.5em 1fr; gap: 1em 1.1em; align-items: start; }
html.m .p-back .colophon .barcode { width: 6.5em; }
html.m .p-back .colophon p { font-size: .95em; }
html.m .p-back .colophon .goto { grid-column: 1 / -1; justify-self: start; }
