/* ==========================================================================
   Debora Guidetti — UGC Creator & Mentora Mercado Livre
   Sistema visual: papel creme, tinta grafite, acento nude.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Cor — herdada da identidade original */
  --paper:        #faf8f5;
  --paper-warm:   #f3ede6;
  --paper-card:   #fffdfb;
  --ink:          #2d2d2d;
  --ink-90:       rgba(45, 45, 45, .9);
  --ink-70:       rgba(45, 45, 45, .7);
  --ink-55:       rgba(45, 45, 45, .66);   /* 4.53:1 sobre o creme */
  --ink-38:       rgba(45, 45, 45, .38);
  --ink-14:       rgba(45, 45, 45, .14);
  --ink-08:       rgba(45, 45, 45, .08);
  --nude:         #c9a99b;
  --nude-deep:    #8a5f4d;   /* 5.18:1 sobre o creme */
  --nude-light:   #e8d5cc;
  --night:        #211f1d;
  --night-soft:   #2e2a27;
  --on-night:     #f4efe9;
  --on-night-60:  rgba(244, 239, 233, .68);
  --ml-green:     #007956;

  /* Tipografia */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Escala fluida */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .16vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1.02rem + .38vw, 1.3rem);
  --step-2:  clamp(1.38rem, 1.2rem + .82vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.42rem + 1.7vw, 3rem);
  --step-4:  clamp(2.4rem, 1.6rem + 3.5vw, 4.8rem);
  --step-5:  clamp(3rem, 1.4rem + 7vw, 8rem);

  /* Espaço e forma */
  --gutter: clamp(1.15rem, .6rem + 2.4vw, 3rem);
  --shell: 78rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Movimento */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-in:  cubic-bezier(.7, 0, .84, 0);
  --e-both: cubic-bezier(.65, 0, .35, 1);

  --header-h: 72px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

/* Grão de papel — uma camada, sem custo de animação */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--nude-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--nude-light); color: var(--ink); }

/* --- 3. Tipografia ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.display   { font-size: var(--step-4); }
.display-xl{ font-size: var(--step-5); line-height: .92; letter-spacing: -.045em; }
.h2        { font-size: var(--step-3); }
.h3        { font-size: var(--step-2); }

/* Acento editorial em serifa itálica — a assinatura da marca */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--nude-deep);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 46ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-55); }
.mono-label {
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Ritmo vertical do texto corrido. Especificidade zero (:where) para que
   qualquer classe utilitária ou de componente continue mandando. */
:where(h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure, .figure-big) +
:where(p, ul, ol, dl, blockquote, .btn-row, .faq, .index-list, .metrics,
       .spec-grid, .grid-2, .grid-3, .work-grid, .filters) {
  margin-top: 1.05rem;
}
:where(.eyebrow) + :where(h1, h2, h3) { margin-top: .85rem; }
:where(h1, h2, h3) + :where(p) { margin-top: 1.15rem; }

/* Containers que já resolvem o espaçamento por gap */
.section-head > *, .stack > *, .stack-sm > *, .stack-lg > *,
.check-list > *, .btn-row > *, .hero__meta > *,
.footer__col ul > *, .contact__links > *, .menu__foot > * { margin-top: 0; }

/* --- 4. Layout ----------------------------------------------------------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell--wide { width: min(100% - var(--gutter) * 2, 92rem); }

section { position: relative; z-index: 2; }
/* Âncora nunca para embaixo do cabeçalho fixo */
:target, main [id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { justify-items: center; text-align: center; }

.rule { height: 1px; background: var(--ink-14); border: 0; }

/* --- 5. Botões ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .28s var(--e-out), border-color .28s var(--e-out);
}
/* preenchimento que sobe de baixo — responde "meu clique foi registrado" */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nude);
  transform: translate3d(0, 101%, 0);
  transition: transform .42s var(--e-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translate3d(0, 0, 0); }
.btn:hover { color: var(--ink); }
.btn:active { transform: scale(.975); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--ink-14);
}
.btn--ghost:hover { border-color: transparent; }

.btn--light {
  --btn-bg: var(--on-night);
  --btn-fg: var(--night);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--on-night);
  border: 1px solid rgba(244, 239, 233, .28);
}
.btn--outline-light:hover { color: var(--night); border-color: transparent; }

.btn-arrow { transition: transform .34s var(--e-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Link com sublinhado que se desenha */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--e-out);
}
.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* --- 6. Cortina de transição de página ----------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: var(--night);
  color: var(--on-night);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.curtain__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 7vw, 4.5rem);
  letter-spacing: -.02em;
  opacity: 0;
}
.curtain__meta {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: 0; right: 0;
  text-align: center;
  color: var(--on-night-60);
  opacity: 0;
}
/* Sem JS não há cortina: a página nasce legível */
html.js .curtain:not([hidden]) { display: grid; }

