@font-face {
  font-family: Manrope;
  src: url("./media/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #101113;
  --case: #151619;
  --surface: #1b1d21;
  --stage: #141519;
  --text: #f4f1eb;
  --muted: #b3b4ba;
  --quiet: #adb0b8;
  --accent: #c5b294;
  --accent-hover: #dbc9ac;
  --line: #36383f;
  --control: #777a85;
  --motion-press: 140ms;
  --motion-panel: 230ms;
  --motion-expand: 280ms;
  --motion-dialog: 220ms;
  --motion-ease: cubic-bezier(.2, .72, .25, 1);
  --font: Manrope, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.125rem, 4.5vw, 4.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(1.25rem + env(safe-area-inset-top)); }
html.anchor-motion { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--text); font: 1rem/1.6 var(--font); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
main:focus { outline: none; }

/* O foco continua no controle. Só a apresentação distingue ponteiro e teclado. */
@media (forced-colors: none) and (prefers-contrast: no-preference) {
  html[data-input="pointer"] :is(a, button, summary, [tabindex]):focus-visible { outline: none; }
}
:where(button, summary, .button, .context-contact) { -webkit-tap-highlight-color: transparent; }
summary:active { background-color: #c5b2940d; }

.wrap {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 76rem);
  margin-inline: auto;
}
.eyebrow {
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fine-print { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: 1rem;
  z-index: 5;
  padding: .65rem 1rem;
  border-radius: .25rem;
  background: var(--accent);
  color: var(--base);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  min-height: calc(4.15rem + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid #6c6152;
  border-radius: .3rem;
  color: var(--accent);
  font-size: .8125rem;
  letter-spacing: -.055em;
  line-height: 1;
}
.header nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.65rem, 2.5vw, 2.15rem); }
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--motion-press) var(--motion-ease), border-color var(--motion-press) var(--motion-ease);
}
.header .nav-contact {
  border: 1px solid var(--control);
  border-radius: .35rem;
  padding: .55rem .7rem;
  color: var(--text);
}

