/* Apresentação Clínica EDA.
   Estrutura e componentes da apresentação Festival Mundo Melhor (mesma linha, pedido da direção).
   Base: paleta, Inter Variable (até 700) e ritmo tipográfico do site WDA ag (../WDAAG/public/css).
   Exceção local aprovada pela direção (2026-10-29): linguagem mais atual, com cantos arredondados,
   superfícies em cartão e controles em cápsula. Não promover ao Design System do site.
   As cores --eda-* foram amostradas nas peças e no site da clínica e marcam capítulos e conteúdo do cliente.
   @font-face em css/fonts.css (base64, para abrir também via file://). */

:root {
  --carbon: #1b1d1f;
  --carbon-2: #24272a;
  --carbon-3: #2e3236;
  --paper: #e6e6e6;
  --cream: #fcfcfa;
  --white: #fff;
  --mute: #5f5f5f;

  --eda-verde: #174b3f;
  --eda-dourado: #cba767;
  --eda-creme: #faf7f2;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --pill: 999px;

  --ff: "Inter Variable", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur-fast: .22s;
  --dur-panel: .5s;
  --dur-reveal: .8s;

  --edge: clamp(24px, 3.4vw, 60px);
  --top: 68px;
  --bottom: 92px;
  --pad-y: clamp(8px, 2vh, 24px);
  --stage-h: calc(100dvh - var(--top) - var(--bottom) - 2 * var(--pad-y));
  --side-w: clamp(300px, 25vw, 420px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  font-family: var(--ff); font-size: 16px; line-height: 1.5;
  color: var(--cream); background: var(--carbon);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--eda-dourado); outline-offset: 3px; }

/* ---------- Temas ---------- */
[data-theme=carbon] { --bg: var(--carbon); --ink: var(--cream); --ink-2: rgb(252 252 250 / .74); --mute-c: rgb(252 252 250 / .5); --line: rgb(252 252 250 / .12); --panel: var(--carbon-2); --panel-2: var(--carbon-3); }
[data-theme=paper]  { --bg: var(--paper); --ink: var(--carbon); --ink-2: #3a3d40; --mute-c: #6b6e72; --line: rgb(27 29 31 / .12); --panel: var(--white); --panel-2: #f1f1f1; }
[data-theme=white]  { --bg: #f4f4f2; --ink: var(--carbon); --ink-2: #3a3d40; --mute-c: #6b6e72; --line: rgb(27 29 31 / .1); --panel: var(--white); --panel-2: #ececea; }
[data-color=verde] { --cc: var(--eda-verde); }
[data-color=dourado] { --cc: var(--eda-dourado); }

/* ---------- Tipografia e componentes base ---------- */
.s-head { font-size: clamp(34px, 3.8vw, 70px); font-weight: 650; line-height: .96; letter-spacing: -.04em; text-wrap: balance; max-width: 15ch; color: var(--ink); }
.lede { font-size: clamp(15px, 1.12vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; align-self: start;
  padding: 5px 14px 5px 5px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--cc, var(--ink)) 16%, transparent);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
.chip span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--pill); background: var(--cc, var(--ink)); color: var(--carbon); font-size: 11px; font-weight: 700; }
[data-color=verde] .chip span { color: var(--eda-creme); }

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px; border: 0; border-radius: var(--pill);
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.cta svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform var(--dur-fast) var(--ease-out); }
.cta:hover { transform: translateY(-2px); }
.cta:hover svg { transform: translateX(3px); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 12px; border: 1px solid var(--chrome-line, var(--line)); border-radius: var(--pill);
  background: var(--chrome-fill, transparent); color: inherit; cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.pill-btn svg { width: 18px; height: 18px; }
.pill-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.pill-btn.ghost { padding: 0 18px; height: 56px; font-size: 15px; border-color: var(--line); }
.flip { transform: scaleX(-1); }

/* ---------- Barra superior ---------- */
body[data-theme=carbon] { --chrome: var(--cream); --chrome-mute: rgb(252 252 250 / .55); --chrome-line: rgb(252 252 250 / .16); --chrome-fill: rgb(252 252 250 / .04); }
body[data-theme=paper], body[data-theme=white] { --chrome: var(--carbon); --chrome-mute: #6b6e72; --chrome-line: rgb(27 29 31 / .14); --chrome-fill: rgb(255 255 255 / .5); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--edge); color: var(--chrome);
  transition: color var(--dur-panel) var(--ease-out);
}
.topbar-brand { color: inherit; }
.topbar-brand svg { width: 58px; height: 20px; }
.topbar-title { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; color: var(--chrome-mute); }
.topbar-title b { font-weight: 600; color: var(--chrome); }
.topbar-title b::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 10px; border-radius: 50%; background: currentColor; opacity: .4; vertical-align: middle; }
.topbar-actions { display: flex; gap: 8px; }
.topbar-actions .pill-btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body[data-theme=carbon] .topbar-actions .pill-btn { background: rgb(27 29 31 / .62); }
body.on-cover .topbar-title { opacity: 0; }
:fullscreen [data-action=fullscreen] svg { transform: rotate(180deg); }