/* --- 7. Header ----------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform .4s var(--e-out), background-color .4s var(--e-out),
              border-color .4s var(--e-out), backdrop-filter .4s var(--e-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(250, 248, 245, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-08);
}
.header.is-hidden { transform: translate3d(0, -100%, 0); }

.header__inner {
  width: min(100% - var(--gutter) * 2, 92rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: var(--step-0);
  /* alvo de toque de 44px sem engordar a barra */
  padding-block: .6rem;
  margin-block: -.6rem;
}
.brand__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--nude);
  align-self: center;
  flex: none;
}

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
}
.nav__link {
  position: relative;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-70);
  padding: .35rem 0;
  transition: color .3s var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--nude-deep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .38s var(--e-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

/* Botão de menu (mobile) */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-right: -10px;
  align-items: flex-end;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .4s var(--e-out), width .4s var(--e-out), opacity .2s;
}
.burger span:nth-child(2) { width: 15px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 22px; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

/* --- 8. Menu mobile ------------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--night);
  color: var(--on-night);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  display: none;
}
.menu.is-open { display: flex; }
.menu__list { display: grid; gap: .2rem; }
.menu__item { overflow: hidden; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: .5rem 0;
  font-size: clamp(1.9rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  transform: translate3d(0, 110%, 0);
}
.menu__link .idx {
  font-size: var(--step--1);
  letter-spacing: .18em;
  color: var(--nude);
  font-weight: 500;
  flex: none;
}
.menu__foot {
  display: grid;
  gap: .35rem;
  color: var(--on-night-60);
  font-size: var(--step--1);
  opacity: 0;
}
.menu__foot a:hover { color: var(--on-night); }

/* --- 9. Rail de navegação (desktop) -------------------------------------- */
.rail {
  position: fixed;
  right: clamp(.9rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: .1rem;
  opacity: 0;
}
@media (min-width: 1180px) {
  .rail { display: flex; }
  :root { --gutter: clamp(4rem, 5vw, 6rem); }
}

.rail__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  padding: .42rem 0;
  color: var(--ink-38);
  transition: color .45s var(--e-out);
}
/* Chip em cor de papel: o rótulo continua legível mesmo sobre foto ou bloco escuro */
.rail__label {
  transition: opacity .34s var(--e-out), transform .34s var(--e-out),
              background-color .45s var(--e-out), color .45s var(--e-out);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .34s var(--e-out), transform .34s var(--e-out);
  white-space: nowrap;
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(250, 248, 245, .94);
  box-shadow: 0 2px 10px -6px rgba(45, 45, 45, .5);
}
.rail__tick {
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(.5);
  transform-origin: right center;
  transition: transform .38s var(--e-out), background-color .3s var(--e-out);
}
.rail__item:hover, .rail__item.is-active { color: var(--ink); }
/* O rótulo só aparece no hover/foco. Em repouso, o traço sozinho já diz onde
   você está — e não cobre o conteúdo que encosta na margem direita. */
.rail__item:hover .rail__label,
.rail__item:focus-visible .rail__label {
  opacity: 1;
  transform: translateX(0);
}
.rail__item.is-active .rail__tick {
  transform: scaleX(1);
  background: var(--nude-deep);
  height: 2px;
}
.rail__item:hover .rail__tick { transform: scaleX(1); }

/* Tique sobre bloco escuro: inverte sozinho, sem arrastar o índice inteiro */
.rail__item.on-dark { color: rgba(244, 239, 233, .55); }
.rail__item.on-dark:hover,
.rail__item.on-dark.is-active { color: var(--on-night); }
.rail__item.on-dark.is-active .rail__tick { background: var(--nude); }
.rail__item.on-dark .rail__label {
  background: rgba(33, 31, 29, .94);
  color: var(--on-night);
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .6);
}

