/*
 * Papel e Matéria
 * O orgânico não é desenhado: é a matéria do papel, o peso da terra e a
 * fotografia inteira. Nenhuma forma flutua sobre o conteúdo.
 */

:root {
  /* Superfícies claras */
  --paper-50: #FDF8EE;
  --cream-100: #EFE4CE;
  --line-200: #E2D9C6;

  /* Tinta sobre claro */
  --moss-950: #1A2417;
  --moss-800: #22301F;
  --body-on-paper: #4A5943;
  --sage-800: #526239;
  --sage-600: #6F8261;

  /* Terracota */
  --terracotta-700: #A8532F;
  --terracotta-600: #D4763F;
  --terracotta-800: #8B4326;
  /* A areia é mais funda que o papel: eyebrow e ações precisam acompanhar. */
  --terracotta-on-cream: #964624;

  /* Tinta sobre musgo */
  --paper-ink: #FDF7E9;
  --body-on-moss: #C6CFBC;
  --terracotta-on-moss: #DC8450;
  --sage-on-moss: #9AA78E;

  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --mobile-cta-clearance: 0px;
  --content-width: 1180px;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --measure: 66ch;
  --radius-small: 0.4rem;
  --radius-medium: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: var(--mobile-cta-clearance);
  overflow-x: hidden;
  color: var(--moss-950);
  background-color: var(--paper-50);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper-50);
  background: var(--moss-950);
}

:focus-visible {
  outline: 3px solid var(--terracotta-700);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

figure,
p,
ul,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.2rem + 3.1vw, 3.55rem);
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.85rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.18;
}

strong {
  font-weight: 600;
}

/* ---------- Utilitários ---------- */

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 200;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-small);
  color: var(--paper-50);
  background: var(--moss-950);
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
figcaption,
.credential-note,
.organization-list li,
.micro-labels {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--terracotta-700);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Superfícies ---------- */

.surface-dark {
  position: relative;
  isolation: isolate;
  color: var(--body-on-moss);
  background-color: var(--moss-800);
}

.surface-dark::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3 {
  color: var(--paper-ink);
}

.surface-dark .eyebrow {
  color: var(--terracotta-on-moss);
}

.surface-dark .micro-labels,
.surface-dark figcaption,
.surface-dark .credential-note,
.surface-dark .organization-list li {
  color: var(--sage-on-moss);
}

.surface-dark .button-primary {
  color: var(--moss-950);
  background: var(--terracotta-600);
}

.surface-dark .button-primary:hover {
  background: var(--paper-ink);
}

.surface-dark .button-secondary {
  border-color: rgb(244 236 220 / 0.34);
  color: var(--paper-ink);
}

.surface-dark .button-secondary:hover {
  border-color: var(--paper-ink);
  background: rgb(244 236 220 / 0.08);
}

.surface-cream {
  color: var(--moss-950);
  background-color: var(--cream-100);
}

.surface-cream .eyebrow,
.surface-cream .button:hover {
  color: var(--terracotta-on-cream);
}


.surface-terracotta {
  color: var(--paper-50);
  background-color: var(--terracotta-700);
}

.surface-terracotta h2 {
  color: var(--paper-50);
}

.surface-terracotta .eyebrow {
  color: var(--paper-50);
}

.surface-terracotta .button-primary {
  color: var(--moss-950);
  background: var(--paper-50);
}

.surface-terracotta .button-primary:hover {
  background: var(--cream-100);
}

.surface-terracotta a {
  color: var(--paper-50);
}

.surface-terracotta :focus-visible {
  outline-color: var(--paper-50);
}

/* ---------- Ritmo das seções ---------- */

/*
 * A gutter lateral centraliza o conteúdo na largura de leitura enquanto a
 * cor da faixa continua sangrando de ponta a ponta.
 */
main > section,
.site-nav,
.site-footer {
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
}

main > section {
  padding-block: var(--section-space);
}

main > section[id] {
  position: relative;
  scroll-margin-top: 1rem;
}

.surface-joined-end {
  padding-bottom: 0;
}

.surface-joined-start {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--body-on-moss);
  background-color: var(--moss-800);
}

.site-nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgb(244 236 220 / 0.16);
}

.brand {
  color: var(--paper-ink);
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

[data-menu] {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
}

[data-menu] > a:not(.button) {
  position: relative;
  color: var(--body-on-moss);
  text-decoration: none;
}

[data-menu] > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--terracotta-on-moss);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

[data-menu] > a:not(.button):hover::after,
[data-menu] > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

