@font-face {
  font-family: Montserrat;
  src: url("ativos/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("ativos/montserrat-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("ativos/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ds-ink); background: var(--ds-paper); font-family: var(--ds-font-interface); }
.apresentacao {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  --margem: clamp(20px, 5.5vw, 100px);
  --largura: 1450px;
}
.cabecalho, .rodape {
  flex: none;
  padding-inline: max(var(--margem), calc((100vw - var(--largura)) / 2));
  display: flex;
  align-items: center;
  background: var(--ds-paper);
}
.cabecalho { gap: 14px; min-height: 58px; border-bottom: 1px solid var(--ds-line); font: 600 15px var(--ds-font-marca); }
.cabecalho img { object-fit: contain; }
main { overflow-y: auto; overscroll-behavior-y: contain; flex: 1; min-height: 0; scroll-snap-type: y proximity; }
main:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--ds-focus-ring); outline-offset: 3px; }
main:focus-visible { outline-offset: -3px; }
.slide {
  min-height: 100%;
  display: grid;
  align-content: center;
  scroll-snap-align: start;
  padding: clamp(28px, 6vh, 80px) var(--margem);
}
.pagina {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, figcaption { font-family: var(--ds-font-marca); font-weight: 600; }
h1, h2 { font-size: clamp(36px, 4.45vw, 76px); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
h3, figcaption { font-size: clamp(18px, 1.55vw, 26px); letter-spacing: -.035em; line-height: 1.2; }
p, blockquote, dt { line-height: 1.48; }
.tema, .subtitulo-grafico, .rotulo, #contador { font: 400 14px/1.45 var(--ds-font-mono); }
.tema { color: var(--ds-brand); margin-bottom: var(--ds-space-5); }
.resumo { font-size: clamp(17px, 1.35vw, 23px); margin-top: var(--ds-space-5); max-width: 52ch; }
.nota { border-left: 3px solid var(--ds-brand); padding-left: 16px; color: var(--ds-muted); margin-top: var(--ds-space-5); max-width: 54ch; }
.fontes, .fonte-painel { margin-top: 16px; font-size: 14px; line-height: 1.45; }
a { color: var(--ds-brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.painel, .dialogo { padding: clamp(24px, 3.4vw, 60px); border-radius: var(--ds-radius-palco); }
.painel { background: var(--ds-hero); color: var(--ds-on-hero); }
.painel a { color: var(--ds-lilac); }
.painel a:focus-visible { outline-color: var(--ds-sun); }
.subtitulo-grafico { margin-top: 8px; }
.fonte-painel { padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 34%, transparent); }
.colunas {
  display: grid;
  grid-template-columns: 4ch 1fr;
  gap: 12px;
  height: clamp(160px, 27vh, 320px);
  margin: 46px 0 52px;
  font: 400 14px/1 var(--ds-font-mono);
}
.escala { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; margin-block: -.5em; }
.plot {
  display: flex;
  gap: 12%;
  align-items: flex-end;
  padding-inline: 8%;
  border-block: 1px solid color-mix(in srgb, var(--ds-on-hero) 40%, transparent);
  background: linear-gradient(to bottom, transparent calc(50% - .5px), color-mix(in srgb, var(--ds-on-hero) 35%, transparent) 50%, transparent calc(50% + .5px));
}
.coluna { flex: 1; position: relative; height: var(--altura); }
.coluna::before { content: ""; position: absolute; inset: 0; }
.coluna.antes::before { background: var(--ds-lilac); }
.coluna.depois::before { background: var(--ds-sun); }
.coluna b, .coluna span { position: absolute; left: 50%; transform: translateX(-50%); }
.coluna b { bottom: calc(100% + 8px); font: 600 clamp(20px, 2vw, 34px)/1 var(--ds-font-marca); }
.coluna span { top: calc(100% + 10px); }
.praticas > div { padding: var(--ds-space-4) 0; border-top: 1px solid var(--ds-line-strong); }
.praticas h3 { color: var(--ds-brand); }
.praticas p, .cenarios p:not(.fontes) { margin-top: 6px; font-size: clamp(16px, 1.15vw, 20px); }
.dialogo { background: var(--ds-brand-soft); }
.rotulo { margin: 20px 0 8px; color: var(--ds-brand); }
blockquote { font-size: clamp(17px, 1.35vw, 22px); }
.leitura { margin-top: 20px; border-top: 1px solid var(--ds-line-strong); padding-top: 16px; }
.cenarios { display: grid; gap: var(--ds-space-5); }
.cenarios > div { border-top: 1px solid var(--ds-line-strong); padding-top: 12px; }
.dado { display: block; color: var(--ds-brand); font: 600 clamp(40px, 4vw, 68px)/1.04 var(--ds-font-marca); letter-spacing: -.065em; margin-bottom: 6px; }
.cenarios .fontes { margin-top: 8px; }
.barras, .habilidades { margin-top: var(--ds-space-6); }
.barras > div + div { margin-top: var(--ds-space-4); }
.barras dt { font-size: 16px; }
.barras dd { display: grid; grid-template-columns: minmax(0, 1fr) 4ch; align-items: center; gap: 16px; font: 400 16px var(--ds-font-mono); }
.barras i { height: 12px; background: color-mix(in srgb, var(--ds-on-hero) 18%, transparent); }
.barras i::before { content: ""; display: block; width: var(--valor); height: 100%; background: var(--ds-sun); }
.barras b { text-align: right; font-weight: 400; }
.painel-habilidades { color: var(--ds-on-accent); background: var(--ds-lilac); }
.painel-habilidades a { color: inherit; }
.painel-habilidades a:focus-visible { outline-color: currentColor; }
.habilidades > div { border-top: 1px solid color-mix(in srgb, currentColor 40%, transparent); padding: 14px 0; display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.habilidades dt { max-width: 27ch; }
.habilidades dd { font: 600 clamp(24px, 3vw, 48px)/1 var(--ds-font-marca); letter-spacing: -.055em; }
@media screen and (prefers-reduced-motion: no-preference) {
  .coluna.animavel:not(.em-cena)::before { clip-path: inset(100% 0 0 0); }
  .barras i.animavel:not(.em-cena)::before { clip-path: inset(0 100% 0 0); }
  .habilidades dd.animavel:not(.em-cena), .cenarios .dado.animavel:not(.em-cena) { opacity: 0; }
  .coluna.em-cena::before { animation: subir-coluna var(--ds-dur-longo) var(--ds-ease); }
  .barras i.em-cena::before { animation: preencher-barra var(--ds-dur-longo) var(--ds-ease); }
  .habilidades dd.em-cena, .cenarios .dado.em-cena { animation: mostrar-indicador var(--ds-dur-medio) var(--ds-ease); }
  @keyframes subir-coluna {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0); }
  }
  @keyframes preencher-barra {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
  @keyframes mostrar-indicador {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.rodape { position: relative; justify-content: space-between; gap: 12px; padding-block: 10px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ds-line); }
.rodape[hidden] { display: none; }
.progresso { position: absolute; top: -2px; left: 0; width: var(--progresso); height: 3px; background: var(--ds-brand); }
#avancar { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; width: 182px; min-height: 46px; padding: 9px 16px; border: 0; border-radius: var(--ds-radius-botao); color: var(--ds-on-brand); background: var(--ds-brand); font: 600 15px var(--ds-font-marca); cursor: pointer; }
#avancar:hover:enabled { box-shadow: var(--ds-shadow-botao); text-decoration: underline; }
#avancar:disabled { color: var(--ds-on-disabled); background: var(--ds-disabled); cursor: default; }
#avancar:disabled svg { visibility: hidden; }
@media (min-width: 861px) and (max-height: 720px) {
  .slide { padding-block: 22px; }
  h1, h2 { font-size: clamp(36px, 4vw, 58px); }
  .painel, .dialogo { padding: clamp(22px, 2.5vw, 36px); }
}
@media (max-width: 860px) {
  .apresentacao { --margem: clamp(18px, 5vw, 40px); }
  .cabecalho { min-height: 48px; }
  .cabecalho img { width: 30px; height: 30px; }
  .pagina { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .slide { padding-block: 26px; }
  h1, h2 { font-size: clamp(34px, 6.5vw, 50px); }
  .tema, .resumo, .nota, .fontes { margin-block: 0; }
  .tema { margin-bottom: 10px; }
  .resumo { margin-top: 12px; }
  .nota { margin-top: 14px; }
  .fontes { margin-top: 10px; }
  .painel, .dialogo { padding: 22px; }
  .colunas { height: 115px; margin: 28px 0 40px; }
  .praticas > div { padding: 10px 0; }
  .barras, .habilidades { margin-top: 20px; }
  .cenarios { gap: 15px; }
  .dado { font-size: 36px; }
  #avancar { width: 168px; }
}