/* --- 10. Reveal ---------------------------------------------------------- */
/* Estado oculto só existe quando o JS assume — sem JS, tudo permanece legível */
html.js .reveal > *,
html.js .reveal-self {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
html.js .reveal.is-in > *,
html.js .reveal-self.is-in {
  opacity: 1;
  transform: none;
}
html.js .reveal > * { transition: opacity .7s var(--e-out), transform .8s var(--e-out); }
html.js .reveal-self { transition: opacity .7s var(--e-out), transform .8s var(--e-out); }
html.js .reveal.is-in > *:nth-child(1) { transition-delay: 0s; }
html.js .reveal.is-in > *:nth-child(2) { transition-delay: .07s; }
html.js .reveal.is-in > *:nth-child(3) { transition-delay: .14s; }
html.js .reveal.is-in > *:nth-child(4) { transition-delay: .21s; }
html.js .reveal.is-in > *:nth-child(5) { transition-delay: .26s; }
html.js .reveal.is-in > *:nth-child(n+6) { transition-delay: .3s; }

/* Máscara de linha para títulos divididos */
.line-mask { overflow: hidden; display: block; }

/* --- 11. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; }
}

.hero__title {
  font-size: clamp(2.35rem, .9rem + 4.4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 600;
  max-width: 15ch;
}
.hero__title .serif { display: inline-block; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.2rem;
  margin-top: 2rem;
}

.hero__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-warm);
  aspect-ratio: 4 / 5;
  max-height: min(66vh, 560px);
  width: 100%;
  justify-self: end;
}
/* Carrossel de fotos: as cinco ficam empilhadas, só a atual é opaca.
   Trocar opacidade em vez de mexer no fluxo mantém tudo no compositor. */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s var(--e-out), transform 1.4s var(--e-out);
  will-change: opacity, transform;
}
.hero__slide.is-current { opacity: 1; transform: scale(1); }

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.hero__dot {
  width: 6px; height: 6px;
  padding: 0;
  border-radius: var(--r-pill);
  background: rgba(250, 248, 245, .55);
  transition: width .42s var(--e-out), background-color .42s var(--e-out);
}
.hero__dot::before {
  /* alvo de toque de 44px sem engordar o ponto */
  content: "";
  position: absolute;
  inset: -19px -8px;
}
.hero__dot { position: relative; }
.hero__dot.is-current { width: 22px; background: var(--paper); }
.hero__dot:hover { background: var(--paper); }
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 31, 29, .38), transparent 55%);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: var(--r-pill);
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(8px);
  font-size: var(--step--1);
  font-weight: 500;
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ml-green);
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--ml-green);
  opacity: 0;
  animation: pulse-ring 2.6s var(--e-out) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Faixa de palavras rolando — dá movimento contínuo sem pedir atenção */
.ticker {
  --dur: 42s;
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--ink-14);
  padding-block: clamp(.9rem, 2vw, 1.4rem);
  background: var(--paper);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-right: clamp(1.6rem, 4vw, 3rem);
  flex: none;
}
.ticker__word {
  font-size: clamp(1.1rem, .6rem + 1.9vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: var(--ink);
}
.ticker__word.is-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--nude-deep);
}
.ticker__sep { color: var(--nude); flex: none; }

/* --- 12. Estatísticas ---------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--ink-14);
  border-block: 1px solid var(--ink-14);
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(.8rem, 2vw, 1.6rem);
  text-align: center;
  transition: background-color .4s var(--e-out);
}
.stat:hover { background: var(--paper-warm); }
.stat__num {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { color: var(--nude-deep); }
.stat__label {
  margin-top: .5rem;
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* --- 13. Marquee de marcas ----------------------------------------------- */
.brands { overflow: hidden; }
.brands__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.brands__group {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  flex: none;
}
.brands__logo {
  height: clamp(38px, 6vw, 62px);
  width: auto;
  object-fit: contain;
  opacity: .48;
  filter: grayscale(1);
  transition: opacity .4s var(--e-out), filter .4s var(--e-out);
  flex: none;
}
.brands__logo:hover { opacity: 1; filter: grayscale(0); }

/* --- 14. Portfolio ------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr));
  gap: clamp(.7rem, 1.6vw, 1.1rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.work {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-08);
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  isolation: isolate;
}
.work video, .work img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--e-out);
}
.work:hover video, .work:hover img { transform: scale(1.05); }
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 31, 29, .68), rgba(33, 31, 29, .04) 48%);
  opacity: .82;
  transition: opacity .45s var(--e-out);
  pointer-events: none;
}
.work:hover::after { opacity: .95; }
.work__tag {
  position: absolute;
  z-index: 2;
  left: 1rem; bottom: 1rem;
  color: #fff;
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  transform: translate3d(0, 0, 0);
  transition: transform .45s var(--e-out);
}
.work:hover .work__tag { transform: translate3d(0, -2px, 0); }
.work__play {
  position: absolute;
  z-index: 2;
  right: 1rem; bottom: 1rem;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 248, 245, .92);
  color: var(--ink);
  transform: scale(.82);
  opacity: 0;
  transition: transform .42s var(--e-out), opacity .32s var(--e-out);
}
.work:hover .work__play, .work:focus-visible .work__play { transform: scale(1); opacity: 1; }
.work.is-playing .work__play { opacity: 0; }
.work.is-playing::after { opacity: .35; }

.work-more {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

/* Lightbox de vídeo */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(20, 19, 17, .93);
  opacity: 0;
  display: none;
}
.lightbox.is-open { display: grid; }
.lightbox__frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  max-height: min(86vh, 900px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  transform: scale(.94);
}
.lightbox__frame video { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: calc(var(--gutter) * .6);
  right: calc(var(--gutter) * .6);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 248, 245, .14);
  color: var(--on-night);
  transition: background-color .3s var(--e-out), transform .3s var(--e-out);
}
.lightbox__close:hover { background: rgba(250, 248, 245, .28); transform: rotate(90deg); }

