/* Instituto Projeto Cura · Apresentação interativa (palco 1920×1080)
   Mesmos tokens da landing (ver ../../DESIGN.md) */

:root {
  --roxo: #562e7a;
  --roxo-900: #3f1f5c;
  --roxo-950: #2a1440;
  --magenta: #ee287c;
  --violeta: #92278f;
  --teal: #08a79e;
  --teal-900: #06857e;
  --azul-ceu: #26aae1;
  --azul: #1475bc;
  --laranja: #f7941d;
  --amarelo: #ffc20d;
  --verde: #39b54a;
  --texto: #404041;
  --pilula: #d1d3d4;
  --lilas: #a99bc6;
  --lilas-claro: #ece7f4;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.16, 1, .3, 1);
  --bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--texto);
  background: var(--roxo-950);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }

/* ---------- Palco ---------- */
.deck { position: fixed; inset: 0; display: grid; grid-template-rows: 1fr var(--bar); }
.viewport { position: relative; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, .5));
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6);
  font-size: 30px; line-height: 1.5;
}

.slide {
  position: absolute; inset: 0;
  padding: 110px 130px 100px;
  background: #fff;
  visibility: hidden;
  overflow: hidden;
}
.slide.is-active { visibility: visible; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; }
/* Revelação em círculo, o grafismo do Cura */
.deck.is-moving .slide.is-active { animation: wipe 1s var(--pop) both; }
@keyframes wipe {
  from { clip-path: circle(0% at var(--ox, 100%) var(--oy, 100%)); }
  to { clip-path: circle(150% at var(--ox, 100%) var(--oy, 100%)); }
}
.deck.is-moving .slide.is-leaving { animation: recede 1s var(--ease) both; }
@keyframes recede { to { transform: scale(.94); filter: brightness(.7); } }

/* ---------- Entradas ---------- */
[data-a] {
  opacity: 0;
  transition: none;
}
[data-a="up"] { transform: translateY(70px); }
[data-a="left"] { transform: translateX(-120px); }
[data-a="right"] { transform: translateX(120px); }
[data-a="pop"] { transform: scale(0); }
[data-a="zoom"] { transform: scale(1.18); }
[data-a="spin"] { transform: rotate(-60deg) scale(.4); }
[data-a="mask"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-a="fade"] { transform: none; }

.slide.is-active [data-a] {
  opacity: 1; transform: none;
  transition:
    opacity .7s var(--ease) var(--d, 0s),
    transform 1s var(--pop) var(--d, 0s),
    clip-path 1.1s var(--pop) var(--d, 0s);
}
.slide.is-active [data-a="mask"], .slide.is-leaving [data-a="mask"] { clip-path: inset(-20% -10% -25% -5%); }
.slide.is-leaving [data-a] { opacity: 1; transform: none; }
.slide.is-active [data-a="zoom"] { transition-duration: .9s, 2.2s, 1s; }

/* ---------- Tipografia ---------- */
.w-light { font-weight: 300; }
.w-black { font-weight: 900; }
.w-cura { color: var(--roxo); letter-spacing: -.02em; }
.dot { font-style: normal; color: var(--magenta); font-weight: 900; }
.dot--white { color: #fff; }
.h-sig { font-size: 96px; line-height: 1.05; color: var(--roxo); letter-spacing: -.02em; margin-bottom: 56px; }
.h-sig--light, .h-sig--light .w-light { color: #fff; }
.h-plain { font-size: 76px; line-height: 1.08; font-weight: 300; color: var(--roxo); letter-spacing: -.02em; margin-bottom: 32px; }
.sub { font-size: 34px; max-width: 1300px; margin: -24px 0 56px; }
.sub b { color: var(--roxo); }
.body-light { font-size: 32px; line-height: 1.55; }
.hl-sky { color: var(--azul-ceu); }
.c-magenta { color: var(--magenta) !important; }
.tag {
  display: inline-block; padding: 10px 28px; border-radius: 99px;
  background: var(--azul-ceu); color: #fff; font-weight: 500; font-size: 24px; margin-bottom: 28px;
}
.tag--roxo { background: var(--violeta); }

.bracket { position: relative; padding-left: 40px; }
.bracket::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 14px;
  border: 4px solid var(--bc, var(--magenta)); border-right: 0; border-radius: 14px 0 0 14px;
}
.bracket--magenta { --bc: var(--magenta); }
.bracket--laranja { --bc: var(--laranja); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 84px; padding: 18px 56px; border-radius: 99px;
  background: var(--bg, var(--teal)); color: #fff; border: 0;
  font: 800 28px/1 var(--font); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .45); }
