/* Mídia Kit · Andrea Simonetti
   Cada slide é um "palco" 1440×810 escalado por --u (1 unidade = 1px do PDF em 1440 de largura).
   Grupos (.grp) têm coordenadas locais; no celular viram blocos em fluxo com a própria escala. */

:root {
  --cream: #fff9eb;
  --ink: #464646;
  --paper: #faf2e9;
  --dark: #454545;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--cream); overflow-x: hidden; }
h1, h2, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid #e456f4; outline-offset: 3px; }

/* ---------- palco ---------- */
.slide { position: relative; overflow: hidden; background: var(--cream); }
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  container-type: inline-size; --u: calc(100cqw / 1440);
}
.abs {
  position: absolute;
  left: calc(var(--x, 0) * var(--u));
  top: calc(var(--y, 0) * var(--u));
  width: calc(var(--w) * var(--u));
}
.abs > img, .abs > a > img { width: 100%; height: auto; }
.grp { height: calc(var(--h) * var(--u)); }

@media (min-width: 821px) {
  html { scroll-snap-type: y proximity; }
  .slide { scroll-snap-align: start; }
}

/* ---------- animações base ---------- */
/* entrada ao rolar */
.rv {
  opacity: 0;
  transform: translate(calc(var(--tx, 0) * var(--u)), calc(var(--ty, 26) * var(--u))) scale(var(--sc, .97));
  transition:
    opacity 1s ease calc(var(--i, 0) * 90ms),
    transform 1.4s var(--ease) calc(var(--i, 0) * 90ms),
    translate .7s ease-out;
}
.rv.in { opacity: 1; transform: none; }

/* flutuar suavemente */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(calc(var(--rot, .4) * -1deg)); }
  50%      { transform: translate3d(calc(var(--ax, 0) * var(--u)), calc(var(--amp, 6) * -1 * var(--u)), 0) rotate(calc(var(--rot, .4) * 1deg)); }
}
.float { animation: float var(--dur, 7s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
.slide:not(.vis) .float,
.slide:not(.vis) .fill::after,
.slide:not(.vis) .chev,
.slide:not(.vis) .rays img,
.slide:not(.vis) .hero { animation-play-state: paused; }

/* parallax do mouse (translate) e da rolagem */
.px { translate: calc(var(--mx, 0) * var(--d, 8) * var(--u)) calc(var(--my, 0) * var(--d, 8) * var(--u)); transition: translate .8s ease-out; }
.rv.px { transition: opacity 1s ease calc(var(--i, 0) * 90ms), transform 1.4s var(--ease) calc(var(--i, 0) * 90ms), translate .8s ease-out; }
.sp { translate: 0 calc(var(--sp, 0) * var(--sd, 30) * var(--u)); will-change: translate; }

/* ---------- capa e obrigada ---------- */
.bg { position: absolute; inset: -6% 0; }
.hero { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: kb 16s ease-out both; }
.obrigada .hero { object-position: 50% 29.3%; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }

.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 36%, rgba(0,0,0,0) 50%, rgba(0,0,0,.58)); }
.obrigada .shade { background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.18) 40%, rgba(0,0,0,.4)); }

.eyebrow {
  display: flex; justify-content: space-between; color: var(--paper);
  font-size: calc(var(--fs, 20) * var(--u)); line-height: 1.3; font-weight: 400;
}
.obrigada .eyebrow { --fs: 15; }
.eyebrow span { opacity: 0; }
.slide.vis .eyebrow span { animation: letter 1.4s var(--ease) calc(.5s + var(--k) * .11s) forwards; }
.eyebrow span:nth-child(1) { --k: 0; } .eyebrow span:nth-child(2) { --k: 1; }
.eyebrow span:nth-child(3) { --k: 2; } .eyebrow span:nth-child(4) { --k: 3; }
.eyebrow span:nth-child(5) { --k: 4; } .eyebrow span:nth-child(6) { --k: 5; }
.eyebrow span:nth-child(7) { --k: 6; } .eyebrow span:nth-child(8) { --k: 7; }
@keyframes letter { from { opacity: 0; transform: translateY(calc(-14 * var(--u))); filter: blur(4px); } to { opacity: .8; transform: none; filter: none; } }

.name img { width: 100%; height: auto; }
.wipe { display: block; clip-path: inset(-10% 100% -10% -2%); }
.slide.vis .wipe { animation: wipe 2.8s cubic-bezier(.65, 0, .35, 1) .7s forwards; }
@keyframes wipe { to { clip-path: inset(-10% -2% -10% -2%); } }