/* --- 15. Sobre ----------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .about__grid { grid-template-columns: .9fr 1.1fr; } }

.about__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.about__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -.015em;
  border-left: 2px solid var(--nude);
  padding-left: 1.2rem;
  margin-top: 1.8rem;
}

/* --- 16. Bloco escuro (case / ML) ---------------------------------------- */
.dark {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
}
.dark .eyebrow { color: var(--nude); }
.dark .lede, .dark .muted { color: var(--on-night-60); }
.dark .rule { background: rgba(244, 239, 233, .14); }

.case__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .case__grid { grid-template-columns: .8fr 1.2fr; } }

.case__logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.case__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.36;
  letter-spacing: -.015em;
}
.case__author { display: grid; gap: .15rem; margin-top: 1.6rem; }

/* Métricas ML */
.metrics {
  display: grid;
  gap: 1px;
  background: rgba(244, 239, 233, .14);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(244, 239, 233, .14);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 780px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric {
  background: var(--night);
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  transition: background-color .4s var(--e-out);
}
.metric:hover { background: var(--night-soft); }
.metric__label {
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-night-60);
}
.metric__value {
  margin-top: .5rem;
  font-size: clamp(1.5rem, .9rem + 2.1vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.metric__delta {
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: #7bd9b0;
}

.figure-big {
  font-size: clamp(3.4rem, 1.2rem + 9vw, 9rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .88;
  font-variant-numeric: tabular-nums;
}

/* --- 17. Serviços (índice editorial) ------------------------------------- */
.index-list { border-top: 1px solid var(--ink-14); }
.index-item { border-bottom: 1px solid var(--ink-14); }
.index-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  align-items: baseline;
  padding: clamp(1.3rem, 3vw, 2.1rem) 0;
  position: relative;
  transition: padding-left .5s var(--e-out);
}
@media (min-width: 820px) {
  .index-row { grid-template-columns: 4.5rem 1fr 1.2fr; }
  .index-item:hover .index-row { padding-left: 1rem; }
}
.index-num {
  font-size: var(--step--1);
  letter-spacing: .18em;
  color: var(--nude-deep);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.index-title {
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -.03em;
  transition: color .4s var(--e-out);
}
.index-desc { color: var(--ink-55); font-size: var(--step-0); max-width: 44ch; }
/* filete que corre da esquerda no hover — sinaliza a linha ativa */
.index-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  margin-top: -1px;
  background: var(--nude-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--e-out);
}
.index-item { position: relative; }
.index-item:hover::after { transform: scaleX(1); }

/* --- 18. Processo (linha desenhada) -------------------------------------- */
.process { position: relative; }
.process__line {
  position: absolute;
  left: 0; right: 0;
  top: 26px;
  height: 1px;
  background: var(--ink-14);
  display: none;
}
@media (min-width: 820px) { .process__line { display: block; } }
.process__line span {
  position: absolute;
  inset: 0;
  background: var(--nude-deep);
  transform: scaleX(0);
  transform-origin: left center;
}
.process__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
}
@media (min-width: 820px) { .process__grid { grid-template-columns: repeat(3, 1fr); } }
.step__badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--ink-14);
  font-weight: 600;
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  transition: background-color .4s var(--e-out), color .4s var(--e-out), border-color .4s var(--e-out);
}
.step.is-reached .step__badge {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.step__title { margin-top: 1.2rem; font-size: var(--step-1); font-weight: 500; letter-spacing: -.02em; }
.step__text { margin-top: .5rem; color: var(--ink-55); max-width: 34ch; }

/* --- 19. Cards / faixas -------------------------------------------------- */
.card {
  background: var(--paper-card);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .4s var(--e-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--nude-light);
  box-shadow: 0 22px 48px -30px rgba(45, 45, 45, .38);
}

.grid-2 { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-3 { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.check-list { display: grid; gap: .85rem; }
.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  color: var(--ink-70);
}
.check-list .tick {
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nude-light);
  color: var(--nude-deep);
  flex: none;
  font-size: 11px;
}
.dark .check-list li { color: var(--on-night-60); }
.dark .check-list .tick { background: rgba(201, 169, 155, .2); color: var(--nude); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-14);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-70);
  background: var(--paper);
}
.dark .pill { border-color: rgba(244, 239, 233, .2); color: var(--on-night-60); background: transparent; }