.hero { position: relative; overflow: clip; }
.hero-inner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(8.1rem, 46vw, 13rem) clamp(2.6rem, 7vw, 4rem);
}
.portrait {
  position: absolute;
  z-index: -1;
  top: -1.68rem;
  right: clamp(-5.5rem, -16vw, -3.2rem);
  width: clamp(18rem, 104vw, 31rem);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 67% 49% at 53% 29%, #000 40%, transparent 98%);
  mask-image: radial-gradient(ellipse 67% 49% at 53% 29%, #000 40%, transparent 98%);
}
.portrait img { width: 100%; height: auto; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: .32rem; align-items: center; color: var(--accent-hover); text-shadow: 0 1px 5px var(--base), 0 0 12px var(--base); }
.hero-kicker::before { width: 1.25rem; height: 1px; margin-right: .15rem; background: currentColor; content: ""; }
.hero h1 {
  margin-block: .7rem .8rem;
  font-size: clamp(1.95rem, 8.55vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -.061em;
  word-spacing: .035em;
  line-height: .99;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); font-weight: 520; }
.hero-summary { max-width: 30rem; color: var(--muted); }
.hero-actions { display: flex; align-items: start; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.3rem; }
.hero-case-link { margin-top: .12rem; }

.approach {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5.5vw, 4rem);
  border-top: 1px solid var(--line);
}
.approach h2 {
  margin-block: .65rem .75rem;
  font-size: clamp(1.7rem, 6.5vw, 2.8rem);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.approach-list { display: grid; gap: 1rem; }
.approach-list > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.approach-list dt { margin-bottom: .25rem; color: var(--text); font-weight: 760; line-height: 1.4; }
.approach-list dd { max-width: 35rem; color: var(--muted); line-height: 1.5; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  max-width: 100%;
  min-height: 49px;
  padding: .65rem .95rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-press) var(--motion-ease), border-color var(--motion-press) var(--motion-ease), color var(--motion-press) var(--motion-ease), transform var(--motion-press) var(--motion-ease);
}
.button-primary { background: var(--accent); color: var(--base); box-shadow: inset 0 1px 0 #ffffff50, 0 2px 6px #0003; }
.button-outline { border-color: var(--control); background: transparent; color: var(--text); box-shadow: inset 0 1px 0 #ffffff12; }
.chat-icon { position: relative; width: 1rem; height: .82rem; flex: none; border: 1.5px solid currentColor; border-radius: .24rem; }
.chat-icon::after {
  position: absolute;
  bottom: -.22rem;
  left: .12rem;
  width: .32rem;
  height: .23rem;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: skewY(-28deg);
  content: "";
}
.play-icon { width: 0; height: 0; flex: none; border-block: .3rem solid transparent; border-left: .48rem solid currentColor; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 750;
  text-decoration-color: var(--control);
  text-underline-offset: .26em;
}
.text-link:active { color: var(--accent-hover); }

.case {
  border-block: 1px solid #2b2d33;
  background: var(--case);
  padding-block: clamp(2.5rem, 6.5vw, 5.5rem);
}
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.case-intro > *, .primary-offer, .offer-list { min-width: 0; }
.case h2, .offer h2, .contact h2 {
  font-size: clamp(2.5rem, 9vw, 5.15rem);
  font-weight: 690;
  letter-spacing: -.057em;
  word-spacing: .025em;
  line-height: 1.015;
}
.case h2, .offer h2 { margin-block: .65rem .95rem; }
.case-copy > p:last-child, .primary-offer > p:not(.eyebrow) { max-width: 29rem; color: var(--muted); }
.case-total {
  align-self: start;
  container-type: inline-size;
  border-left: 2px solid #8a7961;
  padding: .25rem 0 .25rem 1rem;
}
.case-total dt { color: var(--muted); font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.total-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25em;
  margin-block: .33rem .45rem;
  color: var(--accent);
  font-size: clamp(3.75rem, 13vw, 6.75rem);
  font-weight: 540;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.08em;
  line-height: 1;
  white-space: normal;
}
.total-value span { font-size: .39em; font-weight: 680; letter-spacing: -.045em; }
.total-value .amount-number { font: inherit; font-size: min(1em, 30cqi); letter-spacing: inherit; }
.total-period { margin-bottom: .35rem; font-size: .9375rem; font-weight: 750; }
.case-total .fine-print { max-width: 30rem; }
.revenue-details { max-width: 30rem; margin-top: .2rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.revenue-details > summary { justify-content: start; width: fit-content; font-size: .875rem; }
.revenue-details .details-content { padding-block: .25rem .4rem; }
.case-evidence { display: grid; gap: 1.25rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
/* Duas colunas no tamanho habitual; uma quando o texto exige mais espaço. */
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(7.5rem, calc((100% - 1.15rem) / 2))), 1fr)); gap: .95rem 1.15rem; }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: .4rem; }
.case-metrics dt { max-width: 12rem; color: var(--muted); font-size: .875rem; line-height: 1.32; }
.case-metrics dd {
  font-size: clamp(1.5rem, 6.1vw, 3.1rem);
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.049em;
  word-spacing: .045em;
  line-height: 1;
}
/* Crescimento e concentração geográfica: evidências complementares. */
.case-metrics .growth-metric {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: .42rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.growth-metric dt { max-width: none; }
.case-metrics .growth-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: .33em;
  row-gap: .2em;
  font-size: clamp(1.5rem, 6.1vw, 2.65rem);
}
.growth-start { color: var(--text); }
.growth-arrow { color: var(--accent); font-size: .72em; font-weight: 550; }
.growth-current { color: var(--accent); }
.case-metrics .growth-note {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: 1.35;
}
.case-metrics .local-metric {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.local-metric dt { flex: 1 1 8rem; }
.local-metric .audience-share { display: flex; order: -1; align-items: center; gap: .34em; }
.audience-ring {
  --share: 91.1%;
  position: relative;
  flex: 0 0 auto;
  width: .91em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--share), var(--control) 0);
}
.audience-ring::after {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: var(--case);
  content: "";
}
.case-audience .case-source { max-width: 47rem; margin-top: .95rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.film-trigger {
  display: grid;
  grid-template-columns: 3.45rem minmax(0, 1fr) 2.4rem;
  align-items: center;
  align-self: start;
  gap: .75rem;
  width: 100%;
  min-height: 5rem;
  padding: .5rem .7rem .5rem .5rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: #1c1d22;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-press) var(--motion-ease), border-color var(--motion-press) var(--motion-ease), transform var(--motion-press) var(--motion-ease);
}
.film-still { overflow: hidden; border-radius: .2rem; background: var(--stage); }
.film-still img { width: 100%; height: 3.8rem; object-fit: cover; object-position: center 35%; }
.film-caption { display: grid; gap: .21rem; line-height: 1.38; }
.film-caption strong { font-size: .9375rem; font-weight: 800; }
.film-caption span { color: var(--muted); font-size: .875rem; }
.film-play {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--control);
  border-radius: 50%;
  color: var(--accent);
}
.film-play .play-icon { margin-left: .12rem; }