/* ---------- Dock de navegação ---------- */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  max-width: calc(100vw - 2 * var(--edge));
  padding: 6px; border-radius: var(--pill);
  background: rgb(22 24 26 / .86); color: var(--cream);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgb(0 0 0 / .22), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.dock-btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); cursor: pointer; transition: background-color var(--dur-fast); }
.dock-btn:hover { background: rgb(255 255 255 / .16); }
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn:disabled { opacity: .3; cursor: default; }
.dock [hidden] { display: none; }
.dock-count { padding: 0 12px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(252 252 250 / .5); flex: none; }
.dock-count b { color: var(--cream); font-weight: 600; }
.dock-next {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: 46px; padding: 0 6px 0 18px; border: 0; border-radius: var(--pill);
  background: var(--cream); color: var(--carbon); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.dock-next:hover { transform: translateX(2px); }
.dock-next-label { font-size: 11px; font-weight: 500; color: #6b6e72; }
.dock-next b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-next svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--carbon); color: var(--cream); }

/* ---------- Deck ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--top) + var(--pad-y)) var(--edge) calc(var(--bottom) + var(--pad-y));
  background: var(--bg); color: var(--ink);
  overflow: hidden; visibility: hidden; opacity: 0;
  transform: translateX(var(--from, 48px)) scale(.985);
  transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out), visibility 0s linear var(--dur-panel);
}
.slide.is-before { --from: -48px; }
.slide.is-active { visibility: visible; opacity: 1; transform: none; z-index: 1; transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out), visibility 0s; }
.slide.is-active .rv { animation: rise var(--dur-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 01 Capa ---------- */
.s-cover { padding-right: 0; justify-content: center; }
.cover-main { position: relative; z-index: 2; width: min(48%, 940px); display: grid; gap: clamp(16px, 2.6vh, 30px); align-content: center; }
.cover-brand { display: flex; align-items: center; gap: 18px; }
.cover-logo { width: auto; height: clamp(54px, 8vh, 92px); flex: none; }
.topbar-logo { width: 24px; height: 24px; border-radius: 50%; }
.tag-pill { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 16px; border-radius: var(--pill); background: rgb(252 252 250 / .07); border: 1px solid rgb(252 252 250 / .12); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cover-title { font-size: clamp(56px, 6.3vw, 128px); font-weight: 650; line-height: .9; letter-spacing: -.05em; margin-left: -.04em; }
.cover-lede { font-size: clamp(16px, 1.25vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.cover-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-facts li { display: grid; gap: 1px; padding: 9px 16px 10px; border-radius: var(--r-md); background: var(--panel); font-size: 14px; font-weight: 500; }
.cover-facts small { font-size: 11px; color: var(--mute-c); font-weight: 400; }
.cover-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 720px; }
.cover-stats li { display: grid; gap: 2px; padding: 14px 16px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); font-size: 12px; color: var(--mute-c); }
.cover-stats b { font-size: clamp(30px, 2.8vw, 52px); font-weight: 650; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.cover-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cover-hint { font-size: 13px; color: var(--mute-c); max-width: 30ch; line-height: 1.45; }

.cover-wall {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 14px 0 0;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.cover-wall::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; z-index: 2; background: linear-gradient(90deg, var(--carbon), transparent); pointer-events: none; }
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wall 70s linear infinite; }
.wall-col.down { animation-direction: reverse; animation-duration: 80s; }
.wall-col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); flex: none; }
@keyframes wall { to { transform: translateY(calc(-50% - 7px)); } }
/* Reels em loop, sobre a parede de peças */
.cover-reel {
  position: absolute; z-index: 3; left: 4%; top: 50%; translate: 0 -50%;
  width: min(clamp(200px, 18vw, 360px), calc((100dvh - 2 * var(--top)) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: #000; box-shadow: 0 0 0 6px var(--carbon), 0 24px 50px rgb(0 0 0 / .45);
}
.cover-reel video { width: 100%; height: 100%; object-fit: cover; }
.cover-reel-tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--pill); background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); font-size: 11px; font-weight: 600; color: #fff; }
.ig-media .cover-reel-tag { top: 14px; left: 14px; z-index: 2; pointer-events: none; font-size: 12px; padding: 5px 12px 5px 10px; }
.cover-reel-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--eda-dourado); animation: blink 1.6s ease-in-out infinite; }