.spec-grid {
  display: grid;
  gap: 1px;
  background: var(--ink-14);
  border: 1px solid var(--ink-14);
  border-radius: var(--r-md);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec {
  background: var(--paper);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}
.spec dt {
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.spec dd { margin: .45rem 0 0; font-weight: 500; letter-spacing: -.015em; }

/* --- 20. Depoimentos ----------------------------------------------------- */
.quote-card {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}
.quote-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -.01em;
}
.quote-card figcaption { display: grid; gap: .1rem; }

/* --- 21. FAQ ------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink-14); }
.faq__item { border-bottom: 1px solid var(--ink-14); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem) 0;
  text-align: left;
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .3s var(--e-out);
  min-height: 56px;
}
.faq__q:hover { color: var(--nude-deep); }
.faq__icon {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  margin: -.75px 0 0 -7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .42s var(--e-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__q[aria-expanded="true"] { color: var(--ink); }
.faq__a { overflow: hidden; height: 0; }
.faq__a > div { padding-bottom: clamp(1.1rem, 2.4vw, 1.6rem); }
.faq__a p { color: var(--ink-55); max-width: 64ch; }

/* --- 22. Contato / rodapé ------------------------------------------------ */
.contact__title {
  font-size: clamp(2.2rem, 1rem + 5.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.contact__links {
  display: grid;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(244, 239, 233, .14);
}
.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(244, 239, 233, .14);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: padding-left .5s var(--e-out), color .3s var(--e-out);
}
.contact__link:hover { padding-left: .8rem; color: var(--nude); }
.contact__link .arrow { transition: transform .45s var(--e-out); }
.contact__link:hover .arrow { transform: translateX(5px); }

.footer {
  background: var(--night);
  color: var(--on-night-60);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 4.5vw, 3.5rem);
  position: relative;
  z-index: 2;
}
.footer a { transition: color .3s var(--e-out); }
.footer a:hover { color: var(--on-night); }
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 239, 233, .14);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__col h3,
.footer__col h4 {
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nude);
  font-weight: 500;
  margin-bottom: .9rem;
}
.footer__col li + li { margin-top: .5rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: center;
  text-align: center;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  font-size: var(--step--1);
}

/* --- 22b. Jardim: um traçado só, do topo ao rodapé ----------------------- */
/* Fica atrás de tudo. Os blocos escuros e as fotos o cobrem — é de propósito:
   o traço pertence ao papel creme e passa por trás do resto. */
.garden {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Vale para as duas camadas — a de baixo e a cópia clara. Sem isto a cópia
   sai com as pétalas preenchidas, virando manchas em cima do texto. */
.vine path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.garden .vine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--nude);
  opacity: .58;
}

/* Cópia clara do traço, recortada na faixa de cada bloco escuro e desenhada
   por cima dele — o traçado atravessa o bloco em vez de sumir nele. */
.garden-top {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.garden-win {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}
.garden-win .vine--light {
  position: absolute;
  left: 0;
  width: 100%;
  color: var(--on-night);
  opacity: .34;
}

/* Âncora invisível: dá ao ScrollTrigger a faixa vertical de cada trecho */
.vine-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .garden .vine { opacity: .3; }
  .garden-win .vine--light { opacity: .22; }
  .vine path { stroke-width: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  .garden .vine { opacity: .4; }
}

/* --- 23. Borboleta no lugar do cursor ------------------------------------ */
/* Só existe em desktop com ponteiro fino. A classe no <html> é adicionada pelo
   JS — sem script, o cursor nativo continua lá. */
html.has-butterfly,
html.has-butterfly * { cursor: none; }

.butterfly,
.sparkle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  display: none;
  opacity: 0;
  will-change: transform;
}

.butterfly {
  z-index: 191;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  filter: drop-shadow(0 3px 6px rgba(45, 45, 45, .18));
}
.butterfly__wrap { display: block; width: 100%; height: 100%; }
.butterfly svg { width: 100%; height: 100%; overflow: visible; }

/* As duas asas batem em torno do corpo, no eixo do próprio SVG */
.bf-wings {
  transform-box: view-box;
  transform-origin: 20px 18px;
}

.sparkle {
  z-index: 190;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              #fffcf6 0%, #f1d9c8 30%, rgba(201, 169, 155, .55) 52%,
              rgba(201, 169, 155, 0) 74%);
  will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .butterfly, .sparkle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .butterfly, .sparkle { display: none !important; }
  html.has-butterfly, html.has-butterfly * { cursor: auto; }
}

/* --- 23. Utilitários ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: .8rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack-sm { display: grid; gap: .6rem; }
.stack    { display: grid; gap: 1.1rem; }
.stack-lg { display: grid; gap: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.min-w-0 { min-width: 0; }

/* `clip` em vez de `hidden`: trava a rolagem sem criar caixa de rolagem nova,
   o que evita um re-raster caro do documento inteiro ao abrir o menu. */
body.is-locked { overflow: clip; }

/* Com o menu escuro aberto, o cabeçalho precisa inverter para continuar legível */
body.is-locked .header .brand,
body.is-locked .header .brand__dot ~ span { color: var(--on-night); }
body.is-locked .burger span { background: var(--on-night); }

/* --- 24. Movimento reduzido ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal > *,
  html.js .reveal-self { opacity: 1; transform: none; }
  .hero__slide { transform: none; transition-duration: .2s; }
}

/* ==========================================================================
   Apresentação da mentoria — deck em HTML, aberto por dentro do botão.
   Mantém a identidade do PDF original (navy + amarelo Mercado Livre), que é
   deliberadamente diferente da do site: é outra peça, com outro dono visual.
   ========================================================================== */
