/* fx/reveal: manifesto statement + title highlighter. Default (no JS / reduced motion) = final state. */

/* ---- manifesto ---- */
#manifesto { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.mf-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mf-text {
  max-width: 1000px; margin: 0 auto; text-align: center; color: var(--ink);
  font-weight: 300; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance;
}
.mf-ic {
  display: inline-block; position: relative; vertical-align: -.1em; width: 1.34em; height: .92em; margin: 0 .06em;
  border-radius: 999px; transform: rotate(-4deg);
}
.mf-ic[data-ic="baloes"] { background: rgba(138, 180, 248, .42); }
.mf-ic[data-ic="sino"] { background: rgba(245, 194, 107, .55); transform: rotate(3deg); }
.mf-ic[data-ic="grafico"] { background: var(--okbg); transform: rotate(-3deg); }
.mf-ic img {
  position: absolute; left: 50%; top: 50%; width: 1.22em; height: 1.22em; object-fit: contain; transform: translate(-50%, -52%);
  filter: drop-shadow(0 .06em .08em rgba(0, 0, 0, .18));
}
/* built by reveal.js: each line is a clip mask; the descender allowance sits outside the layout box */
.mf-line { display: block; clip-path: inset(-.45em -.6em -.12em -.6em); }
.mf-in { display: block; will-change: transform; }
.mf-w { display: inline; }
.mf-ic.is-fx { will-change: transform; }

/* phone: the dive's canvas panel carries the first lines, so there is no empty screen between the dive and the text */
@media (max-width: 700px) {
  #manifesto { margin-top: calc(-1 * var(--dv-hp, 40svh)); padding: 54px 0 72px; z-index: 4; }
}
@media (min-width: 701px) and (max-width: 1023px) {
  #manifesto { margin-top: -50svh; padding: 72px 0 96px; z-index: 4; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { #manifesto { margin-top: 0; } }
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { #manifesto { margin-top: 0; padding: 56px 0 64px; } }
#mergulho.dv-static + #manifesto { margin-top: 0; }

/* ---- title highlighter ---- */
.nb { white-space: nowrap; }
.hl { position: relative; display: inline-block; isolation: isolate; }
.hl-bar {
  position: absolute; z-index: -1; left: -.14em; right: -.14em; top: .16em; bottom: -.02em; border-radius: 6px;
  background: rgba(138, 180, 248, .45); transform: rotate(-1deg); transform-origin: left center;
}
:root[data-theme="dark"] .hl-bar { background: rgba(138, 180, 248, .28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl-bar { background: rgba(138, 180, 248, .28); } }
.ttl-ill {
  display: inline-block; width: clamp(56px, 6.4vw, 88px); height: auto; aspect-ratio: 1; vertical-align: middle;
  margin: -1.1em 0 -1.1em .22em; transform-origin: 50% 60%; pointer-events: none; user-select: none;
}
.ttl-ill.is-broken, .mf-ic img.is-broken { display: none; }
@media (max-width: 520px) { .ttl-ill { width: 60px; margin-left: .14em; } }
@media (max-width: 560px) {
  #seguranca .hs-h2 { margin-bottom: 14px; }
  #seguranca .ttl-ill { width: 52px; margin-top: -.6em; margin-bottom: -.7em; }
  #seguranca .hs-sec-head { margin-bottom: 44px; }
}