/* Moldura de celular (página do site) */
.phone { position: relative; border-radius: 34px; padding: 7px; background: #0e0f10; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 50px rgb(0 0 0 / .4); }
.phone .phone-screen { aspect-ratio: 9 / 19; border-radius: 27px; background: #fff; }
.phone-screen { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen img { width: 100%; height: auto; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Peças (carrossel e vídeo) ---------- */
.s-work { display: grid; grid-template-columns: minmax(240px, 1fr) auto; column-gap: clamp(28px, 4vw, 80px); align-items: center; }
.s-work .backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.s-work .backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.4); opacity: .55; transform: scale(1.15); }
[data-theme=carbon] .backdrop img { opacity: .22; }
.s-work > :not(.backdrop) { position: relative; z-index: 1; }
.work-info { display: grid; align-content: center; gap: clamp(14px, 2.2vh, 24px); max-width: 440px; }
.w-head { font-size: clamp(36px, 3.8vw, 72px); font-weight: 650; line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.w-copy { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.w-meta { display: inline-flex; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: var(--pill); background: color-mix(in srgb, var(--panel) 70%, transparent); font-size: 13px; color: var(--mute-c); }
.w-meta b { color: var(--ink); font-weight: 600; }
/* Comentários do post, no formato de conversa do Instagram */
.thread { display: grid; gap: 12px; padding: 14px 16px 12px; border-radius: var(--r-lg); background: var(--panel); max-width: 400px; }
.thread-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--mute-c); }
.thread-head svg { width: 14px; height: 14px; }
.cmt { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.cmt .av { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.cmt img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.cmt b { font-weight: 600; margin-right: 2px; }
.cmt small { grid-column: 2; margin-top: 3px; font-size: 11px; color: var(--mute-c); }
.cmt.reply { margin-left: 38px; }
.cmt.reply::before { content: ""; position: absolute; left: -24px; top: -10px; width: 16px; height: 24px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 10px; }
.thread-note { padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute-c); }

/* Trilho de miniaturas, colado à imagem */
.work-post { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); }
.rail { --tw: clamp(54px, 4.4vw, 78px); display: grid; gap: 10px; padding: 12px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(10px); }
.rail-head { display: grid; padding: 0 2px; font-size: 11px; line-height: 1.3; color: var(--mute-c); }
.rail-head b { font-size: 14px; white-space: nowrap; }
.rail-head b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.thumbs { display: grid; grid-template-columns: var(--tw); gap: 8px; }
.thumbs.two { grid-template-columns: repeat(2, var(--tw)); }
.thumbs button { position: relative; padding: 0; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; opacity: .5; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out), outline-color var(--dur-fast); }
.thumbs button:hover { opacity: .9; transform: scale(1.04); }
.thumbs button[aria-current=true] { opacity: 1; outline-color: var(--cc, var(--ink)); }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumbs span { position: absolute; left: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); display: grid; place-items: center; background: rgb(17 17 17 / .72); color: #fff; font-size: 10px; font-weight: 600; }
.rail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rail-nav button { display: grid; place-items: center; height: 38px; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--bg); cursor: pointer; transition: opacity var(--dur-fast); }
.rail-nav button svg { width: 18px; height: 18px; }
.rail-nav button:disabled { opacity: .25; cursor: default; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--panel) 75%, transparent); }
.segmented button {
  display: grid; gap: 1px; padding: 9px 12px; text-align: left; border: 0; border-radius: var(--r-md); background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--mute-c);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.segmented small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected=true] { background: var(--ink); color: var(--bg); }

/* Carrosséis: altura limitada também pela largura disponível (texto + trilho + post) */
@media (min-width: 901px) {
  .s-work:not(.s-video) .ig {
    height: min(var(--stage-h), calc((100vw - 2 * var(--edge) - 240px - clamp(28px, 4vw, 80px) - (2 * clamp(54px, 4.4vw, 78px) + 32px) - clamp(12px, 1.2vw, 20px) - var(--side-w)) * 1.25));
  }
  .s-work .is-single .ig {
    height: min(var(--stage-h), calc((100vw - 2 * var(--edge) - 300px - clamp(28px, 4vw, 80px) - var(--side-w)) * 1.25));
  }
}
/* Post de imagem única: sem trilho, contador nem setas */
.is-single .rail, .is-single .ig-count, .is-single .ig-dots, .is-single .ig-nav { display: none; }
/* Grupo de posts (equipe, antes de agendar): o trilho troca de post; sem marcas de carrossel */
.is-group .ig-count, .is-group .ig-dots { display: none; }
/* Sem título no trilho: o nome muda de tamanho a cada post e fazia o trilho pular; o nome já está no card e na legenda */
.is-group .rail-head { display: none; }
.is-group .ig-media { transition: aspect-ratio var(--dur-panel) var(--ease-out); }