.deck {
  --dk-navy:   #14142e;
  --dk-navy-2: #1e1e40;
  --dk-yellow: #ffdf20;
  --dk-blue:   #2f6bdb;
  --dk-paper:  #ffffff;
  --dk-gray:   #f1f3f8;
  --dk-ink:    #14142e;
  --dk-ink-70: rgba(20, 20, 46, .72);
  --dk-on-navy-70: rgba(233, 236, 248, .78);
  --dk-green:  #15803d;
  --dk-green-bg: #dcfce7;
  --dk-pad: clamp(1.6rem, 4vw, 4.5rem);

  position: fixed;
  inset: 0;
  z-index: 210;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  background: var(--dk-navy);
  overflow: hidden;
  /* A abertura recorta a tela até a caixa do botão: o deck nasce de dentro dele */
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.deck[hidden] { display: none; }

.deck__stage { position: absolute; inset: 0; }

.deck__track { position: absolute; inset: 0; }

.deck__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.deck__slide.is-current { opacity: 1; visibility: visible; pointer-events: auto; }

.deck__slide--navy  { background: var(--dk-navy);  color: var(--dk-paper); }
.deck__slide--paper { background: var(--dk-paper); color: var(--dk-ink); }
.deck__slide--gray  { background: var(--dk-gray);  color: var(--dk-ink); }

.deck__inner {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-content: center;
  padding: var(--dk-pad);
  padding-bottom: clamp(1rem, 2vw, 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
@media (min-width: 900px) {
  .deck__slide--cover .deck__inner,
  .deck__slide--fim .deck__inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .deck__slide:nth-child(2) .deck__inner { grid-template-columns: 1.35fr .65fr; align-items: center; }
  .deck__slide:nth-child(4) .deck__inner { grid-template-columns: 1.4fr .6fr; align-items: center; }
}

.deck__col { display: grid; gap: clamp(.7rem, 1.4vw, 1.1rem); align-content: center; min-width: 0; }
.deck__aside { display: grid; gap: 1rem; min-width: 0; }
.deck__head { display: grid; gap: .6rem; }

/* --- Tipografia do deck -------------------------------------------------- */
.deck__eyebrow {
  font-size: clamp(.68rem, .6rem + .2vw, .82rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dk-blue);
  line-height: 1.5;
  margin: 0;
}
.deck__eyebrow--y { color: var(--dk-yellow); }

.deck__h1 {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
}
.deck__h2 {
  font-size: clamp(1.5rem, .9rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}
.deck__h1 em, .deck__h2 em { font-style: normal; color: var(--dk-yellow); }
.deck__slide--paper .deck__h1 em,
.deck__slide--paper .deck__h2 em,
.deck__slide--gray  .deck__h2 em { color: var(--dk-blue); }

.deck__lede {
  font-size: clamp(.9rem, .82rem + .32vw, 1.12rem);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
  color: var(--dk-ink-70);
}
.deck__slide--navy .deck__lede { color: var(--dk-on-navy-70); }

.deck__rule { border: 0; height: 1px; background: rgba(255,255,255,.28); margin: .6rem 0; max-width: 340px; }
.deck__nome { font-size: clamp(1.05rem, .95rem + .4vw, 1.4rem); font-weight: 700; margin: 0; }
.deck__cargo { font-size: .92rem; color: var(--dk-on-navy-70); margin: 0; }
.deck__mini { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.deck__nota { font-size: .74rem; font-style: italic; color: var(--dk-on-navy-70); margin: 0; }

/* --- Peças --------------------------------------------------------------- */
.deck__figura {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.7);
}
.deck__figura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck__slide--cover .deck__figura { max-height: min(62vh, 560px); aspect-ratio: 1 / 1.02; }
.deck__slide:nth-child(2) .deck__figura { max-height: min(40vh, 330px); aspect-ratio: 4 / 3.2; }
.deck__slide:nth-child(2) .deck__figura img { object-position: 50% 14%; }

.deck__checks { display: grid; gap: .7rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.deck__checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: clamp(.84rem, .78rem + .24vw, 1rem);
  line-height: 1.55;
  color: var(--dk-ink-70);
}
.deck__tick {
  width: 21px; height: 21px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dk-green-bg);
  color: var(--dk-green);
  font-size: 11px;
  font-weight: 700;
}

.deck__destaque {
  background: var(--dk-navy);
  color: var(--dk-paper);
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  gap: .4rem;
  font-size: .86rem;
  line-height: 1.5;
}
.deck__big {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 700;
  color: var(--dk-yellow);
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.deck__metrics {
  display: grid;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.deck__metric {
  position: relative;
  background: var(--dk-paper);
  border-radius: 12px;
  border-left: 4px solid var(--dk-blue);
  padding: clamp(.9rem, 1.8vw, 1.4rem);
  display: grid;
  gap: .3rem;
  align-content: start;
  box-shadow: 0 12px 30px -24px rgba(20,20,46,.5);
}
.deck__delta {
  justify-self: end;
  background: var(--dk-green-bg);
  color: var(--dk-green);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.deck__valor {
  font-size: clamp(1.3rem, .9rem + 1.5vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.deck__rotulo { font-size: .84rem; color: var(--dk-ink-70); margin: 0; }
.deck__fonte {
  font-size: .78rem;
  font-style: italic;
  color: var(--dk-ink-70);
  margin: 0;
  padding-left: 1rem;
  position: relative;
}
.deck__fonte::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dk-blue);
}

.deck__quote {
  background: var(--dk-yellow);
  color: var(--dk-ink);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
  margin: .4rem 0 0;
  max-width: 46ch;
}
.deck__quote p {
  font-size: clamp(.98rem, .85rem + .55vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.deck__quote cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; font-size: .84rem; }

.deck__pills { display: grid; gap: clamp(.5rem, 1.2vw, .9rem); margin: 0; padding: 0; list-style: none; align-content: center; }
.deck__pill {
  background: var(--dk-navy-2);
  border-radius: 12px;
  padding: clamp(.8rem, 1.6vw, 1.15rem) clamp(.9rem, 1.8vw, 1.3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: center;
  font-weight: 600;
  font-size: clamp(.82rem, .76rem + .22vw, .96rem);
}
.deck__pill span { color: var(--dk-yellow); font-weight: 700; }

.deck__pilares, .deck__etapas {
  display: grid;
  gap: clamp(.6rem, 1.4vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.deck__pilar {
  background: var(--dk-gray);
  border-radius: 12px;
  padding: clamp(.9rem, 1.8vw, 1.4rem);
  display: grid;
  gap: .45rem;
  align-content: start;
}
.deck__slide--paper .deck__pilar { background: var(--dk-gray); }
.deck__bolha {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dk-yellow);
  color: var(--dk-ink);
  font-weight: 700;
  font-size: .9rem;
}
.deck__pilar h3, .deck__etapa h3 {
  font-size: clamp(.92rem, .85rem + .28vw, 1.08rem);
  font-weight: 700;
  margin: .2rem 0 0;
  line-height: 1.25;
}
.deck__pilar p, .deck__etapa p {
  font-size: .84rem;
  line-height: 1.5;
  color: var(--dk-ink-70);
  margin: 0;
}
.deck__etapa {
  background: var(--dk-paper);
  border-radius: 12px;
  padding: clamp(.9rem, 1.8vw, 1.4rem);
  display: grid;
  gap: .35rem;
  align-content: start;
  box-shadow: 0 12px 30px -24px rgba(20,20,46,.45);
}
.deck__passo {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  color: var(--dk-yellow);
  line-height: 1;
  -webkit-text-stroke: .6px rgba(20,20,46,.18);
}

.deck__cartao {
  background: var(--dk-yellow);
  color: var(--dk-ink);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  display: grid;
  gap: .35rem;
  max-width: 34rem;
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out);
}
.deck__cartao strong {
  font-size: clamp(1rem, .85rem + .7vw, 1.5rem);
  font-weight: 700;
  word-break: break-word;
}
.deck__cartao span:last-child { font-size: .84rem; }
.deck__cartao:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(0,0,0,.7); }

.deck__aside--fim { position: relative; align-content: center; justify-items: center; }
/* Decoração do slide, não do conteúdo: fora da área rolável ela sangra até a
   borda direita sem criar transbordo horizontal. */
.deck__cunha {
  position: absolute;
  z-index: 0;
  top: 0; bottom: 34%; right: 0;
  width: min(46%, 620px);
  background: var(--dk-yellow);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.deck__slide--fim .deck__inner { position: relative; z-index: 1; }
.deck__retrato {
  position: relative;
  margin: 0;
  width: clamp(140px, 22vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--dk-navy);
}
.deck__retrato img { width: 100%; height: 100%; object-fit: cover; }

/* --- Rodapé de slide ----------------------------------------------------- */
.deck__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--dk-pad);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.deck__slide--navy .deck__foot { background: #1c1c3c; color: var(--dk-on-navy-70); }
.deck__slide--navy .deck__num { color: var(--dk-yellow); }
.deck__slide--paper .deck__foot,
.deck__slide--gray  .deck__foot { background: var(--dk-yellow); color: var(--dk-ink); }
.deck__slide--fim .deck__foot { background: transparent; }

/* --- Controles ----------------------------------------------------------- */
.deck__progress {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: rgba(255,255,255,.14);
  z-index: 4;
}
.deck__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--dk-yellow);
  transition: width .55s var(--e-out);
}

.deck__nav {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(3.4rem, 7vw, 4.6rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .45rem .6rem;
  border-radius: 999px;
  background: rgba(20, 20, 46, .74);
  backdrop-filter: blur(8px);
  color: #fff;
}
.deck__slide--paper ~ .deck__nav { color: #fff; }
.deck__arrow {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  transition: background-color .3s var(--e-out), transform .3s var(--e-out), opacity .3s;
}
.deck__arrow:hover { background: rgba(255,255,255,.16); }
.deck__arrow:active { transform: scale(.92); }
.deck__arrow[disabled] { opacity: .3; pointer-events: none; }

.deck__dots { display: flex; align-items: center; gap: .38rem; }
.deck__dot {
  position: relative;
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  transition: width .4s var(--e-out), background-color .4s var(--e-out);
}
.deck__dot::before { content: ""; position: absolute; inset: -18px -7px; }
.deck__dot.is-current { width: 22px; background: var(--dk-yellow); }
.deck__dot:hover { background: #fff; }

.deck__close {
  position: absolute;
  z-index: 5;
  top: clamp(.9rem, 2vw, 1.6rem);
  right: clamp(.9rem, 2vw, 1.6rem);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 20, 46, .74);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background-color .3s var(--e-out), transform .35s var(--e-out);
}
.deck__close:hover { background: rgba(20, 20, 46, .95); transform: rotate(90deg); }

.deck :focus-visible { outline: 2px solid var(--dk-yellow); outline-offset: 3px; }

@media (max-width: 899px) {
  .deck__slide--cover .deck__figura,
  .deck__slide:nth-child(2) .deck__figura { max-height: 30vh; }
  .deck__aside--fim { min-height: 40vh; }
}

@media (prefers-reduced-motion: reduce) {
  .deck__progress span { transition-duration: .01ms; }
  .deck__cartao { transition-duration: .01ms; }
}

/* A grade do PDF é 3+3 nas métricas e nos pilares e 4 nas etapas. Precisa vir
   depois das regras-base, senão o auto-fit continua mandando. */
@media (min-width: 900px) {
  .deck__metrics, .deck__pilares { grid-template-columns: repeat(3, 1fr); }
  .deck__etapas { grid-template-columns: repeat(4, 1fr); }
}

/* Em tela estreita o slide não cabe centralizado: começa no topo e reserva
   espaço para o botão de fechar e para a navegação, que são fixos. */
@media (max-width: 899px) {
  .deck__inner {
    align-content: start;
    padding-top: 4.6rem;
    padding-bottom: 6.4rem;
  }
  .deck__nav { bottom: clamp(3rem, 9vw, 3.8rem); gap: .5rem; }
  .deck__arrow { width: 36px; height: 36px; }
  .deck__close { width: 42px; height: 42px; }
  .deck__foot { font-size: .64rem; padding-block: .6rem; }
  .deck__figura { max-width: 320px; justify-self: center; width: 100%; }
  .deck__slide--cover .deck__figura,
  .deck__slide:nth-child(2) .deck__figura { max-height: 34vh; }
  .deck__cunha { bottom: 46%; width: 62%; }
  .deck__aside--fim { min-height: 34vh; }
}

/* ==========================================================================
   Link in bio — /links
   Página estreita para o Instagram. Sem GSAP: o WebView do app precisa abrir
   rápido. Os botões repetem o pill do site (borda fina, ícone à esquerda,
   texto no centro) com a paleta papel / tinta / nude.
   ========================================================================== */
body.bio {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.bio::before { opacity: .035; }

.bio-page {
  position: relative;
  z-index: 2;
  width: min(100% - 2.4rem, 28.5rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 3.4rem) 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--nude);
  background: var(--paper-warm);
  box-shadow: 0 12px 32px rgba(45, 45, 45, .08);
}
.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-name {
  margin-top: 1.15rem;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.03em;
  text-align: center;
}
.bio-tag {
  margin-top: .35rem;
  color: var(--ink-55);
  font-size: var(--step--1);
  text-align: center;
}
.bio-rule {
  width: 3.2rem;
  height: 1px;
  margin: 1.35rem auto 1.5rem;
  background: var(--ink-14);
  border: 0;
}

.bio-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.bio-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: .85rem 3.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-align: center;
  line-height: 1.25;
  transition: background-color .28s var(--e-out), color .28s var(--e-out), transform .28s var(--e-out), border-color .28s var(--e-out);
}
.bio-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.bio-link:active { transform: scale(.985); }
.bio-link.is-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.bio-link.is-featured:hover {
  background: var(--nude-deep);
  border-color: var(--nude-deep);
  color: var(--paper);
}

.bio-link__icon {
  position: absolute;
  left: .55rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-warm);
  color: var(--ink);
}
.bio-link.is-featured .bio-link__icon {
  background: rgba(250, 248, 245, .14);
  color: var(--paper);
}
.bio-link:hover .bio-link__icon {
  background: rgba(250, 248, 245, .16);
  color: var(--paper);
}
.bio-link__icon svg { width: 18px; height: 18px; }

.bio-foot {
  width: min(100% - 2.4rem, 28.5rem);
  margin: 1.6rem auto 0;
  padding: 1.15rem 0 1.6rem;
  border-top: 1px solid var(--ink-14);
  color: var(--ink-38);
  font-size: .72rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.bio-foot a { color: var(--ink-55); }
.bio-foot a:hover { color: var(--nude-deep); }