[data-menu-toggle] {
  display: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgb(244 236 220 / 0.34);
  border-radius: var(--radius-small);
  color: var(--paper-ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Botões ---------- */

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper-50);
  background: var(--terracotta-700);
}

.button-primary:hover {
  background: var(--terracotta-800);
}

.button-secondary {
  border-color: var(--line-200);
  color: var(--moss-950);
}

.button-secondary:hover {
  border-color: var(--moss-950);
}

/* Botão neutro dentro das faixas claras */
.commercial-paths .button,
.solution-formats .button {
  border-color: var(--line-200);
  color: var(--moss-950);
}

.commercial-paths .button:hover,
.solution-formats .button:hover {
  border-color: var(--terracotta-700);
  color: var(--terracotta-700);
}

/* ---------- Primeira dobra ---------- */

/*
 * Nada aqui participa do scroll-reveal: headline, texto e botões existem no
 * primeiro quadro, com e sem JavaScript. O respiro superior é deliberadamente
 * menor que o das outras seções: a dobra inteira precisa caber num notebook.
 */
.hero {
  display: grid;
  align-items: center;
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background-color: var(--moss-950);
  background-image:
    linear-gradient(
      100deg,
      rgb(18 26 16 / 0.95) 0%,
      rgb(18 26 16 / 0.9) 32%,
      rgb(18 26 16 / 0.6) 55%,
      rgb(18 26 16 / 0.28) 80%,
      rgb(18 26 16 / 0.2) 100%
    ),
    url("../images/hero/palco-plateia-1600.webp");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

/* O grão pesa demais sobre a fotografia; a capa já tem textura própria. */
.hero.surface-dark::before {
  opacity: 0.16;
}

.hero-copy {
  max-width: 33rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 46ch;
  margin-block: clamp(1.15rem, 2.2vw, 1.6rem) 0;
  color: var(--body-on-moss);
  font-size: clamp(1.05rem, 1rem + 0.38vw, 1.28rem);
}

.micro-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-block: 1.6rem 0;
  padding: 0;
  color: var(--sage-on-moss);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

/* ---------- Provocação ---------- */

#provocacao > h2 {
  max-width: 22ch;
}

#provocacao > p:not(.eyebrow) {
  max-width: var(--measure);
  margin-top: 1.75rem;
  color: var(--body-on-paper);
}

.symptoms {
  display: grid;
  max-width: var(--measure);
  gap: 1.15rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
}

.symptoms li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--body-on-paper);
}

.symptoms li::before {
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 1.4rem;
  height: 2px;
  background: var(--terracotta-700);
  content: "";
}

.symptoms strong {
  color: var(--moss-950);
}

/* ---------- Possibilidades ---------- */

#possibilidades > h2,
#solucoes > h2,
#experiencia > h2,
#quem-conduz > h2,
#faq > h2 {
  max-width: 24ch;
}

.commercial-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.commercial-paths article {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.75rem;
  border: 1px solid #DCCFB2;
  border-radius: var(--radius-medium);
  /* A faixa é areia: o cartão sobe para papel, senão desaparece nela. */
  background: var(--paper-50);
  gap: 0.9rem;
}

.commercial-paths h3 {
  color: var(--moss-950);
}

.commercial-paths article > p {
  color: var(--body-on-paper);
  font-size: 0.94rem;
  line-height: 1.6;
}

.commercial-paths .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Soluções ---------- */

#solucoes > p:not(.eyebrow) {
  max-width: var(--measure);
  margin-top: 1.75rem;
  color: var(--body-on-paper);
}

.solution-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.solution-formats article {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-medium);
  /* A faixa é papel: o cartão desce para areia. */
  background: var(--cream-100);
  gap: 1.25rem;
}

.solution-formats h3 {
  color: var(--moss-950);
}

.solution-formats dl {
  display: grid;
  gap: 0.85rem;
}

.solution-formats dt {
  color: var(--sage-800);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-formats dd {
  margin: 0.2rem 0 0;
  color: var(--body-on-paper);
  font-size: 0.92rem;
  line-height: 1.58;
}

.solution-formats .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Bloco escuro: autoridade e prova social ---------- */

.authority-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.authority-groups h3 {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(244 236 220 / 0.2);
}

.authority-groups ul {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.authority-groups li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--body-on-moss);
  font-size: 0.96rem;
}

.authority-groups li strong {
  color: var(--paper-ink);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  white-space: nowrap;
}