/* Post no formato Instagram web */
.ig { display: flex; height: var(--stage-h); background: var(--white); color: #111; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / .12); }
.ig-media { position: relative; height: 100%; aspect-ratio: 4 / 5; background: #f2f2f2; overflow: hidden; touch-action: pan-y; }
.ig.is-video .ig-media { aspect-ratio: 9 / 16; background: #000; }
.ig-track { display: flex; height: 100%; transition: transform .55s var(--ease-out); }
.ig-track img { width: 100%; height: 100%; flex: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ig-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: #111; cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / .18);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.ig-nav:hover { transform: scale(1.08); }
.ig-nav svg { width: 18px; height: 18px; }
.ig-nav.prev { left: 14px; }
.ig-nav.next { right: 14px; }
.ig-nav[disabled] { opacity: 0; pointer-events: none; }
.ig-count { position: absolute; top: 14px; right: 14px; padding: 4px 11px; border-radius: var(--pill); background: rgb(17 17 17 / .7); color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ig-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .55); box-shadow: 0 0 2px rgb(0 0 0 / .3); transition: all var(--dur-fast); }
.ig-dots i.on { background: #fff; width: 16px; border-radius: 3px; }

.ig-side { width: var(--side-w); display: flex; flex-direction: column; min-height: 0; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #efefef; font-size: 14px; flex: none; }
.ig-head img, .ig-cap-av { width: 32px; height: 32px; padding: 3px; border-radius: 50%; flex: none; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px #e6e6e6; }
.ig-head b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-kind { flex: none; margin-left: auto; padding: 3px 10px; border-radius: var(--pill); background: #f2f2f2; font-size: 11px; font-weight: 500; color: #6b6e72; }
.ig-cap { position: relative; flex: 1; min-height: 0; }
.ig-cap-scroll { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: #d4d4d4 transparent; }
.ig-cap::after { content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 64px; background: linear-gradient(rgb(255 255 255 / 0), #fff); pointer-events: none; transition: opacity var(--dur-fast); }
.ig-cap.at-end::after { opacity: 0; }
.ig-text { font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word; color: #1a1a1a; }
.ig-text b:first-child { font-weight: 600; }
.ig-text .tag { color: #00376b; }
.ig-foot { flex: none; border-top: 1px solid #efefef; padding: 12px 16px 14px; display: grid; gap: 10px; }
.ig-icons { display: flex; align-items: center; gap: 18px; color: #111; }
.ig-icons svg { width: 24px; height: 24px; flex: none; }
.ig-icons span { display: inline-flex; align-items: center; gap: 6px; }
.ig-icons b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ig-icons .ig-like { color: #ff3040; }
.ig-icons .ig-save { margin-left: auto; }
.ig-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b6e72; }
.ig-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eda-dourado); }

/* Vídeo */
.ig-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.v-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.v-play span { display: grid; place-items: center; gap: 2px; width: 84px; height: 84px; border-radius: 50%; background: rgb(255 255 255 / .22); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.v-play svg { width: 32px; height: 32px; margin-left: 4px; }
.v-play:hover span { transform: scale(1.06); }
.is-playing .v-play span { opacity: 0; }
.is-playing .v-play:hover span { opacity: 1; }
.is-playing .v-play svg { margin-left: 0; }
.v-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .5)); }
.v-bar { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); cursor: pointer; position: relative; }
.v-bar::before { content: ""; position: absolute; inset: -8px 0; }
.v-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.v-time { font-size: 11px; color: #fff; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.v-sound { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .2); backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.v-sound svg { width: 18px; height: 18px; }

.s-video .work-post { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); }
.vpick { width: clamp(220px, 17vw, 300px); display: grid; gap: 10px; align-content: center; }
.list-hint { font-size: 12px; color: var(--mute-c); padding-left: 8px; }
.vlist { display: grid; gap: 4px; }
.vlist button {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: clamp(7px, 1.1vh, 11px) 14px clamp(7px, 1.1vh, 11px) 8px; border: 0; border-radius: var(--r-md);
  background: none; cursor: pointer; text-align: left; color: var(--mute-c);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.vlist button:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.vlist button[aria-current=true] { color: var(--ink); background: var(--panel); }
.vlist .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vlist button[aria-current=true] .n { background: var(--cc); color: var(--carbon); }
.vlist .t { font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.vlist .t small { display: block; font-size: 12px; font-weight: 400; opacity: .7; }
.vlist .d { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- Linguagem ---------- */
.s-lang { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.lang-text { display: grid; gap: clamp(16px, 2.4vh, 28px); align-content: center; }
.lang-text .s-head { max-width: 12ch; }
.lang-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-self: center; }
.lang-board figure { display: grid; gap: 10px; padding: 10px 10px 14px; border-radius: var(--r-xl); background: var(--panel); }
.lang-board img { width: 100%; height: auto; border-radius: var(--r-lg); }
.lang-board figure:nth-child(2) { transform: translateY(5vh); }
.lang-board figcaption { font-size: 13px; color: var(--mute-c); padding: 0 6px; }
.lang-board figcaption b { color: var(--ink); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.swatches li { display: grid; gap: 8px; }
.swatches li::before { content: ""; aspect-ratio: 2 / 1; border-radius: var(--r-md); background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }
.swatches span { font-size: 11px; color: var(--mute-c); }

/* ---------- Texto lateral das páginas de anatomia (site) ---------- */
.anatomy-text { display: grid; gap: clamp(14px, 2.2vh, 26px); }
.anatomy-text .s-head { max-width: 12ch; }

/* ---------- Site ---------- */
.browser { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgb(0 0 0 / .14); }
.browser-bar { flex: none; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; background: #f1f1ef; border-bottom: 1px solid #e3e3e0; }
.url { display: inline-flex; align-items: center; gap: 7px; padding: 5px 16px 5px 12px; border-radius: var(--pill); background: var(--white); font-size: 12px; font-weight: 500; color: #3a3d40; }
.url svg { width: 13px; height: 13px; color: #6b6e72; }
.browser-view { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfcfcc transparent; background: #fff; }
.browser-view img { width: 100%; height: auto; }

.s-site { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); column-gap: clamp(28px, 4vw, 80px); align-items: center; }
.site-facts { display: grid; gap: 6px; }
.site-facts li { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 1vw, 16px); color: var(--ink-2); }
.site-facts li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--eda-dourado); }
.site-link { justify-self: start; height: 44px; padding: 0 18px 0 14px; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--panel); }
.site-stage { position: relative; height: var(--stage-h); display: flex; align-items: stretch; padding-right: clamp(70px, 8vw, 150px); }
.site-stage .browser { flex: 1; }
.site-stage .phone { position: absolute; right: 0; bottom: clamp(-6px, -1vh, 0px); width: clamp(150px, 13vw, 250px); max-height: 82%; }
.site-stage .phone .phone-screen { max-height: calc(var(--stage-h) * .82 - 14px); }

.s-siteanat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.s-siteanat .s-head { max-width: 12ch; }
.site-keys { display: grid; gap: 2px; counter-reset: k; }
.site-keys button {
  width: 100%; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: baseline;
  padding: clamp(5px, .9vh, 9px) 12px clamp(5px, .9vh, 9px) 8px; border: 0; border-radius: var(--r-md);
  background: none; text-align: left; cursor: pointer; color: var(--ink-2);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.site-keys button::before { counter-increment: k; content: counter(k); grid-row: span 2; align-self: start; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--carbon); background: var(--eda-dourado); opacity: .55; transition: opacity var(--dur-fast); }
.site-keys b { font-size: 15px; font-weight: 600; color: var(--ink); }
/* A descrição fica numa área de altura fixa abaixo da lista: a lista não muda de altura ao escolher */
.site-keys span { display: none; }
.site-keys button:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.site-keys button[aria-pressed=true] { background: var(--panel); }
.site-keys button[aria-pressed=true]::before { opacity: 1; }
.site-desc { height: calc(3 * 1.45em); overflow: hidden; max-width: 44ch; padding-left: 46px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.anat-browser { height: var(--stage-h); }
.site-canvas { position: relative; }
.site-marks { position: absolute; inset: 0; pointer-events: none; }
.site-mark { position: absolute; border-radius: 10px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow var(--dur-panel) var(--ease-out), background-color var(--dur-panel); }
.site-mark span { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--eda-dourado); color: var(--carbon); font-size: 13px; font-weight: 700; opacity: 0; transform: scale(.8); transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.site-mark.on { box-shadow: inset 0 0 0 3px var(--eda-dourado), 0 0 0 9999px rgb(14 15 16 / .38); background: rgb(203 167 103 / .06); }
.site-mark.on span { opacity: 1; transform: none; }
.site-mark:last-child span { top: auto; bottom: calc(100% + 8px); left: auto; right: 6px; }

/* ---------- Resultado ---------- */
.s-result { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.result-text { display: grid; gap: clamp(14px, 2.4vh, 28px); }
.result-num { font-size: clamp(120px, 16vw, 320px); font-weight: 650; line-height: .82; letter-spacing: -.065em; margin-left: -.05em; }
.result-sub { font-size: clamp(22px, 2.1vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; max-width: 20ch; text-wrap: balance; }
.result-quote { justify-self: start; padding: 16px 20px; border-radius: var(--r-lg); background: var(--panel); font-size: clamp(15px, 1.15vw, 19px); color: var(--ink); max-width: 44ch; }
.result-quote { display: flex; align-items: center; gap: 16px; }
.result-quote img { width: 52px; height: auto; flex: none; }
.result-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mute-c); }
.result-text { position: relative; z-index: 1; }
.result-side { display: flex; flex-wrap: wrap; gap: 8px; }
.result-side li { display: grid; gap: 2px; padding: 12px 18px 14px; border-radius: var(--r-lg); background: var(--panel); font-size: 13px; color: var(--mute-c); max-width: 24ch; line-height: 1.35; }
.result-side b { font-size: clamp(26px, 2.4vw, 44px); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; color: var(--eda-dourado); font-variant-numeric: tabular-nums; }
.result-src { font-size: 12px; color: var(--mute-c); }
/* Quadro do reels tem 720 px de largura: exibido como painel vertical, nunca maior que o original, para não perder nitidez */
.s-result { grid-template-columns: minmax(0, 1fr) auto; }
.result-media { position: relative; height: min(72vh, 790px); aspect-ratio: 720 / 790; border-radius: var(--r-xl); overflow: hidden; }
.result-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; }
.s-result.is-active .result-media img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.04); } }

/* ---------- Impulsionamento ---------- */
.s-boost { gap: clamp(12px, 2.2vh, 24px); }
.boost-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.boost-head > div { display: grid; gap: 14px; }
.boost-head .s-head { font-size: clamp(30px, 3vw, 56px); max-width: 20ch; }
.boost-src { font-size: 13px; line-height: 1.5; color: var(--mute-c); text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis li { padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel); display: grid; gap: 4px; align-content: start; }
.kpis .k { font-size: 12px; color: var(--mute-c); }
.kpis .v { font-size: clamp(24px, 2.3vw, 44px); font-weight: 650; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis .note { font-size: 11px; color: var(--mute-c); }
.boost-card { min-height: 0; overflow: auto; padding: 8px 20px 14px; border-radius: var(--r-xl); background: var(--panel); }
.boost-table { width: 100%; border-collapse: collapse; font-size: clamp(13px, .95vw, 15px); font-variant-numeric: tabular-nums; }
.boost-table th { font-size: 12px; font-weight: 500; color: var(--mute-c); text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.boost-table td { padding: clamp(6px, 1.05vh, 11px) 12px clamp(6px, 1.05vh, 11px) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.boost-table tr:last-child td { border-bottom: 0; }
.boost-table td:first-child { font-weight: 600; }
.boost-table .num { text-align: right; padding-right: 0; padding-left: 24px; white-space: nowrap; }
.boost-table .bar-col { width: 28%; }
.boost-table .pc { margin-right: 10px; }
.boost-table .res b { font-weight: 650; }
.boost-table .res span { margin-left: 6px; font-size: 12px; color: var(--mute-c); }
.bar { display: flex; align-items: center; gap: 10px; }
.bar i { display: block; height: 12px; border-radius: var(--pill); background: var(--carbon); width: 0; transition: width 1s var(--ease-out); }
.bar span { white-space: nowrap; }
.fmt { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--panel-2); font-size: 12px; color: var(--ink-2); }
.boost-table .muted { color: var(--mute-c); }
.dest { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dest::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--eda-verde); }
.dest[data-dest=Site]::before { background: var(--eda-dourado); }
.dest[data-dest=Feed]::before { background: transparent; box-shadow: inset 0 0 0 2px var(--mute-c); }
.bar i { background: var(--eda-verde); }
.boost-note { margin-top: 8px; font-size: 12px; color: var(--mute-c); }
/* Ajuste fino feito pelo JS quando a janela não comporta a tabela */
.boost-table.fit { font-size: var(--fs); }
.boost-table.fit td { padding-block: var(--rp); }

/* ---------- Encerramento ---------- */
.s-end { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.end-card { display: grid; gap: clamp(18px, 3vh, 32px); align-content: center; }
.end-lockup { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); margin-bottom: clamp(8px, 4vh, 48px); }
.end-logo { width: clamp(120px, 11vw, 210px); height: auto; aspect-ratio: 1750 / 584; color: var(--cream); }
.end-x { width: 1px; align-self: stretch; margin: 6px 0; background: rgb(252 252 250 / .28); }
.end-client { width: auto; height: clamp(46px, 4.6vw, 88px); }
.end-title { font-size: clamp(48px, 6.6vw, 124px); font-weight: 650; line-height: .9; letter-spacing: -.055em; max-width: 12ch; text-wrap: balance; }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.end-meta { display: grid; gap: 8px; }
.end-meta > div { padding: 14px 18px; border-radius: var(--r-lg); background: var(--panel); }
.end-meta dt { font-size: 12px; color: var(--mute-c); margin-bottom: 2px; }
.end-meta dd { font-size: 15px; font-weight: 500; }

/* ---------- Índice ---------- */
.index { position: fixed; inset: 0; z-index: 40; overflow: auto; background: rgb(17 18 20 / .96); backdrop-filter: blur(10px); color: var(--cream); --ink: var(--cream); --mute-c: rgb(252 252 250 / .55); --panel: var(--carbon-2); }
.index-inner { padding: 24px var(--edge) 48px; display: grid; gap: 24px; }
.index-head { display: flex; justify-content: space-between; align-items: center; }
.index-head .pill-btn { --chrome-line: rgb(252 252 250 / .2); }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.index-grid button { --cc: var(--eda-dourado); }
.index-grid button {
  position: relative; width: 100%; min-height: 188px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px 18px 18px; text-align: left;
  border: 0; border-radius: var(--r-xl); cursor: pointer; color: var(--cream);
  background: var(--panel);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.index-grid button::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--cc); opacity: .9; }
.index-grid button:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--cc) 14%, var(--panel)); }
.index-grid button[aria-current=true] { box-shadow: inset 0 0 0 2px var(--cc); }
.ix-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ix-chap { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: rgb(252 252 250 / .72); }
.ix-chap i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.ix-kind { padding: 3px 10px; border-radius: var(--pill); background: rgb(255 255 255 / .07); font-size: 11px; color: rgb(252 252 250 / .6); }
.ix-num { align-self: end; font-size: clamp(52px, 4.6vw, 76px); font-weight: 650; line-height: .85; letter-spacing: -.06em; color: var(--cc); font-variant-numeric: tabular-nums; }
.ix-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.index-grid button[aria-current=true] .ix-kind::before { content: "Você está aqui · "; color: var(--cream); }

/* ---------- Desktop baixo ou estreito ---------- */
@media (min-width: 901px) and (max-width: 1240px) {
  .topbar-actions span { display: none; }
  .topbar-actions .pill-btn { padding: 0 10px; }
}
/* Coluna de texto estreita ao lado do post */
@media (min-width: 901px) and (max-width: 1600px) {
  .w-head { font-size: clamp(34px, 3.3vw, 56px); }
}
@media (min-width: 901px) and (max-height: 780px) {
  :root { --top: 58px; --bottom: 80px; --side-w: clamp(280px, 24vw, 360px); }
  .dock { bottom: 10px; }
  .cover-hint { display: none; }
  .site-keys button { padding-block: 4px; }
  .site-desc { height: calc(2 * 1.45em); font-size: 13px; }
  .cover-main { gap: 14px; }
  .cover-logo { height: 64px; }
  .cover-title { font-size: clamp(48px, 5.4vw, 96px); }
  .cover-lede { font-size: 15px; max-width: 46ch; }
  .cover-stats { display: none; }
  .site-facts li { font-size: 13px; }
}

/* Impulsionamento: a tabela precisa caber sem rolagem */
@media (min-width: 901px) and (max-height: 900px) {
  .s-boost { gap: 10px; }
  .boost-head > div { gap: 8px; }
  .boost-head .s-head { font-size: clamp(26px, 2.5vw, 40px); max-width: none; }
  .kpis li { padding: 10px 14px; gap: 2px; }
  .kpis .v { font-size: clamp(22px, 2vw, 32px); }
  .boost-card { padding: 2px 18px 10px; }
  .boost-table th { padding-block: 7px; }
  .boost-table td { padding-block: clamp(3px, .9vh - 2px, 8px); }
  .boost-note { margin-top: 4px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .boost-head .chip, .kpis .note { display: none; }
  .boost-head .s-head { font-size: clamp(22px, 2.2vw, 32px); }
  .kpis li { padding: 8px 14px; }
  .kpis .v { font-size: clamp(20px, 1.8vw, 28px); }
  .boost-table { font-size: 13px; }
  .boost-table th { padding-block: 5px; }
  .boost-table td { padding-block: 2px; }
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 900px) {
  :root { --edge: 18px; --top: 58px; --bottom: 84px; --pad-y: 16px; }
  .topbar { background: color-mix(in srgb, var(--bg-c, var(--carbon)) 88%, transparent); backdrop-filter: blur(12px); }
  body[data-theme=paper] .topbar { --bg-c: var(--paper); }
  body[data-theme=white] .topbar { --bg-c: #f4f4f2; }
  .topbar-title span, .topbar-actions span { display: none; }
  .topbar-title { position: static; transform: none; margin-right: auto; }
  .topbar-title b::before { display: none; }
  .topbar-actions .pill-btn { padding: 0 10px; }

  .dock { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; justify-content: space-between; }
  .dock-next { padding: 0 6px 0 14px; }
  .dock-next-label { display: none; }
  .dock-next b { max-width: 13ch; font-size: 13px; }

  .slide { display: block; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--bottom) + 24px); }
  .slide > * + * { margin-top: 32px; }
  .s-head { font-size: clamp(30px, 8.6vw, 44px); }

  .s-cover { padding-right: var(--edge); }
  .cover-main { width: auto; }
  .cover-title { font-size: clamp(50px, 15vw, 110px); }
  .cover-stats { grid-template-columns: repeat(2, 1fr); }
  .cover-wall { position: relative; width: auto; height: 340px; margin: 32px calc(-1 * var(--edge)) 0; padding: 0 14px; }
  .cover-wall::before { display: none; }
  /* Reels em destaque no centro da parede, maior que as peças ao redor */
  .cover-reel { left: 50%; top: 50%; translate: -50% -50%; width: min(64vw, 270px); }
  .cover-wall { height: calc(min(64vw, 270px) * 16 / 9 + 64px); }

  .s-work, .s-lang, .s-result, .s-end, .s-site, .s-siteanat { display: block; }
  .site-stage { height: auto; padding-right: 0; display: block; }
  .site-stage .browser, .anat-browser { height: 64dvh; }
  .site-stage .phone { position: relative; width: min(62%, 240px); margin: 20px auto 0; right: auto; bottom: auto; max-height: none; }
  .site-stage .phone .phone-screen { max-height: none; }
  .site-keys button { padding-block: 8px; }
  .site-desc { display: none; }
  .site-keys button[aria-pressed=true] span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--mute-c); }
  .work-info { max-width: none; }
  .work-post { display: block; }
  .rail { --tw: 58px; margin-bottom: 12px; grid-template-columns: 1fr auto; align-items: center; }
  .rail-head { grid-column: 1 / -1; }
  .thumbs, .thumbs.two { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--tw); overflow-x: auto; padding: 3px; scrollbar-width: none; }
  .rail-nav { grid-template-columns: 40px 40px; }
  .ig { flex-direction: column; height: auto; width: 100%; border-radius: var(--r-lg); }
  .ig-media { width: 100%; height: auto; }
  .ig.is-video .ig-media { width: min(100%, calc(70dvh * 9 / 16)); margin: 0 auto; }
  .s-video .work-post { display: block; }
  .vpick { width: auto; margin-bottom: 20px; }
  .ig-side { width: 100%; border-top: 1px solid #efefef; }
  .ig-cap { height: 44dvh; flex: none; }

  .lang-board { gap: 8px; }
  .lang-board figure { padding: 6px 6px 10px; border-radius: var(--r-lg); }
  .lang-board img { border-radius: var(--r-md); }
  .lang-board figure:nth-child(2) { transform: none; }
  .lang-board figcaption { font-size: 11px; padding: 0 2px; }

  .result-num { font-size: clamp(96px, 30vw, 180px); }
  .result-media { width: 100%; height: auto; margin-top: 32px; border-radius: var(--r-lg); }

  .boost-head { display: grid; }
  .boost-src { text-align: left; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .boost-card { padding: 4px 16px 12px; }
  .boost-table thead { display: none; }
  .boost-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 12px; row-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .boost-table tr:last-child { border-bottom: 0; }
  .boost-table td { padding: 0; border: 0; }
  .boost-table td:nth-child(1), .boost-table td:nth-child(3) { grid-column: 1 / -1; }
  .boost-table td:nth-child(1) { grid-row: 1; padding-right: 90px; }
  .boost-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; justify-self: end; }
  .boost-table td:nth-child(6) { display: none; }
  .boost-table .num { padding-left: 0; text-align: left; display: grid; }
  .boost-table .num::before { content: attr(data-l); font-size: 11px; font-weight: 400; color: var(--mute-c); }
  .boost-table .res span { margin-left: 0; }

  .cover-hint { display: none; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .index-grid button { min-height: 150px; padding: 14px; border-radius: var(--r-lg); }
  .index-grid button::before { left: 14px; right: 14px; }
  .ix-kind { display: none; }
  .ix-num { font-size: 44px; }
  .ix-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .slide { transform: none; }
}

/* Retorno ao índice nas apresentações integradas ao site. */
@media (max-width: 700px) { .topbar-actions .deck-portfolio-return { display: inline-flex; } .deck-portfolio-return span { display: none; } }

/* Mantém títulos longos afastados dos controles no celular. */
.pill-btn { text-decoration: none; }
@media (max-width: 900px) { .topbar { gap: 12px; } .topbar-brand, .topbar-actions { flex-shrink: 0; } .topbar-title { min-width: 0; overflow: hidden; } .topbar-title b { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .topbar-logo { flex-shrink: 0; } .topbar-actions .pill-btn { flex-shrink: 0; } }