.case-details {
  overflow: clip;
  margin-top: clamp(1.25rem, 3.5vw, 2.2rem);
  border: 1px solid var(--control);
  border-radius: .6rem;
  background: var(--surface);
  transition: border-color var(--motion-press) var(--motion-ease);
}
.case-details[open] > summary { background-color: #202126; }
.case-details > summary { max-width: none; min-height: 5.3rem; padding: 1rem 1.1rem; }
.case-details > summary:focus-visible { outline-offset: -4px; border-radius: .5rem; }
.case-disclosure-copy { display: grid; gap: .3rem; }
.case-disclosure-copy strong { font-size: 1rem; line-height: 1.35; letter-spacing: -.015em; }
.case-disclosure-copy > span { color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.explorer { overflow: clip; border-top: 1px solid var(--line); }
.explorer-heading { display: grid; gap: .5rem; padding: 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.explorer h3 { font-size: clamp(1.125rem, 4vw, 1.45rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.22; }
.explorer-tabs { position: relative; display: flex; flex-wrap: wrap; column-gap: clamp(.8rem, 4vw, 2rem); }
.explorer-tabs button {
  position: relative;
  min-height: 46px;
  padding: .5rem .12rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 750;
  cursor: pointer;
  transition: color var(--motion-press) var(--motion-ease);
}
.explorer-tabs button[aria-selected="true"] { color: var(--accent-hover); }
.explorer-tabs button:active { color: var(--text); }
.explorer-tabs button[aria-selected="true"]::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  content: "";
}
.explorer-tabs.has-indicator button[aria-selected="true"]::after { content: none; }
.explorer-tabs.has-indicator::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 2px;
  background: var(--accent);
  transform: translate(var(--tab-x), var(--tab-y)) scaleX(var(--tab-width));
  transform-origin: left;
  transition: transform var(--motion-panel) var(--motion-ease);
  pointer-events: none;
  content: "";
}
.explorer-tabs button:focus-visible, .proof-panel:focus-visible { outline-offset: -3px; }
.is-resizing { overflow: clip; }
.details-content { display: flow-root; }
.proof-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1.2rem 1rem;
  align-items: center;
}
.proof-panel[role="tabpanel"]:not([hidden]) { animation: show-proof var(--motion-panel) var(--motion-ease) both; }
@keyframes show-proof {
  from { opacity: .85; transform: translateY(.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
.proof-panel + .proof-panel:not([role]) { border-top: 1px solid var(--line); }
.proof-copy { min-width: 0; }
.proof-copy h4 {
  max-width: 21ch;
  margin-bottom: .65rem;
  font-size: clamp(1.45rem, 5.9vw, 2.55rem);
  font-weight: 710;
  letter-spacing: -.039em;
  word-spacing: .025em;
  line-height: 1.12;
}
.proof-copy > p { max-width: 28rem; color: var(--muted); }
.proof-copy .button { margin-top: .8rem; }
.proof-copy .project-link { margin-top: .15rem; }
.project-link .text-link { color: var(--muted); font-size: .875rem; }
.project-link span { margin-left: .2em; font-weight: 500; }
.campaign-list { margin-block: .8rem .4rem; padding: 0; list-style: none; }
.campaign-list > li {
  display: grid;
  grid-template-columns: minmax(3rem, .23fr) minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  line-height: 1.33;
}
.campaign-list strong { color: var(--accent); font-size: clamp(1.65rem, 5vw, 2.2rem); font-variant-numeric: tabular-nums; letter-spacing: -.065em; line-height: 1; }
.campaign-list span { display: block; margin-top: .14rem; color: var(--muted); font-size: .875rem; font-weight: 540; }
.campaign-details, .context-details { color: var(--muted); font-size: .9375rem; }
.campaign-details dl { display: grid; gap: .55rem; margin-bottom: .6rem; }
.campaign-details dt { color: var(--text); font-weight: 700; }
.campaign-details dd { font-size: .875rem; }
.context-details { margin-top: .5rem; }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  max-width: 29rem;
  min-height: 44px;
  padding-block: .5rem;
  color: var(--text);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  width: .44rem;
  height: .44rem;
  margin-right: .28rem;
  flex: none;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-.13rem) rotate(45deg);
  transition: transform var(--motion-expand) var(--motion-ease);
  content: "";
}
details[open] > summary:not([aria-expanded="false"])::after { transform: translateY(.1rem) rotate(225deg); }

.proof-figure { min-width: 0; }
.proof-figure figcaption { margin-top: .5rem; color: var(--quiet); font-size: .875rem; text-align: center; }
.creative-stage, .interface-stage { border-radius: .38rem; background: var(--stage); }
.creative-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 9.8rem;
  padding: 1rem .65rem;
}
.creative-item { position: relative; display: grid; width: min(48%, 11rem); min-width: 0; }
.creative-stage img {
  width: 100%;
  aspect-ratio: .84;
  object-fit: cover;
  border: 1px solid #5d5147;
  border-radius: .3rem;
  background: #211d18;
  box-shadow: 0 8px 24px #0005;
}
.creative-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 44px;
  margin-top: .45rem;
  padding: .25rem .3rem;
  border: 1px solid var(--control);
  border-radius: .3rem;
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--motion-press) var(--motion-ease), color var(--motion-press) var(--motion-ease), transform var(--motion-press) var(--motion-ease);
}
.creative-trigger::before { position: absolute; inset: 0; content: ""; }
.creative-trigger .play-icon { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  :is(.button, .film-trigger, .creative-trigger, .close-button, .context-contact):active { transform: translateY(1px); }
}
.interface-stage {
  width: min(100%, 23rem);
  margin-inline: auto;
  padding: .35rem;
  border: 1px solid var(--line);
}
.interface-stage img {
  width: 100%;
  border-radius: .27rem;
  background: #171819;
}
.campaign-note { margin-top: .75rem; }
.case-next {
  display: grid;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.case-bridge-copy { max-width: 39rem; }
.case-bridge-copy h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.125rem, 3.8vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.case-bridge-copy p { color: var(--muted); }
.case-next .button { justify-self: start; }

.offer { display: grid; gap: 2rem; padding-block: clamp(3rem, 8vw, 7.5rem); }
.offer h2 { max-width: 15ch; }
.offer-list { display: grid; align-content: start; gap: 1.8rem; }
.offer-item h3 {
  margin-block: .28rem .42rem;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 760;
  letter-spacing: -.047em;
  line-height: 1.15;
}
.offer-item > p:last-child { max-width: 26rem; color: var(--muted); }
.offer-item + .offer-item { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.offer-questions { display: grid; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.offer-questions h3 { color: var(--accent); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.questions-list { min-width: 0; }
.question-details + .question-details { border-top: 1px solid var(--line); }
.question-details summary { max-width: none; min-height: 3.4rem; padding-block: .85rem; font-size: .9375rem; font-weight: 650; }
.question-details .details-content { color: var(--muted); font-size: 1rem; }
.question-details .details-content p { max-width: 48ch; padding-bottom: 1rem; }

.contact { border-block: 1px solid var(--line); background: var(--surface); }
.contact-inner {
  display: grid;
  align-items: end;
  gap: 1.1rem;
  padding-block: clamp(2.65rem, 7.5vw, 6rem);
}
.contact h2 { margin-top: .6rem; font-size: clamp(2.18rem, 8.2vw, 5.15rem); line-height: 1.04; }
.contact h2 span { display: block; margin-top: .06em; color: var(--accent); font-weight: 560; }
.contact-copy p { max-width: 23rem; color: var(--muted); }
.contact-copy .contact-region { margin-top: .85rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.contact-copy .button { margin-top: 1.25rem; }
.footer { padding-block: .75rem calc(.75rem + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .32rem 1.2rem; }
.footer p, .footer .text-link { color: var(--muted); font-size: .875rem; }
.footer p span { display: block; }

/* Complemento progressivo: sem JavaScript, os contatos no fluxo permanecem. */
.context-contact-surface {
  position: fixed;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: .75rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--base);
}
/* A faixa sem ação própria impede toques nos controles cobertos atrás dela. */
.context-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  max-width: 100%;
  padding: .7rem 1rem;
  border: 1px solid #dbc9ac;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--base);
  box-shadow: 0 4px 20px #0005;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--motion-press) var(--motion-ease), transform var(--motion-press) var(--motion-ease);
}
/* Entrada discreta apenas nas mudanças de etapa; nenhuma animação de pulso. */
.context-contact-surface:not([hidden]) { animation: show-contact var(--motion-press) var(--motion-ease); }
@keyframes show-contact { from { opacity: 0; } to { opacity: 1; } }

.dialog {
  position: fixed;
  width: min(calc(100% - 2rem), 31rem);
  max-width: none;
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: clamp(1rem, 4.5vw, 1.75rem);
  border: 1px solid var(--control);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--text);
}
.dialog::backdrop { background: #07080bdb; }
html:has(.video-dialog[open]) { overflow: hidden; }
.dialog .eyebrow { margin-bottom: .45rem; padding-right: 2.65rem; }
.dialog h2 { padding-right: 2.65rem; font-size: clamp(1.35rem, 5vw, 1.85rem); font-weight: 780; letter-spacing: -.045em; line-height: 1.16; }
.close-button {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: 50%;
  background: var(--stage);
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.close-icon { position: relative; width: 1rem; height: 1rem; }
.close-icon::before, .close-icon::after { position: absolute; top: calc(50% - .75px); left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor; content: ""; }
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.close-button:active { background: #303137; }
.video-dialog { width: min(calc(100% - 1.5rem), 26.5rem); overscroll-behavior: contain; }
.video-dialog[open] { animation: show-dialog var(--motion-dialog) var(--motion-ease); }
@keyframes show-dialog {
  from { opacity: .78; transform: translateY(7px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.video-stage { position: relative; margin-top: .85rem; }
.video-dialog video {
  display: block;
  width: 100%;
  height: min(65vh, 38rem);
  height: min(65dvh, 38rem);
  border: 1px solid var(--line);
  border-radius: .32rem;
  background: #08090b;
}
.video-preview {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  border-radius: .28rem;
  background: var(--stage);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-press) var(--motion-ease), visibility 0s linear var(--motion-press);
}
.video-stage.is-loading .video-preview { opacity: 1; visibility: visible; transition-delay: 0s; }
.video-preview img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.video-preview span {
  position: absolute;
  bottom: .95rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--base);
  color: var(--text);
  font-size: .875rem;
}
.video-status { margin-top: .65rem; color: var(--muted); font-size: .875rem; }

/* Hover existe apenas quando há um ponteiro capaz de pairar, sem persistir no toque. */
@media (hover: hover) and (pointer: fine) {
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .header nav a:hover { color: var(--text); }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .header .nav-contact:hover { border-color: var(--accent); }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) :is(.button-primary, .context-contact):hover { background: var(--accent-hover); }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .button-outline:hover { border-color: var(--accent); color: var(--accent-hover); }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .text-link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .film-trigger:hover { border-color: var(--accent); background: #242428; }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) :is(summary, .explorer-tabs button, .close-button):hover { color: var(--accent-hover); }
  html:not([data-pointer-type="touch"]):not([data-pointer-type="pen"]) .creative-trigger:hover { border-color: var(--accent); color: var(--accent-hover); }
}

@media (max-width: 759px) {
  html { scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 369px) {
  .header {
    flex-wrap: wrap;
    gap: .1rem;
    padding-block: calc(.35rem + env(safe-area-inset-top)) .35rem;
  }
  .header nav { flex: 1 0 100%; justify-content: space-between; }
  .hero-inner { padding-top: 7.4rem; }
  .hero-kicker { font-size: .75rem; letter-spacing: .04em; }
  .hero-kicker::before { width: .8rem; margin-right: .05rem; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 1.85rem); }
  .explorer-tabs { column-gap: .74rem; }
  .explorer-tabs button { font-size: .875rem; }
}

@media (min-width: 580px) {
  .hero-inner { padding-top: 8rem; }
  .portrait { top: -2.5rem; right: -5.5rem; width: min(78vw, 35rem); }
  .case-metrics { gap: 1rem; }
  .case-evidence { grid-template-columns: minmax(0, 1.8fr) minmax(12rem, 1fr); align-items: start; gap: 1.35rem; }
  .case-metrics dd { font-size: clamp(1.45rem, 3.95vw, 3.1rem); }
  .explorer-heading { padding-inline: 1.4rem; }
  .proof-panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(1.25rem, 4.5vw, 4.3rem);
    padding: clamp(1.4rem, 4.5vw, 3.2rem);
  }
  .creative-stage { min-height: 16.25rem; }
  .contact-inner { gap: 1.7rem; }
  .approach-list > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem; }
  .approach-list dt { margin: 0; }
}

@media (min-width: 760px) {
  .header { min-height: calc(4.9rem + env(safe-area-inset-top)); }
  .header .nav-contact { padding-inline: 1.05rem; }
  .hero-inner {
    display: grid;
    align-items: center;
    min-height: clamp(33rem, 49vw, 44rem);
    padding-block: clamp(4rem, 8vw, 7rem);
  }
  .portrait {
    top: -4.5rem;
    right: clamp(-6.6rem, -5vw, -3rem);
    width: clamp(35rem, 62vw, 50rem);
    -webkit-mask-image: radial-gradient(ellipse 65% 62% at 56% 42%, #000 33%, transparent 98%);
    mask-image: radial-gradient(ellipse 65% 62% at 56% 42%, #000 33%, transparent 98%);
  }
  .hero h1 { margin-block: .8rem 1.05rem; font-size: clamp(3rem, 5.25vw, 5.4rem); }
  .hero-summary { font-size: 1.125rem; }
  .hero-actions { gap: 1.3rem; margin-top: 1.55rem; }
  .button { padding-inline: 1.1rem; }
  .approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
  .approach-list > div:first-child { padding-top: 0; border-top: 0; }
  .case-details > summary { padding-inline: clamp(1.5rem, 4.5vw, 3.2rem); }
  .case-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; }
  .case-copy > p:last-child { font-size: 1.0625rem; }
  .case-total { padding-left: clamp(1.2rem, 3vw, 2.2rem); }
  .total-value { font-size: clamp(4.1rem, 7.8vw, 6.75rem); }
  .case-evidence { grid-template-columns: minmax(0, 2.12fr) minmax(14rem, .88fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2.7rem; padding-top: 1.8rem; }
  .explorer-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.5rem, 4.5vw, 3.2rem); }
  .explorer-tabs button { min-height: 61px; }
  .proof-panel { min-height: 23rem; }
  .case-next { grid-template-columns: minmax(0, 1fr) auto; }
  .offer { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(2rem, 10vw, 8rem); row-gap: clamp(1.5rem, 3vw, 3rem); }
  .offer-list { padding-left: clamp(1.4rem, 4vw, 3.4rem); border-left: 1px solid var(--line); }
  .offer-questions { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
  .offer-questions h3 { padding-top: 0; font-size: 1.125rem; }
  .questions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .question-details { min-width: 0; border-top: 1px solid var(--line); }
  .question-details summary { min-height: 3.65rem; padding-block: 1rem; }
  .contact-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(2rem, 7vw, 6rem); }
}

@media (min-width: 960px) {
  .case-metrics { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .case-metrics .growth-metric { grid-column: auto; min-width: 0; }
  .case-metrics .growth-values { font-size: clamp(1.5rem, 3.1vw, 2.65rem); }
  .case-metrics .local-metric {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    grid-column: auto;
    align-items: flex-start;
    justify-content: center;
    gap: .4rem;
    padding: .8rem 0 0 .9rem;
    border-left: 1px solid var(--line);
  }
  .case-metrics .local-metric dt { flex: none; }
  .case-metrics .local-metric .audience-share { order: initial; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* O painel de privacidade é uma região não modal, acessível também pelo rodapé. */
.footer-legal { flex:1 0 100%; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .95rem; margin-top:.65rem; }
.footer-legal > a, .privacy-link { min-height:44px; }
.footer-legal > a { display:inline-flex; align-items:center; }
.privacy-link { cursor:pointer; border:0; padding:0; background:transparent; color:var(--muted); font:inherit; font-size:.875rem; text-decoration:underline; text-underline-offset:.2em; }
.privacy-link:hover,.privacy-link:focus-visible { color:var(--text); }
.footer-legal :focus-visible,.privacy-panel :focus-visible { outline:2px solid var(--accent-hover); outline-offset:3px; }
.footer-copyright { color:var(--muted); font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
.footer-copyright { flex-basis:100%; }
.privacy-panel {
  position:fixed; z-index:8;
  inset-inline-end:max(.75rem, env(safe-area-inset-right));
  bottom:calc(max(.75rem, env(safe-area-inset-bottom)) + var(--privacy-lift, 0px));
  width:min(24rem, calc(100% - 1.5rem)); max-height:min(70dvh, 32rem, var(--privacy-max, 100dvh));
  overflow:auto; overscroll-behavior:contain; padding:.8rem 1rem 1rem;
  border:1px solid var(--line); border-radius:1rem; background:var(--surface); color:var(--text);
  box-shadow:0 .75rem 2rem rgb(0 0 0 / 26%); overflow-wrap:anywhere;
}
.privacy-panel:not([hidden]) { animation:privacy-enter var(--motion-press) var(--motion-ease); }
@keyframes privacy-enter { from { opacity:0; } to { opacity:1; } }
.privacy-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.privacy-heading h2 { font-size:1rem; line-height:1.3; letter-spacing:normal; }
.privacy-panel p { color:var(--muted); font-size:.825rem; line-height:1.5; margin-block:.15rem .5rem; }
.privacy-panel .privacy-status:empty { margin:0; }
.privacy-panel a { color:var(--accent); text-underline-offset:.18em; }
.privacy-close,.privacy-actions button { color:var(--text); font:inherit; cursor:pointer; min-height:44px; }
.privacy-close { flex:0 0 44px; background:transparent; border:0; font-size:1.35rem; }
.privacy-brief-link { display:none; }
.privacy-option { display:flex; align-items:center; gap:.65rem; min-height:44px; cursor:pointer; padding-block:.25rem; }
.privacy-option input { flex:none; width:1.125rem; height:1.125rem; accent-color:var(--accent); }
.privacy-option strong,.privacy-option small { display:block; }
.privacy-option strong { font-size:.825rem; }
.privacy-option small { color:var(--muted); font-size:.75rem; }
.privacy-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin-top:.55rem; }
.privacy-actions button { font-size:.8rem; font-weight:650; border:1px solid var(--muted); border-radius:.55rem; padding:.35rem .3rem; background:transparent; }
.privacy-actions button:hover { color:var(--accent); border-color:var(--accent); }
.privacy-actions .privacy-secondary { grid-column:1/-1; border-color:transparent; text-decoration:underline; text-underline-offset:.2em; }
.privacy-actions button:disabled { opacity:.65; cursor:default; }
html:has(.privacy-panel:not([hidden])) { scroll-padding-bottom:calc(var(--privacy-space, 0px) + 1rem); }
html:has(.privacy-panel:not([hidden])) .context-contact-surface {
  bottom:var(--privacy-space, 0px); inset-inline-start:auto; background:transparent; border:0; padding-block:.35rem;
}
@media (max-width:480px) {
  .privacy-panel { inset-inline-start:max(.75rem, env(safe-area-inset-left)); width:auto; }
}
@media (max-width:360px) and (max-height:720px) {
  .privacy-panel[data-privacy-brief] { padding:.35rem .75rem; }
  .privacy-panel[data-privacy-brief] > :not(.privacy-heading),
  .privacy-panel[data-privacy-brief] .privacy-heading h2 { display:none; }
  .privacy-panel[data-privacy-brief] .privacy-brief-link {
    display:inline-flex; align-items:center; min-height:44px; padding:0;
    border:0; background:transparent; color:var(--text); font-weight:650; font-size:.9rem;
    text-align:left; text-decoration:underline; text-underline-offset:.2em; cursor:pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-panel:not([hidden]) { animation:none; }
}
.privacy-page { max-width:52rem; padding-block:2rem 4rem; }
.privacy-page h1 { font-size:clamp(2rem,6vw,3.5rem); line-height:1.15; margin-block:1rem; }
.privacy-page h2 { font-size:1.18rem; margin-top:1.6rem; color:var(--text); }
.privacy-page p,.privacy-page li { color:var(--muted); margin-top:.5rem; overflow-wrap:anywhere; }
.privacy-page a { color:var(--accent); }