.credential-note {
  max-width: var(--measure);
  margin-top: 2.5rem;
  font-size: 0.68rem;
  line-height: 1.6;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.event-gallery figure {
  margin: 0;
}

/*
 * Sem aspect-ratio e sem recorte: a fotografia de palco aparece inteira, na
 * proporção em que foi feita.
 */
.event-gallery img {
  display: block;
  width: 100%;
  border-radius: var(--radius-small);
}

.event-gallery figcaption {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.organization-list {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(244 236 220 / 0.2);
}

.organization-list h3 {
  font-size: 1.35rem;
}

.organization-list > p {
  margin-top: 0.7rem;
  color: var(--body-on-moss);
  font-size: 1rem;
}

.organization-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.organization-list li {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.organization-list li:not(:last-child)::after {
  color: var(--sage-on-moss);
  content: "·";
  margin-inline: 0.85rem;
}

/* ---------- Quem conduz ---------- */

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: 3rem;
}

.profiles img {
  display: block;
  width: 100%;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-medium);
}

.profiles article > p {
  margin-top: 0.9rem;
  color: var(--body-on-paper);
  font-size: 0.96rem;
}

.profiles ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.profiles li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-200);
  border-radius: 999px;
  color: var(--sage-800);
  font-family: var(--mono);
  font-size: 0.66rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 52rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line-200);
}

.faq-list details {
  border-bottom: 1px solid var(--line-200);
}

.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.14rem;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.9rem;
  height: 2px;
  background: var(--terracotta-700);
  content: "";
}

.faq-list summary::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(0);
}

.faq-list details > p {
  max-width: var(--measure);
  padding-bottom: 1.6rem;
  color: var(--body-on-paper);
  font-size: 0.96rem;
}

/* ---------- Contato ---------- */

#contato > h2 {
  max-width: 20ch;
}

#contato > p:not(.eyebrow) {
  max-width: var(--measure);
  margin-top: 1.5rem;
}

#contato .button-primary {
  margin-top: 2.25rem;
}

#contato > p:last-child {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ---------- Formulário de contato ---------- */

.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contato-intro > h2 {
  max-width: 16ch;
}

.contato-intro > p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 1.5rem;
}

.contato-alternativa {
  font-size: 0.94rem;
}

.lead-form {
  display: grid;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius-medium);
  background: rgb(253 248 238 / 0.1);
}

.lead-form-title {
  margin-bottom: 0.35rem;
  color: var(--paper-50);
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.25;
}

.lead-form-sub {
  margin-bottom: 1.4rem;
  color: #FFEEDC;
  font-size: 0.84rem;
}