.hint {
  display: block; text-align: center; text-decoration: none; color: var(--paper);
  font-size: calc(34 * var(--u)); line-height: 1.2; opacity: .85; transition: opacity .3s; white-space: nowrap;
}
.hint:hover { opacity: 1; }
.chev {
  display: block; width: calc(14 * var(--u)); height: calc(14 * var(--u)); margin: calc(8 * var(--u)) auto 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(calc(9 * var(--u))) rotate(45deg); opacity: 1; } }

.credit { text-align: center; color: rgba(250, 242, 233, .62); font-size: max(11px, calc(12 * var(--u))); letter-spacing: .04em; }

/* ---------- sobre ---------- */
.sobre { --ft: 'Outfit', 'DM Sans', sans-serif; }
.pill {
  aspect-ratio: 177 / 51; display: grid; place-items: center; text-align: center;
  background: center / 100% 100% no-repeat; font: 600 calc(16 * var(--u)) / 1 'Outfit', sans-serif; color: #b2b2b2;
}
.p-a { background-image: url(../img/pill-sobre-andrea.webp); }
.p-b { background-image: url(../img/pill-sobre-dif.webp); }
.txt, .quote { font-family: 'Outfit', 'DM Sans', sans-serif; font-weight: 300; color: var(--ink); hyphens: auto; }
.col { display: flex; flex-direction: column; align-items: flex-start; gap: calc(16 * var(--u)); }
.col > .pill { width: calc(var(--w) * var(--u)); }
.txt p { font-size: calc(22 * var(--u)); line-height: calc(23.4 * var(--u)); text-align: justify; }
.txt p + p { margin-top: calc(10 * var(--u)); }
.t1 { width: calc(757 * var(--u)); padding-left: calc(6 * var(--u)); }
.t2 { width: calc(715 * var(--u)); padding-left: calc(5 * var(--u)); }
.quote { position: relative; width: calc(660 * var(--u)); margin: calc(8 * var(--u)) 0; }
.quote p { padding: calc(21 * var(--u)) 0 0 calc(55.5 * var(--u)); font-size: calc(23 * var(--u)); line-height: calc(25 * var(--u)); }
.quote > .aspas { position: absolute; left: 0; top: 0; width: calc(49 * var(--u)); height: auto; }
.titulo img { width: 100%; height: auto; }