.btn--teal:hover { background: var(--teal-900); }
.btn--light { --bg: #fff; color: var(--roxo); }
.btn--xl { min-height: 110px; padding: 24px 72px; font-size: 38px; }

.orb {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1);
  border-radius: 50%; background: var(--c); z-index: 3; pointer-events: none;
}
.slide.is-active .orb { animation: float 6s ease-in-out infinite 1.4s; }
@keyframes float { 50% { translate: 0 -18px; } }

/* ---------- Logo animado ---------- */
.logo svg { width: 100%; height: auto; display: block; }
.is-anim .dot-c { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dotpop .55s var(--pop) forwards; animation-delay: calc(var(--i) * 45ms + .3s); }
.is-anim .word, .is-anim .tag-g { opacity: 0; animation: fade .7s var(--ease) forwards; }
.is-anim .word { animation-delay: .85s; }
.is-anim .tag-g { animation-delay: 1.15s; }
@keyframes dotpop { to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 1 · Capa ---------- */
.s-cover { padding: 0; background: linear-gradient(90deg, #fbfbfb 0%, #f1f1f2 45%, #e2e2e2 70%); }
.s-cover__text { position: absolute; left: 130px; top: 100px; width: 900px; z-index: 2; }
.s-cover .logo { width: 470px; margin-bottom: 70px; }
.cover-title { font-size: 112px; line-height: 1.02; color: var(--roxo); letter-spacing: -.03em; font-weight: 900; }
.cover-title .w-light { font-size: .78em; }
.cover-year {
  font-size: 200px; line-height: .95; font-weight: 300; color: transparent;
  -webkit-text-stroke: 3px var(--roxo); letter-spacing: -.03em; margin: 6px 0 40px;
}
.cover-year .dot { -webkit-text-stroke: 0; }
.s-cover .lead { font-size: 34px; max-width: 760px; color: var(--roxo); font-weight: 400; }
.s-cover__media { position: absolute; right: 0; top: 0; bottom: 0; width: 1000px; overflow: hidden; }
.s-cover__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

/* ---------- 2 · Números ---------- */
.ring-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; margin-bottom: 70px; }
.ring-stats li { display: grid; justify-items: center; gap: 26px; text-align: center; }
.ring-stats strong {
  display: flex; justify-content: center; align-items: baseline;
  width: 330px; height: 330px; border-radius: 50%; padding-top: 106px;
  background: var(--c); color: #fff; font-size: 104px; font-weight: 900; line-height: 1; letter-spacing: -.03em;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--c) 18%, #fff);
}
.ring-stats strong b { font-weight: 900; }
.ring-stats small { font-size: .38em; font-weight: 700; margin: 0 4px; }
.ring-stats span { font-size: 30px; font-weight: 500; color: var(--roxo); max-width: 340px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.chips li { padding: 12px 28px; border-radius: 99px; background: var(--lilas-claro); color: var(--roxo); font-weight: 500; font-size: 24px; }

/* ---------- 3 · Presidente ---------- */
.s-president { padding: 0; display: grid; grid-template-columns: 1180px 1fr; }
.s-president__panel { background: var(--roxo); color: #fff; padding: 110px 110px 90px 130px; display: flex; flex-direction: column; }
.big-quote { font-size: 64px; line-height: 1.18; font-weight: 300; margin-bottom: 48px; letter-spacing: -.01em; }
.big-quote b { font-weight: 900; color: var(--amarelo); }
.s-president .body-light { font-size: 30px; opacity: .95; }
.sign { margin-top: auto; font-size: 24px; opacity: .85; }
.sign b { display: block; font-size: 34px; opacity: 1; }
.s-president__media { overflow: hidden; background: var(--lilas-claro); }
.s-president__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- 4 · Pacientes ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.voices figure {
  position: relative; background: var(--c); color: #fff; border-radius: 40px;
  padding: 150px 48px 48px; margin-top: 110px; display: flex; flex-direction: column; min-height: 520px;
}
.voices img {
  position: absolute; top: -110px; left: 48px; width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 12px solid #fff; box-shadow: 0 0 0 4px var(--lilas);
}
.voices blockquote { font-size: 30px; line-height: 1.45; }
.voices figcaption { margin-top: auto; padding-top: 28px; font-weight: 800; font-size: 30px; }

/* ---------- 5 · Problema ---------- */
.s-problem { background: var(--roxo); color: #fff; }
.s-problem::after {
  content: ""; position: absolute; right: -260px; top: -260px; width: 720px; height: 720px; border-radius: 50%;
  background: var(--violeta); opacity: .55;
}
.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.facts article { border-top: 8px solid var(--c); padding-top: 34px; }
.facts .k { font-size: 24px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.facts .n { white-space: nowrap; font-size: 98px; font-weight: 900; line-height: 1.05; color: var(--c); letter-spacing: -.03em; margin: 10px 0 18px; }
.facts .n b { font-weight: 900; }
.facts p:last-child { font-size: 28px; line-height: 1.45; }
.s-problem .src { position: absolute; left: 130px; right: 130px; bottom: 90px; font-size: 20px; opacity: .7; }

/* ---------- 6 · Sobre ---------- */
.s-about { padding: 0; display: grid; grid-template-columns: 1140px 1fr; }
.s-about__text { padding: 110px 80px 90px 130px; display: flex; flex-direction: column; justify-content: center; gap: 56px; }
.s-about .h-sig { margin-bottom: 0; }
.s-about h3 { font-size: 42px; font-weight: 800; color: var(--laranja); margin-bottom: 12px; }
.s-about p { font-size: 34px; }
.s-about p b { color: var(--roxo); }
.s-about__media { overflow: hidden; }
.s-about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 7 · Missão ---------- */
.s-mvv { display: grid; place-items: center; background: var(--lilas-claro); }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.mvv article {
  width: 500px; height: 500px; border-radius: 50%; background: var(--c); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px;
}
.mvv h3 { font-size: 64px; font-weight: 900; margin-bottom: 18px; }
.mvv p { font-size: 26px; line-height: 1.42; }
.slide.is-active .mvv article { transition-duration: .7s, 1.1s, 0s; }
.mvv article:hover { scale: 1.04; transition: scale .4s var(--pop); }

/* ---------- 8 · Atuação ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.pillars article { text-align: center; }
.pillars .ph {
  width: 340px; height: 340px; margin: 0 auto 34px; border-radius: 50%; overflow: hidden;
  border: 14px solid #fff; box-shadow: 0 0 0 5px var(--lilas);
}
.pillars .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--laranja); color: #fff; font-size: 20px; padding: 46px; line-height: 1.25; text-align: center;
}
.ph--badge strong { font-size: 44px; white-space: nowrap; margin: 4px 0; font-weight: 900; line-height: 1.05; }
.pillars h3 { font-size: 36px; font-weight: 800; color: var(--violeta); margin-bottom: 12px; }
.pillars p { font-size: 26px; line-height: 1.4; }
.pillars p b { color: var(--roxo); }

/* ---------- 9 · Plataforma ---------- */
.s-platform { background: var(--roxo); color: #fff; display: grid; grid-template-columns: 860px 1fr; gap: 90px; align-items: center; }
.s-platform .h-plain { color: #fff; font-size: 104px; }
.s-platform .body-light { margin-bottom: 52px; }
.s-platform__media { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.s-platform__media img { width: 100%; height: 700px; object-fit: cover; border-radius: 36px; }
.s-platform__media img:nth-child(2) { margin-top: 90px; }

/* ---------- 10 · Talks ---------- */
.bar { display: inline-flex; align-items: center; gap: 0; margin-bottom: 40px; }
.bar__icon {
  width: 120px; height: 120px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; z-index: 1;
  box-shadow: 0 0 0 10px #fff;
}
.bar__icon svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bar h2 { background: var(--roxo); color: #fff; font-size: 64px; line-height: 1; padding: 22px 56px 22px 50px; border-radius: 0 99px 99px 0; margin-left: -30px; }
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.talks figure { border-radius: 36px; overflow: hidden; background: var(--lilas-claro); }
.talks img { width: 100%; height: 420px; object-fit: cover; transition: transform .6s var(--ease); }
.talks figure:hover img { transform: scale(1.06); }
.talks figcaption { padding: 30px 36px 36px; font-size: 26px; line-height: 1.4; }
.talks figcaption b { display: block; color: var(--magenta); font-size: 24px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* ---------- 11 · Pesquisadores ---------- */
.s-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; background: var(--lilas-claro); }
.duo { background: #fff; border-radius: 48px; padding: 60px 56px; display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }
.duo .tag { white-space: nowrap; font-size: 22px; padding: 8px 22px; }
.duo .h-plain { font-size: 54px; margin-bottom: 24px; }
.duo p { font-size: 27px; line-height: 1.45; }
.duo p b { color: var(--roxo); }
.duo__freezer { width: 100%; height: 600px; object-fit: contain; }
.duo__round { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 12px solid #fff; box-shadow: 0 0 0 5px var(--lilas); }
.duo--prize { grid-template-columns: 220px 1fr; }

/* ---------- 12 · Campanhas ---------- */
.camps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.camps li { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 40px -24px rgba(42, 20, 64, .55); }
.camps li:nth-child(odd) { rotate: -2deg; }
.camps li:nth-child(even) { rotate: 2deg; translate: 0 20px; }
.camps img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--pop); }
.camps li:hover img { transform: scale(1.08); }
.s-camps .camps { height: 700px; grid-auto-rows: 1fr; }
.s-camps .camps li { aspect-ratio: auto; }

/* ---------- 13 · Arrecadação ---------- */
.s-funds { background: var(--teal); color: #fff; display: grid; grid-template-columns: 1fr 720px; gap: 80px; align-items: center; }
.s-funds .body-light { margin-bottom: 40px; }
.s-funds .note { font-size: 22px; opacity: .85; }
.s-funds .note, .s-funds .body-light { max-width: 900px; }
.badge { position: relative; width: 720px; height: 720px; }
.badge svg { width: 100%; height: 100%; }
.badge__halo { fill: rgba(255, 255, 255, .18); }
.badge__disc { fill: var(--laranja); }
.badge__arc { fill: #fff; font: 700 26px var(--font); letter-spacing: .02em; }
.badge__value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 60px; }
.badge__value strong { font-size: 220px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.badge__value span { font-size: 56px; font-weight: 800; }
.slide.is-active .badge { transition-duration: .7s, 1.6s, 0s; }

/* ---------- 14 · Comunicação ---------- */
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.channels li {
  border-radius: 36px; padding: 48px 34px; background: var(--lilas-claro);
  border-top: 14px solid var(--c); min-height: 600px; display: flex; flex-direction: column;
}
.channels h3 { font-size: 32px; font-weight: 800; color: var(--c); margin-bottom: auto; }
.channels .n { white-space: nowrap; font-size: 66px; font-weight: 900; color: var(--roxo); letter-spacing: -.03em; line-height: 1.05; margin-top: 60px; }
.channels p:last-child { font-size: 26px; }

/* ---------- 15 · Parceiros ---------- */
.s-partners { display: flex; flex-direction: column; justify-content: center; }
.partners { width: 100%; height: auto; margin-top: 10px; }

/* ---------- 16 · Final ---------- */
.s-final { background: var(--roxo); color: #fff; display: grid; grid-template-columns: 760px 1fr; gap: 120px; align-items: center; }
.s-final .logo { width: 700px; background: #fff; border-radius: 48px; padding: 60px 70px; position: relative; z-index: 2; }
.s-final__cta { position: relative; z-index: 2; }
.s-final h2 { font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 30px; }
.s-final p { font-size: 34px; margin-bottom: 52px; }
.s-final .url { font-size: 30px; font-weight: 700; margin: 40px 0 0; opacity: .85; letter-spacing: .02em; }
.s-final .arc {
  position: absolute; right: -380px; bottom: -760px; width: 1500px; height: 1500px; border-radius: 50%;
  background: var(--violeta); z-index: 0; box-shadow: 0 0 0 120px rgba(255, 255, 255, .06);
}

/* ---------- Controles ---------- */
.controls {
  display: flex; align-items: center; gap: 14px;
  padding: 0 max(16px, 2vw); color: #fff;
  background: var(--roxo-950);
}
.ctl {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff;
  font: 500 14px var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.ctl:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.ctl:active { transform: scale(.94); }
.ctl:disabled { opacity: .35; cursor: default; }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl--next { background: var(--teal); border-color: var(--teal); }
.ctl--next:hover { background: var(--teal-900); border-color: var(--teal-900); }

.pills { flex: 1; display: flex; gap: 6px; justify-content: center; min-width: 0; }
.pills button {
  position: relative; flex: 0 1 34px; height: 10px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .22); transition: flex-basis .45s var(--pop), background .3s;
}
.pills button::before { content: ""; position: absolute; inset: -14px 0; }
.pills button:hover { background: rgba(255, 255, 255, .5); }
.pills button[aria-current="true"] { flex-basis: 72px; background: var(--magenta); }
.pills button.is-past { background: var(--lilas); }
.pills button::after {
  content: attr(data-label); position: absolute; bottom: 24px; left: 50%; translate: -50% 6px;
  white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--roxo);
  font: 600 13px var(--font); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease);
}
.pills button:hover::after, .pills button:focus-visible::after { opacity: 1; translate: -50% 0; }

.counter { font: 600 14px var(--font); font-variant-numeric: tabular-nums; opacity: .8; min-width: 62px; text-align: center; }

.rotate {
  display: none; position: fixed; left: 16px; right: 16px; top: 16px; z-index: 10;
  padding: 12px 16px; border-radius: 14px; background: var(--magenta); color: #fff;
  font: 500 14px/1.35 var(--font); text-align: center;
}
@media (orientation: portrait) and (max-width: 760px) {
  .rotate { display: block; }
  .ctl--home span { display: none; }
  .pills button { flex-basis: 10px; }
  .pills button[aria-current="true"] { flex-basis: 30px; }
}
@media (max-width: 520px) { .counter { display: none; } .pills { gap: 4px; } }

:fullscreen .stage { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .deck.is-moving .slide.is-active, .deck.is-moving .slide.is-leaving { animation: none; }
  [data-a], .slide.is-active [data-a] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .slide.is-active .orb { animation: none; }
  .is-anim .dot-c { animation: none; transform: none; }
  .is-anim .word, .is-anim .tag-g { animation: none; opacity: 1; }
}