.lead-form label {
  margin-bottom: 0.4rem;
  color: var(--paper-50);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-form input {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(253 248 238 / 0.45);
  border-radius: var(--radius-small);
  margin-bottom: 1.1rem;
  color: var(--moss-950);
  background: var(--paper-50);
  font-family: var(--body);
  font-size: 1rem;
}

.lead-form input::placeholder {
  color: #7C7259;
}

.lead-form input:focus-visible {
  outline: 3px solid var(--paper-50);
  outline-offset: 2px;
}

/* Armadilha para robôs: fora da tela, fora do foco, fora do leitor de tela. */
.lead-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .button-primary {
  width: 100%;
  margin-top: 0.4rem;
  text-align: center;
}

.lead-consent {
  margin-top: 1.1rem;
  color: #FFEEDC;
  font-size: 0.72rem;
  line-height: 1.55;
}

.lead-status {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.lead-noscript {
  margin-top: 1rem;
  color: var(--paper-50);
  font-size: 0.86rem;
  font-weight: 600;
}

.lead-status:empty {
  display: none;
}

.lead-status[data-state="erro"] {
  color: var(--paper-50);
  font-weight: 600;
}

.lead-status[data-state="ok"] {
  color: var(--paper-50);
  font-weight: 600;
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding-block: 3.5rem;
  color: var(--body-on-moss);
  background: var(--moss-950);
  font-size: 0.88rem;
}

.site-footer p {
  margin-top: 0.5rem;
}

.site-footer strong {
  color: var(--paper-ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--terracotta-on-moss);
}

/* ---------- CTA móvel ---------- */

.mobile-cta {
  display: none;
  color: var(--paper-50);
  background: var(--terracotta-700);
}

/* ---------- Movimento ---------- */

/*
 * Tudo aqui é enfeite. O conteúdo permanece visível sem JavaScript, e cada
 * efeito é desligado inteiro sob prefers-reduced-motion, mais abaixo.
 */

.js [data-reveal] {
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(2rem) scale(0.995);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* A galeria e os cartões entram em cascata, não em bloco. */
.js [data-reveal] .event-gallery figure,
.js [data-reveal] .commercial-paths article,
.js [data-reveal] .solution-formats article,
.js [data-reveal] .profiles article {
  transition:
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ordem, 0) * 85ms);
}

.js [data-reveal]:not(.is-visible) .event-gallery figure,
.js [data-reveal]:not(.is-visible) .commercial-paths article,
.js [data-reveal]:not(.is-visible) .solution-formats article,
.js [data-reveal]:not(.is-visible) .profiles article {
  opacity: 0;
  transform: translateY(1.6rem);
}

.event-gallery figure:nth-child(1) { --ordem: 0; }
.event-gallery figure:nth-child(2) { --ordem: 1; }
.event-gallery figure:nth-child(3) { --ordem: 2; }
.event-gallery figure:nth-child(4) { --ordem: 3; }
.event-gallery figure:nth-child(5) { --ordem: 4; }
.event-gallery figure:nth-child(6) { --ordem: 5; }
.commercial-paths article:nth-child(2),
.solution-formats article:nth-child(2),
.profiles article:nth-child(2) { --ordem: 1; }
.commercial-paths article:nth-child(3),
.solution-formats article:nth-child(3) { --ordem: 2; }

/* Profundidade real no hover, em vez de um deslocamento seco. */
.commercial-paths article,
.solution-formats article {
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 340ms ease;
}

.commercial-paths article:hover,
.solution-formats article:hover {
  border-color: var(--terracotta-700);
  box-shadow: 0 1.4rem 2.6rem rgb(26 36 23 / 0.13);
  transform: translateY(-6px);
}

.event-gallery figure {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-gallery img {
  transition: box-shadow 420ms ease;
}

.event-gallery figure:hover {
  transform: translateY(-5px);
}

.event-gallery figure:hover img {
  box-shadow: 0 1.2rem 2.4rem rgb(0 0 0 / 0.32);
}

.profiles img {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profiles article:hover img {
  transform: scale(1.015);
}

/* Os números de autoridade assentam quando contam. */
[data-counter] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/*
 * Profundidade na capa: o plano de fundo desliza mais devagar que a página.
 * Só onde o navegador sabe fazer isso sem JavaScript e sem custo de rolagem.
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .hero {
      animation: capa-profundidade linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes capa-profundidade {
      from { background-position: center 42%; }
      to { background-position: center 58%; }
    }
  }
}

/* ---------- 1024px ---------- */

@media (max-width: 1024px) {
  :root {
    --section-space: clamp(4.5rem, 9vw, 7rem);
  }

  .hero-copy {
    max-width: 30rem;
  }

  .commercial-paths,
  .solution-formats,
  .event-gallery {
    gap: 1rem;
  }
}

/* ---------- 760px ---------- */

/* A navegação fica visível por padrão; só o .js opta pelo colapso. */

@media (max-width: 760px) {
  :root {
    --mobile-cta-clearance: 86px;
    --page-gutter: clamp(1rem, 5vw, 1.5rem);
  }

  body {
    padding-bottom: var(--mobile-cta-clearance);
  }

  .site-header {
    position: relative;
  }

  .js .site-header {
    position: sticky;
  }

  .site-nav {
    min-height: 68px;
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .brand {
    max-width: 13rem;
  }

  [data-menu] {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem 1.1rem;
    padding-block: 0.5rem;
    border-top: 1px solid rgb(244 236 220 / 0.16);
  }

  [data-menu] .button {
    width: 100%;
    text-align: center;
  }

  .js [data-menu-toggle] {
    display: inline-flex;
    align-items: center;
  }

  .js [data-menu] {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: auto;
    padding: 1rem var(--page-gutter) 1.25rem;
    border-top: 1px solid rgb(244 236 220 / 0.16);
    background: var(--moss-800);
    box-shadow: 0 1rem 2rem rgb(16 21 14 / 0.28);
  }

  .js [data-menu].is-open {
    display: flex;
  }

  /*
   * Em retrato a capa é recortada e a área escura da esquerda desaparece:
   * o véu passa a ser vertical, para o texto continuar legível sobre a
   * plateia. A largura menor também troca a imagem por uma mais leve.
   */
  /*
   * Em retrato a imagem escala pela altura e não sobra nada na vertical: os
   * rostos caem sempre no terço superior, que é onde o texto estava. Em vez
   * de brigar com o gradiente, o texto desce para a base e o topo fica livre
   * para a dupla aparecer.
   */
  .hero {
    align-items: end;
    /*
     * Preenche a tela visível: svh já desconta a barra do navegador, então a
     * seção seguinte não espia por baixo da dobra. O 68px é a altura do
     * cabeçalho neste ponto de quebra.
     */
    min-height: calc(100svh - 68px);
    padding-top: 7.5rem;
    background-image:
      linear-gradient(
        180deg,
        rgb(18 26 16 / 0.08) 0%,
        rgb(18 26 16 / 0.14) 16%,
        rgb(18 26 16 / 0.5) 32%,
        rgb(18 26 16 / 0.85) 46%,
        rgb(18 26 16 / 0.94) 64%,
        rgb(18 26 16 / 0.96) 100%
      ),
      url("../images/hero/palco-plateia-retrato.webp");
    background-position: center top;
  }

  .hero-copy {
    max-width: none;
  }

  /*
   * O eyebrow é pequeno e cai sobre os rostos, onde o véu precisa continuar
   * leve. Escurecer o gradiente ali apagaria a dupla de novo, então quem se
   * adapta é o texto: claro e com sombra, em vez de terracota.
   */
  .hero .eyebrow {
    color: var(--paper-ink);
    text-shadow: 0 1px 8px rgb(18 26 16 / 0.95), 0 0 2px rgb(18 26 16 / 0.8);
  }

  /* Menos altura de texto = mais céu livre para os rostos acima dele. */
  .hero h1 {
    font-size: clamp(1.95rem, 7.4vw, 2.3rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-block: 0.9rem 0;
    font-size: 1rem;
  }

  .hero .micro-labels {
    margin-block: 1.1rem 0;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .commercial-paths,
  .solution-formats,
  .authority-groups,
  .profiles,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organization-list {
    margin-top: 2.5rem;
  }

  .mobile-cta {
    position: fixed;
    z-index: 110;
    right: 0.8rem;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    left: 0.8rem;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    border: 1px solid rgb(253 248 238 / 0.55);
    border-radius: var(--radius-small);
    color: var(--paper-50);
    background: var(--terracotta-700);
    box-shadow: 0 0.7rem 1.8rem rgb(16 21 14 / 0.24);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .mobile-cta:hover {
    color: var(--paper-50);
    background: var(--terracotta-800);
  }

  .js [data-mobile-cta].is-observed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .js [data-mobile-cta].is-observed.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ---------- Celular de tela baixa ---------- */

/*
 * 844px de altura é otimista: com a barra do navegador aberta sobram uns
 * 640px. Aqui a dobra encolhe para caber inteira nesses aparelhos, em vez de
 * cortar os botões — que é justamente o que ela não pode fazer.
 */

@media (max-width: 760px) and (max-height: 730px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6.6vw, 2.05rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-block: 0.7rem 0;
    font-size: 0.94rem;
  }

  .hero .micro-labels {
    margin-block: 0.75rem 0;
    gap: 0.35rem 1.1rem;
  }

  .hero-actions {
    margin-top: 0.95rem;
    gap: 0.6rem;
  }

  .hero-actions .button {
    padding-block: 0.78rem;
  }
}

/* Aparelhos ainda mais baixos: o céu encolhe primeiro, o texto depois. */

@media (max-width: 760px) and (max-height: 620px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 1.1rem;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6.2vw, 1.85rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-block: 0.55rem 0;
    font-size: 0.9rem;
  }

  .hero .micro-labels {
    margin-block: 0.6rem 0;
  }

  .hero-actions {
    margin-top: 0.8rem;
  }
}

/* ---------- 480px ---------- */

@media (max-width: 480px) {
  :root {
    --section-space: 4.5rem;
  }

  h1 {
    font-size: clamp(2.15rem, 8.5vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .event-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .organization-list li:not(:last-child)::after {
    margin-inline: 0.6rem;
  }

  .faq-list summary {
    font-size: 1.04rem;
  }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal]:not(.is-visible),
  .js [data-reveal].is-visible,
  .js [data-reveal]:not(.is-visible) .event-gallery figure,
  .js [data-reveal]:not(.is-visible) .commercial-paths article,
  .js [data-reveal]:not(.is-visible) .solution-formats article,
  .js [data-reveal]:not(.is-visible) .profiles article {
    opacity: 1;
    transform: none;
  }

  .button:hover,
  .commercial-paths article:hover,
  .solution-formats article:hover,
  .event-gallery figure:hover,
  .profiles article:hover img {
    transform: none;
  }
}

/* ---------- Impressão ---------- */

@media print {
  .site-header,
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
    background: white;
  }

  .surface-dark,
  .surface-cream,
  .surface-terracotta {
    color: black;
    background: white;
  }

  .surface-dark::before {
    display: none;
  }

  main > section {
    break-inside: avoid;
  }
}