/* ---------- insights ---------- */
.insights .art .titulo { z-index: 3; }
.lbl-c { font-size: calc(11 * var(--u)); color: #fdf4ec; }
.insta-t { font: 700 calc(15 * var(--u)) / 1.3 'Lobster Two', cursive; color: #3b3b3b; }
.updated { font-size: calc(11 * var(--u)); color: #4a4a4a; white-space: nowrap; }

.metrics { z-index: 5; color: #fdf4ec; }
.pill-m {
  aspect-ratio: 178 / 52; display: grid; place-items: center; background: url(../img/pill-metricas.webp) center / 100% 100% no-repeat;
  font: 500 calc(18 * var(--u)) / 1 'DM Sans', sans-serif; color: #191919;
}
.card { aspect-ratio: 252 / 187; }
.card.c2 { aspect-ratio: 252 / 170; }
.card-in { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.c1 .card-in { background-image: url(../img/card-1.webp); }
.c2 .card-in { background-image: url(../img/card-2.webp); }
.c3 .card-in { background-image: url(../img/card-3.webp); }
.card .abs { white-space: nowrap; }
.card .ico { width: calc(28 * var(--u)); }
.sm { font-size: calc(11 * var(--u)); line-height: 1.3; }
.xs { font-size: calc(9.5 * var(--u)); line-height: 1.3; }
.big { font-size: calc(36 * var(--u)); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bar { height: calc(16 * var(--u)); background: #fff5ed; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.fill {
  display: block; height: 100%; width: 0; border-radius: 99px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 2.2s var(--ease) var(--bd, .4s);
}
.card.in .fill { width: calc(var(--p) * 1%); }
.fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 5s ease-in-out 3s infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.reels { display: block; border-radius: calc(12 * var(--u)); overflow: hidden; }
.reels img { width: 100%; height: auto; }

/* ---------- marcas ---------- */
.marcas { --pill-fs: 10; }
.logo img { transition: scale .45s var(--ease); }
.logo:hover img { scale: 1.09; }
.cd { display: block; position: relative; }
.cd img { width: 100%; height: auto; }
.cname { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); font: 400 max(10px, calc(20 * var(--u))) / 1.3 'Open Sans', sans-serif; color: #000; white-space: nowrap; }
.pill-down {
  aspect-ratio: 163 / 51; display: grid; place-items: center; text-decoration: none;
  background: url(../img/pill-arraste.webp) center / 100% 100% no-repeat;
  font: 400 calc(10 * var(--u)) / 1 'Montserrat', sans-serif; color: #e8e8e8; letter-spacing: .02em;
}
.pill-down:hover { filter: brightness(1.2); }

/* ---------- destaques ---------- */
.destaques { background: var(--dark); }
.destaques .rays img { width: 100%; height: auto; transform-origin: 0 50%; animation: breathe 10s ease-in-out infinite; }
.destaques .rays-r img { transform-origin: 100% 0; animation-delay: -4s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.phone { display: block; position: relative; }
.phone .shot { display: block; transition: scale .45s var(--ease); }
.phone:hover .shot { scale: 1.045; }
.phone img { width: 100%; height: auto; }
.cta {
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(26 * var(--u));
  display: grid; place-items: center; text-align: center; text-transform: uppercase; text-decoration: underline; text-underline-offset: 2px;
  background: rgba(20, 20, 20, .9); color: var(--paper); border-radius: calc(5 * var(--u));
  font: 400 max(8px, calc(8.5 * var(--u))) / 1 'Open Sans', sans-serif; letter-spacing: .07em;
  transition: background .3s, translate .3s var(--ease), box-shadow .3s;
}
.cta:hover, .phone:hover + .cta, .reel:hover .cta { background: #000; translate: 0 calc(-3 * var(--u)); box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, .35); }

/* ---------- contato (última seção) ---------- */
.contato { text-align: center; }
.btn-wa {
  position: relative; display: flex; align-items: center; justify-content: center; gap: calc(18 * var(--u));
  width: 100%; height: calc(96 * var(--u)); border-radius: 999px; text-decoration: none;
  background: var(--paper); color: #2b2b2b; font: 500 calc(32 * var(--u)) / 1 'DM Sans', sans-serif; letter-spacing: .01em;
  box-shadow: 0 calc(16 * var(--u)) calc(44 * var(--u)) rgba(0, 0, 0, .4);
  transition: background .35s, color .35s, scale .35s var(--ease);
}
.btn-wa svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); fill: #25d366; transition: fill .35s; flex: none; }
.btn-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(250, 242, 233, .75);
  animation: pulso 2.8s ease-out infinite; pointer-events: none;
}
.slide:not(.vis) .btn-wa::after { animation-play-state: paused; }
@keyframes pulso { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.14, 1.5); opacity: 0; } }
.btn-wa:hover { background: #25d366; color: #fff; scale: 1.04; }
.btn-wa:hover svg { fill: #fff; }
.fone { margin-top: calc(26 * var(--u)); color: rgba(250, 242, 233, .82); font-size: max(12px, calc(20 * var(--u))); letter-spacing: .08em; }

.redes { display: flex; justify-content: center; gap: calc(30 * var(--u)); }
.rede {
  display: grid; place-items: center; width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 50%;
  color: var(--paper); background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(250, 242, 233, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s, color .3s, border-color .3s, scale .35s var(--ease);
}
.rede svg { width: 46%; height: 46%; }
.rede:hover { background: var(--paper); color: #2b2b2b; border-color: var(--paper); scale: 1.14; }

/* ---------- celular ---------- */
@media (max-width: 820px) {
  html { scroll-snap-type: none; }
  .stage { aspect-ratio: auto; height: auto; display: flex; flex-direction: column; align-items: center; }

  /* grupos viram blocos escalados pela largura da tela */
  .stage > .grp {
    position: relative; left: auto; top: auto; overflow: hidden;
    --u: calc(min(100cqw - 32px, var(--cap, 560px)) / var(--mw, var(--w)));
    width: calc(var(--mw, var(--w)) * var(--u)); height: calc(var(--mh, var(--h)) * var(--u));
  }

  /* capa / obrigada: continuam em tela cheia */
  .cover .stage, .obrigada .stage { display: block; height: 100svh; min-height: 540px; max-height: 880px; }
  .cover .hero { object-position: 47% 38%; }
  .cover .eyebrow, .obrigada .eyebrow { left: 9%; top: 6%; width: 82%; font-size: min(3.9vw, 16px); }
  .cover .name { left: 2%; top: auto; bottom: 21%; width: 96%; }
  .cover .hint { left: 0; top: auto; bottom: 5%; width: 100%; font-size: min(4.8vw, 22px); }
  .cover .chev { width: 10px; height: 10px; margin-top: 6px; }
  .obrigada .contato { left: 8%; top: auto; bottom: 30%; width: 84%; }
  .obrigada .btn-wa { height: 64px; font-size: 20px; gap: 12px; }
  .obrigada .btn-wa svg { width: 28px; height: 28px; }
  .obrigada .fone { margin-top: 16px; font-size: 13px; }
  .obrigada .redes { left: 8%; top: auto; bottom: 13%; width: 84%; gap: 16px; }
  .obrigada .rede { width: 52px; height: 52px; }
  .obrigada .credit { left: 0; top: auto; bottom: 3%; width: 100%; padding: 0 16px; }

  /* sobre */
  .sobre .stage { padding: 40px 20px 52px; gap: 22px; align-items: stretch; }
  .sobre .stage > .abs { position: static; width: auto; }
  .sobre .stage > .titulo { order: 1; width: min(76vw, 340px); margin: 0 auto; }
  .sobre .stage > .figure { order: 2; --cap: 420px; --u: calc(min(100cqw - 40px, var(--cap)) / var(--mw)); margin: 0 auto; }
  .sobre .stage > .figure { position: relative; width: calc(var(--mw) * var(--u)); height: calc(var(--mh) * var(--u)); }
  .sobre .col { display: contents; }
  .sobre .col > .p-a { order: 3; width: min(62vw, 230px); font-size: 16px; }
  .sobre .col > .p-b { order: 6; width: min(62vw, 230px); font-size: 16px; }
  .sobre .col > .t1 { order: 4; width: auto; padding: 0; }
  .sobre .col > .quote { order: 5; width: auto; margin: 0; }
  .sobre .col > .t2 { order: 7; width: auto; padding: 0; }
  .sobre .pill { font-size: 16px; }
  .sobre .txt p { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.6; text-align: left; }
  .sobre .txt p + p { margin-top: 12px; }
  .sobre .quote p { font-size: clamp(16px, 4.5vw, 19px); line-height: 1.55; padding: 14px 0 0 44px; }
  .sobre .quote > .aspas { width: 34px; }

  /* insights */
  .insights .stage { padding: 28px 16px 52px; gap: 30px; }
  .insights .art { order: 1; --cap: 640px; }
  .insights .metrics { order: 2; --cap: 400px; overflow: visible; }
  .insights .art .lbl-c, .insights .updated { font-size: 9px; }

  /* marcas */
  .marcas .stage { padding: 36px 16px 52px; gap: 18px; }
  .marcas .stage > .strip, .marcas .stage > .deco, .marcas .stage > .pill-down { display: none; }
  .marcas .stage > .titulo, .marcas .stage > .woman { position: static; width: auto; }
  .marcas .stage > .titulo { order: 1; width: min(72vw, 300px); margin: 0 auto; }
  .marcas .stage > .logos { order: 2; --cap: 560px; }
  .marcas .stage > .woman { order: 3; width: min(80vw, 330px); aspect-ratio: 1 / 1.08; overflow: hidden; margin-top: 8px; }
  .marcas .logos { overflow: visible; }

  /* destaques */
  .destaques .stage { padding: 40px 16px 0; gap: 26px; }
  .destaques .stage > .rays-l { display: none; }
  .destaques .stage > .rays-r { position: absolute; left: auto; right: 0; top: 0; width: 42vw; }
  .destaques .stage > .titulo, .destaques .stage > .woman { position: static; width: auto; }
  .destaques .stage > .titulo { order: 1; width: min(66vw, 300px); margin: 0 auto; z-index: 2; }
  .destaques .stage > .phones { order: 2; --cap: 420px; overflow: visible; z-index: 2; }
  .destaques .stage > .woman { order: 3; width: min(58vw, 230px); padding-bottom: 24px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .wipe { clip-path: none; }
  .eyebrow span { opacity: .8; }
  .card .fill { width: calc(var(--p) * 1%); }
}
